OSDN Git Service

2008-07-30 Rafael Avila de Espindola <espindola@google.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
2
3         PR 36974
4         * final.c (call_from_call_insn): Handle COND_EXEC
5
6 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
7
8         * builtins.c (std_gimplify_va_arg_expr): Replace
9         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
10         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
11
12 2008-07-30  Joey Ye  <joey.ye@intel.com>
13             H.J. Lu  <hongjiu.lu@intel.com>
14
15         * builtins.c (expand_builtin_setjmp_receiver): Replace
16         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
17         (expand_builtin_apply_args_1): Likewise.
18         (expand_builtin_longjmp): Need DRAP for stack alignment.
19         (expand_builtin_apply): Likewise.
20
21         * caller-save.c (setup_save_areas): Call assign_stack_local_1
22         instead of assign_stack_local to allow alignment reduction.
23
24         * calls.c (emit_call_1): Need DRAP for stack alignment if
25         return pops.
26         (expand_call): Replace virtual_incoming_args_rtx with
27         crtl->args.internal_arg_pointer.
28         * stmt.c (expand_nl_goto_receiver): Likewise.
29
30         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
31         alignment and store to stack_alignment_estimated and
32         max_used_stack_slot_alignment.
33         (expand_one_var): Likewise.
34         (expand_stack_alignment): New function.
35         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
36         and stack_alignment_estimated fields in rtl_data.  Call
37         expand_stack_alignment at end.
38
39         * defaults.h (INCOMING_STACK_BOUNDARY): New.
40         (MAX_STACK_ALIGNMENT): Likewise.
41         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
42         (SUPPORTS_STACK_ALIGNMENT): Likewise.
43
44         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
45         stack alignment when generating virtual registers.
46
47         * function.c (assign_stack_local): Renamed to ...
48         (assign_stack_local_1): This.  Add a parameter to indicate
49         if it is OK to reduce alignment.
50         (assign_stack_local): Use it.
51         (instantiate_new_reg): Instantiate virtual incoming args rtx
52         to vDRAP if stack realignment and DRAP is needed.
53         (assign_parms): Collect parameter/return type alignment and
54         contribute to stack_alignment_estimated.
55         (locate_and_pad_parm): Likewise.
56         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
57         with crtl->args.internal_arg_pointer.
58
59         * function.h (rtl_data): Add new field drap_reg,
60         max_used_stack_slot_alignment, stack_alignment_estimated,
61         stack_realign_needed, need_drap, stack_realign_processed and
62         stack_realign_finalized.
63         (stack_realign_fp): New macro.
64         (stack_realign_drap): Likewise.
65
66         * global.c (compute_regsets): Frame pointer is needed when
67         stack is realigned.  Can eliminate frame pointer when stack is
68         realigned and dynamic realigned argument pointer isn't used.
69
70         * reload1.c (update_eliminables):  Frame pointer is needed
71         when stack is realigned.
72         (init_elim_table): Can eliminate frame pointer when stack is
73         realigned and dynamic realigned argument pointer isn't used.
74
75         * rtl.h (assign_stack_local_1): Declare new funtion.
76
77         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
78         (TARGET_GET_DRAP_RTX): Likewise.
79         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
80         TARGET_GET_DRAP_RTX.
81
82         * target.h (gcc_target): Add update_stack_boundary and
83         get_drap_rtx.
84
85         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
86         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
87
88 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
89             H.J. Lu  <hongjiu.lu@intel.com>
90
91         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
92         vdrap_reg, stack_realign and drap_reg_saved.
93         (add_cfi): Don't allow redefining CFA when DRAP is used.
94         (reg_save): Handle stack alignment.
95         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
96         alignment.  Don't generate DWARF information for (set fp sp)
97         when DRAP is used.
98         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
99         to INVALID_REGNUM.
100         (int_loc_descriptor): Move prototype forward.  Also define if
101         DWARF2_UNWIND_INFO is true.
102         (output_cfa_loc): Handle DW_CFA_expression.
103         (build_cfa_aligned_loc): New.
104         (based_loc_descr): Update assert for stack realign.  For local
105         variables, use sp+offset when stack is aligned without drap and
106         fp+offset when stack is aligned with drap.  For arguments, use
107         cfa+offset when drap is used to align stack.
108
109 2008-07-30  Joey Ye  <joey.ye@intel.com>
110             H.J. Lu  <hongjiu.lu@intel.com>
111
112         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
113         Break long line.
114         (ix86_gen_andsp): New.
115         (ix86_user_incoming_stack_boundary): Likewise.
116         (ix86_default_incoming_stack_boundary): Likewise.
117         (ix86_incoming_stack_boundary): Likewise.
118         (ix86_can_eliminate): Likewise.
119         (find_drap_reg): Likewise.
120         (ix86_update_stack_boundary): Likewise.
121         (ix86_get_drap_rtx): Likewise.
122         (ix86_finalize_stack_realign_flags): Likewise.
123         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
124         (TARGET_GET_DRAP_RTX): Likewise.
125         (override_options): Overide option value for new options.
126         (ix86_function_ok_for_sibcall): Remove check for
127         force_align_arg_pointer.
128         (ix86_handle_cconv_attribute): Likewise.
129         (ix86_function_regparm): Likewise.
130         (setup_incoming_varargs_64): Don't set stack_alignment_needed
131         here.
132         (ix86_va_start): Replace virtual_incoming_args_rtx with
133         crtl->args.internal_arg_pointer.
134         (ix86_select_alt_pic_regnum): Check DRAP register.
135         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
136         (ix86_compute_frame_layout): Compute frame layout wrt stack
137         realignment.
138         (ix86_internal_arg_pointer): Just return
139         virtual_incoming_args_rtx.
140         (ix86_expand_prologue): Decide if stack realignment is needed
141         and generate prologue code accordingly.
142         (ix86_expand_epilogue): Generate epilogue code wrt stack
143         realignment is really needed or not.
144         
145         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
146         (ABI_STACK_BOUNDARY): Likewise.
147         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
148         (STACK_REALIGN_DEFAULT): Likewise.
149         (INCOMING_STACK_BOUNDARY): Likewise.
150         (MAX_STACK_ALIGNMENT): Likewise.
151         (ix86_incoming_stack_boundary): Likewise.
152         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
153         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
154         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
155         (machine_function): Remove force_align_arg_pointer.
156
157         * config/i386/i386.md (BX_REG): New.
158         (R13_REG): Likewise.
159
160         * config/i386/i386.opt (mforce_drap): New.
161         (mincoming-stack-boundary): Likewise.
162         (mstackrealign): Add Init(-1).
163
164         * config/i386/i386-protos.h (ix86_can_eliminate): New
165
166 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
167
168         * doc/extend.texi: Update force_align_arg_pointer.
169
170         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
171         -mstackrealign.
172
173         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
174         (INCOMING_STACK_BOUNDARY): Likewise.
175         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
176         (TARGET_GET_DRAP_RTX): Likewise.
177
178 2008-07-30  Andreas Schwab  <schwab@suse.de>
179
180         PR rtl-optimization/36929
181         * dse.c (replace_inc_dec): Use emit_insn_before instead of
182         add_insn_before and fix argument order.
183         (replace_inc_dec_mem): Handle NULL rtx.
184
185 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
186
187         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
188         function.
189         (arm_compute_initial_elimination_offset): Use it.
190         (arm_compute_save_reg_mask): Include static chain save slot when
191         calculating alignment.
192         (arm_get_frame_offsets): Ditto.
193         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
194         that we can use to decrement the stack when the stack decrement
195         could be too big for an immediate value in a single insn.
196         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
197
198 2008-07-30  Richard Guenther  <rguenther@suse.de>
199
200         PR tree-optimization/36967
201         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
202         Release defs of statements we remove.
203
204 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
205
206         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
207         instead of NULL_RTVEC.
208
209 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
210
211         PR target/35866
212
213         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
214         vector modes.
215
216 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
217
218        * final.c (call_from_call_insn): New.
219        (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
220
221 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
222
223         * configure.ac: Substitute ADA_CFLAGS.
224         * configure: Regenerate.
225         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
226         * Makefile.in: Remove mention of X_* variables.
227         * config/pa/x-ada-hpux10: Remove.
228         * config/pa/x-ada: Remove.
229
230         * doc/fragments.texi: Update.
231
232 2008-07-30  Olivier Hainque  <hainque@adacore.com>
233
234         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
235         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
236         __dso_handle explicitly here.
237
238 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
239
240         PR 34389
241         * c-typeck.c (build_binary_op): Encapsulate code into...
242         * c-common.c (shorten_binary_op): ...this new function.
243         (conversion_warning): Use the new function. Handle non-negative
244         constant in bitwise-and.
245         * c-common.h (shorten_binary_op): Declare.
246
247 2008-07-30  Olivier Hainque  <hainque@adacore.com>
248
249         * scan.c (make_sstring_space): Add explicit conversions of
250         allocator's return value.
251         * fix-header.c (recognized_function): Likewise.
252
253 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
254
255         * doc/cpp.texi: Update to GFDL 1.2.
256         * doc/gcc.texi: Do not list GPL as Invariant Section.
257         * doc/gccint.texi: Likewise.  Update copyright years.
258         * doc/install.texi: Update copyright years.
259
260 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
261
262         PR target/36955
263         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
264         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
265
266 2008-07-29  Jan Hubicka  <jh@suse.cz>
267
268         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
269         (grokdeclarator): Likewise.
270         * langhooks.c (lhd_warn_unused_global_decl): Use
271         DECL_DECLARED_INLINE_P.
272         * print-tree.c (print_node): Remove DECL_INLINE check.
273
274 2008-07-29  Richard Guenther  <rguenther@suse.de>
275
276         PR tree-optimization/36945
277         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
278         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
279         Record invariant addresses un-decomposed.
280         (copy_reference_ops_from_call): Record reference call
281         arguments properly.  Simplify.
282         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
283         helper split out from ...
284         (create_component_ref_by_pieces): ... here.  Simplify.
285         Prepare for recursive invocation for call arguments.
286         (create_expression_by_pieces): Adjust call to
287         create_component_ref_by_pieces.
288         (compute_avail): Process operand 2 of reference ops.
289
290 2008-07-29  Richard Guenther  <rguenther@suse.de>
291
292         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for
293         OBJ_TYPE_REF.
294
295 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
296
297         * c-format.c (check_format_types): Revert unwanted checkin.
298
299 2008-07-29  Jan Hubicka  <jh@suse.cz>
300
301         * flags.h (flag_really_no_inline): Remove.
302         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
303         * toplev.c (flag_really_no_inline): Remove.
304         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
305         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
306         (cgraph_decide_inlining_incrementally): Likewise.
307         (compute_inline_parameters): Likewise.
308         * opts.c (decode_options): Simplify.
309         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
310         * common.opt (finline): Initialize to 1.
311         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
312
313 2008-07-29  Jan Hubicka  <jh@suse.cz>
314
315         * predict.c (always_optimize_for_size_p): New function.
316         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
317         optimize_edge_for_size_p, optimize_edge_for_speed_p,
318         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
319         functions.
320         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
321         * function.c (prepare_function_start): Set default profile.
322         * function.h (rtl_data): Add maybe_hot_insn_p.
323         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
324         (construct_exit_block): Likewise.
325         (tree_expand_cfg): Likewise.
326         * basic-block.h
327         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
328         optimize_edge_for_size_p, optimize_edge_for_speed_p,
329         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
330         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
331         Declare.
332
333 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
334
335         PR 34985
336         * c-decl.c (merge_decls): Merge USED flags.
337
338 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
339
340         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
341         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
342         next_stack, lab_false and lab_over trees.
343
344 2008-07-28  Richard Guenther  <rguenther@suse.de>
345
346         PR tree-optimization/36957
347         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
348         (useless_type_conversion_p): Remove.
349         (types_compatible_p): Remove.
350         * gimple.h (tree_ssa_useless_type_conversion): Declare.
351         (useless_type_conversion_p): Declare.
352         (types_compatible_p): Declare.
353         (gimple_expr_type): Return the base type only if it is
354         trivially convertible to the subtype.
355
356 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
357
358         * configure.ac: Use the m4_do macro to concatenate the warnings into
359         one string in ACX_PROG_CC_WARNING_OPTS,
360         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
361         * configure: Regenerate.
362
363 2008-07-28  Richard Guenther  <rguenther@suse.de>
364
365         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
366         (insert_fake_stores): Remove.
367         (realify_fake_stores): Likewise.
368         (execute_pre): Remove dead code.
369         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary
370         case.
371         (find_func_aliases): Deal with it here instead.
372         Re-enable gcc_unreachable call.
373
374 2008-07-28  Richard Guenther  <rguenther@suse.de>
375
376         Merge from gimple-tuples-branch.
377
378         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
379         * gimple.def: New file.
380         * gsstruct.def: Likewise.
381         * gimple-iterator.c: Likewise.
382         * gimple-pretty-print.c: Likewise.
383         * tree-gimple.c: Removed.  Merged into ...
384         * gimple.c: ... here.  New file.
385         * tree-gimple.h: Removed.  Merged into ...
386         * gimple.h: ... here.  New file.
387
388         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
389         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
390         --enable-checking=gimple flag.
391         * config.in: Likewise.
392         * configure: Regenerated.
393
394         * tree-ssa-operands.h: Tuplified.
395         * tree-vrp.c: Likewise.
396         * tree-loop-linear.c: Likewise.
397         * tree-into-ssa.c: Likewise.
398         * tree-ssa-loop-im.c: Likewise.
399         * tree-dump.c: Likewise.
400         * tree-complex.c: Likewise.
401         * cgraphbuild.c: Likewise.
402         * tree-ssa-threadupdate.c: Likewise.
403         * tree-ssa-loop-niter.c: Likewise.
404         * tree-pretty-print.c: Likewise.
405         * tracer.c: Likewise.
406         * gengtype.c: Likewise.
407         * tree-loop-distribution.c: Likewise.
408         * tree-ssa-loop-unswitch.c: Likewise.
409         * cgraph.c: Likewise.
410         * cgraph.h: Likewise.
411         * tree-ssa-loop-manip.c: Likewise.
412         * value-prof.c: Likewise.
413         * tree-ssa-loop-ch.c: Likewise.
414         * tree-tailcall.c: Likewise.
415         * value-prof.h: Likewise.
416         * tree.c: Likewise.
417         * tree.h: Likewise.
418         * tree-pass.h: Likewise.
419         * ipa-cp.c: Likewise.
420         * tree-scalar-evolution.c: Likewise.
421         * tree-scalar-evolution.h: Likewise.
422         * target.h: Likewise.
423         * lambda-mat.c: Likewise.
424         * tree-phinodes.c: Likewise.
425         * diagnostic.h: Likewise.
426         * builtins.c: Likewise.
427         * tree-ssa-alias-warnings.c: Likewise.
428         * cfghooks.c: Likewise.
429         * fold-const.c: Likewise.
430         * cfghooks.h: Likewise.
431         * omp-low.c: Likewise.
432         * tree-ssa-dse.c: Likewise.
433         * ipa-reference.c: Likewise.
434         * tree-ssa-uncprop.c: Likewise.
435         * toplev.c: Likewise.
436         * tree-gimple.c: Likewise.
437         * tree-gimple.h: Likewise.
438         * tree-chrec.c: Likewise.
439         * tree-chrec.h: Likewise.
440         * tree-ssa-sccvn.c: Likewise.
441         * tree-ssa-sccvn.h: Likewise.
442         * cgraphunit.c: Likewise.
443         * tree-ssa-copyrename.c: Likewise.
444         * tree-ssa-ccp.c: Likewise.
445         * tree-ssa-loop-ivopts.c: Likewise.
446         * tree-nomudflap.c: Likewise.
447         * tree-call-cdce.c: Likewise.
448         * ipa-pure-const.c: Likewise.
449         * c-format.c: Likewise.
450         * tree-stdarg.c: Likewise.
451         * tree-ssa-math-opts.c: Likewise.
452         * tree-ssa-dom.c: Likewise.
453         * tree-nrv.c: Likewise.
454         * tree-ssa-propagate.c: Likewise.
455         * ipa-utils.c: Likewise.
456         * tree-ssa-propagate.h: Likewise.
457         * tree-ssa-alias.c: Likewise.
458         * gimple-low.c: Likewise.
459         * tree-ssa-sink.c: Likewise.
460         * ipa-inline.c: Likewise.
461         * c-semantics.c: Likewise.
462         * dwarf2out.c: Likewise.
463         * expr.c: Likewise.
464         * tree-ssa-loop-ivcanon.c: Likewise.
465         * predict.c: Likewise.
466         * tree-ssa-loop.c: Likewise.
467         * tree-parloops.c: Likewise.
468         * tree-ssa-address.c: Likewise.
469         * tree-ssa-ifcombine.c: Likewise.
470         * matrix-reorg.c: Likewise.
471         * c-decl.c: Likewise.
472         * tree-eh.c: Likewise.
473         * c-pretty-print.c: Likewise.
474         * lambda-trans.c: Likewise.
475         * function.c: Likewise.
476         * langhooks.c: Likewise.
477         * ebitmap.h: Likewise.
478         * tree-vectorizer.c: Likewise.
479         * function.h: Likewise.
480         * langhooks.h: Likewise.
481         * tree-vectorizer.h: Likewise.
482         * ipa-type-escape.c: Likewise.
483         * ipa-type-escape.h: Likewise.
484         * domwalk.c: Likewise.
485         * tree-if-conv.c: Likewise.
486         * profile.c: Likewise.
487         * domwalk.h: Likewise.
488         * tree-data-ref.c: Likewise.
489         * tree-data-ref.h: Likewise.
490         * tree-flow-inline.h: Likewise.
491         * tree-affine.c: Likewise.
492         * tree-vect-analyze.c: Likewise.
493         * c-typeck.c: Likewise.
494         * gimplify.c: Likewise.
495         * coretypes.h: Likewise.
496         * tree-ssa-phiopt.c: Likewise.
497         * calls.c: Likewise.
498         * tree-ssa-coalesce.c: Likewise.
499         * tree.def: Likewise.
500         * tree-dfa.c: Likewise.
501         * except.c: Likewise.
502         * except.h: Likewise.
503         * cfgexpand.c: Likewise.
504         * tree-cfgcleanup.c: Likewise.
505         * tree-ssa-pre.c: Likewise.
506         * tree-ssa-live.c: Likewise.
507         * tree-sra.c: Likewise.
508         * tree-ssa-live.h: Likewise.
509         * tree-predcom.c: Likewise.
510         * lambda.h: Likewise.
511         * tree-mudflap.c: Likewise.
512         * ipa-prop.c: Likewise.
513         * print-tree.c: Likewise.
514         * tree-ssa-copy.c: Likewise.
515         * ipa-prop.h: Likewise.
516         * tree-ssa-forwprop.c: Likewise.
517         * ggc-page.c: Likewise.
518         * c-omp.c: Likewise.
519         * tree-ssa-dce.c: Likewise.
520         * tree-vect-patterns.c: Likewise.
521         * tree-ssa-ter.c: Likewise.
522         * tree-nested.c: Likewise.
523         * tree-ssa.c: Likewise.
524         * lambda-code.c: Likewise.
525         * tree-ssa-loop-prefetch.c: Likewise.
526         * tree-inline.c: Likewise.
527         * tree-inline.h: Likewise.
528         * tree-iterator.c: Likewise.
529         * tree-optimize.c: Likewise.
530         * tree-ssa-phiprop.c: Likewise.
531         * tree-vect-transform.c: Likewise.
532         * tree-object-size.c: Likewise.
533         * tree-outof-ssa.c: Likewise.
534         * cfgloop.c: Likewise.
535         * system.h: Likewise.
536         * tree-profile.c: Likewise.
537         * cfgloop.h: Likewise.
538         * c-gimplify.c: Likewise.
539         * c-common.c: Likewise.
540         * tree-vect-generic.c: Likewise.
541         * tree-flow.h: Likewise.
542         * c-common.h: Likewise.
543         * basic-block.h: Likewise.
544         * tree-ssa-structalias.c: Likewise.
545         * tree-switch-conversion.c: Likewise.
546         * tree-ssa-structalias.h: Likewise.
547         * tree-cfg.c: Likewise.
548         * passes.c: Likewise.
549         * ipa-struct-reorg.c: Likewise.
550         * ipa-struct-reorg.h: Likewise.
551         * tree-ssa-reassoc.c: Likewise.
552         * cfgrtl.c: Likewise.
553         * varpool.c: Likewise.
554         * stmt.c: Likewise.
555         * tree-ssanames.c: Likewise.
556         * tree-ssa-threadedge.c: Likewise.
557         * langhooks-def.h: Likewise.
558         * tree-ssa-operands.c: Likewise.
559         * config/alpha/alpha.c: Likewise.
560         * config/frv/frv.c: Likewise.
561         * config/s390/s390.c: Likewise.
562         * config/m32c/m32c.c: Likewise.
563         * config/m32c/m32c-protos.h: Likewise.
564         * config/spu/spu.c: Likewise.
565         * config/sparc/sparc.c: Likewise.
566         * config/i386/i386.c: Likewise.
567         * config/sh/sh.c: Likewise.
568         * config/xtensa/xtensa.c: Likewise.
569         * config/stormy16/stormy16.c: Likewise.
570         * config/ia64/ia64.c: Likewise.
571         * config/rs6000/rs6000.c: Likewise.
572         * config/pa/pa.c: Likewise.
573         * config/mips/mips.c: Likewise.
574
575 2008-07-28  Simon Baldwin  <simonb@google.com>
576
577         * c-pragma.c (handle_pragma_message): New function.
578         (init_pragma): Register handle_pragma_message.
579         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
580         documentation.
581
582 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
583
584         PR tree-optimization/35252
585         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
586         REALPART_EXPR to be considered as same load operation.
587
588 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
589
590         PR tree-optimization/36830
591         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
592         (expressions_equal_p): Return false if only one operand is null.
593
594 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
595
596         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
597         version requirements.
598
599 2008-07-26  Olivier Hainque  <hainque@adacore.com>
600
601         * collect2.c (symkind): New enum.  Symbol kinds we care about.
602         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
603         code and head comment accordingly.
604         (scan_prog_file): Use symkind names instead of bare integers.
605
606 2008-07-25  Jan Hubicka  <jh@suse.cz>
607
608         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
609         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
610         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
611         * dojump.c (clear_pending_stack_adjust): Likewise.
612         * print-tree.c (print_node): Ignore DECL_INLINE.
613         * tree-inline.c (inlinable_function_p): Likewise.
614
615 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
616
617         * doc/extend.texi (hot attribute): Document that the hot attribute
618         turns on -O3 for some ports.
619         (cold attribute): Document that the cold attribute turns on -Os
620         for some ports
621
622         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
623         reflect function specific option support.
624
625         * target.h (struct target_option_hooks): Add fields to say whether
626         the cold attribute implies -Os and the hot attribute implies -O3.
627
628         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
629         By default, do not turn on -Os for cold functions.
630         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
631         not turn on -O3 for hot functions.
632
633         * c-common.c (handle_hot_attribute): Use target hook to determine
634         if hot functions should enable -O3.
635         (handle_cold_attribute): Use target hook to determine if cold
636         functions should enable -Os.
637
638         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
639         (override_options): Move disable scheduling to
640         optimization_options.
641         (optimization_options): Disable scheduling here, not
642         override_options.
643         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
644         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
645
646         * config/ia64/ia64.c (ia64_override_options): Move setting
647         scheduling flags to ia64_optimization_options.
648         (ia64_optimization_options): Disable scheduling options here, and
649         not in ia64_override_options.
650         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
651         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
652
653 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
654
655         PR target/36936
656         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
657
658 2008-07-25  Martin Jambor  <mjambor@suse.cz>
659
660         PR tree-optimization/36926
661         * ipa-prop.c (ipa_analyze_call_uses): Call
662         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
663
664 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
665
666         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
667         movv2si_internal): Add mem = reg alternative.
668
669 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
670
671         PR bootstrap/36918
672         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
673         DEFAULT_PCC_STRUCT_RETURN to 127.
674
675 2008-07-24  Jan Hubicka  <jh@suse.cz>
676
677         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
678         (build_cgraph_edges): Likewise.
679         * cgraph.c (cgraph_node): Do not update assembler hash.
680         (cgraph_remove_node): Drop non-unit-at-a-time code.
681         * tree-pass.h (pass_O0_always_inline): Remove.
682         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
683         * toplev.c (process_options): Flag unit-at-a-time does not imply
684         no section anchors.
685         * cgraphunit.c: Update comments.
686         (decide_is_function_needed): Drop non-unit-at-a-time mode.
687         (cgraph_assemble_pending_functions): Remove.
688         (cgraph_reset_node): Drop non-unit-at-a-time code.
689         (cgraph_finalize_function): Likewise.
690         (cgraph_analyze_function): Likewise.
691         (cgraph_finalize_compilation_unit): Likewise.
692         (cgraph_expand_function): Likewise.
693         (cgraph_optimize): Likesise.
694         (save_inline_function_body): Likewise.
695         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
696         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
697         * ipa-inline.c: Update comments.
698         (enum inlining_mode): remove INLINE_SPEED.
699         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
700         (cgraph_mark_inline_edge): Likewise.
701         (try_inline): Likewise.
702         (cgraph_decide_inlining_incrementally): Likewise.
703         (cgraph_gate_inlining): Remove.
704         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
705         (cgraph_gate_early_inlining): Likewise.
706         (gate_inline_passes): Remove.
707         (pass_inline_parameters, pass_ipa_inline): Remove gates.
708         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
709         pass_O0_always_inline): Remove.
710         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
711         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
712         * opts.c (no_unit_at_a_time_default): Remove.
713         (decode_options): Remove flag_unit_at_a_time reset and warning.
714         * opts.h (no_unit_at_a_time_default): Remove.
715         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
716         early in GNU dialect.
717         (merge_decls): Update comment; drop unit-at-a-time check.
718         (finish_decl): Likewise.
719         (grok_declaration): Remove flag_inline_trees code.
720         (finish_functions): Return on function returning non-void on all
721         statics.
722         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
723         * cfgexpand.c (expand_one_static_var): Remove.
724         (expand_one_var): Remove expand_one_static_var call.
725         (expand_used_vars_for_block): Remove flag_unit_a_time check.
726         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
727         and flag_unit_at_a-time compatibility checks.
728         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
729         * tree-inline.c (flag_inline_trees): Remove.
730         (inlinable_function_p): Don't check it.
731         (expand_call_inline): Remove non-unit-at-a-time code.
732         * tree-inline.h (flag_inline_trees): Remove.
733         * tree-optimize.c (execute_early_local_optimizations): Remove
734         unit-at-a-time checks.
735         (tree_rest_of_compilation): Likewise.
736         * combine.c (setup_incoming_promotions): Likewise.
737         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
738         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
739         * passes.c (pass_inline_parameters): Update comments; remove
740         O0_alwaysinline pass.
741         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
742         (execute_one_pass): Likewise.
743         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
744         (ix86_function_sseregparm): Likewise.
745         * arm.c (arm_function_in_section_p): Likewise.
746         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
747         * varpool.c: Update comments.
748         (decide_is_variable_needed): Remove unit-at-a-time checks.
749         (varpool_finalize_decl): Likewise.
750
751 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
752
753         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
754         to 2 instead of -1.
755         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal
756         to 2.
757
758 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
759
760         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
761         imp symbol extension.
762
763         2008-07-23  Ian Lance Taylor  <iant@google.com>
764
765         * tree-vrp.c (infer_value_range): Ignore asm statements when
766         looking for memory accesses for -fdelete-null-pointer-checks.
767
768 2008-07-24  Ben Elliston  <bje@au.ibm.com>
769
770         * config/spu/spu-c.c (__vector_keyword): New variable.
771         (vector_keyword): Likewise.
772         (spu_categorize_keyword): New function.
773         (spu_macro_to_expand): Likewise.
774         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
775         compiling an ISO C dialect.
776
777 2008-07-24  Ben Elliston  <bje@au.ibm.com>
778
779         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
780         conventional usage.
781
782 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
783
784         * configure: Regenerate.
785         * configure.ac: Require texinfo 4.7.
786         * doc/install.texi: Document texinfo 4.7 requirement.
787
788 2008-07-23  Martin Jambor  <mjambor@suse.cz>
789
790         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
791         rather than for DECL_SAVED_TREE.
792         * ipa-prop.c: Include diagnostic.h.
793         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
794         thoroughly.
795         (ipa_detect_param_modifications): Function rewritten from scratch.
796         (ipa_compute_jump_functions): Changed accesses to modification flags.
797         (ipa_free_node_params_substructures): Update flags destruction.
798         (ipa_node_duplication_hook): Update flags duplication.
799         (ipa_print_all_params_modified): Updated flag access.
800         * ipa-prop.h (struct ipa_param_flags): New structure.
801         (struct ipa_node_params): New field modification_analysis_done,
802         modified_flags changed into param_flags.
803         (ipa_is_ith_param_modified): Changed to use new flags.
804         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
805
806         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
807         ipa-cp.c and split into two functions.
808         (ipa_print_node_jump_functions): New function.
809         (compute_scalar_jump_functions): New function.
810         (type_like_member_ptr_p): New function.
811         (compute_pass_through_member_ptrs): New function.
812         (fill_member_ptr_cst_jump_function): New function.
813         (determine_cst_member_ptr): New function.
814         (compute_cst_member_ptr_arguments): New function.
815         (ipa_compute_jump_functions): Complete rewrite.
816         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
817         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
818         (struct ipa_member_ptr_cst): New structure.
819         (union jump_func_value): New field member_cst.
820         * ipa-cp.c (ipcp_lat_is_insertable): New function.
821         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
822         jump function types.
823         (ipcp_print_all_lattices): Slight fprintf rearrangement.
824         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
825         instead of ipcp_print_all_jump_functions.
826         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
827         only for replacable scalars.
828
829         * doc/invoke.texi (Optimize options): Add description of
830         -findirect-inlining.
831         * common.opt (flag_indirect_inlining): New flag.
832         * opts.c (decode_options): Set flag_indirect_inlining when
833         optimize >= 3.
834
835         * ipa-inline.c: Include ipa-prop.h.
836         (inline_indirect_intraprocedural_analysis): New function.
837         (inline_generate_summary): Allocate parameter and argument info
838         structures, call inline_indirect_intraprocedural_analysis on each
839         node when doing indirect inlining and deallocate indirect inlining
840         data structures in the end.
841         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
842         (free_all_ipa_structures_after_iinln): New function.
843         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
844         done.
845         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
846
847         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
848         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
849         of computing the frequency separately.
850         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
851         of computing the frequency separately.
852         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
853         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
854         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
855         (ipa_get_stmt_member_ptr_load_param): New function.
856         (ipa_is_ssa_with_stmt_def): New function.
857         (ipa_note_param_call): New function.
858         (ipa_analyze_call_uses): New function.
859         (ipa_analyze_stmt_uses): New function.
860         (ipa_analyze_params_uses): New function.
861         (ipa_free_node_params_substructures): Also free the param_calls linked
862         list.
863         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
864         (ipa_print_node_param_flags): New function.
865         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
866         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
867         * ipa-prop.h (struct ipa_param_flags): New field called.
868         (struct ipa_param_call_note): New structure.
869         (struct ipa_node_params): New fields param_calls and
870         uses_analysis_done.
871         (ipa_is_ith_param_called): New function.
872         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
873         ipa_analyze_params_uses and dump parameter flags.
874
875         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
876         ipa_propagate_indirect_call_infos if performing indirect inlining,
877         pass a new parameter new_edges to it.
878         (add_new_edges_to_heap): New fucntion.
879         (cgraph_decide_inlining_of_small_functions): New vector
880         new_indirect_edges for newly found indirect edges , call
881         ipa_propagate_indirect_call_infos after inlining.
882         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
883         inlining if performing indirect inlining.  Call
884         free_all_ipa_structures_after_iinln when doing so too.
885         (inline_generate_summary): Do not call
886         free_all_ipa_structures_after_iinln here.
887         * ipa-prop.c (update_jump_functions_after_inlining): New function.
888         (print_edge_addition_message): New function.
889         (update_call_notes_after_inlining): New function.
890         (propagate_info_to_inlined_callees): New function.
891         (ipa_propagate_indirect_call_infos): New function.
892         * ipa-prop.h: Include cgraph.h
893         (struct ipa_param_call_note): Fields reordered, new field processed.
894         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
895         flag indirect_call.
896         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
897         rediscovered call statements.
898         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
899         (dump_cgraph_node): Dump also the indirect_call flag.
900         (cgraph_clone_edge): Copy also the indirect_call flag.
901         * tree-inline.c (copy_bb): Do not check for fndecls from call
902         expressions, check for edge availability when moving clones.
903         (get_indirect_callee_fndecl): New function.
904         (expand_call_inline): If callee declaration is not apprent from
905         the statement, try calling get_indirect_callee_fndecl.  Do not
906         issue warnings or call sorry when not inlinings an indirect edge.
907         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
908
909         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
910         bit more frandly to matching.
911         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
912         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
913         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
914
915 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
916
917         PR 36907
918         * opth-gen.awk: Suppress function specific features when building
919         target libraries.
920         * optc-gen.awk: Ditto.
921
922 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
923
924         PR 35058
925         * diagnostic.c (pedwarn): Add opt parameter.
926         (pedwarn0): New.
927         * c-tree.h (pedwarn_init): Add opt parameter.
928         (pedwarn_c90): Likewise.
929         (pedwarn_c99): Likewise.
930         * c-errors.c (pedwarn_c99): Likewise.
931         (pedwarn_c90): Likewise.
932         * toplev.h (pedwarn): Update declaration.
933         (pedwarn0): Declare.
934         * c-lex.c: All calls to pedwarn changed.
935         * builtins.c: All calls to pedwarn changed.
936         * toplev.c: All calls to pedwarn changed.
937         * c-decl.c: All calls to pedwarn changed.
938         * c-typeck.c: All calls to pedwarn changed.
939         * c-common.c: All calls to pedwarn changed.
940         * c-parser.c: All calls to pedwarn changed.
941
942 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
943             Karthik Kumar  <karthikkumar@gmail.com>
944
945         * attribs.c (file scope): Include c-common.h.
946         (decl_attributes): Add support for #pragma GCC optimize and
947         #pragma GCC option.
948
949         * targhooks.c (default_can_inline_p): New function that is the
950         default for the TARGET_CAN_INLINE_P target hook.
951
952         * targhooks.h (default_can_inline_p): Add declaration.
953
954         * tree.c (cl_optimization_node): New static tree for building
955         OPTIMIZATION_NODE tree.
956         (cl_target_option_node): New static tree for building
957         TARGET_OPTION_NODE tree.
958         (cl_option_hash_table): New hash table for hashing
959         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
960         (cl_option_hash_hash): New function to provide the hash value for
961         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
962         (cl_option_hash_eq): New function to provide an equality test for
963         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
964         (tree_code_size): Add support for OPTIMIZATION_NODE and
965         TARGET_OPTION_NODE trees.
966         (tree_code_structure): Add support for OPTIMIZATION_NODE and
967         TARGET_OPTION_NODE trees.
968         (build_optimization_node): Build a tree that has all of the
969         current optimization options.
970         (build_target_option_node): Build a tree that has the target
971         options that might be changed on a per function basis.
972
973         * tree.h (file scope): Include options.h.
974         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
975         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
976         (TREE_OPTIMIZATION): Ditto.
977         (TREE_TARGET_SPECIFIC): Ditto.
978         (struct tree_function_decl): Add fields for remembering the
979         current optimization options and target specific options.
980         (struct tree_optimization_option): New tree variant that remembers
981         the optimization options.
982         (struct tree_target_option): New tree variant that remembers the
983         target specific flags that might change for compiling a particular
984         function.
985         (union tree_node): Include tree_optimization_option and
986         tree_target_option fields.
987         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
988         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
989         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
990         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
991         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
992         optimization and target options.
993         (optimization_default_node): New macro to refer to global_trees
994         field.
995         (optimization_current_node): Ditto.
996         (optimization_cold_node): Ditto.
997         (optimization_hot_node): Ditto.
998         (target_option_default_node): Ditto.
999         (target_option_current_node): Ditto.
1000         (current_option_pragma): Ditto.
1001         (current_optimize_pragma): Ditto.
1002
1003         * target.h (struct gcc_target): Add valid_option_attribute_p,
1004         target_option_save, target_option_restore, target_option_print,
1005         target_option_pragma_parse, and can_inline_p hooks.
1006
1007         * toplev.h (parse_optimize_options): Add declaration.
1008         (fast_math_flags_struct_set_p): Ditto.
1009
1010         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
1011         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
1012         optimize is used.
1013
1014         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
1015         tree_can_inline_p hook to see if one function can inline another.
1016         (cgraph_decide_inlining): Ditto.
1017         (cgraph_decide_inlining_incrementally): Ditto.
1018
1019         * opts.c (decode_options): Add support for running multiple times
1020         to allow functions with different target or optimization options
1021         than was specified on the command line.
1022         (fast_math_flags_struct_set_p): New function that is similar to
1023         fast_math_flags_set_p, except it uses the values in the
1024         cl_optimization structure instead of global variables.
1025
1026         * optc-gen.awk: Add support for TargetSave to allow a back end to
1027         declare new fields that need to be saved when using function
1028         specific options.  Include flags.h and target.h in the options.c
1029         source.  Add support for Save to indicate which options can be set
1030         for individual functions.  Generate cl_optimize_save,
1031         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
1032         cl_target_option_restore, cl_target_option_print functions to
1033         allow functions to use different optimization or target options.
1034
1035         * opt-functions.awk (var_type_struct): Return the type used for
1036         storing the field in a structure.
1037
1038         * opth-gen.awk: Add support for TargetSave to allow a back end to
1039         declare new fields that need to be saved when using function
1040         specific options.  Add support for Save to indicate which options
1041         can be set for individual functions.  Only generate one extern for
1042         Mask fields.  Generate cl_optimization and cl_target_option
1043         structures to remember optimization and target options.
1044
1045         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
1046         collecting new tree nodes.
1047         (TS_TARGET_OPTION): Ditto.
1048
1049         * c-decl.c (merge_decls): Merge function specific target and
1050         optimization options.
1051
1052         * function.c (invoke_set_current_function_hook): If the function
1053         uses different optimization options, change the global variables
1054         to reflect this.
1055
1056         * coretypes.h (struct cl_optimization): Add forward reference.
1057         (struct cl_target_option): Ditto.
1058
1059         * c-pragma.c (option_stack): New static vector to remember the
1060         current #pragma GCC option stack.
1061         (handle_pragma_option): New function to support #pragma GCC option
1062         to change target options.
1063         (optimize_stack): New static vector to remember the current
1064         #pragma GCC optimize stack.
1065         (handle_pragma_optimize): New function to support #pragma GCC
1066         optimize to change optimization options.
1067         (init_pragma): Add support for #pragma GCC optimize and #pragma
1068         GCC option.
1069
1070         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
1071         optimization options.
1072         (TARGET_OPTION_NODE): New tree code for remembering certain target
1073         options.
1074
1075         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
1076         TARGET_OPTION_NODE trees.
1077
1078         * common.opt (-O): Add Optimization flag.
1079         (-Os): Ditto.
1080         (-fmath-errno): Ditto.
1081         (-falign-functions): Add UInteger flag to make sure flag gets full
1082         int in cl_optimization structure.
1083         (-falign-jumps): Ditto.
1084         (-falign-labels): Ditto.
1085         (-falign-loops): Ditto.
1086         (-fsched-stalled-insns): Ditto.
1087         (-fsched-stalled-insns-dep): Ditto.
1088
1089         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
1090         definition.
1091         (TARGET_OPTION_SAVE): Ditto.
1092         (TARGET_OPTION_RESTORE): Ditto.
1093         (TARGET_OPTION_PRINT): Ditto.
1094         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1095         (TARGET_CAN_INLINE_P): Ditto.
1096         (TARGET_INITIALIZER): Add new hooks.
1097
1098         * tree-inline.c (tree_can_inline_p): New function to determine
1099         whether one function can inline another.  Check if the functions
1100         use compatible optimization options, and also call the backend
1101         can_inline_p hook.
1102
1103         * tree-inline.h (tree_can_inline_p): Add declaration.
1104
1105         * c-common.c (c_common_attribute): Add support for option and
1106         optimize attributes.
1107         (handle_option_attribute): Add support for the option attribute to
1108         allow the user to specify different target options for compiling a
1109         specific function.
1110         (handle_optimize_attribute): Add support for the optimize
1111         attribute to allow the user to specify different optimization
1112         options for compiling a specific function.
1113         (handle_hot_attribute): Turn on -O3 optimization for this one
1114         function if it isn't the default optimization level.
1115         (handle_cold_attribute): Turn on -Os optimization for this one
1116         function if it insn't the default optimization.
1117         (const_char_p): New const char * typedef.
1118         (optimize_args): New static vector to remember the optimization
1119         arguments.
1120         (parse_optimize_options): New function to set up the optimization
1121         arguments from either the optimize attribute or #pragma GCC
1122         optimize.
1123
1124         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
1125         (builtin_define_std): Ditto.
1126
1127         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
1128         Add t-i386 Makefile fragment to add i386-c.o and i386.o
1129         dependencies.
1130         (x86_64-*-*): Ditto.
1131
1132         * Makefile.in (TREE_H): Add options.h.
1133         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
1134
1135         * doc/extend.texi (option attribute): Document new attribute.
1136         (optimize attribute): Ditto.
1137         (hot attribute): Document hot attribute sets -O3.
1138         (cold attribute): Document cold attribute sets -Os.
1139         (#pragma GCC option): Document new pragma.
1140         (#pragma GCC optimize): Ditto.
1141
1142         * doc/options.texi (TargetSave): Document TargetSave syntax.
1143         (UInteger): Document UInteger must be used for certain flags.
1144         (Save): Document Save option to create target specific options
1145         that can be saved/restored on a function specific context.
1146
1147         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new
1148         macro.
1149         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1150
1151         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new
1152         hook.
1153         (TARGET_OPTION_SAVE): Ditto.
1154         (TARGET_OPTION_RESTORE): Ditto.
1155         (TARGET_OPTION_PRINT): Ditto.
1156         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1157         (TARGET_CAN_INLINE_P): Ditto.
1158
1159         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
1160         -mfpmath=sse,387.
1161         (-mfpmath=both): Ditto.
1162
1163 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
1164             Karthik Kumar  <karthikkumar@gmail.com>
1165
1166         * config/i386/i386.h (TARGET_ABM): Move switch into
1167         ix86_isa_flags.
1168         (TARGET_POPCNT): Ditto.
1169         (TARGET_SAHF): Ditto.
1170         (TARGET_AES): Ditto.
1171         (TARGET_PCLMUL): Ditto.
1172         (TARGET_CMPXCHG16B): Ditto.
1173         (TARGET_RECIP): Move switch into target_flags.
1174         (TARGET_FUSED_MADD): Ditto.
1175         (ix86_arch_features): Make an unsigned char type.
1176         (ix86_tune_features): Ditto.
1177         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
1178         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
1179         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
1180
1181         * config/i386/i386.opt (arch): New TargetSave field to define
1182         fields that need to be saved for function specific option
1183         support.
1184         (tune): Ditto.
1185         (fpmath): Ditto.
1186         (branch_cost): Ditto.
1187         (ix86_isa_flags_explicit): Ditto.
1188         (tune_defaulted): Ditto.
1189         (arch_specified): Ditto.
1190         (-m128-long-double): Add Save flag to save option for target
1191         specific option support.
1192         (-m80387): Ditto.
1193         (-maccumulate-outgoing-args): Ditto.
1194         (-malign-double): Ditto.
1195         (-malign-stringops): Ditto.
1196         (-mfancy-math-387): Ditto.
1197         (-mhard-float): Ditto.
1198         (-mieee-fp): Ditto.
1199         (-minline-all-stringops): Ditto.
1200         (-minline-stringops-dynamically): Ditto.
1201         (-mms-bitfields): Ditto.
1202         (-mno-align-stringops): Ditto.
1203         (-mno-fancy-math-387): Ditto.
1204         (-mno-push-args): Ditto.
1205         (-mno-red-zone): Ditto.
1206         (-mpush-args): Ditto.
1207         (-mred-zone): Ditto.
1208         (-mrtd): Ditto.
1209         (-msseregparm): Ditto.
1210         (-mstack-arg-probe): Ditto.
1211         (-m32): Ditto.
1212         (-m64): Ditto.
1213         (-mmmx): Ditto.
1214         (-m3dnow): Ditto.
1215         (-m3dnowa): Ditto.
1216         (-msse): Ditto.
1217         (-msse2): Ditto.
1218         (-msse3): Ditto.
1219         (-msse4.1): Ditto.
1220         (-msse4.2): Ditto.
1221         (-msse4): Ditto.
1222         (-mno-sse4): Ditto.
1223         (-msse4a): Ditto.
1224         (-msse5): Ditto.
1225         (-mrecip): Move flag into target_flags.
1226         (-mcld): Ditto.
1227         (-mno-fused-madd): Ditto.
1228         (-mfused-madd): Ditto.
1229         (-mabm): Move flag into ix86_isa_flags.
1230         (-mcx16): Ditto.
1231         (-mpopcnt): Ditto.
1232         (-msahf): Ditto.
1233         (-maes): Ditto.
1234         (-mpclmul): Ditto.
1235
1236         * config/i386/i386-c.c: New file for #pragma support.
1237         (ix86_target_macros_internal): New function to #define or #undef
1238         target macros based when the user uses the #pragma GCC option to
1239         change target options.
1240         (ix86_pragma_option_parse): New function to add #pragma GCC option
1241         support.
1242         (ix86_target_macros): Move defining the target macros here from
1243         TARGET_CPU_CPP_BUILTINS in i386.h.
1244         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
1245         defined, initialize any subtarget #pragmas.
1246
1247         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
1248         REGISTER_TARGET_PRAGMAS.
1249
1250         * config/i386/t-i386: New file for x86 dependencies.
1251         (i386.o): Make dependencies mirror the include files used.
1252         (i386-c.o): New file, add dependencies.
1253
1254         * config/i386/i386-protos.h (override_options): Add bool
1255         argument.
1256         (ix86_valid_option_attribute_tree): Add declaration.
1257         (ix86_target_macros): Ditto.
1258         (ix86_register_macros): Ditto.
1259
1260         * config/i386/i386.c (ix86_tune_features): Move initialization of
1261         the target masks to initial_ix86_tune_features to allow functions
1262         to have different target options.  Make type unsigned char,
1263         instead of unsigned int.
1264         (initial_ix86_tune_features): New static vector to hold processor
1265         masks for the tune variables.
1266         (ix86_arch_features): Move initialization of the target masks to
1267         initial_ix86_arch_features to allow functions to have different
1268         target options.  Make type unsigned char, instead of unsigned
1269         int.
1270         (initial_ix86_arch_features): New static vector to hold processor
1271         masks for the arch variables.
1272         (enum ix86_function_specific_strings): New enum to describe the
1273         string options used for attribute((option(...))).
1274         (ix86_target_string): New function to return a string that
1275         describes the target options.
1276         (ix86_debug_options): New function to print the current options in
1277         the debugger.
1278         (ix86_function_specific_save): New function hook to save the
1279         function specific global variables in the cl_target_option
1280         structure.
1281         (ix86_function_specific_restore): New function hook to restore the
1282         function specific variables from the cl_target_option structure to
1283         the global variables.
1284         (ix86_function_specific_print): New function hook to print the
1285         target specific options in the cl_target_option structure.
1286         (ix86_valid_option_attribute_p): New function hook to validate
1287         attribute((option(...))) arguments.
1288         (ix86_valid_option_attribute_tree): New function that is common
1289         code between attribute((option(...))) and #pragma GCC option
1290         support that parses the options and returns a tree holding the
1291         options.
1292         (ix86_valid_option_attribute_inner_p): New helper function for
1293         ix86_valid_option_attribute_tree.
1294         (ix86_can_inline_p): New function hook to decide if one function
1295         can inline another on a target specific basis.
1296         (ix86_set_current_function); New function hook to switch target
1297         options if the user used attribute((option(...))) or #pragma GCC
1298         option.
1299         (ix86_tune_defaulted): Move to static file scope from
1300         override_options.
1301         (ix86_arch_specified): Ditto.
1302         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
1303         ix86_isa_flags.
1304         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
1305         (OPTION_MASK_ISA_ABM_SET): Ditto.
1306         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
1307         (OPTION_MASK_ISA_CX16_SET): Ditto.
1308         (OPTION_MASK_ISA_SAHF_SET): Ditto.
1309         (OPTION_MASK_ISA_AES_UNSET): Ditto.
1310         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
1311         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
1312         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
1313         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
1314         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
1315         (struct ptt): Move to static file scope from override_options.
1316         (processor_target_table): Ditto.
1317         (cpu_names): Ditto.
1318         (ix86_handle_option): Add support for options that are now isa
1319         options.
1320         (override_options): Add support for declaring functions that
1321         support different target options than were specified on the
1322         command line.  Move struct ptt, processor_target_table, cpu_names,
1323         ix86_tune_defaulted, ix86_arch_specified to static file scope.
1324         Add bool argument.  Fix up error messages so the appropriate error
1325         is given for either command line or attribute.
1326         (ix86_previous_fndecl): New static to remember previous function
1327         declaration to see if we need to change target options.
1328         (ix86_builtins_isa): New array to record the ISA of each builtin
1329         function.
1330         (def_builtin): Always create the builtin function, even if the
1331         current ISA doesn't support it.
1332         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
1333         tests for those builtins.
1334         (ix86_init_builtins): Remove TARGET_MMX test for calling
1335         ix86_init_mmx_sse_builtins.
1336         (ix86_expand_builtin): If the current ISA doesn't support a given
1337         builtin, signal an error.
1338         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
1339         (TARGET_SET_CURRENT_FUNCTION): Ditto.
1340         (TARGET_OPTION_SAVE): Ditto.
1341         (TARGET_OPTION_RESTORE): Ditto.
1342         (TARGET_OPTION_PRINT): Ditto.
1343         (TARGET_CAN_INLINE_P): Ditto.
1344
1345 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1346
1347        * c-typeck.c (build_external_ref): Don't call assemble_external.
1348        * final.c (output_operand): Call assemble_external.
1349
1350 2008-07-21  DJ Delorie  <dj@redhat.com>
1351
1352         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
1353         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1354
1355 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1356
1357         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
1358         original insn and splitter contents into ...
1359         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
1360         flag_unsafe_math_optimizations.  Add dummy scratch register.
1361         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
1362         !flag_unsafe_math_optimizations.  Returns number with next
1363         highest magnitude if this is still less or equal to the true
1364         quotient in magnitude.
1365
1366 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
1367
1368         * Makefile.in: Replace toplev.h with TOPLEV_H.
1369         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
1370         * c-lex.c (fe_file_change): Don't set in_system_header.
1371         * c-parser.c (c_token): Remove in_system_header.
1372         (c_lex_one_token): Don't set in_system_header.
1373         (c_parser_set_source_position_from_token): Don't set in_system_header.
1374         * diagnostic.c (diagnostic_report_diagnostic): Use location from
1375         diagnostic_info.
1376         (warning_at): New.
1377         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
1378         * flags.h (in_system_header): Remove.
1379         * function.c (saved_in_system_header): Remove.
1380         (push_cfun): Don't set in_system_header.
1381         (pop_cfun): Don't set in_system_header.
1382         (push_struct_function): Don't set in_system_header.
1383         * input.h (expanded_location): Add sysp.
1384         (in_system_header_at): New.
1385         (in_system_header): New.
1386         * toplev.c (in_system_header): Remove.
1387         * toplev.h: Include input.h
1388         (warning_at): New.
1389         * tree-cfg.c (execute_warn_function_return): Call warning_at.
1390         * tree-ssa.c (warn_uninit): Call warning_at.
1391         (warn_uninitialized_var): Update calls to warn_uninit.
1392         (warn_uninitialized_phi): Update calls to warn_uninit.
1393         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
1394         (expand_location): Initialize xloc.sysp.
1395         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
1396         (tree_decl_with_vis): Remove in_system_header_flag.
1397
1398 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1399
1400         PR target/36822
1401         * recog.c (asm_operand_ok): Change the order of the extra
1402         memory constraint checks.
1403
1404 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1405
1406         PR tree-opt/36879
1407         * tree-switch-conversion.c (build_one_array): Call
1408         varpool_mark_needed_node and varpool_finalize_decl
1409         instead of assemble_variable.
1410
1411 2008-07-19  Jan Hubicka  <jh@suse.cz>
1412
1413         * cgraph.c (cgraph_add_new_function): Do early local passes.
1414         * tree-nrv.c (gate_pass_return_slot): New gate.
1415         (pass_nrv): Add the gate.
1416         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
1417         functions.
1418         (coalesce_ssa_name): Coalesce SSA names.
1419         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
1420         not optimizing so unused user vars remains visible.
1421         * common.opt (flag_tree_ter): Always enable by default.
1422         * tree-ssa-ter.c: Include flags.h
1423         (is_replaceable_p): Check that locations match; when aliasing is missing
1424         be conservative about loads.
1425         * tree-optimize.c (gate_init_datastructures): Remove.
1426         (pass_init_datastructures): New.
1427         * passes.c: Reorder passes so we always go into SSA.
1428
1429 2008-07-19  Jan Hubicka  <jh@suse.cz>
1430
1431         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
1432         * doc/invoke.texi (--combine): Likewise.
1433         (-finline-functions-called-once): Update levels when enabled.
1434         (-funit-at-a-time): Document new behaviour.
1435         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
1436         -fno-section-anchors when disabled explicitly.
1437         (inline params): They are not ignored now.
1438         (precompiled headers): Remove unit-at-a-time as being incompatible.
1439         * opts.c (decode_options): Handle unit-at-a-time as alias;
1440         imply -fno-section-anchors when toplevel reorder is disabled
1441         explicitly.
1442         * common.opt (ftoplevel-reorder): Set default value to 2.
1443         (funit-at-a-time): Set default value to 1.
1444         * config/rs6000/rs6000.c (optimization_options): Set section anchors
1445         to 2.
1446
1447 2008-07-19  Jan Hubicka  <jh@suse.cz>
1448
1449         * builtins.c (expand_builtin_int_roundingfn,
1450         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
1451         it is not useful.
1452
1453 2008-07-19  Richard Guenther  <rguenther@suse.de>
1454
1455         PR bootstrap/36864
1456         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
1457         * tree-ssa-sccvn.c (get_constant_value_id): New function.
1458         * tree-ssa-pre.c (get_expr_value_id): For newly created
1459         constant value-ids make sure to add the expression to its
1460         expression-set.
1461
1462 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
1463
1464         PR middle-end/36877
1465         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
1466         return value of the builtin is ignored.
1467
1468 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1469
1470         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
1471         bits, a C conformant malloc implementation has to provide.
1472         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
1473
1474 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
1475
1476         PR target/36780
1477         PR target/36827
1478         * reload.c (find_reloads_subreg_address): Only reload address if
1479         reloaded == 0, not for reloaded != 1.
1480
1481         Revert:
1482         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1483         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1484         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1485         m32c_legitimize_reload_address.
1486
1487         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1488         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1489         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1490
1491 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1492
1493         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
1494         argument, saying whether nested array are to be collapsed
1495         into a single array type DIE with multiple subscripts.
1496         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
1497         issues, centralize the nested array types collapsing control and
1498         disable the transformation for Ada.
1499
1500 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
1501
1502         PR target/36786
1503         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
1504         x86_64_shift_adj.
1505         (x86_64_shift_adj_2): New expander.
1506         (x86_64_shift_adj_3): Ditto.
1507         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
1508         to split TImode operands.
1509         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
1510         (ix86_split_lshr): Ditto.
1511
1512 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
1513
1514         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
1515         and __CHAR32_TYPE__.
1516         * c-typeck.c (digest_init): Support char16_t and char32_t.
1517         (set_nonincremental_init_from_string): Idem.
1518
1519 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1520
1521         PR middle-end/36859
1522         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
1523         PREFERRED_STACK_BOUNDARY.
1524         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1525
1526 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1527
1528         PR middle-end/36858
1529         * function.c (locate_and_pad_parm): Cap boundary earlier.
1530
1531 2008-07-17  Julian Brown  <julian@codesourcery.com>
1532
1533         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
1534         no-op for targets which don't use DLLs.
1535
1536 2008-07-17  Martin Jambor  <mjambor@suse.cz>
1537
1538         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
1539         that nodes are relevant by examining the node->analyzed flag.
1540         (ipcp_init_stage): Check which nodes are relevant, assert that the
1541         relevant ones are also required.
1542         (ipcp_propagate_stage): Check on the side arrays are properly
1543         allocated.
1544         (ipcp_print_all_jump_functions): Make sure not to touch any node
1545         that is not analyzed or an edge that does not have a corresponding
1546         entry in the on-the-side vectors.
1547         (ipcp_function_scale_print): Likewise.
1548         (ipcp_update_callgraph): Check that the node is relevant.
1549         (ipcp_insert_stage): Check that the node is relevant.  Check there is
1550         an info for every node and edge.
1551         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
1552         (ipa_print_all_tree_maps): Likewise and a new variable info.
1553         (ipa_print_all_params_modified): Likewise.
1554         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
1555
1556 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
1557
1558         PR target/25343
1559         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
1560
1561 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
1562
1563         PR rtl-optimization/36753
1564         * fwprop.c (use_killed_between): Don't shortcut
1565         single-definition global registers.
1566
1567 2008-07-16  Jan Hubicka  <jh@suse.cz>
1568
1569         * cgraph.h (varpool_empty_needed_queue): Declare.
1570         * cgraphunit.c (output_in_order): Mark all variables as needed;
1571         empty the queue.
1572         * varpool.c (varpool_assemble_node): Update debug queue.
1573         (varpool_assemble_pending_decls): Don't do it here.
1574         (varpool_empty_needed_queue):  New function.
1575
1576 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1577
1578         * recog.c (peephole2_optimize): Fix formatting.
1579
1580 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1581
1582         * c-pch.c (get_ident): Avoid C++ keywords.
1583         * combine-stack-adj.c (single_set_for_csa): Likewise.
1584         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
1585         output_asm_insn): Likewise.
1586         * reload.c (push_secondary_reload, find_reusable_reload,
1587         push_reload, combine_reloads, find_reloads,
1588         debug_reload_to_stream): Likewise.
1589         * reload.h (struct reload): Likewise.
1590         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
1591         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
1592         emit_output_reload_insns): Likewise.
1593         * targhooks.c (default_secondary_reload): Likewise.
1594         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
1595
1596 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1597
1598         * recog.c (validate_change_1, validate_change,
1599         validate_unshare_change, validate_replace_rtx_1, struct
1600         funny_match, constrain_operands, peephole2_optimize): Avoid C++
1601         keywords.
1602         * reload.c (push_secondary_reload, secondary_reload_class,
1603         scratch_reload_class, find_valid_class, find_reusable_reload,
1604         push_reload, find_dummy_reload, find_reloads_address_1,
1605         find_reloads_address_part, find_equiv_reg): Likewise.
1606         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1607         choose_reload_regs): Likewise.
1608         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1609         Likewise.
1610         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1611         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1612         * sched-rgn.c (concat_INSN_LIST): Likewise.
1613         * stor-layout.c (mode_for_size, mode_for_size_tree,
1614         smallest_mode_for_size): Likewise.
1615
1616 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1617
1618         * cfg.c (dump_reg_info): Avoid C++ keywords.
1619         * dwarf2asm.c (dw2_force_const_mem,
1620         dw2_asm_output_encoded_addr_rtx): Likewise.
1621         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1622         * expmed.c (expand_shift): Likewise.
1623         * global.c (find_reg): Likewise.
1624         * graph.c (draw_edge): Likewise.
1625         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1626         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
1627         widen_clz, widen_bswap, expand_parity, expand_unop,
1628         emit_cmp_and_jump_insn_1): Likewise.
1629         * postreload.c (reload_cse_simplify_operands): Likewise.
1630         * ra.h (add_neighbor): Likewise.
1631         * reg-stack.c (remove_regno_note, change_stack): Likewise.
1632         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
1633         record_reg_classes, copy_cost, record_address_regs,
1634         invalid_mode_change_p): Likewise.
1635         * regrename.c (regrename_optimize, scan_rtx_reg,
1636         dump_def_use_chain, find_oldest_value_reg,
1637         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
1638
1639 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1640
1641         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
1642         MASK_POWERPC64 for power4 in previous commit.
1643
1644 2008-07-16  Olivier Hainque  <hainque@adacore.com>
1645
1646         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
1647         instead of bare conversion to cast const-ness away.
1648
1649 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
1650
1651         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
1652         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
1653         * config/xtensa/xtensa.c (xtensa_function_value): New function.
1654         (TARGET_FUNCTION_VALUE): Define.
1655
1656 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1657
1658         * config/rs6000/rs6000.c (processor_target_table): Add
1659         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
1660
1661 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1662
1663         PR target/36827
1664         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1665         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1666         m32c_legitimize_reload_address.
1667
1668 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
1669
1670        * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
1671        DECL_IN_SYSTEM_HEADER in sync.
1672
1673 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
1674
1675         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
1676         * tree-ssa-pre.c (pre_expr_eq): Ditto
1677         (get_constant_for_value_id): Take a type as an argument.
1678         (fully_constant_expression): Pass in type.
1679         (find_or_generate_expression): Short circuit constant case.
1680         (create_expression_by_pieces): Remove special casing of
1681         pointer_plus.
1682         (do_regular_insertion): Short circuit constant case.
1683         (do_partial_partial_insertion): Ditto.
1684
1685 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1686
1687         PR target/36782
1688         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
1689
1690 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
1691
1692         * config/xtensa/libgcc-xtensa.ver: New file.
1693         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
1694
1695 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1696
1697         * df-problems.c (df_set_note): Avoid C++ keywords.
1698         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
1699         * dse.c (record_store, remove_useless_values): Likewise.
1700         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
1701         gen_reg_rtx_offset, operand_subword, change_address_1,
1702         change_address, adjust_address_1, offset_address,
1703         widen_memory_access, emit_copy_of_insn_after): Likewise.
1704         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
1705         * fwprop.c (should_replace_address, propagate_rtx_1,
1706         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
1707         Likewise.
1708         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
1709         gcse_emit_move_after, update_ld_motion_stores): Likewise.
1710         * lcm.c (compute_insert_delete, pre_edge_lcm,
1711         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
1712         * lower-subreg.c (resolve_reg_notes): Likewise.
1713         * mode-switching.c (optimize_mode_switching): Likewise.
1714
1715 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1716
1717         * bt-load.c (add_btr_def, migrate_btr_def,
1718         branch_target_load_optimize): Avoid C++ keywords.
1719         * caller-save.c (insert_restore, insert_save, insert_one_insn):
1720         Likewise.
1721         * combine.c (subst, simplify_set, make_extraction,
1722         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
1723         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
1724         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
1725
1726 2008-07-15  Richard Guenther  <rguenther@suse.de>
1727
1728         PR middle-end/36369
1729         * c-common.c (strict_aliasing_warning): Do not warn for
1730         TYPE_REF_CAN_ALIAS_ALL pointers.
1731         (c_common_get_alias_set): may_alias types are not special.
1732         * tree.c (build_pointer_type_for_mode): Look up the may_alias
1733         attribute and set can_ref_all accordingly.
1734         (build_reference_type_for_mode): Likewise.
1735         * doc/extend.texi (may_alias): Clarify.
1736
1737 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1738
1739         PR target/36780
1740         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1741         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1742
1743 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1744
1745         PR target/31568
1746         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
1747         gcc_assert, instead call output_operand_lossage.
1748
1749 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
1750
1751         * builtins.c (std_canonical_va_list): Treat structure based
1752         va_list types.
1753
1754 2008-07-15  Ben Elliston  <bje@au.ibm.com>
1755
1756         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
1757
1758 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
1759
1760         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
1761         is set.
1762
1763 2008-07-14  Jan Hubicka  <jh@suse.cz>
1764
1765         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
1766         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
1767         fix predicates and constraints.
1768         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
1769         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
1770
1771 2008-07-14  Doug Kwan  <dougkwan@google.com>
1772
1773         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
1774         additional option file arm/eabi.opt.
1775         * config/arm/eabi.h (File): New configuration file for EABI targets.
1776         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
1777         SUBSUBTARGET_EXTRA_SPECS.
1778         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
1779         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
1780         from STARTFILE_SPEC so that it can be referenced in an override.
1781         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
1782         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
1783         can be referenced in an override.
1784         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
1785         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
1786         so that it can be referenced in an override.
1787         (LINK_SPEC): Use BPABI_LINK_SPEC.
1788         * config/arm/eabi.opt (File): New.
1789
1790 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1791
1792         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
1793         (FIXED_VALUE_H): New variable.
1794         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
1795         input.h, fixed-value.h.
1796         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
1797         (BASIC_BLOCK_H): Use $(BITMAP_H).
1798         (FUNCTION_H): Add varray.h.
1799         (IPA_REFERENCE_H): Use $(BITMAP_H).
1800         (CGRAPH_H): Add $(BASIC_BLOCK_H).
1801         (DF_H): Use $(BITMAP_H).
1802         (GGC_H): Add statistics.h.
1803         (INSN_ADDR_H): New.
1804         (INSN_ATTR_H): Use it.
1805         (SYSTEM_H): Add safe-ctype.h, filenames.h.
1806         (INPUT_H): New.
1807         (SYMTAB_H): Add $(OBSTACK_H).
1808         (CPP_INTERNAL_H): New.
1809         (TREE_DUMP_H): Add tree-pass.h.
1810         (TREE_FLOW_H): Use $(BITMAP_H)
1811         (PRETTY_PRINT_H): Use $(INPUT_H).
1812         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
1813         (GSTAB_H): New.
1814         (BITMAP_H): New.
1815         (many object files): Fix lots of header dependencies throughout.
1816
1817 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1818
1819         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
1820         New macros.
1821         (s-gtyp-input): Use them to write tmp-gi.list.
1822         (echo_to_gi.list): Remove.
1823
1824 2008-07-14  Richard Guenther  <rguenther@suse.de>
1825
1826         * tree-ssa-sccvn.c (pre_info): Remove.
1827         (switch_to_PRE_table): Likewise.
1828         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
1829         (set_hashtable_value_ids): Do not create value-ids for the
1830         optimistic tables.
1831         (run_scc_vn): Remove double test.  Remove bogus special-case
1832         in value-number printing.
1833         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
1834         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
1835         SSA_NAME_VALUE.
1836         * tree-flow-inline.h (get_value_handle): Remove.
1837         * tree-flow.h (get_value_handle): Remove.
1838
1839 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1840
1841         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
1842         in which we generate arithmetics is not a subrange.
1843
1844 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1845
1846         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
1847
1848 2008-07-14  Richard Guenther  <rguenther@suse.de>
1849
1850         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
1851
1852 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
1853
1854         PR target/36745
1855         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
1856         reload for symbol refs moved to r0 with -fPIC.
1857         (legitimize_pic_address): Use the target register as temporary
1858         reg if possible.
1859         (emit_symbolic_move): Adjust comment.
1860         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
1861         New expanders.
1862
1863 2008-07-14  Ben Elliston  <bje@au.ibm.com>
1864
1865         * c-common.h (C_CPP_HASHNODE): New macro.
1866         * coretypes.h (struct cpp_token): Forward declare.
1867         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1868         the context-sensitive keyword method.
1869         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
1870         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
1871         expand_bool_pixel): New.
1872         (altivec_categorize_keyword): New function.
1873         (init_vector_keywords): New function.
1874         (rs6000_macro_to_expand): Likewise.
1875         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
1876         compiling an ISO C dialect.
1877
1878 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
1879
1880         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
1881         (create_expression_by_pieces): Fix typo.
1882         (do_regular_insertion): Use debug counter here too.
1883
1884 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
1885
1886         PR target/35492.
1887         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
1888         CONST_OK_FOR_LETTER_P.  All port-local users changed.
1889         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
1890         implement Kp matching power-of-two.
1891         (CONSTRAINT_LEN): Define to match.
1892         * config/cris/cris.md: Replace all use of constraint K with Kc.
1893         ("*btst*): Use Kp for operand 0 of last alternative.
1894
1895 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1896
1897         PR testsuite/36440
1898         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
1899         and quad formats.
1900
1901 2008-07-13  Jan Hubicka  <jh@suse.cz>
1902
1903         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
1904         to be mangled too.
1905
1906 2008-07-13  Richard Guenther  <rguenther@suse.de>
1907
1908         PR middle-end/36811
1909         * langhooks.c (lhd_print_error_function): Deal with recursive
1910         BLOCK trees.
1911
1912 2008-07-12  Jan Hubicka  <jh@suse.cz>
1913
1914         * cgraph.c (assembler_name_hash): New static var.
1915         (hash_node_by_assembler_name, eq_assembler_name): New.
1916         (cgraph_node_for_asm): Use hashtable.
1917         (cgraph_remove_node): Maintain hashtable.
1918         (change_decl_assembler_name): Sanity check that names are not changing
1919         after aliasing was processed.
1920         * cgraph.h (varpoon_node): Add next GGC marker.
1921         * tree.c (decl_assembler_name_equal): Constify.
1922         (decl_assembler_name_hash): New.
1923         * tree.h (decl_assembler_name_equal): Constify.
1924         (decl_assembler_name_hash): Update.
1925
1926 2008-07-12  David Daney  <ddaney@avtrex.com>
1927
1928         * config/mips/driver-native.c (host_detect_local_cpu): Handle
1929         sb1 and r5000 cpus.
1930
1931 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1932
1933         * doc/md.texi: Document the MIPS "v" constraint.
1934         * config/mips/mips.h (reg_class): Revert last change.
1935         (REG_CLASS_NAMES): Likewise.
1936         (REG_CLASS_CONTENTS): Likewise.
1937         * config/mips/mips.c (mips_regno_to_class): Likewise.
1938         * config/mips/constraints.md (v): Likewise, but add documentation.
1939         Add a comment to say that this constraint should not be used in
1940         gcc code.
1941
1942 2008-07-11  DJ Delorie  <dj@redhat.com>
1943
1944         * config/h8300/h8300.md (length): Fix branch offset limit.
1945
1946 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
1947
1948         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
1949         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
1950         (avr_hard_regno_scratch_ok): New function.
1951         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1952         * config/avr/avr.md (all peepholes that request a scratch register):
1953         Remove avr_peep2_scratch_safe use.
1954
1955 2008-07-11  Tom Tromey  <tromey@redhat.com>
1956             Ian Lance Taylor  <iant@google.com>
1957
1958         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
1959         (struct c_common_resword): Define.
1960         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
1961         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
1962         (c_common_reswords, num_c_common_reswords): Declare.
1963         * c-common.c (c_common_reswords): New global const array.
1964         (num_c_common_reswords): New const int.
1965         * c-parser.c (struct resword, reswords): Don't define.
1966         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
1967         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
1968         than reswords.  If warning about C++ keywords, give them a special
1969         RID code.
1970         (c_lex_one_token): Warn about C++ keywords.  Call
1971         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
1972         (c_parser_external_declaration): Look for RID_xxx rather than
1973         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
1974         (c_parser_statement_after_labels): Likewise.
1975         (c_parser_objc_class_instance_variables): Likewise.
1976         (c_parser_objc_class_declaration): Likewise.
1977         (c_parser_objc_try_catch_statement): Likewise.
1978         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
1979         (declspecs_add_type): Likewise.
1980
1981 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
1982
1983         * ggc-page.c (alloc_page):
1984         Substituting xmalloc, xcalloc with
1985         XNEWVEC and XCNEWVAR macros which add the
1986         needed casts.
1987
1988 2008-07-11  Richard Guenther  <rguenther@suse.de>
1989
1990         PR tree-optimization/36765
1991         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
1992         aliases from HEAP vars to SMTs.
1993
1994 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1995
1996         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
1997         * configure.ac (loose_warn): Move -Wc++-compat from here...
1998         (strict_warn): ...to here.
1999         * configure: Regenerate.
2000
2001 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
2002
2003         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
2004         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
2005         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
2006         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
2007         excluding more specific h8300-*-* and sh-*-* targets.
2008
2009 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
2010
2011         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
2012         (eliminate): Ditto.
2013         (execute_pre): Call loop_optimizer_finalize in early exit.
2014
2015 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
2016
2017         PR middle-end/36790
2018         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
2019         uids in the bitmap, not just VAR_DECL uids.
2020
2021         PR rtl-optimization/36419
2022         * combine-stack-adj.c (adjust_frame_related_expr): New function.
2023         (combine_stack_adjustments_for_block): Call it if needed.  Delete
2024         correct insn.
2025         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
2026         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
2027         prologue sp adjustment.
2028
2029 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
2030
2031         PR other/28322
2032         * opts.c (print_ignored_options): Report postponed diagnostics for
2033         unknown -Wno-* options as warnings, not errors.
2034         (postpone_unknown_option_error): Renamed to...
2035         (postpone_unknown_option_warning): ... this.
2036
2037 2008-07-09  Doug Kwan  <dougkwan@google.com>
2038
2039         Revert:
2040         2008-07-08  Doug Kwan  <dougkwan@google.com>
2041
2042         * config/arm/arm.opt (mandroid): New option.
2043         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2044         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2045         (CC1_SPEC): Same.
2046         (CC1PLUS_SPEC): Same.
2047         (LIB_SPEC): Same.
2048         (STARTFILE_SPEC): Same.
2049         (ENDFILE_SPEC): Same.
2050         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2051         used.
2052
2053 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
2054
2055         PR target/35802
2056         * config/mips/mips.h (reg_class): Remove V1_REG.
2057         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
2058         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
2059         instead of V1_REGS.
2060         (mips_get_tp): New function.
2061         (mips_legitimize_tls_address): Use it.
2062         * config/mips/constraints.md (v): Delete.
2063         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
2064         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
2065         After reload, split into a move and ...
2066         (*tls_get_tp_<mode>_split): ...this new instruction.
2067
2068 2008-07-09  David Daney  <ddaney@avtrex.com>
2069
2070         * config/mips/driver-native.c: Include coretypes.h and tm.h.
2071
2072 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
2073
2074         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
2075         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
2076         Add c argument.
2077         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
2078         htab_delete should be called.  Don't free c.
2079         (lookup_tmp_var): Create temp_htab lazily.
2080         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2081         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
2082         callers.
2083         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2084         lower_omp_ordered, lower_omp_critical, lower_omp_for,
2085         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
2086         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
2087         * tree-sra.c (generate_element_init): Likewise.
2088         * tree-mudflap.c (execute_mudflap_function_ops,
2089         execute_mudflap_function_decls): Likewise.
2090         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
2091         * tree-gimple.h (struct gimplify_ctx): New type.
2092         (push_gimplify_context): Adjust prototype.
2093
2094 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
2095
2096         * tree-ssa-pre.c (phi_translate_1): Update placement of
2097         add_to_value calls.
2098
2099 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
2100
2101         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
2102         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
2103         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
2104         * targhooks.c (default_hard_regno_scratch_ok): New function.
2105         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
2106         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
2107         * recog.c:  Include "target.h".
2108         (peep2_find_free_register): Add check for global regs. Add target
2109         specific check.
2110         * Makefile.in (recog.o): Depend on target.h.
2111
2112 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2113
2114         * config/sh/sh.c (sh_canonical_va_list_type): New.
2115         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
2116
2117 2008-07-09  Raksit Ashok <raksit@google.com>
2118
2119         * doc/invoke.texi (Option Summary): Mention new option
2120         -Wdisallowed-function-list=...
2121         (Warning Options): Document -Wdisallowed-function-list=...
2122         * common.opt (Wdisallowed-function-list=): New flag.
2123         * flags.h (warn_disallowed_functions): External definition of new
2124         boolean warning flag.
2125         (warn_if_disallowed_function_p): Declare new function.
2126         * opts.c (warning_disallowed_functions): New static variable.
2127         (warn_disallowed_functions): New boolean warning flag.
2128         (warn_if_disallowed_function_p): New function.
2129         (add_comma_separated_to_vector): Rename
2130         add_instrument_functions_exclude_list to this.
2131         (common_handle_option): Handle new option. Rename calls to
2132         add_instrument_functions_exclude_list into calls to
2133         add_comma_separated_to_vector.
2134         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
2135         based on flag warn_disallowed_functions.
2136
2137 2008-07-09  Christian Bruel  <christian.bruel@st.com>
2138
2139         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
2140          instead of get_attr_length.
2141
2142 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2143
2144         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
2145         keywords.
2146         * genemit.c (gen_insn): Likewise.
2147         * gengtype.c (note_def_vec): Likewise.
2148         * gengtype.h (note_def_vec): Likewise.
2149         * genoutput.c (struct data, output_insn_data, process_template,
2150         gen_expand, gen_split, note_constraint): Likewise.
2151         * genrecog.c (new_decision, add_to_sequence, factor_tests,
2152         make_insn_sequence): Likewise.
2153         * gensupport.c (record_insn_name): Likewise.
2154
2155 2008-07-08  Doug Kwan  <dougkwan@google.com>
2156
2157         * config/arm/arm.opt (mandroid): New option.
2158         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2159         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2160         (CC1_SPEC): Same.
2161         (CC1PLUS_SPEC): Same.
2162         (LIB_SPEC): Same.
2163         (STARTFILE_SPEC): Same.
2164         (ENDFILE_SPEC): Same.
2165         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2166         used.
2167
2168 2008-07-08  Raksit Ashok  <raksit@google.com>
2169
2170         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
2171         (set_storage_via_setmem): Fix expected_align parameter.
2172         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
2173         missing from the list.
2174         * doc/md.texi (movmem): Explicitly state that expected alignment is
2175         to be expressed in bytes.
2176         (setmem): Explicitly state that expected alignment is to be expressed
2177         in bytes.
2178
2179 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
2180
2181         * reload.c (find_reloads_subreg_address): Do not require validity
2182         of address in original mode before reloading address.
2183
2184 2008-07-07  Tianwei Sheng  <tianweis@google.com>
2185
2186         * df-core.c (df_remove_problem): Adjust the access to avoid out of
2187         bounds array access.
2188
2189 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
2190
2191         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
2192
2193 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
2194
2195         Fix PR tree-optimization/23455
2196         Fix PR tree-optimization/35286
2197         Fix PR tree-optimization/35287
2198         * Makefile.in (OBJS-common): Remove tree-vn.o.
2199         (tree-vn.o): Remove.
2200         * dbgcnt.def: Add treepre_insert debug counter.
2201         * gcc/tree-flow.h (add_to_value): Updated for other changes.
2202         (debug_value_expressions): Ditto.
2203         (print_value_expressions): Ditto.
2204         * tree-pretty-print.c (dump_generic_node): Updated for
2205         VALUE_HANDLE removal.
2206         * tree-ssa-dom.c (record_equality): Ditto.
2207         (cprop_operand): Ditto.
2208         (lookup_avail_expr): Ditto.
2209         * tree-ssa-threadedge.c
2210         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
2211         (simplify_control_stmt_condition): Ditto.
2212         * tree.c (tree_code_size): Ditto.
2213         (tree_node_structure): Ditto.
2214         (iterative_hash_expr): Ditto.
2215         * tree.def: Ditto.
2216         * tree.h (VALUE_HANDLE_ID): Ditto.
2217         (VALUE_HANDLE_EXPR_SET): Ditto.
2218         (struct tree_value_handle): Ditto.
2219         (union tree_node): Ditto.
2220         * treestruct.def: Ditto.
2221         * tree-vn.c: Removed.
2222         * tree-ssa-pre.c: Rewritten entirely.
2223         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
2224         (constant_value_ids): Ditto.
2225         (vn_nary_op_t): Moved to header.
2226         (vn_phi_t): Ditto.
2227         (vn_reference_op_t): Ditto
2228         (vn_reference_t): Ditto.
2229         (next_value_id): New variable.
2230         (VN_INFO): Add an assert.
2231         (vn_constant_eq): New function.
2232         (vn_constant_hash): Ditto.
2233         (get_or_alloc_constant_value_id): Ditto.
2234         (value_id_constant_p): Ditto.
2235         (vn_reference_compute_hash): De-staticify.
2236         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
2237         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
2238         (valueize_refs): Update opcode if it changes from ssa name to constant.
2239         (vn_reference_lookup_1): Add new argument.
2240         (vn_reference_lookup):  Ditto.
2241         (vn_reference_lookup_pieces): New function.
2242         (vn_reference_insert): Add return type. Modify to deal with value ids.
2243         (vn_reference_insert_pieces):  New function.
2244         (vn_nary_op_compute_hash): De-staticify.
2245         (vn_nary_op_eq): Ditto.
2246         (vn_nary_op_lookup_pieces): New function.
2247         (vn_nary_op_lookup): Add new argument.
2248         (vn_nary_op_insert_pieces): New function.
2249         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
2250         (vn_phi_insert): Ditto.
2251         (visit_unary_op): Update for callee changes.
2252         (visit_binary_op): Ditto.
2253         (visit_reference_op_load): Ditto.
2254         (visit_reference_op_store): Ditto.
2255         (init_scc_vn): Init next_value_id, constant_to_value_id and
2256         constant_value_ids.
2257         (free_scc_vn): Free them.
2258         (set_hashtable_value_ids): New function.
2259         (run_scc_vn): Use it.
2260         (get_max_value_id): New function.
2261         (get_next_value_id): Ditto.
2262         (expressions_equal_p): Moved from tree-vn.c
2263         (sort_vuses): Ditto.
2264         (sort_vuses_heap): Ditto.
2265         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
2266         above).
2267         * tree.c (iterative_hash_hashval_t): Made non-static
2268         * tree.h (iterative_hash_hashval_t): Declare it.
2269
2270 2008-07-08  Martin Jambor  <mjambor@suse.cz>
2271
2272         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
2273         instead of ipa_create_node_params.
2274         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
2275         ipa_check_create_edge_args, free them with
2276         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
2277
2278         * ipa-prop.c: Include flags.h and tree-inline.h.
2279         (ipa_node_params_vector): New variable.
2280         (ipa_edge_args_vector): New variable.
2281         (edge_removal_hook_holder): New variable.
2282         (node_removal_hook_holder): New variable.
2283         (edge_duplication_hook_holder): New variable.
2284         (node_duplication_hook_holder): New variable.
2285         (ipa_detect_param_modifications): Check for presence of modified flags.
2286         (ipa_compute_jump_functions): Check for presence of jump functions.
2287         (ipa_free_edge_args_substructures): New function.
2288         (ipa_create_node_params): Removed.
2289         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
2290         (ipa_free_node_params_substructures): New function.
2291         (ipa_free_all_node_params): Changed to deallocate the on-the-side
2292         vector.
2293         (ipa_edge_removal_hook): New function.
2294         (ipa_node_removal_hook): New function.
2295         (duplicate_array): New function.
2296         (ipa_edge_duplication_hook): New function.
2297         (ipa_node_duplication_hook): New function.
2298         (ipa_register_cgraph_hooks): New function.
2299         (ipa_unregister_cgraph_hooks): New function.
2300         (free_all_ipa_structures_after_ipa_cp): New function.
2301
2302         * ipa-prop.h: Include vec.h.
2303         (ipa_node_params_t): New typedef with vector types for it.
2304         (ipa_edge_args_t):  New typedef with vector types for it.
2305         (IPA_NODE_REF): Changed to access an on-the-side vector.
2306         (IPA_EDGE_REF): Changed to access an on-the-side vector.
2307         (ipa_check_create_node_params): New function.
2308         (ipa_check_create_edge_args): New function.
2309
2310         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
2311         all users.
2312
2313 2008-07-07  Tom Tromey  <tromey@redhat.com>
2314
2315         * configure, config.in: Rebuilt.
2316         * configure.ac: Don't check for scandir or alphasort.
2317
2318 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
2319
2320         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
2321         types immediately after creating them.
2322
2323 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
2324
2325         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
2326
2327 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
2328
2329         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
2330         dump_constraint_graph.
2331         (dump_constraint_edge): New function.
2332         (dump_constraint_graph): New function.
2333         (debug_constraint_graph): New function.
2334         (dump_constraint): Removed useless comparison.
2335         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
2336         (dump_constraint_graph): Declare.
2337         (debug_constraint_graph): Declare.
2338         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
2339
2340 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
2341
2342         * config/i386/i386.c (is_va_list_char_pointer): New.
2343         (ix86_va_start): Replace compare with ms_va_list_type_node
2344         by is_va_list_char_pointer.
2345         (ix86_gimplify_va_arg): Likewise.
2346
2347 2008-07-07  Martin Jambor  <mjambor@suse.cz>
2348
2349         * cgraph.c (cgraph_edge_max_uid): New variable.
2350         (struct cgraph_edge_hook_list): New type.
2351         (struct cgraph_node_hook_list): New type.
2352         (struct cgraph_2edge_hook_list): New type.
2353         (struct cgraph_2node_hook_list): New type.
2354         (first_cgraph_edge_removal_hook): New variable.
2355         (first_cgraph_node_removal_hook): New variable.
2356         (first_cgraph_edge_duplicated_hook): New variable.
2357         (first_cgraph_node_duplicated_hook): New variable.
2358         (cgraph_add_edge_removal_hook): New function.
2359         (cgraph_remove_edge_removal_hook): New function.
2360         (cgraph_call_edge_removal_hooks):  New function.
2361         (cgraph_add_node_removal_hook):  New function.
2362         (cgraph_remove_node_removal_hook):  New function.
2363         (cgraph_call_node_removal_hooks):  New function.
2364         (cgraph_add_edge_duplication_hook):  New function.
2365         (cgraph_remove_edge_duplication_hook):  New function.
2366         (cgraph_call_edge_duplication_hooks):  New function.
2367         (cgraph_add_node_duplication_hook):  New function.
2368         (cgraph_remove_node_duplication_hook):  New function.
2369         (cgraph_call_node_duplication_hooks):  New function.
2370         (cgraph_create_edge): Assign to edge uid.
2371         (cgraph_remove_edge): Call edge removal hooks.
2372         (cgraph_node_remove_callees): Call edge removal hooks.
2373         (cgraph_node_remove_callers): Call edge removal hooks.
2374         (cgraph_remove_node): Call node removal hooks.
2375         (cgraph_clone_edge): Call edge duplication hooks.
2376         (cgraph_clone_node): Call node duplication hooks.
2377
2378         * cgraph.h (cgraph_edge): New field uid.
2379         (cgraph_edge_hook): New type.
2380         (cgraph_node_hook): New type.
2381         (cgraph_2edge_hook): New type.
2382         (cgraph_2node_hook): New type.
2383
2384 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
2385
2386         * config.in: Regenerate.
2387
2388 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
2389
2390         * gcc.c (print_sysroot): New.
2391         (option_map, display_help, process_command): Handle the
2392         -print-sysroot option.
2393         (main): Print the sysroot if requested.
2394         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
2395
2396 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2397
2398         PR target/34780
2399         * unwind-pe.h (size_of_encoded_value): add attribute unused.
2400
2401 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
2402
2403         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
2404         (assign_parm_setup_block_p): Also check mode of entry_parm.
2405
2406 2008-07-07  Richard Guenther  <rguenther@suse.de>
2407
2408         * tree-ssa-structalias.h (set_used_smts): Remove.
2409         * tree-ssa-structalias.c (used_smts): Likewise.
2410         (set_used_smts): Likewise.
2411         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
2412         call to set_used_smts.
2413
2414 2008-07-07  Richard Guenther  <rguenther@suse.de>
2415
2416         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
2417         (new_var_info): Set it to false.
2418         (solution_set_add): Correctly handle pointers outside a var and
2419         inside a field.
2420         (type_safe): Treat variables with is_full_var properly.
2421         (do_sd_constraint): Likewise.
2422         (do_ds_constraint): Likewise.
2423         (process_constraint): Remove zeroing offset for !use_field_sensitive.
2424         (get_constraint_for_ptr_offset): New function.
2425         (get_constraint_for_component_ref): For addresses at least include
2426         the last field of the variable.  Handle is_full_vars properly.
2427         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
2428         (handle_ptr_arith): Remove.
2429         (find_func_aliases): Simplify assignment handling.
2430         (create_function_info_for): For parameter and result varinfos set
2431         is_full_var flag.
2432         (create_variable_info_for): Set is_full_var flag whenever we
2433         just created a single varinfo for a decl.
2434         (init_alias_vars): Initialize use_field_sensitive from
2435         max-fields-for-field-sensitive parameter.
2436
2437 2008-07-07  Richard Guenther  <rguenther@suse.de>
2438
2439         PR tree-optimization/36713
2440         * tree-flow-inline.h (is_call_used): New function.
2441         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
2442         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2443         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
2444
2445 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2446
2447         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
2448
2449 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
2450
2451         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
2452
2453 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2454             Nathan Sidwell  <nathan@codesourcery.com>
2455
2456         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
2457         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
2458         tmake_file.
2459         * config/m68k/t-linux: New.
2460         * doc/install.texi: Document m68k-*-linux is now multilibbed by
2461         default.
2462
2463 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
2464
2465         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
2466         * config/m68k/m68k-devices.def: Remove multilibs that only differ
2467         by MAC/EMAC.
2468
2469 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2470
2471         * gcc.c (execute): Fix -Wc++-compat warning.
2472
2473 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2474
2475         PR target/36720
2476         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
2477         constant for little endian.
2478
2479 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
2480
2481         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
2482         mips_base_mips16 instead of TARGET_MIPS16.
2483         (mips_base_mips16): Declare.
2484         * config/mips/mips.c (mips_base_mips16): Make global.
2485         (was_mips16_p): Remove GTY marker.
2486         (was_mips16_pch_p): New variable.
2487         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
2488         (mips_override_options): Force to non-MIPS16 mode initially.
2489         Do not complain about MIPS16 PIC incompatibilities here.
2490         Only allow -mgpopt if -mexplicit-relocs is in force for
2491         non-MIPS16 code.
2492
2493 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
2494
2495         * configure.ac: Check for caddr_t, define to char * if not defined.
2496         * configure: Regenerate.
2497         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
2498         (mmap_gt_pch_use_address): Likewise.
2499         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
2500
2501 2008-07-06  Richard Guenther  <rguenther@suse.de>
2502
2503         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
2504         (new_var_info): Deal with it.
2505         (solution_set_add): Likewise.
2506         (bitpos_of_field): Make signed, fix.
2507         (struct fieldoff): Remove type and decl fields.  Make size field
2508         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
2509         flags.
2510         (fieldoff_compare): Deal with it.
2511         (push_fields_onto_fieldstack): Remove has_union argument, glob
2512         adjacent non-pointer fields together.
2513         (create_function_info_for): Do not set has_union.
2514         (create_variable_info_for): Simplify.
2515
2516 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
2517
2518         * config.gcc (extra_headers): Add cross-stdarg.h for target
2519         x86_64-*-* and i?86-*-*.
2520         * config/i386/cross-stdarg.h: New.
2521         * builtins.c (std_fn_abi_va_list): New.
2522         (std_canonical_va_list_type): New.
2523         (stabilize_va_list): Replace va_list_type_node use by
2524         mtarget.canonical_va_list_type.
2525         (gimplify_va_arg_expr): Likewise.
2526         (expand_builtin_va_copy): Replace va_list_type_node use by
2527         mtarget.fn_abi_va_list.
2528         * tree-sra.c (is_va_list_type): New helper.
2529         (decl_can_be_decomposed_p): Replace
2530         va_list_type_node use by is_va_list_type.
2531         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
2532         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2533         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
2534         * config/i386/i386-protos.h (ix86_get_valist_type): New.
2535         (ix86_enum_va_list): New.
2536         * config/i386/i386.c (sysv_va_list_type_node): New.
2537         (ms_va_list_type_node): New.
2538         (ix86_function_type_abi): Remove sorry.
2539         (ix86_build_builtin_va_list_abi): New.
2540         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
2541         for 64-bit targets.
2542         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
2543         (ix86_init_builtins_va_builtins_abi): New.
2544         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
2545         for 64-bit targets.
2546         (ix86_handle_abi_attribute): New.
2547         (attribute_spec): Add sysv_abi and ms_abi.
2548         (ix86_fn_abi_va_list): New.
2549         (ix86_canonical_va_list_type): New.
2550         (ix86_enum_va_list): New.
2551         (TARGET_FN_ABI_VA_LIST): New.
2552         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2553         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
2554         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
2555         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2556         (TARGET_ENUM_VA_LIST): New.
2557         * expr.h (std_fn_abi_va_list): New.
2558         (std_canonical_va_list_type): New.
2559         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
2560         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2561         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
2562         TARGET_CANONICAL_VA_LIST_TYPE.
2563         * target.h (struct gcc_target): Add fn_abi_va_list hook
2564         and canonical_va_list_type hook.
2565
2566 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2567
2568         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
2569         integral and pointer types.
2570
2571 2008-07-04  Roger Sayle  <roger@eyesopen.com>
2572
2573         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
2574         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
2575
2576 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
2577
2578         PR target/36684
2579         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
2580
2581 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
2582
2583         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
2584         build_gimple_modify_stmt.
2585         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
2586         gimple operand.  Use fold_build* instead of build*.
2587
2588 2008-07-04  Richard Guenther  <rguenther@suse.de>
2589
2590         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
2591         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
2592         properly to compute the reachability set if we do field-sensitive PTA.
2593         * invoke.texi (max-fields-for-field-sensitive): Document default.
2594         * opts.c (decode_options): Set max-fields-for-field-sensitive to
2595         100 for optimize >= 2.
2596
2597 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2598
2599         * ggc-zone.c (lookup_page_table_if_allocated,
2600         set_page_table_entry, zone_find_object_size, alloc_small_page,
2601         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2602         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2603         -Wc++-compat and/or -Wcast-qual warnings.
2604
2605 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
2606
2607         PR target/36634
2608         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2609         pic_offset_table_rtx to be marked as used here.
2610         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2611         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2612         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2613         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2614         !TARGET_SECURE_PLT.
2615
2616 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2617
2618         * alloc-pool.c (hash_descriptor, eq_descriptor,
2619         alloc_pool_descriptor): Fix -Wc++-compat warnings.
2620         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
2621         Likewise.
2622         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
2623         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
2624         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
2625         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
2626         Likewise.
2627
2628 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2629
2630         * tree-flow.h (loop_only_exit_p): Declare.
2631         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
2632         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
2633         the number of iterations if it is constant.  Otherwise, if this is the
2634         only possible exit of the loop, use the conservative estimate on the
2635         number of iterations of the entire loop if available.
2636
2637 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
2638
2639         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
2640         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
2641         Add synchronization functions.
2642         * config/sync.c: New file.
2643         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
2644         (LIBGCC_SYNC_CFLAGS): Likewise.
2645
2646 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
2647
2648         PR target/36710
2649         * config/i386/i386.md (mode): Add TF to "mode" attribute.
2650         (*pushtf_sse): New insn pattern.
2651         (pushtf splitters): New splitters.
2652
2653 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
2654
2655         PR middle-end/35736
2656         * predict.c (build_predict_expr): Use void_type_node for the tree
2657         type, instead of NULL_TREE.
2658
2659 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
2660
2661         * config/i386/i386.c (contains_aligned_value_p): Return true
2662         for TCmode.
2663         (ix86_data_alignment): Align TCmode to 128bits.
2664         (ix86_local_alignment): Likewise.
2665
2666 2008-07-03  Andrew Haley  <aph@redhat.com>
2667
2668         PR bootstrap/33304
2669         * vec.h (VEC_TA): New.
2670         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
2671         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
2672         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
2673         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
2674         (C_COMMON_FIXED_TYPES): Remove first arg.
2675         (C_COMMON_FIXED_MODE_TYPES): Likewise.
2676         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
2677         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
2678         not to use empty macro arguments.
2679
2680 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
2681
2682         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
2683         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
2684         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
2685         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
2686         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
2687         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
2688         config/ia64/crtn.asm, config/m68hc11/larith.asm,
2689         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
2690         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
2691         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2692         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2693         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2694         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
2695         config/rs6000/e500crtres64gpr.asm,
2696         config/rs6000/e500crtres64gprctr.asm,
2697         config/rs6000/e500crtrest32gpr.asm,
2698         config/rs6000/e500crtrest64gpr.asm,
2699         config/rs6000/e500crtresx32gpr.asm,
2700         config/rs6000/e500crtresx64gpr.asm,
2701         config/rs6000/e500crtsav32gpr.asm,
2702         config/rs6000/e500crtsav64gpr.asm,
2703         config/rs6000/e500crtsav64gprctr.asm,
2704         config/rs6000/e500crtsavg32gpr.asm,
2705         config/rs6000/e500crtsavg64gpr.asm,
2706         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
2707         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
2708         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2709         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
2710         config/sparc/sol2-cn.asm: Remove .file directives.
2711
2712 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
2713
2714         * resource.c (mark_referenced_resources): Look inside
2715         UNSPEC_VOLATILEs and ASM_INPUTs.
2716
2717 2008-07-02  Ian Lance Taylor  <iant@google.com>
2718
2719         * rtlanal.c (add_reg_note): New function.
2720         * rtl.h (add_reg_note): Declare.
2721         * auto-inc-dec.c (attempt_change): Use add_reg_note.
2722         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
2723         * builtins.c (expand_builtin_longjmp): Likewise.
2724         (expand_builtin_nonlocal_goto): Likewise.
2725         * calls.c (emit_call_1, expand_call): Likewise.
2726         * cfgexpand.c (add_reg_br_prob_note): Likewise.
2727         * cfglayout.c (fixup_reorder_chain): Likewise.
2728         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2729         (commit_one_edge_insertion): Likewise.
2730         * combine.c (move_deaths, distribute_notes): Likewise.
2731         * df-problems.c (df_set_note): Likewise.
2732         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
2733         (set_unique_reg_note): Likewise.
2734         (emit_copy_of_insn_after): Likewise.
2735         * expr.c (expand_expr_real): Likewise.
2736         * gcse.c (add_label_notes): Likewise.
2737         * haifa-sched.c (create_check_block_twin): Likewise.
2738         * jump.c (mark_jump_label_1): Likewise.
2739         * loop-doloop.c (add_test, doloop_modify): Likewise.
2740         * loop-unswitch.c (compare_and_jump_seq): Likewise.
2741         * lower-subreg.c (move_eh_region_note): Likewise.
2742         * optabs.c (emit_libcall_block): Likewise.
2743         * predict.c (predict_insn): Likewise.
2744         (combine_predictions_for_insn): Likewise.
2745         * recog.c (peephole2_optimize): Likewise.
2746         * regmove.c (try_auto_increment): Likewise.
2747         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
2748         * reload.c (find_reloads): Likewise.
2749         * reload1.c (fixup_eh_region_note): Likewise.
2750         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
2751         * reorg.c (delete_prior_computation): Likewise.
2752         (delete_computation, dbr_schedule): Likewise.
2753         * config/pa/pa.c (legitimize_pic_address): Likewise.
2754         * config/sh/sh.c (sh_reorg): Likewise.
2755
2756 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2757
2758         PR target/36669
2759         * config/libgcc-glibc.ver: Add %exclude.
2760         * config/m32r/libgcc-glibc.ver: Likwise.
2761         * config/s390/libgcc-glibc.ver: Likwise.
2762         * config/sh/libgcc-glibc.ver: Likwise.
2763         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
2764
2765         * config/i386/libgcc-glibc.ver: New.
2766
2767         * config/i386/libgcc-x86_64-glibc.ver: Removed.
2768
2769 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2770
2771         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
2772         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
2773         i[34567]86-*-linux*, x86_64-*-linux*.  Add
2774         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
2775         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
2776         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
2777         i[34567]86-*-linux*, x86_64-*-linux*.
2778
2779         * libgcc-std.ver: Add empty GCC_4.4.0.
2780
2781         * mkmap-symver.awk: Support multiple versions per symbol.
2782
2783         * config/i386/i386.c (ix86_init_builtins): Always define
2784         __builtin_fabsq and __builtin_copysignq with fallbacks.
2785         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
2786         and __builtin_copysignq if SSE2 isn't available.
2787
2788         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
2789         (LIBGCC2_TF_CEXT): Likwise.
2790         (TF_SIZE): Likwise.
2791
2792         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
2793
2794         * config/i386/sfp-machine.h: Moved to libgcc.
2795
2796         * config/i386/sfp-machine.h: New.
2797         * config/i386/t-linux: Likwise.
2798
2799         * config/i386/t-darwin: Remove softfp_wrap_start and
2800         softfp_wrap_end.
2801         * config/i386/t-darwin64: Likewise.
2802
2803         * config/i386/t-fprules-softfp64: Renamed to ...
2804         * config/i386/t-fprules-softfp: This.
2805
2806         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
2807         and softfp_wrap_end.
2808
2809 2008-07-02  Jason Merrill  <jason@redhat.com>
2810
2811         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
2812
2813         * tree.c (ctor_to_list): New fn.
2814         * tree.h: Declare it.
2815         (CONSTRUCTOR_ELT): New macro.
2816         (CONSTRUCTOR_NELTS): New macro.
2817
2818 2008-07-02  Richard Guenther  <rguenther@suse.de>
2819
2820         * tree-ssa-structalias.c (struct variable_info): Reorder
2821         to fill padding on 64bit hosts.  Make collapsed_to an int.
2822         (get_varinfo_fc): Deal with that.
2823         (new_var_info): Likewise.
2824         (collapse_rest_of_var): Likewise.
2825
2826 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
2827
2828         * doc/install.texi (--enable-java-home): Document.
2829         (--enable-aot-compile-rpm): Likewise.
2830         (--with-arch-directory): Likewise.
2831         (--with-os-directory): Likewise.
2832         (--with-origin-name): Likewise.
2833         (--with-arch-suffix): Likewise.
2834         (--with-jvm-root-dir): Likewise.
2835         (--with-jvm-jar-dir): Likewise.
2836         (--with-python-dir): Likewise.
2837
2838 2008-07-02  Richard Guenther  <rguenther@suse.de>
2839
2840         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
2841         from decls explicitly.  Merge operand checking from tuples.
2842
2843 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2844
2845         * tree-switch-conversion.c: Included timevar.h which I forgot before.
2846
2847 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2848
2849         * tree-switch-conversion.c: Included timevar.h
2850         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
2851
2852         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
2853
2854 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2855
2856         * tree-switch-conversion.c: Corrected various comments and
2857         whitespace issues
2858         (build_constructors): Fixed minor formatting mistakes.
2859
2860         * invoke.texi (Optimize Options): Corrected the
2861         switch-conversion-max-branch-ratio parameter.
2862
2863 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
2864
2865         * final.c (asm_insn_count): Return zero for an empty asm body.
2866
2867 2008-07-02  Richard Guenther  <rguenther@suse.de>
2868
2869         * bitmap.h (bitmap_set_bit): Return bool.
2870         (bitmap_clear_bit): Likewise.
2871         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
2872         write to the bitmap if it would.
2873         (bitmap_clear_bit): Likewise.
2874         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
2875         bitmap_set_bit return value.
2876         (add_pred_graph_edge): Likewise.
2877         (add_graph_edge): Likewise.
2878         (do_sd_constraint): Likewise.
2879         (do_ds_constraint): Likewise.
2880
2881 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2882
2883         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
2884         Fix -Wc++-compat and/or -Wcast-qual warnings.
2885         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
2886         gen_regparm_prefix): Likewise.
2887         * vmsdbgout.c (write_modbeg, lookup_filename,
2888         vmsdbgout_source_line, vmsdbgout_init): Likewise.
2889
2890 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
2891
2892         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
2893         defaults.h definition apply.
2894
2895 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
2896
2897         * function.c (assign_parm_remove_parallels): New.
2898         (assign_parm_setup_block_p): Do not return true for non-BLKmode
2899         PARALLELs.
2900         (assign_parm_setup_block): Do not handle them.
2901         (assign_parm_setup_reg, assign_parm_setup_stack): Call
2902         assign_parm_remove_parallels.
2903
2904 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
2905
2906         * c-typeck.c (convert_for_assignment): Use
2907         vector_targets_convertible_p.
2908         * c-common.c (vector_targets_convertible_p): New.
2909         * c-common.h (vector_targets_convertible_p): New prototype.
2910         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
2911         opaque_p_V2SI_type_node.
2912
2913 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
2914
2915         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
2916         RFmode constants.
2917
2918 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
2919
2920         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
2921         TFmode constants via two element DImode vector for hosts with
2922         HOST_BITS_PER_WIDE_INT < 64.
2923         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
2924         also for HOST_BITS_PER_WIDE_INT < 64.
2925
2926 2008-07-01  Richard Guenther  <rguenther@suse.de>
2927
2928         PR tree-optimization/36666
2929         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
2930         (get_constraint_exp_from_ssa_var): Split into ...
2931         (get_constraint_exp_for_temp): ... this ...
2932         (get_constraint_for_ssa_var): ... and that.
2933         Return constraint expressions for all touched sub-fields
2934         if the results address is not taken.
2935         (process_constraint): Remove assertion that aggregate
2936         assignments do not happen at this place.
2937         (get_constraint_for_component_ref): Add address_p argument.
2938         Return constraint expressions for all touched sub-fields
2939         if the results address is not taken.
2940         (do_deref): Use get_constraint_exp_for_temp.
2941         (get_constraint_for_1): Rename from ...
2942         (get_constraint_for): ... this.  Add the old function as wrapper.
2943         (do_structure_copy): Use get_constraint_for_1.
2944
2945 2008-07-01  Martin Jambor  <mjambor@suse.cz>
2946
2947         * Makefile.in (tree-switch-conversion.o): Add.
2948         (OBJS-common): Add tree-swtch-conversion.o.
2949         * passes.c (init_optimization_passes): Add pass_convert_switch.
2950         * tree-pass.h: (pass_convert_switch): Add.
2951         * tree-switch-conversion.c: New file.
2952         * gcc.dg/tree-ssa/cswtch.c: New testcase.
2953         * common.opt (ftree-cswtch): New option.
2954         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2955         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2956         * opts.c (decode_options): Set flag_tree_switch_conversion when
2957         optimization level is >= 2.
2958         * doc/invoke.texi (Optimize Options): Added description of
2959         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
2960
2961 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2962
2963         * config/darwin-driver.c (darwin_default_min_version): Fix
2964         -Wc++-compat warnings.
2965
2966 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
2967
2968         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
2969         of operand 0.
2970
2971 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2972
2973         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
2974
2975 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2976
2977         PR rtl-optimization/34744
2978         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
2979         (df_scan_free_internal): Free data structures not
2980         allocated in storage pools.
2981         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
2982         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
2983         df_scan_free_mws_vec.
2984         * dse.c (dse_step6): Free offset_map_p and offset_map_n
2985         unconditionally.
2986
2987 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2988
2989         * config/i386/i386.c (contains_aligned_value_p): Return true
2990         for __float128.
2991         (ix86_function_arg_boundary): Return its natural boundary
2992         for __float128.
2993         (return_in_memory_32): Don't check TDmode.
2994         (ix86_split_to_parts): Support splitting into 4 parts and
2995         support TFmode for 32bit target.
2996         (ix86_split_long_move): Support splitting into 4 parts.
2997         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
2998         for SSE2.
2999         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
3000         (ix86_init_builtins): Here.
3001         (ix86_scalar_mode_supported_p): Always return true for TFmode.
3002         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
3003         'q' and 'w', respectively.
3004
3005         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
3006         TARGET_64BIT.
3007         (movtf_internal): Likewise.
3008         (<code>tf2): Likewise.
3009         (*absnegtf2_sse): Likewise.
3010         (copysign<mode>3): Likewise.
3011         (copysign<mode>3_const): Likewise.
3012         (copysign<mode>3_var): Likewise.
3013         (define_split UNSPEC_COPYSIGN): Likewise.
3014         * config/i386/sse.md (*nandtf3): Likewise.
3015         (<code>tf3): Likewise.
3016         (*<code>tf3): Likewise.
3017
3018 2008-06-30  Joey Ye  <joey.ye@intel.com>
3019             H.J. Lu  <hongjiu.lu@intel.com>
3020
3021         * global.c (compute_regsets): Set frame_pointer_needed here.
3022         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
3023
3024 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3025
3026         * doc/install.texi (specific): Expand Windows build notes.
3027
3028 2008-06-30  Ira Rosen  <irar@il.ibm.com>
3029
3030         PR tree-optimization/36648
3031         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
3032         number of prolog iterations by step. Fix the comment.
3033
3034 2008-06-30  Richard Guenther  <rguenther@suse.de>
3035
3036         PR middle-end/36671
3037         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
3038         handle calls from ECF_MALLOC functions.
3039         (handle_pure_call): ECF_MALLOC functions do not return
3040         call-used memory.
3041         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
3042
3043 2008-06-29  Andreas Schwab  <schwab@suse.de>
3044
3045         * config/m68k/m68k.c (print_operand): Always print a float
3046         constant in hex.
3047         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
3048         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
3049         Remove macros.
3050
3051         * config/rs6000/x-linux64: Remove never used file.
3052
3053 2008-06-29  Richard Guenther  <rguenther@suse.de>
3054
3055         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
3056         prototype.
3057         (struct alias_info): Move ...
3058         * tree-ssa-alias.c: ... here.
3059         (update_alias_info): Declare.
3060         (compute_may_aliases): Call it.
3061         (update_alias_info): New function.
3062         * tree-ssa-structalias.c (update_alias_info): Move ...
3063         * tree-ssa-alias.c (update_alias_info_1): ... here.
3064         * tree-ssa-structalias.c (process_constraint_1): Remove
3065         unused from_call argument.  Rename to ...
3066         (process_constraint): ... this.  Delete old wrapper.
3067         (make_constraint_to): Adjust callers.
3068         (handle_const_call): Likewise.
3069         (handle_pure_call): Likewise.
3070         (init_base_vars): Likewise.
3071         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
3072         (find_func_aliases): We don't need structure copies for
3073         complex types.
3074         (make_constraint_from_anything): Remove.
3075         (create_variable_info_for): For globals make constraints
3076         from escaped, not from anything.
3077         (compute_points_to_sets): Do not call update_alias_info.
3078         (ipa_pta_execute): Use make_constraint_from.
3079
3080 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3081
3082         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
3083         (bitmap.o-warn, dominance.o-warn): New.
3084         * configure.ac (cxx_compat_warn): Delete.
3085         (loose_warn): Add -Wcast-qual and -Wc++-compat.
3086         * system.h: Remove #pragma diagnostic for -Wcast-qual and
3087         -Wc++-compat.
3088         * configure: Regenerate.
3089
3090         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
3091         warnings.
3092
3093 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3094
3095         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
3096         * df-scan.c (df_notes_rescan): Likewise.
3097         * ggc-page.c (set_page_table_entry): Likewise.
3098         * intl.c (gcc_gettext_width): Likewise.
3099         * varasm.c (get_unnamed_section, get_noswitch_section,
3100         get_section): Likewise.
3101
3102 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
3103
3104         * regrename.c (build_def_use): Don't copy RTX.
3105
3106 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
3107
3108         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
3109         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
3110         punctuation.  Use @ref instead of @xref.
3111         (Function Names): Remove stray @display/@end display.
3112         (C++ Attributes): Use @ref instead of @xref.
3113         (Deprecated Features): Fix punctuation around @xref.
3114         (Backwards Compatibility): Likewise.
3115         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
3116
3117 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
3118
3119         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
3120         constants for E500 double.
3121
3122 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3123
3124         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
3125         element type of const_vector.
3126
3127 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
3128
3129         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
3130         Remove FLAGS_REG clobber from expander pattern.
3131         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
3132         (anddi3, andsi3, andhi3, andqi3): Ditto.
3133         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
3134         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
3135         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
3136         (ashlsi3, ashlhi3, ashlqi3): Ditto.
3137         (ashrsi3, ashrhi3, ashrqi3): Ditto.
3138         (lshrsi3, lshrhi3, lshrqi3): Ditto.
3139         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
3140         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
3141
3142 2008-06-28  Richard Guenther  <rguenther@suse.de>
3143
3144         * tree-ssa-structalias.c (callused_id, var_callused,
3145         callused_tree): Add.
3146         (handle_pure_call): New function.
3147         (find_func_aliases): Call it.
3148         (find_what_p_points_to): Handle the call-used set.
3149         (clobber_what_escaped): Likewise.
3150         (compute_call_used_vars): New function.
3151         (init_base_vars): Init the call-used variable.
3152         (do_sd_constraint): Do not propagate the solution from CALLUSED
3153         but use CALLUSED as a placeholder.
3154         (solve_graph): Likewise.
3155         * tree-flow-inline.h (gimple_call_used_vars): New function.
3156         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
3157         (compute_call_used_vars): Declare.
3158         * tree-ssa-alias.c (set_initial_properties): Call
3159         compute_call_used_vars.
3160         (reset_alias_info): Clear call-used variables.
3161         (add_call_clobber_ops): Assert we are not called for const/pure
3162         functions.  Remove handling of them.
3163         (add_call_read_ops): Handle pure functions by adding the
3164         call-used set of variables as VUSEs.
3165         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
3166         (delete_tree_ssa): Free it.
3167         * tree-dfa.c (remove_referenced_var): Clear the var from the
3168         call-used bitmap.
3169
3170 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
3171
3172         * tree.c (build_varargs_function_type_list): New.
3173         (build_function_type_list_1): New.
3174         (build_function_type_list): Use build_function_type_list_1.
3175         * tree.h (build_varargs_function_type_list): New.
3176
3177 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3178
3179         PR target/34856
3180         * config/spu/spu.c (spu_builtin_splats): Do not generate
3181         invalid CONST_VECTOR expressions.
3182         (spu_expand_vector_init): Likewise.
3183
3184 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
3185
3186         * optabs.c (libfunc_decls): New variable.
3187         (libfunc_decl_hash, libfunc_decl_eq): New functions.
3188         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
3189         for the same function twice.
3190
3191 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
3192
3193         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
3194         ix86_expand_binary_operator directly.
3195         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
3196         for operand 2.
3197         (*ashrti3_1): Ditto.
3198         (*lshrti3_1): Ditto.
3199         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
3200         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
3201         using only one splitter.  Conditionaly execute splitter before or
3202         after peephole2 pass.
3203         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
3204         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
3205         Use only one alternative in asm template.
3206         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
3207         in asm template.
3208         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
3209         "J" operand constraint for operand 2.
3210         (*ashldi3_cconly_rex64): Ditto.
3211         (*ashrdi3_cmp_rex64): Ditto.
3212         (*ashrdi3_cconly_rex64): Ditto.
3213         (*lshrdi3_cmp_rex64): Ditto.
3214         (*lshrdi3_cconly_rex64): Ditto.
3215         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
3216         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
3217         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
3218         gen_x86_shrd_1.
3219
3220 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
3221
3222         * gimplify.c (omp_is_private): Don't return true if decl is not
3223         already private on #pragma omp for or #pragma omp parallel for.
3224
3225         PR debug/36617
3226         * tree-cfg.c (struct move_stmt_d): Replace block field with
3227         orig_block and new_block fields.
3228         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
3229         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
3230         (move_block_to_fn): Replace vars_map and new_label_map arguments
3231         with struct move_stmt_d pointer.
3232         (replace_block_vars_by_duplicates): New function.
3233         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
3234         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
3235         all subblocks of ORIG_BLOCK to the new function.  Call
3236         replace_block_vars_by_duplicates.
3237         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
3238         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
3239         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
3240         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
3241         (expand_omp): Temporarily set input_location to the location of
3242         region's controlling stmt.
3243         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
3244         BIND_EXPR, push ctx->block_vars and gimplification vars into
3245         the BIND_EXPR and its block's BLOCK_VARS instead of directly
3246         into dest function.
3247         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
3248         there are any BLOCK_VARS.
3249         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
3250         OMP_PARALLEL or OMP_TASK stmt.
3251         (lower_omp): Save and restore input_location around the lower_omp_1
3252         call.
3253
3254 2008-06-27  Richard Guenther  <rguenther@suse.de>
3255
3256         PR tree-optimization/36400
3257         PR tree-optimization/36373
3258         PR tree-optimization/36344
3259         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
3260         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
3261         (update_alias_info): Remove call clobbering code.
3262         (make_constraint_to): New helper function.
3263         (make_escape_constraint): Likewise.
3264         (handle_rhs_call): Use it on all pointer containing arguments.
3265         Also mark the static chain escaped.
3266         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
3267         instead of ANYTHING.
3268         (make_constraint_from): New helper split out from ...
3269         (make_constraint_from_anything): ... here.
3270         (find_func_aliases): Add constraints for escape sites.
3271         (intra_create_variable_infos): Make constraints from NONLOCAL
3272         for parameters.
3273         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
3274         as ANYTHING.
3275         (clobber_what_p_points_to): Remove.
3276         (clobber_what_escaped): New function.
3277         (init_base_vars): Init NONLOCAL and ESCAPED.
3278         (do_sd_constraint): Do not propagate the solution from ESCAPED
3279         but use ESCAPED as a placeholder.
3280         (solve_graph): Likewise.
3281         * tree-flow.h (clobber_what_p_points_to): Remove.
3282         (clobber_what_escaped): Declare.
3283         * tree-ssa-alias.c (set_initial_properties): Call it.
3284         Remove code clobbering escaped pointers.
3285
3286 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
3287
3288         * function.c (allocate_struct_function): Only allocate a unique
3289         funcdef_no if the decl is nonzero.
3290
3291 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
3292
3293         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
3294         * config/mips/mips.c (mips_split_const_insns): New function.
3295         * config/mips/mips.md (move_type): New attribute.
3296         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
3297         (dword_mode): New attribute.
3298         (type): Avoid long line.  Map "move_type"s to "type"s,
3299         choosing "multi" for doubleword moves if appropriate.
3300         Swap MTC/MFC comments to match their declaration order.
3301         (extended_mips16): Default to "yes" if "move_type" is "sll0",
3302         "type" is "branch" or "jal" is "direct".
3303         (length): Handle "extended_mips16" first.  Make the default
3304         "0" for "ghost" instructions.  Set the length from "move_type".
3305         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
3306         of "type", with "sll0" for the register alternative.  Remove the
3307         "extended_mips16" attribute.
3308         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
3309         of "type", with "shift_shift" for the register alternative.
3310         Remove the "length" attribute.
3311         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
3312         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
3313         of "type", with "andi" for the register alternative.
3314         (*zero_extendqihi2): Likewise.
3315         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
3316         of "andi" instead of a "type" of "arith".
3317         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
3318         instead of "type".
3319         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
3320         (mov_<store>r, *mov<mode>_ra): Likewise.
3321         (extendsidi2): Use "move_type" instead of "type", with "move"
3322         for the register alternative.
3323         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
3324         of "type", with "signext" for the register alternative.
3325         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
3326         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
3327         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
3328         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
3329         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
3330         (unnamed branch insn): Likewise.
3331         (*movdi_gp32_fp64): Fold into...
3332         (*movdi_32bit): ...here.
3333         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
3334         (*movdf_hardfloat): ...this new pattern.
3335         (*movdf_softfloat): Remove redundant FPR alternatives.
3336         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
3337         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
3338         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
3339         the "move" attribute.
3340         (*movdi_32bit): Use "move_type" instead of "type" and remove the
3341         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
3342         and "store" for COP loads and stores.
3343         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
3344         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
3345         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
3346         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
3347         (*movtf_mips16, *movv2sf): Likewise.
3348         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
3349         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
3350         (mfhc1<mode>): Use "move_type" instead of "move".
3351         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
3352         (loadgp_blockage): Remove the "length" attribute.
3353         (blockage, set_got_version, update_got_version): Likewise.
3354         (call_internal): Remove the "extended_mips16" attribute.
3355         (call_value_internal, call_value_multiple_internal): Likewise.
3356         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
3357         instead of "move".
3358         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
3359         the "length" attribute.
3360
3361 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3362
3363         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
3364         -Wcast-qual warnings.
3365         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
3366         handle_pragma_pop_macro): Likewise.
3367         * collect2.c (resolve_lib_name): Likewise.
3368         * config/arc/arc.c (arc_init): Likewise.
3369         * config/arm/arm.c (neon_builtin_compare,
3370         locate_neon_builtin_icode): Likewise.
3371         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
3372         * config/bfin/bfin.c (bfin_init_machine_status,
3373         bfin_optimize_loop): Likewise.
3374         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3375         * config/cris/cris.c (cris_init_expanders): Likewise.
3376         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
3377         * config/darwin.c (machopic_indirection_eq,
3378         machopic_indirection_name, machopic_output_indirection): Likewise.
3379         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
3380         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
3381         frv_optimize_membar): Likewise.
3382         * config/i386/cygwin.h (mingw_scan,
3383         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
3384         * config/i386/cygwin1.c (mingw_scan): Likewise.
3385         * config/i386/i386.c (machopic_output_stub): Likewise.
3386         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
3387         i386_pe_unique_section): Likewise.
3388         * config/ia64/ia64.c (ia64_init_machine_status,
3389         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
3390         Likewise.
3391         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
3392         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
3393         * config/m68k/m68k.c (m68k_handle_option,
3394         m68k_sched_md_init_global): Likewise.
3395         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
3396         mcore_unique_section): Likewise.
3397         * config/mips/mips.c (mips_block_move_straight,
3398         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
3399         Likewise.
3400         * config/mmix/mmix.c (mmix_init_machine_status,
3401         mmix_encode_section_info): Likewise.
3402         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
3403         * config/rs6000/rs6000.c (rs6000_init_machine_status,
3404         print_operand_address, output_toc, redefine_groups,
3405         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
3406         * config/s390/s390.c (s390_init_machine_status): Likewise.
3407         * config/score/score.c (score_block_move_straight,
3408         score_block_move_loop_body): Likewise.
3409         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3410         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3411         * emit-rtl.c (find_auto_inc): Likewise.
3412         * gcc.c (translate_options, process_command): Likewise.
3413         * reorg.c (dbr_schedule): Likewise.
3414         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
3415         * xcoffout.c (xcoffout_declare_function): Likewise.
3416
3417 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
3418
3419         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
3420         ipa-pta working again.
3421
3422 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
3423
3424         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
3425         genautomata.
3426
3427 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
3428
3429         * config.gcc (powerpc*-*-*): Add new core e500mc.
3430         * config/rs6000/e500mc.md: New file.
3431         * config/rs6000/rs6000.c (processor_costs): Add new costs for
3432         e500mc.
3433         (rs6000_override_options): Add e500mc case to
3434         processor_target_table. Altivec and Spe options not allowed
3435         with e500mc. Add isel instruction to e500mc by
3436         default. Initialize rs6000_cost for e500mc.
3437         (rs6000_issue_rate): Set issue rate for e500mc.
3438         * config/rs6000/rs6000.h (processor_type): Add
3439         PROCESSOR_PPCE500MC.
3440         (ASM_CPU_SPEC): Add e500mc.
3441         Set TARGET_ISEL to rs6000_isel.
3442         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
3443         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
3444         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
3445         Include e500mc.md.
3446         * doc/invoke.texi: Add e500mc to list of cpus.
3447
3448 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3449
3450         PR c/34867
3451         * c-lex.c (lex_charconst): Initialize unsignedp.
3452
3453 2008-06-27  Olivier Hainque  <hainque@adacore.com>
3454
3455         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
3456         documented assumptions.
3457
3458 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
3459
3460         * dwarf2out.c: Remove trailing white spaces.  Break long line
3461         in comments.
3462
3463 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
3464
3465         * libfuncs.h (LTI_synchronize): New libfunc_index.
3466         (synchronize_libfunc): Declare.
3467         * builtins.c (expand_builtin_synchronize): Consider using
3468         synchronize_libfunc before falling back on an asm blockage.
3469         * config/mips/mips.c: Include libfuncs.h
3470         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
3471
3472 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
3473
3474         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
3475         parameter.  Copy stack_reg to r11 where appropriate.
3476         (no_global_regs_above): Add gpr parameter.
3477         (rs6000_stack_info): Only add padding for SPE save area if we
3478         are saving SPE GPRs and CR.
3479         (saveres_routine_syms): New variable.
3480         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
3481         Define.
3482         (rs6000_savres_routine_sym): New function.
3483         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
3484         split out of...
3485         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
3486         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
3487         Tweak FPR out-of-line saving.
3488         (rs6000_make_savres_rtx): New function.
3489         (rs6000_use_multiple_p): New function.
3490         (rs6000_savres_strategy): New function.
3491         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
3492         out-of-line if appropriate.
3493         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
3494         if we are optimizing for size.
3495         (GP_SAVE_INLINE): Define.
3496         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
3497         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
3498         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
3499         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
3500         (*save_fpregs_<mode>): Add use of r11.
3501         (*restore_gpregs_<mode>): New insn.
3502         (*return_and_restore_gpregs_<mode>): New insn.
3503         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
3504         use r11.
3505         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
3506         (*restore_gpregs_spe): New insn.
3507         (*return_and_restore_gpregs_spe): New insn.
3508         * config/rs6000/predicates.md (save_world_operation): Fix check.
3509
3510 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3511
3512         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
3513         this point, so assert that.
3514
3515 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3516
3517         * cfganal.c: Include vec.h and vecprim.h.
3518         (compute_idf): Import from...
3519         * tree-into-ssa (compute_idf): ...here.
3520         * basic-block.h (compute_idf): Export.
3521
3522 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
3523
3524         * c-decl.c (merge_decls): Use !current_function_decl to check for
3525         extern declaration of C99 inline function being at file scope.
3526
3527 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
3528
3529         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
3530
3531 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3532
3533         * alias.c (record_alias_subset, init_alias_analysis): Fix
3534         -Wc++-compat and/or -Wcast-qual warnings.
3535         * attribs.c (lookup_attribute_spec): Likewise.
3536         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
3537         copy_bb, connect_traces,
3538         find_rarely_executed_basic_blocks_and_cr): Likewise.
3539         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
3540         note_btr_set, migrate_btr_defs): Likewise.
3541         * builtins.c (result_vector, expand_builtin_memcpy,
3542         expand_builtin_mempcpy_args, expand_builtin_strncpy,
3543         builtin_memset_read_str, expand_builtin_printf,
3544         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
3545         Likewise.
3546         * caller-save.c (mark_set_regs): Likewise.
3547         * calls.c (expand_call, emit_library_call_value_1): Likewise.
3548         * cgraph.c (cgraph_edge): Likewise.
3549         * combine.c (likely_spilled_retval_1): Likewise.
3550         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
3551         htab_counts_entry_del, get_coverage_counts): Likewise.
3552         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
3553         new_cselib_val): Likewise.
3554         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
3555         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
3556         Likewise.
3557         * df-core.c (df_compact_blocks): Likewise.
3558         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
3559         * df-scan.c (df_grow_reg_info, df_ref_create,
3560         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
3561         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
3562         df_record_entry_block_defs, df_record_exit_block_uses,
3563         df_bb_verify): Likewise.
3564         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
3565         DF_REF_EXTRACT_MODE_CONST): New.
3566         * dominance.c (get_immediate_dominator, get_dominated_by,
3567         nearest_common_dominator, root_of_dom_tree,
3568         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
3569         -Wc++-compat and/or -Wcast-qual warnings.
3570         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
3571         record_store, replace_read, check_mem_read_rtx, scan_insn,
3572         dse_step1, dse_record_singleton_alias_set): Likewise.
3573         * dwarf2asm.c (dw2_force_const_mem): Likewise.
3574
3575 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3576
3577         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
3578         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
3579         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
3580         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
3581         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
3582         add_ranges_num, add_ranges_by_labels, file_info_cmp,
3583         file_name_acquire, output_file_names, add_const_value_attribute,
3584         premark_used_types_helper, file_table_eq, file_table_hash,
3585         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
3586         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
3587         -Wcast-qual warnings.
3588         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
3589         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
3590         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
3591         gen_reg_rtx, start_sequence, init_emit): Likewise.
3592         * et-forest.c (et_new_occ, et_new_tree): Likewise.
3593         * except.c (init_eh_for_function, gen_eh_region,
3594         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
3595         arh_to_landing_pad, arh_to_label, add_action_record,
3596         add_call_site, switch_to_exception_section): Likewise.
3597         * expmed.c (synth_mult): Likewise.
3598         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
3599         store_expr): Likewise.
3600         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
3601         Likewise.
3602         * function.c (assign_stack_temp_for_type,
3603         allocate_struct_function, match_asm_constraints_1): Likewise.
3604         * gcov-io.c (gcov_allocate): Likewise.
3605         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
3606         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
3607         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
3608         record_one_set, insert_expr_in_table, insert_set_in_table,
3609         dump_hash_table, compute_hash_table_work, alloc_hash_table,
3610         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
3611         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
3612         -Wcast-qual warnings.
3613
3614 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3615
3616         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
3617         -Wcast-qual warnings.
3618         * gcc.c (process_command): Likewise.
3619         * genattrtab.c (oballoc): Use XOBNEW.
3620         (oballocvec): Define.
3621         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
3622         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
3623         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
3624         -Wc++-compat and/or -Wcast-qual warnings.
3625         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
3626         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
3627         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3628         gen_presence_absence_set, gen_automaton, gen_regexp_el,
3629         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3630         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
3631         add_excls, process_presence_absence_names,
3632         process_presence_absence_patterns, add_presence_absence,
3633         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
3634         get_free_state, add_arc, get_free_automata_list_el,
3635         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
3636         transform_3, cache_presence, create_ainsns, create_automata,
3637         create_state_ainsn_table, dfa_insn_code_enlarge,
3638         output_trans_func, output_min_issue_delay_func,
3639         output_dead_lock_func, output_reset_func,
3640         output_get_cpu_unit_code_func, output_dfa_start_func,
3641         expand_automata): Likewise.
3642         * genextract.c (gen_insn): Likewise.
3643         * gengtype-lex.l: Likewise.
3644         * gengtype.c (read_input_list, adjust_field_type,
3645         process_gc_options): Likewise.
3646         * genoutput.c (note_constraint): Likewise.
3647         * genpreds.c (mangle, add_constraint): Likewise.
3648         * genrecog.c (process_define_predicate, new_decision,
3649         add_to_sequence): Likewise.
3650         * gensupport.c (record_insn_name): Likewise.
3651
3652 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3653
3654         * config/i386/driver-i386.c (detect_caches_amd,
3655         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
3656         and/or -Wcast-qual warnings.
3657         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
3658         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
3659         gt_pch_save): Likewise.
3660         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
3661         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
3662         * global.c (compute_regsets): Likewise.
3663         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3664         finish_graph_dump_file): Likewise.
3665         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
3666         unlink_bb_notes): Likewise.
3667         * integrate.c (get_hard_reg_initial_val): Likewise.
3668         * ipa-prop.c (ipa_push_func_to_list): Likewise.
3669         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
3670         * local-alloc.c (update_equiv_regs): Likewise.
3671         * loop-invariant.c (check_invariant_table_size,
3672         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
3673         Likewise.
3674         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
3675         altered_reg_used, mark_altered): Likewise.
3676         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
3677         insert_var_expansion_initialization,
3678         combine_var_copies_in_loop_exit, apply_opt_in_copies,
3679         release_var_copies): Likewise.
3680         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
3681         analyze_matrix_decl, add_allocation_site, analyze_transpose,
3682         analyze_accesses_for_phi_node, check_var_notmodified_p,
3683         check_allocation_function, find_sites_in_func,
3684         record_all_accesses_in_func, transform_access_sites,
3685         transform_allocation_sites): Likewise.
3686         * omp-low.c (new_omp_region, create_omp_child_function_name,
3687         check_omp_nesting_restrictions, check_combined_parallel,
3688         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
3689         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
3690         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
3691         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
3692         Likewise.
3693         * opts-common.c (prune_options): Likewise.
3694         * opts.c (add_input_filename, print_filtered_help,
3695         get_option_state): Likewise.
3696         * params.c (add_params): Likewise.
3697         * passes.c (set_pass_for_id, next_pass_1,
3698         do_per_function_toporder, pass_fini_dump_file): Likewise.
3699         * postreload.c (reload_cse_simplify_operands): Likewise.
3700         * predict.c (tree_predicted_by_p, tree_predict_edge,
3701         clear_bb_predictions, combine_predictions_for_bb): Likewise.
3702
3703 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3704
3705         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
3706         warnings.
3707         * recog.c (check_asm_operands, validate_change_1): Likewise.
3708         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
3709         subst_asm_stack_regs): Likewise.
3710         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
3711         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
3712         * regmove.c (reg_is_remote_constant_p): Likewise.
3713         * regrename.c (regrename_optimize, scan_rtx_reg,
3714         kill_clobbered_value, kill_set_value, kill_autoinc_value):
3715         Likewise.
3716         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
3717         regstat_compute_calls_crossed): Likewise.
3718         * reload1.c (init_reload, new_insn_chain,
3719         has_nonexceptional_receiver, reload, copy_reloads,
3720         calculate_needs_all_insns, init_elim_table): Likewise.
3721         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
3722         * rtl.c (shallow_copy_rtx_stat): Likewise.
3723         * rtlanal.c (parms_set): Likewise.
3724         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
3725         sbitmap_resize, sbitmap_vector_alloc): Likewise.
3726         * sched-ebb.c (earliest_block_with_similiar_load,
3727         add_deps_for_risky_insns): Likewise.
3728         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
3729         schedule_region): Likewise.
3730         * see.c (eq_descriptor_pre_extension,
3731         hash_descriptor_pre_extension, hash_del_pre_extension,
3732         eq_descriptor_properties, hash_descriptor_properties,
3733         hash_del_properties, see_seek_pre_extension_expr,
3734         see_initialize_data_structures, see_print_register_properties,
3735         see_print_pre_extension_expr, see_delete_merged_def_extension,
3736         see_delete_unmerged_def_extension, see_emit_use_extension,
3737         see_pre_delete_extension, see_map_extension, see_commit_changes,
3738         see_analyze_merged_def_local_prop,
3739         see_analyze_merged_def_local_prop,
3740         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
3741         see_set_prop_merged_def, see_set_prop_unmerged_def,
3742         see_set_prop_unmerged_use, see_print_one_extension,
3743         see_merge_one_use_extension, see_merge_one_def_extension,
3744         see_store_reference_and_extension, see_update_uses_relevancy,
3745         see_update_defs_relevancy): Likewise.
3746         * statistics.c (hash_statistics_hash, hash_statistics_eq,
3747         hash_statistics_free, curr_statistics_hash): Likewise.
3748         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
3749         expand_asm_operands, expand_return, case_bit_test_cmp,
3750         expand_case): Likewise.
3751         * stor-layout.c (start_record_layout): Likewise.
3752         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
3753         gt_pch_save_stringpool): Likewise.
3754         * tree-data-ref.c (hash_stmt_vertex_info,
3755         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
3756         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
3757
3758 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
3759
3760         PR target/36627
3761         * config/i386/i386.md : Change constraints of HImode and QImode
3762         immediate operands from "i" to "n".  Change SImode "ni" constraint to
3763         "i" and SImode "rmi" constraint to "g".  Remove all constraints
3764         from const0_operand and const1_operand predicated operands.
3765         (i): Change QImode and HImode attribute from "i" to "n".
3766         (*subqi_2): Change HImode operands to QImode.
3767         (*subqi_3): Ditto.
3768
3769 2008-06-25  Olivier Hainque  <hainque@adacore.com>
3770
3771         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
3772         sed substitutions.
3773
3774 2008-06-25  Richard Guenther  <rguenther@suse.de>
3775
3776         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
3777         not overflow the result type.
3778
3779 2008-06-25  Richard Guenther  <rguenther@suse.de>
3780
3781         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
3782         (vn_lookup): Likewise.
3783
3784 2008-06-25  Richard Guenther  <rguenther@suse.de>
3785
3786         PR tree-optimization/35518
3787         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
3788         * tree-sra.c (instantiate_element): Use fold_build3 to build
3789         BIT_FIELD_REFs.
3790         (try_instantiate_multiple_fields): Likewise.
3791
3792 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3793
3794         * config/rs6000/rs6000.md: Change all string instruction's clobber to
3795         be early clobbers.
3796
3797 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3798
3799         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
3800         use_backchain_to_restore_sp to true
3801         if the offset of the link register save area would go over the 32k - 1
3802         offset limit of the load
3803         instructions.
3804
3805 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
3806
3807         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
3808         anchor for the type-punning blurb.  Cross-reference "Structures
3809         unions enumerations and bit-fields implementation".  Provide a
3810         cast-through-pointer example.  Make final sentence self-contained.
3811         * doc/implement-c.texi (Structures unions enumerations and
3812         bit-fields implementation): Cross-reference the type-punning blurb
3813         in the -fstrict-aliasing documentation.
3814
3815 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3816
3817         PR middle-end/36594
3818         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
3819         the memory instead of the memory itself for the save area.
3820
3821 2008-06-24  Olivier Hainque  <hainque@adacore.com>
3822             Nicolas Roche  <roche@adacore.com>
3823
3824         * gengtype.c (srcdir_len): size_t instead of int.
3825         (get_file_realbasename): New function.  For F a filename, the real
3826         basename of F, with all the path components stripped.
3827         (get_file_srcdir_relative_path): New function.  For F a filename, the
3828         relative path to F from $(srcdir).
3829         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
3830         get_file_realbasename.  Adjust the head comment.
3831         (get_prefix_langdir_index): New function. For F a filename, return the
3832         lang_dir_names[] relative index of the language directory that is
3833         a prefix in F.
3834         (get_file_langdir): For F a filename, return the name of the language
3835         directory where F is located.
3836         (get_file_gtfilename): New function. The gt- output file name for an
3837         input filename F.
3838         (get_output_file_with_visibility): Replace in-line computations with
3839         uses of get_file_gtfilename and get_prefix_langdir_index.
3840         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
3841
3842 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
3843
3844         PR tree-optimization/36504
3845         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
3846         references without base address.
3847
3848 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3849
3850         PR middle-end/36584
3851         * calls.c (expand_call): Increase alignment for recursive functions.
3852
3853 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
3854
3855         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
3856         (TARGET_FUNCTION_VALUE): New define.
3857         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
3858         * config/avr/avr.h (FUNCTION_VALUE): Remove.
3859
3860 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3861
3862         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
3863         (fmod<mode>3): Ditto.
3864         (remainderxf3): Ditto.
3865         (remainder<mode>3): Ditto.
3866
3867 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
3868
3869         PR target/36533
3870         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
3871         REG is a hard register.
3872
3873         PR tree-optimization/36508
3874         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
3875         499, don't check it at all in release compilers.
3876
3877 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3878
3879         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
3880         together with SSE_TARGET_MATH to disable insn pattern.
3881         (*fop_<MODEF:mode>_2_i387): Ditto.
3882         (*fop_<MODEF:mode>_3_i387): Ditto.
3883
3884 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
3885
3886         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
3887
3888 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3889
3890         PR middle-end/34906
3891         * gimplify.c (gimplify_asm_expr): Check the return code of
3892         parse_output_constraint call, set function return and is_inout
3893         value if it failed.
3894
3895 2008-06-22  Ian Lance Taylor  <iant@google.com>
3896
3897         * c-lex.c (narrowest_unsigned_type): Change itk to int.
3898         (narrowest_signed_type): Likewise.
3899         * c-typeck.c (c_common_type): Change local variable mclass to enum
3900         mode_class, twice.
3901         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
3902         tcc_comparison, not the tree code itself.
3903         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
3904         (c_expand_expr): Cast modifier to enum expand_modifier.
3905         * c-common.h (C_RID_CODE): Add casts.
3906         (C_SET_RID_CODE): Define.
3907         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
3908         (c_lex_one_token): Add cast to avoid warning.
3909         (c_parser_objc_type_name): Rename local typename to type_name.
3910         (check_no_duplicate_clause): Change code parameter to enum
3911         omp_clause_code.
3912         (c_parser_omp_var_list_parens): Change kind parameter to enum
3913         omp_clause_code.
3914         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
3915         c_parser_omp_list_var_parens.
3916         (c_parser_omp_threadprivate): Likewise.
3917         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
3918         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
3919         * c-format.c (NO_FMT): Define.
3920         (printf_length_specs): Use NO_FMT.
3921         (asm_fprintf_length_specs): Likewise.
3922         (gcc_diag_length_specs): Likewise.
3923         (scanf_length_specs): Likewise.
3924         (strfmon_length_specs): Likewise.
3925         (gcc_gfc_length_specs): Likewise.
3926         (printf_flag_specs): Change 0 to STD_C89.
3927         (asm_fprintf_flag_specs): Likewise.
3928         (gcc_diag_flag_specs): Likewise.
3929         (gcc_cxxdiag_flag_specs): Likewise.
3930         (scanf_flag_specs): Likewise.
3931         (strftime_flag_specs): Likewise.
3932         (strfmon_flag_specs): Likewise.
3933         (print_char_table): Likewise.
3934         (asm_fprintf_char_table): Likewise.
3935         (gcc_diag_char_table): Likewise.
3936         (gcc_tdiag_char_table): Likewise.
3937         (gcc_cdiag_char_table): Likewise.
3938         (gcc_cxxdiag_char_table): Likewise.
3939         (gcc_gfc_char_table): Likewise.
3940         (scan_char_table): Likewise.
3941         (time_char_table): Likewis.
3942         (monetary_char_table): Likewise.
3943         * c-format.h (BADLEN): Likewise.
3944
3945 2008-06-21  Ian Lance Taylor  <iant@google.com>
3946
3947         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
3948         Define END_OF_BASE_TREE_CODES around inclusion.
3949         * tree.c (tree_code_type): New global array.
3950         (tree_code_length, tree_code_name): Likewise.
3951         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
3952         $(lang_tree_files).
3953         (all-tree.def, s-alltree): New targets.
3954         (gencheck.h, s-gencheck): Remove.
3955         (tree.o): Depend upon all-tree.def.
3956         (build/gencheck.o): Remove gencheck.h dependency.
3957         (mostlyclean): Don't remove gencheck.h.
3958         * c-common.h (enum c_tree_code): Remove.
3959         * c-lang.c (tree_code_type): Remove.
3960         (tree_code_length, tree_code_name): Remove.
3961         * gencheck.c (tree_codes): Include all-tree.def, rather than
3962         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
3963         after it is used.
3964         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
3965         than tree.def.
3966         * cp/cp-tree.h (enum cplus_tree_code): Remove.
3967         (operator_name_info): Size to MAX_TREE_CODES.
3968         (assignment_operator_name_info): Likewise.
3969         * cp/cp-lang.c (tree_code_type): Remove.
3970         (tree_code_length, tree_code_name): Remove.
3971         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
3972         (assignment_operator_name_info): Likewise.
3973         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
3974         MAX_TREE_CODES.
3975         * cp/mangle.c (write_expression): Likewise.
3976         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
3977         * fortran/f95-lang.c (tree_code_type): Remove.
3978         (tree_code_length, tree_code_name): Remove.
3979         * java/java-tree.h (enum java_tree_code): Remove.
3980         * java/lang.c (tree_code_type): Remove.
3981         (tree_code_length, tree_code_name): Remove.
3982         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
3983         * objc/objc-act.h (enum objc_tree_code): Remove.
3984         * objc/objc-lang.c (tree_code_type): Remove.
3985         (tree_code_length, tree_code_name): Remove.
3986         * objcp/objcp-lang.c (tree_code_type): Remove.
3987         (tree_code_length, tree_code_name): Remove.
3988         * ada/ada-tree.h (enum gnat_tree_code): Remove.
3989         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
3990         * ada/misc.c (tree_code_type): Remove.
3991         (tree_code_length, tree_code_name): Remove.
3992
3993 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
3994
3995         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
3996         the grand_bitmap_obstack.
3997
3998 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3999
4000         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
4001         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
4002         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
4003         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
4004         move_stmt_r, new_label_mapper): Likewise.
4005         * tree-complex.c (cvc_lookup): Likewise.
4006         * tree-dfa.c (create_function_ann): Likewise.
4007         * tree-dump.c (dump_register): Likewise.
4008         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
4009         find_phi_replacement_condition): Likewise.
4010         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
4011         tree_function_versioning): Likewise.
4012         * tree-into-ssa.c (cmp_dfsnum): Likewise.
4013         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
4014         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
4015         get_nonlocal_debug_decl, convert_nonlocal_reference,
4016         convert_nonlocal_omp_clauses, get_local_debug_decl,
4017         convert_local_reference, convert_local_omp_clauses,
4018         convert_nl_goto_reference, convert_nl_goto_receiver,
4019         convert_tramp_reference, convert_call_expr): Likewise.
4020         * tree-outof-ssa.c (contains_tree_r): Likewise.
4021         * tree-parloops.c (reduction_phi, initialize_reductions,
4022         eliminate_local_variables_1, add_field_for_reduction,
4023         add_field_for_name, create_phi_for_local_result,
4024         create_call_for_reduction_1, create_loads_for_reductions,
4025         create_stores_for_reduction, create_loads_and_stores_for_name):
4026         Likewise.
4027         * tree-phinodes.c (allocate_phi_node): Likewise.
4028         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
4029         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
4030         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
4031         * tree-ssa-coalesce.c (compare_pairs): Likewise.
4032         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
4033         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
4034         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
4035         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
4036         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
4037         vn_nary_op_insert): Likewise.
4038         * tree-ssa.c (redirect_edge_var_map_add,
4039         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
4040         * tree-vectorizer.c (vectorize_loops): Likewise.
4041         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
4042         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
4043         tree_cons_stat, build1_stat, build_variant_type_copy,
4044         decl_init_priority_lookup, decl_fini_priority_lookup,
4045         decl_priority_info, decl_restrict_base_lookup,
4046         decl_restrict_base_insert, decl_debug_expr_lookup,
4047         decl_debug_expr_insert, decl_value_expr_lookup,
4048         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
4049         type_hash_add, get_file_function_name, tree_check_failed,
4050         tree_not_check_failed, tree_range_check_failed,
4051         omp_clause_range_check_failed, build_omp_clause,
4052         build_vl_exp_stat): Likewise.
4053         * value-prof.c (gimple_histogram_value,
4054         gimple_duplicate_stmt_histograms): Likewise.
4055         * var-tracking.c (attrs_list_insert, attrs_list_copy,
4056         unshare_variable, variable_union_info_cmp_pos, variable_union,
4057         dataflow_set_different_1, dataflow_set_different_2,
4058         vt_find_locations, variable_was_changed, set_variable_part,
4059         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
4060         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
4061         section_entry_hash, object_block_entry_eq,
4062         object_block_entry_hash, create_block_symbol,
4063         initialize_cold_section_name, default_function_rodata_section,
4064         strip_reg_name, set_user_assembler_name, const_desc_eq,
4065         build_constant_desc, output_constant_def, lookup_constant_def,
4066         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
4067         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
4068         default_internal_label): Likewise.
4069         * varray.c (varray_init, varray_grow): Likewise.
4070         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
4071
4072 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
4073
4074         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
4075         operators for "test" insn.  Macroize insn using SWI mode macro.
4076         (*jcc_fused_2): Ditto.
4077         (*jcc_fused_3): Macroize insn using SWI mode macro.
4078         (*jcc_fused_4): Ditto.
4079
4080 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
4081
4082         * tree-ssa-pre.c: Fix typo in comment.
4083         (init_antic, fini_antic): Add explicit funtions for
4084         initializing and deinitializing ANTIC and AVAIL sets.
4085         (create_expression_by_pieces): Fix typo in comment.
4086         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
4087         (execute_pre): Eventually dump details about ANTIC_IN.
4088
4089 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4090
4091         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
4092         * gcc.c (translate_options, init_spec, store_arg, read_specs,
4093         add_to_obstack, file_at_path, find_a_file, execute,
4094         add_preprocessor_option, add_assembler_option, add_linker_option,
4095         process_command, insert_wrapper, do_option_spec, do_self_spec,
4096         spec_path, do_spec_1, is_directory, main, used_arg,
4097         getenv_spec_function): Likewise.
4098         * tlink.c (symbol_hash_lookup, file_hash_lookup,
4099         demangled_hash_lookup, symbol_push, file_push, frob_extension):
4100         Likewise.
4101
4102 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
4103
4104         * doc/rtl.texi: Updated subreg section.
4105
4106 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
4107
4108         PR c++/36523
4109         * cgraphunit.c (cgraph_process_new_functions): Don't clear
4110         node->needed and node->reachable.
4111         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
4112         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
4113         (expand_task_call): Don't call expand_task_copyfn.
4114         (expand_task_copyfn): Renamed to...
4115         (finalize_task_copyfn): ... this.
4116
4117 2008-06-19  Jan Hubicka  <jh@suse.cz>
4118
4119         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
4120         clobbering framepointer.
4121
4122 2008-06-19  Jan Hubicka  <jh@suse.cz>
4123
4124         * tree-optimize.c (execute_early_local_optimizations): Set
4125         cgraph_state only at first invocation.
4126
4127 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4128
4129         * system.h (-Wc++-compat): Activate as a warning, no an error.
4130
4131 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
4132
4133         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
4134         instead of "#" in insn asm template.
4135         (*jcc_fused_2): Ditto.
4136
4137 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
4138
4139         * config/i386/i386.h (ix86_tune_indices)
4140         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
4141         (TARGET_FUSE_CMP_AND_BRANCH): New define.
4142         * config/i386/i386.md (*jcc_fused_1): New insn pattern
4143         (*jcc_fused_2): Ditto.
4144         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
4145         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
4146         (print operand): Handle 'E' and 'e' code.
4147
4148 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
4149
4150         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
4151         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4152         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4153
4154 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
4155
4156         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
4157         node->decl.
4158         (cgraph_expand_function): Use local copy of decl.
4159         (cgraph_expand_all_functions): Remove redundant initialization of
4160         order_pos.
4161         (cgraph_optimize): Reword internal_error message.
4162
4163 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
4164
4165         * arm-protos.h (arm_return_in_memory): Remove public
4166         arm_return_in_memory() prototype.
4167         * arm.c (arm_return_in_memory): Add static prototype, add target
4168         hook macro, change definition and comments.
4169         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
4170
4171 2008-06-19  Ben Elliston  <bje@au.ibm.com>
4172
4173         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
4174         real.c: Remove references to IEEE 754R.
4175         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
4176         * doc/libgcc.texi (Decimal float library routines): Likewise.
4177
4178 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4179
4180         * targhooks.h (struct gcc_target): New member unwind_word_mode.
4181         (default_unwind_word_mode): Add prototype.
4182         * targhooks.c (default_unwind_word_mode): New function.
4183         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
4184         instead of word_mode.
4185         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
4186         (TARGET_INITIALIZER): Use it.
4187
4188         * c-common.c (handle_mode_attribute): Support "unwind_word"
4189         mode attribute.
4190         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
4191
4192         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
4193         word_mode to access SjLj_Function_Context member "data".
4194         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
4195         conversion from targetm.eh_return_filter_mode () to
4196         targetm.unwind_word_mode () if they differ.
4197
4198         * builtin-types.def (BT_UNWINDWORD): New primitive type.
4199         (BT_FN_UNWINDWORD_PTR): New function type.
4200         (BT_FN_WORD_PTR): Remove.
4201         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
4202         * except.c (expand_builtin_extend_pointer): Convert pointer to
4203         targetm.unwind_word_mode () instead of word_mode.
4204
4205         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
4206         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
4207         (spu_unwind_word_mode): New function.
4208         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
4209         (TARGET_UNWIND_WORD_MODE): Define.
4210         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
4211
4212 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4213
4214         * config/spu/spu.c (reg_align): Remove.
4215         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
4216         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
4217         (spu_split_store): Likewise.
4218
4219 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
4220
4221         * gcc/tree-vn.c: Fix typo in comment.
4222
4223 2008-06-18  Jan Hubicka  <jh@suse.cz>
4224
4225         * cgraphunit.c (cgraph_optimize): Output debug info when doing
4226         toplevel reorder too.
4227
4228 2008-06-18  Jan Hubicka  <jh@suse.cz>
4229
4230         * c-opts.c (c_common_post_options): PCH is not compatible with
4231         no-unit-at-a-time.
4232         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
4233         -fno-toplevel-reorder by default now.
4234
4235 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4236
4237         PR documentation/30739
4238         * doc/install.texi (Prerequisites): Document dependency on awk.
4239
4240 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
4241             Ian Lance Taylor  <iant@google.com>
4242
4243         PR rtl-optimization/35604
4244         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
4245         only want to change jump destinations, not eventual label comparisons.
4246
4247 2008-06-16  Jan Hubicka  <jh@suse.cz>
4248
4249         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
4250         syntax errors.
4251         (cgraph_analyze_function): Likewise.
4252
4253 2008-06-16  Jan Hubicka  <jh@suse.cz>
4254
4255         * cgraph.h (cgraph_mark_if_needed): New function.
4256         * cgraphunit.c (cgraph_mark_if_needed): New function.
4257         * c-decl.c (duplicate_decl): Use it.
4258
4259 2008-06-16  Jan Hubicka  <jh@suse.cz>
4260
4261         * cgraph.c (cgraph_add_new_function): When in expansion state, do
4262         lowering.
4263
4264 2008-06-16  Jan Hubicka  <jh@suse.cz>
4265
4266         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
4267
4268 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
4269             Kazu Hirata  <kazu@codesourcery.com>
4270             Maxim Kuvyrkov  <maxim@codesourcery.com
4271
4272         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
4273         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
4274         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
4275         EXTRA_SPEC_FUNCTIONS.
4276         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
4277         (DRIVER_SELF_SPECS): Adjust.
4278         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
4279         * config/mips/st.h, config/mips/t-st: New.
4280         * config/mips/driver-native.c, config/mips/x-native: New.
4281         * doc/invoke.texi (MIPS): Document 'native' value for -march and
4282         -mtune options.
4283
4284 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
4285
4286         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
4287         from it.
4288         (ISA_HAS_FP_CONDMOVE): New macro.
4289         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
4290         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
4291         (ISA_HAS_NMADD3_NMSUB3): New macro.
4292         * config/mips/mips.c (mips_rtx_costs): Update.
4293         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
4294         compiling for ST Loongson 2E/2F.
4295         (madd<mode>): Rename to madd4<mode>.  Update.
4296         (madd3<mode>): New pattern.
4297         (msub<mode>): Rename to msub4<mode>.  Update.
4298         (msub3<mode>): New pattern.
4299         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
4300         (nmadd3<mode>): New pattern.
4301         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
4302         (nmadd3<mode>_fastmath): New pattern.
4303         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
4304         (nmsub3<mode>): New pattern.
4305         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
4306         (nmsub3<mode>_fastmath): New pattern.
4307         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
4308
4309 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
4310
4311         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
4312         (DF_REF_INSN_INFO): New.
4313         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
4314         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
4315         with a NULL DF_REF_INSN_INFO.
4316         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
4317         DF_INSN_SET.
4318         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
4319         DF_INSN_INFO_EQ_USES): New.
4320         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
4321         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
4322         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
4323         * df-core.c: Update comment for above changes.
4324         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
4325         DF_INSN_UID_* macros.
4326         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
4327         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
4328         insn rtx.  Update all callers.
4329         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
4330         df_ref_create_structure, df_insn_refs_collect): Likewise.
4331         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
4332         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
4333         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
4334         macros to access the insn refs.
4335         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
4336         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
4337         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
4338         for accessing the refs.
4339         (try_fwprop_subst): Likewise.
4340         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
4341         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
4342         for accessing the refs.
4343         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
4344         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
4345         to look at the insn refs.
4346         (record_uses): Likewise.
4347         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
4348         function anymore.
4349         (mark_artificial_uses): Don't mark_insn for artificial refs.
4350         (mark_reg_rependencies): Likewise.
4351
4352         * doc/rtl.texi: Remove documentation of ADDRESSOF.
4353
4354 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4355
4356         * configure: Regenerate.
4357
4358 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4359
4360         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
4361         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4362         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4363
4364 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4365
4366         * config/avr/avr.c (avr_mcu_t): Add attiny167.
4367         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4368         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4369
4370 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4371
4372         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
4373         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4374         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4375
4376 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4377
4378         * tree-ssa-sccvn.c: Fix format of comments.
4379
4380 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4381
4382         * cgraph.c: Remove unneeded forward declarations of eq_node()
4383         and hash_node().
4384
4385 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
4386
4387         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
4388         REG_RETVAL notes.
4389         (see_update_relevancy): Likewise.
4390         * fwprop.c (try_fwprop_subst): Likewise.
4391         * rtlanal.c (noop_move_p): Likewise.
4392         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
4393         notes to non-existing libcall blocks.
4394         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
4395         Remove orig_set.
4396         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
4397         (dead_libcall_p): Remove.
4398         (delete_trivially_dead_insns): Don't use it.
4399         * web.c (union_defs): Remove comment about keeping nops.
4400         * gcse.c (hash_scan_insn): Don't take libcall pointers.
4401         (compute_hash_table_work): Don't track libcall notes.
4402         (do_local_cprop): Don't take libcall pointers.  Don't update
4403         libcall notes.
4404         (adjust_libcall_notes): Deleted.
4405         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
4406         ever have existed in the first place).
4407         (replace_store_insn): Don't try to remove libcall notes.
4408         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
4409         (resolve_reg_notes): Don't call them.
4410         (resolve_simple_move): Likewise.
4411         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
4412         Don't remove REG_RETVAL notes.
4413         * emit-rtl.c (try_split): Don't update libcall notes.
4414         (emit_copy_of_insn_after): Dito.
4415         * cselib.c (cselib_current_insn_in_libcall): Remove.
4416         (cselib_process_insn): Don't set/clear it.
4417         (new_elt_loc_list): Don't record it.
4418         (cselib_init): Don't initialize it.
4419         * cselib.c (struct elt_loc_list): Remove in_libcall field.
4420         * loop-invariant.c (find_invariant_insn): Don't look for libcall
4421         notes.
4422         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
4423         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
4424         (init_deps): Don't initialize it.
4425         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
4426         * combine.c (delete_noop_moves): Don't update libcall notes.
4427         (can_combine_p): Remove now pointless #if 0 block.
4428         (try_combine): Remove another obsolete #if 0 block.
4429         (distribute_notes): Don't distribute libcall notes.
4430         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
4431         * dce.c (libcall_dead_p): Remove.
4432         (delete_unmarked_insns): Don't handle libcall blocks.
4433         (preserve_libcall_for_dce): Remove.
4434         (prescan_insns_for_dce): Don't special-case libcall block insns.
4435         * reload1 (reload): Don't handle libcall notes.
4436         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
4437         documentation.
4438
4439 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4440
4441         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
4442         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4443         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4444
4445 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4446
4447         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
4448         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4449         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4450
4451 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4452
4453         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
4454
4455 2008-06-16  Ira Rosen  <irar@il.ibm.com>
4456
4457         PR tree-optimization/36493
4458         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
4459         the arguments list. Use VECTYPE to create vector pointer.
4460         (vectorizable_store): Fail if accesses through a pointer to vectype
4461         do not alias the original memory reference operands.
4462         Call vect_create_data_ref_ptr without the removed argument.
4463         (vectorizable_load): Likewise.
4464         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
4465         removed argument.
4466
4467 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
4468
4469         PR target/36336
4470         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
4471         reg_equiv_constant.
4472
4473 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4474
4475         * config/mips/loongson2ef.md: New file.
4476         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4477         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4478         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4479         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
4480         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
4481         and loongson_2f.
4482         (loongson2ef.md): New include.
4483         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
4484         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
4485         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
4486         (loongson_gt_<mode>, loongson_extract_halfword)
4487         (loongson_insert_halfword_0, loongson_insert_halfword_2)
4488         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
4489         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
4490         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
4491         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
4492         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
4493         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
4494         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
4495         (vec_interleave_low<mode>): Define type attribute.
4496         * config/mips/mips.c (mips_ls2): New static variable.
4497         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
4498         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
4499         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
4500         Implement target scheduling hooks.
4501         (mips_multipass_dfa_lookahead): Update to handle tuning for
4502         Loongson 2E/2F.
4503         (mips_sched_init): Initialize data for Loongson scheduling.
4504         (mips_ls2_variable_issue): New static function.
4505         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
4506         Add sanity check.
4507         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
4508         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
4509         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
4510         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
4511         Handle ST Loongson 2E/2F cores.
4512         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
4513
4514 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4515
4516         * omp-low.c (extract_omp_for_data): Fix comment typo.
4517         * c.opt: Fix typo.
4518
4519 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4520
4521         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
4522         FIXME note about gcc/config.guess.
4523         * doc/options.texi (Option file format): Remove non-ASCII bytes.
4524         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
4525         * doc/cppopts.texi: Likewise.
4526         * doc/extend.texi: Likewise.
4527         * doc/gcc.texi: Likewise.
4528         * doc/gccint.texi: Likewise.
4529         * doc/gcov.texi: Likewise.
4530         * doc/gty.texi: Likewise.
4531         * doc/hostconfig.texi: Likewise.
4532         * doc/install.texi: Likewise.
4533         * doc/invoke.texi: Likewise.
4534         * doc/loop.texi: Likewise.
4535         * doc/makefile.texi: Likewise.
4536         * doc/md.texi: Likewise.
4537         * doc/passes.texi: Likewise.
4538         * doc/tm.texi: Likewise.
4539         * doc/tree-ssa.texi: Likewise.
4540         * doc/trouble.texi: Likewise.
4541
4542 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
4543             Nathan Sidwell  <nathan@codesourcery.com>
4544             Maxim Kuvyrkov  <maxim@codesourcery.com>
4545             Richard Sandiford  <rdsandiford@googlemail.com>
4546
4547         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
4548         * config/mips/mips-protos.h (mips_expand_vector_init): New.
4549         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
4550         builtins.
4551         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
4552         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
4553         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
4554         V8QImode cases.
4555         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
4556         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
4557         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
4558         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
4559         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
4560         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
4561         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
4562         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
4563         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
4564         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
4565         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
4566         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
4567         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
4568         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
4569         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
4570         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
4571         (mips_builtins): Add Loongson builtins.
4572         (mips_loongson_2ef_bdesc): New.
4573         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
4574         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
4575         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
4576         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
4577         New.
4578         (mips_expand_vector_init): New.
4579         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
4580         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
4581         if appropriate.
4582         * config/mips/mips.md: Add unspec numbers for Loongson
4583         builtins.  Include loongson.md.
4584         (MOVE64): Include Loongson vector modes.
4585         (SPLITF): Include Loongson vector modes.
4586         (HALFMODE): Handle Loongson vector modes.
4587         * config/mips/loongson.md: New.
4588         * config/mips/loongson.h: New.
4589         * config.gcc: Add loongson.h header for mips*-*-* targets.
4590         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
4591
4592 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
4593
4594         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
4595         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
4596         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
4597         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
4598         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
4599         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
4600         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
4601         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
4602         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
4603         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
4604         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
4605         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
4606         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
4607         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
4608         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
4609         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
4610         Remove use_fixproto=yes.
4611         (ia64*-*-hpux*): Remove comment about using fixproto.
4612         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
4613
4614 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4615
4616         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
4617         library rebuilds.
4618         * configure: Regenerate.
4619
4620 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
4621
4622         PR middle-end/36520
4623         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
4624         before evaluating it.
4625
4626 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
4627
4628         PR c/36507
4629         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
4630         nested inline functions.
4631         (start_decl, start_function): Don't invert DECL_EXTERNAL
4632         for nested inline functions.
4633
4634 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4635
4636         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
4637         splits that must be made for correctness.
4638
4639 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4640
4641         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
4642         (AVAIL_NON_MIPS16): Likewise.
4643         (mips_builtin_description): Replace target_flags with a predicate.
4644         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
4645         (dspr2_32): New availability predicates.
4646         (MIPS_BUILTIN): New macro.
4647         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
4648         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
4649         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
4650         Replace the TARGET_FLAGS parameters with AVAIL parameters.
4651         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
4652         (mips_dsp_32only_bdesc): Merge into...
4653         (mips_builtins): ...this new array.
4654         (mips_bdesc_map, mips_bdesc_arrays): Delete.
4655         (mips_init_builtins): Update after above changes.
4656         (mips_expand_builtin_1): Merge into...
4657         (mips_expand_builtin): ...here and update after above changes.
4658
4659 2008-06-12  Paul Brook  <paul@codesourcery.com>
4660
4661         * longlong.h (__arm__): Define count_leading_zeros.
4662         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
4663         (clzsi2, clzdi2): New functions.
4664         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
4665         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
4666         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
4667         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
4668         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
4669         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
4670         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
4671         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4672         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
4673         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
4674
4675 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
4676
4677         * config/m68k/m68k.c (m68k_tune_flags): New.
4678         (override_options): Compute m68k_tune_flags.
4679         (MULL_COST, MULW_COST): Update for various variants of CFV2.
4680         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
4681
4682 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4683
4684         PR middle-end/36506
4685         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
4686
4687 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4688
4689         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
4690         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
4691
4692 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4693
4694         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
4695         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
4696
4697 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4698
4699         PR middle-end/36506
4700         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
4701         reductions.
4702
4703 2008-06-12  Richard Guenther  <rguenther@suse.de>
4704
4705         PR tree-optimization/36345
4706         * tree-flow.h (struct ptr_info_def): Align escape_mask,
4707         add memory_tag_needed flag.
4708         (may_alias_p): Declare.
4709         * tree-ssa-alias.c (may_alias_p): Export.
4710         (set_initial_properties): Use memory_tag_needed flag.
4711         (update_reference_counts): Likewise.
4712         (reset_alias_info): Reset memory_tag_needed flag.
4713         (create_name_tags): Check memory_tag_needed flag.
4714         (dump_points_to_info_for): Dump it.
4715         * tree-ssa-structalias.c (struct variable_info): Remove
4716         directly_dereferenced flag.
4717         (new_var_info): Do not initialize it.
4718         (process_constraint_1): Do not set it.
4719         (update_alias_info): Set is_dereferenced flag.
4720         (set_uids_in_ptset): Use may_alias_p.
4721         (set_used_smts): Check memory_tag_needed flag.
4722         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
4723         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
4724         memory_tag_needed flag.
4725         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
4726         from broken design.
4727
4728 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
4729
4730         * config/i386/i386.c (ix86_compute_frame_layout): Disable
4731         red zone for w64 abi.
4732         (ix86_expand_prologue): Likewise.
4733         (ix86_force_to_memory): Likewise.
4734         (ix86_free_from_memory): Likewise.
4735
4736 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
4737
4738         PR target/36425
4739         * config/rs6000/rs6000.c (rs6000_override_options): Set
4740         rs6000_isel conditionally to the absence of comand line override.
4741         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4742         Remove duplicate rs6000_isel setting.
4743         * config/rs6000/eabispe.h: Ditto.
4744
4745 2008-06-11  Richard Guenther  <rguenther@suse.de>
4746
4747         * alias.c (get_alias_set): Use the element alias-set for arrays.
4748         (record_component_aliases): For arrays and vectors do nothing.
4749         * c-common.c (strict_aliasing_warning): Handle the cases
4750         of alias set zero explicitly.
4751         * Makefile.in (dfp.o-warn): Add -Wno-error.
4752
4753 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4754
4755         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
4756         tune_32 tune_64.
4757         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
4758         tune_32 tune_64 to supported_defaults.  Allow values not
4759         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
4760         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
4761         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
4762         with_cpu_64 to generic for 64-bit-supporting configurations, not
4763         with_cpu.  Remove FIXMEs.
4764         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
4765         --with-arch-64, --with-tune-32, --with-tune-64): Document.
4766         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
4767         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
4768         arch_32 and arch_64.
4769
4770 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
4771             Olivier Hainque  <hainque@adacore.com>
4772
4773         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
4774         Use DECL_SIZE_UNIT to retrieve the size of the field.
4775
4776 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4777
4778         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
4779         with function calls after declarations.  Lay out
4780         neon_float_type_node before further use.
4781
4782 2008-06-11  Richard Guenther  <rguenther@suse.de>
4783
4784         * tree-flow.h (may_point_to_global_var): Declare.
4785         * tree-ssa-alias.c (may_point_to_global_var): New function.
4786         * tree-ssa-sink.c (is_hidden_global_store): Use it.
4787
4788 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
4789
4790         * configure.ac: Teach that fido supports .debug_line.
4791         * configure: Regenerate.
4792
4793 2008-06-10  Tom Tromey  <tromey@redhat.com>
4794
4795         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
4796         debug hook.
4797
4798 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4799
4800         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
4801         (encode_decimal64, decode_decimal64, encode_decimal128,
4802         decode_decimal128): Reverse order of 32-bit parts of value if host
4803         and target endianness differ.
4804
4805 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
4806
4807         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
4808         Avoid division by 0.
4809         (tree_mod_pow2_value_transform): Likewise.
4810         (tree_ic_transform): Likewise.
4811         (tree_stringops_transform): Likewise.
4812         (tree_mod_subtract_transform): Likewise.
4813         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
4814         (copy_edges_for_bb): Likewise.
4815         (initialize_cfun): Likewise.
4816
4817 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4818
4819         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
4820         nonmemory_operand. Add "N" operand constraint.
4821         (*btsi): Ditto.
4822         (*jcc_btdi_mask_rex64): New instruction and split pattern.
4823         (*jcc_btsi_mask): Ditto.
4824         (*jcc_btsi_mask_1): Ditto.
4825
4826 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4827
4828         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
4829         TYPE_CANONICAL for copied element type.
4830
4831 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4832
4833         PR target/36473
4834         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
4835         Add m_CORE2 and m_GENERIC.
4836         * config/i386/predicates.md (bt_comparison_operator): New predicate.
4837         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
4838         (*btsi): Ditto.
4839         (*jcc_btdi_rex64): New instruction and split pattern.
4840         (*jcc_btsi): Ditto.
4841         (*jcc_btsi_1): Ditto.
4842         (*btsq): Fix Intel asm dialect operand order.
4843         (*btrq): Ditto.
4844         (*btcq): Ditto.
4845
4846 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
4847
4848         PR middle-end/36447
4849         * simplify-rtx.c (simplify_subreg): Add check for shift count
4850         greater than size.
4851
4852 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
4853
4854         * doc/md.texi: Synchronize with later constraints.md change.
4855         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
4856         with a C implementation.
4857         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
4858         MFLO handling.
4859         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
4860         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
4861         when moving to and from MD_REGNUM.
4862         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
4863         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
4864         Handle byte and halfword moves.
4865         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
4866         separately.
4867         * config/mips/constraints.md (h): Turn into NO_REGS.
4868         (l, x): Update documentation.
4869         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
4870         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
4871         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
4872         (HILO): New mode iterator.
4873         (MOVE128): Add TI.
4874         (any_div): New code iterator.
4875         (u): Extend code attribute to div and udiv.
4876         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
4877         d_operand in the splitters.  Remove redundant CONST_INT checks.
4878         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
4879         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
4880         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
4881         accordingly, using normal moves instead of unspecs to move LO into
4882         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
4883         (<u>mulsidi3): Handle expansion in C code.
4884         (<u>mulsidi3_32bit_internal): Rename to...
4885         (<u>mulsidi3_32bit): ...this.
4886         (<u>mulsidi3_32bit_r4000): Fix insn separator.
4887         (*<u>mulsidi3_64bit): Rename to...
4888         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
4889         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
4890         to set LO and HI to the multiplication result.  Use a normal move
4891         for MFLO and an unspec for MFHI.
4892         (*<u>mulsidi3_64bit_parts): Replace with...
4893         (<u>mulsidi3_64bit_hilo): ...this new instruction.
4894         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
4895         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
4896         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
4897         instead of HI.  Split the instruction into a separate multiplication
4898         and MFHI if !TARGET_FIX_R4000.
4899         (<su>muldi3_highpart): Likewise.
4900         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
4901         and the "=h" clobber.
4902         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
4903         (<u>mulditi3): New expander.
4904         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
4905         (madsi): Remove "=h" clobber.
4906         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
4907         Force the modulus result to be a GPR and split the instruction into
4908         a division followed by an MFHI after reload.
4909         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
4910         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
4911         the MIPS16 HIGH define_split.
4912         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
4913         of acc<->gpr moves to "multi".
4914         (*movdi_64bit): Replace the single "x" alternative with
4915         alternatives for moving into and out of "a".
4916         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
4917         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
4918         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
4919         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
4920         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
4921         (movti): New expander.
4922         (*movti, *movti_mips16): New insns.
4923         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
4924         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
4925         (mthi<GPR:mode>_<HILO:mode>): Likewise.
4926         * config/mips/predicates.md (fpr_operand): Delete.
4927         (d_operand): New predicate.
4928
4929 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
4930
4931         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
4932         failure on some Bourne shells.
4933         (x86_64-*-*): Ditto.
4934
4935 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
4936
4937         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
4938
4939 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
4940
4941         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
4942         (sparc-sun-solaris2*): Likewise.
4943
4944 2008-06-09  Arnaud Charlet  <charlet@adacore.com
4945
4946         * doc/install.texi: Update requirements to build the Ada compiler.
4947
4948 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
4949
4950         * df-scan.c (struct df_scan_problem_data): Remove the
4951         mw_link_pool alloc pool.
4952         (df_scan_free_internal): Don't free it.
4953         (df_scan_alloc): Don't allocate it.
4954         * df.h (struct df_link): Update comment.
4955
4956 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
4957
4958         * except.h: Correct checks for when SJLJ exceptions must be used.
4959
4960 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4961
4962         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
4963         default.
4964
4965 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
4966
4967         PR tree-optimization/36218
4968         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
4969         configure for the build system.
4970         (BUILD_LDFLAGS): Define.
4971         * configure: Regenerate.
4972         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
4973
4974 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
4975
4976         PR target/36424
4977         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
4978         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
4979         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
4980
4981 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
4982
4983         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
4984
4985 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
4986
4987         * config.gcc (Obsolete configurations): Remove list of
4988         configurations.
4989         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
4990         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
4991         targets matched by those patterns.
4992         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
4993         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
4994         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
4995         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
4996         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
4997         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4998         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
4999         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
5000         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
5001         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
5002         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
5003         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
5004         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
5005         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
5006         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
5007         Make code for Solaris 7 and greater unconditional for Solaris.
5008         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
5009         Remove --with-* handling.
5010         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
5011         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
5012         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
5013         LINK_OS_WINDISS_SPEC): Remove.
5014         * config/rs6000/sysv4.opt (mwindiss): Remove.
5015         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
5016         * configure: Regenerate.
5017         * doc/cpp.texi: Don't mention BeOS.
5018         * doc/extend.texi (interrupt): Don't mention MS1.
5019         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
5020         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
5021         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
5022         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
5023         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
5024         Remove.
5025         * doc/invoke.texi (MT Options): Remove.
5026         (-mwindiss): Remove.
5027         (CRIS Options): Remove cris-axis-aout references.
5028         (HPPA Options): Don't mention hppa1.1-*-pro.
5029         * doc/md.texi: (MorphoTech family): Remove.
5030         * libgcc2.c: Don't handle UWIN.
5031         * config/alpha/t-unicosmk: Remove.
5032         * config/alpha/unicosmk.h: Remove.
5033         * config/arm/kaos-arm.h: Remove.
5034         * config/arm/kaos-strongarm.h: Remove.
5035         * config/arm/strongarm-coff.h: Remove.
5036         * config/arm/strongarm-elf.h: Remove.
5037         * config/arm/strongarm-pe.h: Remove.
5038         * config/arm/t-strongarm-pe: Remove.
5039         * config/arm/t-xscale-coff: Remove.
5040         * config/arm/t-xscale-elf: Remove.
5041         * config/arm/xscale-coff.h: Remove.
5042         * config/arm/xscale-elf.h: Remove.
5043         * config/chorus.h: Remove.
5044         * config/cris/aout.h: Remove.
5045         * config/cris/aout.opt: Remove.
5046         * config/cris/t-aout: Remove.
5047         * config/i386/beos-elf.h: Remove.
5048         * config/i386/kaos-i386.h: Remove.
5049         * config/i386/ptx4-i.h: Remove.
5050         * config/i386/sco5.h: Remove.
5051         * config/i386/sco5.opt: Remove.
5052         * config/i386/sysv4-cpp.h: Remove.
5053         * config/i386/sysv5.h: Remove.
5054         * config/i386/t-beos: Remove.
5055         * config/i386/t-sco5: Remove.
5056         * config/i386/t-uwin: Remove.
5057         * config/i386/uwin.asm: Remove.
5058         * config/i386/uwin.h: Remove.
5059         * config/kaos.h: Remove.
5060         * config/mips/windiss.h: Remove.
5061         * config/mt: Remove directory.
5062         * config/pa/pa-osf.h: Remove.
5063         * config/pa/pa-pro-end.h: Remove.
5064         * config/pa/t-pro: Remove.
5065         * config/ptx4.h: Remove.
5066         * config/rs6000/beos.h: Remove.
5067         * config/rs6000/kaos-ppc.h: Remove.
5068         * config/rs6000/t-beos: Remove.
5069         * config/rs6000/windiss.h: Remove.
5070         * config/sh/kaos-sh.h: Remove.
5071         * config/sol2-6.h: Remove.
5072         * config/sparc/sol26-sld.h: Remove.
5073         * config/sparc/sysv4-only.h: Remove.
5074         * config/vax/bsd.h: Remove.
5075         * config/vax/t-memfuncs: Remove.
5076         * config/vax/ultrix.h: Remove.
5077         * config/vax/vaxv.h: Remove.
5078         * config/windiss.h: Remove.
5079
5080 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
5081
5082         PR rtl-optimization/36438
5083         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
5084         for vector shifts with constant scalar shift operands.
5085
5086 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
5087
5088         * doc/invoke.texi: Document -march=xlr.
5089         * config/mips/xlr.md: New file.
5090         * config/mips/mips.md: Include it.
5091         (cpu): Add "xlr".
5092         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
5093         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
5094         (mips_rtx_cost_data): Likewise.
5095
5096 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
5097
5098         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
5099         PRE_INC and PRE_DEC cases.
5100
5101 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
5102
5103         PR rtl-optimization/36419
5104         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
5105         the emitting jump insn.
5106
5107         PR target/36362
5108         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
5109         is not bool, boolify the whole *expr_p and convert to the desired type.
5110
5111 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
5112
5113         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
5114         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
5115         Add omp_private_outer_ref hook, add another argument to
5116         omp_clause_default_ctor hook.
5117         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
5118         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
5119         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
5120         hook_tree_tree_tree_tree_null.
5121         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
5122         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
5123         * hooks.c (hook_tree_tree_tree_tree_null): New function.
5124         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
5125         * tree.def (OMP_TASK): New tree code.
5126         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
5127         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
5128         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
5129         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
5130         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
5131         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
5132         OMP_CLAUSE_COLLAPSE_EXPR): Define.
5133         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5134         (OMP_DIRECTIVE_P): Add OMP_TASK.
5135         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
5136         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
5137         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
5138         and OMP_CLAUSE_UNTIED entries.
5139         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
5140         num_ops to 2.
5141         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5142         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
5143         * tree-pretty-print.c (dump_omp_clause): Handle
5144         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
5145         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5146         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
5147         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
5148         warning about unsigned iterators.  Change decl/init/cond/incr
5149         arguments to TREE_VECs, check arguments for all collapsed loops.
5150         (c_finish_omp_taskwait): New function.
5151         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
5152         ws_clauses.
5153         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
5154         default_function_array_conversion on init.  Add par_clauses argument.
5155         If decl is present in parallel's lastprivate clause, change it to
5156         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
5157         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
5158         collapse count in clauses.
5159         (c_parser_omp_for, c_parser_omp_parallel): Adjust
5160         c_parser_omp_for_loop callers.
5161         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
5162         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
5163         (c_parser_omp_clause_name): Handle collapse and untied clauses.
5164         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
5165         functions.
5166         (c_parser_omp_clause_schedule): Handle schedule(auto).
5167         Include correct location in the error message.
5168         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
5169         and PRAGMA_OMP_CLAUSE_UNTIED.
5170         (OMP_TASK_CLAUSE_MASK): Define.
5171         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
5172         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
5173         * tree-nested.c (convert_nonlocal_omp_clauses,
5174         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
5175         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
5176         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5177         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
5178         OMP_CLAUSE_DECL.
5179         (conver_nonlocal_reference, convert_local_reference,
5180         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
5181         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
5182         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
5183         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
5184         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
5185         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
5186         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
5187         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
5188         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5189         OMP_CLAUSE_UNTIED.
5190         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
5191         * c-common.h (c_finish_omp_taskwait): New prototype.
5192         * gimple-low.c (lower_stmt): Handle OMP_TASK.
5193         * tree-parloops.c (create_parallel_loop): Create 1 entry
5194         vectors for OMP_FOR_{INIT,COND,INCR}.
5195         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
5196         (make_edges): Handle OMP_TASK.
5197         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
5198         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5199         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
5200         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
5201         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
5202         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5203         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5204         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
5205         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
5206         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
5207         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
5208         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
5209         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
5210         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
5211         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
5212         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
5213         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
5214         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
5215         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
5216         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
5217         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
5218         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
5219         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
5220         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
5221         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
5222         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
5223         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
5224         original iterator is present in lastprivate clause or if
5225         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
5226         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5227         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
5228         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
5229         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
5230         if it is set, lookup var in outer contexts too.  Handle
5231         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
5232         to be implicitly determined firstprivate for task regions.
5233         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
5234         if it is set, lookup var in outer contexts too.  Set
5235         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
5236         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
5237         OMP_CLAUSE_UNTIED.  Take region_type as last argument
5238         instead of in_parallel and in_combined_parallel.
5239         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
5240         Adjust callers.
5241         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
5242         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
5243         (new_omp_context): Set default_kind to
5244         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
5245         (omp_region_type): New enum.
5246         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
5247         fields, add region_type.
5248         (new_omp_context): Take region_type as argument instead of is_parallel
5249         and is_combined_parallel.
5250         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
5251         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
5252         ctx->is_combined_parallel checks.
5253         (gimplify_omp_task): New function.
5254         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5255         OMP_CLAUSE_UNTIED.
5256         * omp-low.c (extract_omp_for_data): Use schedule(static)
5257         for schedule(auto).  Handle pointer and unsigned iterators.
5258         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
5259         Add loops argument.  Extract data for collapsed OMP_FOR loops.
5260         (expand_parallel_call): Assert sched_kind isn't auto,
5261         map runtime schedule to index 3.
5262         (struct omp_for_data_loop): New type.
5263         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
5264         Add loop, loops, collapse and iter_type fields.
5265         (workshare_safe_to_combine_p): Disallow combined for if
5266         iter_type is unsigned long long.  Don't combine collapse > 1 loops
5267         unless all bounds and steps are constant.  Adjust extract_omp_for_data
5268         caller.
5269         (expand_omp_for_generic): Handle pointer, unsigned and long long
5270         iterators.  Handle collapsed OMP_FOR loops.  Adjust
5271         for struct omp_for_data changes.  If libgomp function doesn't return
5272         boolean_type_node, add comparison of the return value with 0.
5273         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
5274         pointer, unsigned and long long iterators.  Adjust for struct
5275         omp_for_data changes.
5276         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
5277         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
5278         unsigned long long.  Allocate loops array, pass it to
5279         extract_omp_for_data.  For collapse > 1 loops use always
5280         expand_omp_for_generic.
5281         (omp_context): Add sfield_map and srecord_type fields.
5282         (is_task_ctx, lookup_sfield): New functions.
5283         (use_pointer_for_field): Use is_task_ctx helper.  Change first
5284         argument's type from const_tree to tree.  Clarify comment.
5285         In OMP_TASK disallow copy-in/out sharing.
5286         (build_sender_ref): Call lookup_sfield instead of lookup_field.
5287         (install_var_field): Add mask argument.  Populate both record_type
5288         and srecord_type if needed.
5289         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
5290         in srecord_type.
5291         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
5292         and DECL_FIELD_OFFSET.
5293         (scan_sharing_clauses): Adjust install_var_field callers.  For
5294         firstprivate clauses on explicit tasks allocate the var by value in
5295         record_type unconditionally, rather than by reference.
5296         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
5297         Use is_taskreg_ctx instead of is_parallel_ctx.
5298         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5299         (create_omp_child_function_name): Add task_copy argument, use
5300         *_omp_cpyfn* names if it is true.
5301         (create_omp_child_function): Add task_copy argument, if true create
5302         *_omp_cpyfn* helper function.
5303         (scan_omp_parallel): Adjust create_omp_child_function callers.
5304         Rename parallel_nesting_level to taskreg_nesting_level.
5305         (scan_omp_task): New function.
5306         (lower_rec_input_clauses): Don't run constructors for firstprivate
5307         explicit task vars which are initialized by *_omp_cpyfn*.
5308         Pass outer var ref to omp_clause_default_ctor hook if
5309         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
5310         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
5311         OMP_CLAUSE_REDUCTION_INIT.
5312         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
5313         avoid duplicate setting of fields.  Handle
5314         OMP_CLAUSE_PRIVATE_OUTER_REF.
5315         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
5316         copy-out if TREE_READONLY, only copy-in.
5317         (expand_task_copyfn): New function.
5318         (expand_task_call): New function.
5319         (struct omp_taskcopy_context): New type.
5320         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
5321         New functions.
5322         (lower_omp_parallel): Rename to...
5323         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
5324         Call create_task_copyfn if srecord_type is needed.  Adjust
5325         sender_decl type.
5326         (task_shared_vars): New variable.
5327         (check_omp_nesting_restrictions): Warn if work-sharing,
5328         barrier, master or ordered region is closely nested inside OMP_TASK.
5329         Add warnings for barrier if closely nested inside of work-sharing,
5330         ordered, or master region.
5331         (scan_omp_1): Call check_omp_nesting_restrictions even for
5332         GOMP_barrier calls.  Rename parallel_nesting_level to
5333         taskreg_nesting_level.  Handle OMP_TASK.
5334         (lower_lastprivate_clauses): Even if some lastprivate is found on a
5335         work-sharing construct, continue looking for them on parent parallel
5336         construct.
5337         (lower_omp_for_lastprivate): Add lastprivate clauses
5338         to the beginning of dlist rather than end.  Adjust for struct
5339         omp_for_data changes.
5340         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
5341         not after it.  Handle collapsed OMP_FOR loops, adjust for
5342         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
5343         (get_ws_args_for): Adjust extract_omp_for_data caller.
5344         (scan_omp_for): Handle collapsed OMP_FOR
5345         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5346         (lower_omp_single_simple): If libgomp function doesn't return
5347         boolean_type_node, add comparison of the return value with 0.
5348         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
5349         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
5350         (parallel_nesting_level): Rename to...
5351         (taskreg_nesting_level): ... this.
5352         (is_taskreg_ctx): New function.
5353         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
5354         of is_parallel_ctx.
5355         (execute_lower_omp): Rename parallel_nesting_level to
5356         taskreg_nesting_level.
5357         (expand_omp_parallel): Rename to...
5358         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
5359         Call omp_task_call for OMP_TASK regions.
5360         (expand_omp): Adjust caller, handle OMP_TASK.
5361         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
5362
5363         * bitmap.c (bitmap_default_obstack_depth): New variable.
5364         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
5365         if argument is NULL and bitmap_default_obstack is already initialized.
5366         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
5367         at the end.
5368         * matrix-reorg.c (matrix_reorg): Likewise.
5369
5370 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
5371
5372         * config/i386/i386.md (*indirect_jump): Macroize using P
5373         mode iterator.  Remove !TARGET_64BIT from insn constraints.
5374         (*tablejump_1): Ditto.
5375         (*indirect_jump_rex64): Remove insn pattern.
5376         (*tablejump_1_rex64): Ditto.
5377         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
5378         and eh_return_si insn patterns.
5379
5380 2008-06-06  Richard Guenther  <rguenther@suse.de>
5381
5382         * tree-ssa-structalias.c (merge_smts_into): Remove.
5383         (find_what_p_points_to): Do not bother to compute the
5384         points-to set for pt_anything pointers.
5385         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
5386         for pt_anything pointers is ok.
5387
5388 2008-06-06  Jan Hubicka  <jh@suse.cz>
5389
5390         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
5391
5392 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5393
5394         * cgraph.c: Fix typos in comments.
5395         (cgraph_availability_names): Fix string typo.
5396         * fold-const.c: Fix typos in comments.
5397         (fold_binary): Fix typo in warning.
5398         * genautomata.c: Fix typos in comments.
5399         (check_presence_pattern_sets): Fix typo in local variable.
5400         (output_description): Fix typo in output.
5401         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
5402         * hwint.h: Likewise.
5403         * matrix-reorg.c (check_allocation_function): Likewise.
5404         * omega.c (smooth_weird_equations): Likewise.
5405         * auto-inc-dec.c: Fix typos in comments.
5406         * bb-reorder.c: Likewise.
5407         * builtins.c: Likewise.
5408         * c-common.c: Likewise.
5409         * c-cppbuiltin.c: Likewise.
5410         * c-parser.c: Likewise.
5411         * c-pretty-print.c: Likewise.
5412         * cfgcleanup.c: Likewise.
5413         * cfgexpand.c: Likewise.
5414         * cfghooks.c: Likewise.
5415         * cfglayout.c: Likewise.
5416         * cfgloopmanip.c: Likewise.
5417         * cgraphunit.c: Likewise.
5418         * coverage.c: Likewise.
5419         * dbxout.c: Likewise.
5420         * df-byte-scan.c: Likewise.
5421         * df-core.c: Likewise.
5422         * df-problems.c: Likewise.
5423         * df-scan.c: Likewise.
5424         * dfp.c: Likewise.
5425         * dominance.c: Likewise.
5426         * domwalk.c: Likewise.
5427         * dse.c: Likewise.
5428         * dwarf2out.c: Likewise.
5429         * emit-rtl.c: Likewise.
5430         * et-forest.c: Likewise.
5431         * function.c: Likewise.
5432         * function.h: Likewise.
5433         * gcc.c: Likewise.
5434         * gcov-io.c: Likewise.
5435         * gcov.c: Likewise.
5436         * gcse.c: Likewise.
5437         * genattrtab.c: Likewise.
5438         * ggc-page.c: Likewise.
5439         * gimplify.c: Likewise.
5440         * gthr-lynx.h: Likewise.
5441         * haifa-sched.c: Likewise.
5442         * ipa-cp.c: Likewise.
5443         * ipa-inline.c: Likewise.
5444         * ipa-prop.h: Likewise.
5445         * ipa-pure-const.c: Likewise.
5446         * ipa-struct-reorg.c: Likewise.
5447         * ipa-struct-reorg.h: Likewise.
5448         * ipa-type-escape.c: Likewise.
5449         * ipa.c: Likewise.
5450         * loop-doloop.c: Likewise.
5451         * mips-tfile.c: Likewise.
5452         * mkmap-flat.awk: Likewise.
5453         * mkmap-symver.awk: Likewise.
5454         * modulo-sched.c: Likewise.
5455         * omp-low.c: Likewise.
5456         * optabs.c: Likewise.
5457         * optabs.h: Likewise.
5458         * opts.c: Likewise.
5459         * passes.c: Likewise.
5460         * postreload-gcse.c: Likewise.
5461         * postreload.c: Likewise.
5462         * predict.c: Likewise.
5463         * pretty-print.h: Likewise.
5464         * profile.c: Likewise.
5465         * protoize.c: Likewise.
5466         * ra-conflict.c: Likewise.
5467         * real.c: Likewise.
5468         * recog.c: Likewise.
5469         * regclass.c: Likewise.
5470         * regs.h: Likewise.
5471         * reload.c: Likewise.
5472         * rtl-error.c: Likewise.
5473         * rtlanal.c: Likewise.
5474         * scan.h: Likewise.
5475         * sched-rgn.c: Likewise.
5476         * see.c: Likewise.
5477         * stmt.c: Likewise.
5478         * target.h: Likewise.
5479         * tree-dfa.c: Likewise.
5480         * tree-eh.c: Likewise.
5481         * tree-flow-inline.h: Likewise.
5482         * tree-inline.c: Likewise.
5483         * tree-into-ssa.c: Likewise.
5484         * tree-loop-distribution.c: Likewise.
5485         * tree-nested.c: Likewise.
5486         * tree-parloops.c: Likewise.
5487         * tree-pass.h: Likewise.
5488         * tree-pretty-print.c: Likewise.
5489         * tree-profile.c: Likewise.
5490         * tree-scalar-evolution.c: Likewise.
5491         * tree-sra.c: Likewise.
5492         * tree-ssa-alias-warnings.c: Likewise.
5493         * tree-ssa-ccp.c: Likewise.
5494         * tree-ssa-coalesce.c: Likewise.
5495         * tree-ssa-dom.c: Likewise.
5496         * tree-ssa-dse.c: Likewise.
5497         * tree-ssa-forwprop.c: Likewise.
5498         * tree-ssa-live.c: Likewise.
5499         * tree-ssa-live.h: Likewise.
5500         * tree-ssa-loop-im.c: Likewise.
5501         * tree-ssa-loop-ivopts.c: Likewise.
5502         * tree-ssa-loop-niter.c: Likewise.
5503         * tree-ssa-loop-prefetch.c: Likewise.
5504         * tree-ssa-phiopt.c: Likewise.
5505         * tree-ssa-phiprop.c: Likewise.
5506         * tree-ssa-sccvn.c: Likewise.
5507         * tree-ssa-ter.c: Likewise.
5508         * tree-ssa-threadupdate.c: Likewise.
5509         * tree-ssa.c: Likewise.
5510         * tree-vect-analyze.c: Likewise.
5511         * tree-vect-transform.c: Likewise.
5512         * tree-vectorizer.c: Likewise.
5513         * tree-vn.c: Likewise.
5514         * tree-vrp.c: Likewise.
5515         * tree.c: Likewise.
5516         * tree.def: Likewise.
5517         * tree.h: Likewise.
5518         * unwind-dw2-fde.c: Likewise.
5519         * unwind.inc: Likewise.
5520         * value-prof.c: Likewise.
5521         * vmsdbgout.c: Likewise.
5522
5523 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
5524
5525         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
5526         always place FP constants in the TOC for TARGET_POWERPC64.
5527         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
5528
5529 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
5530
5531         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
5532         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
5533         enable for TARGET_E500_DOUBLE.
5534         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
5535         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
5536         floating-point modes like integer modes for E500 double.
5537         (rs6000_legitimate_offset_address_p): Likewise.
5538         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
5539         addressing for DDmode for E500 double.
5540         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
5541         modes as using 64-bits of registers for E500 double.
5542         (spe_build_register_parallel): Do not handle DDmode or TDmode.
5543         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
5544         specially for E500 double.
5545         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
5546         TDmode for E500 double.
5547         (rs6000_gimplify_va_arg): Only handle SDmode in registers
5548         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
5549         (rs6000_split_multireg_move): Do not handle TDmode specially for
5550         E500 double.
5551         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
5552         using 64-bit registers for E500 double.
5553         (emit_frame_save): Do not handle DDmode specially for E500 double.
5554         (gen_frame_mem_offset): Likewise.
5555         (rs6000_function_value): Do not call spe_build_register_parallel
5556         for DDmode or TDmode.
5557         (rs6000_libcall_value): Likewise.
5558         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
5559         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
5560         for E500 double.
5561
5562 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5563
5564         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
5565         in comments.
5566
5567 2008-06-04  Junjie Gu <jgu@tensilica.com>
5568
5569         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
5570         comparison for frame pointers.
5571
5572 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5573
5574         PR target/27386
5575         * config/avr/avr.h (PUSH_ROUNDING): Remove.
5576
5577 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5578
5579         PR target/30243
5580         * builtins.c (expand_builtin_signbit): Don't take lowpart when
5581         register is already smaller or equal to required mode.
5582
5583 2008-06-04  Xinliang David Li  <davidxl@google.com>
5584
5585         * tree-call-cdce.c: New file.
5586         (cond_dead_built_in_calls): New static variable.
5587         (input_domain): New struct.
5588         (check_pow): New function.
5589         (check_builtin_call): Ditto.
5590         (check_target_format): Ditto.
5591         (is_call_dce_candidate): Ditto.
5592         (gen_one_condition): Ditto.
5593         (gen_conditions_for_domain): Ditto.
5594         (get_domain): Ditto.
5595         (gen_conditions_for_pow_cst_base): Ditto.
5596         (gen_conditions_for_pow_int_base): Ditto.
5597         (gen_conditions_for_pow): Ditto.
5598         (get_no_error_domain): Ditto.
5599         (gen_shrink_wrap_conditions): Ditto.
5600         (shrink_wrap_one_built_in_call): Ditto.
5601         (shink_wrap_conditional_dead_built_in_calls): Ditto.
5602         (tree_call_cdce): Ditto.
5603         (gate_call_cdce): Ditto.
5604         (pass_call_cdce): New gimple pass.
5605         * passes.c: (init_optimization_passes): New pass.
5606         * tree-pass.h: New pass declaration.
5607         * opts.c (decode_options): New flag setting.
5608         * common.opt: Add -ftree-builtin-call-dce flag.
5609         * Makefile.in: Add new source file.
5610         * tempvar.def: New tv_id.
5611         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
5612
5613 2008-06-04  Richard Guenther  <rguenther@suse.de>
5614
5615         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
5616         (is_call_clobbered): Always check var_ann->call_clobbered.
5617         (mark_call_clobbered): Always set var_ann->call_clobbered.
5618         (clear_call_clobbered): Always clear var_ann->call_clobbered.
5619         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
5620         (reset_alias_info): Clear call clobbering info on MTAGs and
5621         globals as well.
5622         (set_pt_anything): Set pt_global_mem.
5623         (create_tag_raw): Adjust comment.
5624         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
5625
5626 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
5627             Maxim Kuvyrkov  <maxim@codesourcery.com>
5628
5629         * config/m68k/m68k.opt (mxgot): New option.
5630         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
5631         (m68k_output_addr_const_extra): New.
5632         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
5633         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
5634         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
5635         * doc/invoke.texi (M680x0 Options): Document -mxgot.
5636
5637 2008-06-04  Richard Guenther  <rguenther@suse.de>
5638
5639         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
5640         negative or non-representable offsets.
5641
5642 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5643
5644         * config/i386/i386.c (ix86_gen_leave): New.
5645         (ix86_gen_pop1): Likewise.
5646         (ix86_gen_add3): Likewise.
5647         (ix86_gen_sub3): Likewise.
5648         (ix86_gen_sub3_carry): Likewise.
5649         (ix86_gen_one_cmpl2): Likewise.
5650         (ix86_gen_monitor): Likewise.
5651         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
5652         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
5653         ix86_gen_one_cmpl2 and ix86_gen_monitor.
5654         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
5655         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
5656         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
5657         (ix86_expand_epilogue): Updated.
5658         (print_operand): Handle integer register operand for 'z'.
5659         (ix86_expand_strlensi_unroll_1): Likewise.
5660         (ix86_expand_strlen): Likewise.
5661         (ix86_expand_builtin): Likewise.
5662         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
5663         mov{q}/mov{l} and add{q}/add{l}.
5664
5665 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5666
5667         * config/i386/i386.md (P): New mode iterator.
5668         (SFmode push_operand splitter): Macroize DImode and SImode pushes
5669         using P mode iterator.
5670         (DFmode push_operand splitter): Ditto.
5671         (XFmode push_operand splitter): Ditto.
5672         (DFmode float_extend SFmode push_operand splitter): Ditto.
5673         (XFmode float_extend SFmode push_operand splitter): Do not generate
5674         SImode pushes for 64bit target.  Macroize Dimode and SImode
5675         pushes using P mode iterator.
5676         (XFmode float_extend DFmode push_operand splitter): Ditto.
5677
5678 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5679
5680         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
5681         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
5682         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
5683         return type to int.
5684         (ix86_call_abi_override): Remove check for call_used_regs.
5685
5686 2008-06-03  Richard Guenther  <rguenther@suse.de>
5687
5688         * tree-ssa-structalias.c (find_func_aliases): Add constraints
5689         for the lhs of calls if the return type contains pointers.
5690
5691 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5692
5693         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
5694         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
5695         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
5696         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
5697         of cfun and DEFAULT_ABI to deceide abi mode.
5698         (DEFAULT_ABI): New.
5699         (REG_PARM_STACK_SPACE): Removed.
5700         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
5701         (STACK_BOUNDARY): Use default target to deceide stack boundary.
5702         * config/i386/i386-protos.h (ix86_cfun_abi): New.
5703         (ix86_function_abi): Likewise.
5704         (ix86_function_type_abi): Likewise.
5705         (ix86_call_abi_override): Likewise.
5706         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
5707         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
5708         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
5709         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
5710         specific defines.
5711         (X86_64_REGPARM_MAX): New.
5712         (X86_64_SSE_REGPARM_MAX): New.
5713         (X64_REGPARM_MAX): New.
5714         (X64_SSE_REGPARM_MAX): New.
5715         (X86_32_REGPARM_MAX): New.
5716         (X86_32_SSE_REGPARM_MAX): New.
5717         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
5718         (ix86_function_regparm): Handle user calling abi.
5719         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
5720         by DEFAULT_ABI versus SYSV_ABI check.
5721         (ix86_reg_parm_stack_space): New.
5722         (ix86_function_type_abi): New.
5723         (ix86_call_abi_override): New.
5724         (ix86_function_abi): New.
5725         (ix86_cfun_abi): New.
5726         (init_cumulative_args): Call abi specific initialization.
5727         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
5728         (function_arg_64): Extend SSE_REGPARM_MAX check.
5729         (function_arg (): Remove TARGET_64BIT_MS_ABI.
5730         (ix86_pass_by_reference): Likewise.
5731         (ix86_function_value_regno_p): Likewise.
5732         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
5733         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
5734         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
5735         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
5736         (setup_incoming_varargs_64): Adjust regparm for call abi.
5737         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
5738         (ix86_va_start): Likewise.
5739         (ix86_gimplify_va_arg): Likewise.
5740         (ix86_expand_prologue): Likewise.
5741         (output_pic_addr_const): Likewise.
5742         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
5743         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
5744         (x86_output_mi_thunk): Likewise.
5745         (x86_function_profiler): Likewise.
5746         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
5747         (SYSV_ABI, MS_ABI): New constants.
5748         (DEFAULT_ABI): New.
5749         (init_regs): Add prototype of function in regclass.c file.
5750         (OVERRIDE_ABI_FORMAT): New.
5751         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
5752         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
5753         (OUTGOING_REG_PARM_STACK_SPACE): New.
5754         (ix86_reg_parm_stack_space): New prototype.
5755         (CUMULATIVE_ARGS): Add call_abi member.
5756         (machine_function): Add call_abi member.
5757         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
5758         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
5759
5760 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
5761
5762         PR target/34879
5763         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
5764         (avr_builtin_setjmp_frame_value): New function.
5765         * config/avr/avr.md (nonlocal_goto_receiver): Define.
5766         (nonlocal_goto): Define.
5767
5768 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
5769
5770         * config/mips/mips.c (mips_emit_loadgp): Return early if
5771         there is nothing do to, otherwise emit a blockage if
5772         !TARGET_EXPLICIT_RELOCS || crtl->profile.
5773         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
5774
5775 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5776
5777         * configure.ac: Drop unneeded backslash ending up in config.in.
5778         * acinclude.m4: Likewise.
5779         * config.in: Regenerate.
5780
5781 2008-05-26  Jan Hubicka  <jh@suse.cz>
5782
5783         * predict.c (maybe_hot_frequency_p): Break out of...
5784         (maybe_hot_bb_p): ... here.
5785         (maybe_hot_edge_p): New.
5786         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
5787         * basic-block.h (maybe_hot_edge_p): Declare.
5788
5789 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
5790
5791         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
5792         (*cmpfp_<mode>_cc): Ditto.
5793         (*fp_jcc_8<mode>_387): Ditto.
5794         (*fop_<MODEF:mode>_2_i387): Ditto.
5795         (*fop_<MODEF:mode>_3_i387): Ditto.
5796         (*fop_xf_2_i387): Ditto.
5797         (*fop_xf_3_i387): Ditto.
5798
5799 2008-06-02  Tomas Bily  <tbily@suse.cz>
5800
5801         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
5802
5803 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5804
5805         * config/mips/mips.c (mips_valid_offset_p): New function.
5806         (mips_valid_lo_sum_p): Likewise.
5807         (mips_classify_address): Use them.
5808         (mips_force_address): New function.
5809         (mips_legitimize_address): Use it.
5810         * config/mips/mips.md (MOVE128): New mode iterator.
5811         (movtf): Require TARGET_64BIT.  Remove empty strings.
5812         (*movtf_internal): Rename to...
5813         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
5814         of "R" and use {,fp}{load,store} attributes instead of "multi".
5815         Use a separate define_split.
5816         (*movtf_mips16): New pattern.
5817
5818 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5819
5820         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
5821         * config/mips/mips.c (mips_expand_before_return): New function.
5822         (mips_expand_epilogue): Call it.
5823         * config/mips/mips.md (return): Turn into a define_expand.
5824         (*return): New insn.
5825
5826 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5827
5828         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
5829         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
5830         functions.  Do not emit uses and clobbers of CONCATs; individually
5831         use and clobber their operands.
5832         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
5833         gen_clobber, emit_use and gen_use.
5834         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5835         (expand_builtin_return): Likewise.
5836         * cfgbuild.c (count_basic_blocks): Likewise.
5837         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5838         * explow.c (emit_stack_restore): Likewise.
5839         * expmed.c (extract_bit_field_1): Likewise.
5840         * expr.c (convert_move, emit_move_complex_parts): Likewise.
5841         (emit_move_multi_word, store_constructor): Likewise.
5842         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
5843         (thread_prologue_and_epilogue_insns): Likewise.
5844         * lower-subreg.c (resolve_simple_move): Likewise.
5845         * optabs.c (widen_operand, expand_binop): Likewise.
5846         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
5847         * reload.c (find_reloads): Likewise.
5848         * reload1.c (eliminate_regs_in_insn): Likewise.
5849         * stmt.c (expand_nl_goto_receiver): Likewise.
5850         * config/alpha/alpha.md (builtin_longjmp): Likewise.
5851         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
5852         * config/arm/arm.c (arm_load_pic_register): Likewise.
5853         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
5854         * config/arm/arm.md (untyped_return): Likewise.
5855         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
5856         * config/avr/avr.c (expand_prologue): Likewise.
5857         * config/bfin/bfin.c (do_unlink): Likewise.
5858         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
5859         * config/cris/cris.c (cris_expand_prologue): Likewise.
5860         * config/darwin.c (machopic_indirect_data_reference): Likewise.
5861         (machopic_legitimize_pic_address): Likewise.
5862         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
5863         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
5864         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
5865         (ix86_expand_convert_uns_didf_sse): Likewise.
5866         (ix86_expand_vector_init_general): Likewise.
5867         * config/ia64/ia64.md (eh_epilogue): Likewise.
5868         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
5869         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
5870         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
5871         (config/iq2000/iq2000.c): Likewise.
5872         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
5873         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5874         (builtin_longjmp): Likewise.
5875         * config/mn10300/mn10300.md (call, call_value): Likewise.
5876         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
5877         * config/pdp11/pdp11.md (abshi2): Likewise.
5878         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5879         * config/s390/s390.c (s390_emit_prologue): Likewise.
5880         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
5881         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
5882         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
5883         * config/sh/sh.c (prepare_move_operands): Likewise.
5884         (output_stack_adjust, sh_expand_epilogue): Likewise.
5885         (sh_set_return_address, sh_expand_t_scc): Likewise.
5886         * config/sparc/sparc.c (load_pic_register): Likewise.
5887         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
5888         * config/spu/spu.c (spu_expand_epilogue): Likewise.
5889         * config/v850/v850.c (expand_epilogue): Likewise.
5890
5891 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
5892
5893         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
5894         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
5895         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
5896         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
5897         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
5898         stack pointer register.
5899         (output_movhi): Remove code for interrupt specific writing to the
5900         stack pointer register.
5901
5902 2008-05-31  Richard Guenther  <rguenther@suse.de>
5903
5904         PR tree-optimization/34244
5905         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
5906         (tree_expr_nonzero_warnv_p): Likewise.
5907         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
5908         ssa_name_nonnegative_p.
5909         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
5910         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
5911         not tree_expr_nonzero_warnv_p.
5912
5913         PR tree-optimization/36262
5914         Revert
5915         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
5916
5917         PR tree-optimization/34244
5918         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
5919         (record_numbers_of_iterations): New function.
5920         (execute_vrp): Cache the numbers of iterations of loops.
5921         * tree-scalar-evolution.c (scev_reset_except_niters):
5922         New function.
5923         (scev_reset): Use scev_reset_except_niters.
5924         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
5925
5926 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
5927
5928         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5929         __WORKAROUND_RETS when appropriate.
5930
5931 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
5932
5933         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
5934         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
5935         mode iterator.
5936         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
5937         *fop_df_comm_sse insn patterns using MODEF mode iterator.
5938         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
5939         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
5940         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
5941         *fop_df_1_mixed insn patterns using MODEF mode iterator.
5942         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
5943         *fop_df_1_sse insn patterns using MODEF mode iterator.
5944         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
5945         *fop_df_1_i387 insn patterns using MODEF mode iterator.
5946         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
5947         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
5948         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
5949         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
5950         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
5951         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
5952         (*fop_xf_4_i387): Use <MODE> for mode attribute.
5953         (*fop_xf_5_i387): Ditto.
5954         (*fop_xf_6_i387): Ditto.
5955
5956 2008-05-30  Richard Guenther  <rguenther@suse.de>
5957
5958         * builtins.c (build_string_literal): Avoid generating
5959         a non-gimple_val result.
5960
5961 2008-05-30  DJ Delorie  <dj@redhat.com>
5962
5963         * exec-tool.in: Use an environment variable (private) instead of a
5964         file (shared) as a semaphore, so as to not break parallel builds.
5965
5966 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
5967
5968         * optabs.c (maybe_encapsulate_block): Remove.
5969         (emit_libcall_block): Adjust accordingly.
5970         * optabs.h (maybe_encapsulate_block): Remove prototype.
5971
5972         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
5973         Don't use maybe_encapsulate_block.
5974
5975 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
5976
5977         * config/rs6000/rs6000.c (rs6000_legitimize_address,
5978         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
5979         rtx is a SYMBOL_REF before calling get_pool_constant.
5980
5981 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
5982
5983         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
5984
5985 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
5986
5987         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
5988         rather than OS names to choose INO_T_EQ definition.
5989         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
5990         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
5991
5992 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
5993
5994         PR target/36348
5995         * config/darwin-f.c: New.
5996         * config/t-darwin: Added rule to build darwin-f.o.
5997         * config.gcc: Defined new variable, fortran_target_objs.
5998         (*-*-darwin*): Set fortran_target_objs.
5999         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
6000         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
6001         * configure: Regenerated.
6002
6003 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6004
6005         PR target/35771
6006         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
6007         canonical type if needed.
6008
6009 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
6010
6011         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
6012
6013 2008-05-29  Richard Guenther  <rguenther@suse.de>
6014
6015         PR tree-optimization/36343
6016         PR tree-optimization/36346
6017         PR tree-optimization/36347
6018         * tree-flow.h (clobber_what_p_points_to): Declare.
6019         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
6020         pointed-to variable is dereferenced is irrelevant to whether
6021         the pointer can access the pointed-to variable.
6022         (clobber_what_p_points_to): New function.
6023         * tree-ssa-alias.c (set_initial_properties): Use it.
6024         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
6025         call clobber check for NMTs.
6026
6027 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
6028
6029         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
6030         for printing gcov_type.
6031
6032 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
6033
6034         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
6035         and the eh region information.
6036         * value-prof.c (gimple_move_stmt_histograms): New function.
6037         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
6038
6039 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
6040
6041         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
6042
6043 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
6044
6045         * value-prof.c (tree_ic_transform): Print counts.
6046         * tree-profile.c (tree_gen_ic_func_profiler):
6047         Clear __gcov_indreict_call_callee variable to avoid misattribution
6048         of the profile.
6049
6050 2008-05-28  Rafael Espindola  <espindola@google.com>
6051
6052         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
6053         invalid sharing.
6054
6055 2008-05-28  Richard Guenther  <rguenther@suse.de>
6056
6057         PR tree-optimization/36339
6058         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
6059         and clobbering code out of the loop.
6060
6061 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
6062
6063         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
6064         letters defined.
6065
6066         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
6067         s390_contiguous_bitmask_p, s390_symref_operand_p,
6068         s390_check_symref_alignment, s390_reload_larl_operand,
6069         s390_reload_symref_address): New functions.
6070         (s390_branch_condition_mnemonic): Support compare and branch
6071         instructions.
6072         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
6073         and 'W' constraints.
6074         (s390_secondary_reload): Add secondary reloads for unaligned
6075         symbol refs or symbol refs to floating point or QI/TI mode
6076         integer values.
6077         (legitimate_address_p): Accept symbol references as addresses.
6078         (s390_expand_insv): Use rotate and insert selected bits
6079         instruction for insv when building for z10.
6080         (print_operand_address): Handle symbol ref addresses.
6081         (print_operand): Output modifier 'c' added for signed byte values.
6082         (s390_encode_section_info): Mark symbol refs with
6083         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
6084
6085         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
6086         (length attribute): RRF, RRR have 4 byte length.
6087         (FPALL, INTALL): New mode iterators added.
6088         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
6089         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
6090         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
6091         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
6092         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
6093         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
6094         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
6095         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
6096         instructions.
6097         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
6098         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
6099         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
6100         reload<INTALL:mode><P:mode>_toreg_z10,
6101         reload<FPALL:mode><P:mode>_tomem_z10,
6102         reload<FPALL:mode><P:mode>_toreg_z10,
6103         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
6104         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
6105         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
6106         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
6107         definition.
6108         (movmem, clrmem, cmpmem): New splitters added.
6109
6110         * config/s390/predicates.md (larl_operand): Use
6111         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
6112         SYMBOL_REF_ALIGN1_P.
6113         (s390_signed_integer_comparison,
6114         s390_unsigned_integer_comparison): New predicates.
6115
6116         * config/s390/s390-protos.h (s390_check_symref_alignment,
6117         s390_contiguous_bitmask_p, s390_reload_larl_operand,
6118         s390_reload_symref_address,
6119         s390_compare_and_branch_condition_mask): Prototypes added.
6120
6121         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
6122         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
6123         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
6124
6125 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
6126
6127         * config/s390/s390.c (z10_cost): New cost function for z10.
6128         (s390_handle_arch_option, override_options): Support -march=z10 switch.
6129         (s390_issue_rate): Adjust issue rate for z10.
6130         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
6131         (processor_flags): Add PF_Z10.
6132         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
6133         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
6134         * gcc/config.gcc: Add z10.
6135
6136 2008-05-28  Richard Guenther  <rguenther@suse.de>
6137
6138         PR tree-optimization/36291
6139         * tree-flow. h (struct gimple_df): Remove var_anns member.
6140         * tree-flow-inline.h (gimple_var_anns): Remove.
6141         (var_ann): Simplify.
6142         * tree-dfa.c (create_var_ann): Simplify.
6143         (remove_referenced_var): Clear alias info from var_anns of globals.
6144         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
6145         (delete_tree_ssa): Clear alias info from var_anns of globals.
6146         Do not free var_anns.
6147         (var_ann_eq): Remove.
6148         (var_ann_hash): Likewise.
6149
6150 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
6151
6152         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
6153         and loongson2f entries.
6154         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
6155         * config/mips/mips.h (processor_type): Add Loongson-2E
6156         and Loongson-2F entries.
6157         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
6158         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
6159         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
6160         * doc/invoke.texi (MIPS Options): Document loongson2e
6161         and loongson2f processor names.
6162
6163 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
6164
6165         PR target/35767
6166         PR target/35771
6167         * config/i386/i386.c (ix86_function_arg_boundary): Use
6168         alignment of canonical type.
6169         (ix86_expand_vector_move): Check unaligned memory access for
6170         all SSE modes.
6171
6172 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
6173
6174         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
6175         Moved to the front of file.
6176
6177 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
6178             H.J. Lu  <hongjiu.lu@intel.com>
6179
6180         * dwarf2out.c (current_fde): New.
6181         (add_cfi): Use it.
6182         (lookup_cfa:): Likewise.
6183         (dwarf2out_end_epilogue): Likewise.
6184         (dwarf2out_note_section_used): Likewise.
6185
6186 2008-05-27  Michael Matz  <matz@suse.de>
6187
6188         PR c++/27975
6189         * c.opt (Wenum-compare): New warning option.
6190         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
6191
6192 2008-05-27  Michael Matz  <matz@suse.de>
6193
6194         PR middle-end/36326
6195         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
6196         non-BLKmode types.
6197         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
6198         into memory as tail calls.
6199
6200 2008-05-27  Richard Guenther  <rguenther@suse.de>
6201
6202         PR tree-optimization/36339
6203         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
6204         pointers cause all addressable variables to be call clobbered.
6205
6206 2008-05-27  Richard Guenther  <rguenther@suse.de>
6207
6208         PR tree-optimization/36245
6209         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
6210
6211 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6212
6213         * config/s390/s390.md: Replace all occurences of the 'm'
6214         constraint with 'RT'.
6215
6216 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6217
6218         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
6219         definitions added.
6220         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
6221         "*movdi_64".
6222         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
6223         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
6224         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
6225
6226 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6227
6228         * reload.c: (find_reloads): Skip alternatives according to the
6229         "enabled" attribute. Constify the constraint variable.
6230         * recog.c (get_attr_enabled): Add default implementation.
6231         (extract_insn): Set the alternative_enabled_p array
6232         in the recog_data struct.
6233         (preprocess_constraints, constrain_operands): Skip
6234         alternatives according to the "enabled" attribute
6235         * recog.h (struct recog_data): New field alternative_enabled_p.
6236         (skip_alternative): New inline function.
6237         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
6238         (record_reg_classes): Skip alternative according to the
6239         "enabled" attribute.
6240
6241         * doc/md.texi: Add documention for the "enabled" attribute.
6242
6243 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6244
6245         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
6246         * postreload.c (reload_cse_simplify_operands): Replace 'm'
6247         constraint with TARGET_MEM_CONSTRAINT.
6248         * recog.c (asm_operand_ok, preprocess_constraints,
6249         constrain_operands): Likewise.
6250         * regclass.c (record_reg_classes): Likewise.
6251         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
6252         * reload1.c (maybe_fix_stack_asms): Likewise.
6253         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
6254         * recog.h: Adjust comment.
6255         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
6256         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
6257         * doc/md.texi: Add a note to description of 'm' constraint.
6258         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
6259
6260 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6261
6262         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
6263         that the bitfield is of integral type before testing its precision.
6264
6265 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
6266             Sa Liu  <saliu@de.ibm.com>
6267
6268         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
6269         __modti3, __udivti3, __umodti3 and __udivmodti4.
6270         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
6271         that implement TImode mul and div functions.
6272         * config/spu/multi3.c: New. Implement __multi3.
6273         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
6274         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
6275         functions on SPU.
6276
6277 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
6278
6279         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
6280         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
6281         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
6282         tls_sysv_suffix): New mode and mode attribute iterators.
6283         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
6284         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
6285         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
6286         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
6287         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
6288         iterators.
6289
6290 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6291
6292         PR tree-optimization/36329
6293         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
6294         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
6295         * cgraphbuild.c (initialize_inline_failed): Use the latter
6296         macro in lieu of the former.
6297         * ipa-inline.c (cgraph_mark_inline): Likewise.
6298         (cgraph_decide_inlining_of_small_function): Likewise.
6299         (cgraph_decide_inlining): Likewise.
6300         (cgraph_decide_inlining_incrementally): Likewise.
6301
6302 2008-05-26  Tristan Gingold  <gingold@adacore.com>
6303             Anatoly Sokolov  <aesok@post.ru>
6304
6305         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
6306         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
6307         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
6308         optimization for 'avr6' architecture.
6309
6310 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
6311
6312         PR target/34932
6313         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
6314
6315 2008-05-26  Richard Guenther  <rguenther@suse.de>
6316
6317         * tree-ssa-sccvn.c (expr_has_constants): Declare.
6318         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
6319
6320 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
6321
6322         PR middle-end/36253
6323         * caller-save.c (insert_restore): Verify alignment of spill space.
6324         (insert_save): Likewise.
6325         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
6326         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
6327         (STACK_SLOT_ALIGNMENT): Likewise.
6328         * function.c (LOCAL_ALIGNMENT): Removed.
6329         (get_stack_local_alignment): New.
6330         (assign_stack_local): Use it.  Set alignment on stack slot.
6331         (assign_stack_temp_for_type): Use get_stack_local_alignment.
6332         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
6333         (STACK_SLOT_ALIGNMENT): New.
6334         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
6335         stack slot in XFmode.
6336
6337         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
6338
6339 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
6340
6341         PR/36321
6342         * config/i386/i386.md (allocate_stack_worker_64): Make sure
6343         argument operand in rax isn't removed.
6344
6345 2008-05-26  Richard Guenther  <rguenther@suse.de>
6346
6347         PR middle-end/36300
6348         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
6349         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
6350
6351 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6352
6353         PR bootstrap/36331
6354         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
6355
6356 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
6357
6358         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
6359         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
6360
6361 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6362
6363         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
6364         build a trampoline if we don't want one.
6365         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
6366         return zero for nested functions if we don't want a trampoline.
6367
6368 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6369
6370         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
6371
6372 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6373
6374         PR fortran/18428
6375         * c.opt: Removed undocumented option '-lang-fortran'.
6376         * c-common.h: Removed global variable 'lang_fortran'.
6377         * c-opts.c (c_common_handle_option): Removed code to handle
6378         option '-lang-fortran'. Updated includes.
6379         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
6380         definition of '__GFORTRAN__'.
6381         (define__GNUC__): Reimplemented to use BASEVER and
6382         cpp_define_formatted.
6383         (builtin_define_with_value_n): Removed.
6384         * c-incpath.h: Renamed to ...
6385         * incpath.h: ... this.
6386         * c-incpath.c: Renamed to ...
6387         * incpath.c: ... this. Updated includes.
6388         * fix-header.c: Updated includes.
6389         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
6390         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
6391         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
6392
6393 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6394
6395         * tree.h: Update the table of flags used on tree nodes.
6396         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
6397         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
6398         (FORCED_LABEL): Add access check.
6399         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
6400         (ASM_INPUT_P): Likewise.
6401         (ASM_VOLATILE_P): Likewise.
6402         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
6403         (OMP_SECTION_LAST): Access private_flag directly.
6404         (OMP_RETURN_NOWAIT): Likewise.
6405         (OMP_PARALLEL_COMBINED): Likewise.
6406         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
6407         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
6408         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
6409         deprecated_flag directly.
6410
6411 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6412
6413         * final.c (frame_pointer_needed): Removed.
6414         * flags.h (frame_pointer_needed): Likewise.
6415
6416         * function.h (rtl_data): Add frame_pointer_needed.
6417         (frame_pointer_needed): New.
6418
6419 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
6420
6421         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
6422
6423 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
6424
6425         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
6426         SRC is a REG.
6427
6428 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
6429
6430         * c-common.c (strip_array_types): Move function to..
6431         * tree.c: ..here.
6432         (get_inner_array_type): Delete.
6433         * c-common.h (strip_array_types): Move declaration to..
6434         * tree.h: ..here.
6435         (get_inner_array_type): Delete.
6436         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
6437         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6438         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6439         * config/pa/pa.c (emit_move_sequence): Likewise.
6440
6441 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6442
6443         * config/i386/i386.md (*sse_prologue_save_insn): Set length
6444         attribute to 34.
6445
6446 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
6447
6448         * function.c: Include target hook for nonlocal_goto frame value.
6449
6450 2008-05-24  Richard Guenther  <rguenther@suse.de>
6451
6452         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
6453         variable can be only accessed through a pointer or a union.
6454
6455 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6456
6457         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
6458         * doc/extend.texi: Likewise.
6459
6460 2008-05-23  DJ Delorie  <dj@redhat.com>
6461
6462         * config/m32c/jump.md (untyped_call): Add.
6463
6464         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
6465         for A24 to PSImode.
6466         (m32c_address_cost): Detail costs for indirect offsets.
6467
6468 2008-05-23  Rafael Espindola  <espindola@google.com>
6469
6470         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
6471         if a node is a SUBREG.
6472         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
6473         is a SUBREG.
6474
6475 2008-05-23  Paul Brook  <paul@codesourcery.com>
6476             Carlos O'Donell  <carlos@codesourcery.com>
6477
6478         * doc/extend.texi: Clarify use of __attribute__((naked)).
6479         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6480         * target.h (gcc_target): Add allocate_stack_slots_for_args.
6481         * function.c (use_register_for_decl): Use
6482         targetm.calls.allocate_stack_slots_for_args.
6483         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6484         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
6485         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
6486
6487 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
6488
6489         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
6490
6491 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
6492
6493         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
6494         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
6495         is only rounded once.
6496
6497 2008-05-23  Richard Guenther  <rguenther@suse.de>
6498
6499         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
6500
6501 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
6502             Jakub Jelinek  <jakub@redhat.com>
6503
6504         PR target/36079
6505         * configure.ac: Handle --enable-cld.
6506         * configure: Regenerated.
6507         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
6508         * config/i386/i386.h (struct machine_function): Add needs_cld field.
6509         (ix86_current_function_needs_cld): New define.
6510         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
6511         (cld): New isns pattern.
6512         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
6513         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
6514         * config/i386/i386.opt (mcld): New option.
6515         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
6516         TARGET_CLD and ix86_current_function_needs_cld.
6517         (override_options): Use -mcld by default for 32-bit code if
6518         USE_IX86_CLD.
6519
6520         * doc/install.texi (Options specification): Document --enable-cld.
6521         * doc/invoke.texi (Machine Dependent Options)
6522         [i386 and x86-64 Options]: Add -mcld option.
6523         (Intel 386 and AMD x86-64 Options): Document -mcld option.
6524
6525 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
6526         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
6527         (return_in_memory_64): Likewise.
6528         (return_in_memory_ms_64): Likewise.
6529
6530 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6531
6532         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
6533         * builtins.c (fold_builtin_fpclassify): New.
6534         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
6535         * builtins.def (BUILT_IN_FPCLASSIFY): New.
6536         * c-common.c (handle_type_generic_attribute): Adjust to accept
6537         fixed arguments before an elipsis.
6538         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
6539         * doc/extend.texi: Document __builtin_fpclassify.
6540
6541 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
6542
6543         * omp-low.c (gate_expand_omp_ssa): Remove.
6544         (pass_expand_omp_ssa): Remove.
6545         (gate_expand_omp): Do not check for flag_openmp_ssa.
6546         * common.opt (-fopenmp-ssa): Remove.
6547         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
6548
6549 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
6550
6551         * config/sh/sh.opt (mfixed-range): New option.
6552         * config/sh/sh-protos.h (sh_fix_range): Declare.
6553         * config/sh/sh.c (sh_fix_range): New function.
6554         * config/sh/sh.h (sh_fixed_range_str): Declare.
6555         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
6556         is not empty.
6557         * doc/invoke.texi (SH Options): Document -mfixed-range.
6558
6559 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
6560
6561         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
6562         it before the redeclaration.
6563
6564 2008-05-22  Anatoly Sokolov <aesok@post.ru>
6565
6566         * config/avr/avr.c (get_sequence_length): Add new function.
6567         (expand_prologue, expand_epilogue): Remove duplicate code.
6568
6569 2008-05-22  Rafael Espindola  <espindola@google.com>
6570
6571         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
6572         sharing.
6573
6574 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6575
6576         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
6577         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
6578
6579         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
6580         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
6581         (vect_update_misalignment_for_peel): Likewise.
6582         (vector_alignment_reachable_p): Likewise.
6583         * tree-vect-transform.c (vectorizable_load): Likewise.
6584         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
6585         (get_vectype_for_scalar_type): Pass mode of scalar_type
6586         to UNITS_PER_SIMD_WORD.
6587
6588         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
6589         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6590         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6591         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6592         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6593
6594 2008-05-22  Ira Rosen  <irar@il.ibm.com>
6595
6596         PR tree-optimization/36293
6597         * tree-vect-transform.c (vect_transform_strided_load): Don't check
6598         if the first load must be skipped because of a gap.
6599
6600 2008-05-22  Richard Guenther  <rguenther@suse.de>
6601
6602         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
6603         more cases of offset disambiguation that is possible if
6604         strict-aliasing rules apply.
6605         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6606         for basic offset and type-based disambiguation.
6607
6608 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6609
6610         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6611         ix86_expand_vector_set on V16QImode for SSE4.1.
6612
6613 2008-05-21  Tom Tromey  <tromey@redhat.com>
6614
6615         * c.opt (Wimport): Mark as undocumented.
6616         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6617         -Wno-import.
6618         (Warning Options): Likewise.
6619         * doc/cppopts.texi: Don't mention -Wimport.
6620
6621 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
6622
6623         PR tree-optimization/36287
6624         PR tree-optimization/36286
6625         * lambda-code.c (build_access_matrix): Do not use the loop->num
6626         for computing the number of induction variables: use the loop depth
6627         instead.
6628
6629 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
6630
6631         PR/36280
6632         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
6633         option -f(no-)leading-underscore.
6634
6635 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6636
6637         * config/i386/i386.c (ix86_expand_vector_init_general): Use
6638         GET_MODE_NUNITS (mode).
6639
6640 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
6641
6642         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
6643         (-mmulhw): Add 464 to description.
6644         (-mdlmzb): Likewise.
6645         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
6646         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
6647         464fp entries.
6648         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
6649         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
6650         * config/rs6000/rs6000.md: Update comments for 464.
6651
6652 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
6653
6654         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
6655
6656 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6657
6658         * config/i386/sse.md (vec_extractv4sf): Removed.
6659         (vec_extractv2df): Likewise.
6660         (vec_extractv2di): Likewise.
6661         (vec_extractv4si): Likewise.
6662         (vec_extractv8hi): Likewise.
6663         (vec_extractv16qi): Likewise.
6664         (vec_extract<mode>): New.
6665
6666 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6667
6668         * config/i386/sse.md (vec_setv4sf): Removed.
6669         (vec_setv2df): Likewise.
6670         (vec_setv2di): Likewise.
6671         (vec_setv4si): Likewise.
6672         (vec_setv8hi): Likewise.
6673         (vec_setv16qi): Likewise.
6674         (vec_set<mode>): New.
6675
6676 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6677
6678         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
6679         goto for vec_concat and vec_interleave.
6680
6681 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6682
6683         * config/i386/sse.md (vec_initv4sf): Removed.
6684         (vec_initv2df): Likewise.
6685         (vec_initv2di): Likewise.
6686         (vec_initv4si): Likewise.
6687         (vec_initv8hi): Likewise.
6688         (vec_initv16qi): Likewise.
6689         (vec_init<mode>): New.
6690
6691 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
6692
6693         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
6694
6695 2008-05-21  Tom Tromey  <tromey@redhat.com>
6696
6697         * ggc-zone.c (lookup_page_table_if_allocated): New function.
6698         (zone_find_object_offset): Likewise.
6699         (gt_ggc_m_S): Likewise.
6700         (highest_bit): Likewise.
6701         * ggc-page.c (gt_ggc_m_S): New function.
6702         * stringpool.c (string_stack): Remove.
6703         (init_stringpool): Update.
6704         (ggc_alloc_string): Use ggc_alloc.
6705         (maybe_delete_ident): New function.
6706         (ggc_purge_stringpool): Likewise.
6707         (gt_ggc_m_S): Remove.
6708         * ggc-common.c (ggc_protect_identifiers): New global.
6709         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
6710         ggc_protect_identifiers.
6711         * ggc.h (ggc_protect_identifiers): Declare.
6712         (gt_ggc_m_S): Update.
6713         (ggc_purge_stringpool): Declare.
6714         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
6715         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
6716         special case.
6717         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
6718
6719 2008-05-21  David S. Miller  <davem@davemloft.net>
6720
6721         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
6722         tmake_file.
6723
6724 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
6725
6726         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
6727         once finished.
6728
6729 2008-05-20  David Daney  <ddaney@avtrex.com>
6730
6731         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
6732         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
6733         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6734         UNSPEC_UPDATE_GOT_VERSION): Renumber.
6735         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
6736         (atomic_hiqi_op): New define_code_iterator.
6737         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
6738         mips_expand_compare_and_swap_12.
6739         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
6740         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
6741         (sync_<optab><mode>, sync_old_<optab><mode>,
6742         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6743         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
6744         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
6745         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
6746         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
6747         (test_and_set_12): New insn.
6748         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
6749         sync_new_<optab><mode>, sync_old_nand<mode>,
6750         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
6751         clobber to operand 0 for SI and DI mode insns.
6752         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
6753         mips_gen_fn_4): New typedefs.
6754         (mips_gen_fn_ptrs): Define new union type.
6755         (mips_expand_compare_and_swap_12): Remove declaration.
6756         (mips_expand_atomic_qihi): Declare function.
6757         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
6758         (mips_expand_atomic_qihi): ... this.  Use new generator function
6759         parameter.
6760         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
6761         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
6762         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
6763         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
6764         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
6765         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
6766         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
6767         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
6768         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
6769         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
6770         New macros.
6771
6772 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
6773
6774         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
6775         the missing break.
6776
6777 2008-05-20  Anatoly Sokolov <aesok@post.ru>
6778
6779         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
6780         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
6781         (avr_attribute_table): Add 'OS_main' function attribute.
6782         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
6783         functions with 'OS_main' attribute.
6784
6785 2008-05-20  Richard Guenther  <rguenther@suse.de>
6786
6787         PR tree-optimization/35204
6788         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
6789         helper, split out from ...
6790         (DFS): ... here.  Make the DFS walk non-recursive.
6791
6792 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
6793             Jan Sjodin  <jan.sjodin@amd.com>
6794
6795         PR tree-optimization/36181
6796         * tree-parloops.c (loop_has_vector_phi_nodes): New.
6797         (parallelize_loops): Don't parallelize when the loop has vector
6798         phi nodes.
6799
6800 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6801             Sebastian Pop  <sebastian.pop@amd.com>
6802
6803         * tree-loop-linear.c (gather_interchange_stats): Look in the access
6804         matrix, and never look at the tree representation of the memory
6805         accesses.
6806         (linear_transform_loops): Computes parameters and access matrices.
6807         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
6808         when fails.
6809         (access_matrix_get_index_for_parameter): New.
6810         * tree-data-ref.h (struct access_matrix): New.
6811         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6812         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6813         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
6814         am_vector_index_for_loop): New.
6815         (struct data_reference): Add field access_matrix.
6816         (DR_ACCESS_MATRIX): New.
6817         (compute_data_dependences_for_loop): Update declaration.
6818         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
6819         * lambda.h (lambda_vector_vec_p): Declared.
6820         * lambda-code.c: Depend on pointer-set.h.
6821         (lambda_collect_parameters_from_af, lambda_collect_parameters,
6822         av_for_af_base, av_for_af, build_access_matrix,
6823         lambda_compute_access_matrices): New.
6824         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
6825
6826 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
6827
6828         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
6829         $SOURCEDIR/include.
6830
6831 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6832             Sebastian Pop  <sebastian.pop@amd.com>
6833
6834         PR tree-optimization/36206
6835         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
6836         FOLD_CONVERSIONS.
6837         (instantiate_scev_1): Rename flags to fold_conversions.
6838         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
6839         outeside instantiation_loop.
6840         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
6841         (evolution_function_is_affine_or_constant_p): Removed.
6842         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
6843         instantiate_scev.
6844         (analyze_siv_subscript): Pass in the loop nest number.
6845         Call evolution_function_is_affine_in_loop instead of
6846         evolution_function_is_affine_p.
6847         (analyze_overlapping_iterations): Pass in the loop nest number.
6848
6849 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6850             Sebastian Pop  <sebastian.pop@amd.com>
6851
6852         PR tree-optimization/36206
6853         * tree-chrec.h (chrec_fold_op): New.
6854         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
6855         and other trees.
6856
6857 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
6858
6859         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
6860         (DIRS_EQ): New.
6861         (remove_duplicates): Do not set inode on non-inode systems.
6862         Use DIRS_EQ.
6863
6864 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
6865
6866         * config.gcc (tm_file): Update comments about relative pathnames.
6867
6868 2008-05-20  Richard Guenther  <rguenther@suse.de>
6869
6870         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
6871         * tree-ssa-sccvn.c (process_scc): Likewise.
6872         * tree-ssa-sink.c (execute_sink_code): Likewise.
6873         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
6874         * tree-vrp.c (process_assert_insertions): Likewise.
6875         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6876         (perform_tree_ssa_dce): Likewise.
6877         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6878         (dump_dominator_optimization_stats): Likewise.
6879         * tree-vectorizer.c (vectorize_loops): Likewise.
6880
6881 2008-05-20  Richard Guenther  <rguenther@suse.de>
6882
6883         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
6884
6885 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
6886
6887         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
6888         (ix86_i386elf_return_in_memory): Likewise.
6889         (ix86_i386interix_return_in_memory): Likewise.
6890         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
6891         (SUBTARGET_RETURN_IN_MEMORY): New.
6892         * config/i386/i386elf.h: Likewise.
6893         * config/i386/ptx4-i.h: Likewise.
6894         * config/i386/sol2-10.h: Likewise.
6895         * config/i386/sysv4.h: Likewise.
6896         * config/i386/vx-common.h: Likewise.
6897         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
6898         * config/i386/i386.c (ix86_return_in_memory): Made static and
6899         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
6900         (ix86_i386elf_return_in_memory): Removed.
6901         (ix86_i386interix_return_in_memory): Removed.
6902         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
6903         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
6904
6905 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
6906
6907         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
6908
6909 2008-05-19  Xinliang David Li  <davidxl@google.com>
6910
6911         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
6912         * opts.c: Ditto.
6913         * common.opt: Ditto.
6914         * doc/invoke.texi: Ditto.
6915
6916 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
6917
6918         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
6919         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
6920
6921 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6922
6923         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
6924         sizes of operand array from 8/4 to 4/2.
6925         (ix86_expand_vector_init_general): Change size of operand array
6926         from 32 to 16.  Remove op0, op1 and half_mode.
6927
6928 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6929
6930         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
6931         (ix86_expand_vector_init_interleave): Likewise.
6932         (ix86_expand_vector_init_general): Use them.  Assert
6933         word_mode == SImode when n_words == 4.
6934
6935 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
6936
6937         * config/i386/i386.c (ix86_secondary_reload): New static function.
6938         (TARGET_SECONDARY_RELOAD): New define.
6939         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
6940         * config/i386/i386.md (reload_outqi): Remove.
6941
6942 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6943
6944         PR middle-end/35509
6945         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
6946         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
6947         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
6948         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
6949         (fold_builtin_1): Likewise.
6950         * builtins.def (BUILT_IN_ISINF_SIGN): New.
6951         c-common.c (check_builtin_function_arguments): Handle
6952         BUILT_IN_ISINF_SIGN.
6953         * doc/extend.texi: Document __builtin_isinf_sign.
6954         * fold-const.c (operand_equal_p): Handle COND_EXPR.
6955
6956 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
6957
6958         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
6959         EH cleanup at the end of the pass, search for those that have been
6960         turned into forwarder blocks and do the cleanup on their successor.
6961
6962 2008-05-18  Richard Guenther  <rguenther@suse.de>
6963
6964         * tree-cfg.c (verify_gimple_expr): Allow conversions from
6965         pointers to sizetype and vice versa.
6966
6967 2008-05-18 Xinliang David Li   <davidxl@google.com>
6968
6969         * gcc/tree-ssa-dce.c: Coding style fix.
6970         (check_pow): Documentation comment.
6971         (check_log): Documenation comment. Coding style fix.
6972         (is_unnecessary_except_errno_call): Ditto.
6973         (gen_conditions_for_pow): Ditto.
6974         (gen_conditions_for_log): Ditto.
6975         (gen_shrink_wrap_conditions): Ditto.
6976         (shrink_wrap_one_built_in_calls): Ditto.
6977         * gcc/doc/invoke.texi: Better documentation string.
6978         * ChangeLog: Fix wrong change log entries from
6979         May 17 checkin on function call DCE.
6980
6981 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
6982
6983         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
6984
6985 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
6986
6987         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
6988         * df-problems.c (simulation routines): Fixed block comment to
6989         properly say how to add forwards scanning functions.
6990
6991 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
6992
6993         * tree-inline.c (setup_one_parameter): Remove dead code.
6994
6995 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
6996
6997         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
6998         a BIT_AND_EXPR only for an INTEGER_TYPE.
6999
7000 2008-05-17 Xinliang David Li   <davidxl@google.com>
7001
7002         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
7003         (check_pow, check_log, is_unnecessary_except_errno_call): New
7004         functions to check for eliminating math functions that are pure
7005         except for setting errno.
7006         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
7007         general condition expressions for shrink-wrapping pow/log calls.
7008         (gen_shrink_wrap_conditions): Ditto.
7009         (shrink_wrap_one_built_in_call): Ditto.
7010         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
7011         (mark_operand_necessary): If debugging, output if OP is necessary.
7012         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
7013         unnecessary.
7014         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
7015         opt level >= 2.
7016         * gcc/common.opt: New user flag -ftree-builtin-dce.
7017         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
7018
7019 2008-05-16  David S. Miller  <davem@davemloft.net>
7020
7021         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
7022         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7023
7024 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
7025
7026         PR target/36246
7027         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
7028
7029 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7030
7031         * ifcvt.c (dead_or_predicable): Rename
7032         df_simulate_one_insn_backwards to df_simulate_one_insn.
7033         * recog.c (peephole2_optimize): Ditto.
7034         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
7035         Ditto.
7036         * df.h: Rename df_simulate_one_insn_backwards to
7037         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
7038         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
7039         scanning of defs and uses.
7040         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
7041         (df_simulate_one_insn_forwards): Removed.
7042
7043 2008-05-16  Doug Kwan  <dougkwan@google.com>
7044
7045         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
7046         QNaN & SNaN.
7047         (real_from_string): Handle NaNs and Inf as approriate.
7048
7049 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
7050
7051         * doc/gty.texi (Source Files Containing Type Information): Note
7052         that headers should appear first in the gtfiles list.
7053
7054 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7055
7056         * tree.def (COND_EXEC): Properly documented this code.
7057
7058 2008-05-16  Diego Novillo  <dnovillo@google.com>
7059
7060         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
7061         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
7062         the new field.
7063
7064 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7065
7066         * tree-ssa-dse (max_stmt_uid): Removed.
7067         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
7068         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
7069         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
7070         * function.h (cfun.last_stmt_uid): New field.
7071         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
7072         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
7073         New functions.
7074         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
7075         (create_stmt_ann): Initialize the ann->uid field.
7076         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
7077         with new calls.
7078         * tree-flow.h (renumber_gimple_stmt_uids): New function.
7079
7080 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
7081
7082         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
7083         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
7084         (init_empty_tree_cfg): Call it.
7085
7086 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7087
7088         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
7089         Update all users.
7090
7091 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7092
7093         * doc/invoke.text (-fdump-tree-*-verbose): New option.
7094         * tree-dump.c (dump_options): New verbose option.
7095         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
7096         Add verbose dump.
7097         * tree-pass.h (TDF_VERBOSE): New dump flag.
7098         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
7099         (tree-flow.h): Added include.
7100         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
7101
7102 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
7103
7104         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
7105
7106         From Jie Zhang  <jie.zhang@analog.com>
7107         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7108         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
7109         mcpu=bf561-none and mcpu=bf561-0.2.
7110         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7111         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7112         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7113         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7114         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
7115         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
7116         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
7117         option.
7118         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
7119         (cputype_selected): Remove.
7120         (bfin_handle_option): Don't use cputype_selected.
7121         (override_options): When no mcpu option, enable all workarounds.
7122         Don't use bfin_workarounds.
7123         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
7124         processor type.
7125         (DEFAULT_CPU_TYPE): Don't define.
7126
7127 2008-05-16  Richard Guenther  <rguenther@suse.de>
7128
7129         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
7130         on deletion of the last stmt.
7131
7132 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7133
7134         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
7135         V8HImode for SSE2 and V16QImode for SSE4.1.
7136
7137 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
7138
7139         * cgraph.h (compute_inline_parameters): Made public.
7140         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
7141         variable_generate_summary, function_write_summary,
7142         variable_write_summary, variable_read_summary.  Added generate_summary,
7143         write_summary, read_summary.
7144         * cgraphunit.c (cgraph_process_new_functions): Changed call from
7145         pass_ipa_inline.function_generate_summary, to
7146         compute_inline_parameters.
7147         * ipa-inline.c (compute_inline_parameters): Made public and added
7148         node parameter.
7149         (compute_inline_parameters_for_current): New function.
7150         (pass_inline_param): Now calls compute_inline_parameters_for_current.
7151         (inline_generate_summary): Removed parameter and made to loop over
7152         all cgraph nodes.
7153         (pass_ipa_inline): Updated for new IPA_PASS structure.
7154         * passes.c (execute_ipa_summary_passes): Now is called once per
7155         pass rather than once per node*pass.
7156
7157 2008-05-15  Anatoly Sokolov <aesok@post.ru>
7158
7159         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
7160         avr_have_mul_p, avr_asm_only_p): Remove variables.
7161         (avr_override_options): Remove initialization of removed variables.
7162         (avr_file_start):  Convert removed variables to fields of
7163         'struct base_arch_s *avr_current_arch'.
7164         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
7165         (AVR_HAVE_MUL): (Ditto.).
7166         (AVR_HAVE_MOVW): (Ditto.).
7167         (AVR_HAVE_LPMX): (Ditto.).
7168         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
7169         avr_asm_only_p): Remove declaration.
7170
7171 2008-05-15  Diego Novillo  <dnovillo@google.com>
7172
7173         * config/arm/arm.c (arm_return_in_memory): Fix return type.
7174         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
7175
7176 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
7177
7178         PR middle-end/36194
7179         * combine.c (check_conversion): Rename back to check_promoted_subreg.
7180         Don't call record_truncated_value from here.
7181         (record_truncated_value): Turn it into a for_each_rtx callback.
7182         (record_truncated_values): New function.
7183         (combine_instructions): Call note_uses with record_truncated_values.
7184         Change name of check_conversion to check_promoted_subreg.
7185
7186 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
7187
7188         * doc/sourcebuild.texi: Document support for torture tests.
7189
7190 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
7191
7192         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
7193         to alternative 4 of operand 2.
7194
7195 2008-05-15  Richard Guenther  <rguenther@suse.de>
7196
7197         * tree-pass.h (current_pass): Declare.
7198         (get_pass_for_id): Likewise.
7199         * passes.c (passes_by_id, passes_by_id_size): New globals.
7200         (set_pass_for_id): New function.
7201         (get_pass_for_id): Likewise.
7202         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
7203         (execute_function_todo): Flush per function statistics.
7204         * toplev.c (compile_file): Init statistics.
7205         (general_init): Do early statistics initialization.
7206         (finalize): Finish statistics.
7207         * statistics.h (statistics_early_init): Declare.
7208         (statistics_init): Likewise.
7209         (statistics_fini): Likewise.
7210         (statistics_fini_pass): Likewise.
7211         (statistics_counter_event): Likewise.
7212         (statistics_histogram_event): Likewise.
7213         * statistics.c: New file.
7214         * Makefile.in (OBJS-common): Add statistics.o.
7215         (statistics.o): Add dependencies.
7216         * doc/invoke.texi (-fdump-statistics): Document.
7217
7218         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
7219         (insert): Likewise.
7220         (execute_pre): Use statistics_counter_event.
7221         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
7222         (substitute_and_fold): Increment it.  Use statistics_counter_event.
7223
7224 2008-05-15  Diego Novillo  <dnovillo@google.com>
7225
7226         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
7227
7228         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
7229         * tree-ssa-alias.c (new_type_alias): Remove references to
7230         sub-variables from comment.
7231         * tree-ssa-operands.c (swap_tree_operands): Likewise.
7232
7233 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7234
7235         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
7236         attribute to 1 only for insertps alternative.
7237
7238 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
7239
7240         * config/bfin/bfin.md (loadbytes): New pattern.
7241         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
7242         (bfin_init_builtins): Initialize it.
7243         (bdesc_1arg): Add it.
7244
7245 2008-05-15  Sa Liu  <saliu@de.ibm.com>
7246
7247         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
7248         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
7249         * testsuite/lib/target-supports.exp: Add
7250         check_effective_target_fortran_integer_16.
7251
7252 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
7253
7254         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
7255         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
7256         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
7257         (TARGET_RETURN_IN_MEMORY): Define.
7258
7259 2008-05-15  Richard Guenther  <rguenther@suse.de>
7260
7261         PR middle-end/36244
7262         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
7263         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
7264         represent unmodifiable vars.
7265
7266 2008-05-15  Richard Guenther  <rguenther@suse.de>
7267
7268         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
7269         INDIRECT_REF and TARGET_MEM_REF.
7270         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7271         TARGET_MEM_REF.
7272
7273 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
7274             H.J. Lu  <hongjiu.lu@intel.com>
7275
7276         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
7277         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
7278         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
7279         insn alternatives.  Add missing alternatives.
7280         (*vec_concatv2di_rex64_sse4_1): Likewise.
7281         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
7282         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
7283         Require TARGET_SSE.
7284
7285 2008-05-15  Richard Guenther  <rguenther@suse.de>
7286
7287         PR tree-optimization/36009
7288         PR tree-optimization/36204
7289         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
7290         (determine_invariantness_stmt): Record the loop a store is
7291         always executed in.
7292         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
7293         dependency.
7294
7295 2008-05-15  Richard Guenther  <rguenther@suse.de>
7296
7297         PR tree-optimization/34330
7298         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
7299         through the pointer will alias the SMT.
7300
7301 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
7302
7303         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
7304
7305 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7306
7307         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
7308
7309 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7310             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
7311
7312         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
7313         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
7314         (vashl_optab): New optab for vector/vector shifts.
7315         (vashr_optab): Ditto.
7316         (vlshr_optab): Ditto.
7317         (vrotl_optab): Ditto.
7318         (vrotr_optab): Ditto.
7319         (optab_subtype): New enum for optab_for_tree_code call.
7320         (optab_for_tree_code): Add enum optab_subtype argument.
7321
7322         * optabs.c (optab_for_tree_code): Take an additional argument to
7323         distinguish between a vector shift by a scalar and vector shift by
7324         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
7325         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
7326         vector shift by a vector.
7327         (expand_widen_pattern_expr): Pass additional argument to
7328         optab_for_tree_code.
7329
7330         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
7331         vrotl_optab, vrotr_optab.
7332
7333         * expr.c (expand_expr_real_1): Update calls to
7334         optab_for_tree_code to distinguish between vector shifted by a
7335         scalar and vector shifted by a vector.
7336         * tree-vectorizer.c (supportable_widening_operation): Ditto.
7337         (supportable_narrowing_operation): Ditto.
7338         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
7339         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
7340         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
7341         (vect_create_epilog_for_reduction): Ditto.
7342         (vectorizable_reduction): Ditto.
7343         (vectorizable_operation): Ditto.
7344         (vect_strided_store_supported): Ditto.
7345         (vect_strided_load_supported): Ditto.
7346         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
7347         * expmed.c (expand_shift): Ditto.
7348
7349         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
7350         scalar type.
7351         (ashr@var{m}3): Ditto.
7352         (vashl@var{m}3): Document new vector/vector shift standard name.
7353         (vashr@var{m}3): Ditto.
7354         (vlshr@var{m}3): Ditto.
7355         (vrotl@var{m}3): Ditto.
7356         (vrotr@var{m}3): Ditto.
7357
7358         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
7359         (PPERM_INVERT): Ditto.
7360         (PPERM_REVERSE): Ditto.
7361         (PPERM_REV_INV): Ditto.
7362         (PPERM_ZERO): Ditto.
7363         (PPERM_ONES): Ditto.
7364         (PPERM_SIGN): Ditto.
7365         (PPERM_INV_SIGN): Ditto.
7366         (PPERM_SRC1): Ditto.
7367         (PPERM_SRC2): Ditto.
7368
7369         * config/i386/sse.md (mulv2di3): Add SSE5 support.
7370         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
7371         allows a memory operand to be the value being added, and split it
7372         to improve vectorization.
7373         (sse5_pmacsdqh_mem): Ditto.
7374         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
7375         (sse5_mulv2div2di3_high): Ditto.
7376         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
7377         (vec_pack_trunc_v4si): Ditto.
7378         (vec_pack_trunc_v2di): Ditto.
7379         (sse5_pcmov_<mode>): Remove code that tried to use use
7380         andps/andnps instead of pcmov.
7381         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
7382         pmacsdqh instructions.
7383         (vec_widen_smult_lo_v4si): Ditto.
7384
7385         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
7386         (PPERM_INVERT): Ditto.
7387         (PPERM_REVERSE): Ditto.
7388         (PPERM_REV_INV): Ditto.
7389         (PPERM_ZERO): Ditto.
7390         (PPERM_ONES): Ditto.
7391         (PPERM_SIGN): Ditto.
7392         (PPERM_INV_SIGN): Ditto.
7393         (PPERM_SRC1): Ditto.
7394         (PPERM_SRC2): Ditto.
7395         (ix86_expand_sse_movcc): Move the SSE5 test after the if
7396         true/false tests.
7397         (ix86_expand_int_vcond): If SSE5 generate all possible integer
7398         comparisons.
7399         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
7400         says ignore whether the last reference is a memory operand.
7401
7402 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7403             Paolo Bonzini <bonzini at gnu dot org>
7404
7405         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
7406         shift patterns.
7407
7408         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
7409         (vlshr<mode>3): Rename from vlshr<mode>3.
7410         (vashr<mode>3): Rename from vashr<mode>3.
7411         (mulv4sf3): Change the names of vector shift patterns.
7412         (mulv4si3): Ditto.
7413         (negv4sf2): Ditt.
7414
7415         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
7416         shift insns.
7417
7418         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
7419         (SI_SHLHI): Ditto.
7420         (SI_SHL): Ditto.
7421         (SI_SHLI): Ditto.
7422         (SI_ROTH): Ditto.
7423         (SI_ROTHI): Ditto.
7424         (SI_ROT): Ditto.
7425         (SI_ROTI): Ditto.
7426         (SPU_RL_0): Ditto.
7427         (SPU_RL_1): Ditto.
7428         (SPU_RL_2): Ditto.
7429         (SPU_RL_3): Ditto.
7430         (SPU_RL_4): Ditto.
7431         (SPU_RL_5): Ditto.
7432         (SPU_RL_6): Ditto.
7433         (SPU_RL_7): Ditto.
7434         (SPU_SL_0): Ditto.
7435         (SPU_SL_1): Ditto.
7436         (SPU_SL_2): Ditto.
7437         (SPU_SL_3): Ditto.
7438         (SPU_SL_4): Ditto.
7439         (SPU_SL_5): Ditto.
7440         (SPU_SL_6): Ditto.
7441         (SPU_SL_7): Ditto.
7442
7443         * config/spu/spu.md (v): New iterator macro to add v for vector types.
7444         (floatunssidf2_internal): Change vector/vector shift names.
7445         (floatunsdidf2_internal): Ditto.
7446         (mulv8hi3): Ditto.
7447         (ashrdi3): Ditto.
7448         (ashrti3): Ditto.
7449         (cgt_df): Ditto.
7450         (cgt_v2df): Ditto.
7451         (dftsv): Ditto.
7452         (vashl<mode>3): Rename from ashl<mode>3.
7453         (vashr<mode>3): Rename from ashr<mode>3.
7454         (vlshr<mode>3): Rename from lshr<mode>3.
7455         (vrotl<mode>3): Rename from rotl<mode>3.
7456
7457 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7458
7459         PR target/36224
7460         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
7461         multiply gives the wrong value when doing widening multiplies.
7462         (vec_widen_smult_lo_v4si): Ditto.
7463
7464 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7465
7466         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
7467         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
7468         emit_library_call_value.
7469         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
7470         * tree.h (ECF_LIBCALL_BLOCK): Removed.
7471         * calls.c (initialize_argument_information, precompute_arguments,
7472         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
7473         (precompute_arguments): Removed flags parameter.
7474         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
7475
7476 2008-05-14  Richard Guenther  <rguenther@suse.de>
7477
7478         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
7479         Make sure to register the store if the use is a PHI_NODE.
7480
7481 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7482
7483         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
7484         memory if the component is to be referenced in BLKmode according
7485         to get_inner_reference.
7486
7487 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
7488
7489         * calls.c (emit_library_call_value_1): Restore code clearing
7490         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
7491
7492 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7493             Nicolas Roche  <roche@adacore.com>
7494
7495         * configure.ac: Add support for a "gcc_subdir" variable in
7496         config-lang.in, to denote a subdirectory where the language/GCC
7497         integration files are to be found.
7498         * configure: Regenerate.
7499
7500 2008-05-14  Ira Rosen  <irar@il.ibm.com>
7501
7502         PR tree-optimization/36098
7503         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
7504         value for the first load in the group in case of a gap.
7505         (vect_build_slp_tree): Check that there are no gaps in loads.
7506
7507 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7508
7509         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
7510         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
7511         expand_copysign_bit, ): Change call to emit_no_conflict_block to
7512         emit_insn and remove unneeded code to construct extra args.
7513         (emit_no_conflict_block): Removed.
7514         * optabls.h: (emit_no_conflict_block): Removed.
7515         * cse.c (cse_extended_basic_block): Remove search for
7516         REG_NO_CONFLICT note.
7517         * global.c: Removed incorrect comment added in revision 117.
7518         * expr.c (convert_move): Change call to emit_no_conflict_block to
7519         emit_insn.
7520         * recog.c: Change comments so that they do not mention
7521         REG_NO_CONFLICT.
7522         * local_alloc.c (combine_regs): Removed last parameter.
7523         (no_conflict_p): Removed.
7524         (block_alloc): Removed note, no_conflict_combined_regno and set
7525         local vars. Removed all code to process REG_NO_CONFLICT blocks.
7526         (combine_regs): Removed already_dead and code to look for
7527         REG_NO_CONFLICT notes.
7528         * lower_subreg (remove_retval_note): Removed code to look for
7529         REG_NO_CONFLICT block.
7530         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
7531         (resolve_clobber): Remove code to process libcalls that have
7532         REG_NO_CONFLICT notes.
7533         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
7534         case.
7535         * combine.c (can_combine_p, distribute_notes):  Removed
7536         REG_NO_CONFLICT case.
7537         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
7538         to emit_insns.
7539         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
7540         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
7541         Ditto.
7542         * reg-notes.def (NO_CONFLICT): Removed.
7543
7544 2008-05-14  David S. Miller  <davem@davemloft.net>
7545
7546         * config/sparc/sparc.c (sparc_profile_hook): If
7547         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
7548         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
7549         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7550
7551 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7552
7553         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
7554
7555 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
7556
7557         PR target/36222
7558         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
7559         and op1 expansion before vector concat to have less live pseudos.
7560
7561 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
7562
7563         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
7564         ix86_expand_vector_set if supported.
7565
7566 2008-05-13  Diego Novillo  <dnovillo@google.com>
7567             Kenneth Zadeck  <zadeck@naturalbridge.com>
7568
7569         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
7570
7571         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
7572         phinodes_print_statistics, init_ssanames, fini_ssanames,
7573         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
7574         release_ssa_name, release_defs, replace_ssa_name_symbol,
7575         ssanames_print_statistics): Move ...
7576         * tree-flow.h: ... here.
7577         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
7578         Use FN instead of cfun.
7579         (make_ssa_name_fn): Rename from make_ssa_name.
7580         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
7581         * tree-flow-inline.h (make_ssa_name): Move from
7582         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
7583         * omp-low.c (expand_omp_parallel):
7584         * tree-flow-inline.h (redirect_edge_var_map_result):
7585         * tree-ssa.c (init_tree_ssa): Add argument FN.
7586         Use it instead of cfun.  Update all users.
7587
7588 2008-05-13  Tom Tromey  <tromey@redhat.com>
7589
7590         PR preprocessor/22168:
7591         * doc/cpp.texi (Top): Update menu.
7592         (Alternatives to Wrapper #ifndef): New node.
7593         (Other Directives): Document deprecation.
7594         (Obsolete Features): Remove menu.
7595         (Assertions): Merge node into Obsolete Features.
7596         (Obsolete once-only headers): Move earlier; rename to Alternatives
7597         to Wrapper #ifndef.
7598         * doc/cppopts.texi: Update.
7599         * c.opt (Wdeprecated): Enable for C and ObjC.
7600         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7601         (C++ Dialect Options): Move -Wno-deprecated from here to...
7602         (Warning Options): ... here.
7603
7604 2008-05-13  Richard Guenther  <rguenther@suse.de>
7605
7606         PR middle-end/36227
7607         * fold-const.c (fold_sign_changed_comparison): Do not allow
7608         changes in pointer-ness.
7609
7610 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7611
7612         PR target/24713
7613         * config/sh/sh.c (sh_expand_prologue): Don't clear
7614         RTX_FRAME_RELATED_P for push insns.
7615
7616 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
7617
7618         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7619
7620 2008-05-12  Anatoly Sokolov <aesok@post.ru>
7621
7622         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7623         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7624         Use 'machine->is_leaf' instead of 'leaf_func_p'.
7625
7626 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
7627
7628         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
7629         (*vec_concatv4sf_sse): This.
7630         (*sse2_concatv2si): Renamed to ...
7631         (*vec_concatv2si_sse2): This.
7632         (*sse1_concatv2si): Renamed to ...
7633         (*vec_concatv2si_sse): This.
7634         (*vec_concatv2di_rex): Renamed to ...
7635         (*vec_concatv2di_rex64): This.
7636         (*vec_concatv2si_sse4_1): New.
7637         (*vec_concatv2di_rex64_sse4_1): Likewise.
7638
7639 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
7640
7641         PR rtl-optimization/36111
7642         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
7643         that was created for swappable operands.
7644
7645 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
7646
7647         PR ada/36001
7648         * Makefile.in: Substitute GNATMAKE and GNATBIND.
7649         * configure.ac: Add call to ACX_PROG_GNAT.
7650
7651 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
7652
7653         * optc-gen.awk: Fix comment typo.
7654
7655 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
7656
7657         * pretty-print.c (pp_integer_with_precision): Use
7658         HOST_LONG_LONG_FORMAT.
7659
7660 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
7661
7662         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
7663
7664 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7665
7666         * config/i386/i386.c (bdesc_ptest): Removed.
7667         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
7668         (bdesc_args): Add __builtin_ia32_ptestz128,
7669         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
7670         (ix86_init_mmx_sse_builtins): Updated.
7671         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
7672         (ix86_expand_builtin): Updated.
7673
7674 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
7675
7676         * tree-cfg.c (valid_fixed_convert_types_p): New function.
7677         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
7678
7679 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
7680
7681         * value-prof.c (interesting_stringop_to_profile): Do not
7682         return early for BUILT_IN_MEMPCPY.
7683
7684 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7685
7686         * calls.c (expand_call): Don't use callgraph to increase
7687         preferred_stack_boundary.
7688
7689         * cgraph.h (cgraph_rtl_info): Use unsigned on
7690         preferred_incoming_stack_boundary.
7691
7692         * final.c (rest_of_clean_state): Use unsigned on
7693         preferred_stack_boundary.
7694
7695 2008-05-09  Tom Tromey  <tromey@redhat.com>
7696
7697         PR preprocessor/22231:
7698         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
7699         proceeding.
7700
7701 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
7702
7703         PR tree-optimization/36129
7704         * tree-ssa-ccp.c: Include value-prof.h.
7705         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
7706         built-in function was folded to a constant.
7707         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
7708
7709 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
7710             Sebastian Pop  <sebastian.pop@amd.com>
7711
7712         * tree-scalar-evolution.c: Document instantiate_scev.
7713         (instantiate_parameters_1): Renamed instantiate_scev_1.
7714         Don't use the same loop for instantiation_loop and evolution_loop.
7715         (instantiate_scev): New.
7716         (instantiate_parameters): Moved...
7717         (resolve_mixers): Update call to instantiate_scev_1 to pass the
7718         same loop twice.  Maintains the semantics for this function.
7719         * tree-scalar-evolution.h (instantiate_scev): Declare.
7720         (instantiate_parameters): ...here.  Now static inline.
7721         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
7722         instead of resolve_mixers.
7723
7724 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
7725
7726         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
7727
7728 2008-05-09  Tomas Bily  <tbily@suse.cz>
7729
7730         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
7731         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
7732         * tree-ssa-structalias.c (get_constraint_for): Likewise.
7733         * c-common.c (c_common_truthvalue_conversion): Likewise.
7734         * tree-object-size.c (compute_object_offset): Likewise.
7735         * tree-inline.c (estimate_num_insns_1): Likewise.
7736         * varasm.c (const_hash_1, compare_constant, copy_constant)
7737         (compute_reloc_for_constant, output_addressed_constants)
7738         (initializer_constant_valid_p): Likewise.
7739         * c-omp.c (check_omp_for_incr_expr): Likewise.
7740         * gimplify.c (gimplify_expr): Likewise.
7741         * c-typeck.c (c_finish_return): Likewise.
7742         * tree-vectorizer.c (supportable_widening_operation)
7743         (supportable_narrowing_operation): Likewise.
7744         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
7745         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
7746         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7747         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
7748         (descr_info_loc): Likewise.
7749         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7750         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
7751         (fold_unary): Likewise.
7752         * builtins.c (get_pointer_alignment): Likewise.
7753         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
7754         (instantiate_parameters_1): Likewise.
7755         * tree.c (expr_align, stabilize_reference): Likewise.
7756         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
7757         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7758         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
7759         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7760         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
7761         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
7762         Likewise.
7763         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
7764         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
7765         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7766         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
7767         (forward_propagate_comparison)
7768         (tree_ssa_forward_propagate_single_use_vars): Likewise.
7769         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
7770         * emit-rtl.c (component_ref_for_mem_expr)
7771         (set_mem_attributes_minus_bitpos): Likewise.
7772         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
7773         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
7774         Likewise.
7775         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
7776         (build_function_call, pointer_diff, build_compound_expr)
7777         (c_finish_return): Likewise.
7778         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
7779         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
7780         Likewise.
7781         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
7782         * expr.c (is_aligning_offset): Likewise.
7783         * tree-ssa-alias.c (is_escape_site): Likewise.
7784         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
7785         (check_all_va_list_escapes): Likewise.
7786         * tree-ssa-loop-ivopts.c (determine_base_object)
7787         (determine_common_wider_type): Likewise.
7788         * dojump.c (do_jump): Likewise.
7789         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
7790         * tree-gimple.c (is_gimple_cast): Likewise.
7791         * fold-const.c (decode_field_reference, )
7792         (fold_sign_changed_comparison, fold_unary, fold_comparison)
7793         (fold_binary): Likewise.
7794         * tree-ssa-alias-warnings.c (find_alias_site_helper)
7795         (already_warned_in_frontend_p): Likewise.
7796         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
7797         * tree.c (really_constant_p, get_unwidened): Likewise.
7798         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7799         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7800         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
7801         Likewise.
7802         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
7803         CONVERT_EXPR_P.
7804         (CONVERT_EXPR_P): Define.
7805         (CASE_CONVERT): Define.
7806
7807 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
7808
7809         PR middle-end/36117
7810         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
7811         (delete_unmarked_insns): When deleting a call, call
7812         delete_unreachable_blocks.
7813         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7814         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
7815
7816 2008-05-08  Richard Guenther  <rguenther@suse.de>
7817
7818         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
7819         (-ftree-salias): Likewise.
7820         (salias-max-implicit-fields): Remove param documentation.
7821         (salias-max-array-elements): Likewise.
7822         * tree-pass.h (pass_create_structure_vars): Remove.
7823         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7824         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7825         * tree-ssa-alias.c (create_structure_vars): Remove.
7826         (gate_structure_vars): Likewise.
7827         (pass_create_structure_vars): Likewise.
7828         (gate_build_alias): Likewise.
7829         (pass_build_alias): Adjust to run always and dump the function.
7830         * common.opt (ftree-salias): Hide.
7831         * passes.c (init_optimization_passes): Remove
7832         pass_create_structure_vars, adjust comment.
7833         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7834         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7835         * opts.c (decode_options): Do not set flag_tree_salias.
7836         (common_handle_option): Add OPT_ftree_salias to the backward
7837         compatibility section.
7838
7839 2008-05-08  Richard Guenther  <rguenther@suse.de>
7840
7841         * tree-flow-inline.h (var_can_have_subvars): Move ...
7842         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
7843         * tree-flow.h (var_can_have_subvars): Remove.
7844         (push_fields_onto_fieldstack): Remove.
7845         (sort_fieldstack): Likewise.
7846         (struct fieldoff): Move ...
7847         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
7848         alias_set and base_for_components fields.
7849         (sort_fieldstack): Make static.
7850         (push_fields_onto_fieldstack): Likewise.  Remove code that
7851         handles anything but RECORD_TYPEs.  Remove alias_set and
7852         base_for_components handling.
7853         (create_variable_info_for): Adjust.
7854
7855 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
7856
7857         * common.opt (Wframe-larger-than=): Shorten the help message
7858         to one line.
7859         * doc/invoke.texi (Wframe-larger-than=): Add more description.
7860
7861 2008-05-08  Rafael Espindola  <espindola@google.com>
7862
7863         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
7864         trap.
7865         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
7866         trap and that both operands are gimple values.
7867         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
7868         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
7869         is a fp operation.
7870
7871 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7872
7873         * read-rtl.c (join_c_conditions): Return the first string if the
7874         two strings are equal.
7875
7876 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7877
7878         * gensupport.h (pred_data): Add a "num_codes" field.
7879         (add_predicate_code): Declare.
7880         * gensupport.c (add_predicate_code): New function.
7881         (std_pred_table): Add an "allows_const_p" field.
7882         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
7883         Remove the (incomplete) list of such codes from the codes field.
7884         (init_predicate_table): Use add_predicate_code.  Add all
7885         RTX_CONST_OBJs if allows_const_p is true.
7886         * genrecog.c (process_define_predicate): Use add_predicate_code.
7887
7888 2008-05-08  David Daney  <ddaney@avtrex.com>
7889             Richard Sandiford  <rsandifo@nildram.co.uk>
7890
7891         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
7892         special case of constant zero operands.
7893         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
7894         old and new values.  Special case constant zero values.
7895         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
7896         fails.
7897         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
7898         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
7899
7900 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
7901
7902         PR target/36090
7903         * simplify-rtx.c (simplify_plus_minus): Create CONST of
7904         similar RTX_CONST_OBJ before CONST_INT.
7905
7906 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
7907
7908         * stmt.c (expand_stack_restore): Change sa mode if needed.
7909
7910 2008-05-08  Richard Guenther  <rguenther@suse.de>
7911
7912         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
7913         return type to bool.
7914         (ix86_sol10_return_in_memory): Likewise.
7915         (ix86_i386elf_return_in_memory): Likewise.
7916         (ix86_i386interix_return_in_memory): Likewise.
7917         * config/i386/i386.c (ix86_return_in_memory): Likewise.
7918         (ix86_sol10_return_in_memory): Likewise.
7919         (ix86_i386elf_return_in_memory): Likewise.
7920         (ix86_i386interix_return_in_memory): Likewise.
7921
7922 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
7923
7924         PR bootstrap/36180
7925         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
7926         fndecl argument.
7927         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
7928         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
7929         declared in front.
7930
7931 2008-05-08  Richard Guenther  <rguenther@suse.de>
7932
7933         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
7934         * tree-data-ref.h (struct dr_alias): Remove subvars field.
7935         (DR_SUBVARS): Remove.
7936         * tree-dfa.c (dump_subvars_for): Remove.
7937         (debug_subvars_for): Likewise.
7938         (dump_variable): Do not dump subvars.
7939         (remove_referenced_var): Do not remove subvars.
7940         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
7941         (lookup_subvars_for_var): Remove.
7942         (get_subvars_for_var): Likewise.
7943         (get_subvars_at): Likewise.
7944         (get_first_overlapping_subvar): Likewise.
7945         (overlap_subvar): Likewise.
7946         * tree-flow.h (subvar_t): Remove.
7947         (struct var_ann_d): Remove subvars field.
7948         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
7949         argument.  Remove special handling of SFTs.
7950         (compute_tag_properties): Likewise.
7951         (set_initial_properties): Likewise.
7952         (compute_call_clobbered): Likewise.
7953         (count_mem_refs): Likewise.
7954         (compute_memory_partitions): Likewise.
7955         (compute_flow_insensitive_aliasing): Likewise.
7956         (setup_pointers_and_addressables): Likewise.
7957         (new_type_alias): Likewise.
7958         (struct used_part): Remove.
7959         (used_portions): Likewise.
7960         (struct used_part_map): Likewise.
7961         (used_part_map_eq): Likewise.
7962         (used_part_map_hash): Likewise.
7963         (free_used_part_map): Likewise.
7964         (up_lookup): Likewise.
7965         (up_insert): Likewise.
7966         (get_or_create_used_part_for): Likewise.
7967         (create_sft): Likewise.
7968         (create_overlap_variables_for): Likewise.
7969         (find_used_portions): Likewise.
7970         (create_structure_vars): Likewise.
7971         * tree.def (STRUCT_FIELD_TAG): Remove.
7972         * tree.h (MTAG_P): Adjust.
7973         (struct tree_memory_tag): Remove base_for_components and
7974         unpartitionable flags.
7975         (struct tree_struct_field_tag): Remove.
7976         (SFT_PARENT_VAR): Likewise.
7977         (SFT_OFFSET): Likewise.
7978         (SFT_SIZE): Likewise.
7979         (SFT_NONADDRESSABLE_P): Likewise.
7980         (SFT_ALIAS_SET): Likewise.
7981         (SFT_UNPARTITIONABLE_P): Likewise.
7982         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
7983         (union tree_node): Remove sft field.
7984         * alias.c (get_alias_set): Remove special handling of SFTs.
7985         * print-tree.c (print_node): Remove handling of SFTs.
7986         * tree-dump.c (dequeue_and_dump): Likewise.
7987         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
7988         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
7989         * tree-predcom.c (set_alias_info): Do not set subvars.
7990         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
7991         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
7992         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
7993         (add_vars_for_offset): Remove.
7994         (add_virtual_operand): Remove special handling of SFTs.
7995         (add_call_clobber_ops): Likewise.
7996         (add_call_read_ops): Likewise.
7997         (get_asm_expr_operands): Likewise.
7998         (get_modify_stmt_operands): Likewise.
7999         (get_expr_operands): Likewise.
8000         (add_to_addressable_set): Likewise.
8001         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
8002         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8003         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
8004         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
8005         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
8006         (tree_node_structure): Likewise.
8007         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
8008         handling of SFTs.
8009         (find_what_p_points_to): Likewise.
8010
8011 2008-05-08  Sa Liu  <saliu@de.ibm.com>
8012
8013         * config/spu/spu.md: Fixed subti3 pattern.
8014
8015 2008-05-08  Richard Guenther  <rguenther@suse.de>
8016
8017         PR middle-end/36154
8018         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8019         sure to create a representative for trailing arrays for PTA.
8020
8021 2008-05-08  Richard Guenther  <rguenther@suse.de>
8022
8023         PR middle-end/36172
8024         * fold-const.c (operand_equal_p): Two objects which types
8025         differ in pointerness are not equal.
8026
8027 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
8028
8029         * calls.c (compute_argument_block_size): Add argument tree fndecl.
8030         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
8031         (emit_library_call_value_1): Add new variable fndecl initialized by
8032         NULL_TREE. It should be the decl type of orgfun, but this information
8033         seems not to be available here, so it uses the default calling abi.
8034         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
8035         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
8036         by TARGET_RETURN_IN_MEMORY.
8037         * config/i386/i386-interix.h: Likewise.
8038         * config/i386/i386.h: Likewise.
8039         * config/i386/i386elf.h: Likewise.
8040         * config/i386/ptx4-i.h: Likewise.
8041         * config/i386/sol2-10.h: Likewise.
8042         * config/i386/sysv4.h: Likewise.
8043         * config/i386/vx-common.h: Likewise.
8044         * config/cris/cris.h: Removed #if 0 clause.
8045         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
8046         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
8047         argument.
8048         (ix86_sol10_return_in_memory): Likewise.
8049         (ix86_i386elf_return_in_memory): New.
8050         (ix86_i386interix_return_in_memory): New.
8051         * config/mt/mt-protos.h (mt_return_in_memory): New.
8052         * config/mt/mt.c: Likewise.
8053         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8054         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
8055         * config/bfin/bfin.h: Likewise.
8056         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
8057         argument.
8058         * config/bfin/bfin.c: Likewise.
8059         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8060         * config/alpha/unicosmk.h: Likewise.
8061         * config/i386/cygming.h: Likewise.
8062         * config/iq2000/iq2000.h: Likewise.
8063         * config/mips/mips.h: Likewise.
8064         * config/mn10300/mn10300.h: Likewise.
8065         * config/rs6000/rs6000.h: Likewise.
8066         * config/score/score.h: Likewise.
8067         * config/spu/spu.h: Likewise.
8068         * config/v850/v850.h: Likewise.
8069         * defaults.h: Likewise.
8070         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
8071         * expr.c (emit_block_move): Adjust use of
8072         OUTGOING_REG_PARM_STACK_SPACE.
8073         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
8074         OUTGOING_REG_PARM_STACK_SPACE.
8075         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
8076
8077 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
8078
8079         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
8080         on OMP_RETURN for OMP_FOR.
8081
8082         PR debug/35896
8083         * dwarf2out.c (dw_expand_expr, common_check): Removed.
8084         (fortran_common): New function.
8085         (gen_variable_die): Call fortran_common instead of common_check,
8086         adjust for it returning tree instead of rtx.  Formatting.
8087
8088 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
8089
8090         PR rtl/7335
8091         PR rtl/33826
8092         * see.c (see_copy_insn): Copy new pure const attributes for new call.
8093         * c-decl.c (merge_decls): Ditto.
8094         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
8095         to RTL_CONST_OR_PURE_CALL_P.
8096         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
8097         Initialized DECL_LOOPING_CONST_PURE.
8098         (process_call_operands): Set tree_side_effects properly.
8099         * tree.h (TREE_READONLY_DECL_P): Removed.
8100         (DECL_IS_PURE): Renamed to DECL_PURE_P.
8101         (DECL_LOOPING_OR_CONST_P): New macro.
8102         (struct tree_function_decl): Added looping_const_or_pure_p.
8103         (ECF_*) Renumbered.
8104         (ECF_LOOPING_OR_CONST_P): New macro.
8105         * rtlanal.c (pure_const_p): Removed.
8106         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
8107         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
8108         to RTL_CONST_CALL_P.
8109         * ipa-pure-const.c (pure_const_state_e): Added looping field.
8110         (check_decl, check_tree, check_call, scan_function): Initialize
8111         looping.
8112         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
8113         (static_execute): Set looping true for recursive functions.
8114         Undo setting state to IPA_NEITHER for recursive functions.
8115         * cse.c (cse_insn):
8116         * ifcvt.c (noce_can_store_speculate_p): Changed
8117         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
8118         RTL_CONST_OR_PURE_CALL_P.
8119         * dse.c (scan_insn): Ditto.
8120         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
8121         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
8122         RTL_CONST_OR_PURE_CALL_P.
8123         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
8124         pure_call_p to RTL_CONST_CALL_P.
8125         * gimplify.c (gimplify_call_expr): Clear side effects for
8126         non-looping pure and constant calls.
8127         * calls.c (emit_call_1): Set rtl flags from ecf flags.
8128         (flags_from_decl_or_type): Set ecf flags from decl flags.
8129         (initialize_argument_information): Turn off
8130         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
8131         Change const to pure if callee_copies is true rather than just
8132         turning off const.
8133         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
8134         way of marking pure calls.
8135         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
8136         Remove hack that was supposed to fix pr7335 and remove old
8137         way of marking pure calls.
8138         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
8139         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
8140         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
8141         RTL_CONST_OR_PURE_CALL_P.
8142         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
8143         * loop-invariant.c (find_exits, find_invariant_bb): Changed
8144         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
8145         * sched-deps.c (schedule_analyze): Ditto.
8146         * rtl.h (struct rtx_def): Use call field, unchanging field, and
8147         return_val field of calls to represent pure and const function info.
8148         (CONST_OR_PURE_CALL_P): Deleted macro.
8149         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8150         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
8151         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
8152         TREE_READONLY.
8153         * tree-optimize.c (execute_fixup_cfg): Added test for
8154         ECF_LOOPING_CONST_OR_PURE.
8155         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
8156         DECL_PURE_P.
8157         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
8158         effects for looping pure or const calls.
8159         (verify_gimple_expr): Added verification code.
8160         * config/alpha/alpha.c (alpha_legitimize_address,
8161         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
8162         RTL_CONST_CALL_P.
8163         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
8164         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
8165         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
8166         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
8167         RTL_CONST_OR_PURE_CALL_P.
8168         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
8169         and const calls to be deleted.
8170
8171 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
8172
8173         PR target/35714
8174         * config/i386/mmx.md (mmx_subv2sf3): New expander.
8175         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
8176         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
8177         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8178         to handle nonimmediate operands.
8179         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
8180         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
8181         to handle nonimmediate operands.
8182         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
8183         (mmx_pmulhrwv4hi3): New expander.  Use
8184         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8185         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
8186         (sse2_umulv1siv1di3): New expander.  Use
8187         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8188         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
8189         (mmx_eq<mode>3): New expander.  Use
8190         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8191         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
8192         (mmx_uavgv8qi3): New expander.  Use
8193         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8194         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
8195         (mmx_uavgv4hi3): New expander.  Use
8196         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8197
8198         * config/i386/sse.md
8199         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
8200         to handle nonimmediate operands.
8201         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
8202         to handle nonimmediate operands.
8203         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
8204         to handle nonimmediate operands.
8205         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
8206         to handle nonimmediate operands.
8207         (sse2_unpckhpd_exp): New expander.  Use
8208         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8209         (sse2_unpcklpd_exp): New expander.  Use
8210         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8211         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
8212         to handle nonimmediate operands.
8213         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
8214         to handle nonimmediate operands.
8215         (*sse2_<plusminus_insn><mode>3): Rename from
8216         sse2_<plusminus_insn><mode>3 insn pattern.
8217         (sse2_<plusminus_insn><mode>3): New expander.  Use
8218         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8219         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
8220         (sse2_umulv2siv2di3): New expander.  Use
8221         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8222         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
8223         (sse4_1_mulv2siv2di3): New expander.  Use
8224         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8225         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
8226         (sse2_pmaddwd): New expander.  Use
8227         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8228         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
8229         (sse2_eq<mode>3): New expander.  Use
8230         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8231         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
8232         (sse4_1_eqv2di3): New expander.  Use
8233         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8234         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8235         (sse2_uavgv16qi3): New expander.  Use
8236         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8237         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8238         (sse2_uavgv16qi3): New expander.  Use
8239         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8240         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
8241         (sse2_uavgv8hi3): New expander.  Use
8242         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8243         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
8244         (ssse3_pmulhrswv8hi3): New expander.  Use
8245         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8246         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
8247         (ssse3_pmulhrswv4hi3): New expander.  Use
8248         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8249
8250         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
8251         (<sse>_vmmul<mode>3): Ditto.
8252         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
8253         (divv2df3): Ditto.
8254         (ssse3_pmaddubsw128): Use register_operand for operand 1.
8255         (ssse3_pmaddubsw): Ditto.
8256
8257         * config/i386/i386.c (struct_builtin_description)
8258         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
8259         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
8260         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
8261         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
8262         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
8263         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
8264         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
8265         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
8266         (ix86_fixup_binary_operands): Assert that src1
8267         and src2 must have the same mode when swapped.
8268         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
8269         and ix86_binary_operator_ok.  Do not force operands in registers
8270         when optimizing.
8271
8272 2008-05-07  Jan Hubicka  <jh@suse.cz>
8273
8274         * cgraph.c (dump_cgraph_node): Update.
8275         * cgraph.h (cgraph_local_info): Break out inline summary.
8276         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
8277         hook.
8278         * ipa-inline (inline_summary): New accestor function.
8279         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
8280         cgraph_decide_inlining, compute_inline_parameters): Update.
8281         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
8282
8283 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8284
8285         Cleanup ColdFire scheduling support and add V4 pipeline model.
8286
8287         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
8288         (define_attr cpu): Add cfv4 value.
8289         (define_attr type, define_attr type1): Merge into a single 'type'
8290         attribute.  Update all uses.
8291         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
8292         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
8293         Update all uses.
8294         (define_attr opx_mem, define_attr opy_mem): Remove.
8295         (define_attr op_mem): Clean up, update comment.
8296         (define_attr size): Use specific values instead of general int.
8297         (define_attr guess, define_attr split): Remove.  Update all uses.
8298         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
8299         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
8300         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
8301         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
8302         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
8303         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
8304         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
8305         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
8306         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
8307         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
8308         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
8309         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
8310         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
8311         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
8312         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
8313         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
8314         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
8315         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
8316         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
8317         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
8318         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
8319         Update or set attributes.
8320         (stack_tie): New fake instruction.
8321
8322         * config/m68k/m68k.h (TUNE_CFV4): New macro.
8323         (m68k_sched_attr_size): Update declaration.
8324         (m68k_sched_attr_type2): Remove.
8325         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
8326         Declare new bypass predicates.
8327
8328         * config/m68k/m68k.c (m68k_sched_issue_rate,
8329         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
8330         implementations.
8331         (TARGET_SCHED_ISSUE_RATE,
8332         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
8333         (override_options): Handle scheduling for ColdFire V4 core.
8334         (m68k_expand_prologue): Emit stack_tie.
8335         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
8336         'OP_TYPE_FPN'.  Update all uses.
8337         (sched_guess_p): Remove.
8338         (sched_address_type): Handle symbolic addresses.
8339         (sched_get_operand): New static function.
8340         (sched_operand_type): Merge into sched_attr_op_type.
8341         (sched_attr_op_type): Handle FP registers, handle quick constants,
8342         update.
8343         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
8344         (m68k_sched_attr_size): Update.  Move logic to ...
8345         (sched_get_attr_size_int): New static function.
8346         (sched_get_opxy_mem_type): New static function.
8347         (m68k_sched_attr_op_mem): Update.
8348         (m68k_sched_attr_type2): Remove.
8349         (sched_cfv4_bypass_data): New static variable.
8350         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
8351         (m68k_sched_issue_rate): Implement scheduler hook.
8352         (struct _sched_ib: enabled_p): New field.
8353         (m68k_sched_variable_issue): Update.  Handle V4.
8354         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
8355         sched_dump_class_func_t, sched_dump_split_class,
8356         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
8357         sched_dump_dfa_class, m68k_sched_dump): Remove.
8358         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
8359         hook.
8360         (m68k_sched_init_global): Remove statisctics dumping, introduce
8361         sanity check that all instructions have pipeline reservations.  Handle
8362         ColdFire V4 core.
8363         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8364         Handle ColdFire V4 core.
8365         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
8366         New static functions.
8367         (m68k_sched_address_bypass_p): New bypass predicate.
8368         (sched_get_indexed_address_scale): New static function.
8369         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
8370
8371         * cf.md: Update comments.
8372         (define_attr type2): Remove.  Use 'type' attribute instead.
8373         Update all uses.
8374         (cf_ib): Rename to cfv123_ib.  Update all uses.
8375         (cf_oep): Rename to cfv123_oep.  Update all uses.
8376         (cf_chr): Rename to cfv123_chr.  Update all uses.
8377         (cf_mem): Rename to cfv123_mem.  Update all uses.
8378         (cf_mac): Move to more appropriate place.
8379         (cfv123_guess): New automaton and cpu_unit.
8380         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
8381         Update uses of 'size' attribute.  Handle before reload scheduling.
8382         (cfv123_guess): New dummy reservation for unhandled instructions.
8383         (cfv4_*): Pipeline description of ColdFire V4 core.
8384         (ignore): New reservation to handle 'ignore' type.
8385
8386 2008-05-07  Ian Lance Taylor  <iant@google.com>
8387
8388         PR middle-end/36013
8389         * gimplify.c (find_single_pointer_decl_1): Don't look through
8390         indirections.
8391         (find_single_pointer_decl): Adjust comments.
8392
8393 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
8394
8395         PR middle-end/36137
8396         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
8397         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
8398
8399         PR middle-end/36106
8400         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
8401         integral type rather than floating point, then VIEW_CONVERT_EXPR
8402         to the floating point type.
8403
8404 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
8405
8406         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
8407         TFmode op0 to register.
8408
8409 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
8410
8411         * c-decl.c (grokdeclarator): Comment typo.
8412
8413 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
8414
8415         * tree-flow.h: Remove prototype for computed_goto_p.
8416         * tree-cfg.c (computed_goto_p): Make static.
8417
8418 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
8419
8420         PR target/35657
8421         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
8422         (contains_aligned_value_p): This.  Handle _Decimal128.
8423         (ix86_function_arg_boundary): Only align _Decimal128 to its
8424         natural boundary and handle it properly.
8425
8426 2008-05-06  Martin Jambor  <mjambor@suse.cz>
8427
8428         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
8429         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
8430         (ipcp_method_set_orig_node): Removed.
8431         (ipcp_cval_get_cvalue_type): Removed.
8432         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
8433         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
8434         (ipcp_cval_set_cvalue_type): Removed.
8435         (ipcp_cval_get_cvalue): Removed.
8436         (ipcp_cval_set_cvalue): Removed.
8437         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
8438         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
8439         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
8440         (ipcp_cval_meet): Renamed to ipa_lattice_meet
8441         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
8442         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
8443         (ipcp_get_ith_lattice): Changed parameters.
8444         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
8445         (ipcp_lattice_from_jfunc): Changed parameters.
8446         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
8447         (ipcp_method_cval_print): Added temporary variable info.
8448         (ipcp_redirect): Removed already unused local variable caller.
8449         (ipcp_redirect): New temporary variable orig_callee_info
8450         (ipcp_redirect): Removed newly unused local variable callee.
8451         (ipcp_redirect): Removed (a bit confusing) local variable type.
8452         (ipcp_insert_stage): Added local variable info.
8453         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
8454         renamed too
8455         (ipcp_formal_create): Removed.
8456         (ipcp_method_cval_set): Removed.
8457         (ipcp_propagate_stage): Renamed lattice variables.
8458         (ipcp_method_cval_set_cvalue_type): Removed.
8459         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
8460         (ipcp_print_all_lattices): Changed printed strings to refer to
8461         lattices rather than cvals.
8462         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
8463         (ipcp_propagate_const): Changed formal parameters.
8464         (build_const_val): Changed formal parameters.
8465         (ipcp_insert_stage): Removed useless variable cvalue
8466         (build_const_val): Changed formal parameters.
8467         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
8468         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
8469         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
8470         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
8471         (ipcp_print_func_profile_counts): Changed string from "method" to
8472         "function"
8473         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
8474         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
8475         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
8476         (ipcp_structures_print): Renamed to ipcp_print_all_structures
8477         (ipcp_profile_print): Renamed to ipcp_print_profile_data
8478         (ipcp_lat_is_const): Changed parameters and made inline.
8479         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
8480         (ipcp_redirect): Renamed to ipcp_need_redirect_p
8481         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
8482         the predicate condition directly
8483         (ipcp_propagate_stage): Added local variable args. Removed local
8484         variable callee.  (Both are mere code simplifications.)
8485         (ipcp_method_dont_insert_const): Renamed to
8486         ipcp_node_not_modifiable_p.
8487         (ipcp_node_not_modifiable_p): Made inline.
8488         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
8489         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
8490         (ipcp_print_all_lattices): Removed variable cvalue
8491         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
8492         Updated comments.
8493
8494 2008-05-06  Olivier Hainque  <hainque@adacore.com>
8495
8496         * tree-sra.c (try_instantiate_multiple_fields): Early return
8497         if field has POINTER_TYPE.
8498
8499 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
8500
8501         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
8502         by using 'q' specifier for instruction.
8503         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
8504
8505 2008-05-06  Anatoly Sokolov <aesok@post.ru>
8506
8507         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8508         Change mode of zero_extract from QImode to HImode.
8509         (sign bit tests peepholes): (Ditto.).
8510
8511 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
8512
8513         * config/i386/mmx.md: Remove double backslashes from asm templates.
8514         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
8515         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8516         to handle nonimmediate operands.
8517         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
8518         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8519         to handle nonimmediate operands.
8520         (*mmx_<code>v2sf3_finite): New insn pattern.
8521         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
8522         (mmx_<code>v2sf3): New expander.  Use
8523         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8524         (mmx_<plusminus_insn><mode>3): New expander.  Use
8525         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8526         (*mmx_<plusminus_insn><mode>3): New insn pattern.
8527         (mmx_add<mode>3): Removed.
8528         (mmx_ssadd<mode>3): Ditto.
8529         (mmx_usadd<mode>3): Ditto.
8530         (mmx_sub<mode>3): Ditto.
8531         (mmx_sssub<mode>3): Ditto.
8532         (mmx_ussub<mode>3): Ditto.
8533         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
8534         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
8535         to handle nonimmediate operands.
8536         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
8537         insn pattern.
8538         (mmx_smulv4hi3_highpart): New expander.  Use
8539         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8540         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
8541         insn pattern.
8542         (mmx_umulv4hi3_highpart): New expander.  Use
8543         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8544         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
8545         (mmx_<code>v4hi3): New expander.  Use
8546         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8547         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
8548         (mmx_<code>v8qi3): New expander.  Use
8549         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8550         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
8551         (mmx_<code><mode>3): New expander.  Use
8552         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8553
8554 2008-05-05  Jan Hubicka  <jh@suse.cz>
8555
8556         PR tree-optimization/36118
8557         * passes.c (pass_init_dump_file): Fix dump header.
8558
8559 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8560
8561         PR middle-end/36141
8562         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
8563         VCE for function decls.
8564
8565 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8566
8567         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
8568
8569 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8570
8571         * config/i386/i386.md (sat_plusminus): New.
8572         (plusminus_insn): Likewise.
8573         (plusminus_mnemonic): Likewise.
8574         (addsub): Removed.
8575         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
8576         (*<addsub><mode>3_cc_overflow): Renamed to ...
8577         (*<plusminus_insn><mode>3_cc_overflow): This.
8578         (*<addsub>si3_zext_cc_overflow): Renamed to ...
8579         (*<plusminus_insn>si3_zext_cc_overflow): This.
8580
8581         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
8582         (<plusminus_insn><mode>3): This.
8583         (*<addsub><mode>3): Renamed to ...
8584         (*<plusminus_insn><mode>3): This.
8585         (<sse>_vm<addsub><mode>3): Renamed to ...
8586         (<sse>_vm<plusminus_insn><mode>3): This.
8587         (sse3_h<addsub>v4sf3): Renamed to ...
8588         (sse3_h<plusminus_insn>v4sf3): This.
8589         (sse3_h<addsub>v2df3): Renamed to ...
8590         (sse3_h<plusminus_insn>v2df3): This.
8591         (<plusminus_insn><mode>3): New.
8592         (*<plusminus_insn><mode>3): Likewise.
8593         (sse2_<plusminus_insn><mode>3): Likewise.
8594         (add<mode>): Removed.
8595         (*add<mode>3): Likewise.
8596         (sse2_ssadd<mode>3): Likewise.
8597         (sse2_usadd<mode>3): Likewise.
8598         (sub<mode>3): Likewise.
8599         (*sub<mode>3): Likewise.
8600         (sse2_sssub<mode>3): Likewise.
8601         (sse2_ussub<mode>3): Likewise.
8602
8603 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
8604
8605         * gthr-single.h: Add in required interface elements as per gthr.h.
8606         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8607         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8608         Generalize UNUSED macro.
8609         (__gthread_once): Add.
8610         (__gthread_key_create): Add.
8611         (__gthread_key_delete): Add.
8612         (__gthread_getspecific): Add.
8613         (__gthread_setspecific): Add.
8614
8615 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
8616
8617         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8618         the same size types for the indirect reference on the rhs, then
8619         create a VCE.
8620
8621 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
8622
8623         * config/i386/i386.md
8624         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8625         one insn template instead of template series.
8626         (*xordi_1_rex64): Ditto.
8627         (*xordi_2_rex64): Ditto.
8628
8629 2008-05-05  Ira Rosen  <irar@il.ibm.com>
8630
8631         PR tree-optimization/36119
8632         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
8633         in case of SLP.
8634
8635 2008-06-04  Jan Hubicka  <jh@suse.cz>
8636
8637         tree-optimization/36100
8638         * tree-pass.h (pass_O0_always_inline): Declare.
8639         * ipa-inline.c (inline_transform): Remove dead code.
8640         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8641         pass_O0_always_inline): New.
8642         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
8643
8644 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
8645
8646         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
8647         mnemonic in this_param move for TARGET_64BIT.
8648
8649 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
8650
8651         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
8652         (*strmovsi_rex_1): Ditto.
8653         (*strsetsi_1): Ditto.
8654         (*strsetsi_rex_1): Ditto.
8655
8656         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
8657         adddicc expanders using SWI mode iterator.
8658
8659 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8660
8661         PR target/36121
8662         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
8663         argument handling.
8664
8665 2008-05-04  David S. Miller  <davem@davemloft.net>
8666
8667         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
8668         (sparc*-*-linux*): Use linux.h in tm_file.
8669         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
8670         compiler defaulting to 32-bit.
8671         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
8672         no longer needed.
8673         * config/sparc/linux.h: Remove definitions now obtained
8674         properly from linux.h
8675         * config/sparc/linux64.h: Likewise.
8676         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
8677         don't want this setting for 32-bit builds in a biarch compiler.
8678         * doc/install.texi: Add sparc-linux to list of targets
8679         supporting --enable-targets=all.
8680
8681 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
8682
8683         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
8684
8685 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
8686
8687         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
8688         after V4SI_FTYPE_V8HI.
8689         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
8690         case V4SI_FTYPE_V2DF.
8691
8692 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
8693
8694         * doc/invoke.texi (max-flow-memory-locations): Removed.
8695         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
8696
8697 2008-05-03  Richard Guenther  <rguenther@suse.de>
8698
8699         PR middle-end/34973
8700         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
8701
8702 2008-05-02  David S. Miller  <davem@davemloft.net>
8703
8704         * config.gcc (need_64bit_hwint): Document libcpp dependency.
8705
8706 2008-05-02  Simon Baldwin <simonb@google.com>
8707
8708         PR bootstrap/36108
8709         * c-common.h (warn_array_subscript_range): Removed.
8710         * c-common.c (warn_array_subscript_range): Ditto.
8711         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
8712         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
8713
8714 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8715
8716         * config/i386/i386.c (ix86_special_builtin_type): New.
8717         (bdesc_special_args): Likewise.
8718         (ix86_expand_special_args_builtin): Likewise.
8719         (ix86_init_mmx_sse_builtins): Updated.
8720         (ix86_expand_builtin): Updated.
8721         (ix86_expand_store_builtin): Removed.
8722         (ix86_expand_unop_builtin): Likewise.
8723
8724         * config/i386/mm3dnow.h (__v2sf): Moved to ...
8725         * config/i386/mmintrin.h (__v2sf): Here.
8726
8727         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
8728         const __v2sf.
8729         (_mm_loadl_pi): Likewise.
8730         (_mm_storeh_pi): Replace __v2si with __v2sf.
8731         (_mm_storel_pi): Likewise.
8732
8733         * doc/extend.texi: Correct __builtin_ia32_loadhps,
8734         __builtin_ia32_loadlps, __builtin_ia32_storehps,
8735         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
8736         __builtin_ia32_loadlpd.
8737
8738 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8739
8740         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
8741         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
8742         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
8743         (ix86_init_mmx_sse_builtins): Updated.
8744         (ix86_expand_args_builtin): Likewise.
8745         (ix86_expand_builtin): Likewise.
8746         (ix86_expand_unop1_builtin): Renamed to ...
8747         (ix86_expand_unop_vec_merge_builtin): This.
8748
8749 2008-05-01  Jan Hubicka  <jh@suse.cz>
8750
8751         PR bootstrap/36100
8752         * ipa-inline.c (inline_generate_summary): Make static.
8753         (inline_transform): Do not call inlining at -O0; make static.
8754         * passes.c (execute_todo): Add sanity check.
8755         (execute_one_ipa_transform_pass): Execute proper flags.
8756
8757 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
8758
8759         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
8760         (DECL_NONADDRESSABLE_P): Likewise.
8761         * alias.c (record_component_aliases): Fix comment.
8762
8763 2008-05-01  Simon Baldwin <simonb@google.com>
8764
8765         * c-common.h (warn_array_subscript_range): New function.
8766         * c-common.c (warn_array_subscript_range): Ditto.
8767         * tree-vrp.c (check_array_ref): Corrected code to agree with
8768         comment, ignoring only arrays of size 0 or size 1.
8769         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
8770
8771 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8772
8773         * config/i386/i386.c (ix86_builtin_type): Replace
8774         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
8775         (bdesc_args): Updated.
8776         (ix86_init_mmx_sse_builtins): Likewise.
8777         (ix86_expand_args_builtin): Likewise.
8778
8779         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
8780         with __v1di.
8781
8782         * doc/extend.texi: Correct __builtin_ia32_palignr.
8783
8784 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8785
8786         PR target/36095
8787         * config/i386/i386.c (bdesc_crc32): Removed.
8788         (ix86_expand_crc32): Likewise.
8789         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
8790         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
8791         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
8792         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
8793         UINT_FTYPE_UINT_UCHAR.
8794         (bdesc_args): Updated. Add crc32 builtins.
8795         (ix86_init_mmx_sse_builtins): Updated.
8796         (ix86_expand_args_builtin): Updated to support subreg.
8797
8798         * doc/extend.texi: Correct __builtin_ia32_crc32di.
8799
8800 2008-05-01  Jan Hubicka  <jh@suse.cz>
8801
8802         * tree-pass.h (opt_pass): Add IPA_PASS.
8803         (varpool_node, cgraph_node): Forward declare.
8804         (ipa_opt_pass): Define.
8805         (pass_ipa_inline): Turn into ipa_opt_pass.
8806         (pass_apply_inline): Remove.
8807         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
8808         (apply_inline): Turn into ....
8809         (inline_transform): ... this one.
8810         (inline_generate_summary): New function.
8811         (pass_apply_inline): Remove.
8812         * function.h (ipa_opt_pass): Forward declare structure; typedef;
8813         vector.
8814         (struct function): Add ipa_transforms_to_apply.
8815         * passes.c (register_one_dump_file): Work on IPA_PASS.
8816         (init_optimization_passes): Remove pass_inline_parameters and
8817         pass_apply_inline.
8818         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
8819         (execute_one_pass) ... here; apply transforms when possible.
8820         (add_ipa_transform_pass, execute_ipa_summary_asses,
8821         execute_one_ipa_transform_pass): New.
8822         (execute_ipa_pass_list): Update for IPA_PASS type.
8823
8824 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8825
8826         * config/i386/i386.c (ix86_builtin_type): Add
8827         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
8828         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
8829         (bdesc_args): Add SSE4a builtins.
8830         (ix86_init_mmx_sse_builtins): Updated.
8831         (ix86_expand_args_builtin): Likewise.
8832         (ix86_expand_builtin): Likewise.
8833
8834 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8835
8836         * config/i386/i386.c (ix86_builtin_type): Add
8837         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
8838         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
8839         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
8840         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
8841         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
8842         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
8843         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
8844         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
8845         and DI_FTYPE_DI_DI_INT.
8846         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
8847         (ix86_init_mmx_sse_builtins): Updated.
8848         (ix86_expand_args_builtin): Likewise.
8849         (ix86_expand_builtin): Likewise.
8850         (ix86_expand_binop_imm_builtin): Removed.
8851
8852         * doc/extend.texi: Correct __builtin_ia32_palignr128.
8853
8854 2008-04-30  Richard Guenther  <rguenther@suse.de>
8855
8856         PR tree-optimization/32921
8857         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
8858
8859 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
8860
8861         * config/arm/arm.c (arm_unwind_emit): Use
8862         crtl->all_throwers_are_sibcalls instead of
8863         cfun->all_throwers_are_sibcalls.
8864         (arm_output_fn_unwind): Likewise.
8865         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
8866         instead of cfun->uses_pic_offset_table.
8867         (frv_expand_prologue): Likewise.
8868         (frv_frame_pointer_required): Likewise.
8869         (frv_expand_fdpic_call): Likewise.
8870         (frv_emit_movsi): Likewise.
8871         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
8872         cfun->returns_pcc_struct instead of
8873         current_function_returns_pcc_struct.
8874         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
8875         instead of cfun->calls_eh_return.
8876         (m32c_pushm_popm): Likewise.
8877         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
8878         "extern" declaration.
8879
8880 2008-04-30  Richard Guenther  <rguenther@suse.de>
8881
8882         PR tree-optimization/21636
8883         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
8884         constant address.
8885         (evaluate_stmt): Print the likely value.
8886         (ccp_visit_stmt): Avoid excessive vertical spacing.
8887
8888 2008-04-30  Rafael Espindola  <espindola@google.com>
8889
8890         * builtins.c (fold_call_expr): Return realret.
8891         * tree-ssa-threadedge.c
8892         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
8893         __builtin_object_size.
8894
8895 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
8896
8897         * gcc.c (wrapper_string): New variable.
8898         (insert_wrapper): New function.
8899         (execute): New option -wrapper.
8900         * doc/invoke.texi (Overall Options): New driver option -wrapper.
8901
8902 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
8903
8904         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
8905         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
8906         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
8907         from...
8908         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
8909         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
8910         config/rs6000/e500crtres64gprctr.asm,
8911         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
8912         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
8913         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
8914         config/rs6000/e500crtsav64gprctr.asm,
8915         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
8916         config/rs6000/e500crtsavg64gprctr.asm: New files.
8917         * config/rs6000/t-ppccomm: Add build rules for new files.
8918         (LIB2FUNCS_STATIC_EXTRA): Add new files.
8919         * config/rs6000/t-netbsd: Add build rules for new files.
8920         (LIB2FUNCS_STATIC_EXTRA): New variable.
8921         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
8922         (CRTSAVRES_DEFAULT_SPEC): Likewise.
8923         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
8924
8925 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
8926
8927         * config/i386/i386.c (ix86_builtin_type): Add
8928         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
8929         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
8930         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
8931         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
8932         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
8933         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
8934         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
8935         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
8936         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
8937         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
8938         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
8939         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
8940         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
8941         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
8942         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
8943         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
8944         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
8945         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
8946         V1DI_FTYPE_V2SI_V2SI.
8947         (bdesc_2arg): Moved to ...
8948         (bdesc_args): Here.
8949         (ix86_init_mmx_sse_builtins): Updated.
8950         (ix86_expand_args_builtin): Updated.  Take a pointer
8951         to const struct builtin_description.  Handle comparison
8952         builtin functions.
8953         (ix86_expand_sse_compare): Take a new argument for swapping operands.
8954         (ix86_expand_builtin): Updated.
8955
8956         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
8957         (ssse3_pmaddubsw128): This.
8958         (ssse3_pmaddubswv4hi3): Renamed to ...
8959         (ssse3_pmaddubsw): This.
8960
8961         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
8962         (__builtin_ia32_packssdw128): Likewise.
8963         (__builtin_ia32_packuswb128): Likewise.
8964         (__builtin_ia32_pmaddubsw): Likewise.
8965         (__builtin_ia32_pmaddubsw128): Likewise.
8966
8967 2008-04-30  Richard Guenther  <rguenther@suse.de>
8968
8969         PR tree-optimization/14847
8970         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
8971         (recognize_bits_test): Use it.
8972         (recognize_single_bit_test): Likewise.
8973
8974 2008-04-30  Martin Jambor  <mjambor@suse.cz>
8975
8976         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
8977         instead of setting number of formal parameters to zero.
8978         (ipcp_init_stage): Do not set the number of actual parameters to zero
8979         either.
8980         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
8981         which are called with variable number of arguments.
8982         (ipcp_insert_stage): Explicitely skipping all nodes which are
8983         called with variable number of arguments.
8984         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
8985         number of parameters.
8986
8987         * ipa-prop.h (struct ipa_node_params): Added flag
8988         called_with_var_arguments
8989         (ipa_set_param_count): Added.  Changed sole setter to use it.
8990         (ipa_get_param_count): Added.  All readers of param_count
8991         converted to use it instead.
8992         (ipa_set_called_with_variable_arg): Added.
8993         (ipa_is_called_with_var_arguments): Added.
8994         (ipa_get_ith_param): Added.  All readers of param_decls converted
8995         to use it instead.
8996         (ipa_set_cs_argument_count): Added, sole writer to argument_count
8997         changed to use it.
8998         (ipa_get_cs_argument_count): Added, all readers of argument_count
8999         changed to cal it.
9000         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
9001         to use it.
9002
9003         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
9004         (struct ipcp_lattice): Renamed cval_type to type
9005         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
9006
9007         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
9008         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
9009         (ipcp_insert_stage): Changed the type of variable cvalue to tree
9010         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
9011         (build_const_val): Changed the type of parameter cvalue to tree
9012         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
9013         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
9014
9015         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
9016         constant
9017
9018         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
9019         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
9020         (ipa_add_method): Renamed to ipa_push_func_to_list
9021         (ipa_remove_method): Renamed to ipa_pop_func_from_list
9022         (ipa_callsite_param_count): Removed.
9023         (ipa_callsite_param_count_set): Removed.
9024         (ipa_callsite_param): Removed.
9025         (ipa_callsite_callee): Removed.
9026         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
9027         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
9028         (ipa_method_formal_count): Removed.
9029         (ipa_method_formal_count_set): Removed.
9030         (ipa_method_get_tree): Removed.
9031         (ipa_method_tree_map_create): Removed.
9032         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
9033         (ipa_create_param_decls_array): Creates the array itself
9034         (ipa_create_param_decls_array): Temporary variable info instead of
9035         a few dereferences.
9036         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
9037         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
9038         (get_type): Removed.
9039         (ipa_jf_get_info_type): Removed.
9040         (ipa_node_create): Renamed to ipa_create_node_params
9041         (ipa_free): Renamed to ipa_free_all_node_params
9042         (ipa_nodes_create): Renamed to ipa_create_all_node_params
9043         (ipa_edges_create): Renamed to ipa_create_all_edge_args
9044         (ipa_edges_free): Renamed to ipa_free_all_edge_args
9045         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
9046         (ipa_free_all_node_params): Deallocation to jump_functions moved to
9047         ipa_free_all_edge_args
9048         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
9049         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
9050         (ipa_create_methodlist_node): Removed.
9051         (ipa_methodlist_method): Removed.
9052         (ipa_methodlist_method_set): Removed.
9053         (ipa_methodlist_next_method): Removed.
9054         (ipa_methodlist_next_method_set): Removed.
9055         (ipa_method_is_modified): Removed.
9056         (ipa_method_modify_create): Removed.
9057         (ipa_method_modify_init): Temporary variable info instead of a few
9058         dereferences.
9059         (ipa_detect_param_modifications): Temporary variable info instead of
9060         a few dereferences.
9061         (ipa_compute_jump_functions): Temporary variable info instead of
9062         a few dereferences.
9063         (ipa_method_modify_set): Removed.
9064         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
9065         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
9066         than craph_node as the first parameter.
9067         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
9068         (ipa_method_modify_init): Removed.
9069         (ipa_compute_jump_functions): Added a temp variable instead of
9070         repeatadly dereferencing the cgraph_edge.aux pointer
9071         (ipa_callsite_param_set_type): Removed.
9072         (ipa_compute_jump_functions): i renamed to index and moved to
9073         an inner block
9074         (ipa_callsite_param_set_info_type_formal): Removed.
9075         (ipa_callsite_param_set_info_type): Removed.
9076         (ipa_callsite_param_map_create): Removed.
9077         (ipa_callsite_tree): Removed.
9078         (ipa_callsite_caller): Removed.
9079         (ipa_pop_func_from_list): return_method removed to return_func
9080
9081         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
9082         prefixed all values with IPA_. Changed all users.
9083         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
9084         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
9085         and FORMAL_IPATYPE IPA_PASS_THROUGH.
9086         (union parameter_info): Renamed to jump_func_value.
9087         (union jump_func_value): Renamed value to constant
9088         (struct ipa_jump_func): Renamed info_type to value
9089         (struct ipa_node): Renamed to ipa_node_params
9090         (struct ipa_node_params): Renamed ipa_arg_num to param_count
9091         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
9092         (struct ipa_node_params): Renamed ipa_mod to modified_flags
9093         (struct ipa_edge): Renamed to ipa_edge_args
9094         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
9095         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
9096         (struct ipa_methodlist): Renamed to ipa_func_list
9097         (struct ipa_func_list): method_p renamed to node, next_method
9098         renamed to next
9099         (ipa_methodlist_p): Removed, switched all users to struct pointer
9100         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
9101
9102 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
9103
9104         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
9105         (rs6000_emit_epilogue): Use backchain to restore only when we
9106         have a large frame.  Make use of frame pointer to restore if we
9107         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
9108
9109 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
9110
9111         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
9112         Add mode to zero_extract.
9113         (sign bit tests peepholes): (Ditto.).
9114
9115 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
9116
9117         * config/i386/i386.c (ix86_builtins): Replace Prescott New
9118         Instructions in comments with SSE3.
9119         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
9120         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
9121         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
9122         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
9123         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
9124         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
9125         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
9126         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
9127         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
9128         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
9129         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
9130         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
9131         (bdesc_sse_args): Renamed to ...
9132         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
9133         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
9134         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
9135         IX86_BUILTIN_FABSQ.
9136         (bdesc_1arg): Moved to ...
9137         (bdesc_args): Here.
9138         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
9139         Instructions in comments with SSE3.
9140         (ix86_expand_sse_operands_builtin): Renamed to ...
9141         (ix86_expand_args_builtin): This.  Updated.
9142         (ix86_expand_unop1_builtin): Update comments.
9143         (ix86_expand_builtin): Updated.
9144
9145 2008-04-29  Richard Guenther  <rguenther@suse.de>
9146
9147         PR tree-optimization/36078
9148         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9149         Update virtual SSA form after cleaning up the CFG.
9150
9151 2008-04-29  Richard Guenther  <rguenther@suse.de>
9152
9153         PR middle-end/15255
9154         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
9155
9156 2008-04-29  Richard Guenther  <rguenther@suse.de>
9157
9158         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
9159         (compute_may_aliases): Do not call finalize_ref_all_pointers.
9160         (compute_flow_insensitive_aliasing): Do not treat
9161         PTR_IS_REF_ALL pointers special.
9162         (get_smt_for): Likewise.
9163         (may_alias_p): Re-structure.
9164         (is_escape_site): A ref-all pointer conversion is not an escape site.
9165         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
9166         PTR_IS_REF_ALL pointers special.
9167         * tree-ssa-structalias.h (struct alias_info): Remove
9168         ref_all_symbol_mem_tag field.
9169         (PTR_IS_REF_ALL): Remove.
9170
9171 2008-04-29  Richard Guenther  <rguenther@suse.de>
9172
9173         PR middle-end/36077
9174         * fold-const.c (extract_muldiv_1): In combining division constants
9175         make sure to never overflow.
9176
9177 2008-04-29  Nick Clifton  <nickc@redhat.com>
9178
9179         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
9180
9181 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9182
9183         PR bootstrap/35169
9184         * optc-gen.awk: Work around HP-UX/IA awk bug.
9185
9186 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
9187
9188         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
9189         2008-04-25 commit.
9190
9191 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
9192
9193         PR target/36073
9194         * config/i386/i386.md
9195         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
9196         Change operand 1 predicate to nonimmediate_operand.
9197
9198 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
9199
9200         PR debug/36060
9201         * dwarf2out.c (struct die_struct): Mark as chain_circular through
9202         die_sub field.
9203         * gengtype.c (walk_type, write_func_for_structure): Handle
9204         chain_circular.
9205         * doc/gty.texi: Document chain_circular.
9206
9207 2008-04-28  Richard Guenther  <rguenther@suse.de>
9208
9209         PR tree-optimization/36066
9210         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
9211         SCEV and loop.
9212
9213 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
9214
9215         PR target/36064
9216         * config/i386/i386.md
9217         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
9218         Use match_scratch instead of match_operand for operands 3 and 4.
9219
9220 2008-04-27  Richard Guenther  <rguenther@suse.de>
9221
9222         PR tree-optimization/18754
9223         PR tree-optimization/34223
9224         * tree-pass.h (pass_complete_unrolli): Declare.
9225         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
9226         loop size before and after unconditionally of UL_NO_GROWTH in effect.
9227         Rewrite loop into loop closed SSA form if it is not already.
9228         (tree_unroll_loops_completely): Re-structure to iterate over
9229         innermost loops with intermediate CFG cleanups.
9230         Unroll outermost loops only if requested or the code does not grow
9231         doing so.
9232         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
9233         loops are available.
9234         (tree_vectorize): Instead do so here.
9235         (tree_complete_unroll): Also unroll outermost loops.
9236         (tree_complete_unroll_inner): New function.
9237         (gate_tree_complete_unroll_inner): Likewise.
9238         (pass_complete_unrolli): New pass.
9239         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
9240         uses outside of the loop.
9241         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
9242         form if it is available.
9243         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
9244         * passes.c (init_optimization_passes): Schedule complete inner
9245         loop unrolling pass before the first CCP pass after final inlining.
9246
9247 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
9248
9249         * targhooks.h (default_emutls_var_fields,
9250         default_emutls_var_init): Declare.
9251         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
9252         * target.h (struct gcc_target): Add struct emutls member.
9253         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
9254         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
9255         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
9256         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
9257         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
9258         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
9259         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
9260         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
9261         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
9262         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
9263         emit debug information.
9264         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
9265         * varasm.c: Include targhooks.h.
9266         (emutls_object_section, emutls_tmpl_section): New.
9267         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
9268         (EMUTLS_SEPARATOR): New.
9269         (prefix_name): New.
9270         (get_emutls_object_name): New.
9271         (default_emutls_var_fields): New, broken out of ...
9272         (get_emutls_object_type): ... here.  Adjust to use target hooks.
9273         (get_emutls_init_templ_addr): Adjust to use target hooks.
9274         (emutls_decl): Adjust to use target hooks.
9275         (emutls_finish): Likewise.
9276         (default_emutls_var_init): New, broken out of ...
9277         (assemble_variable): ... here.  Adjust to use target hooks.
9278         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
9279         SECCAT_EMUTLS_TMPL.
9280         * c-common.c (handle_section_attribute): Prevent overriding
9281         sections for emulated tls with special sections.
9282         * config/i386/i386.c (x86_64_elf_select_section): Add
9283         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
9284         (x86_64_elf_unique_section): Likewise.
9285         * config/vxworks.c: Include tree.h.
9286         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
9287         (vxworks_override_options): Set TLS scheme.
9288         * doc/tm.texi (Emulated TLS): New node.
9289
9290 2008-04-26  Simon Baldwin <simonb@google.com>
9291
9292         PR c/35652
9293         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
9294         with propagated string constants.
9295
9296 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
9297
9298         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
9299         constraint for operand 2 when operand 0 is memory operand.
9300         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
9301         operand 0 is memory operand.
9302         (fix_trunc<mode>_i387_with_temp): Ditto.
9303         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
9304         operand 2 when operand 1 is memory operand.
9305         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
9306         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
9307         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
9308         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
9309         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
9310         operands 2,3 and 4 when operand 1 is memory operand.
9311         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
9312         is memory operand.
9313         (fistdi2_floor_with_temp): Ditto.
9314         (fist<mode>2_floor_with_temp): Ditto.
9315         (fistdi2_ceil_with_temp): Ditto.
9316         (fist<mode>2_ceil_with_temp): Ditto.
9317         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
9318
9319 2008-04-26  David Daney  <ddaney@avtrex.com>
9320
9321         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
9322         unspec_volitile.
9323         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
9324         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
9325         UNSPEC_UPDATE_GOT_VERSION): Renumber.
9326         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
9327         (compare_and_swap_12): New insn.
9328         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
9329         * config/mips/mips.c (mips_force_binary): New function.
9330         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
9331         (mips_expand_compare_and_swap_12): New function.
9332         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
9333
9334 2008-04-25  Jan Hubicka  <jh@suse.cz>
9335
9336         PR testsuite/35843
9337         * cfgexpand.c (pass_expand): Turn into RTL pass.
9338         * passes.c (execute_one_pass): Do pass typechecking after execution.
9339         * tree-pass.h (pass_expand): Turn into RTL pass.
9340
9341         * function.h (struct rtl_data): Move here fields
9342         accesses_prior_frames, calls_eh_return, saves_all_registers,
9343         has_nonlocal_goto, has_asm_statement, is_thunk,
9344         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
9345         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
9346         arg_pointer_save_area_init from struct function; turn into bool.
9347         (struct function): Move
9348         calls_eh_return, saves_all_registers, has_nonlocal_goto,
9349         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
9350         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
9351         tail_call_emit, arg_pointer_save_area_init
9352         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
9353         (current_function_returns_struct, current_function_returns_pcc_struct,
9354         current_function_calls_setjmp, current_function_calls_alloca,
9355         current_function_accesses_prior_frames,
9356         current_function_calls_eh_return, current_function_is_thunk,
9357         current_function_stdarg, current_function_profile,
9358         current_function_limit_stack, current_function_uses_pic_offset_table,
9359         current_function_uses_const_pool, current_function_has_nonlocal_label,
9360         current_function_saves_all_registers,
9361         current_function_has_nonlocal_goto,
9362         current_function_has_asm_statement): Remove accesor macros.
9363         * ra-conflict.c (global_conflicts): Update.
9364         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
9365         (suitable_for_tail_call_opt_p): Update.
9366         * builtins.c (expand_builtin_return_addr): Update.
9367         (expand_builtin_setjmp_setup): Update.
9368         (expand_builtin_nonlocal_goto): Update.
9369         * final.c (final_start_function): Update.
9370         (profile_function): Update.
9371         (leaf_function_p): Update.
9372         (only_leaf_regs_used): Update.
9373         * df-scan.c (df_get_exit_block_use_set): Update.
9374         * dojump.c (clear_pending_stack_adjust): Update.
9375         * tree-stdarg.c (gate_optimize_stdarg): Update.
9376         * gimple-low.c (lower_function_body): Update.
9377         * global.c (compute_regsets): Update.
9378         (global_alloc): Update.
9379         * dwarf2out.c (dwarf2out_begin_prologue): Update.
9380         * expr.c (expand_assignment): Update.
9381         * dse.c (dse_step0): Update.
9382         (dse_step1): Update.
9383         * c-decl.c (store_parm_decls): Update.
9384         * local-alloc.c (combine_regs): Update.
9385         (find_free_reg): Update.
9386         * function.c (assign_parms_augmented_arg_list): Update.
9387         (assign_parm_find_data_types): Update.
9388         (assign_parms): Update.
9389         (allocate_struct_function): Update.
9390         (expand_function_start): Update.
9391         (expand_function_end): Update.
9392         (get_arg_pointer_save_area): Update.
9393         (thread_prologue_and_epilogue_insns): Update.
9394         (rest_of_match_asm_constraints): Update.
9395         * stor-layout.c (variable_size): Update.
9396         * gcse.c (gcse_main): Update.
9397         (bypass_jumps): Update.
9398         * gimplify.c (gimplify_function_tree): Update.
9399         * calls.c (emit_call_1): Update.
9400         (expand_call): Update.
9401         * bt-load.c (compute_defs_uses_and_gen): Update.
9402         * except.c (sjlj_assign_call_site_values): Update.
9403         (sjlj_emit_function_enter): Update.
9404         (can_throw_external): Update.
9405         (set_nothrow_function_flags): Update.
9406         (expand_builtin_unwind_init): Update.
9407         (expand_eh_return): Update.
9408         (convert_to_eh_region_ranges): Update.
9409         (output_function_exception_table): Update.
9410         * emit-rtl.c (gen_tmp_stack_mem): Update.
9411         * cfgexpand.c (expand_used_vars): Update.
9412         (tree_expand_cfg): Update.
9413         * cfgcleanup.c (rest_of_handle_jump): Update.
9414         * explow.c (allocate_dynamic_stack_space): Update.
9415         * varasm.c (assemble_start_function): Update.
9416         (force_const_mem): Update.
9417         (mark_constant_pool): Update.
9418         * tree-optimize.c (tree_rest_of_compilation): Update.
9419         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
9420         * tree-cfg.c (notice_special_calls): Update.
9421         (is_ctrl_altering_stmt): Update.
9422         (tree_can_make_abnormal_goto): Update.
9423         (tree_purge_dead_abnormal_call_edges): Update.
9424         * config/alpha/predicates.md: Update.
9425         * config/alpha/alpha.c (alpha_sa_mask): Update.
9426         (alpha_sa_size): Update.
9427         (alpha_does_function_need_gp): Update.
9428         (alpha_expand_prologue): Update.
9429         (alpha_start_function): Update.
9430         (alpha_output_function_end_prologue): Update.
9431         (alpha_expand_epilogue): Update.
9432         * config/frv/frv.c (frv_stack_info): Update.
9433         (frv_expand_epilogue): Update.
9434         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
9435         (s390_register_info): Update.
9436         (s390_frame_info): Update.
9437         (s390_init_frame_layout): Update.
9438         (s390_can_eliminate): Update.
9439         (save_gprs): Update.
9440         * config/spu/spu.c (spu_split_immediate): Update.
9441         (need_to_save_reg): Update.
9442         (spu_expand_prologue): Update.
9443         (spu_expand_epilogue): Update.
9444         * config/sparc/sparc.md: Update.
9445         * config/sparc/sparc.c (eligible_for_return_delay): Update.
9446         (sparc_tls_got): Update.
9447         (legitimize_pic_address): Update.
9448         (sparc_emit_call_insn): Update.
9449         (sparc_expand_prologue): Update.
9450         (output_return): Update.
9451         (print_operand): Update.
9452         (sparc_function_ok_for_sibcall): Update.
9453         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
9454         * config/m32r/m32r.md: Update.
9455         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
9456         (m32r_compute_frame_size): Update.
9457         (m32r_expand_prologue): Update.
9458         (m32r_expand_epilogue): Update.
9459         (m32r_legitimize_pic_address): Update.
9460         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
9461         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9462         * config/i386/i386.c (ix86_frame_pointer_required): Update.
9463         (gen_push): Update.
9464         (ix86_save_reg): Update.
9465         (ix86_compute_frame_layout): Update.
9466         (ix86_expand_prologue): Update.
9467         (ix86_expand_epilogue): Update.
9468         * config/sh/sh.c (output_stack_adjust): Update.
9469         (calc_live_regs): Update.
9470         (sh5_schedule_saves): Update.
9471         (sh_expand_prologue): Update.
9472         (sh_expand_epilogue): Update.
9473         (sh_setup_incoming_varargs): Update.
9474         (sh_allocate_initial_value): Update.
9475         (sh_get_pr_initial_val): Update.
9476         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
9477         * config/sh/sh.md (label:): Update.
9478         * config/avr/avr.c (out_movhi_mr_r): Update.
9479         * config/crx/crx.h (enum): Update.
9480         * config/xtensa/xtensa.h (along): Update.
9481         * config/stormy16/stormy16.c Update.
9482         (xstormy16_compute_stack_layout): Update.
9483         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
9484         (fr30_expand_prologue): Update.
9485         * config/cris/cris.c (cris_conditional_register_usage): Update.
9486         (cris_reg_saved_in_regsave_area): Update.
9487         (cris_initial_frame_pointer_offset): Update.
9488         (cris_simple_epilogue): Update.
9489         (cris_expand_prologue): Update.
9490         (cris_expand_epilogue): Update.
9491         (cris_expand_pic_call_address): Update.
9492         (cris_asm_output_symbol_ref): Update.
9493         (cris_asm_output_label_ref): Update.
9494         * config/cris/cris.md Update.
9495         * config/iq2000/iq2000.c (compute_frame_size): Update.
9496         (iq2000_expand_epilogue): Update.
9497         * config/mt/mt.h (save_direction): Update.
9498         * config/mn10300/mn10300.c (mn10300_function_value): Update.
9499         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9500         (ia64_secondary_reload_class): Update.
9501         * config/m68k/m68k.c (m68k_save_reg): Update.
9502         (m68k_expand_prologue): Update.
9503         (m68k_expand_epilogue): Update.
9504         (legitimize_pic_address): Update.
9505         * config/rs6000/rs6000.c (rs6000_got_register): Update.
9506         (first_reg_to_save): Update.
9507         (first_altivec_reg_to_save): Update.
9508         (compute_vrsave_mask): Update.
9509         (compute_save_world_info): Update.
9510         (rs6000_stack_info): Update.
9511         (spe_func_has_64bit_regs_p): Update.
9512         (rs6000_ra_ever_killed): Update.
9513         (rs6000_emit_eh_reg_restore): Update.
9514         (rs6000_emit_allocate_stack): Update.
9515         (rs6000_emit_prologue): Update.
9516         (rs6000_emit_epilogue): Update.
9517         (rs6000_output_function_epilogue): Update.
9518         (output_profile_hook): Update.
9519         (rs6000_elf_declare_function_name): Update.
9520         * config/rs6000/rs6000.h (rs6000_args): Update.
9521         * config/rs6000/rs6000.md: Update.
9522         * config/mcore/mcore.c (mcore_expand_prolog): Update.
9523         * config/arc/arc.c (arc_output_function_epilogue): Update.
9524         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
9525         * config/darwin.c (machopic_function_base_name): Update.
9526         * config/score/score3.c (score3_compute_frame_size): Update.
9527         (rpush): Update.
9528         (rpop): Update.
9529         (score3_epilogue): Update.
9530         * config/score/score7.c (score7_compute_frame_size): Update.
9531         (score7_prologue): Update.
9532         (score7_epilogue): Update.
9533         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
9534         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9535         * config/arm/arm.c (use_return_insn): Update.
9536         (require_pic_register): Update.
9537         (arm_load_pic_register): Update.
9538         (arm_compute_save_reg0_reg12_mask): Update.
9539         (arm_compute_save_reg_mask): Update.
9540         (thumb1_compute_save_reg_mask): Update.
9541         (output_return_instruction): Update.
9542         (arm_output_function_prologue): Update.
9543         (arm_output_epilogue): Update.
9544         (arm_get_frame_offsets): Update.
9545         (arm_expand_prologue): Update.
9546         (thumb_pushpop): Update.
9547         (thumb_exit): Update.
9548         (thumb1_expand_prologue): Update.
9549         (thumb1_expand_epilogue): Update.
9550         (arm_unwind_emit): Update.
9551         (arm_output_fn_unwind): Update.
9552         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
9553         * config/arm/arm.md: Update.
9554         * config/pa/pa.md: Update.
9555         * config/pa/pa.c (legitimize_pic_address): Update.
9556         (compute_frame_size): Update.
9557         (hppa_expand_prologue): Update.
9558         (hppa_expand_epilogue): Update.
9559         (borx_reg_operand): Update.
9560         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
9561         (HARD_REGNO_RENAME_OK): Update.
9562         * config/mips/mips.c (mips_global_pointer): Update.
9563         (mips_save_reg_p): Update.
9564         (mips_compute_frame_info): Update.
9565         (mips_frame_pointer_required): Update.
9566         (mips_expand_prologue): Update.
9567         (mips_expand_epilogue): Update.
9568         (mips_can_use_return_insn): Update.
9569         (mips_reorg_process_insns): Update.
9570         * config/v850/v850.c (compute_register_save_size): Update.
9571         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
9572         * config/mmix/mmix.c (along): Update.
9573         (mmix_expand_epilogue): Update.
9574         * config/bfin/bfin.c (legitimize_pic_address): Update.
9575         (must_save_p): Update.
9576         (stack_frame_needed_p): Update.
9577         (add_to_reg): Update.
9578         (bfin_expand_prologue): Update.
9579         * stmt.c (expand_asm_operands): Update.
9580         * reload1.c (reload): Update.
9581         (init_elim_table): Update.
9582
9583 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
9584
9585         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
9586
9587 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
9588
9589         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
9590         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
9591         (mov<mode>): Removed.
9592         (*movv4sf_internal): Likewise.
9593         (*movv2df_internal): Likewise.
9594
9595 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
9596
9597         * config.gcc (crx-*-elf): Remove deprecation.
9598
9599 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
9600
9601         * config/i386/cygming-crtend.c (register_frame_ctor): Register
9602         __gcc_deregister_frame with atexit.
9603         (deregister_frame_dtor): Remove.
9604
9605 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
9606             Nathan Sidwell  <nathan@codesourcery.com>
9607
9608         * config/rs6000/rs6000.opt (mspe): Remove Var property.
9609         (misel): Likewise.
9610         * config/rs6000/rs6000.h (rs6000_spe): Declare.
9611         (rs6000_isel): Likewise.
9612         * config/rs6000/rs6000.c (rs6000_spe): New variable.
9613         (rs6000_isel): New variable.
9614         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9615
9616 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9617
9618         PR c++/35758
9619         * c-common.c (handle_vector_size_attribute): Call
9620         lang_hooks.types.reconstruct_complex_type instead of
9621         reconstruct_complex_type.
9622         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9623         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9624         * langhooks.h (struct lang_hooks_for_types): Add
9625         reconstruct_complex_type hook.
9626         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
9627         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9628
9629 2008-04-24  Richard Guenther  <rguenther@suse.de>
9630
9631         * c-common.h (check_builtin_function_arguments): Declare.
9632         * c-common.c (validate_nargs): New function.
9633         (check_builtin_function_arguments): Likewise.
9634         * c-typeck.c (build_function_call): Call
9635         check_builtin_function_arguments.
9636         * builtins.c (fold_builtin_classify): Remove error reporting code.
9637         (fold_builtin_unordered_cmp): Likewise.
9638         (fold_builtin_1): Likewise.
9639         (fold_builtin_n): Likewise.
9640
9641 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9642
9643         PR tree-optimization/36008
9644         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
9645         the original op1, rather than delta by step.
9646
9647 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
9648             Sebastian Pop  <sebastian.pop@amd.com>
9649
9650         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
9651         eliminate_local_variables_stmt, eliminate_local_variables,
9652         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
9653         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
9654         of code delimited by two edges in the CFG.
9655         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
9656         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
9657         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
9658         the case of parallelisation of reductions.
9659         (expr_invariant_in_region_p): New.
9660
9661         * tree-flow.h (gather_blocks_in_sese_region): Declared.
9662         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
9663
9664 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9665             Richard Guenther  <rguenther@suse.de>
9666
9667         PR tree-optimization/36034
9668         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
9669         incapable of dealing with loads with gaps.
9670
9671 2008-04-24  Rafael Espindola  <espindola@google.com>
9672
9673         * tree-flow.h (vrp_evaluate_conditional): Change signature.
9674         * tree-ssa-propagate.c (fold_predicate_in): Update call to
9675         vrp_evaluate_conditional.
9676         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
9677         (vrp_evaluate_conditional): Split the cond argument.
9678         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9679         (simplify_stmt_for_jump_threading): Update call to
9680         vrp_evaluate_conditional.
9681
9682 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9683
9684         PR tree-optimization/35982
9685         * tree-vect-analyze.c (vect_check_interleaving): Check that the
9686         interleaved data-refs are of the same type.
9687
9688 2008-04-24  Danny Smith  <dannysmith@users.net>
9689
9690         * c-format.c (check_format_info_main): Use strncmp rather than a
9691         magic prefix to handle multichar length specs.
9692         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
9693         Don't prefix "I64" and "I32" with '\0'.
9694
9695 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9696
9697         PR target/36015
9698         * config/i386/i386.c (init_cumulative_args): Don't pass anything
9699         in registers for -m32 only if stdarg_p (fntype).
9700
9701 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
9702
9703         PR rtl-optimization/36006
9704         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
9705         temp to op0 in order to avoid invalid rtx sharing.
9706
9707 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
9708
9709         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
9710         check TREE_INVARIANT.
9711         * tree-gimple.c (is_gimple_address): New.
9712         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
9713         * tree-gimple.h (is_gimple_address): New.
9714         * tree.h (decl_address_invariant_p): New.
9715         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
9716         (build_string): Likewise.
9717         (decl_address_invariant_p): New, from is_gimple_invariant_address.
9718         (tree_invariant_p_1): Likewise.
9719         (save_expr): Use it.
9720         (tree_invariant_p): New.
9721         (skip_simple_arithmetic): Use it.
9722         (stabilize_reference_1): Use it.
9723         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
9724         simplify.
9725         (build1_stat): Drop code to compute TREE_INVARIANT.
9726         (build2_stat): Drop code to compute TREE_INVARIANT.
9727         (build3_stat): Drop code to compute TREE_INVARIANT.
9728         (build4_stat): Drop code to compute TREE_INVARIANT.
9729         (build5_stat): Drop code to compute TREE_INVARIANT.
9730         (build7_stat): Drop code to compute TREE_INVARIANT.
9731         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
9732         * tree.h (struct tree_base): Remove invariant_flag.
9733         (TREE_INVARIANT): Remove.
9734         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
9735         (fold_builtin_expect): Check TREE_CONSTANT.
9736         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
9737         * c-tree.h (c_expr_to_decl): Drop third parameter.
9738         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
9739         (build_c_cast): Don't set TREE_INVARIANT.
9740         (pop_init_level): Don't set TREE_INVARIANT.
9741         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
9742         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
9743         TREE_CONSTANT.
9744         (gimplify_init_constructor): Don't set TREE_INVARIANT.
9745         (gimplify_addr_expr): Adjust comment.
9746         * tree-mudflap.c (mf_build_string):
9747         * print-tree.c (print_node): Don't print TREE_INVARIANT.
9748         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
9749         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
9750         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
9751         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
9752         * langhooks.h (struct lang_hooks): Drop third parameter from
9753         expr_to_decl.
9754
9755 2008-04-23  Richard Guenther  <rguenther@suse.de>
9756
9757         PR tree-optimization/27799
9758         PR tree-optimization/32921
9759         PR tree-optimization/32624
9760         * tree-ssa-structalias.c (merge_smts_into): Only merge the
9761         SMTs aliases and the tag itself into the solution.
9762         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
9763         merge the points-to solution back into the SMT aliases.
9764         (may_alias_p): Use alias_set_subset_of instead of
9765         aliases_conflict_p.  A pointer which points to
9766         memory with alias set zero may access any variable.
9767
9768 2008-04-23  Richard Guenther  <rguenther@suse.de>
9769
9770         * alias.c (alias_set_subset_of): Correctly handle asking
9771         if zero is a subset of an alias set with zero child.
9772         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
9773         (compute_flow_insensitive_aliasing): Correctly walk all
9774         pointers.  Do not unnecessarily union sets.
9775
9776 2008-04-23  Richard Guenther  <rguenther@suse.de>
9777
9778         PR middle-end/36021
9779         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
9780
9781 2008-04-22  Tomas Bily  <tbily@suse.cz>
9782
9783         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
9784         unreachable case.
9785         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
9786         NON_LVALUE_EXPR.
9787         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9788         * tree-ssa-structalias.c (get_constraint_for): Likewise.
9789         * tree-inline.c (estimate_num_insns_1): Likewise.
9790         * varasm.c (const_hash_1, compare_constant, copy_constant)
9791         (compute_reloc_for_constant, output_addressed_constants): Likewise.
9792         * emit-rtl.c (component_ref_for_mem_expr)
9793         (set_mem_attributes_minus_bitpos): Likewise.
9794         * expr.c (highest_pow2_factor, expand_expr_real_1, )
9795         (is_aligning_offset): Likewise.
9796         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
9797         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9798         * dojump.c (do_jump): Likewise.
9799         * builtins.c (get_pointer_alignment, get_memory_rtx)
9800         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
9801         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
9802
9803 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
9804
9805         PR rtl-optimization/36017
9806         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
9807         expanding the library call.
9808
9809 2008-04-22  Ian Lance Taylor  <iant@google.com>
9810
9811         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
9812         than size_in_bytes.
9813
9814 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
9815
9816         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
9817         of LR/CTR moves for Power6.
9818
9819 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
9820
9821         PR middle-end/36003
9822         * passes.c (init_optimization_passes): Remove
9823         pass_fast_rtl_byte_dce.
9824
9825 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
9826
9827         PR target/29096
9828         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
9829         builtin functions to generate faster code.
9830         (_mm_cvtpu16_ps): Ditto.
9831         (_mm_cvtpi32x2_ps): Ditto.
9832
9833 2008-04-22  Nick Clifton  <nickc@redhat.com>
9834
9835         * common.opt (ftree-loop-distribution): Add Optimization
9836         attribute.
9837
9838         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
9839         (frv_expand_builtin_va_start): Likewise.
9840
9841         * config/arm/arm.c (thumb_find_work_register): Fix location of
9842         argument register count.
9843
9844 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9845
9846         Support scheduling for ColdFire V1 and V3 microarchitecture.
9847         Improve scheduling of multiplication instructions.
9848
9849         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
9850         (mac): New instruction attribute.
9851         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
9852         (m68k_sched_mac): New variable.
9853         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
9854         Handle cfv1 and cfv3.
9855         (max_insn_size): New static variable.
9856         (struct _sched_ib): New type.
9857         (sched_ib): New static variable.
9858         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
9859         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
9860         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
9861         Update.
9862         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
9863         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
9864         new variables.  Update.
9865         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9866         Add modeling of cfv3 instruction buffer.  Update.
9867         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
9868         * config/m68k/m68k.h (TUNE_CFV3): New macro.
9869         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
9870         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
9871         a particular reservation applies to.
9872         (type2): Reorganize attribute values.  Rename alu to alu_reg,
9873         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
9874         to mul_l and mul_w.
9875         (cf_ib_*): Simplify description of instruction buffer.
9876         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
9877         (cf_mem): Split into cf_mem1 and cf_mem2.
9878         (cf_v2_move_??): Rename to cfv12_alu_??.
9879         (cf_v2_move_l_??): Rename to cfv12_omove_??.
9880         (cf_v2_mul_??): Remove reservations.
9881         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
9882         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
9883         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
9884         appropriate place.
9885         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
9886         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
9887         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
9888         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
9889         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
9890         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
9891         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
9892         expansions of the above reservations for instructions of sizes
9893         1, 2 and 3 words.
9894
9895 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9896
9897         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
9898
9899 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
9900
9901         * coverage.c: Include tree-pass.h.
9902         (coverage_counter_alloc): Print da_file_name to the dump file.
9903
9904 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
9905
9906         * sbitmap.c (sbitmap_range_empty_p): New function.
9907         * sbitmap.h (sbitmap_range_empty_p): New function.
9908         * bitmap.h: Now includes obstack.h.
9909
9910 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
9911             Kenneth Zadeck  <zadeck@naturalbridge.com>
9912
9913         * dbgcnt.def (ra_byte_scan): Added.
9914         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
9915         when the last hit happens for a counter.
9916         * timevar.def (TV_DF_BYTE_LR): New variable.
9917         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
9918         * passes.c (pass_fast_rtl_byte_dce): New pass.
9919         * fwprop.c (update_df): Added mode to call df_ref_create.
9920         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9921         DF_REF_EXTRACT_OFFSET.
9922         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
9923         DF_BYTE_LR_OUT, df_byte_lr): New macro.
9924         (df_mm): New enum.
9925         (df_ref_extract): Added mode field.
9926         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
9927         DF_REF_EXTRACT_OFFSET.
9928         (DF_REF_EXTRACT_MODE): New macro.
9929         (df_byte_lr_bb_info): New structure.
9930         (df_print_byte_regset, df_compute_accessed_bytes,
9931         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
9932         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
9933         df_byte_lr_simulate_uses,
9934         df_byte_lr_simulate_artificial_refs_at_top,
9935         df_byte_lr_simulate_artificial_refs_at_end,
9936         df_compute_accessed_bytes): New function.
9937         (df_ref_create): Add parameter.
9938         (df_byte_lr_get_bb_info): New inline function.
9939         * df-scan.c (df_ref_record, df_uses_record,
9940         df_ref_create_structure): Added mode parameter.
9941         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
9942         df_defs_record, df_uses_record, df_get_conditional_uses,
9943         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
9944         df_entry_block_defs_collect, df_exit_block_uses_collect):
9945         Added mode parameter to calls to df_ref_record, df_uses_record,
9946         df_ref_create_structure.
9947         (df_ref_equal_p, df_ref_compare): Added test for modes.
9948         (df_ref_create_structure): Added code to set mode.  Renamed
9949         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9950         DF_REF_EXTRACT_OFFSET.
9951         * df-core.c (df_print_byte_regset): New function.
9952         * df-byte-scan.c: New file.
9953         * df-problems.c (df_rd_transfer_function): Removed unnecessary
9954         calls to BITMAP_FREE.
9955         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
9956         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
9957         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
9958         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
9959         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
9960         df_byte_lr_local_compute, df_byte_lr_init,
9961         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
9962         df_byte_lr_transfer_function, df_byte_lr_free,
9963         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
9964         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
9965         df_byte_lr_simulate_uses,
9966         df_byte_lr_simulate_artificial_refs_at_top,
9967         df_byte_lr_simulate_artificial_refs_at_end): New function.
9968         * dce.c (byte_dce_process_block): New function.
9969         (dce_process_block): au is now passed in rather than computed
9970         locally.  Changed loops that look at artificial defs to not look
9971         for conditional or partial ones, because there never are any.
9972         (fast_dce): Now is able to drive byte_dce_process_block or
9973         dce_process_block depending on the kind of dce being done.
9974         (rest_of_handle_fast_dce): Add parameter to fast_dce.
9975         (rest_of_handle_fast_byte_dce): New function.
9976         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
9977         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
9978
9979 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
9980
9981         PR fortran/35019
9982         * gcc.h: Added fortran options that take arguments to
9983         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
9984         macros.
9985
9986 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
9987
9988         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
9989         scalarization if on the LHS and not a full access.
9990
9991 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9992
9993         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
9994
9995 2008-04-18  Rafael Espindola  <espindola@google.com>
9996
9997         * tree-vrp.c (find_case_label_index): Fix the binary search.
9998         (find_case_label_range): New.
9999         (vrp_visit_switch_stmt): Use find_case_label_range.
10000         (simplify_switch_using_ranges): Use find_case_label_range.
10001
10002 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
10003
10004         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
10005         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
10006
10007 2008-04-18  Tom Tromey  <tromey@redhat.com>
10008
10009         PR libcpp/15500:
10010         * doc/cpp.texi (Implementation-defined behavior): Mention
10011         -finput-charset.
10012
10013 2008-04-18  Ian Lance Taylor  <iant@google.com>
10014
10015         * fold-const.c (pointer_may_wrap_p): New static function.
10016         (fold_comparison): Add another test for pointer overflow.  Use
10017         pointer_may_wrap_p to disable some false positives.
10018
10019 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
10020
10021         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
10022         (fname_as_string): Match updated cpp_interpret_string prototype.
10023         (fix_string_type): Support char16_t* and char32_t*.
10024         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
10025         derivative) nodes.  Register as builtin if C++0x.
10026         (c_parse_error): Support CPP_CHAR{16,32}.
10027         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
10028         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
10029         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
10030         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
10031         CTI_CHAR32_ARRAY_TYPE>: New elements.
10032         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
10033         char32_type_node, signed_char32_type_node, char16_array_type_node,
10034         char32_array_type_node): New defines.
10035         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
10036         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
10037         (lex_string): Support CPP_STRING{16,32}, match updated
10038         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
10039         (lex_charconst): Support CPP_CHAR{16,32}.
10040         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
10041         and CPP_STRING{16,32}.
10042
10043 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
10044
10045         PR bootstrap/35457
10046         * aclocal.m4: Regenerate.
10047         * configure: Regenerate.
10048
10049 2008-04-18  Jan Hubicka  <jh@suse.cz>
10050
10051         * except.c (dw2_size_of_call_site_table,
10052         sjlj_size_of_call_site_table): Use vector API for call_site_record.
10053
10054         * cgraphbuild.c (build_cgraph_edges): Update.
10055         * tree-pass.h: Update comment.
10056         * final.c (leaf_function_p): Update.
10057         (leaf_renumber_regs): Update.
10058         (rest_of_clean_state): Update.
10059         * omp-low.c (expand_omp_parallel): Update.
10060         * ipa-reference.c (analyze_function): Update.
10061         * reorg.c (find_end_label): Update.
10062         (optimize_skip): Update.
10063         (fill_simple_delay_slots): Update.
10064         (fill_simple_delay_slots): Update.
10065         (make_return_insns): Update.
10066         (dbr_schedule): Update.
10067         * gimple-low.c (record_vars_into): Update.
10068         * cfgbuild.c (make_edges): Update.
10069         * function.c (assign_stack_local): Update.
10070         (assign_parm_adjust_stack_rtl): Update.
10071         (locate_and_pad_parm): Update.
10072         (allocate_struct_function): Do not initialize stack_alignment_needed
10073         and preferred_stack_boundary here.
10074         (stack_protect_prologue): Update.
10075         (stack_protect_epilogue): Update.
10076         (expand_function_start): Initialize stack_alignment_needed,
10077         preferred_stack_boundary and max_jumptable_ents.
10078         (expand_function_end): Update.
10079         (free_after_compilation): Do not NULLify epilogue_delay_list.
10080         * function.h (struct rtl_data): Add stack_protect_guard,
10081         stack_alignment_needed,
10082         preferred_stack_boundary, epilogue_delay_list.
10083         (struct function): Remove value_histograms, stack_alignment_needed,
10084         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
10085         last_label_uid,
10086         unexpanded_var_list, stack_protect_guard.
10087         (current_function_epilogue_delay_list): Remove.
10088         * ipa-type-escape.c (analyze_function): Update.
10089         * gimplify.c (pop_gimplify_context): Update comment.
10090         * calls.c (expand_call): Update.
10091         (emit_library_call_value_1): Update.
10092         * except.c (set_nothrow_function_flags): Update.
10093         * cfgexpand.c (get_decl_align_unit): Update.
10094         (create_stack_guard): Update.
10095         (estimated_stack_frame_size): Update.
10096         (expand_used_vars): Update.
10097         (tree_expand_cfg): Free histogram earliers, init expansion variables.
10098         * explow.c (allocate_dynamic_stack_space): Update.
10099         * tree-ssa-live.c (remove_unused_locals): Update.
10100         * varasm.c (mark_constant_pool): Update.
10101         * tree-inline.c (remap_decls): Update.
10102         (initialize_cfun): Update.
10103         (declare_return_variable): Update.
10104         (inline_forbidden_p): Update.
10105         (expand_call_inline): Update.
10106         (declare_inline_vars): Update.
10107         (tree_function_versioning): Update.
10108         * tree-flow.h (value_histograms): New.
10109         (VALUE_HISTOGRAMS): New macro.
10110         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
10111         last_label_uid.
10112         * tree-cfg.c (set_bb_for_stmt): Update.
10113         (replace_by_duplicate_decl): Update.
10114         (move_block_to_fn): Update.
10115         (new_label_mapper): Update.
10116         (dump_function_to_file): Update.
10117         * ipa-struct-reorg.c (build_data_structure): Update.
10118         * cfgrtl.c (print_rtl_with_bb): Update.
10119         * reload1.c (reload): Update.
10120         (reload): Update.
10121         * config/i386/i386.c (setup_incoming_varargs_64,
10122         ix86_compute_frame_layout): Update.
10123         * config/arc/arc.c (arc_output_function_epilogue): Update.
10124
10125 2008-04-18  Marius Strobl <marius@FreeBSD.org>
10126
10127         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
10128         for FreeBSD as well.
10129         * gthr-posix95.h: Likewise.
10130
10131 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
10132
10133         PR rtl-optimization/35838
10134         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
10135         out the byte offset of the first subreg.
10136
10137 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
10138
10139         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
10140         to split_ti instead of three separate calls with single member arrays.
10141         (subti3 splitter): Ditto.
10142         (adddi3 splitter): Ditto with split_di.
10143         (subdi3 splitter): Ditto.
10144         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
10145         two separate calls with single member arrays.  Swap match_dup
10146         operands 1 and 2 to better fit into the array.
10147         (negdi2 splitter): Ditto with split_di.
10148         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
10149         two separate calls with single member arrays.  Swap match_dup operands
10150         6 and 7 to better fit into the array.
10151
10152 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
10153
10154         * config/i386/i386.c (sse_builtin_type): New.
10155         (bdesc_sse_args): Likewise.
10156         (bdesc_sse_3arg): Removed.
10157         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10158         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
10159         IX86_BUILTIN_ROUNDPS.
10160         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
10161         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
10162         IX86_BUILTIN_ROUNDPS.
10163         (ix86_expand_sse_4_operands_builtin): Removed.
10164         (ix86_expand_sse_operands_builtin): New.
10165         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
10166         and CODE_FOR_sse4_1_roundps.
10167         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10168         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
10169
10170 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
10171
10172         PR target/35907
10173         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
10174         regs before frame pop when needed.  If use_backchain_to_restore_sp
10175         then load backchain into a temp reg to restore vr and vrsave.  Add
10176         code to restore vr after frame pop if possible.
10177
10178 2008-04-17  Richard Guenther  <rguenther@suse.de>
10179
10180         * tree-vn.c (expressions_equal_p): Do not check type
10181         equality or compatibility before calling operand_equal_p.
10182         * fold-const.c (operand_equal_p): Check equivalence of
10183         integer constants before bailing out due to signedness or
10184         precision differences.
10185         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
10186         spurious differences in type qualification.  Ignore types
10187         for COMPONENT_REFs at all.
10188
10189 2008-04-17  Christian Bruel  <christian.bruel@st.com>
10190
10191         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
10192         msw_skip comparison.
10193
10194 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
10195
10196         PR c/35739
10197         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
10198         reg type.
10199
10200         PR tree-optimization/35899
10201         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
10202         rather than TREE_OPERAND.
10203
10204 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
10205
10206         PR target/35944
10207         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
10208         temporary registers.  Change operand predicate to general_operand.
10209         (remainderxf3): Ditto.
10210
10211 2008-04-16  Richard Guenther  <rguenther@suse.de>
10212
10213         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
10214         * tree-affine.c (aff_combination_expand): Look through some
10215         conversions.
10216
10217 2008-04-15  Doug Kwan  <dougkwan@google.com>
10218
10219         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
10220         for hex printing.
10221         * tree-pretty-print.c (dump_generic_node): Ditto.
10222         * final.c (output_addr_const): Ditto.
10223         * dwarf2out.c (output_cfi): Ditto.
10224         * c-pretty-print.c (pp_c_integer_constant): Ditto.
10225         * print-rtl.c (print_rtx): Ditto.
10226         * print-tree.c (print_node_brief, print_node): Ditto.
10227         * c-common.c (match_case_to_enum_1): Ditto.
10228         * sched-vis.c (print_value): Ditto.
10229         * config/i386/i386.c (print_operand): Cast to long unsigned int
10230         for hex printing.
10231
10232 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
10233         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
10234         MS Windows VirtualProtect function.
10235
10236 2008-04-15  Jan Hubicka  <jh@suse.cz>
10237
10238         * gengtype.c (write_root): Param_is argument is OK.
10239         * expr.c (expand_expr_real_1): Update call of get_exception_*.
10240         * function.h: Include varray.h
10241         (rtl_eh): New stucture based on except.c one.
10242         (call_site_record): New forward declaration and vector type.
10243         * calls.c (emit_call_1): Do not call
10244         note_current_region_may_contain_throw.
10245         * except.c (eh_status): Remove cur_region, try_region since they are
10246         unused.
10247         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
10248         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
10249         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
10250         Remove call_site_data_used, call_site_data_size.
10251         Turn call_site_record into vector in function.h.
10252         (note_current_region_may_contain_throw): Remove.
10253         (get_exception_pointer, get_exception_filter): Do not take struct
10254         function argument; update.
10255         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
10256         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
10257         build_post_landing_pads, dw2_build_landing_pads,
10258         sjlj_assign_call_site_values, sjlj_mark_call_sites,
10259         sjlj_emit_function_enter, sjlj_emit_function_enter,
10260         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
10261         sjlj_build_landing_pads, finish_eh_generation,
10262         remove_exception_handler_label, remove_eh_handler,
10263         maybe_remove_eh_handler, add_reachable_handler,
10264         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
10265         add_action_record, collect_one_action_chain, add_call_site,
10266         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
10267         sjlj_output_call_site_table, output_function_exception_table,
10268         * except.h (note_current_region_may_contain_throw): Remove
10269         (get_exception_pointer, get_exception_filter): Do not take struct
10270         function argument.
10271         * Makefile.in (GTFILES): Put varargs before struct function.
10272
10273 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10274
10275         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
10276         punt for STRING_CST.
10277         (get_constraint_for): Deal with STRING_CST here instead.
10278
10279 2008-04-15  Richard Guenther  <rguenther@suse.de>
10280
10281         * tree-ssa-propagate.c (substitute_and_fold): Substitute
10282         statements in a basic-block with a backward walk.  Do not
10283         substitute into dead statements but instead remove those.
10284
10285 2008-04-15  Richard Guenther  <rguenther@suse.de>
10286
10287         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
10288         to zero, thus disable creation of SFTs.
10289
10290 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10291
10292         * tree-predcom.c (suitable_reference_p): Return false if the
10293         reference can throw.
10294
10295 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
10296
10297         PR c/35751
10298         * c-decl.c (finish_decl): If extern or static var has variable
10299         size, set TREE_TYPE (decl) to error_mark_node.
10300
10301 2008-04-15  Rafael Espindola  <espindola@google.com>
10302
10303         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
10304         variable arg1.
10305
10306 2008-04-15  Richard Guenther  <rguenther@suse.de>
10307
10308         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
10309         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
10310         (visit_reference_op_load): Do walk vuse-vdef chains on
10311         vn_reference_lookup.
10312         (visit_reference_op_store): But do not here.
10313         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
10314         vn_reference_lookup.
10315         (vn_lookup_with_vuses): But do so here.
10316
10317 2008-04-14  Ian Lance Taylor  <iant@google.com>
10318
10319         * fold-const.c (fold_overflow_warning): Remove assertion.
10320
10321 2008-04-15  Ben Elliston  <bje@au.ibm.com>
10322
10323         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
10324         temp1 local variables.
10325
10326 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
10327
10328         PR target/35661
10329         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
10330         ".text.unlikely" section as executable.
10331
10332 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
10333
10334         * config/ia64/ia64.c (rtx_needs_barrier): Handle
10335         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
10336         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
10337         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
10338         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
10339         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
10340         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
10341
10342 2008-04-14  Ian Lance Taylor  <iant@google.com>
10343
10344         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
10345         * fold-const.c (fold_comparison): If appropriate, test
10346         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
10347         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
10348         reassociating a pointer type.
10349         * doc/invoke.texi (Optimize Options): Document that
10350         -fstrict-overflow applies to pointer wraparound.
10351
10352 2008-04-13  Jan Hubicka  <jh@suse.cz>
10353
10354         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
10355
10356 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
10357
10358         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
10359         we are going to "save the world".
10360
10361 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
10362
10363         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
10364         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
10365         operand 0 constraint, not "=".
10366
10367 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
10368
10369         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
10370
10371 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10372
10373         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
10374         of size of positions_needed * CHAR_BIT.
10375
10376 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10377
10378         PR middle-end/35897
10379         * dse.c (store_info): Change positions_needed to unsigned
10380         HOST_WIDE_INT.
10381         (lowpart_bitmask): New.
10382         (record_store): Cast to unsigned HOST_WIDE_INT for
10383         positions_needed.  Assert width <= size of positions_needed *
10384         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
10385         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
10386         lowpart_bitmask to set mask.
10387
10388 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
10389
10390         * config/bfin/constraints.md: New file.
10391         * config/bfin/bfin.md: Include it.
10392         (adddi3): Use satisfies_constraint functions instead of the old macros.
10393         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
10394         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
10395         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
10396         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
10397         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
10398         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
10399         EXTRA_CONSTRAINT): Delete.
10400         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
10401         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
10402         of the old macros.
10403         * config/bfin/bfin.c: Include "tm-constrs.h".
10404         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
10405         Use satisfies_constraint functions instead of the old macros.
10406         * doc/md.texi (Blackfin Constraints): Update file name reference.
10407
10408 2008-04-11  Richard Guenther  <rguenther@suse.de>
10409
10410         PR tree-optimization/35869
10411         * tree-vrp.c (execute_vrp): Move switch statement update after
10412         jump threading.  Schedule another cfg cleanup run.
10413
10414 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
10415
10416         PR c/35744
10417         * attribs.c (decl_attributes): Return early on errorneous node.
10418
10419 2008-04-10  Oleg Ryjkov  <olegr@google.com>
10420
10421         * tree.h (struct tree_base): Added a new flag default_def_flag.
10422         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
10423
10424 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
10425
10426         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
10427
10428 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10429
10430         PR target/35768
10431         * pa.md: Define mode iterator P.  Define mode attribute dwc.
10432         (dcacheflush): Update pattern to use iterator P and attribute dwc.
10433         (icacheflush): Likewise.
10434         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
10435         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
10436
10437 2008-04-11  Ben Elliston  <bje@au.ibm.com>
10438
10439         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
10440
10441 2008-04-10  Rafael Espindola  <espindola@google.com>
10442
10443         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
10444         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
10445         (extract_range_from_expr): The same.
10446
10447 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10448
10449         * config/mips/mips.md (GPR2): New mode iterator.
10450         (seq): Add comment.
10451         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
10452         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
10453         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
10454         Rewrite these to take two modes, the mode of comparison and the
10455         mode of the destination.
10456         * config/mips/mips.c (mips_expand_scc): Instead of having
10457         paradoxical subreg as destination, expand "narrowing" scc if mode
10458         of comparison is SI and target is requested in DI mode.
10459         (mips_emit_int_order_test): Update comment.  Make mode of
10460         comparison match CMP0 rather than TARGET.  When creating inverse
10461         target use mode of TARGET.
10462
10463 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10464
10465         * gcov-dump.c (tag_summary): Only print summaries for the first
10466         GCOV_COUNTERS_SUMMABLE counters.
10467
10468 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
10469
10470         * config/i386/i386.md (absneg): New code iterator.
10471         (absnegprefix): New code attribute.
10472         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
10473         patterns using absneg code iterator.
10474         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
10475         using absneg code iterator.
10476         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
10477         *neg<mode>2 patterns using absneg code iterator.
10478         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10479         *negextendsfdf2 patterns using absneg code iterator.
10480         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
10481         *negextendsfxf2 patterns using absneg code iterator.
10482         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10483         *negextendsfdf2 patterns using absneg code iterator.
10484         * config/i386/sse.md (<code><mode>2): Macroize expander from
10485         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
10486
10487 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
10488
10489         * config/s390/s390.h: Remove the remains of the recent search
10490         & replace action of current_function_outgoing_args_size.
10491
10492 2008-04-10  Ira Rosen  <irar@il.ibm.com>
10493
10494         PR tree-optimization/35821
10495         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
10496         NEW_STMT_LIST is not NULL.
10497
10498 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
10499
10500         PR libstdc++/35597
10501         * toplev.c (process_options): Remove -ffunction-sections debugging
10502         warning.
10503
10504 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
10505
10506         PR middle-end/PR28690
10507         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
10508         than gen_rtx_fmt_ee to perform more canonicalizations.
10509
10510 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10511
10512         PR driver/35665
10513         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
10514
10515 2008-04-09  Richard Guenther  <rguenther@suse.de>
10516
10517         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
10518         (dump_function_to_file): Dump function arguments with types.
10519
10520 2008-04-08  Richard Guenther  <rguenther@suse.de>
10521
10522         * fold-const.c (fold_widened_comparison): Do not allow
10523         sign-changes that change the result.
10524
10525 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
10526
10527         PR target/35839
10528         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
10529         kinds of indirect references.
10530
10531 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
10532
10533         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
10534         GNU Fortran language string.
10535
10536 2008-04-08  Rafael Espindola  <espindola@google.com>
10537
10538         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
10539         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
10540         * tree.h (tree_call_nonnegative_warnv_p): New.
10541
10542 2008-04-08  Jan Hubicka  <jh@suse.cz>
10543
10544         * function.c (free_after_compilation): Clear out regno_reg_rtx
10545         pointer.
10546
10547 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
10548
10549         Revert
10550         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10551
10552         PR middle-end/PR28690
10553         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
10554         same precedence as REG_POINTER and MEM_POINTER operands.
10555
10556 2008-04-08  Richard Guenther  <rguenther@suse.de>
10557
10558         PR middle-end/35834
10559         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
10560         for adding index to base.
10561
10562 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
10563
10564         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
10565         (MINGW_ENABLE_EXECUTE_STACK): New.
10566         (IN_LIBGCC2): For libgcc include windows.h file for
10567         function declarations.
10568
10569 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
10570
10571         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
10572         and tem2 if tem1 is not a REG or MULT.
10573
10574 2008-04-08  Jan Hubicka  <jh@suse.cz>
10575
10576         * function.h (incomming_args): Break out of struct function.
10577         (function_subsections): Break out of struct function.
10578         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
10579         return_rtx and hard_reg_initial_vals from struct function.
10580         Kill inl_max_label_num.
10581         (current_function_pops_args, current_function_args_info,
10582         current_function_args_size, current_function_args_size,
10583         current_function_pretend_args_size,
10584         current_function_outgoing_args_size,
10585         current_function_internal_arg_pointer, current_function_return_rtx):
10586         Kill compatibility accestor macros.
10587         * builtins.c (expand_builtin_apply_args_1): Update.
10588         (expand_builtin_next_arg): Update.
10589         * df-scan.c (df_get_call_refs): Update.
10590         * dbxout.c (dbxout_function_end): Update.
10591         * dwarf2out.c (dwarf2out_switch_text_section): Update.
10592         (output_line_info): Update.
10593         (secname_for_decl): Update.
10594         (dwarf2out_var_location): Update.
10595         * function.c (free_after_compilation): Update.
10596         (assign_parm_find_stack_rtl): Update.
10597         (assign_parms): Update.
10598         (expand_dummy_function_end): Update.
10599         (expand_function_end): Update.
10600         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10601         (expand_call): Update.
10602         (emit_library_call_value_1): Update.
10603         (store_one_arg): Update.
10604         * varasm.c (initialize_cold_section_name): Update.
10605         (unlikely_text_section): Update.
10606         (unlikely_text_section_p): Update.
10607         (assemble_start_function): Update.
10608         (assemble_end_function): Update.
10609         (default_section_type_flags): Update.
10610         (switch_to_section): Update.
10611         * integrate.c (set_decl_abstract_flags): Update.
10612         (get_hard_reg_initial_val): Update.
10613         (has_hard_reg_initial_val): Update.
10614         (allocate_initial_values): Update.
10615         * resource.c (init_resource_info): Update.
10616         * config/alpha/alpha.c (NUM_ARGS): Update.
10617         (direct_return): Update.
10618         (alpha_va_start): Update.
10619         (alpha_sa_size): Update.
10620         (alpha_initial_elimination_offset): Update.
10621         (alpha_expand_prologue): Update.
10622         (alpha_start_function): Update.
10623         (alpha_expand_epilogue): Update.
10624         (unicosmk_initial_elimination_offset):
10625         * config/alpha/alpha.md (call expander): Update.
10626         * config/s390/s390.c (s390_register_info): Update.
10627         (s390_register_info): Update.
10628         (s390_frame_info): Update.
10629         (s390_initial_elimination_offset): Update.
10630         (s390_build_builtin_va_list): Update.
10631         (s390_va_start): Update.
10632         * config/spu/spu.c (direct_return): Update.
10633         (spu_expand_prologue): Update.
10634         (spu_initial_elimination_offset): Update.
10635         (spu_build_builtin_va_list): Update.
10636         (spu_va_start): Update.
10637         * config/sparc/sparc.c (sparc_init_modes): Update.
10638         (sparc_compute_frame_size): Update.
10639         (function_value): Update.
10640         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
10641         * config/i386/i386.md (return expander): Update.
10642         * config/i386/i386.c (ix86_va_start): Update.
10643         (ix86_can_use_return_insn_p): Update.
10644         (ix86_compute_frame_layout): Update.
10645         (ix86_expand_epilogue): Update.
10646         * config/sh/sh.c (output_stack_adjust): Update.
10647         (calc_live_regs): Update.
10648         (sh_expand_prologue): Update.
10649         (sh_builtin_saveregs): Update.
10650         (sh_va_start): Update.
10651         (initial_elimination_offset): Update.
10652         (sh_allocate_initial_value): Update.
10653         (sh_function_ok_for_sibcall): Update.
10654         (sh_get_pr_initial_val): Update.
10655         * config/sh/sh.md (return expander): Update.
10656         * config/avr/avr.c (frame_pointer_required_p): UPdate.
10657         * config/crx/crx.c (crx_compute_frame): UPdate.
10658         (crx_initial_elimination_offset): UPdate.
10659         * config/xtensa/xtensa.c (compute_frame_size): Update
10660         (xtensa_builtin_saveregs): Update.
10661         (xtensa_va_start): Update.
10662         (order_regs_for_local_alloc): Update.
10663         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
10664         (xstormy16_expand_builtin_va_start): Update.
10665         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
10666         * config/m68hc11/m68hc11.md (return expanders): Update.
10667         * config/m68hc11/m68hc11.c (expand_prologue): Update.
10668         (expand_epilogue): Update.
10669         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
10670         (cris_simple_epilogue): Update.
10671         (cris_expand_prologue): Update.
10672         (cris_expand_epilogue): Update.
10673         * config/iq2000/iq2000.c (iq2000_va_start): Update.
10674         (compute_frame_size): Update.
10675         * config/mt/mt.c (mt_compute_frame_size): Update.
10676         * config/mn10300/mn10300.c (expand_prologue): Update.
10677         (expand_epilogue): Update.
10678         (initial_offset): Update.
10679         (mn10300_builtin_saveregs):
10680         * config/mn10300/mn10300.md (return expander): Update.
10681         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10682         (ia64_initial_elimination_offset): Update.
10683         (ia64_initial_elimination_offset): Update.
10684         (ia64_expand_prologue): Update.
10685         * config/m68k/m68k.md (return expander): Update.
10686         * config/rs6000/rs6000.c (rs6000_va_start): Update.
10687         (rs6000_stack_info): Update.
10688         * config/mcore/mcore.c (layout_mcore_frame): Update.
10689         (mcore_expand_prolog): Update.
10690         * config/arc/arc.c (arc_compute_frame_size): Update.
10691         * config/score/score3.c (score3_compute_frame_size): Update.
10692         * config/score/score7.c (score7_compute_frame_size): Update.
10693         * config/arm/arm.c (use_return_insn): Update.
10694         (thumb_find_work_register): Update.
10695         (arm_compute_save_reg_mask): Update.
10696         (arm_output_function_prologue): Update.
10697         (arm_output_epilogue): Update.
10698         (arm_size_return_regs): Update.
10699         (arm_get_frame_offsets): Update.
10700         (arm_expand_prologue): Update.
10701         (thumb_exit): Update.
10702         (thumb_unexpanded_epilogue): Update.
10703         (thumb1_output_function_prologue): Update.
10704         * config/pa/pa.md (return expander): Update.
10705         * config/pa/pa.c (compute_frame_size): Update.
10706         (hppa_builtin_saveregs): Update.
10707         * config/mips/mips.c (mips_va_start): Update.
10708         (mips16_build_function_stub): Update.
10709         (mips_compute_frame_info): Update.
10710         (mips_restore_gp): Update.
10711         (mips_output_function_prologue): Update.
10712         (mips_expand_prologue): Update.
10713         * config/v850/v850.c (compute_frame_size): Update.
10714         (expand_prologue): * config/mmix/mmix.c (along): update.
10715         (mmix_initial_elimination_offset): update.
10716         (mmix_reorg): update.
10717         (mmix_use_simple_return): update.
10718         (mmix_expand_prologue): update.
10719         (mmix_expand_epilogue): Update.
10720         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
10721         (emit_link_insn): Update.
10722
10723 2008-04-08  Anatoly Sokolov <aesok@post.ru>
10724
10725         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
10726         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
10727         instructions.
10728         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
10729         atmega103 device.
10730
10731 2008-04-07  Jan Hubicka  <jh@suse.cz>
10732
10733         * function.h (rtl): Rename to x_rtl.
10734         (crtl): New define.
10735         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10736         frame_offset, stack_check_probe_note, arg_pointer_save_area,
10737         used_temp_slots avail_temp_slots, temp_slot_level,
10738         nonlocal_goto_handler_labels): Update accesstors.
10739         (rtl): New global variable.
10740         (struct function): Move some fileds to rtl_data.
10741         (get_arg_pointer_save_area): Update prototype.
10742         * builtins.c (expand_builtin_setjmp_receiver): Update call of
10743         get_arg_pointer_save_area.
10744         * expr.c (init_expr): Update
10745         * function.c (get_frame_size): Update
10746         (assign_stack_local): Update
10747         (expand_function_end): Update.
10748         (get_art_pointer_save_area): Update
10749         * function.h
10750         * emit-rtl.c (rtl): Declare.
10751         (regno_reg_rtx): Declare.
10752         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10753         Update.
10754         (gen_reg_rtx): Update.
10755         * varasm.c (n_deferred_constatns): Update accestor.
10756         (init_varasm_status): Do not allocate varasm_status.
10757         (force_const_mem, get_pool_size, output_constant_pool): Update.
10758         * stmt.c (force_label_rtx): Do not use x_ prefixes.
10759         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10760         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
10761         * sparc/sparc.h (INIT_EXPANDERS): Update.
10762         * ia64/ia64.h (INIT_EXPANDERS): Update.
10763
10764 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
10765
10766         * reload.c (push_secondary_reload): Add missing break to for loop.
10767
10768 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10769
10770         PR middle-end/PR28690
10771         * rtlanal.c: Update copyright years.
10772         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
10773         as REG_POINTER and MEM_POINTER operands.
10774         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
10775         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
10776         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
10777         * gcse.c: Update copyright years.
10778         (pre_delete): Call gen_reg_rtx_and_attrs.
10779         (hoist_code): Likewise.
10780         (build_store_vectors): Likewise.
10781         (delete_store): Likewise.
10782         * loop-invariant.c (move_invariant_reg): Likewise.
10783         Update copyright years.
10784
10785 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
10786
10787         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
10788         control string instead of quoted.
10789
10790 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
10791
10792         * doc/rtl.texi: Rewrite of subreg section.
10793
10794 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
10795
10796         PR/35842
10797         * config/i386/i386.c (legitimize_pic_address): Add treating
10798         of dllimport SYM_REF's.
10799         (legitimize_dllimport_symbol): Add prototype.
10800
10801 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10802
10803         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
10804         reference in constructor with non self-referential type.
10805
10806 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10807
10808         Removal of Return with Depressed Stack Pointer support
10809         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
10810         (ECF_SP_DEPRESSED): Likewise.
10811         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
10812         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
10813         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10814         (expand_call): Do not test ECF_SP_DEPRESSED.
10815         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10816         * function.c (keep_stack_depressed): Delete.
10817         (handle_epilogue_set): Likewise.
10818         (update_epilogue_consts): Likewise.
10819         (emit_equiv_load): Likewise.
10820         (thread_prologue_and_epilogue_insns): Remove support for Return with
10821         Depressed Stack Pointer.
10822         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10823
10824 2008-04-06  Richard Guenther  <rguenther@suse.de>
10825
10826         PR tree-optimization/35400
10827         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
10828         information from SSA_NAMEs.
10829
10830 2008-04-06  Anatoly Sokolov <aesok@post.ru>
10831
10832         * config/avr/avr.h (avr_mega_p): Remove declaration.
10833         (AVR_MEGA): Remove macro.
10834         * config/avr/avr.c (avr_mega_p): Remove variable.
10835         (avr_override_options): Remove inicializion of avr_mega_p.
10836         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10837         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10838         (avr_jump_mode): (Ditto.).
10839         (avr_output_progmem_section_asm_op): (Ditto.).
10840         (avr_asm_init_sections): (Ditto.).
10841         (avr_asm_init_sections): (Ditto.).
10842         (avr_rtx_costs): (Ditto.).
10843         * config/avr/avr.md: (Ditto.).
10844         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
10845         '__AVR_MEGA__'.
10846
10847 2008-04-06  Richard Guenther  <rguenther@suse.de>
10848
10849         PR tree-optimization/35842
10850         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
10851         is_gimple_invariant_address.
10852
10853 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10854
10855         * gcc.c (default_compilers): Sync Fortran extensions list with
10856         that in fortran/lang-specs.h.
10857         * doc/invoke.texi: Likewise.
10858         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
10859         * dwarf2out.c (gen_compile_unit_die): Likewise.
10860
10861 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
10862
10863         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
10864
10865 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
10866
10867         PR target/12329
10868         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
10869         attribute is used for nested functions.
10870
10871 2008-04-05  Jan Hubicka  <jh@suse.cz>
10872
10873         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
10874
10875         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
10876         letter argument.
10877         (dump_files): Update.
10878         (enable_rtl_dump_file): Do not accept letter argument.
10879         * tree-pass.h (dump_file_info): Remove letter argument.
10880         * toplev.c (decode_d_option): Update -da handling.
10881         * toplev.h (enable_rtl_dump_file): Update prototype.
10882         * passes.c (register_one_dump_file): Do not accept IPA argument; work
10883         it out based on pass type.
10884         (register_dump_files_1): Likewise.
10885         (init_optimization_passes): Update register_one_dump_file calls.
10886         (execute_one_pass): Sanity check that IPA passes are called at IPA
10887         level and RTL passes at RTL level.
10888         (execute_pass_list): IPA pass can not be after or subpass of
10889         GIMPLE/RTL pass.
10890         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
10891         disallov RTL subpasses of IPA subpasses.
10892
10893 2008-04-05  Ben Elliston  <bje@au.ibm.com>
10894
10895         * tree-cfg.c (need_fake_edge_p): Return false for calls to
10896         builtins that return exactly once and do not throw. Cache call to
10897         call_expr_flags.
10898
10899 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
10900
10901         PR rtl-optimization/34916
10902         PR middle-end/35519
10903         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
10904         between instruction pairs.
10905
10906 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
10907
10908         * doc/invoke.texi: Document -mbitops for SH.
10909         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
10910         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
10911         * config/sh/sh.c (print_operand): Add %t operand code.
10912         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
10913         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
10914         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
10915         (extendqihi2): Likewise.
10916         (movqi_i): Likewise.
10917         (insv): Use bset, bclr and bst instructions for SH2A if possible.
10918         (extv): Use bld instruction for SH2A if possible.
10919         (extzv): Likewise.
10920         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
10921         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
10922         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
10923         (bset.b, bclr.b): Define peepholes.
10924         * config/sh/sh.opt (mbitops): New option.
10925
10926 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
10927
10928         PR target/35620
10929         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
10930         and view convert expression.
10931
10932 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
10933
10934         PR target/35364
10935         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10936
10937 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
10938
10939         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
10940
10941         * config/i386/cpuid.h (bit_AES): New.
10942         (bit_PCLMUL): Likewise.
10943
10944         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
10945         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
10946         SSE2 if AES or PCLMUL is enabled.
10947         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
10948         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10949         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
10950         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
10951         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
10952         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
10953         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10954         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
10955         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
10956         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
10957         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
10958         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
10959         __builtin_ia32_aeskeygenassist128 and
10960         __builtin_ia32_pclmulqdq128.
10961         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
10962         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
10963         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
10964
10965         * config/i386/i386.h (TARGET_AES): New.
10966         (TARGET_PCLMUL): Likewise.
10967         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
10968
10969         * config/i386/i386.md (UNSPEC_AESENC): New.
10970         (UNSPEC_AESENCLAST): Likewise.
10971         (UNSPEC_AESDEC): Likewise.
10972         (UNSPEC_AESDECLAST): Likewise.
10973         (UNSPEC_AESIMC): Likewise.
10974         (UNSPEC_AESKEYGENASSIST): Likewise.
10975         (UNSPEC_PCLMUL): Likewise.
10976
10977         * config/i386/i386.opt (maes): New.
10978         (mpclmul): Likewise.
10979
10980         * config/i386/sse.md (aesenc): New pattern.
10981         (aesenclast): Likewise.
10982         (aesdec): Likewise.
10983         (aesdeclast): Likewise.
10984         (aesimc): Likewise.
10985         (aeskeygenassist): Likewise.
10986         (pclmulqdq): Likewise.
10987
10988         * config/i386/wmmintrin.h: New.
10989
10990         * doc/extend.texi: Document AES and PCLMUL built-in function.
10991
10992         * doc/invoke.texi: Document -maes and -mpclmul.
10993
10994 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
10995
10996         * function.c (free_after_parsing): Replace with
10997         cxx_push_function_context from C++ front-end.
10998         (allocate_struct_function): Don't call langhook.
10999         * langhooks.h (struct lang_hooks_for_functions): Delete.
11000         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
11001         member "function".
11002         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
11003         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
11004         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
11005         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
11006         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
11007         remove LANG_HOOKS_FUNCTION_INITIALIZER.
11008         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
11009
11010         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
11011         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
11012
11013 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
11014
11015         PR c/35440
11016         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
11017         for all types.
11018
11019 2008-04-04  Richard Guenther  <rguenther@suse.de>
11020
11021         PR middle-end/35823
11022         * fold-const.c (optimize_minmax_comparison): Use the correct
11023         type for the constant in the simplified comparison.
11024
11025 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
11026
11027         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
11028         Pass L2 size as "--param l2-cache-size" to the compiler.
11029         (decode_l2_cache): New function to decode L2 cache parameters using
11030         0x8000006 extended cpuid function.
11031         (detect_caches_amd): Determine parameters of L2 cache using
11032         decode_l2_caches function.
11033         (decode_caches_intel): Decode L2 cache parameters.
11034         (detect_caches_intel): Determine L2 cache parameters using
11035         decode_caches_intel and decode_l2_caches functions.
11036
11037 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
11038
11039         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
11040         secondary input reload for subword loads from the constant pool.
11041
11042 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
11043
11044         PR target/35713
11045         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
11046           constants of the appropriate size for runtime calculations.
11047
11048         PR c/35712
11049         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
11050           decimal-float literal constant zero.
11051
11052 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
11053
11054         PR c/35738
11055         * c-parser.c (c_parser_omp_atomic): Call
11056         default_function_array_conversion on the RHS.
11057
11058         PR middle-end/35818
11059         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
11060         call is_variable_sized if decl has incomplete type.
11061
11062 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
11063
11064         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
11065
11066 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
11067
11068         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
11069         iterators.
11070         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
11071         (sgt<u>): Merge sgt and sgtu into new expander.
11072         (sgt, sgtu): Remove expanders.
11073         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
11074         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
11075         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
11076         *sgtu_<mode>_mips16 into new pattern.
11077         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
11078         (sge<u>): Merge sge and sgeu into new expander.
11079         (sge, sgeu): Remove expanders.
11080         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
11081         new pattern.
11082         (*sge_<mode>, second *sge_<mode>): Remove patterns.
11083         (slt<u>): Merge slt and sltu into new expander.
11084         (slt, sltu): Remove expanders.
11085         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
11086         (*slt_<mode>, *sltu_<mode>): Remove patterns.
11087         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
11088         *sltu_<mode>_mips16 into new pattern.
11089         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
11090         (sle<u>): Merge sle and sleu into new expander.
11091         (sle, sleu): Remove expanders.
11092         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
11093         (*sle_<mode>, *sleu_<mode>): Remove patterns.
11094         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
11095         *sleu_<mode>_mips16 into new pattern.
11096         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
11097
11098 2008-04-03  Jan Hubicka  <jh@suse.cz>
11099
11100         PR tree-optimization/35795
11101         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
11102         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11103         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11104         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11105         * score/score3.c (score3_output_mi_thunk): Likewise.
11106         * score/score7.c (score7_output_mi_thunk): Likewise.
11107         * mips/mips.c (mips_output_mi_thunk): Likewise.
11108
11109 2008-04-03  Richard Guenther  <rguenther@suse.de>
11110
11111         * tree-vrp.c (extract_range_from_unary_expr): Handle all
11112         conversions.  Simplify code.
11113
11114 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
11115
11116         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
11117
11118 2008-04-03  Tom Tromey  <tromey@redhat.com>
11119             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11120
11121         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11122         * config/bfin/t-bfin-linux (generated_files): Add
11123         linux-sysroot-suffix.h.
11124         * doc/install.texi (Prerequisites): Require make 3.80.
11125         * doc/sourcebuild.texi (Front End Directory): Document new
11126         variable.
11127         * Makefile.in (generated_files): New variable.
11128         (ALL_HOST_OBJS): New variable.
11129         ($(ALL_HOST_OBJS)): New target.
11130
11131 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
11132
11133         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
11134         (remap_block): Call id->transform_lang_insert_block instead
11135         of langhook.
11136         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
11137         Set id.transform_lang_insert_block to NULL.
11138         (clone_body): Move to cp/optimize.c
11139         * tree-inline.h (struct copy_body_data): Change
11140         transform_lang_insert_block to function pointer.
11141         (copy_generic_body, copy_decl_no_change): Export.
11142         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
11143         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
11144         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
11145
11146         * c-tree.h (insert_block): Kill.
11147         * c-decl.c (insert_block): Kill.
11148
11149 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
11150
11151         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11152         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11153         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
11154         argument.
11155         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
11156         argument, call {push,pop}_function_context from here.
11157         * c-parser.c: Use c_{push,pop}_function_context.
11158
11159         * function.c (push_function_context_to): Move meat ...
11160         (push_function_context): ... here.  Simplify.
11161         * function.c (pop_function_context_from): Move meat ...
11162         (pop_function_context): ... here.  Simplify.
11163         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
11164         leave_nested).
11165         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11166         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11167         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
11168         * tree.h (push_function_context_to, pop_function_context_from): Remove.
11169
11170 2008-04-03  Ben Elliston  <bje@au.ibm.com>
11171
11172         * expmed.c (extract_force_align_mem_bit_field): Remove.
11173
11174 2008-04-03  Richard Guenther  <rguenther@suse.de>
11175
11176         PR middle-end/35800
11177         * expr.h (try_casesi): Adjust prototype.
11178         * expr.c (try_casesi): Take fallback label as extra parameter.
11179         Use that for gen_casesi if default_label is NULL.
11180         * stmt.c (expand_case): Pass fallback label to try_casesi,
11181         make sure to fill gaps with a fallback label if default_label
11182         is not present.
11183
11184 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
11185
11186         PR target/35801
11187         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
11188
11189 2008-04-03  Ben Elliston  <bje@au.ibm.com>
11190
11191         * expmed.c (extract_split_bit_field): Remove if (0) code.
11192         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
11193         (do_ds_constraint): Likewise.
11194
11195 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
11196
11197         * doc/cppopts.texi (-dU): Document.
11198         * c-common.h (flag_dump_macros): Update comment.
11199         * c-opts.c (handle_OPT_d): Handle -dU.
11200         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
11201         dump_queued_macros, cb_used_define, cb_used_undef): New.
11202         (init_pp_output): Handle -dU.
11203         (cb_line_change): Call dump_queued_macros.
11204         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
11205
11206 2008-04-02  Anatoly Sokolov <aesok@post.ru>
11207
11208         * config/avr/predicates.md (io_address_operand): New predicate.
11209         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
11210         * config/avr/avr.c (avr_io_address_p): Remove function.
11211         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
11212         'avr_io_address_p' function.
11213         (out_movhi_r_mr): (Ditto.).
11214         (out_movqi_mr_r): (Ditto.).
11215         (out_movhi_mr_r): (Ditto.).
11216         (avr_address_cost): (Ditto.).
11217
11218 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
11219
11220         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
11221         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
11222         in 32bit mode when XMM registers are available to avoid store
11223         forwarding stalls.
11224         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
11225         corresponding post-reload splitters.
11226
11227 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
11228
11229         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
11230         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
11231         __builtin_ia32_roundss.
11232         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
11233         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
11234         __builtin_ia32_roundss.
11235         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
11236         IX86_BUILTIN_SHUFPD here.
11237
11238 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
11239
11240         * config/i386/i386.md (plogic): New.
11241         (plogicprefix): Likewise.
11242
11243         * config/i386/mmx.md (mmx_<code><mode>3): New.
11244         (mmx_and<mode>3): Removed.
11245         (mmx_ior<mode>3): Likewise.
11246         (mmx_xor<mode>3): Likewise.
11247
11248         * config/i386/sse.md (<code><mode>3): New.
11249         (*<code><mode>3): Likewise.
11250         (*<code><mode>3): Likewise.
11251         (<code><mode>3): Likewise.
11252         (*sse_<code><mode>3): Likewise.
11253         (*sse2_<code><mode>3): Likewise.
11254         (<code>tf3): Likewise.
11255         (*<code>tf3): Likewise.
11256         (and<mode>3): Likewise.
11257         (*and<mode>3): Likewise.
11258         (ior<mode>3): Removed.
11259         (*ior<mode>3): Likewise.
11260         (xor<mode>3): Likewise.
11261         (*xor<mode>3): Likewise.
11262         (*and<mode>3): Likewise.
11263         (*ior<mode>3): Likewise.
11264         (*xor<mode>3): Likewise.
11265         (and<mode>3): Likewise.
11266         (*sse_and<mode>3): Likewise.
11267         (*sse2_and<mode>3): Likewise.
11268         (andtf3): Likewise.
11269         (*andtf3): Likewise.
11270         (ior<mode>3): Likewise.
11271         (*sse_ior<mode>3): Likewise.
11272         (*sse2_ior<mode>3): Likewise.
11273         (iortf3): Likewise.
11274         (*iortf3): Likewise.
11275         (xor<mode>3): Likewise.
11276         (*sse_xor<mode>3): Likewise.
11277         (*sse2_xor<mode>3): Likewise.
11278         (xortf3): Likewise.
11279         (*xortf3): Likewise.
11280
11281 2008-04-02  Richard Guenther  <rguenther@suse.de>
11282
11283         PR tree-optimization/14495
11284         PR tree-optimization/34793
11285         * tree-vrp.c (struct switch_update): New structure.
11286         (to_remove_edges, to_update_switch_stmts): New VECs.
11287         (simplify_switch_using_ranges): New function.  Remove not taken
11288         case labels and edges.
11289         (simplify_stmt_using_ranges): Call it.
11290         (identify_jump_threads): Mark edges we have queued for removal
11291         so we don't thread them.
11292         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
11293         case label vector.
11294         * tree-cfg.c (group_case_labels): Deal with missing default label.
11295         (tree_verify_flow_info): Allow missing default label.
11296         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
11297         (emit_case_nodes): Likewise.
11298         (expand_case): Do not rely on the default label to be present.
11299         * expr.c (try_casesi): Deal with NULL default_label.
11300         (do_tablejump): Likewise.
11301
11302 2008-04-02  Richard Guenther  <rguenther@suse.de>
11303
11304         PR tree-optimization/14495
11305         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
11306         SWITCH_EXPR here ...
11307         (vrp_visit_switch_stmt): ... but here (new function).
11308         (find_case_label_index): New helper function.
11309         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
11310
11311 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11312
11313         * fwprop.c: Fix ISO-C99ism.
11314
11315 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11316
11317         PR bootstrap/35752
11318         * Makefile.in (objdir): Set it here.
11319         * configure.ac: Not here.  Find dynamic linker characteristics.
11320         * exec-tool.in: Use them.
11321         * aclocal.m4: Regenerate.
11322         * configure: Regenerate.
11323
11324 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11325
11326         * expr.c (expand_var): Delete it.
11327         * expr.h (expand_var): Delete prototype.
11328         * function.c (expand_function_start): Use expand_decl instead.
11329         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
11330         langhook.
11331
11332 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
11333
11334         PR rtl-optimization/35542
11335         * fwprop.c (forward_propagate_and_simplify): Replace
11336         loc_reg_mentioned_in_p with reg_mentioned_p.
11337
11338 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11339
11340         PR rtl-optimization/35281
11341         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
11342         (propagate_rtx_1): Handle PR_HANDLE_MEM.
11343         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
11344         (varying_mem_p): Move above propagate_rtx.
11345         (all_uses_available_at): Do not check MEMs.
11346
11347 2008-04-02  Rafael Espindola  <espindola@google.com>
11348
11349         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
11350         (register_edge_assert_for_2): Split the cond argument.
11351         (register_edge_assert_for_1): Adjust for the change in
11352         register_edge_assert_for_2.
11353         (register_edge_assert_for): Split the cond argument.
11354         (find_switch_asserts): Adjust for the change in
11355         register_edge_assert_for.
11356
11357 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
11358
11359         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
11360         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
11361         offsets for 64-bit mingw.
11362         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
11363         abi for x86_64-pc-mingw.
11364
11365 2008-04-02  Richard Guenther  <rguenther@suse.de>
11366
11367         * tree-vrp.c (extract_range_from_assert): Make sure to not
11368         produce range min/max with TREE_OVERFOW set.
11369         If merging a anti-range and a range keep the anti-range if
11370         the range covers all values of the type.
11371         (register_edge_assert_for_2): Only allow sign-changing
11372         conversions in detecting canonical range checks.  Also
11373         register an assert for the unsigned name if useful.
11374
11375         PR tree-optimization/35787
11376         * tree-vrp.c (vrp_val_max): New function.
11377         (vrp_val_min): Likewise.
11378         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
11379         (vrp_val_is_min): Likewise.
11380         (supports_overflow_infinity): Use vrp_val_{min,max}.
11381         (negative_overflow_infinity): Likewise.
11382         (positive_overflow_infinity): Likewise.
11383         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
11384         (is_positive_overflow_infinity): Likewise.
11385         (is_overflow_infinity): Likewise.
11386         (avoid_overflow_infinity): Use vrp_val_{min,max} and
11387         vrp_val_is_{min,max}.
11388         (set_and_canonicalize_value_range): Canonicalize anti-ranges
11389         to ranges if possible.  Avoid empty ranges.
11390
11391 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11392
11393         PR middle-end/35705
11394         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
11395         the expression is a function address.
11396
11397 2008-04-01  George Helffrich  <george@gcc.gnu.org>
11398
11399         PR fortran/35154, fortran/23057
11400         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
11401         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
11402         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
11403         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
11404         in common.
11405         (dbxout_syms): Check for COMMON-based symbol and wrap in
11406         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
11407         in bracket for efficiency.
11408
11409         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
11410         using DW_TAG_common_block + member offset.
11411         (add_pubname_string): New function.
11412         (dw_expand_expr): New function to find block name and offset for
11413         COMMON var.
11414         (common_check): New function to check whether symbol in Fortran COMMON.
11415         (gen_variable_die): If COMMON, use DW_TAG_common_block.
11416
11417 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
11418
11419         PR c/35436
11420         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
11421
11422 2008-04-02  Ben Elliston  <bje@au.ibm.com>
11423
11424         * config/v850/v850.md (casesi): Remove if (0) code.
11425         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11426         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11427
11428 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
11429
11430         * config/i386/i386.md (rex64suffix): New mode attribute.
11431         (floathi<mode>2): Disable expander for SSE math.
11432         (*floathi<mode>2_1): New insn insn_and_split pattern.
11433         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
11434         corresponding post-reload splitters.
11435         (*floathi<mode>2_i387): New macroized insn pattern.
11436         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
11437         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
11438         insn_and_split pattern.
11439         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
11440         New macroized instruction patterns and corresponding post-reload
11441         splitters.
11442         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
11443         and corresponding post-reload splitters.
11444         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
11445         New macroized instruction patterns.
11446         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
11447         macroized instruction patterns and corresponding post-reload splitters.
11448         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
11449         corresponding post-reload splitters.
11450         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
11451         New macroized instruction patterns.
11452         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
11453         corresponding post-reload splitters.
11454         (*floatsi<mode>2_i387): New macroized instruction patterns.
11455
11456 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
11457
11458         * config/i386/i386.md (smaxmin): New.
11459         (umaxmin): Likewise.
11460         (maxminiprefix): Likewise.
11461         (maxminfprefix): Likewise.
11462         (<code><mode>3): Likewise.
11463         (smin<mode>3): Removed.
11464         (smax<mode>3): Likewise.
11465
11466         * config/i386/mmx.md (mmx_<code>v2sf3): New.
11467         (mmx_<code>v4hi3): Likewise.
11468         (mmx_<code>v8qi3): Likewise.
11469         (mmx_smaxv2sf3): Removed.
11470         (mmx_sminv2sf3): Likewise.
11471         (mmx_umaxv8qi3): Likewise.
11472         (mmx_smaxv4hi3): Likewise.
11473         (mmx_uminv8qi3): Likewise.
11474         (mmx_sminv4hi3): Likewise.
11475
11476         * config/i386/sse.md (<addsub><mode>3): New.
11477         (*<addsub><mode>3): Likewise.
11478         (<sse>_vm<addsub><mode>3): Likewise.
11479         (<maxmin><mode>3): Likewise.
11480         (*<maxmin><mode>3_finite): Likewise.
11481         (*<maxmin><mode>3): Likewise.
11482         (<sse>_vm<maxmin><mode>3): Likewise.
11483         (sse3_h<addsub>v4sf3): Likewise.
11484         (sse3_h<addsub>v2df3): Likewise.
11485         (<maxmin>v16qi3): Likewise.
11486         (*<maxmin>v16qi3): Likewise.
11487         (<maxmin>v8hi3): Likewise.
11488         (*<maxmin>v8hi3): Likewise.
11489         (*sse4_1_<maxmin><mode>3): Likewise.
11490         (*sse4_1_<maxmin><mode>3): Likewise.
11491         (add<mode>3): Removed.
11492         (*add<mode>3): Likewise.
11493         (<sse>_vmadd<mode>3): Likewise.
11494         (sub<mode>3): Likewise.
11495         (*sub<mode>3): Likewise.
11496         (<sse>_vmsub<mode>3): Likewise.
11497         (smin<mode>3): Likewise.
11498         (*smin<mode>3_finite): Likewise.
11499         (*smin<mode>3): Likewise.
11500         (<sse>_vmsmin<mode>3): Likewise.
11501         (smax<mode>3): Likewise.
11502         (*smax<mode>3_finite): Likewise.
11503         (*smax<mode>3): Likewise.
11504         (<sse>_vmsmax<mode>3): Likewise.
11505         (sse3_haddv4sf3): Likewise.
11506         (sse3_haddv2df3): Likewise.
11507         (sse3_hsubv4sf3): Likewise.
11508         (sse3_hsubv2df3): Likewise.
11509         (umaxv16qi3): Likewise.
11510         (*umaxv16qi3): Likewise.
11511         (smaxv8hi3): Likewise.
11512         (*smaxv8hi3): Likewise.
11513         (*sse4_1_smax<mode>3): Likewise.
11514         (*sse4_1_umax<mode>3): Likewise.
11515         (uminv16qi3): Likewise.
11516         (*uminv16qi3): Likewise.
11517         (sminv8hi3): Likewise.
11518         (*sminv8hi3): Likewise.
11519         (*sse4_1_smin<mode>3): Likewise.
11520         (*sse4_1_umin<mode>3): Likewise.
11521
11522 2008-04-01  Rafael Espindola  <espindola@google.com>
11523
11524         * tree-cfg.c (verify_expr): remove in_phi.
11525         (verify_stmt): Don't call walk_tree with verify_expr. Use
11526         is_gimple_min_invariant instead of is_gimple_val.
11527
11528 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
11529
11530         * doc/include/gpl_v3.texi: Update for manpage generation.
11531         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
11532         gpl.texi.
11533         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
11534         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
11535         gpl_v3.texi instead of gpl.texi.
11536         (gpl.pod): New.
11537
11538 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
11539
11540         PR pch/13675
11541         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
11542
11543 2008-04-01  Rafael Espindola  <espindola@google.com>
11544
11545         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
11546         (extract_code_and_val_from_cond): Use
11547         extract_code_and_val_from_cond_with_ops.
11548
11549 2008-04-01  Jan Hubicka  <jh@suse.cz>
11550
11551         * function.c (free_after_compilation): Free epilogue_delay_list.
11552         (prepare_function_start): Assert that previous compilation was freed.
11553
11554 2008-04-01  Jan Hubicka  <jh@suse.cz>
11555             Jim Wilson  <wilson@tuliptree.org>
11556             Andreas Tobler <andreast@gcc.gnu.org>
11557
11558         PR middle-end/35781
11559         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
11560         rtl.emit instead cfun->emit.
11561         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
11562         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
11563
11564 2008-04-01  Ben Elliston  <bje@au.ibm.com>
11565
11566         * doc/c-tree.texi (Function Basics): Fix grammatical error.
11567
11568 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
11569
11570         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
11571         New options
11572         (fprofile-use): Add var flag_profile_use
11573         * coverage.c (coverage_begin_output): Do not open a gcno file for
11574         output only if -ftest-coverage is set.
11575         Do not add getpwd() to gcda file path.
11576         (build_gcov_info): Check the new flag
11577         flag_profile_datafile_relative_path.
11578         (coverage_init): Use profile_data_prefix.
11579         Read profile counter only if flag_profile_use is set.
11580         * opts.c (common_handle_option): New option fprofile-use=,
11581         fprofile-dir=, fprofile-generate=.
11582         * toplev.c (profile_data_prefix): New variable definition.
11583         * toplev.h (profile_data_prefix): New declaration.
11584         * doc/invoke.tex (Option Summary, Optimization Options):
11585         Add new options.
11586
11587 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
11588
11589         * varasm.c (output_constant_pool_1): In LABEL_REF check,
11590         use tmp consistently.
11591
11592         PR target/35695
11593         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
11594         * config/ia64/ia64.c (rtx_needs_barrier): Handle
11595         UNSPEC_FR_RECIP_APPROX_RES.
11596         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11597
11598 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
11599
11600         PR c/35750
11601         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11602
11603 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11604
11605         PR middle-end/30186
11606         * fold-const.c (fold_indirect_ref_1): Support accessing non first
11607         element of the vector via a pointer.
11608
11609 2008-03-31  Ian Lance Taylor  <iant@google.com>
11610
11611         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11612
11613 2008-03-31  Jan Hubicka  <jh@suse.cz>
11614
11615         * builtins.c (expand_builtin_setjmp_receiver): Update call of
11616         get_arg_pointer_save_area.
11617         * expr.c (init_expr): Just clear out rtl.expr.
11618         * function.c (free_after_compilation): Clear out whole RTL structure.
11619         (get_func_frame_size): Merge into ...
11620         (get_frame_size): ... this one.
11621         (assign_stack_local_1): Merge into ...
11622         (assign_stack_local): ... this one.
11623         (expand_function_end): Update call of get_arg_pointer_save_area.
11624         (get_art_pointer_save_area): Remove cfun argument.
11625         * function.h (emit_status): regno_pointer_align does not need length
11626         attribute. Move x_regno_reg_rtx to ...
11627         (regno_reg_rtx): ... new global array.
11628         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
11629         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
11630         apply_args_value, forced_labels, stack_pointer_delta):
11631         Update accestors.
11632         (struct varasm_status): Move here from varasm.c
11633         (struct rtl_data): New. Move here some fields from struct function.
11634         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11635         frame_offset, stack_check_probe_note, arg_pointer_save_area,
11636         used_temp_slots avail_temp_slots, temp_slot_level,
11637         nonlocal_goto_handler_labels): Update accesstors.
11638         (rtl): New global variable.
11639         (struct function): Move some fileds to rtl_data.
11640         (get_arg_pointer_save_area): Update prototype.
11641         * emit-rtl.c (rtl): Declare.
11642         (regno_reg_rtx): Declare.
11643         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11644         Update.
11645         (gen_reg_rtx): Update.
11646         (init_virtual_regs): Do not tate emit_status argument.
11647         (init_emit): Do not allocate emit.
11648         * varasm.c (varasm_statuc): Move to function.h.
11649         (n_deferred_constatns): Update accestor.
11650         (init_varasm_status): Do not allocate varasm_status.
11651         (force_const_mem, get_pool_size, output_constant_pool): Update.
11652         * stmt.c (force_label_rtx): Do not use x_ prefixes.
11653         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11654
11655 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
11656
11657         PR rtl-optimization/35729
11658         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
11659         references.
11660
11661 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
11662
11663         PR target/32000
11664         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
11665         load/store if memory is unaligned.
11666         (*movti_rex64): Likewise.
11667
11668         * config/i386/predicates.md (misaligned_operand): New.
11669
11670 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
11671
11672         PR tree-opt/35431
11673         * tree-ssa-phiopt.c (conditional_replacement): Return early for
11674         complex types.
11675
11676 2008-03-31  Jan Beulich  <jbeulich@novell.com>
11677
11678         * config/ia64/constraints.md: Add 'j' constraint.
11679         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
11680         (movdi_internal): Likewise.
11681
11682 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
11683
11684         PR c/35748
11685         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
11686
11687 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11688
11689         PR target/35757
11690         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
11691         proper error message for the third argument on blendpd and
11692         blendps.
11693
11694         * config/i386/sse.md (blendbits): New.
11695         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
11696
11697 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
11698
11699         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
11700
11701 2008-03-30  Richard Guenther  <rguenther@suse.de>
11702
11703         PR middle-end/31023
11704         * fold-const.c (fold_sign_changed_comparison): Do leave
11705         conversions to base-types alone.
11706
11707 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11708
11709         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
11710         the link register if one altivec register is be saved.
11711
11712 2008-03-30  Ben Elliston  <bje@au.ibm.com>
11713
11714         * final.c (final_scan_insn): Remove if (0) code.
11715
11716 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
11717
11718         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
11719
11720 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
11721
11722         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
11723         of V4SFmode to ix86_binary_operator_ok.
11724
11725 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
11726
11727         * config/i386/i386.c (override_options): Initialize
11728         ix86_veclib_handler to ix86_veclibabi_svml when
11729         -mveclibabi=svml is used.
11730         (ix86_veclibabi_svml): New function for SVML ABI style
11731         vectorization support.
11732         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
11733
11734 2008-03-28  Rafael Espindola  <espindola@google.com>
11735
11736         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
11737         (tree_binary_nonnegative_warnv_p): Make it public.
11738         (tree_single_nonnegative_warnv_p): Make it public.
11739         (tree_invalid_nonnegative_warnv_p): Make it public.
11740         (tree_unary_nonzero_warnv_p): Make it public.
11741         (tree_binary_nonzero_warnv_p): Make it public
11742         (tree_single_nonzero_warnv_p): Make it public.
11743         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
11744         (extract_range_from_binary_expr): Split the expr argument.
11745         (extract_range_from_unary_expr): Split the expr argument.
11746         (extract_range_from_comparison): Split the expr argument.
11747         (extract_range_from_expr): Use the new aux functions.
11748         (vrp_evaluate_conditional_warnv): Use
11749         vrp_evaluate_conditional_warnv_with_ops.
11750         * tree.h (tree_unary_nonzero_warnv_p): Declare.
11751         (tree_binary_nonzero_warnv_p): Declare.
11752         (tree_single_nonzero_warnv_p): Declare.
11753         (tree_expr_nonzero_warnv_p): Declare.
11754         (tree_unary_nonnegative_warnv_p): Declare.
11755         (tree_binary_nonnegative_warnv_p): Declare.
11756         (tree_single_nonnegative_warnv_p): Declare.
11757         (tree_invalid_nonnegative_warnv_p): Declare.
11758
11759 2008-03-28  Richard Guenther  <rguenther@suse.de>
11760
11761         PR tree-optimization/30317
11762         PR tree-optimization/30911
11763         PR tree-optimization/34793
11764         * tree-vrp.c (set_and_canonicalize_value_range): New function.
11765         (struct assert_locus_d): New member EXPR.
11766         (register_new_assert_for): Add EXPR parameter to support
11767         ASSERT_EXPR <name, expr OP limit>.
11768         (register_edge_assert_for_1): Adjust callers.
11769         (find_assert_locations): Likewise.
11770         (process_assert_insertions_for): Build condition from expression.
11771         (extract_range_from_assert): Handle ASSERT_EXPRs
11772         of the form ASSERT_EXPR <name, expr OP limit>.
11773         (register_edge_assert_for_2): New helper registering
11774         asserts for comparisons.  Recognize range tests of the form
11775         (unsigned)i - CST1 OP CST2.
11776         (register_edge_assert_for_1): Use it.
11777         (register_edge_assert_for): Likewise.
11778         (needs_overflow_infinity): Integer sub-types
11779         do not need overflow infinities.
11780         (vrp_val_is_max): The extreme values of integer sub-types
11781         are those of the base type.
11782         (vrp_val_is_min): Likewise.
11783         * tree.def (ASSERT_EXPR): Document extra allowed conditional
11784         expressions.
11785
11786 2008-03-28  Nick Clifton  <nickc@redhat.com>
11787
11788         PR target/31110
11789         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
11790         Return GENERAL_REGS for stack adjustment reloads.
11791
11792 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11793
11794         PR target/31334
11795         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
11796         const_vector when all the vectors are constant.
11797
11798 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
11799
11800         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
11801         comparisons.
11802         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
11803         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
11804         (scc_sf): New.
11805         (s<code>_sf): Use new scc_sf attribute for opcode names.
11806
11807 2008-03-27  Tom Tromey  <tromey@redhat.com>
11808
11809         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
11810         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
11811         config/spu/t-spu-elf, config/i386/t-interix,
11812         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
11813         config/i386/x-darwin, config/i386/x-mingw32,
11814         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
11815         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
11816         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
11817         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
11818         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
11819         config/rs6000/x-darwin, config/rs6000/t-rs6000,
11820         config/score/t-score-elf, config/arm/t-strongarm-pe,
11821         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
11822         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
11823         Revert automatic dependency patch.
11824
11825 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11826
11827         PR target/35657
11828         * config/i386/i386.c (ix86_function_arg_boundary): Align
11829         decimal floating point to its natural boundary.
11830
11831 2008-03-27  Richard Guenther  <rguenther@suse.de>
11832
11833         PR middle-end/35716
11834         * fold-const.c (fold_comparison): Restrict distinct decl
11835         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
11836         solely rely on operand_equal_p.
11837
11838 2008-03-27  Richard Guenther  <rguenther@suse.de>
11839
11840         PR c/32511
11841         * c-common.c (handle_weak_attribute): Reject combination of
11842         weak and inline.
11843
11844 2008-03-27  Richard Guenther  <rguenther@suse.de>
11845
11846         PR tree-optimization/32810
11847         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
11848         conversions from DECL_INITIAL.
11849         (fold_const_aggregate_ref): Likewise from constructor elements.
11850
11851 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
11852
11853         * tree-affine.h (aff_combination_expand): Declare.
11854         (get_inner_reference_aff): Likewise.
11855         * tree-affine.c (aff_combination_expand): Split out from
11856         tree_to_aff_combination_expand.
11857         (get_inner_reference_aff): New function.
11858         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
11859         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
11860         (struct lim_aux_data): sm_done field removed.
11861         (mem_ref_loc_p, mem_ref_locs_p): New types.
11862         (struct mem_ref): Added id, stored, accesses_in_loop,
11863         indep_loop, dep_loop, indep_ref, dep_ref fields.
11864         Removed is_stored, locs and next fields.
11865         (memory_accesses): New variable.
11866         (movement_possibility): Do not allow moving statements
11867         that store to memory.
11868         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
11869         New functions.
11870         (determine_max_movement): For statements with memory references,
11871         find the outermost loop in that the reference is independent.
11872         (move_computations_stmt): Mark the virtual operands for renaming.
11873         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
11874         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
11875         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
11876         add_vop_ref_mapping, create_vop_ref_mapping_loop,
11877         create_vop_ref_mapping, analyze_memory_references,
11878         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
11879         get_all_locs_in_loop, ref_always_accessed_p,
11880         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
11881         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
11882         store_motion_loop, store_motion): New functions.
11883         (struct vop_to_refs_elt): New type.
11884         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
11885         memref_hash, memref_eq, hoist_memory_references): Rewritten.
11886         (schedule_sm): Replaced by...
11887         (execute_sm): ... this.
11888         (determine_lsm_ref, hoist_memory_references,
11889         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
11890         find_more_ref_vops, free_mem_ref, free_mem_refs,
11891         determine_lsm_loop, determine_lsm): Removed.
11892         (tree_ssa_lim_finalize): Free data structures used by store motion.
11893         (tree_ssa_lim): Call analyze_memory_references.  Use
11894         store_motion instead of determine_lsm.
11895
11896 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
11897
11898         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
11899         rename tmake_file to m68hc11/t-m68hc11.
11900         (mcore): Set inhibit_libc to true.
11901         * config.host (alpha*-dec-*vms*): Set extra_programs.
11902         (interix3*): Don't use host_xmake_file.
11903         * configure.ac: Let config.gcc override inhibit_libc.
11904         * configure: Regenerate.
11905
11906         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
11907         * config/t-openbsd-thread: Remove commented out lines.
11908
11909         * config/x-interix: Remove.
11910
11911         * config/m68hc11/t-m68hc11-gas: Rename to...
11912         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
11913
11914         * config/mcore/t-mcore: Remove T_CFLAGS.
11915         * config/mcore/t-mcore-pe: Likewise.
11916
11917 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
11918
11919         * configure.ac: Replace custom __GNU_SOURCE test with
11920         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
11921         * aclocal.m4: Regenerate.
11922         * configure: Regenerate.
11923         * config.in: Regenerate.
11924
11925 2008-03-27  Richard Guenther  <rguenther@suse.de>
11926
11927         * fold-const.c (target.h): Include.
11928         (fold_comparison): Fold comparison of addresses of decls
11929         that bind locally or of constants.  Consolidate address folding code.
11930         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
11931         results from fold_binary_to_constant.
11932         (compare_values_warnv): Likewise.
11933
11934 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
11935
11936         PR middle-end/35429
11937         * fold-const.c (fold_truthop): Check for integeral types when folding
11938         a == 0 && b == 0 and a != 0 || b != 0 .
11939
11940 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
11941
11942         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
11943
11944 2008-03-26  Andreas Schwab  <schwab@suse.de>
11945
11946         * doc/invoke.texi: Fix use of @item vs. @itemx.
11947
11948 2008-03-26  Tom Tromey  <tromey@redhat.com>
11949
11950         * Makefile.in (build/gensupport.o, build/print-rtl.o,
11951         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
11952         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
11953         build/gencodes.o, build/genconditions.o, build/genconfig.o,
11954         build/genconstants.o, build/genemit.o, build/genextract.o,
11955         build/genflags.o, build/genmddeps.o, build/genopinit.o,
11956         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
11957         options.h.
11958
11959 2008-03-26  Richard Guenther  <rguenther@suse.de>
11960
11961         Revert
11962         2008-03-26  Richard Guenther  <rguenther@suse.de>
11963
11964         * fold-const.c (target.h): Include.
11965         (fold_comparison): Fold comparison of addresses of two decls
11966         that bind locally.  Consolidate address folding code.
11967
11968 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11969
11970         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
11971         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
11972         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
11973         dconstsqrt2, dconstthird, dconste and/or dconst10.
11974         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
11975         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
11976         dconstsqrt2, dconste): Delete.
11977         (init_emit_once): Likewise.  Simplify initializing dconstm1.
11978         Constify variable.
11979         * real.c (get_real_const): New.
11980         * real.h (dconst3, dconst10, dconstm2, dconstthird,
11981         dconstsqrt2, dconste): Delete.
11982         (real_value_const, get_real_const): New.
11983
11984 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
11985
11986         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
11987
11988         * config/i386/i386.c (ix86_function_arg_boundary): Check
11989         BIGGEST_ALIGNMENT instead of 128.
11990         (setup_incoming_varargs_64): Likewise.
11991
11992 2008-03-26  Tom Tromey  <tromey@redhat.com>
11993
11994         * Makefile.in (DEPFILES): Add missing '/'.
11995
11996 2008-03-26  Richard Guenther  <rguenther@suse.de>
11997
11998         * fold-const.c (target.h): Include.
11999         (fold_comparison): Fold comparison of addresses of two decls
12000         that bind locally.  Consolidate address folding code.
12001
12002 2008-03-26  Nick Clifton  <nickc@redhat.com>
12003
12004         PR target/31232
12005         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
12006         not allow INT+INT as a legitimate addressing mode.
12007
12008 2008-03-26  Richard Guenther  <rguenther@suse.de>
12009
12010         * tree-flow.h (widen_bitfield): Remove declaration.
12011         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
12012         (widen_bitfield): Remove function.
12013         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
12014         code.
12015
12016 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12017
12018         PR target/31558
12019         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
12020         error_mark_node's.
12021
12022 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
12023
12024         PR rtl-optimization/35232
12025         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
12026         (forget_old_reloads_1, forget_marked_reloads): Don't clear
12027         reg_reloaded_call_part_clobbered here.
12028         (reload_regs_reach_end_p): New function.
12029         (reload_reg_rtx_for_input): New variable.
12030         (reload_reg_rtx_for_output): Likewise.
12031         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
12032         when reassigning a pseudo register.  Load reloadreg from
12033         reload_reg_rtx_for_input, moving the mode and register
12034         calculation to...
12035         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
12036         instead of the original when deciding whether an input reload
12037         would be a no-op or whether an output reload can be deleted.
12038         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
12039         when setting up new_spill_reg_store.  Load it from
12040         reload_reg_rtx_for_output, moving the mode and register
12041         calculation to...
12042         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
12043         instead of the original when deciding whether an output reload
12044         would be a no-op.  Do the same when modifying insn notes.
12045         Use rtx_equal_p instead of == to compare the registers.
12046         (inherit_piecemeal_p): Take a mode and two register numbers
12047         as argument.
12048         (emit_reload_insns): Clear new_spill_reg_store for every hard
12049         register in the reload register.  Remove spill registers
12050         from reg_reloaded_valid before considering whether to record
12051         inheritance information for them.  Use reload_reg_rtx_for_output
12052         instead of reg_rtx when recording output reloads.  Use
12053         reload_reg_rtx_for_input instead of reg_rtx when recording
12054         input reloads.  Set or clear reg_reloaded_call_part_clobbered
12055         at the same time as setting reg_reloaded_valid.
12056         (delete_output_reload): Add a new_reload_reg parameter and use it
12057         instead of rld[j].reg_rtx.
12058         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
12059         calls accordingly.
12060
12061 2008-03-25  Tom Tromey  <tromey@redhat.com>
12062
12063         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
12064         (build/genattr.o): Likewise.
12065         (build/genattrtab.o): Likewise.
12066         (build/gencodes.o): Likewise.
12067         (build/genconfig.o): Likewise.
12068         (build/genconstants.o): Likewise.
12069         (build/genemit.o): Likewise.
12070         (build/genextract.o): Likewise.
12071         (build/genflags.o): Likewise.
12072
12073 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
12074
12075         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
12076         instead of size_int for integer types.
12077         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
12078         to match type of MINUS_EXPR.
12079
12080 2008-03-25  Tom Tromey  <tromey@redhat.com>
12081
12082         * configure: Rebuilt.
12083         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
12084         Makefile.
12085
12086 2008-03-25  Tom Tromey  <tromey@redhat.com>
12087
12088         * config/x-solaris (host-solaris.o): Update.
12089         * config/x-linux (host-linux.o): Update.
12090         * config/x-hpux (host-hpux.o): Update.
12091         * config/x-darwin (host-darwin.o): Update.
12092         * config/v850/t-v850e (v850-c.o): Update.
12093         * config/v850/t-v850 (v850-c.o): Update.
12094         * config/t-vxworks (vxworks.o): Update.
12095         * config/t-sol2 (sol2-c.o, sol2.o): Update.
12096         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
12097         * config/spu/t-spu-elf (spu-c.o): Update.
12098         (spu.o): Remove.
12099         * config/sh/t-symbian (sh-c.o): Update.
12100         (symbian.o): Update.
12101         * config/sh/t-sh (sh-c.o): Update.
12102         * config/score/t-score-elf (score7.o, score3.o): Update.
12103         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
12104         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
12105         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
12106         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
12107         (rs6000.o): Remove.
12108         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
12109         * config/m32c/t-m32c (m32c-pragma.o): Update.
12110         * config/ia64/t-ia64 (ia64-c.o): Update.
12111         * config/i386/x-mingw32 (host-mingw32.o): Update.
12112         * config/i386/x-i386 (driver-i386.o): Update.
12113         * config/i386/x-darwin (host-i386-darwin.o): Update.
12114         * config/i386/x-cygwin (host-cygwin.o): Update.
12115         * config/i386/t-nwld (nwld.o): Update.
12116         * config/i386/t-netware (netware.o): Update.
12117         * config/i386/t-interix (winnt.o): Update.
12118         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
12119         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
12120         msformat-c.o): Update.
12121         * config/bfin/t-bfin-linux (generated_files): Add
12122         linux-sysroot-suffix.h.
12123         * config/arm/t-wince-pe (pe.o): Update.
12124         * config/arm/t-strongarm-pe (pe.o): Update.
12125         * config/arm/t-pe (pe.o): Update.
12126         * config/arm/t-arm (arm-c.o): Update.
12127         * doc/install.texi (Prerequisites): Require make 3.80.
12128         * Makefile.in: Remove .o targets.
12129         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
12130         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
12131         (simple_generated_h, simple_generated_c): Move earlier.
12132         (generated_files): New variable.
12133         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
12134         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
12135         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
12136         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
12137         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
12138         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
12139         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
12140         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
12141         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
12142         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
12143         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
12144         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
12145         (.c.o): Remove.
12146         (COMPILE.base, COMPILE): New variables.
12147         (%.o): New pattern rule.
12148         (ALL_HOST_OBJS): New variable.
12149         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
12150         (dummy-checksum.o, cc1-checksum.o): Remove.
12151         (DRIVER_SHLIB): New variable.
12152         (DRIVER_DEFINES): Use it.
12153         (gencondmd.c): Move out of build/.
12154         (s-conditions): Update.
12155         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
12156         (ALL_BUILD_OBJS): Likewise.
12157         (build/%.o): Use BUILDCOMPILE.
12158         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
12159         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
12160         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
12161         build/gencheck.o, build/gencodes.o, build/genconditions.o,
12162         build/genconfig.o, build/genconstants.o, build/genemit.o,
12163         build/genextract.o, build/genflags.o, build/genmddeps.o,
12164         build/genopinit.o, build/genoutput.o, build/genpeep.o,
12165         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
12166         build/gen-protos.o, build/scan.o, build/fix-header.o,
12167         build/scan-decls.o): Simplify.
12168         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
12169         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
12170         prefix.o, toplev.o): Reduce to variable setting.
12171         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
12172         ($(out_object_file), gcc-options.o): New targets.
12173         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
12174         * configure: Rebuilt.
12175         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
12176         * doc/sourcebuild.texi (Front End Directory): Document new variable.
12177
12178 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
12179
12180         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
12181         complain when we hit an error, return ERROR_MARK_NODE.
12182
12183 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
12184
12185         * config/sh/constraints.md (Pso, Psz): New constraints.
12186         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
12187         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
12188
12189 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
12190
12191         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
12192         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
12193
12194 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
12195
12196         * config/sh/sh.md (prefetch): Add condition for SH2A target.
12197         (prefetch_sh2a): New.
12198
12199 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
12200             Naveen.H.S  <naveen.hs@kpitcummins.com>
12201
12202         * config/sh/constraints.md (I28): New constraint.
12203         * config/sh/sh.c (broken_move): Add support for movi20s.
12204         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
12205
12206 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
12207             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
12208             Naveen.H.S  <naveen.hs@kpitcummins.com>
12209
12210         * config/sh/sh.c (SH_ATTRIBUTES): Define.
12211         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
12212         (print_operand): Handle resbank in %@ operand code.
12213         (sh_encode_section_info): New.
12214         (push_regs): Add conditions for resbank.
12215         (sh_expand_epilogue): Likewise.
12216         (sh_insert_attributes): Likewise.
12217         (sh_attribute_table): Likewise.
12218         (sh_handle_resbank_handler_attribute): New.
12219         (sh2a_handle_function_vector_handler_attribute): New.
12220         (sh2a_is_function_vector_call): New.
12221         (sh2a_get_function_vector_number): New.
12222         (sh2a_function_vector_p): New.
12223         (sh_cfun_resbank_handler_p): New.
12224         * config/sh/sh.md (calli): Emit jsr/n if possible.
12225         (calli_tbr_rel): New.
12226         (calli_pcrel): Emit jsr/n if possible.
12227         (return_i): Emit rts/n if possible.
12228         (call_valuei_tbr_rel): New.
12229         (call_valuei_pcrel): Add condition for SH2A target.
12230         (call_value): Likewise.
12231         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
12232         (sh2a_get_function_vector_number): Likewise.
12233         (sh2a_is_function_vector_call): Likewise.
12234         * doc/extend.texi: Document TBR relative addressing of SH2A.
12235         (resbank): Add description for SH2A.
12236
12237 2008-03-24  Richard Guenther  <rguenther@suse.de>
12238
12239         PR c/22371
12240         * gimplify.c (gimplify_modify_expr): For frontend type-correct
12241         pointer assignments change conversions according to middle-end rules.
12242         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
12243         * configure.ac: Include type checking in yes.
12244         * configure: Regenerate.
12245
12246 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12247
12248         * diagnostic.c (diagnostic_count_diagnostic): Delete.
12249         (diagnostic_report_diagnostic): Update. Handle ICEs here.
12250
12251 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
12252
12253         * gthr-vxworks.h (UNUSED): Define.
12254
12255 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
12256
12257         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
12258
12259 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
12260
12261         * doc/extend.texi (Function Attributes): Add missing comma in the
12262         example of the "alloc_size" attribute.
12263
12264 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
12265
12266         Revert:
12267         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12268
12269         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12270         32bit host.
12271
12272         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
12273
12274         PR target/35496
12275         * stor-layout.c (update_alignment_for_field): Set minimum alignment
12276         of the underlying type of a MS bitfield layout to the natural
12277         alignment of the type.
12278
12279         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
12280
12281         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12282         to their natural alignment to avoid store forwarding stalls.
12283
12284 2008-03-22  Richard Guenther  <rguenther@suse.de>
12285
12286         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
12287         For PHI nodes verify the address is invariant.
12288         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
12289         (get_symbol_constant_value): Use is_gimple_min_invariant.
12290         (maybe_fold_stmt_indirect): Likewise.
12291
12292 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
12293
12294         PR rtl-optimization/33927
12295         * Makefile.in (dse.o): Depend on $(TM_P_H).
12296         * expr.h (extract_low_bits): Declare.
12297         * expmed.c (extract_low_bits): New function.
12298         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
12299         * dse.c: Include tm_p.h.
12300         (find_shift_sequence): Remove the read_reg argument and return the
12301         read value.  Emit the instructions instead of returning them.
12302         Iterate on new_mode rather than calculating it each time.
12303         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
12304         source to NEW_MODE and extract_low_bits to convert the shifted
12305         value to READ_MODE.
12306         (replace_read): Allow the load and store to have different mode
12307         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
12308         or extraction instructions before trying the replacement.  Update
12309         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
12310
12311 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
12312
12313         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12314         to their natural alignment to avoid store forwarding stalls.
12315
12316 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12317
12318         PR target/27946
12319         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
12320         encouraging but not allowing gprs for input;
12321         change the input constraint to !f#r.
12322         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
12323         gprs for output;
12324         change the output constraint to !f#r.
12325
12326 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
12327
12328         PR target/13958
12329         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
12330         corresponding post-reload splitters.
12331         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
12332         when x87 FP math is selected.
12333         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
12334         New function prototype.
12335         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
12336         unreachable function to ease macroization of insn patterns.
12337
12338 2008-03-21  Martin Jambor  <mjambor@suse.cz>
12339
12340         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
12341         reference dumps if ddr is NULL or dependence is unknown.
12342
12343 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12344
12345         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
12346         unsigned extension into account.
12347         (ATOMIC_COMPARE_AND_SWAP): Likewise.
12348         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
12349         Do computations on a scratch register.
12350
12351 2008-03-21  Richard Guenther  <rguenther@suse.de>
12352
12353         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12354         Use is_gimple_min_invariant instead of TREE_INVARIANT.
12355         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
12356         * tree-ssa-dom.c (record_equality): Likewise.
12357         * tree-inline.c (copy_body_r): Likewise.
12358         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
12359         TREE_INVARIANT.
12360
12361 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12362
12363         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
12364         as 'delete_unused' argument.
12365
12366 2008-03-20  Richard Guenther  <rguenther@suse.de>
12367
12368         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
12369         special casing of constant qualifiers.
12370         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
12371         care about them in general.
12372         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
12373         regardless of their type.
12374         (fold_stmt_r): Forcefully fold *& if we end up with that.
12375
12376 2008-03-20  Paul Brook  <paul@codesourcery.com>
12377
12378         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
12379         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
12380         linker flags.
12381         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
12382         definition.
12383         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
12384         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
12385
12386 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
12387
12388         * common.opt (Wmudflap): New option.
12389         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
12390         (mx_register_decls): Likewise.
12391         (mudflap_finish_file): Likewise.
12392         * doc/invoke.texi: Document -Wno-mudflap.
12393
12394 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
12395
12396         * c-format.c (replace_format_name_to_system_name): New.
12397         (cmp_attribs): New.
12398         (convert_format_name_to_system_name): New.
12399         (decode_format_attr): Add use of convert_format_name_to_system_name.
12400         (format_types_orig): Add gnu_ prefix to names.
12401         (check_format_info_main): Special treating of \0 escaped names for
12402         supporting multi-character format specifiers as I32, I64.
12403         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
12404         (gnu_target_overrides_format_attributes): New.
12405         * c-format.h: Add structure target_ovr_attr to hold
12406         system specific formatter names.
12407         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
12408         msformat-c.o file to c_target_objs and cxx_target_objs.
12409         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12410         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
12411         (TARGET_N_FORMAT_TYPES): New.
12412         * config/i386/msformat-c.c: New.
12413         * config/i386/t-cygming: Add build rule for msformat-c.o.
12414         * doc/extend.texi: Add new format names gnu_* and ms_* and
12415         further details.
12416         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12417
12418 2008-03-20  Ira Rosen  <irar@il.ibm.com>
12419
12420         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
12421         optimizations turned on under -O3.
12422         (ftree-vectorize): Add that the flag is turned on with -O3.
12423
12424 2008-03-20  Ben Elliston  <bje@au.ibm.com>
12425
12426         * regmove.c (try_auto_increment): Fix spelling error in comment.
12427         * final.c (final_scan_insn): Likewise.
12428
12429 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
12430
12431         PR target/14552
12432         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
12433         allocator preferences for "y" and "r" class registers.
12434         ("*mov<mode>_internal"): Ditto.
12435         ("*movv2sf_internal_rex64"): Ditto.
12436         ("*movv2sf_internal"): Ditto.
12437
12438 2008-03-19  Michael Matz  <matz@suse.de>
12439
12440         PR middle-end/35616
12441         * calls.c (expand_call): Check overlap of arguments with call
12442         address for sibcalls.
12443
12444 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
12445
12446         PR target/35496
12447         * stor-layout.c (update_alignment_for_field): Set minimum alignment
12448         of the underlying type of a MS bitfield layout to the natural
12449         alignment of the type.
12450
12451 2008-03-19  Jan Hubicka  <jh@suse.cz>
12452
12453         PR other/35094
12454         * toplev.c (decode_d_option): Handle all CPP flags.
12455         * tree-vrp.c: Update tree_pass descriptors.
12456         * regrename.c: Update tree_pass descriptors.
12457         * fwprop.c: Update tree_pass descriptors.
12458         * doc/invoke.texi: Remove documentation of dropped -d? flags.
12459         * tree-into-ssa.c: Update tree_pass descriptors.
12460         * tree-dump.c: Update tree_pass descriptors.
12461         * tree-complex.c: Update tree_pass descriptors.
12462         * tree-dump.h: Update tree_pass descriptors.
12463         * see.c: Update tree_pass descriptors.
12464         * cgraphbuild.c: Update tree_pass descriptors.
12465         * tracer.c: Update tree_pass descriptors.
12466         * tree-loop-distribution.c: Update tree_pass descriptors.
12467         * cgraph.c: Update tree_pass descriptors.
12468         * postreload-gcse.c: Update tree_pass descriptors.
12469         * postreload.c: Update tree_pass descriptors.
12470         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
12471         * tree-tailcall.c: Update tree_pass descriptors.
12472         * tree-pass.h (tree_opt_pass): Rename to ...
12473         (opt_pass) ... this one; add "type" field and remove letter field.
12474         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
12475         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
12476         all_lowering_passes): Update declaration.
12477         * ipa-cp.c: Update tree_pass descriptors.
12478         * final.c: Update tree_pass descriptors.
12479         * omp-low.c: Update tree_pass descriptors.
12480         * tree-ssa-dse.c: Update tree_pass descriptors.
12481         * ipa-reference.c: Update tree_pass descriptors.
12482         * tree-ssa-uncprop.c: Update tree_pass descriptors.
12483         * auto-inc-dec.c: Update tree_pass descriptors.
12484         * reorg.c: Update tree_pass descriptors.
12485         * cgraphunit.c: Update tree_pass descriptors.
12486         * tree-ssa-copyrename.c: Update tree_pass descriptors.
12487         * tree-ssa-ccp.c: Update tree_pass descriptors.
12488         * df-core.c: Update tree_pass descriptors.
12489         * mode-switching.c: Update tree_pass descriptors.
12490         * tree-nomudflap.c: Update tree_pass descriptors.
12491         * modulo-sched.c: Update tree_pass descriptors.
12492         * ipa-pure-const.c: Update tree_pass descriptors.
12493         * cse.c: Update tree_pass descriptors.
12494         * web.c: Update tree_pass descriptors.
12495         * tree-stdarg.c: Update tree_pass descriptors.
12496         * tree-ssa-math-opts.c: Update tree_pass descriptors.
12497         * tree-ssa-dom.c: Update tree_pass descriptors.
12498         * tree-nrv.c: Update tree_pass descriptors.
12499         * tree-ssa-alias.c: Update tree_pass descriptors.
12500         * loop-init.c: Update tree_pass descriptors.
12501         * gimple-low.c: Update tree_pass descriptors.
12502         * ipa-inline.c: Update tree_pass descriptors.
12503         * tree-ssa-sink.c: Update tree_pass descriptors.
12504         * global.c: Update tree_pass descriptors.
12505         * ifcvt.c: Update tree_pass descriptors.
12506         * jump.c: Update tree_pass descriptors.
12507         * predict.c: Update tree_pass descriptors.
12508         * tree-ssa-loop.c: Update tree_pass descriptors.
12509         * recog.c: Update tree_pass descriptors.
12510         * dse.c: Update tree_pass descriptors.
12511         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
12512         * tree-eh.c: Update tree_pass descriptors.
12513         * regmove.c: Update tree_pass descriptors.
12514         * local-alloc.c
12515         * function.c: Update tree_pass descriptors.
12516         * tree-vectorizer.c: Update tree_pass descriptors.
12517         * gcse.c: Update tree_pass descriptors.
12518         * ipa-type-escape.c: Update tree_pass descriptors.
12519         * tree-if-conv.c: Update tree_pass descriptors.
12520         * init-regs.c: Update tree_pass descriptors.
12521         * ipa.c: Update tree_pass descriptors.
12522         * tree-ssa-phiopt.c: Update tree_pass descriptors.
12523         * rtl-factoring.c: Update tree_pass descriptors.
12524         * lower-subreg.c: Update tree_pass descriptors.
12525         * bt-load.c: Update tree_pass descriptors.
12526         * tree-dfa.c: Update tree_pass descriptors.
12527         * except.c: Update tree_pass descriptors.
12528         * emit-rtl.c: Update tree_pass descriptors.
12529         * cfgexpand.c: Update tree_pass descriptors.
12530         * tree-cfgcleanup.c: Update tree_pass descriptors.
12531         * cfgcleanup.c: Update tree_pass descriptors.
12532         * tree-ssa-pre.c: Update tree_pass descriptors.
12533         * tree-sra.c: Update tree_pass descriptors.
12534         * tree-mudflap.c: Update tree_pass descriptors.
12535         * tree-ssa-copy.c: Update tree_pass descriptors.
12536         * cfglayout.c: Update tree_pass descriptors.
12537         * tree-ssa-forwprop.c: Update tree_pass descriptors.
12538         * tree-ssa-dce.c: Update tree_pass descriptors.
12539         * tree-ssa.c: Update tree_pass descriptors.
12540         * regclass.c: Update tree_pass descriptors.
12541         * integrate.c: Update tree_pass descriptors.
12542         * tree-optimize.c: Update tree_pass descriptors.
12543         * tree-ssa-phiprop.c: Update tree_pass descriptors.
12544         * tree-object-size.c: Update tree_pass descriptors.
12545         * combine.c: Update tree_pass descriptors.
12546         * tree-outof-ssa.c: Update tree_pass descriptors.
12547         * bb-reorder.c: Update tree_pass descriptors.
12548         * stack-ptr-mod.c: Update tree_pass descriptors.
12549         * var-tracking.c: Update tree_pass descriptors.
12550         * tree-profile.c: Update tree_pass descriptors.
12551         * tree-vect-generic.c: Update tree_pass descriptors.
12552         * reg-stack.c: Update tree_pass descriptors.
12553         * sched-rgn.c: Update tree_pass descriptors.
12554         * tree-ssa-structalias.c: Update tree_pass descriptors.
12555         * tree-cfg.c: Update tree_pass descriptors.
12556         * passes.c (current_pass): Update declaration.
12557         (finish_optimization_passes): Update.
12558         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
12559         (register_one_dump_file, register_dump_files_1, next_pass_1):
12560         Update arguments.
12561         (init_optimization_passes): Update handling of new types.
12562         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
12563         * ipa-struct-reorg.c: Update tree_pass descriptors.
12564         * tree-ssa-reassoc.c: Update tree_pass descriptors.
12565         * combine-stack-adj.c: Update tree_pass descriptors.
12566         * cfgrtl.c: Update tree_pass descriptors.
12567         * dce.c: Update tree_pass descriptors.
12568         * tree-ssanames.c: Update tree_pass descriptors.
12569
12570 2008-03-19  Richard Guenther  <rguenther@suse.de>
12571
12572         PR middle-end/35609
12573         * tree-ssa.c (walk_data): New structure.
12574         (warn_uninitialized_var): If not always_executed warn with "maybe"
12575         instead of "is".
12576         (execute_early_warn_uninitialized): Compute post-dominators.
12577         Initialize always_executed before processing each basic block.
12578
12579 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
12580
12581         PR target/35504
12582         * config/i386/i386.c (x86_this_parameter): Calculate correct location
12583         of "this" pointer when "regparm = N" or "fastcall" is in effect.
12584
12585 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12586
12587         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
12588
12589 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
12590
12591         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
12592         is true.
12593         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
12594         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
12595         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
12596         target after ignore has been set, and move there also the commputation
12597         of subtarget and original_target.
12598         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12599         (LANG_HOOKS_INITIALIZER): Remove it.
12600         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12601
12602 2008-03-18  Richard Guenther  <rguenther@suse.de>
12603
12604         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12605         found an expression with constants, note that in the VN for the lhs.
12606         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12607         fold them to constants if possible.  Run cleanup_cfg if done so.
12608         (execute_pre): Return todo.
12609         (do_pre): Likewise.
12610         (execute_fre): Likewise.
12611         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12612         of constants.
12613         (get_prop_source_stmt): Look through pointer conversions.
12614
12615 2008-03-18  Jan Hubicka  <jh@suse.cz>
12616
12617         * tree-pretty-print.c: Include predict.h.
12618         (dump_generic_node): Dump predictor.
12619         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12620         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12621         * gimple-low.c (lower_stmt): Likewise.
12622         * expr.c (expand_expr_real): Likewise.
12623         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12624         them.
12625         (build_predict_expr, build_predict_expr): New.
12626         * predict.h (predictor_name, build_predict_expr): Update.
12627         * c-typeck.c (c_finish_bc_stmt): Add prediction.
12628         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
12629         * predict.def (PRED_CONTINUE): Update hitrate.
12630         * tree.def (PREDICT_EXPR): Define.
12631         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
12632         do not handle BIND_EXPR.
12633         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
12634         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
12635         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
12636         operands.
12637
12638 2008-03-18  Michael Matz  <matz@suse.de>
12639
12640         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
12641
12642 2008-03-18  Richard Guenther  <rguenther@suse.de>
12643
12644         * tree-gimple.h (is_gimple_invariant_address): Declare.
12645         (is_gimple_constant): Likewise.
12646         * tree-gimple.c (is_gimple_constant): New function.
12647         (is_gimple_invariant_address): Likewise.
12648         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
12649         and is_gimple_invariant_address.
12650         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
12651         previous change.
12652         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
12653         an addressable base.
12654
12655 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
12656
12657         PR middle-end/35611
12658         * gimplify.c (gimplify_expr): Gimplify second operand of
12659         OMP_ATOMIC_LOAD.
12660
12661 2008-03-17  Richard Guenther  <rguenther@suse.de>
12662
12663         PR tree-optimization/19637
12664         * fold-const.c (fold_unary): Remove restrictions of removing
12665         intermediate pointer-conversions (P2)(P1)P0.
12666         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
12667         conversion to void pointer.
12668         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
12669
12670 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
12671
12672         PR debug/31510
12673         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
12674         emulated thread local variables.
12675
12676 2008-03-16  Richard Guenther  <rguenther@suse.de>
12677
12678         PR middle-end/35607
12679         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12680         expand TREE_INVARIANT operations that are not gimple invariant.
12681
12682 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
12683
12684         * doc/extend.texi (Alignment): Say that the ABI controls
12685         the __alignof__ for non-strict-alignment targets rather
12686         than being a recommendation.
12687
12688 2008-03-15  Paul Brook  <paul@codesourcery.com>
12689
12690         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
12691         annotations.
12692         (arm_output_fn_unwind): Mark functions that can not be unwound.
12693
12694 2008-03-15  Paul Brook  <paul@codesourcery.com>
12695
12696         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
12697         extension instructions.
12698
12699 2008-03-15  Richard Guenther  <rguenther@suse.de>
12700
12701         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
12702         and fold constant aggregate refs.
12703         (fold_const_aggregate_ref): Handle string constants
12704         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
12705         (evaluate_stmt): Simplify now that ccp_fold folds constant
12706         aggregate refs.
12707
12708 2008-03-15  Paul Brook  <paul@codesourcery.com>
12709
12710         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
12711         (extzv): Use gen_extzv_t2.
12712         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
12713
12714 2008-03-15  Richard Guenther  <rguenther@suse.de>
12715
12716         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
12717         (fold_const_aggregate_ref): Likewise.
12718         (get_value): Return NULL if we don't have any values.
12719         (ccp_finalize): Set const_val to NULL after freeing it.
12720         * tree-flow.h (get_symbol_constant_value): Declare.
12721         (fold_const_aggregate_ref): Likewise.
12722         * tree-ssa-sccvn.c (try_to_simplify): Use them.
12723
12724 2008-03-15  Richard Guenther  <rguenther@suse.de>
12725
12726         PR middle-end/35593
12727         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
12728         to not produce negative array indices if not allowed.  Add
12729         parameter to indicate that.
12730         (maybe_fold_offset_to_component_ref): Allow negative array
12731         indices only for the first member of a structure.
12732         (maybe_fold_offset_to_reference): Allow negative array indices.
12733         (maybe_fold_stmt_addition): Likewise.
12734
12735 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
12736             Anatoly Sokolov <aesok@post.ru>
12737
12738         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
12739         (avr_arch): Add ARCH_AVR6.
12740         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
12741         (initial_elimination_offset): Initialize and use 'avr_pc_size'
12742         instead of fixed value 2.
12743         (print_operand_address): Use gs() asm specifier instead of pm().
12744         (avr_assemble_integer): (Ditto.).
12745         (avr_output_addr_vec_elt): (Ditto.).
12746         (print_operand): Handle "!" code.
12747         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
12748         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
12749         (AVR_HAVE_EIJMP_EICALL): Define.
12750         (AVR_3_BYTE_PC): Redefine.
12751         (AVR_2_BYTE_PC): (Ditto.).
12752         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
12753         (LINK_SPEC): Add atmega2560 and atmega2561.
12754         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
12755         (crtm2561.o).
12756         * config/avr/avr.md (call_insn): Use eicall instead of icall
12757         for 3 byte PC devices.
12758         (call_value_insn): (Ditto.).
12759         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
12760         (indirect_jump): Use only for for 2 byte PC devices.
12761         (*tablejump): (Ditto.).
12762         (*indirect_jump_avr6): Add insn.
12763         (*tablejump_rjmp): Don't use for 3 byte PC devices.
12764         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
12765         instead of ijmp for 3 byte PC devices.
12766         (__tablejump2__): (Ditto.).
12767         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
12768         (MULITLIB_DIRNAMES): (Ditto.).
12769         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
12770
12771 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
12772
12773         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
12774         "sse2_umulsidi3".  Use V1DI mode for operand 0.
12775         ("mmx_psadbw"): Use V1DI mode for operand 0.
12776         * config/i386/i386-modes.def (V1SI): New vector mode.
12777         * config/i386/i386.c (struct builtin_description)
12778         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
12779         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
12780         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
12781         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
12782         v1di_ftype_v8qi_v8qi type.
12783         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
12784
12785         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
12786         __builtin_ia32_pmuludq]: Fix the mode of return value.
12787
12788 2008-03-15  Richard Guenther  <rguenther@suse.de>
12789
12790         PR middle-end/35595
12791         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
12792         being a PHI_NODE.
12793
12794 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
12795
12796         * doc/invoke.texi (Option Summary, Xtensa Options): Document
12797         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
12798         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
12799         unless TARGET_SERIALIZE_VOLATILE is enabled.
12800         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
12801         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
12802         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
12803
12804 2008-03-14  Richard Guenther  <rguenther@suse.de>
12805
12806         PR tree-optimization/34172
12807         * tree-flow.h (refs_may_alias_p): Declare.
12808         (get_single_def_stmt): Likewise.
12809         (get_single_def_stmt_from_phi): Likewise.
12810         (get_single_def_stmt_with_phi): Likewise.
12811         * tree-dfa.c (refs_may_alias_p): New function.
12812         (get_single_def_stmt): Likewise.
12813         (get_single_def_stmt_from_phi): Likewise.
12814         (get_single_def_stmt_with_phi): Likewise.
12815         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
12816         (vn_reference_lookup_1): New helper function.
12817         (vn_reference_lookup): Walk the virtual use-def chain to
12818         continue searching for a match if the def does not alias the
12819         reference we are looking for.
12820
12821 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
12822
12823         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
12824         archive and Perzl.  Update The Written Word listing.
12825
12826 2008-03-14  Richard Guenther  <rguenther@suse.de>
12827
12828         PR tree-optimization/34043
12829         PR tree-optimization/33989
12830         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
12831         when doing FRE.
12832         (bitmap_find_leader): Use extra argument to verify dominance
12833         relationship inside a basic-block.
12834         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
12835         (find_leader_in_sets): Adjust.
12836         (create_component_ref_by_pieces): Take extra argument for
12837         dominance check, handle lookup failures.
12838         (find_or_generate_expression): Likewise.
12839         (create_expression_by_pieces): Likewise.
12840         (insert_into_preds_of_block): Adjust.
12841         (create_value_expr_from): If asked for, verify all operands
12842         are in the blocks AVAIL_OUT set.
12843         (make_values_for_stmt): Check for SSA_NAMEs that are life
12844         over an abnormal edge.
12845         (compute_avail): Remove such check.
12846         (do_SCCVN_insertion): New function.
12847         (eliminate): If we do not find a leader suitable for replacement
12848         insert a replacement expression from SCCVN if available.
12849         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
12850         (struct vn_ssa_aux): Add needs_insertion flag.
12851         * tree-ssa-sccvn.c (may_insert): New global flag.
12852         (copy_reference_ops_from_ref): Value-number union member access
12853         based on its size, not type and member if insertion is allowed.
12854         (visit_reference_op_load): For a weak match from union type
12855         punning lookup a view-converted value and insert a SSA_NAME
12856         for that value if that is not found.
12857         (visit_use): Make dumps shorter.  Do not disallow value numbering
12858         SSA_NAMEs that are life over an abnormal edge to constants.
12859         (free_scc_vn): Release inserted SSA_NAMEs.
12860         (run_scc_vn): New flag to specify whether insertion is allowed.
12861         Process SSA_NAMEs in forward order.
12862         * tree-ssa-loop-im.c (for_each_index): Handle invariant
12863         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
12864         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
12865         pointer type to/from integral types that do not change the
12866         precision to regular conversions.
12867
12868 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12869
12870         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12871         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12872         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
12873         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
12874         input arguments and the mode of return value.  Built-in functions
12875         that operate on whole 64-bit MMX register now use V1DI mode.
12876
12877 2008-03-13  Alon Dayan  <alond@il.ibm.com>
12878             Olga Golovanevsky  <olga@il.ibm.com>
12879
12880         PR tree-optimization/35041
12881         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
12882         to locate the right position in a statement.
12883
12884 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12885
12886         PR target/34000
12887         PR target/35553
12888         * config/i386/xmmintrin.h:  Change all static inline functions to
12889         extern inline and add __gnu_inline__ attribute.
12890         * config/i386/bmintrin.h: Ditto.
12891         * config/i386/smmintrin.h: Ditto.
12892         * config/i386/tmmintrin.h: Ditto.
12893         * config/i386/mmintrin-common.h: Ditto.
12894         * config/i386/ammintrin.h: Ditto.
12895         * config/i386/emmintrin.h: Ditto.
12896         * config/i386/pmmintrin.h: Ditto.
12897         * config/i386/mmintrin.h: Ditto.
12898         * config/i386/mm3dnow.h: Ditto.
12899
12900 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
12901
12902         PR middle-end/35185
12903         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
12904         (lower_omp_2): New function.
12905         (lower_omp_1, lower_omp): Rewritten.
12906
12907 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
12908
12909         PR 35054
12910         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
12911         with the phrase "Microsoft Windows compilers".
12912         (Push/Pop Macro Pragmas): New subsection. Document
12913         #pragma push_macro and pragma pop_macro.
12914
12915 2008-03-12  Paul Brook  <paul@codesourcery.com>
12916
12917         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
12918
12919 2008-03-12  Paul Brook  <paul@codesourcery.com>
12920
12921         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
12922         (thumb2_alusi3_short): Exclude PLUS and MINUS.
12923         (thumb2_addsi_shortim): Rename ...
12924         (thumb2_addsi_short): ... to this.  Allow register operands.
12925         (thumb2_subsi_short): New pattern.
12926         (thumb2_one_cmplsi2_short,
12927         thumb2_negsi2_short): New patterns and peepholes.
12928
12929 2008-03-12  Paul Brook  <paul@codesourcery.com>
12930
12931         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
12932
12933 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
12934
12935         * config/i386/i386.md (int_cond): New code iterator.
12936         (fp_cond): Ditto.
12937         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
12938         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
12939         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
12940         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
12941         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
12942         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
12943         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
12944         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
12945
12946 2008-03-12  Paul Brook  <paul@codesourcery.com>
12947
12948         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
12949         instead of {arm,thumb}_compute_save_reg_mask.
12950         (output_return_instruction): Ditto.
12951         (thumb_unexpanded_epilogue): Ditto.
12952         (thumb1_expand_prologue): Ditto.
12953         (thumb1_output_function_prologue): Ditto.
12954         (arm_set_return_address): Ditto.
12955         (thumb_set_return_address): Ditto.
12956         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
12957         regs to achieve stack alignment.
12958         (thumb1_compute_save_reg_mask): Fix compiler warning.
12959         (arm_output_epilogue): Use offsets->saved_regs_mask.
12960         Adjust stack pointer by poping call clobered registers.
12961         (arm_expand_prologue): Use offsets->saved_regs_mask.
12962         Adjust stack pointer by pushing extra registers.
12963         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
12964
12965 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
12966
12967         PR tree-opt/35422
12968         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
12969         conversion to the operands of a multiplication.
12970
12971 2008-03-12  Richard Guenther  <rguenther@suse.de>
12972
12973         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
12974         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
12975         * timevar.def (TV_TREE_PHIPROP): Add.
12976         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
12977         pass description.  Use TV_TREE_PHIPROP.
12978         * tree-ssa-forwprop.c: Remove phiprop code.
12979
12980 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
12981
12982         PR middle-end/35549
12983         * omp-low.c (maybe_lookup_decl): Constify first argument.
12984         (use_pointer_for_field): Change last argument from bool to
12985         omp_context *.  Disallow shared copy-in/out in nested
12986         parallel if decl is shared in outer parallel too.
12987         (build_outer_var_ref, scan_sharing_clauses,
12988         lower_rec_input_clauses, lower_copyprivate_clauses,
12989         lower_send_clauses, lower_send_shared_vars): Adjust callers.
12990
12991 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
12992             Ira Rosen  <irar@il.ibm.com>
12993
12994         * tree-vectorizer.c (free_stmt_vec_info): New function.
12995         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
12996         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
12997         * tree-vectorizer.h (free_stmt_vec_info): Declare.
12998         * tree-vect-transform.c (vectorizable_conversion): Free
12999         vec_oprnds0 if it was allocated.
13000         (vect_permute_store_chain): Remove unused VECs.
13001         (vectorizable_store): Free VECs that are allocated in the..
13002         function.
13003         (vect_transform_strided_load, vectorizable_load): Likewise.
13004         (vect_remove_stores): Simplify the code.
13005         (vect_transform_loop): Move code to vect_remove_stores().
13006         Call vect_remove_stores() and free_stmt_vec_info().
13007
13008 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13009
13010         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
13011         TARGET_HPUX.  Revise comment.
13012         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
13013         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
13014         Use sr4 variant of `be' instruction when not generating PIC code.
13015         (attr_length_call): Adjust for above change.
13016
13017 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13018
13019         * ipa-reference.c (static_execute): Remove module_statics_const and
13020         associated setting code.
13021
13022 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
13023
13024         PR target/35540
13025         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
13026         predicate for operand 1.
13027         (paritysi2_cmp): Use register_operand predicate for operand 2.
13028         Use earlyclobber modifier for operand 1.  Remove support for
13029         memory operands.
13030         (paritydi2_cmp): Use register_operand predicate for operand 3.
13031         Use earlyclobber modifier for operand 1.  Remove support for
13032         memory operands.
13033
13034 2008-03-11  Paul Brook  <paul@codesourcery.com>
13035             Vladimir Prus  <vladimir@codesourcery.com>
13036
13037         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
13038         (arm_compute_save_reg0_reg12_mask): Always
13039         check if register 11 must be saved.  Always safe hard frame pointer
13040         when frame_pointer_needeed.
13041         (arm_compute_save_reg_mask): Save IP and PC
13042         only with apcs frames.
13043         (arm_output_epilogue): Adjust Thumb2 codepath to
13044         be also invoked and work for ARM non-apcs frames.
13045         (arm_expand_prologue): Don't bother saving IP
13046         for non-apcs frame, since it's not clobbered by
13047         prologue code.  Implement non-apcs frame
13048         layout.
13049
13050 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
13051
13052         PR rtl-optimization/35281
13053         * expr.c (convert_move): Use a new pseudo for the intermediate
13054         from_mode->word_mode result.
13055
13056 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
13057
13058         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
13059         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
13060         * toplev.c (compile_file): Don't call it.
13061
13062 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
13063
13064         PR middle-end/35526
13065         * expr.c (store_expr): Call emit_block_move if the mode
13066         of "temp" RTX is BLKmode.
13067
13068 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13069             Richard Guenther  <rguenther@suse.de>
13070
13071         PR tree-optimization/31358
13072         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
13073         the step with a NULL_TREE.
13074         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
13075         to sizetype if type is a pointer type.
13076         (add_candidate_1): Don't convert the base and step to
13077         the generic type if the orginal type is a pointer type.
13078         (add_iv_value_candidates): Use sizetype for the step
13079         if type is a pointer type.
13080         (cand_value_at): Likewise.
13081         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
13082         for pointer types.
13083         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
13084         Don't convert the tem affine to the type.
13085         (add_elt_to_tree): Use sizetype for the step if a pointer.
13086         Use POINTER_PLUS_EXPR for pointers.
13087         (aff_combination_to_tree): Use sizetype for the step if a
13088         pointer.
13089
13090 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
13091
13092         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
13093         Remove commutativity hint.
13094
13095 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
13096
13097         PR c/35438
13098         PR c/35439
13099         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
13100         errorneous type.  Check that v is a VAR_DECL.
13101
13102         PR middle-end/35099
13103         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
13104
13105 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
13106
13107         PR tree-optimization/35494
13108         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
13109         may be overriden at link and run time.
13110
13111 2008-03-10  Richard Guenther  <rguenther@suse.de>
13112
13113         PR tree-optimization/34677
13114         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
13115         (poolify_tree): Likewise.
13116         (modify_expr_template): Likewise.
13117         (poolify_modify_stmt): Likewise.
13118         (insert_fake_stores): Handle all component-ref style stores
13119         in addition to INDIRECT_REF.  Also handle complex types.
13120         Do not poolify the inserted load.
13121         (realify_fake_stores): Do not rebuild the tree but only
13122         make it a SSA_NAME copy.
13123         (init_pre): Remove initialzation of modify_expr_template.
13124         Do not allocate modify_expr_node_pool.
13125         (fini_pre): Do not free modify_expr_node_pool.
13126
13127 2008-03-10  Paul Brook  <paul@codesourcery.com>
13128
13129         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
13130         to avoid conflicts.
13131
13132 2008-03-10  Paul Brook  <paul@codesourcery.com>
13133             Mark Shinwell  <shinwell@codesourcery.com>
13134
13135         * config/arm/cortex-r4.md: New.
13136         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
13137         insn attributes.
13138         * config/arm/arm.md: Include cortex-r4.md.
13139         (insn): Add smmls, sdiv and udiv values.
13140         (generic_sched): Don't use generic scheduling for Cortex-R4.
13141         (arm_issue_rate): New function.
13142         (TARGET_SCHED_ISSUE_RATE): Define.
13143
13144 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
13145
13146         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
13147
13148 2008-03-10  Richard Guenther  <rguenther@suse.de>
13149
13150         * tree-ssa-pre.c (get_sccvn_value): Simplify.
13151         (compute_avail): Do not add stmt uses to AVAIL_OUT.
13152
13153 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
13154
13155         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
13156         Set default to true.
13157
13158 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13159
13160         * c.opt (Wsynth): Deprecate.
13161         * doc/invoke.texi (Option Summary, Warning Options): Document
13162         -Wno-format-contains-nul.
13163
13164 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
13165
13166         PR target/35496
13167         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
13168         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
13169
13170 2008-03-09  Ira Rosen  <irar@il.ibm.com>
13171
13172         * config/rs6000/rs6000.c (builtin_description): Rename vector
13173         left shift operations.
13174         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
13175         (altivec_vsl<VI_char>): Rename to ...
13176         (ashl<mode>3): ... new name.
13177         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
13178         gen_ashlv4si3.
13179         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
13180
13181 2008-03-08  Richard Guenther  <rguenther@suse.de>
13182
13183         * coverage.h (tree_coverage_counter_addr): Declare.
13184         * coverage.c (tree_coverage_counter_addr): New function.
13185         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
13186         before using again.
13187         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
13188         (tree_gen_one_value_profiler): Likewise.
13189         (tree_gen_ic_profiler): Likewise.
13190         (tree_gen_average_profiler): Likewise.
13191         (tree_gen_ior_profiler): Likewise.
13192
13193 2008-03-08  Richard Guenther  <rguenther@suse.de>
13194
13195         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
13196         (vn_binary_op_insert): Likewise.
13197         (vn_unary_op_lookup): Likewise.
13198         (vn_unary_op_insert): Likewise.
13199         (vn_nary_op_lookup): Declare.
13200         (vn_nary_op_insert): Likewise.
13201         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
13202         and binary hashes, use a single obstack for unary_op_pool
13203         and binary_op_pool.
13204         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
13205         a single struct vn_nary_op_s.  Store tree code length and
13206         a variable number of operands.
13207         (struct vn_reference_op_struct): Remove unused op2.
13208         (vn_reference_op_eq): Do not compare op2.
13209         (vn_reference_op_compute_hash): Do not compute hash of op2.
13210         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
13211         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
13212         with vn_nary_op_compute_hash.
13213         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
13214         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
13215         vn_nary_op_lookup.
13216         (vn_unary_op_insert, vn_binary_op_insert): Replace with
13217         vn_nary_op_insert.
13218         (visit_unary_op): Call nary functions.
13219         (visit_binary_op): Likewise.
13220         (process_scc): Adjust for struct vn_tables_s changes.
13221         (allocate_vn_table): Likewise.
13222         (free_vn_table): Likewise.
13223         * tree-vn.c (vn_add): Call nary functions.
13224         (vn_lookup): Likewise.
13225
13226 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
13227
13228         PR target/35498
13229         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
13230         wdst back after sync_compare_and_swapqhi_internal.
13231
13232 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
13233
13234         PR target/22152
13235         * config/i386/i386-modes.def (V1DI): New vector mode.
13236         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
13237         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
13238         (MMXMODE248): Ditto.
13239         (MMXMODE): Add V1DI mode.
13240         (mmxvecsize): Change DI mode to V1DI mode.
13241         ("mov<mode>): Use MMXMODEI8 mode iterator.
13242         ("*mov<mode>_internal_rex64"): Ditto.
13243         ("*mov<mode>_internal"): Ditto.
13244         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
13245         ("mmx_sub<mode>3"): Ditto.
13246         ("mmx_adddi3"): Remove insn pattern.
13247         ("mmx_subdi3"): Ditto.
13248         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
13249         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
13250         ("mmx_ashl<mode>3"): Ditto.
13251         ("mmx_lshrdi3"): Remove insn pattern.
13252         ("mmx_ashldi3"): Ditto.
13253         * config/i386/i386.c (classify_argument): Handle V1DImode.
13254         (function_arg_advance_32): Ditto.
13255         (function_arg_32): Ditto.
13256         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
13257         mmx_addv1di3 insn pattern.
13258         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
13259         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
13260         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
13261         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
13262         Remove definitions of built-in functions.
13263         (V1DI_type_node): New node.
13264         (v1di_ftype_v1di_int): Ditto.
13265         (v1di_ftype_v1di_v1di): Ditto.
13266         (v2si_ftype_v2si_si): Ditto.
13267         (v4hi_ftype_v4hi_di): Remove node.
13268         (v2si_ftype_v2si_di): Ditto.
13269         (ix86_init_mmx_sse_builtins): Handle V1DImode.
13270         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
13271         Redefine builtins using def_builtin_const with *_ftype_*_int node.
13272         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
13273         Add new builtins using def_builtin_const.
13274         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
13275         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
13276         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
13277         * config/i386/mmintrin.h (__v1di): New typedef.
13278         (_mm_add_si64): Cast arguments to __v1di type.
13279         (_mm_sub_si64): Ditto.
13280         (_mm_sll_pi16): Cast __count to __v4hi type.
13281         (_mm_sll_pi32): Cast __count to __v2si type.
13282         (_mm_sll_si64): Cast arguments to __v1di type.
13283         (_mm_srl_pi16): Cast __count to __v4hi type.
13284         (_mm_srl_pi32): Cast __count to __v2si type.
13285         (_mm_srl_si64): Cast arguments to __v1di type.
13286         (_mm_sra_pi16): Cast __count to __v4hi type.
13287         (_mm_sra_pi32): Cast __count to __v2si type.
13288         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
13289         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
13290         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
13291         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
13292         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
13293         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
13294         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
13295         (_mm_srai_pi32): Use __builtin_ia32_psradi.
13296         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
13297         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13298         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13299         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
13300
13301 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
13302
13303         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
13304
13305 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
13306
13307         PR target/35373
13308         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
13309         reg+const addressing for Altivec modes.  Don't generate reg+reg
13310         addressing for TFmode or TDmode quantities.
13311
13312 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
13313
13314         * c-common.c (vector_types_convertible_p): Call langhook
13315         instead of comptypes.
13316
13317 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13318
13319         PR tree-opt/35402
13320         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
13321         integral and scalar float variables which have a
13322         NULL DECL_INITIAL.
13323
13324 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
13325
13326         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
13327         dwarf_register_span hook when emitting unwind information for
13328         register-to-memory saves.
13329         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
13330         (rs6000_frame_related): Remove call to spe_synthesize_frame.
13331
13332 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
13333
13334         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
13335         for the same VAR_DECL.
13336
13337 2008-03-06  Tom Tromey  <tromey@redhat.com>
13338
13339         * treelang: Delete.
13340         * doc/standards.texi (Standards): Don't mention treelang.
13341         * doc/invoke.texi (Overall Options): Don't mention treelang.
13342         * doc/install.texi (Prerequisites): Don't mention bison or
13343         treelang.
13344         (Configuration): Don't mention treelang.
13345         (Building): Likewise.
13346         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
13347
13348 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
13349
13350         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
13351         word-extractions out of a multi-word object.
13352
13353 2008-03-06  Richard Guenther  <rguenther@suse.de>
13354
13355         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
13356         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
13357         result type and precision.
13358         * expr.c (get_inner_reference): Set unsignedp based on the result
13359         type of BIT_FIELD_REF.
13360         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
13361         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
13362         (try_instantiate_multiple_fields): Likewise.  Use the correct type
13363         for BIT_FIELD_REF.
13364         (sra_build_assignment): Likewise.
13365         (sra_build_elt_assignment): Likewise.
13366         (sra_explode_bitfield_assignment): Likewise.
13367         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
13368         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
13369         set BIT_FIELD_REF_UNSIGNED.
13370         (vectorizable_load): Likewise.
13371
13372 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
13373
13374         * cse.c (cse_extended_basic_block): Invalidate artificial defs
13375         at bb start.
13376
13377 2008-03-06  Richard Guenther  <rguenther@suse.de>
13378
13379         * alias.c (struct alias_set_entry): Move has_zero_child field
13380         to pack with alias_set.
13381
13382 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13383
13384         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13385         32bit host.
13386
13387 2008-03-05  Ian Lance Taylor  <iant@google.com>
13388
13389         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
13390
13391 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
13392
13393         * fwprop.c (update_df): Support width and offset parameters of
13394         df_ref_create.
13395         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
13396         global_conflicts): Change DF_REF_EXTRACT to either
13397         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13398         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13399         * df-scan.c (df_ref_record, df_defs_record,
13400         df_ref_create_structure, df_def_record_1, df_uses_record,
13401         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
13402         df_bb_refs_collect, df_entry_block_defs_collect,
13403         df_exit_block_uses_collect): Support new width and offset fields.
13404         (ref_extract_pool): New storage pool.
13405         (df_free_ref): New function.
13406         (df_reg_chain_unlink, df_free_collection_rec,
13407         df_sort_and_compress_refs): Call df_free_ref.
13408         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
13409         of df_ref_extract.
13410         (df_ref_create_structure): Allocate df_ref_extract if offset and
13411         width fields are used.
13412         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
13413         (df_uses_record): Get offset and width from ZERO_EXTRACT
13414         and SIGN_EXTRACT.
13415         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
13416         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13417         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13418         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
13419         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13420         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13421         (df_ref_extract): New structure.
13422         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
13423         (df_ref_create): Add width and offset parameters.
13424
13425 2008-03-05  Richard Guenther  <rguenther@suse.de>
13426
13427         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13428         Use ranges_overlap_p.
13429         (offset_overlaps_with_access): Rename
13430         to ranges_overlap_p and move ...
13431         * tree-flow-inline.h (ranges_overlap_p): ... here.
13432
13433         * tree.h (get_inner_reference, handled_component_p): Update
13434         comments.
13435
13436         * tree.h (record_component_aliases, get_alias_set,
13437         alias_sets_conflict_p, alias_sets_must_conflict_p,
13438         objects_must_conflict_p): Move declarations ...
13439         * alias.h (record_component_aliases, get_alias_set,
13440         alias_sets_conflict_p, alias_sets_must_conflict_p,
13441         objects_must_conflict_p): ... here.
13442         Include coretypes.h.
13443         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
13444
13445 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
13446
13447         * cfg.c: Include tree-flow.h.
13448         (remove_edge_raw): Call redirect_edge_var_map_clear.
13449         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
13450         * tree-flow-inline.h (redirect_edge_var_map_def): New.
13451         (redirect_edge_var_map_result): New.
13452         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
13453         PENDING_STMT use with redirect_edge_var_map_*.
13454         * tree-ssa.c (edge_var_maps): New definition.
13455         (redirect_edge_var_map_add): New.
13456         (redirect_edge_var_map_clear): New.
13457         (redirect_edge_var_map_dup): New.
13458         (redirect_edge_var_map_vector): New.
13459         (redirect_edge_var_map_destroy): New.
13460         (ssa_redirect_edge): Replace PENDING_STMT use with
13461         redirect_edge_var_map_*.
13462         (flush_pending_stmts): Same.
13463         (delete_tree_ssa): Destroy edge var map.
13464         * tree-flow.h (struct _edge_var_map): New.
13465         Define edge_var_map vector type.
13466         Declare redirect_edge_var_map_* prototypes.
13467         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
13468         * tree-cfg.c (reinstall_phi_args): Replace
13469         PENDING_STMT use with redirect_edge_var_map_*.
13470
13471 2008-03-05  Richard Guenther  <rguenther@suse.de>
13472
13473         PR tree-optimization/35472
13474         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
13475         whose single use_stmt has a overlapping set of loaded and
13476         stored symbols as that use_stmt might be a noop assignment then.
13477
13478 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
13479
13480         * gthr-rtems.h: Implement __gthread_mutex_destroy.
13481
13482 2008-03-05  Richard Guenther  <rguenther@suse.de>
13483
13484         PR c++/35336
13485         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
13486         should be constants.
13487         * tree-cfg.c (verify_expr): Verify it.
13488         * fold-const.c (fold_truthop): Remove code generating
13489         BIT_FIELD_REFs of structure bases.
13490         (fold_binary): Likewise.
13491         (fold_ternary): Position and size of BIT_FIELD_REFs are
13492         always host integers.
13493         (make_bit_field_ref): Remove.
13494         (optimize_bit_field_compare): Remove.
13495         (all_ones_mask_p): Remove.
13496
13497 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
13498
13499         PR gcc/33009
13500         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
13501         (split_block_and_df_analyze): New. Split basic block and rebuild
13502         dataflow.
13503         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
13504         SPLIT_BLOCK.
13505         (split_pattern_seq): Likewise.
13506         (erase_matching_seqs): Likewise.
13507         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
13508
13509 2008-03-04  Geoff Keating  <geoffk@apple.com>
13510
13511         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
13512         declaration and code.
13513         (tree_invalid_nonnegative_warnv_p): Likewise.
13514
13515 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
13516
13517         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
13518         examples.  Truncate option-names then causing overfull hbox.
13519
13520 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13521
13522         PR target/35222
13523         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
13524         on hpux10.
13525         * configure: Rebuilt.
13526
13527 2008-03-04  Rafael Espindola  <espindola@google.com>
13528
13529         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
13530         (tree_unary_nonnegative_warnv_p): New.
13531         (tree_binary_nonnegative_warnv_p): New.
13532         (tree_single_nonnegative_warnv_p): New.
13533         (tree_invalid_nonnegative_warnv_p): New.
13534         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
13535
13536 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13537
13538         PR 28322
13539         * opts.c (handle_option): Postpone 'unknown option' errors only for
13540         warning options.
13541
13542 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13543
13544         PR target/35453
13545         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
13546         (_SIDD_XXX): This.
13547
13548 2008-03-04  Rafael Espindola  <espindola@google.com>
13549
13550         * fold-const.c (tree_unary_nonzero_warnv_p): New.
13551         (tree_binary_nonzero_warnv_p): New.
13552         (tree_single_nonzero_warnv_p): New.
13553         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
13554
13555 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
13556
13557         PR middle-end/35456
13558         * fold-const.c (fold_cond_expr_with_comparison): Prevent
13559         transformations for modes that have signed zeros.
13560         * ifcvt.c (noce_try_abs): Ditto.
13561
13562 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
13563
13564         * config/i386/i386.c (override_options): Force
13565         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
13566
13567 2008-03-04  Jan Hubicka  <jh@suse.cz>
13568
13569         PR c++/35262
13570         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
13571         in last commit.
13572
13573 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13574
13575         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
13576         label to probe the stack.
13577
13578 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13579
13580         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
13581         (__gthr_win32_mutex_destroy): Declare.
13582         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
13583         __gthr_win32_mutex_destroy.
13584         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
13585
13586 2008-03-03  Jan Hubicka  <jh@suse.cz>
13587
13588         PR c++/35262
13589         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
13590         aggressive on inlining cold calls.
13591
13592 2008-03-03  Richard Guenther  <rguenther@suse.de>
13593
13594         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
13595         struct copies into the expression table.
13596         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
13597         (try_to_simplify): Likewise.
13598         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13599         integral and pointer arguments which do not change the
13600         precision to NOP_EXPRs.
13601         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13602         VIEW_CONVERT_EXPR case.
13603
13604 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
13605
13606         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13607         defined in a loop at depth 0 is invariant.
13608         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13609         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13610         be called at loop depth 0.
13611
13612 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
13613
13614         PR driver/35420
13615         * gcc.c (process_command): Update copyright notice dates.
13616         * gcov.c (print_version): Likewise.
13617         * gcov-dump.c (print_version): Likewise.
13618         * mips-tfile.c (main): Likewise.
13619         * mips-tdump.c (main): Likewise.
13620
13621 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13622
13623         PR 24924
13624         * c-common.c (flag_permissive): Delete.
13625         (constant_expression_warnings): Check flags first.
13626         (constant_expression_error): New.
13627         * c-common.h (flag_permissive): Delete.
13628         (constant_expression_error): Declare.
13629         * flags.h (flag_permissive): Declare. Update description.
13630         * diagnostic.c (pedwarn): Update.
13631         (permerror): New.
13632         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
13633         (permissive_error_kind): New.
13634         * toplev.c (flag_permissive): Define. Update description.
13635         * toplev.h (permissive_error_kind): Declare.
13636         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
13637         (pedwarn_c90): Use pedantic_warning_kind.
13638         * c-opts.c (c_common_post_options): flag_permissive does not affect
13639         flag_pedantic_errors.
13640
13641 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
13642
13643         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
13644         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
13645         __absvsi2, __absvDI2): Use unsigned arithmetic.
13646
13647 2008-03-02  Andi Kleen  <ak@suse.de>
13648             Richard Guenther  <rguenther@suse.de>
13649
13650         * struct-equiv.c: Remove file.
13651         * cfg_cleanup.c (condjump_equiv_p): Remove.
13652         * Makefile.in (OBJS-common): Remove struct-equiv.o.
13653         (struct-equiv.o): Remove rule.
13654         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
13655         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
13656         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
13657
13658 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13659
13660         * ifcvt.c (noce_process_if_block): Try to handle only the then
13661         block if the else block exists but isn't suitable.
13662
13663 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13664
13665         PR gcc/35063
13666         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
13667         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
13668         regression from previous patch.
13669
13670 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13671
13672         PR gcc/35063
13673         * gthr.h: Add __gthread_mutex_destroy as a function that must be
13674         implemented.
13675         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
13676         * gthr-single.h (__gthread_mutex_destroy): Likewise.
13677         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
13678         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
13679         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
13680         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
13681         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
13682         (__gthread_mutex_destroy_function): Rename to
13683         __gthread_mutex_destroy.
13684         * gthr-dce.h (__gthread_mutex_destroy): Call
13685         pthread_mutex_destroy.
13686         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
13687         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
13688         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
13689
13690 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13691
13692         * df-scan.c (df_ref_chain_change_bb): Simplify.
13693         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
13694         set_block_for_insn if there's any change.
13695         * df.h ((df_insn_change_bb): Fix prototype.
13696         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
13697         df_insn_change_bb, don't call set_block_for_insn.
13698         * emit-rtl.c (reorder_insns): Likewise.
13699         * haifa-sched.c (move_insn): Likewise.
13700
13701 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13702
13703         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
13704
13705 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13706
13707         * tree-flow-inline.h (next_readonly_imm_use): Return
13708         NULL_USE_OPERAND_P after the end.
13709
13710 2008-03-01  Richard Guenther  <rguenther@suse.de>
13711
13712         PR tree-optimization/35411
13713         * tree-sra.c (sra_build_assignment): Split conversion to
13714         final type to a separate statement if we are not assigning
13715         to a register.
13716
13717 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13718
13719         * fold-const.c (fold_convertible_p): Correct the logic to follow
13720         that in fold_convert().
13721
13722 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
13723
13724         PR c++/35315
13725         * tree-inline.c (build_duplicate_type): When we make a
13726         duplicate type, make it unique in the canonical types system.
13727
13728 2008-02-29  Tom Tromey  <tromey@redhat.com>
13729
13730         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
13731         input_file_stack_history, input_file_stack_restored): Remove.
13732         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13733         * input.h (struct file_stack): Remove.
13734         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13735         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
13736         Likewise.
13737         * diagnostic.h (struct diagnostic_context) <last_module>: Change
13738         type.
13739         (diagnostic_last_module_changed): Add 'map' argument.
13740         (diagnostic_set_last_function): Likewise.
13741         * diagnostic.c (undiagnostic_report_current_module): Iterate using
13742         line map, not input_file_stack.
13743         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
13744
13745 2008-02-29  Paul Brook  <paul@codesourcery.com>
13746
13747         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
13748
13749 2008-02-29  Paul Brook  <paul@codesourcery.com>
13750
13751         * config/arm/ieee754-df.S (muldf3): Use RET macros.
13752
13753 2008-02-29  Richard Guenther  <rguenther@suse.de>
13754
13755         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
13756         vn_lookup_or_add.
13757         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
13758         value for comparing for a store match.
13759         (simplify_unary_expression): Do nothing for SSA_NAMEs.
13760         (try_to_simplify): Do not do a full-blown reference lookup.
13761
13762 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13763
13764         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
13765         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
13766
13767         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
13768
13769 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
13770
13771         * tree-loop-linear.c (try_interchange_loops): Compare memory access
13772         strides against cache sizes.
13773
13774 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13775
13776         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
13777         constant to fpul.
13778
13779 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
13780
13781         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
13782         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
13783         is smaller than the original promoted value.
13784         (simplify_subreg): If OP is a SUBREG, try to preserve its
13785         SUBREG_PROMOTED_VAR_P information.
13786
13787 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
13788
13789         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
13790         (VN_INFO_GET): Allocate new objects on the obstack.
13791         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
13792         for rpo_numbers_temp, for consistency.
13793         (free_scc_vn): Free the obstack.
13794
13795 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
13796
13797         * doc/invoke.texi: Document -ftree-loop-distribution.
13798         * tree-loop-distribution.c: New.
13799         * tree-pass.h (pass_loop_distribution): New.
13800         * graphds.h (struct graph): Add htab_t indices.
13801         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
13802         * tree-vectorizer.c (rename_variables_in_loop): Extern.
13803         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
13804         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
13805         * tree-data-ref.c (debug_data_dependence_relations): New.
13806         (dump_data_dependence_relation): Also print data references.
13807         (free_data_ref): Extern.
13808         (same_access_functions): Moved...
13809         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
13810         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13811         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
13812         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
13813         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
13814         (stmts_from_loop): Skip LABEL_EXPR.
13815         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
13816         New.
13817         (build_rdg): Initialize rdg->indices htab.
13818         (free_rdg, stores_from_loop, ref_base_address,
13819         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
13820         have_similar_memory_accesses_1, ref_base_address_1,
13821         remove_similar_memory_refs): New.
13822         * tree-data-ref.h: Depend on tree-chrec.h.
13823         (debug_data_dependence_relations, free_data_ref): Declared.
13824         (same_access_functions): ... here.
13825         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
13826         New.
13827         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
13828         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
13829         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
13830         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13831         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
13832         rdg_vertex_for_stmt): Declared.
13833         (struct rdg_edge): Add level.
13834         (RDGE_LEVEL): New.
13835         (free_rdg, stores_from_loop, remove_similar_memory_refs,
13836         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
13837         Declared.
13838         (rdg_has_similar_memory_accesses): New.
13839         * tree-vect-analyze.c: Remove unused static decls.
13840         * lambda.h (dependence_level): New.
13841         * common.opt (ftree-loop-distribution): New.
13842         * tree-flow.h (mark_virtual_ops_in_bb,
13843         slpeel_tree_duplicate_loop_to_edge_cfg,
13844         rename_variables_in_loop): Declared.
13845         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
13846         (OBJS-common): Add tree-loop-distribution.o.
13847         (tree-loop-distribution.o): New rule.
13848         * tree-cfg.c (mark_virtual_ops_in_bb): New.
13849         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
13850         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
13851
13852 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
13853
13854         PR target/33963
13855         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
13856         other than structures and unions.
13857
13858 2008-02-28  Richard Guenther  <rguenther@suse.de>
13859
13860         Revert:
13861         2008-02-26  Richard Guenther  <rguenther@suse.de>
13862
13863         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13864         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13865         (lookup_decl_from_uid): Declare.
13866         (remove_decl_from_map): Likewise.
13867         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13868         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13869         (decl_for_uid_map): New global hashtable mapping DECL_UID
13870         to the decl tree.
13871         (init_ttree): Allocate it.
13872         (insert_decl_to_uid_decl_map): New helper function.
13873         (make_node_stat): Insert new decls into the map.
13874         (copy_node_stat): Likewise.
13875         (lookup_decl_from_uid): New function.
13876         (remove_decl_from_map): Likewise.
13877         (print_decl_for_uid_map_statistics): New helper.
13878         (dump_tree_statistics): Call it.
13879
13880         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13881         (referenced_var_iterator): Adjust.
13882         (FOR_EACH_REFERENCED_VAR): Adjust.
13883         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13884         (num_referenced_vars): Adjust.
13885         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13886         (first_referenced_var): Remove.
13887         (end_referenced_vars_p): Likewise.
13888         (next_referenced_var): Likewise.
13889         (referenced_var_iterator_set): New helper function.
13890         * tree-dfa.c (referenced_var_lookup): Adjust.
13891         (referenced_var_check_and_insert): Likewise.
13892         (remove_referenced_var): Likewise.
13893         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13894         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13895         (verify_call_clobbering): Likewise.
13896         (verify_memory_partitions): Likewise.
13897         (init_tree_ssa): Allocate bitmap instead of hashtable for
13898         referenced_vars.
13899         (delete_tree_ssa): Adjust.
13900         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13901         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13902         (compute_tag_properties): Likewise.
13903         (set_initial_properties): Likewise.
13904         (find_partition_for): Likewise.
13905         (update_reference_counts): Likewise.
13906         (dump_may_aliases_for): Likewise.
13907         * tree-ssa-operands.c (add_virtual_operand): Likewise.
13908         (add_call_clobber_ops): Likewise.
13909         (add_call_read_ops): Likewise.
13910         (get_asm_expr_operands): Likewise.
13911         * tree-into-ssa.c (dump_decl_set): Likewise.
13912         (update_ssa): Likewise.
13913         * tree-sra.c (scan_function): Likewise.
13914         (decide_instantiations): Likewise.
13915         (scalarize_parms): Likewise.
13916         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13917         (dsa_named_for): Likewise.
13918         * tree-ssa-structalias.c (update_alias_info): Likewise.
13919         (merge_smts_into): Likewise.
13920
13921 2008-02-27  David Daney  <ddaney@avtrex.com>
13922
13923         PR target/34409
13924         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
13925         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
13926         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
13927         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
13928         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
13929
13930 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
13931
13932         PR target/25477
13933         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
13934         (BUILT_IN_NEXTTOWARD): Remove.
13935         (BUILT_IN_NEXTTOWARDF): Ditto.
13936         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
13937         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
13938
13939 2008-02-27  Tom Tromey  <tromey@redhat.com>
13940
13941         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
13942         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
13943
13944 2008-02-27  Jan Beulich  <jbeulich@novell.com>
13945
13946         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
13947         update the respective field on newdecl.
13948
13949 2008-02-27  Revital Eres  <eres@il.ibm.com>
13950
13951         PR rtl-optimization/34999
13952         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
13953         crossing edges that ends with a call insn.
13954         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
13955         call insn and clear the EDGE_CROSSING flag of the crossing edge
13956         when fixing fallthru edges.
13957
13958 2008-02-27  Richard Guenther  <rguenther@suse.de>
13959
13960         PR middle-end/35390
13961         * fold-const.c (fold_unary): Return the correct argument,
13962         converted to the result type.
13963
13964 2008-02-27  Richard Guenther  <rguenther@suse.de>
13965
13966         PR middle-end/34971
13967         * expr.c (expand_expr_real_1): Assert on rotates that operate
13968         on partial modes.
13969         * fold-const.c (fold_binary): Use the types precision, not the
13970         bitsize of the mode if folding rotate expressions.  Build rotates
13971         only for full modes.
13972
13973 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
13974
13975         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
13976         and CPP_PRAGMA_EOL.
13977         * c-pragma.c (pragma_ns_name): New typedef.
13978         (registered_pp_pragmas): New variable.
13979         (c_pp_lookup_pragma): New function.
13980         (c_register_pragma_1): If flag_preprocess_only, do nothing
13981         for non-expanded pragmas, for expanded ones push pragma's
13982         namespace and name into registered_pp_pragmas vector.
13983         (c_invoke_pragma_handler): Register OpenMP pragmas even when
13984         flag_preprocess_only, don't register GCC pch_preprocess
13985         pragma if flag_preprocess_only.
13986         * c-opts.c (c_common_init): Call init_pragma even if
13987         flag_preprocess_only.
13988         * c-pragma.c (c_pp_lookup_pragma): New prototype.
13989         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
13990         cpp_register_pragma if flag_preprocess_only.
13991
13992 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13993
13994         PR c/28800
13995         * c-parser.c (c_parser_translation_unit): Warn for empty
13996         translation unit, not empty source file.
13997
13998 2008-02-26  Paul Brook  <paul@codesourcery.com>
13999
14000         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
14001         operand for Thumb-2.
14002         * config/arm/arm.h (reg_class): Add CORE_REGS.
14003         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
14004         (BASE_REG_CLASS): Use CORE_REGS.
14005         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
14006         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
14007         (REGNO_OK_FOR_INDEX_P): Exclude SP.
14008         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
14009         ARM_REGNO_OK_FOR_INDEX_P.
14010         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
14011         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
14012         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
14013         (ldm/stm peepholes): Ditto.
14014         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
14015         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
14016         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
14017         * config/arm/constraints.md: Enable "k" constraint on ARM.
14018
14019 2008-02-27  Ben Elliston  <bje@au.ibm.com>
14020
14021         * config/rs6000/rs6000.c: Annotate cache line size field in all
14022         instances of struct processor_costs.
14023
14024 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
14025
14026         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
14027         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
14028         jump_bypass): New counters.
14029         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
14030         * dce.c (gate_ud_dce): Same.
14031         (gate_fast_dce): Same.
14032         * dse.c (gate_dse1): New function.
14033         (gate_dse2): New function.
14034         (gate_dse): Merge results of new gate functions.
14035         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
14036         (gate_handle_jump_bypass): Add dbg_cnt.
14037         (gate_handle_gcse): Add dbg_cnt.
14038         * ifcvt.c (gate_handle_if_conversion): Same.
14039         (gate_handle_if_after_combine): Same.
14040         (gate_handle_if_after_reload): Same.
14041         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
14042
14043 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
14044
14045         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
14046         line sizes.
14047         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
14048
14049 2008-02-26  Jason Merrill  <jason@redhat.com>
14050
14051         PR c++/35315
14052         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
14053         alone if it's the naming decl for the type's main variant.
14054
14055 2008-02-26  Tom Tromey  <tromey@redhat.com>
14056
14057         * system.h (USE_MAPPED_LOCATION): Poison.
14058         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
14059         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
14060         (make_goto_expr_edges): Likewise.
14061         (remove_bb): Likewise.
14062         (execute_warn_function_return): Likewise.
14063         * basic-block.h (struct edge_def) <goto_locus>: Change type to
14064         location_t.
14065         * c-common.c (fname_decl): Remove old location code.
14066         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
14067         location code.
14068         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
14069         variant.
14070         (ASM_INPUT_SOURCE_LOCATION): Likewise.
14071         (gen_rtx_ASM_INPUT): Likewise.
14072         (gen_rtx_ASM_INPUT_loc): Likewise.
14073         (get_rtx_asm_OPERANDS): Remove.
14074         * cfglayout.c (insn_locators_alloc): Remove old location code.
14075         (set_curr_insn_source_location): Likewise.
14076         (curr_insn_locator): Likewise.
14077         * print-tree.c (print_node): Remove old location code.
14078         * tree-mudflap.c (mf_varname_tree): Remove old location code.
14079         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
14080         * cfgexpand.c (expand_gimple_cond_expr): Don't use
14081         location_from_locus.
14082         (construct_exit_block): Remove old location code.
14083         * emit-rtl.c (force_next_line_note): Remove old location code.
14084         * profile.c (branch_prob): Remove old location code.
14085         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
14086         LOC_LINE): Remove old-location variants.
14087         * langhooks.c (lhd_print_error_function): Remove old location
14088         code.
14089         * configure, config.in: Rebuilt.
14090         * configure.ac (--enable-mapped-location): Remove.
14091         * c-decl.c (c_init_decl_processing): Remove old location code.
14092         (finish_function): Likewise.
14093         * recog.c (decode_asm_operands): Remove old location code.
14094         * c-pch.c (c_common_read_pch): Remove old location code.
14095         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
14096         variants.
14097         * gimple-low.c (lower_function_body): Remove old location code.
14098         * toplev.c (unknown_location): Remove.
14099         (push_srcloc): Remove old-location variant.
14100         (process_options): Remove old location code.
14101         (lang_dependent_init): Likewise.
14102         * input.h (UNKNOWN_LOCATION): Move definition.
14103         (location_t): Undeprecate.
14104         (source_locus): Remove.
14105         (location_from_locus): Remove.
14106         (struct location_s): Remove.
14107         Remove all old-location code.
14108         (input_line, input_filename): Remove.
14109         * final.c (final_scan_insn): Remove old location code.
14110         * diagnostic.c (diagnostic_build_prefix): Remove
14111         USE_MAPPED_LOCATION test.
14112         * tree.h (gimple_stmt) <locus>: Now a location_t.
14113         (tree_exp) <locus>: Likewise.
14114         (DECL_IS_BUILTIN): Remove old-location variant.
14115         (annotate_with_file_line, annotate_with_locus): Likewise.
14116         (expr_locus, set_expr_locus): Update.
14117         * tree.c (build1_stat): Remove old location code.
14118         (last_annotated_node): Remove.
14119         (annotate_with_file_line): Remove old-location variant.
14120         (annotate_with_locus): Likewise.
14121         (expr_location): Remove old location code.
14122         (set_expr_location): Likewise.
14123         (expr_has_location): Likewise.
14124         (expr_locus): Likewise.
14125         (set_expr_locus): Likewise.
14126         (expr_filename): Don't use location_from_locus.
14127         (expr_lineno): Likewise.
14128         * rtl-error.c (location_for_asm): Remove old location code.
14129         * c-lex.c (cb_line_change): Remove old location code.
14130         (fe_file_change): Likewise.
14131         (cb_def_pragma): Likewise.
14132         (c_lex_with_flags): Likewise.
14133         * gengtype.c (do_typedef): Don't special-case location types.
14134         (define_location_structures): Remove.
14135         (main): Don't call define_location_structures.
14136         * tree-pretty-print.c (dump_implicit_edges): Remove old location
14137         code.
14138
14139 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14140
14141         PR 26264
14142         * builtins.def (BUILT_IN_STDARG_START): Remove.
14143         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
14144         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
14145         * tree-inline.c (inline_forbidden_p_1): Likewise.
14146
14147 2008-02-26  Richard Guenther  <rguenther@suse.de>
14148
14149         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14150         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14151         (lookup_decl_from_uid): Declare.
14152         (remove_decl_from_map): Likewise.
14153         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14154         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14155         (decl_for_uid_map): New global hashtable mapping DECL_UID
14156         to the decl tree.
14157         (init_ttree): Allocate it.
14158         (insert_decl_to_uid_decl_map): New helper function.
14159         (make_node_stat): Insert new decls into the map.
14160         (copy_node_stat): Likewise.
14161         (lookup_decl_from_uid): New function.
14162         (remove_decl_from_map): Likewise.
14163         (print_decl_for_uid_map_statistics): New helper.
14164         (dump_tree_statistics): Call it.
14165
14166         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14167         (referenced_var_iterator): Adjust.
14168         (FOR_EACH_REFERENCED_VAR): Adjust.
14169         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14170         (num_referenced_vars): Adjust.
14171         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14172         (first_referenced_var): Remove.
14173         (end_referenced_vars_p): Likewise.
14174         (next_referenced_var): Likewise.
14175         (referenced_var_iterator_set): New helper function.
14176         * tree-dfa.c (referenced_var_lookup): Adjust.
14177         (referenced_var_check_and_insert): Likewise.
14178         (remove_referenced_var): Likewise.
14179         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14180         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14181         (verify_call_clobbering): Likewise.
14182         (verify_memory_partitions): Likewise.
14183         (init_tree_ssa): Allocate bitmap instead of hashtable for
14184         referenced_vars.
14185         (delete_tree_ssa): Adjust.
14186         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14187         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14188         (compute_tag_properties): Likewise.
14189         (set_initial_properties): Likewise.
14190         (find_partition_for): Likewise.
14191         (update_reference_counts): Likewise.
14192         (dump_may_aliases_for): Likewise.
14193         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14194         (add_call_clobber_ops): Likewise.
14195         (add_call_read_ops): Likewise.
14196         (get_asm_expr_operands): Likewise.
14197         * tree-into-ssa.c (dump_decl_set): Likewise.
14198         (update_ssa): Likewise.
14199         * tree-sra.c (scan_function): Likewise.
14200         (decide_instantiations): Likewise.
14201         (scalarize_parms): Likewise.
14202         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14203         (dsa_named_for): Likewise.
14204         * tree-ssa-structalias.c (update_alias_info): Likewise.
14205         (merge_smts_into): Likewise.
14206
14207 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14208
14209         PR 34351
14210         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
14211         * c-opts.c (c_common_handle_option): Wall enables
14212         Wvolatile-register-var.
14213         * common.opt: Move Wvolatile-register-var to...
14214         * c.opt: ...here.
14215
14216 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14217
14218         * common.opt (Wlarger-than=): New.
14219         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
14220         -Wlarger-than=.
14221         * opts.c (common_handle_option): Handle -Wlarger-than=.
14222         * optc-gen.awk: Likewise.
14223         * opth-gen.awk: Likewise.
14224         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
14225         * tree-optimize.c (tree_rest_of_compilation): Likewise.
14226
14227 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14228
14229         * c-common.c (match_case_to_enum_1): Add appropriate
14230         OPT_W* parameter to warning.
14231         (c_do_switch_warnings): Likewise.
14232         * c-typeck.c (warning_init): Add one more parameter following
14233         'warning' function.
14234         (push_init_level): Update call to warning_init.
14235         (pop_init_level): Likewise.
14236         (add_pending_init): Likewise.
14237         (output_init_element: Likewise.
14238
14239 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14240
14241         PR 28322
14242         * toplev.c (toplev_main): If there are warnings or error, print
14243         errors for ignored options.
14244         * opts.c (ignored_options): New static variable.
14245         (postpone_unknown_option_error): New.
14246         (print_ignored_options): New.
14247         (handle_option): Postpone errors for unknown -Wno-* options.
14248         * opts.h (print_ignored_options): Declare.
14249
14250 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
14251
14252         * config/mips/mips.md (loadgp_blockage, blockage): Change type
14253         to "ghost".
14254
14255 2008-02-25  Richard Guenther  <rguenther@suse.de>
14256
14257         Revert:
14258         2008-02-25  Richard Guenther  <rguenther@suse.de>
14259
14260         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14261         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14262         (lookup_decl_from_uid): Declare.
14263         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14264         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14265         (decl_for_uid_map): New global hashtable mapping DECL_UID
14266         to the decl tree.
14267         (init_ttree): Allocate it.
14268         (insert_decl_to_uid_decl_map): New helper function.
14269         (make_node_stat): Insert new decls into the map.
14270         (copy_node_stat): Likewise.
14271         (lookup_decl_from_uid): New function.
14272         (print_decl_for_uid_map_statistics): New helper.
14273         (dump_tree_statistics): Call it.
14274
14275         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14276         (referenced_var_iterator): Adjust.
14277         (FOR_EACH_REFERENCED_VAR): Adjust.
14278         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14279         (num_referenced_vars): Adjust.
14280         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14281         (first_referenced_var): Remove.
14282         (end_referenced_vars_p): Likewise.
14283         (next_referenced_var): Likewise.
14284         (referenced_var_iterator_set): New helper function.
14285         * tree-dfa.c (referenced_var_lookup): Adjust.
14286         (referenced_var_check_and_insert): Likewise.
14287         (remove_referenced_var): Likewise.
14288         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14289         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14290         (verify_call_clobbering): Likewise.
14291         (verify_memory_partitions): Likewise.
14292         (init_tree_ssa): Allocate bitmap instead of hashtable for
14293         referenced_vars.
14294         (delete_tree_ssa): Adjust.
14295         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14296         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14297         (compute_tag_properties): Likewise.
14298         (set_initial_properties): Likewise.
14299         (find_partition_for): Likewise.
14300         (update_reference_counts): Likewise.
14301         (dump_may_aliases_for): Likewise.
14302         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14303         (add_call_clobber_ops): Likewise.
14304         (add_call_read_ops): Likewise.
14305         (get_asm_expr_operands): Likewise.
14306         * tree-into-ssa.c (dump_decl_set): Likewise.
14307         (update_ssa): Likewise.
14308         * tree-sra.c (scan_function): Likewise.
14309         (decide_instantiations): Likewise.
14310         (scalarize_parms): Likewise.
14311         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14312         (dsa_named_for): Likewise.
14313         * tree-ssa-structalias.c (update_alias_info): Likewise.
14314         (merge_smts_into): Likewise.
14315
14316 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
14317
14318         PR fortran/29549
14319         * doc/invoke.texi (-fcx-limited-range): Document new option.
14320         * toplev.c (process_options): Handle -fcx-fortran-rules.
14321         * common.opt: Add documentation for -fcx-fortran-rules.
14322
14323 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
14324
14325         PR c/35162
14326         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
14327         actual behaviour and C99.
14328
14329 2008-02-26  Ben Elliston  <bje@au.ibm.com>
14330
14331         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
14332         (ASM_CPU_POWER6_SPEC): Likewise.
14333         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
14334         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
14335         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
14336
14337 2008-02-25  Richard Guenther  <rguenther@suse.de>
14338
14339         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14340         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14341         (lookup_decl_from_uid): Declare.
14342         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14343         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14344         (decl_for_uid_map): New global hashtable mapping DECL_UID
14345         to the decl tree.
14346         (init_ttree): Allocate it.
14347         (insert_decl_to_uid_decl_map): New helper function.
14348         (make_node_stat): Insert new decls into the map.
14349         (copy_node_stat): Likewise.
14350         (lookup_decl_from_uid): New function.
14351         (print_decl_for_uid_map_statistics): New helper.
14352         (dump_tree_statistics): Call it.
14353
14354         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14355         (referenced_var_iterator): Adjust.
14356         (FOR_EACH_REFERENCED_VAR): Adjust.
14357         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14358         (num_referenced_vars): Adjust.
14359         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14360         (first_referenced_var): Remove.
14361         (end_referenced_vars_p): Likewise.
14362         (next_referenced_var): Likewise.
14363         (referenced_var_iterator_set): New helper function.
14364         * tree-dfa.c (referenced_var_lookup): Adjust.
14365         (referenced_var_check_and_insert): Likewise.
14366         (remove_referenced_var): Likewise.
14367         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14368         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14369         (verify_call_clobbering): Likewise.
14370         (verify_memory_partitions): Likewise.
14371         (init_tree_ssa): Allocate bitmap instead of hashtable for
14372         referenced_vars.
14373         (delete_tree_ssa): Adjust.
14374         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14375         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14376         (compute_tag_properties): Likewise.
14377         (set_initial_properties): Likewise.
14378         (find_partition_for): Likewise.
14379         (update_reference_counts): Likewise.
14380         (dump_may_aliases_for): Likewise.
14381         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14382         (add_call_clobber_ops): Likewise.
14383         (add_call_read_ops): Likewise.
14384         (get_asm_expr_operands): Likewise.
14385         * tree-into-ssa.c (dump_decl_set): Likewise.
14386         (update_ssa): Likewise.
14387         * tree-sra.c (scan_function): Likewise.
14388         (decide_instantiations): Likewise.
14389         (scalarize_parms): Likewise.
14390         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14391         (dsa_named_for): Likewise.
14392         * tree-ssa-structalias.c (update_alias_info): Likewise.
14393         (merge_smts_into): Likewise.
14394
14395 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
14396
14397         PR target/35258
14398         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
14399         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
14400         * alias.h (nonoverlapping_memrefs_p): Likewise.
14401
14402 2008-02-25  Jan Beulich  <jbeulich@novell.com>
14403
14404         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
14405         * config/i386/netware-libgcc.exp: Add __bswap?i2,
14406         __emultls_get_address, __emultls_register_common,
14407         __floatundi?f, and _Unwind_GetIPInfo.
14408         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
14409         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
14410         (gen_regparm_prefix): Likewise.
14411         (i386_nlm_encode_section_info): Sync with
14412         config/i386/winnt.c:i386_pe_encode_section_info().
14413         (i386_nlm_maybe_mangle_decl_assembler_name): New.
14414         i386_nlm_mangle_decl_assembler_name): New.
14415         (netware_override_options): New.
14416         * config/i386/netware.h (netware_override_options): Declare.
14417         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
14418         (i386_nlm_mangle_decl_assembler_name): Declare.
14419         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
14420
14421 2008-02-25  Ben Elliston  <bje@au.ibm.com>
14422
14423         PR other/32948
14424         * c-decl.c (grokdeclarator): Remove unused local variables
14425         `typedef_type' and `type_as_written'.
14426         * bb-reorder.c
14427         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
14428         unused local variable `has_hot_blocks'.
14429         (fix_crossing_conditional_branches): Remove unused local variable
14430         `prev_bb'.
14431
14432 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
14433
14434         PR middle-end/19984
14435         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
14436         using DEF_C99_BUILTIN.
14437         (BUILT_IN_NANF): Ditto.
14438         (BUILT_IN_NANL): Ditto.
14439
14440 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
14441             Revital Eres  <eres@il.ibm.com>
14442
14443         * modulo-sched.c (calculate_must_precede_follow): Address TODO
14444         regarding the order of two dependent insns in the same row.
14445
14446 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
14447
14448         * stor-layout.c (layout_decl): Do not bump the alignment of a
14449         bit-field to more than byte alignment if it is packed.
14450
14451 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
14452
14453         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
14454         e300c2 and e300c3.
14455
14456 2008-02-24  Diego Novillo  <dnovillo@google.com>
14457
14458         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
14459
14460         PR 33738
14461         * tree-vrp.c (vrp_evaluate_conditional): With
14462         -Wtype-limits, emit a warning when comparing against a
14463         constant outside the natural range of OP0's type.
14464         * c.opt (Wtype-limits): Move ...
14465         * common.opt (Wtype-limits): ... here.
14466
14467 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
14468
14469         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
14470         * config/rs6000/e300c2c3.md: New file.
14471         * config/rs6000/rs6000.c (processor_costs): Add new costs for
14472         e300c2 and e300c3.
14473         (rs6000_override_options): Add e300c2 and e300c3 cases to
14474         processor_target_table. Do not allow usage of Altivec or Spe
14475         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
14476         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
14477         * config/rs6000/rs6000.h (processor_type): Add
14478         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
14479         (ASM_CPU_SPEC): Add e300c2 and e300c3.
14480         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
14481         and ppce300c3. Include e300c2c3.md.
14482
14483 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
14484
14485         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
14486         instead of TARGET_STRICT_ALIGN.
14487
14488 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
14489
14490         * explow.c (memory_address): Assert that the generated address is
14491         valid.
14492
14493 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
14494
14495         PR target/25477
14496         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
14497         * config/darwin-ppc-ldouble-patch.def: New file.
14498         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
14499         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
14500         SUBTARGET_INIT_BUILTINS if defined.
14501         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
14502         New functions.
14503
14504 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14505
14506         PR rtl-opt/33512
14507         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
14508         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
14509
14510 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14511
14512         PR pch/35027
14513         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
14514         file" warning condtional on -Winvalid-PCH.
14515
14516 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
14517
14518         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
14519
14520 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
14521
14522         PR target/22076
14523         PR target/34256
14524         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
14525         prevent reload from using MMX registers.
14526         (*mov<mode>_internal): Ditto.
14527         (*movv2sf_internal_rex64): Ditto.
14528         (*movv2sf_internal): Ditto.
14529
14530 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14531
14532         PR documentation/31569
14533         * doc/install.texi2html: Use makeinfo --no-number-sections.
14534
14535 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14536
14537         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
14538         ensure that we can address an entire entity > 8 bytes.  Don't
14539         generate reg+reg addressing for such data.
14540
14541 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14542
14543         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
14544         strings when optimizing for size, unless the target cares about
14545         alignment.
14546
14547 2008-02-22  Tom Tromey  <tromey@redhat.com>
14548
14549         * regclass.c (current_pass): Remove declaration.
14550
14551 2008-02-22  Anatoly Sokolov <aesok@post.ru>
14552
14553         * config/avr/libgcc.S (__RAMPZ__): Define.
14554         (__do_copy_data): Add for devices with 128KB code memory.
14555
14556 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14557
14558         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14559         Use spe_abi.
14560         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
14561
14562 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
14563
14564         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
14565         GENNONACR_REGS.
14566
14567 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14568
14569         PR c/19999
14570         * c-typeck.c (build_binary_op): Warn about floating point
14571         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
14572
14573 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
14574
14575         PR target/34526
14576         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
14577         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
14578         add vrsave.
14579         (rs6000_override_options): Set altivec_abi as default, not override,
14580         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
14581         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
14582         is used; use new member spe_abi.
14583         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
14584         spe_abi and altivec_abi.
14585
14586 2008-02-22  Tomas Bily  <tbily@suse.cz>
14587
14588         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
14589
14590 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14591
14592         PR bootstrap/35273
14593         * config.build (build_file_translate): Set to `CMD //c' only if
14594         it works.
14595         * Makefile.in (build_file_translate): Improve comment.
14596
14597 2008-02-21  Jan Hubicka  <jh@suse.cz>
14598
14599         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14600         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14601         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14602
14603 2008-02-21  Michael Matz  <matz@suse.de>
14604
14605         PR target/35264
14606         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14607
14608 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
14609
14610         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14611         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14612         as insn constraint.
14613         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14614         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14615         SSE_VEC_FLOAT_MODE_P as insn constraint.
14616         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14617         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14618         sse4a_movntdf using MODEF mode iterator.
14619         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14620         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14621         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14622         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14623         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14624         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14625         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14626
14627 2008-02-21  Richard Guenther  <rguenther@suse.de>
14628
14629         * tree.def (PAREN_EXPR): New tree code.
14630         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
14631         and PAREN_EXPR.
14632         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
14633         * expr.c (expand_expr_real_1): Likewise.
14634         * tree-inline.c (estimate_num_insns_1): Likewise.
14635         * tree-complex.c (expand_complex_move): Likewise.
14636         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
14637         as plain x.
14638
14639 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14640
14641         PR target/35225
14642         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
14643
14644 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14645
14646         PR target/35190
14647         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
14648
14649         * config/sh/sh.c (find_barrier): Don't go past
14650         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
14651
14652 2008-02-20  DJ Delorie  <dj@redhat.com>
14653
14654         * config/h8300/h8300.md (insv): Force source operand to be a register.
14655
14656         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
14657         as a jump, not as a plain insn.
14658
14659 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
14660
14661         * doc/invoke.texi (Warning Options): Add new option
14662         -Wframe-larger-than=.
14663         (-Wframe-larger-than): Document.
14664
14665         * flags.h (warn_frame_larger_than, frame_larger_than_size):
14666         Add declarations for new option variables.
14667
14668         * final.c (final_start_function): Check the frame size
14669         before emission and issue a Wframe-larger-than warning.
14670
14671         * opts.c (warn_frame_larger_than, frame_larger_than_size):
14672         Add definitions for new option variables.
14673         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
14674
14675         * common.opt (Wframe-larger-than=): New option.
14676
14677 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14678
14679         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
14680         (<sse>_div<mode>3): Ditto.
14681         (<sse>_vmdiv<mode>3): Ditto.
14682         (<sse>_vmsqrt<mode>2): Ditto.
14683         (*smax<mode>3): Ditto.
14684         (sse5_frcz<mode>2): Ditto.
14685         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
14686         as insn constraint.
14687
14688 2008-02-20  Richard Guenther  <rguenther@suse.de>
14689
14690         PR middle-end/35265
14691         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
14692         be happy with INTEGRAL_TYPE_P.
14693
14694 2008-02-20  Richard Guenther  <rguenther@suse.de>
14695
14696         * fold-const.c (split_tree): Associate floatig-point expressions
14697         if flag_associative_math is set.
14698
14699 2008-02-20  Richard Guenther  <rguenther@suse.de>
14700
14701         * tree.h (fold_real_zero_addition_p): Declare.
14702         * fold-const.c (fold_real_zero_addition_p): Export.
14703         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
14704         floating-point operations with zero and one.
14705
14706 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
14707
14708         * doc/install.texi: Correct references to CFLAGS, replacing them
14709         with BOOT_CFLAGS.  Document flags used during bootstrap for
14710         target libraries.
14711
14712 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14713
14714         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
14715         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
14716         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
14717         insn constraint.
14718         (smin<mode>3): Ditto from similar patterns.
14719         (smax<mode>3): Ditto.
14720         (*ieee_smin<mode>3): Ditto.
14721         (*ieee_smax<mode>3): Ditto.
14722         * config/i386/sse.md (sse): New mode attribute.
14723         (mov<mode>): Macroize expander from movv4sf and movv2df using
14724         SSEMODEF2P mode iterator.
14725         (<sse>_movnt<mode>): Ditto from similar patterns. Use
14726         SSE_VEC_FLOAT_MODE_P as insn constraint.
14727         (storent<mode>): Ditto.
14728         (storent<mode>): Macroize expander from storentsf and storentdf using
14729         MODEF mode iterator.
14730         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
14731         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
14732         (abs<mode>2): Ditto from similar patterns.
14733         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
14734         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
14735         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
14736         (<sse>_vmsqrt<mode>2): Ditto.
14737         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
14738         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
14739         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
14740         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
14741         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
14742         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
14743         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
14744         insn constraint.
14745         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
14746         iterator and SSE_FLOAT_MODE_P as insn constraint.
14747         (<sse>_ucomi): Ditto from similar patterns.
14748         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
14749         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
14750         SSE_VEC_FLOAT_MODE_P as insn constraint.
14751         (vcond<mode>): Ditto from similar patterns.
14752         (and<mode>3, *and<mode>3): Ditto.
14753         (<sse>_nand<mode>3): Ditto.
14754         (ior<mode>3, *ior<mode>3): Ditto.
14755         (xor<mode>3, *xor<mode>3): Ditto.
14756         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
14757         iterator and SSE_FLOAT_MODE_P as insn constraint.
14758         (*nand<mode>3): Ditto from similar patterns.
14759         (*ior<mode>3): Ditto.
14760         (*xor<mode>3): Ditto.
14761
14762 2008-02-20  Ira Rosen  <irar@il.ibm.com>
14763
14764         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
14765         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
14766         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
14767
14768 2008-02-19  Jan Hubicka  <jh@suse.cz>
14769
14770         * predict.c (tree_bb_level_predictions): Remove variable next
14771         mistakely introduced by previous commit.
14772
14773 2008-02-19  Jan Hubicka  <jh@suse.cz>
14774
14775         * predict.c (predict_paths_leading_to): Rewrite.
14776         (predict_paths_for_bb): New.
14777         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
14778
14779 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14780
14781         PR bootstrap/35218
14782         * Makefile.in (build_file_translate): New.
14783         (gcc-vers.texi): Use it for translating $(abs_srcdir).
14784         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
14785         * configure.ac (build_file_translate): Substitute it.
14786         * configure: Regenerate.
14787
14788 2008-02-19  Jan Hubicka  <jh@suse.cz>
14789
14790         PR rtl-optimization/34408
14791         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
14792         invalid sharing.
14793
14794 2008-02-19  Jan Hubicka  <jh@suse.cz>
14795
14796         PR middle-end/28779
14797         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
14798         call_expr.
14799
14800 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
14801
14802         PR Ada/35186
14803         * config/i386/i386-modes.def: Revert the last DI alignment
14804         change until Ada people can look into it.
14805
14806 2008-02-19  Nick Clifton  <nickc@redhat.com>
14807
14808         * opts.c (print_specific_help): Fix typo in --help text.
14809
14810 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
14811
14812         PR target/35239
14813         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
14814         32-bit inline asm without asm alternatives for host GCC < 3.0.
14815
14816 2008-02-19  Richard Guenther  <rguenther@suse.de>
14817
14818         PR tree-optimization/34989
14819         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
14820         Allow propagation to INDIRECT_REF if we can simplify only.
14821
14822 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14823
14824         * c-common.c (warn_for_collisions_1): Use appropriate option when
14825         warning.
14826
14827 2008-02-19  Nick Clifton  <nickc@redhat.com>
14828
14829         PR other/31349
14830         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
14831         (handle_options): Fix indentation.
14832         (print_filtered_help): If no language-specific options were
14833         displayed tell the user how to list all the options supported by
14834         the language's front-end.
14835         (print_specific_help): Fix indentation and remove duplicate line.
14836         (common_handle_option): Handle the -v option.
14837         For --help enable the display of undocumented options if the -v
14838         switch has been included on the command line.
14839         For --help= check for overlaps in the arguments between the option
14840         classes and the language names and issue a warning when they
14841         cannot be disambiguated.
14842         * c.opt (v): Pass on to the common option handler.
14843
14844 2008-02-19  Revital Eres  <eres@il.ibm.com>
14845
14846         * modulo-sched.c (sms_schedule): Change dump message when
14847         create_ddg function fails.
14848         (try_scheduling_node_in_cycle): Rename row to cycle.
14849         (print_partial_schedule): Rename CYCLE to ROW.
14850
14851 2008-02-19  Christian Bruel  <christian.bruel@st.com>
14852             Zdenek Dvorak  <ook@ucw.cz>
14853
14854         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
14855
14856 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14857
14858         PR target/33555
14859         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
14860         (*x86_movdicc_0_m1_se): Ditto.
14861
14862 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14863
14864         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
14865         (CMPtype): Define as __gcc_CMPtype.
14866         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
14867         (CMPtype): Define as __gcc_CMPtype.
14868
14869 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
14870
14871         Support valgrind 3.3 for --enable-checking=valgrind.
14872         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
14873         here.
14874         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
14875         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
14876         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
14877         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
14878         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
14879         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
14880         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
14881         respectively.
14882         * ggc-zone.c: Similar.
14883         * ggc-page.c: Similar.
14884
14885 2008-02-19  Paul Brook  <paul@codesourcery.com>
14886
14887         PR target/35071
14888         * config/arm/ieee754-df.S: Fix do_it typo.
14889         * config/arm/ieee754-sf.S: Fix do_it typo.
14890
14891 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14892
14893         PR target/35189
14894         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
14895         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
14896         (OPTION_MASK_ISA_SSE_SET): Likewise.
14897         (OPTION_MASK_ISA_SSE2_SET): Likewise.
14898         (OPTION_MASK_ISA_SSE3_SET): Likewise.
14899         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
14900         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
14901         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
14902         (OPTION_MASK_ISA_SSE4_SET): Likewise.
14903         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
14904         (OPTION_MASK_ISA_SSE5_SET): Likewise.
14905         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
14906         (OPTION_MASK_ISA_MMX_UNSET): Updated.
14907         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
14908         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
14909         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
14910         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
14911         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
14912         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
14913         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
14914         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
14915         (OPTION_MASK_ISA_SSE4): Removed.
14916         (ix86_handle_option): Turn on bits in ix86_isa_flags and
14917         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
14918         (override_options): Don't turn on implied SSE/MMX bits in
14919         ix86_isa_flags.
14920
14921 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14922
14923         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14924         32bit host.
14925
14926 2008-02-18  Joey Ye  <joey.ye@intel.com>
14927
14928         PR middle-end/34921
14929         * tree-nested.c (insert_field_into_struct): Set type alignment
14930         to field alignment if the former is less than the latter.
14931
14932 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
14933
14934         * BASE-VER: Set to 4.4.0.
14935
14936 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14937
14938         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
14939         * doc/cfg.texi: Likewise.
14940         * doc/extend.texi: Likewise.
14941         * doc/gty.texi: Likewise.
14942         * doc/invoke.texi: Likewise.
14943         * doc/loop.texi: Likewise.
14944         * doc/md.texi: Likewise.
14945         * doc/passes.texi: Likewise.
14946         * doc/rtl.texi: Likewise.
14947         * doc/sourcebuild.texi: Likewise.
14948         * doc/tm.texi: Likewise.
14949         * doc/tree-ssa.texi: Likewise.
14950
14951 2008-02-17  Richard Guenther  <rguenther@suse.de>
14952
14953         PR middle-end/35227
14954         * tree-complex.c (init_parameter_lattice_values): Handle parameters
14955         without default definition.
14956
14957 2008-02-17  Richard Guenther  <rguenther@suse.de>
14958
14959         PR tree-optimization/35231
14960         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
14961         if A | B != 1.
14962
14963 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
14964
14965         Revert:
14966         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14967         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14968         libgcc_cmp_return mode.
14969
14970 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14971
14972         PR c/28368
14973         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
14974
14975 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
14976
14977         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
14978         multilibs.
14979
14980 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14981
14982         * doc/c-tree.texi: Use `@.' where appropriate.
14983         * doc/extend.texi: Likewise.
14984         * doc/install.texi: Likewise.
14985         * doc/invoke.texi: Likewise.
14986         * doc/loop.texi: Likewise.
14987         * doc/makefile.texi: Likewise.
14988         * doc/md.texi: Likewise.
14989         * doc/passes.texi: Likewise.
14990         * doc/standards.texi: Likewise.
14991         * doc/tm.texi: Likewise.
14992
14993 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14994
14995         PR middle-end/35196
14996         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
14997         in entry_bb.
14998         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
14999         rather than in entry_bb.
15000
15001 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15002
15003         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15004         libgcc_cmp_return mode.
15005
15006 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
15007
15008         PR middle-end/35130
15009         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
15010         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
15011
15012 2008-02-15  Richard Guenther  <rguenther@suse.de>
15013             Zdenek Dvorak  <ook@ucw.cz>
15014
15015         PR tree-optimization/35164
15016         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
15017         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
15018         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
15019         Only propagate addresses which do not have abnormal SSA_NAMEs
15020         in their operands.
15021
15022 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
15023
15024         PR target/35088
15025         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
15026
15027 2008-02-15  Jan Hubicka  <jh@suse.cz>
15028
15029         PR middle-end/35149
15030         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
15031
15032 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15033
15034         PR middle-end/34621
15035         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
15036         when calculating alignment_pad.
15037
15038 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15039
15040         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
15041         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
15042         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
15043         and STACK_BOUNDARY define.
15044
15045 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
15046
15047         PR preprocessor/35061
15048         * c-pragma.c (handle_pragma_pop_macro): Check that
15049         pushed_macro_table has been allocated.
15050
15051 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
15052
15053         PR middle-end/35136
15054         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
15055         (force_gimple_operand): Likewise.
15056         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
15057         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
15058         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
15059         (find_interesting_uses_address): Check addressability and alignment
15060         of the base expression only after substituting bases of IVs into it.
15061
15062 2008-02-14  Michael Matz  <matz@suse.de>
15063
15064         PR target/34930
15065         * function.c (instantiate_virtual_regs_in_insn): Reload address
15066         before falling back to reloading the whole operand.
15067
15068 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
15069
15070         * config/s390/s390.c (s390_mainpool_start): Emit the pool
15071         before the first section switch note.
15072
15073 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15074
15075         * doc/bugreport.texi: Update copyright years.
15076         * doc/c-tree.texi: Likewise.
15077         * doc/cfg.texi: Likewise.
15078         * doc/cpp.texi: Likewise.
15079         * doc/cppinternals.texi: Likewise.
15080         * doc/fragments.texi: Likewise.
15081         * doc/frontends.texi: Likewise.
15082         * doc/gcc.texi: Likewise.
15083         * doc/gty.texi: Likewise.
15084         * doc/hostconfig.texi: Likewise.
15085         * doc/implement-c.texi: Likewise.
15086         * doc/libgcc.texi: Likewise.
15087         * doc/loop.texi: Likewise.
15088         * doc/makefile.texi: Likewise.
15089         * doc/options.texi: Likewise.
15090         * doc/passes.texi: Likewise.
15091         * doc/rtl.texi: Likewise.
15092         * doc/sourcebuild.texi: Likewise.
15093         * doc/standards.texi: Likewise.
15094         * doc/tree-ssa.texi: Likewise.
15095         * doc/trouble.texi: Likewise.
15096
15097         * doc/extend.texi: Use @: or add comma where appropriate.
15098         * doc/invoke.texi: Likewise.
15099         * doc/tm.texi: Likewise.
15100
15101 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
15102
15103         PR target/34393
15104         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
15105         to a reg.
15106
15107 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
15108
15109         * doc/md.texi (clz, ctz): Add reference.
15110         * doc/rtl.texi (clz, ctz): Likewise.
15111
15112 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15113
15114         PR other/35148
15115         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
15116         srcdir.
15117
15118 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
15119
15120         * config/s390/s390.c (struct constant_pool): New field
15121         emit_pool_after added.
15122         (s390_mainpool_start): Set the emit_pool_after flag according
15123         to the section switch notes.
15124         (s390_mainpool_finish): Consider emit_pool_after when emitting
15125         the literal pool at the end of the function.
15126         (s390_chunkify_start): Force literal pool splits at section
15127         switch notes.
15128
15129 2008-02-13  Michael Matz  <matz@suse.de>
15130
15131         PR debug/35065
15132         * var-tracking.c (clobber_variable_part): Correctly traverse the
15133         list.
15134
15135 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15136
15137         PR 29673
15138         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
15139         Add -fdump-ipa-inline.
15140         * tree-dump.c (dump_files): Remove tree-inlined dump.
15141         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
15142
15143 2008-02-12  Richard Guenther  <rguenther@suse.de>
15144
15145         PR tree-optimization/35171
15146         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
15147         default defs.
15148
15149 2008-02-12  Richard Guenther  <rguenther@suse.de>
15150
15151         PR middle-end/35163
15152         * fold-const.c (fold_widened_comparison): Use get_unwidened in
15153         value-preserving mode.  Disallow final truncation.
15154
15155 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
15156
15157         PR middle-end/35136
15158         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
15159         code from here to...
15160         (force_gimple_operand): ...here.
15161
15162 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
15163
15164         PR c++/35144
15165         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
15166         non-compatible pointers.
15167         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
15168         different FIELD_DECLs, try harder by comparing field offsets, sizes
15169         and types.
15170
15171         PR inline-asm/35160
15172         * function.c (match_asm_constraints_1): Don't replace the same input
15173         multiple times.
15174
15175 2008-02-12  Anatoly Sokolov <aesok@post.ru>
15176
15177         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
15178         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
15179         (expand_epilogue): Restore RAMPZ register.
15180         * config/avr/avr.md (RAMPZ_ADDR): New constant.
15181
15182 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
15183
15184         * config/i386/cygwin.asm: (__alloca): Correct calling
15185         convention and alignment.
15186         (__chkstk): Force 8 byte stack alignment.
15187
15188 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
15189             Richard Guenther  <rguenther@suse.de>
15190
15191         PR tree-optimization/33992
15192         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
15193         the zero we compare against.
15194
15195 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
15196
15197         PR libfortran/35063
15198         * gthr-win32.h (__gthread_mutex_destroy_function): New function
15199         to CloseHandle after unlocking to prevent accumulation of handle
15200         count.
15201
15202 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15203
15204         PR middle_end/34150
15205         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
15206         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
15207         and update LABEL_NUSES during and after reload.
15208
15209 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
15210
15211         PR middle-end/34627
15212         * combine.c (simplify_if_then_else): Make sure the comparison is
15213         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
15214
15215 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
15216
15217         PR bootstrap/35051
15218         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
15219         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
15220         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
15221         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
15222         * tree.h (get_type_static_bounds): Likewise.
15223
15224 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15225
15226         * doc/invoke.texi (Option Summary, C++ Dialect Options)
15227         (Objective-C and Objective-C++ Dialect Options, Warning Options):
15228         Make -Wfoo language annotations match what the compiler outputs.
15229
15230 2008-02-08  Sa Liu  <saliu@de.ibm.com>
15231
15232         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
15233         intrinsics spu_convts, spu_convtu, spu_convtf.
15234
15235 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
15236
15237         * doc/extend.texi (Function Attributes) <noinline>: Mention
15238         asm ("") as method to keep calls.
15239
15240 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15241
15242         PR other/32754
15243         * doc/options.texi (Options): Replace references to opts.sh with
15244         optc-gen.awk.
15245         * opts-common.c: Likewise.
15246         * optc-gen.awk: Likewise.
15247
15248 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
15249
15250         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
15251
15252 2008-02-07  Richard Henderson  <rth@redhat.com>
15253
15254         PR rtl-opt/33410
15255         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
15256         EXPR_LIST for the REG_EQUAL instead of a comparison with a
15257         funny mode.
15258
15259 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
15260
15261         PR tree-optimization/35085
15262         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
15263         for operand entry oe2 in addition to operand entry oe3 in order to
15264         expose more opportunities for vectorizer sum reduction.
15265
15266 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15267
15268         PR other/35107
15269         * Makefile.in (LIBS): Remove $(GMPLIBS).
15270         (cc1-dummy, cc1): Add $(GMPLIBS).
15271
15272 2008-02-06  Jan Hubicka  <jh@suse.cz>
15273
15274         PR target/23322
15275         * i386.md (moddf_integer): Do not produce partial memory stalls for
15276         targets where it hurts.
15277
15278 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
15279
15280         PR target/35083
15281         * optabs.c (expand_float): Do not check for decimal modes when
15282         expanding unsigned integer through signed conversion.
15283
15284 2008-02-06  Nick Clifton  <nickc@redhat.com>
15285
15286         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
15287         inside the clobber with a match_operand and duplicated operand
15288         number in the constraint.
15289         (ineqbranchsi): Delete redundant comment.
15290
15291 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
15292
15293         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
15294         builtin_define ("__USE_INIT_FINI__").
15295         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
15296         -msx multilibs.
15297         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
15298
15299 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15300
15301         PR documentation/30330
15302         * doc/invoke.texi (C++ Dialect Options)
15303         (Objective-C and Objective-C++ Dialect Options, Warning Options):
15304         For each warning option -Wfoo that allows -Wno-foo, ensure both
15305         -Wfoo and -Wno-foo are listed in the option index.  Fix index
15306         entry of -Wswitch-default, index -Wnormalized= including the
15307         `=', and -Wlarger-than-@var{len} including @var{len}.
15308
15309 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
15310
15311         * config/i386/i386.md (floatunssisf2): Use
15312         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
15313         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
15314         Macroize expander using MODEF mode iterator.
15315
15316 2008-02-05  Diego Novillo  <dnovillo@google.com>
15317
15318         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
15319
15320         PR 33738
15321         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
15322
15323 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15324
15325         PR other/35070
15326         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
15327
15328 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
15329
15330         PR target/35084
15331         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
15332         to indicate if a message should be generated.
15333         (init_cumulative_args): Updated.
15334         (function_value_32): Likewise.
15335
15336 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
15337
15338         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
15339
15340 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
15341
15342         PR target/35083
15343         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
15344         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
15345
15346 2008-02-04  Diego Novillo  <dnovillo@google.com>
15347
15348         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
15349
15350         PR 33738
15351         * tree-vrp.c (vrp_evaluate_conditional): With
15352         -Wtype-limits, emit a warning when comparing against a
15353         constant outside the natural range of OP0's type.
15354
15355 2008-02-04  Richard Guenther  <rguenther@suse.de>
15356
15357         PR middle-end/33631
15358         * expr.c (count_type_elements): Give for unions instead of
15359         guessing.
15360
15361 2008-02-04  Richard Guenther  <rguenther@suse.de>
15362
15363         PR middle-end/35043
15364         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
15365         to TYPE_DOMAINs base type instead of using bitsizetype here.
15366
15367 2008-02-03  Jason Merrill  <jason@redhat.com>
15368
15369         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
15370
15371 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15372
15373         PR other/29972
15374         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
15375         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
15376         (RS/6000 and PowerPC Options): Fix typos and markup.
15377         * doc/passes.texi (Tree-SSA passes): Likewise.
15378
15379 2008-02-02  Michael Matz  <matz@suse.de>
15380
15381         PR target/35045
15382         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
15383         from record_last_reg_set_info.
15384         (record_last_reg_set_info): Take an RTX argument, iterate over all
15385         constituent hardregs.
15386         (record_last_set_info, record_opr_changes): Change calls to
15387         new signature or to record_last_reg_set_info_regno.
15388
15389 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
15390
15391         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
15392
15393 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
15394
15395         PR rtl-optimization/34773
15396         * reg-notes.def (EQUAL): Mention significance of combination of
15397         REG_EQUAL and REG_RETVAL.
15398         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
15399         insn that has a REG_RETVAL.
15400
15401 2008-02-01  Roger Sayle  <roger@eyesopen.com>
15402
15403         PR bootstrap/33781
15404         * configure.ac (--enable-fixed-point): Disable unless explicitly
15405         requested on IRIX.
15406         * configure: Regenerate.
15407
15408 2008-02-01  Richard Guenther  <rguenther@suse.de>
15409
15410         PR other/35042
15411         * invoke.texi (-finline-limit): Remove no longer true parts
15412         of the documentation.  Note that there is no default value.
15413
15414 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
15415             Mark Mitchell  <mark@codesourcery.com>
15416             Ben Elliston  <bje@au.ibm.com>
15417
15418         PR c/29326
15419         * doc/extend.texi (Other Builtins): Document.
15420
15421 2008-01-31  Tom Browder <tom.browder@gmail.com>
15422
15423         * doc/c-tree.texi (Types): Fix grammar.
15424         (Expression trees): Ditto.
15425         * doc/passes.texi (Tree-SSA passes): Ditto.
15426
15427         * doc/configterms.texi (Configure Terms): Fix typo.
15428         * doc/cpp.texi (Common Predefined Macros): Ditto.
15429         * doc/md.texi (Machine Constraints): Ditto.
15430
15431         * doc/makefile.texi (Makefile): Add comma.
15432
15433 2008-01-31  Tom Browder  <tom.browder@gmail.com>
15434             Gerald Pfeifer  <gerald@pfeifer.com>
15435
15436         * doc/sourcebuild.texi (Front End): Remove references to CVS
15437         and CVSROOT/modules.
15438         (Texinfo Manuals): Replace reference to CVS by one to SVN.
15439         (Back End): Remove reference to CVS.
15440
15441 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15442
15443         PR target/34900
15444         * config/mips/mips.c (gen_load_const_gp): New function, taking a
15445         comment from...
15446         (mips16_gp_pseudo_reg): ...here.
15447         * config/mips/mips.md (load_const_gp): Replace with...
15448         (load_const_gp_<mode>): ...this :P-based insn.
15449
15450 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15451
15452         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
15453         options. Minor fixes.
15454         (-std): Move reference to standards closer to where language
15455         standards are first mentioned.
15456
15457 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15458
15459         PR rtl-optimization/34995
15460         * reload.c (alternative_allows_const_pool_ref): Take an rtx
15461         parameter and return a bool.  If the rtx parameter is nonnull,
15462         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
15463         (find_reloads): Update call accordingly.  Pass the new operand
15464         if it needed no address reloads, otherwise pass null.
15465
15466 2008-01-30  Richard Henderson  <rth@redhat.com>
15467
15468         PR c/34993
15469         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
15470         for unbounded arrays.
15471
15472 2008-01-30  Silvius Rus  <rus@google.com>
15473
15474         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
15475
15476 2008-01-30  Jan Hubicka  <jh@suse.cz>
15477
15478         PR target/34982
15479         * i386.c (init_cumulative_args): Use real function declaration when
15480         calling locally.
15481
15482 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
15483
15484         PR rtl-optimization/34998
15485         * global.c (build_insn_chain): Treat non-subreg_lowpart
15486         SUBREGs of pseudos as clobbering all the words covered by the
15487         SUBREG, not just all the bytes.
15488         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
15489         original df_ref rather than an extract parameter.
15490         (global_conflicts): Update call accordingly.
15491
15492 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
15493
15494         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
15495         the overflow check to make it easier to read.
15496         (__fixtfdi): Change the type of the ll member in union
15497         long_double to UDItype_x.
15498
15499 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
15500
15501         PR middle-end/34969
15502         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
15503         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
15504         * tree-inline.c (fold_marked_statements): Call
15505         cgraph_update_edges_for_call_stmt if folding a call statement.
15506         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
15507         debug_generic_stmt calls, reset it back afterwards.
15508
15509         PR c/35017
15510         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
15511         static decls.
15512         * c-typeck.c (build_external_ref): Don't pedwarn about
15513         static vars in current function's scope.
15514
15515 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
15516
15517         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
15518
15519 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
15520
15521         PR c/35002
15522         * ipa-struct-reorg.c: Fix spelling.
15523         * params.def: Ditto.
15524
15525 2008-01-29  Richard Guenther  <rguenther@suse.de>
15526
15527         PR middle-end/35006
15528         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
15529         field.
15530         * tree-inline.c (remap_type): Increment remapping_type_depth
15531         around remapping types.
15532         (copy_body_r): Only add referenced variables if they are referenced
15533         from code, not types.
15534
15535 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
15536
15537         PR c++/34055
15538         PR c++/34103
15539         PR c++/34219
15540         PR c++/34606
15541         PR c++/34753
15542         PR c++/34754
15543         PR c++/34755
15544         PR c++/34919
15545         PR c++/34961
15546         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
15547         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
15548
15549 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
15550
15551         PR target/34412
15552         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
15553         pointer for tiny stack.
15554
15555 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15556
15557         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
15558
15559 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15560
15561         * config/vx-common.h: Fix typo in comment.
15562
15563 2008-01-28  Ian Lance Taylor  <iant@google.com>
15564
15565         PR c++/34862
15566         PR c++/33407
15567         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15568         coalesce pointers if they have different DECL_NO_TBAA_P values.
15569         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
15570         between variables with different DECL_NO_TBAA_P values.
15571
15572 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
15573
15574         PR 31535
15575         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
15576         are not legitimate small data references on SPE targets.
15577
15578 2008-01-28  David Daney  <ddaney@avtrex.com>
15579
15580         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
15581
15582 2008-01-28  David Daney  <ddaney@avtrex.com>
15583
15584         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
15585
15586 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
15587
15588         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
15589         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
15590         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
15591         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
15592         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15593         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
15594         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
15595         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
15596
15597 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15598
15599         * basic-block.h (condjump_equiv_p): Fix comment.
15600
15601 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15602
15603         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15604         print_generic_stmt_indented): Fix comment.
15605
15606 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15607
15608         * configure.ac (__stack_chk_fail): Add detecion for availability
15609         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15610         * configure: Regenerate.
15611
15612 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
15613
15614         PR middle-end/34688
15615         * final.c (output_addr_const): Handle TRUNCATE.
15616
15617 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
15618
15619         PR target/34711
15620         * tree-ssa-loop-ivopts.c (comp_cost): New type.
15621         (zero_cost, infinite_cost): New constants.
15622         (struct cost_pair): Change type of cost to comp_cost.
15623         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15624         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15625         New functions.
15626         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
15627         split_address_cost, ptr_difference_cost, difference_cost,
15628         get_computation_cost_at, get_computation_cost,
15629         determine_use_iv_cost_generic, determine_use_iv_cost_address,
15630         determine_use_iv_cost_condition, determine_use_iv_costs,
15631         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
15632         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
15633         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
15634         Change type of cost to comp_cost.
15635         (determine_iv_cost): Increase cost of non-original ivs, instead
15636         of decreasing the cost of original ones.
15637         (get_address_cost): Indicate the complexity of the addressing mode
15638         in comp_cost.
15639         (try_add_cand_for): Prefer using ivs not specific to some object.
15640         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
15641
15642 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
15643             Janis Johnson  <janis187@us.ibm.com>
15644
15645         PR target/34814
15646         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
15647         (TARGET_INSTANTIATE_DECLS): Likewise.
15648         * target.h (expand_to_rtl_hook): New target hook.
15649         (instantiate_decls): Likewise.
15650         * function.c (instantiate_decl): Make non-static.  Rename to...
15651         (instantiate_decl_rtl): ... this.
15652         (instantiate_expr): Use instantiate_decl_rtl.
15653         (instantiate_decls_1): Likewise.
15654         (instantiate_decls): Likewise.
15655         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
15656         * function.h (instantiate_decl_rtl): Add prototype.
15657         * cfgexpand.c (target.h): New include.
15658         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
15659         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
15660         (TARGET_INSTANTIATE_DECLS): Likewise.
15661         (TARGET_INITIALIZER): New target hooks added.
15662         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
15663         New prototype.
15664         * config/rs6000/rs6000.c (tree-flow.h): New include.
15665         (machine_function): Add sdmode_stack_slot field.
15666         (rs6000_alloc_sdmode_stack_slot): New function.
15667         (rs6000_instantiate_decls): Likewise.
15668         (rs6000_secondary_memory_needed_rtx): Likewise.
15669         (rs6000_check_sdmode): Likewise.
15670         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
15671         (TARGET_INSTANTIATE_DECLS): Likewise.
15672         (rs6000_hard_regno_mode_ok): Allow SDmode.
15673         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
15674         (rs6000_emit_move): Handle SDmode.
15675         (function_arg_advance): Likewise.
15676         (function_arg): Likewise.
15677         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
15678         SDmode var args for 32-bit compiles.
15679         (rs6000_secondary_reload_class): Handle SDmode.
15680         (rs6000_output_function_epilogue): Likewise.
15681         (rs6000_function_value): Simplify if statement.
15682         (rs6000_libcall_value): Likewise.
15683         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
15684         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
15685         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
15686         (movsd_hardfloat): New define_insn.
15687         (movsd_softfloat): Likewise.
15688         (movsd_store): Likewise.
15689         (movsd_load): Likewise.
15690         (extendsddd2): Likewise.
15691         (extendsdtd2): Likewise.
15692         (truncddsd2): Likewise.
15693         (movdd_hardfloat64): Fixup comment.
15694         (UNSPEC_MOVSD_LOAD): New constant.
15695         (UNSPEC_MOVSD_STORE): Likewise.
15696
15697 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
15698
15699         PR c++/34965
15700         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
15701         TRUTH_XOR_EXPR.
15702         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
15703         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
15704         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
15705         and TRUTH_XOR_EXPR.
15706
15707 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
15708
15709         PR target/34794
15710         * config.gcc: Separate AIX 5.3 from AIX 6.1.
15711         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15712         __LONGDOUBLE128 too.
15713         * config/rs6000/aix61.h: New file.
15714
15715 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15716
15717         PR rtl-optimization/34959
15718         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
15719         popcount and parity rtxes the same mode as their operand.
15720         Truncate or extend the result to the return value's mode
15721         if necessary.
15722
15723 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15724
15725         PR target/34981
15726         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
15727         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
15728         to GOT_VERSION_REGNUM.
15729         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
15730         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
15731         * config/mips/mips.c (mips_emit_call_insn): New function.
15732         (mips_call_tls_get_addr): Call mips_expand_call directly.
15733         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
15734         emit_call_insn.
15735         (mips16_build_call_stub): Likewise.  Return the call insn or null.
15736         (mips_expand_call): Update the call to mips16_build_call_stub
15737         accordingly and a remove redundant condition.  Assert that MIPS16
15738         stubs do not use lazy binding.  Use mips_emit_call_insn and return
15739         the call insn.
15740         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
15741         TARGET_USE_GOT.
15742         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
15743         (mips_avoid_hazard): Remove hazard_set handling.
15744         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
15745         (UNSPEC_RESTORE_GP): ...this.
15746         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
15747         (FAKE_CALL_REGNO): Rename to...
15748         (GOT_VERSION_REGNUM): ...this.
15749         (type): Add "ghost" value.  Add an associated insn reservation.
15750         (hazard_set): Remove.
15751         (exception_receiver): Rename to...
15752         (restore_gp): ...this and update the unspec identifier accordingly.
15753         (exception_receiver, nonlocal_got_receiver): New expanders.
15754         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
15755         FAKE_CALL_REGNO.  Remove hazard_set attribute.
15756         (set_got_version, update_got_version): New patterns.
15757
15758 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
15759
15760         PR target/34970
15761         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
15762
15763 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15764
15765         PR other/31955
15766         * doc/install.texi2html: Generate gcc-vers.texi.
15767
15768 2008-01-25  DJ Delorie  <dj@redhat.com>
15769
15770         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15771
15772 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15773
15774         * config/c4x: Remove directory.
15775         * config.gcc (crx-*, mt-*): Mark obsolete.
15776         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
15777         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
15778         sh-*-rtemscoff*): Remove cases.
15779         * defaults.h (C4X_FLOAT_FORMAT): Remove.
15780         * real.c (encode_c4x_single, decode_c4x_single,
15781         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
15782         c4x_extended_format): Remove.
15783         * real.h (c4x_single_format, c4x_extended_format): Remove.
15784         * doc/extend.texi (interrupt, naked): Remove mention of attributes
15785         on C4x.
15786         (Pragmas): Remove comment about c4x pragmas.
15787         * doc/install.texi (c4x): Remove target-specific instructions.
15788         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
15789         * doc/md.texi (Machine Constraints): Remove C4x documentation.
15790         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
15791         refer to C4x source files as examples.
15792         (C4X_FLOAT_FORMAT): Remove documentation.
15793
15794 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
15795
15796         * config/bfin/bfin.c (override_options): Reorder tests so that
15797         flag_pic gets enabled for -msep-data.
15798
15799 2008-01-25  Richard Guenther  <rguenther@suse.de>
15800
15801         PR middle-end/32244
15802         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
15803         to its bitfield precision if required.
15804
15805 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15806
15807         PR middle-end/33880
15808         * tree-nested.c (walk_omp_for): New function.
15809         (convert_nonlocal_reference, convert_local_reference): Call
15810         walk_omp_for on OMP_FOR.
15811         (convert_call_expr): Call walk_body on OMP_FOR's
15812         OMP_FOR_PRE_INIT_BODY.
15813
15814 2008-01-25  Richard Guenther  <rguenther@suse.de>
15815
15816         PR tree-optimization/34966
15817         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
15818         default defs and PHI_NODEs we have to insert after the
15819         defining statement.
15820
15821 2008-01-24  Nick Clifton  <nickc@redhat.com>
15822
15823         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
15824         Provide a default definition.
15825         (LIBGCC2_UNITS_PER_WORD): Likewise.
15826
15827         * config/stormy16/stormy16.c: Include df.h for the prototype
15828         for df_regs_ever_live_p.
15829         (xstormy16_expand_builtin_va_start): Convert the stack offset
15830         into a component_ref and then use POINTER_PLUS_EXPR to add it
15831         to the incoming_virtual_args_rtx.
15832         (xstormy16_gimplify_va_arg_expr): Rename to
15833         xstormy16_gimplify_va_arg_expr.
15834         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
15835         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
15836         xstormy16_gimplify_va_arg_expr.
15837         Fix up some formatting issues.
15838
15839         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
15840         Move to predicates.md.
15841         (xs_hi_general_operand): Likewise.
15842         (xs_hi_nonmemory_operand): Likewise.
15843         * config/stormy16/predicates.md:
15844         (xstormy16_carry_plus_operand): New predicate.
15845         (xs_hi_general_operand): New predicate.
15846         (xs_hi_nonmemory_operand): New predicate.
15847         * config/stormy16/stormy16-protos.h:
15848         (xstormy16_carry_plus_operand): Delete prototype.
15849         (xs_hi_general_operand): Likewise.
15850         (xs_hi_nonmemory_operand): Likewise.
15851
15852         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
15853         modifiers as they are no longer needed and they can trigger
15854         reload spill failures.
15855
15856         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
15857         with a match_operand in order to help reload.
15858
15859         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
15860         constraint with 'e' for the 8th alternative as this version of
15861         the mov.w instruction only accepts the lower 8 registers.
15862
15863 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
15864
15865         PR target/34856
15866         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
15867         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
15868         vector elements.
15869
15870 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15871
15872         PR middle-end/33333
15873         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
15874
15875 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15876
15877         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
15878         New functions.
15879         (remove_structure): Update allocations list before removing structure.
15880
15881 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15882
15883         * ipa-struct-reorg.c (is_safe_cond_expr,
15884         create_new_stmts_for_cond_expr): Use integer_zerop function,
15885         that recognize not only zero-pointer, but zero-integer too.
15886
15887 2008-01-25  Ben Elliston  <bje@au.ibm.com>
15888
15889         PR other/22232
15890         * fixproto: Escape "." in sed expression that strips leading "./".
15891
15892 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
15893
15894         PR driver/34904
15895         * gcc.c (SWITCH_OK): Removed.
15896         (SWITCH_LIVE): Changed to bit.
15897         (SWITCH_FALSE): Likewise.
15898         (SWITCH_IGNORE): Likewise.
15899         (switchstr): Change live_cond to unsigned int.
15900         (process_command): Replace SWITCH_OK with 0.
15901         (do_self_spec): Likewise.
15902         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
15903         (give_switch): Likewise.
15904         (used_arg): Likewise.
15905         (do_spec_1): Set the SWITCH_IGNORE bit.
15906         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
15907         bits.  Set the SWITCH_LIVE bit.
15908
15909 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15910
15911         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
15912
15913 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
15914
15915         PR tree-optimization/34472
15916         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
15917         parameter to a "bool *" and set *DATA to false if there is
15918         an unsafe access.  Do not delete the structure here.
15919         (check_cond_exprs): Delete it here instead.
15920         (check_cond_exprs, exclude_cold_structs): Do not increase
15921         I when removing a structure.
15922
15923 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
15924
15925         PR target/34856
15926         * config/i386/i386.c (ix86_expand_vector_init): Consider only
15927         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
15928
15929 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
15930
15931         PR middle-end/34934
15932         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
15933         a fixed vector for stack.
15934
15935 2008-01-24  Ben Elliston  <bje@au.ibm.com>
15936
15937         PR c++/25701
15938         * doc/gcc.texi (Software development): Add a direntry for g++.
15939
15940 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
15941
15942         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
15943         stale and straggling -fforce-addr comments above.
15944
15945         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
15946         define.
15947         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
15948         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
15949
15950 2008-01-23  Michael Matz  <matz@suse.de>
15951
15952         PR debug/34895
15953         * dwarf2out.c (force_type_die): Use modified_type_die instead of
15954         gen_type_die.
15955
15956 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
15957
15958         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
15959         malloc result type.
15960
15961 2008-01-23 Anatoly Sokolov <aesok@post.ru>
15962
15963         * config/avr/avr.c (avr_current_arch): New variable.
15964         (avr_arch_types): Add 'avr31' and 'avr51' entries.
15965         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
15966         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
15967         (avr_override_options): Init 'avr_current_arch'.
15968         (base_arch_s): Move from here...
15969         * config/avr/avr.h (base_arch_s): ... here. Add new members
15970         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
15971         'mega' to 'have_jmp_call'.
15972         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
15973         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
15974         macros.
15975         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
15976         architectures.
15977         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15978         MULTILIB_MATCHES): (Ditto.).
15979
15980 2008-01-23  Richard Guenther  <rguenther@suse.de>
15981
15982         PR middle-end/31529
15983         * cgraphunit.c (cgraph_reset_node): Always mark the node
15984         not reachable if it is not queued already.
15985
15986 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
15987
15988         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
15989         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
15990         (cputype_selected): New static variable.
15991         (bfin_handle_option): Set it if -mcpu is used.
15992         (override_option): Select default set of workarounds if no cpu type
15993         selected on the command line.
15994         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
15995
15996         From  Michael Frysinger  <michael.frysinger@analog.com>
15997         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
15998         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
15999
16000         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
16001         for bf547, bf523, bf524, and bf526.
16002         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
16003         bf526.
16004         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16005         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
16006         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
16007         __ADSPBF547__ and __ADSPBF54x__ for bf547.
16008         * doc/invoke.texi (Blackfin Options): Document that
16009         -mcpu now accept bf547, bf523, bf524, and bf526.
16010
16011 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
16012
16013         PR rtl-optimization/34628
16014         * combine.c (try_combine): Stop and undo after the first combination
16015         if an autoincrement side-effect on the first insn has effectively
16016         been lost.
16017
16018 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
16019
16020         PR target/34529
16021         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
16022         Offset addresses are not valid for Altivec or paired float modes.
16023
16024 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
16025
16026         PR c++/34607
16027         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
16028         if DECL_INITIAL (decl) is error_mark_node.
16029
16030         PR c++/34914
16031         * c-common.c (handle_vector_size_attribute): Only allow
16032         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
16033         the same way as pointer, array etc. types.
16034         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
16035
16036         PR c++/34917
16037         * tree.c (build_type_attribute_qual_variant): Call
16038         build_qualified_type if attributes are equal, but quals are not.
16039
16040 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16041
16042         PR 32102
16043         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
16044         * flags.h (warn_strict_aliasing): Remove.
16045         (warn_strict_overflow): Remove.
16046         * opts.c (warn_strict_aliasing): Remove.
16047         (warn_strict_overflow): Remove.
16048         * c-opts.c (c_common_handle_option): -Wall only sets
16049         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
16050         (c_common_post_options): Give default values to -Wstrict-aliasing
16051         and -Wstrict-overflow if they are uninitialized.
16052         * common.opt (Wstrict-aliasing): Specify Var and Init.
16053         (Wstrict-overflow): Likewise.
16054
16055 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
16056
16057         PR rtl-optimization/26854
16058         PR rtl-optimization/34400
16059         PR rtl-optimization/34884
16060         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
16061         DF_RD->gen.
16062         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
16063         (df_rd_bb_info.expanded_lr_out): Deleted
16064         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
16065         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
16066         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16067         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16068         Removed code to allocate, initialize or free expanded_lr_out.
16069         (df_rd_bb_local_compute_process_def): Restructured to make more
16070         understandable.
16071         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
16072         sets if the sets are being trimmed.
16073
16074 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
16075
16076         PR bootstrap/32287
16077         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
16078         (as_vers): Likewise.
16079         * configure: Regenerated.
16080
16081 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16082
16083         PR middle-end/33092
16084         * tree-pass.h (pass_build_alias): New pass.
16085         * tree-ssa-alias.c (gate_build_alias): New.
16086         (pass_build_alias): New.
16087         * passes.c (init_optimization_passes): Add pass_build_alias after
16088         pass_create_structure_vars.
16089
16090 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
16091
16092         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
16093         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
16094         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
16095         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
16096         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
16097         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
16098         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
16099         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
16100         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
16101         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
16102         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
16103         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
16104         * config/s390/s390.md (FP_ALL): New mode iterator.
16105         (_d): New mode attribute.
16106         ("*signbit<mode>2>"): Changed mode of first operand.
16107         ("isinf<mode>2"): Changed mode of first operand.
16108         ("*TDC_insn"): Adaptation for DFP modes.
16109
16110 2008-01-22  Ben Elliston  <bje@au.ibm.com>
16111
16112         * tree.c (check_qualified_type): Improve function description.
16113
16114 2008-01-21  Jason Merrill  <jason@redhat.com>
16115
16116         PR c++/34196
16117         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
16118         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
16119         if it is set.
16120
16121 2008-01-21  DJ Delorie  <dj@redhat.com>
16122
16123         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
16124         return zero.
16125
16126 2008-01-21  Richard Guenther  <rguenther@suse.de>
16127
16128         PR middle-end/34856
16129         * tree-cfg.c (verify_expr): Allow all invariant expressions
16130         instead of just constant class ones as reference argument.
16131         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
16132         like any other constant.
16133         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16134
16135 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
16136
16137         * regmove.c (fixup_match_1): Update call crossed frequencies.
16138
16139 2008-01-21  Richard Guenther  <rguenther@suse.de>
16140
16141         PR c/34885
16142         * tree-inline.c (setup_one_parameter): Deal with mismatched
16143         types using a VIEW_CONVERT_EXPR.
16144
16145 2008-01-21  Alon Dayan  <alond@il.ibm.com>
16146             Olga Golovanevsky  <olga@il.ibm.com>
16147
16148         PR tree-optimization/34701
16149         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
16150         when the structure size is not a power of 2.
16151
16152 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
16153
16154         * doc/install.texi: Add doc for --enable-checking=df.
16155
16156 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
16157
16158         PR rtl-optimization/34808
16159         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
16160
16161 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
16162
16163         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
16164         input.
16165
16166 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
16167
16168         PR rtl-optimization/26854
16169         PR rtl-optimization/34400
16170         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
16171         DF_RD->gen.
16172         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
16173         (df_rd_bb_info.expanded_lr_out): New.
16174         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
16175         * loop_iv.c (iv_analysis_loop_init): Ditto.
16176         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16177         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16178         Added code to allocate, initialize or free expanded_lr_out.
16179         (df_rd_bb_local_compute_process_def): Restructured to make
16180         more understandable.
16181         (df_rd_confluence_n): Add code to do nothing with fake edges and
16182         code to no apply invalidate_by_call sets if the sets are being trimmed.
16183         (df_lr_local_finalize): Renamed to df_lr_finalize.
16184         (df_live_local_finalize): Renamed to df_live_finalize.
16185
16186 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
16187
16188         PR target/34831
16189         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
16190         deciding whether to use reciprocal instructions.
16191
16192 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
16193
16194         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
16195         dwarf2out_note_section_used if cold_text_section is NULL.
16196
16197 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
16198
16199         PR gcov-profile/34610
16200         * tree-cfg.c (make_edges): Mark both outgoing edges from
16201         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
16202         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
16203         from OMP_FOR and OMP_CONTINUE outgoing edges.
16204
16205         * tree-profile.c (tree_profiling): Return early if
16206         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
16207         at the end.
16208         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
16209         from cfun to child_cfun.
16210         * function.h (struct function): Add after_tree_profile bit.
16211
16212 2008-01-19 Anatoly Sokolov <aesok@post.ru>
16213
16214         * config/avr/avr.S (_exit): Disable interrupt.
16215
16216 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
16217             Steven Bosscher  <stevenb.gcc@gmail.com>
16218
16219         PR rtl-optimization/26854
16220         PR rtl-optimization/34400
16221         * df-problems.c (df_live_scratch): New scratch bitmap.
16222         (df_live_alloc): Allocate df_live_scratch when doing df_live.
16223         (df_live_reset): Clear the proper bitmaps.
16224         (df_live_bb_local_compute): Only process the artificial defs once
16225         since the order is not important.
16226         (df_live_init): Init the df_live sets only with the variables
16227         found live by df_lr.
16228         (df_live_transfer_function): Use the df_lr sets to prune the
16229         df_live sets as they are being computed.
16230         (df_live_free): Free df_live_scratch.
16231
16232 2008-01-18  Ian Lance Taylor  <iant@google.com>
16233
16234         * common.opt: Add fmerge-debug-strings.
16235         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
16236         flag_merge_debug_strings rather than flag_merge_constants.
16237         * doc/invoke.texi (Option Summary): Mention
16238         -fmerge-debug-strings.
16239         (Debugging Options): Document -fmerge-debug-strings.
16240
16241 2008-01-18  Ian Lance Taylor  <iant@google.com>
16242
16243         PR c++/33407
16244         * tree.h (DECL_IS_OPERATOR_NEW): Define.
16245         (struct tree_function_decl): Add new field operator_new_flag.
16246         * tree-inline.c (expand_call_inline): When inlining a call to
16247         operator new, force the return value to go into a variable, and
16248         set DECL_NO_TBAA_P on that variable.
16249         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
16250
16251 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
16252
16253         PR debug/34484
16254         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
16255         DWARF2_DEBUGGING_INFO.
16256         (dwarf2out_note_section_used): Ditto.  Add prototype.
16257         (have_multiple_function_sections, text_section_used,
16258         cold_text_section_used, *cold_text_sections): Move declarations
16259         before their uses.
16260
16261 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
16262
16263         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
16264         field and add signal_ra.
16265         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
16266         assignments to frame state pc.  Move end of stack check after
16267         MD_FALLBACK_FRAME_STATE_FOR.
16268         (uw_update_context_1): Use frame state signal_regs if set, instead
16269         of checking signal_frame flag.
16270         (uw_update_context): Use frame state signal_ra if set.
16271         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
16272         * config/xtensa/linux-unwind.h: New file.
16273
16274 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
16275
16276         * modulo-sched.c (get_sched_window): Fix comment typo.
16277
16278 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
16279
16280         PR tree-optimization/34648
16281         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
16282
16283 2008-01-17  Anatoly Sokolov <aesok@post.ru>
16284
16285         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
16286         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
16287
16288 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
16289
16290         PR rtl-optimization/34400
16291         * df-core.c (df_worklist_dataflow_overeager,
16292         df_worklist_dataflow_doublequeue): New functions.
16293         (df_worklist_dataflow): Two different worklist solvers.
16294         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
16295         New param.
16296
16297 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16298
16299         PR testsuite/34821
16300         * doc/invoke.texi: Document the dependence on pthread for fopenmp
16301         and ftree-parallelize-loops.
16302
16303 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
16304
16305         PR rtl-optimization/34826
16306         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
16307
16308 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
16309
16310         * global.c (find_reg): Mark the eh regs as used if necessary.
16311         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
16312         * ra.h (struct allocno): no_eh_reg field added.  Changed
16313         no_stack_reg type to bitfield.
16314
16315 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
16316
16317         * tree.c (substitute_in_expr): Add missing 'break'.
16318
16319 2008-01-17  Richard Guenther  <rguenther@suse.de>
16320
16321         PR tree-optimization/34825
16322         * tree-ssa-math-opts.c (is_division_by): Do not recognize
16323         x / x as division to handle.
16324
16325 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16326
16327         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
16328         "-pthread" is specified.
16329         * pa-hpux11.h (LIB_SPEC): Likewise.
16330
16331 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
16332             Peter Bergner  <bergner@vnet.ibm.com>
16333
16334         PR rtl-optimization/33796
16335         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
16336
16337 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16338
16339         PR libgfortran/34699
16340         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
16341         static links.
16342         * pa-hpux10.h (LINK_SPEC): Likewise.
16343         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
16344
16345 2008-01-16  Richard Guenther  <rguenther@suse.de>
16346
16347         PR middle-end/32628
16348         * fold-const.c (fold_convert_const_int_from_int): Do not
16349         set overflow if that occured only because of a sign extension
16350         change when converting from/to a sizetype with the same
16351         precision and signedness.
16352
16353 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16354
16355         PR debug/34249
16356         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
16357         location address to the correct place.  Update copyright year.
16358
16359 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16360
16361         * lambda-code.c (lambda_transform_legal_p): Handle the case of
16362         no dependences in the dependence_relations vector.
16363
16364 2008-01-16  Jan Hubicka  <jh@suse.cz>
16365
16366         PR rtl-optimization/31396
16367         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
16368         * cfg.c (dump_reg_info): Print it.
16369         * regs.h (struct reg_info_t): add freq_calls_crossed.
16370         (REG_FREQ_CALLS_CROSSED): New macro.
16371         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
16372         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
16373         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
16374         regmove_optimize): Update call crossed frequencies.
16375         * local-alloc.c (struct qty): Add freq_calls_crossed.
16376         (alloc_qty): Copute freq_calls_crossed.
16377         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
16378         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
16379         * ra.h (struct allocno): Add freq_calls_crossed.
16380
16381 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16382
16383         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
16384         libgomp when compiling with ftree-parallelize-loops.
16385         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
16386
16387 2008-01-16  Richard Guenther  <rguenther@suse.de>
16388
16389         PR tree-optimization/34769
16390         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
16391         * tree.c (int_cst_value): Instead make this function more
16392         permissive in what it accepts as valid input.  Document this
16393         function always sign-extends the value.
16394
16395 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
16396             Richard Guenther  <rguenther@suse.de>
16397
16398         PR c/34668
16399         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
16400         (gimple_fold_indirect_ref_rhs): ... this.
16401         (gimple_fold_indirect_ref): New function with foldings
16402         that preserve lvalueness.
16403         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
16404         * tree-flow.h (gimple_fold_indirect_ref): Declare.
16405         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
16406         to fold an INDIRECT_REF, fall back to the old use of
16407         fold_indirect_ref_1.
16408
16409 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16410
16411         * tree-data-ref.c (subscript_dependence_tester_1): Call
16412         free_conflict_function.
16413         (compute_self_dependence): Same.
16414
16415 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16416
16417         PR debug/34249
16418         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
16419         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
16420         function global.
16421         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
16422         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
16423         for DWARF2_UNWIND_INFO targets.
16424
16425 2008-01-16  Richard Guenther  <rguenther@suse.de>
16426
16427         PR c/34768
16428         * c-typeck.c (common_pointer_type): Do not merge inconsistent
16429         type qualifiers for function types.
16430
16431 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
16432
16433         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
16434         loop_iterator li from previous commit.
16435
16436 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
16437
16438         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
16439
16440 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16441
16442         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
16443         (parallelize_loops): Don't parallelize irreducible components.
16444
16445 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16446
16447         PR c++/24924
16448         * c-opts (c_common_post_options): Do not enable CPP
16449         flag_pedantic_errors by default.
16450
16451 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
16452
16453         PR rtl-optimization/31944
16454         * cse.c (remove_pseudo_from_table): New function.
16455         (merge_equiv_classes): Use above function to remove pseudo-registers.
16456         (invalidate): Likewise.
16457
16458 2008-01-13  Richard Guenther  <rguenther@suse.de>
16459
16460         PR middle-end/34601
16461         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
16462         instead of TYPE_MODE to deal with calls from expand_one_error_var.
16463
16464 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
16465
16466         * gcse.c (cprop_jump): Call validate_unshare_change instead of
16467         validate_change to unshare the source of the PC set.
16468
16469 2008-01-12  Jan Hubicka  <jh@suse.cz>
16470
16471         PR middle-end/32135
16472         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
16473         references above array bounds.  This might trigger bounds checks for
16474         pointers to arrays.
16475
16476 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16477
16478         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
16479         new_replaceable_dependencies.
16480
16481 2008-01-12  Doug Kwan  <dougkwan@google.com>
16482
16483         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
16484         instead of OPT_Wreturn_type in warning due to ignored return type
16485         qualifiers.
16486         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
16487         options included in -Wextra.
16488         * c.opt: New option -Wignored_qualifiers.
16489         * doc/invoke.texi (Warning Options, -Wextra): Add new option
16490         -Wignore_qualifiers.
16491         (-Wignored-qualifiers): Document.
16492         (-Wreturn-type): Remove description of functionality now handled
16493         by -Wignored-qualifiers.
16494
16495 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
16496
16497         PR ada/33788
16498         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
16499         NOP_EXPR if it is between integral types with the same precision.
16500
16501 2008-01-12  Jan Hubicka  <jh@suse.cz>
16502
16503         PR other/28023
16504         * invoke.texi (max-inline-recursive-depth): Fix default value.
16505
16506 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
16507
16508         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
16509         correct type.
16510
16511 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
16512
16513         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
16514
16515 2008-01-11  James E. Wilson  <wilson@specifix.com>
16516
16517         PR target/26015
16518         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
16519
16520 2008-01-11  Anatoly Sokolov <aesok@post.ru>
16521
16522         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
16523         save/restore frame pointer register and don't use 'call-prologues'
16524         optimization in function with "OS_task" attribute.
16525
16526 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
16527
16528         PR middle-end/31309
16529         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
16530         when copying to memory.
16531
16532 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
16533
16534         PR rtl-optimization/30905
16535         * cfgcleanup.c: Include dce.h
16536         (crossjumps_occured): New global variable.
16537         (try_crossjump_bb): Exit loop after finding a fallthru edge.
16538         If something changed, set crossjumps_occured to true.
16539         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
16540         Don't add/remove fake edges to exit here...
16541         (cleanup_cfg): ...but do it here, when crossjumping.
16542         Run a fast DCE when successful crossjumps occured in the latest
16543         iteration of try_optimize_cfg.
16544
16545 2008-01-11  Richard Guenther  <rguenther@suse.de>
16546
16547         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
16548         (struct vn_unary_op_s): Likewise.
16549         (vn_reference_insert): Free old reference on hash collision.
16550
16551 2008-01-10  Raksit Ashok  <raksit@google.com>
16552
16553         PR rtl-optimization/27971
16554         * combine.c (find_split_point): Split PLUS expressions which are
16555         inside a MEM rtx, and whose first operand is complex.
16556
16557 2008-01-10  DJ Delorie  <dj@redhat.com>
16558
16559         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
16560         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
16561         (m32c_hard_regno_ok): Call the underlying function.
16562
16563 2008-01-10  Richard Guenther  <rguenther@suse.de>
16564
16565         PR middle-end/34683
16566         * tree-cfg.c (tree_merge_blocks): Do not go through the
16567         full-blown folding and stmt updating path if we just deal
16568         with virtual operands.
16569         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
16570         test for abnormal SSA_NAMEs.
16571
16572 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
16573
16574         PR middle-end/34641
16575         * reload.c (push_reload): Add assertions.  All constants from
16576         reg_equiv_constant should have been used for replacing the respective
16577         pseudo earlier.
16578         (find_reloads_address): Invoke find_reloads_address_part for
16579         constant taken from the reg_equiv_constant array.
16580
16581 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
16582
16583         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
16584         field (valnum) the first in the struct.  Replace bools with
16585         unit bit fields.
16586
16587 2008-01-10  Richard Guenther  <rguenther@suse.de>
16588
16589         PR tree-optimization/34651
16590         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
16591         types and ordering for masking and converting.
16592
16593 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
16594
16595         PR tree-optimization/34017
16596         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
16597         also for PHI_NODE expressions.
16598
16599 2008-01-09  Jan Hubicka  <jh@suse.cz>
16600
16601         PR tree-optimization/34708
16602         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16603         based on number of case labels.
16604         (init_inline_once): Remove switch_cost.
16605         * tree-inline.h (eni_weights_d): Remove switch_cost.
16606
16607 2008-01-09  Richard Guenther  <rguenther@suse.de>
16608         Andrew Pinski  <andrew_pinski@playstation.sony.com>
16609
16610         PR middle-end/30132
16611         * gimplify.c (gimplify_cond_expr): Do not create an addressable
16612         temporary if an rvalue is ok or an lvalue is not required.
16613
16614 2008-01-09  Richard Guenther  <rguenther@suse.de>
16615
16616         PR middle-end/34458
16617         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16618         adjust return type.
16619
16620 2008-01-09  Richard Guenther  <rguenther@suse.de>
16621
16622         PR middle-end/34679
16623         * tree.c (host_integerp): Check for sizetype only if the
16624         type is an integer type.
16625
16626 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
16627
16628         PR debug/26364
16629         * opts.c (decode_options): Disable inlining of functions called
16630         once if not in unit-at-a-time mode.
16631
16632 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
16633
16634         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
16635
16636 2008-01-08  Richard Guenther  <rguenther@suse.de>
16637
16638         PR middle-end/31863
16639         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
16640         out early if the result will be unused.
16641
16642 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16643
16644         PR target/34709
16645         Revert:
16646
16647         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16648         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16649         for TARGET_RECIP.
16650
16651 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
16652
16653         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
16654         for vectorization tuned.
16655
16656 2008-01-08  Richard Guenther  <rguenther@suse.de>
16657
16658         PR tree-optimization/34683
16659         * tree-ssa-operands.c (operand_build_cmp): Export.
16660         * tree-ssa-operands.h (operand_build_cmp): Declare.
16661         * tree-vn.c (vuses_compare): Remove.
16662         (sort_vuses): Use operand_build_cmp.
16663         (sort_vuses_heap): Likewise.
16664         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
16665         to re-use old VEC if available.  Do not sort already sorted VUSEs.
16666         (vdefs_to_vec): Do not sort already sorted VDEFs.
16667
16668 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
16669
16670         PR middle-end/34694
16671         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
16672
16673 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16674
16675         PR target/34702
16676         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
16677         limitations of reciprocal sequences on x86 targets.
16678
16679 2008-01-08  Richard Guenther  <rguenther@suse.de>
16680
16681         PR tree-optimization/34683
16682         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
16683
16684 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
16685
16686         PR target/34622
16687         * config/darwin.c (darwin_mergeable_string_section): Don't use
16688         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
16689
16690 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
16691
16692         PR target/34682
16693         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
16694         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
16695         predicates of op0 and op1 to register_operand.
16696         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
16697         expander using X87MODEF mode iterator.  Change predicates of
16698         op0 and op1 to register_operand.
16699         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
16700         corresponding patterns and macroize using MODEF macro.  Change
16701         predicates of op0 and op1 to register_operand and remove
16702         "m" constraint. Disparage "r" alternative with "!".
16703         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
16704         macroize using X87MODEF macro.  Change predicates of op0 and op1
16705         to register_operand and remove "m" constraint.  Disparage "r"
16706         alternative with "!".
16707         (absneg splitter with memory operands): Remove.
16708         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
16709         patterns and macroize using X87MODEF mode iterator.
16710         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
16711         Change predicate of op1 to register_operand.
16712         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
16713         for memory operands.
16714
16715 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
16716
16717         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
16718
16719 2008-01-07  Richard Guenther  <rguenther@suse.de>
16720
16721         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
16722         fields.
16723
16724 2008-01-07  Richard Guenther  <rguenther@suse.de>
16725
16726         PR tree-optimization/34683
16727         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
16728         VOPs of the needed size to save memory.  Use VEC_quick_push
16729         to save compile-time.
16730         (vdefs_to_vec): Likewise.
16731
16732 2008-01-07  Sa Liu  <saliu@de.ibm.com>
16733
16734         * config/spu/spu.md (divdf3): Genetate inline code for double
16735         division.  The implementation doesn't handle INF or NAN, therefore it
16736         only applies when -ffinite-math-only is given.
16737
16738 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
16739
16740         PR libstdc++/34680
16741         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
16742         * doc/cpp.texi ([Common Predefined Macros]): Document.
16743
16744 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
16745
16746         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
16747         order to use commutative addition instead of subtraction.
16748
16749 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16750             Mircea Namolaru  <namolaru@il.ibm.com>
16751             Vladimir Yanovsky  <yanov@il.ibm.com>
16752             Revital Eres  <eres@il.ibm.com>
16753
16754         PR tree-optimization/34263
16755         * tree-outof-ssa.c (process_single_block_loop_latch,
16756         contains_tree_r): New functions.
16757         (analyze_edges_for_bb): Call process_single_block_loop_latch
16758         function to empty single-basic-block latch block if possible.
16759
16760 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16761
16762         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16763         for TARGET_RECIP.
16764         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
16765
16766 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16767
16768         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
16769
16770 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16771
16772         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
16773
16774 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
16775
16776         PR tree-optimization/34618
16777         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
16778         flag from T.
16779
16780 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16781
16782         PR target/34673
16783         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
16784         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
16785         Update copyright year.
16786
16787         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
16788         Update copyright year.
16789         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
16790         using NR fixup.
16791
16792 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
16793
16794         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
16795         edge does not point to current bb before changing need_assert.
16796
16797 2008-01-04  Richard Guenther  <rguenther@suse.de>
16798
16799         PR middle-end/34029
16800         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
16801         for verifying purposes if they are is_gimple_min_invariant.
16802
16803 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
16804
16805         PR tree-optimization/34448
16806         PR tree-optimization/34465
16807         * gimplify.c (gimplify_init_constructor): Add new parameter
16808         notify_temp_creation.  Use it.
16809         (gimplify_modify_expr_rhs): Take volatiles into account when
16810         optimizing constructors.
16811         Do not optimize constructors if gimplify_init_constructor will dump to
16812         memory.
16813         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
16814         * gcc.c-torture/compile/pr34448.c: New.
16815
16816 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
16817
16818         PR gcov-profile/34609
16819         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
16820         return_slot if result is TREE_ADDRESSABLE.
16821
16822 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
16823
16824         * config/mips/mips.md (sqrt_condition): Tweak comment.
16825         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
16826
16827 2008-01-03  Tom Tromey  <tromey@redhat.com>
16828
16829         PR c/34457
16830         * c-common.c (c_type_hash): Handle VLAs.
16831
16832 2008-01-03  Jan Hubicka  <jh@suse.cz>
16833
16834         PR tree-optimization/31081
16835         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
16836         0 when inlining and not inlining to first basic block.
16837         (remap_decl): When var is initialized to 0, don't set default_def.
16838         (expand_call_inline): Set entry_bb.
16839         * tree-inline.h (copy_body_data): Add entry_bb.
16840
16841 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16842
16843         PR c++/34619
16844         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
16845         before returning.
16846
16847         PR tree-optimization/29484
16848         * tree-inline.c (inline_forbidden_p_2): New function.
16849         (inline_forbidden_p): Disallow inlining if some static var
16850         has an address of a local LABEL_DECL in its initializer.
16851         * doc/extend.texi (Labels as Values): Document &&foo behaviour
16852         vs. inlining.
16853
16854 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
16855
16856         PR tree-optimization/34635
16857         * tree-data-ref.c (add_other_self_distances): Make sure that the
16858         evolution step is constant.
16859
16860 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16861
16862         PR middle-end/34608
16863         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
16864
16865 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
16866
16867         * tree-sra.c (scalarize_init): Insert the generate_element_init
16868         statements after the generate_element_zero statements.
16869
16870 2008-01-02  Richard Guenther  <rguenther@suse.de>
16871
16872         PR middle-end/34093
16873         PR middle-end/31976
16874         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
16875         for very large number of operands instead of ICEing.
16876
16877 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
16878
16879         PR target/34013
16880         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
16881         while stack probing.
16882
16883 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
16884
16885         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
16886         in C++0x mode.
16887
16888 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
16889
16890         PR libmudflap/26442
16891         * tree-mudflap.c (mx_register_decls): Guard warning by
16892         !DECL_ARTIFICIAL check.
16893
16894 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
16895
16896         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
16897         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
16898         sse5_perm<mode>): Fix constraints.