OSDN Git Service

PR ada/36554
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
2
3         PR ada/36554
4         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
5
6 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
7
8         PR 36974
9         * final.c (call_from_call_insn): Handle COND_EXEC
10
11 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
12
13         * builtins.c (std_gimplify_va_arg_expr): Replace
14         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
15         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
16
17 2008-07-30  Joey Ye  <joey.ye@intel.com>
18             H.J. Lu  <hongjiu.lu@intel.com>
19
20         * builtins.c (expand_builtin_setjmp_receiver): Replace
21         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
22         (expand_builtin_apply_args_1): Likewise.
23         (expand_builtin_longjmp): Need DRAP for stack alignment.
24         (expand_builtin_apply): Likewise.
25
26         * caller-save.c (setup_save_areas): Call assign_stack_local_1
27         instead of assign_stack_local to allow alignment reduction.
28
29         * calls.c (emit_call_1): Need DRAP for stack alignment if
30         return pops.
31         (expand_call): Replace virtual_incoming_args_rtx with
32         crtl->args.internal_arg_pointer.
33         * stmt.c (expand_nl_goto_receiver): Likewise.
34
35         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
36         alignment and store to stack_alignment_estimated and
37         max_used_stack_slot_alignment.
38         (expand_one_var): Likewise.
39         (expand_stack_alignment): New function.
40         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
41         and stack_alignment_estimated fields in rtl_data.  Call
42         expand_stack_alignment at end.
43
44         * defaults.h (INCOMING_STACK_BOUNDARY): New.
45         (MAX_STACK_ALIGNMENT): Likewise.
46         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
47         (SUPPORTS_STACK_ALIGNMENT): Likewise.
48
49         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
50         stack alignment when generating virtual registers.
51
52         * function.c (assign_stack_local): Renamed to ...
53         (assign_stack_local_1): This.  Add a parameter to indicate
54         if it is OK to reduce alignment.
55         (assign_stack_local): Use it.
56         (instantiate_new_reg): Instantiate virtual incoming args rtx
57         to vDRAP if stack realignment and DRAP is needed.
58         (assign_parms): Collect parameter/return type alignment and
59         contribute to stack_alignment_estimated.
60         (locate_and_pad_parm): Likewise.
61         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
62         with crtl->args.internal_arg_pointer.
63
64         * function.h (rtl_data): Add new field drap_reg,
65         max_used_stack_slot_alignment, stack_alignment_estimated,
66         stack_realign_needed, need_drap, stack_realign_processed and
67         stack_realign_finalized.
68         (stack_realign_fp): New macro.
69         (stack_realign_drap): Likewise.
70
71         * global.c (compute_regsets): Frame pointer is needed when
72         stack is realigned.  Can eliminate frame pointer when stack is
73         realigned and dynamic realigned argument pointer isn't used.
74
75         * reload1.c (update_eliminables):  Frame pointer is needed
76         when stack is realigned.
77         (init_elim_table): Can eliminate frame pointer when stack is
78         realigned and dynamic realigned argument pointer isn't used.
79
80         * rtl.h (assign_stack_local_1): Declare new funtion.
81
82         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
83         (TARGET_GET_DRAP_RTX): Likewise.
84         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
85         TARGET_GET_DRAP_RTX.
86
87         * target.h (gcc_target): Add update_stack_boundary and
88         get_drap_rtx.
89
90         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
91         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
92
93 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
94             H.J. Lu  <hongjiu.lu@intel.com>
95
96         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
97         vdrap_reg, stack_realign and drap_reg_saved.
98         (add_cfi): Don't allow redefining CFA when DRAP is used.
99         (reg_save): Handle stack alignment.
100         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
101         alignment.  Don't generate DWARF information for (set fp sp)
102         when DRAP is used.
103         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
104         to INVALID_REGNUM.
105         (int_loc_descriptor): Move prototype forward.  Also define if
106         DWARF2_UNWIND_INFO is true.
107         (output_cfa_loc): Handle DW_CFA_expression.
108         (build_cfa_aligned_loc): New.
109         (based_loc_descr): Update assert for stack realign.  For local
110         variables, use sp+offset when stack is aligned without drap and
111         fp+offset when stack is aligned with drap.  For arguments, use
112         cfa+offset when drap is used to align stack.
113
114 2008-07-30  Joey Ye  <joey.ye@intel.com>
115             H.J. Lu  <hongjiu.lu@intel.com>
116
117         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
118         Break long line.
119         (ix86_gen_andsp): New.
120         (ix86_user_incoming_stack_boundary): Likewise.
121         (ix86_default_incoming_stack_boundary): Likewise.
122         (ix86_incoming_stack_boundary): Likewise.
123         (ix86_can_eliminate): Likewise.
124         (find_drap_reg): Likewise.
125         (ix86_update_stack_boundary): Likewise.
126         (ix86_get_drap_rtx): Likewise.
127         (ix86_finalize_stack_realign_flags): Likewise.
128         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
129         (TARGET_GET_DRAP_RTX): Likewise.
130         (override_options): Overide option value for new options.
131         (ix86_function_ok_for_sibcall): Remove check for
132         force_align_arg_pointer.
133         (ix86_handle_cconv_attribute): Likewise.
134         (ix86_function_regparm): Likewise.
135         (setup_incoming_varargs_64): Don't set stack_alignment_needed
136         here.
137         (ix86_va_start): Replace virtual_incoming_args_rtx with
138         crtl->args.internal_arg_pointer.
139         (ix86_select_alt_pic_regnum): Check DRAP register.
140         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
141         (ix86_compute_frame_layout): Compute frame layout wrt stack
142         realignment.
143         (ix86_internal_arg_pointer): Just return
144         virtual_incoming_args_rtx.
145         (ix86_expand_prologue): Decide if stack realignment is needed
146         and generate prologue code accordingly.
147         (ix86_expand_epilogue): Generate epilogue code wrt stack
148         realignment is really needed or not.
149         
150         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
151         (ABI_STACK_BOUNDARY): Likewise.
152         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
153         (STACK_REALIGN_DEFAULT): Likewise.
154         (INCOMING_STACK_BOUNDARY): Likewise.
155         (MAX_STACK_ALIGNMENT): Likewise.
156         (ix86_incoming_stack_boundary): Likewise.
157         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
158         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
159         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
160         (machine_function): Remove force_align_arg_pointer.
161
162         * config/i386/i386.md (BX_REG): New.
163         (R13_REG): Likewise.
164
165         * config/i386/i386.opt (mforce_drap): New.
166         (mincoming-stack-boundary): Likewise.
167         (mstackrealign): Add Init(-1).
168
169         * config/i386/i386-protos.h (ix86_can_eliminate): New
170
171 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
172
173         * doc/extend.texi: Update force_align_arg_pointer.
174
175         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
176         -mstackrealign.
177
178         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
179         (INCOMING_STACK_BOUNDARY): Likewise.
180         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
181         (TARGET_GET_DRAP_RTX): Likewise.
182
183 2008-07-30  Andreas Schwab  <schwab@suse.de>
184
185         PR rtl-optimization/36929
186         * dse.c (replace_inc_dec): Use emit_insn_before instead of
187         add_insn_before and fix argument order.
188         (replace_inc_dec_mem): Handle NULL rtx.
189
190 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
191
192         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
193         function.
194         (arm_compute_initial_elimination_offset): Use it.
195         (arm_compute_save_reg_mask): Include static chain save slot when
196         calculating alignment.
197         (arm_get_frame_offsets): Ditto.
198         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
199         that we can use to decrement the stack when the stack decrement
200         could be too big for an immediate value in a single insn.
201         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
202
203 2008-07-30  Richard Guenther  <rguenther@suse.de>
204
205         PR tree-optimization/36967
206         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
207         Release defs of statements we remove.
208
209 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
210
211         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
212         instead of NULL_RTVEC.
213
214 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
215
216         PR target/35866
217
218         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
219         vector modes.
220
221 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
222
223        * final.c (call_from_call_insn): New.
224        (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
225
226 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
227
228         * configure.ac: Substitute ADA_CFLAGS.
229         * configure: Regenerate.
230         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
231         * Makefile.in: Remove mention of X_* variables.
232         * config/pa/x-ada-hpux10: Remove.
233         * config/pa/x-ada: Remove.
234
235         * doc/fragments.texi: Update.
236
237 2008-07-30  Olivier Hainque  <hainque@adacore.com>
238
239         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
240         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
241         __dso_handle explicitly here.
242
243 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
244
245         PR 34389
246         * c-typeck.c (build_binary_op): Encapsulate code into...
247         * c-common.c (shorten_binary_op): ...this new function.
248         (conversion_warning): Use the new function. Handle non-negative
249         constant in bitwise-and.
250         * c-common.h (shorten_binary_op): Declare.
251
252 2008-07-30  Olivier Hainque  <hainque@adacore.com>
253
254         * scan.c (make_sstring_space): Add explicit conversions of
255         allocator's return value.
256         * fix-header.c (recognized_function): Likewise.
257
258 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
259
260         * doc/cpp.texi: Update to GFDL 1.2.
261         * doc/gcc.texi: Do not list GPL as Invariant Section.
262         * doc/gccint.texi: Likewise.  Update copyright years.
263         * doc/install.texi: Update copyright years.
264
265 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
266
267         PR target/36955
268         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
269         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
270
271 2008-07-29  Jan Hubicka  <jh@suse.cz>
272
273         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
274         (grokdeclarator): Likewise.
275         * langhooks.c (lhd_warn_unused_global_decl): Use
276         DECL_DECLARED_INLINE_P.
277         * print-tree.c (print_node): Remove DECL_INLINE check.
278
279 2008-07-29  Richard Guenther  <rguenther@suse.de>
280
281         PR tree-optimization/36945
282         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
283         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
284         Record invariant addresses un-decomposed.
285         (copy_reference_ops_from_call): Record reference call
286         arguments properly.  Simplify.
287         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
288         helper split out from ...
289         (create_component_ref_by_pieces): ... here.  Simplify.
290         Prepare for recursive invocation for call arguments.
291         (create_expression_by_pieces): Adjust call to
292         create_component_ref_by_pieces.
293         (compute_avail): Process operand 2 of reference ops.
294
295 2008-07-29  Richard Guenther  <rguenther@suse.de>
296
297         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for
298         OBJ_TYPE_REF.
299
300 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
301
302         * c-format.c (check_format_types): Revert unwanted checkin.
303
304 2008-07-29  Jan Hubicka  <jh@suse.cz>
305
306         * flags.h (flag_really_no_inline): Remove.
307         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
308         * toplev.c (flag_really_no_inline): Remove.
309         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
310         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
311         (cgraph_decide_inlining_incrementally): Likewise.
312         (compute_inline_parameters): Likewise.
313         * opts.c (decode_options): Simplify.
314         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
315         * common.opt (finline): Initialize to 1.
316         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
317
318 2008-07-29  Jan Hubicka  <jh@suse.cz>
319
320         * predict.c (always_optimize_for_size_p): New function.
321         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
322         optimize_edge_for_size_p, optimize_edge_for_speed_p,
323         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
324         functions.
325         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
326         * function.c (prepare_function_start): Set default profile.
327         * function.h (rtl_data): Add maybe_hot_insn_p.
328         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
329         (construct_exit_block): Likewise.
330         (tree_expand_cfg): Likewise.
331         * basic-block.h
332         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
333         optimize_edge_for_size_p, optimize_edge_for_speed_p,
334         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
335         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
336         Declare.
337
338 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
339
340         PR 34985
341         * c-decl.c (merge_decls): Merge USED flags.
342
343 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
344
345         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
346         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
347         next_stack, lab_false and lab_over trees.
348
349 2008-07-28  Richard Guenther  <rguenther@suse.de>
350
351         PR tree-optimization/36957
352         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
353         (useless_type_conversion_p): Remove.
354         (types_compatible_p): Remove.
355         * gimple.h (tree_ssa_useless_type_conversion): Declare.
356         (useless_type_conversion_p): Declare.
357         (types_compatible_p): Declare.
358         (gimple_expr_type): Return the base type only if it is
359         trivially convertible to the subtype.
360
361 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
362
363         * configure.ac: Use the m4_do macro to concatenate the warnings into
364         one string in ACX_PROG_CC_WARNING_OPTS,
365         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
366         * configure: Regenerate.
367
368 2008-07-28  Richard Guenther  <rguenther@suse.de>
369
370         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
371         (insert_fake_stores): Remove.
372         (realify_fake_stores): Likewise.
373         (execute_pre): Remove dead code.
374         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary
375         case.
376         (find_func_aliases): Deal with it here instead.
377         Re-enable gcc_unreachable call.
378
379 2008-07-28  Richard Guenther  <rguenther@suse.de>
380
381         Merge from gimple-tuples-branch.
382
383         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
384         * gimple.def: New file.
385         * gsstruct.def: Likewise.
386         * gimple-iterator.c: Likewise.
387         * gimple-pretty-print.c: Likewise.
388         * tree-gimple.c: Removed.  Merged into ...
389         * gimple.c: ... here.  New file.
390         * tree-gimple.h: Removed.  Merged into ...
391         * gimple.h: ... here.  New file.
392
393         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
394         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
395         --enable-checking=gimple flag.
396         * config.in: Likewise.
397         * configure: Regenerated.
398
399         * tree-ssa-operands.h: Tuplified.
400         * tree-vrp.c: Likewise.
401         * tree-loop-linear.c: Likewise.
402         * tree-into-ssa.c: Likewise.
403         * tree-ssa-loop-im.c: Likewise.
404         * tree-dump.c: Likewise.
405         * tree-complex.c: Likewise.
406         * cgraphbuild.c: Likewise.
407         * tree-ssa-threadupdate.c: Likewise.
408         * tree-ssa-loop-niter.c: Likewise.
409         * tree-pretty-print.c: Likewise.
410         * tracer.c: Likewise.
411         * gengtype.c: Likewise.
412         * tree-loop-distribution.c: Likewise.
413         * tree-ssa-loop-unswitch.c: Likewise.
414         * cgraph.c: Likewise.
415         * cgraph.h: Likewise.
416         * tree-ssa-loop-manip.c: Likewise.
417         * value-prof.c: Likewise.
418         * tree-ssa-loop-ch.c: Likewise.
419         * tree-tailcall.c: Likewise.
420         * value-prof.h: Likewise.
421         * tree.c: Likewise.
422         * tree.h: Likewise.
423         * tree-pass.h: Likewise.
424         * ipa-cp.c: Likewise.
425         * tree-scalar-evolution.c: Likewise.
426         * tree-scalar-evolution.h: Likewise.
427         * target.h: Likewise.
428         * lambda-mat.c: Likewise.
429         * tree-phinodes.c: Likewise.
430         * diagnostic.h: Likewise.
431         * builtins.c: Likewise.
432         * tree-ssa-alias-warnings.c: Likewise.
433         * cfghooks.c: Likewise.
434         * fold-const.c: Likewise.
435         * cfghooks.h: Likewise.
436         * omp-low.c: Likewise.
437         * tree-ssa-dse.c: Likewise.
438         * ipa-reference.c: Likewise.
439         * tree-ssa-uncprop.c: Likewise.
440         * toplev.c: Likewise.
441         * tree-gimple.c: Likewise.
442         * tree-gimple.h: Likewise.
443         * tree-chrec.c: Likewise.
444         * tree-chrec.h: Likewise.
445         * tree-ssa-sccvn.c: Likewise.
446         * tree-ssa-sccvn.h: Likewise.
447         * cgraphunit.c: Likewise.
448         * tree-ssa-copyrename.c: Likewise.
449         * tree-ssa-ccp.c: Likewise.
450         * tree-ssa-loop-ivopts.c: Likewise.
451         * tree-nomudflap.c: Likewise.
452         * tree-call-cdce.c: Likewise.
453         * ipa-pure-const.c: Likewise.
454         * c-format.c: Likewise.
455         * tree-stdarg.c: Likewise.
456         * tree-ssa-math-opts.c: Likewise.
457         * tree-ssa-dom.c: Likewise.
458         * tree-nrv.c: Likewise.
459         * tree-ssa-propagate.c: Likewise.
460         * ipa-utils.c: Likewise.
461         * tree-ssa-propagate.h: Likewise.
462         * tree-ssa-alias.c: Likewise.
463         * gimple-low.c: Likewise.
464         * tree-ssa-sink.c: Likewise.
465         * ipa-inline.c: Likewise.
466         * c-semantics.c: Likewise.
467         * dwarf2out.c: Likewise.
468         * expr.c: Likewise.
469         * tree-ssa-loop-ivcanon.c: Likewise.
470         * predict.c: Likewise.
471         * tree-ssa-loop.c: Likewise.
472         * tree-parloops.c: Likewise.
473         * tree-ssa-address.c: Likewise.
474         * tree-ssa-ifcombine.c: Likewise.
475         * matrix-reorg.c: Likewise.
476         * c-decl.c: Likewise.
477         * tree-eh.c: Likewise.
478         * c-pretty-print.c: Likewise.
479         * lambda-trans.c: Likewise.
480         * function.c: Likewise.
481         * langhooks.c: Likewise.
482         * ebitmap.h: Likewise.
483         * tree-vectorizer.c: Likewise.
484         * function.h: Likewise.
485         * langhooks.h: Likewise.
486         * tree-vectorizer.h: Likewise.
487         * ipa-type-escape.c: Likewise.
488         * ipa-type-escape.h: Likewise.
489         * domwalk.c: Likewise.
490         * tree-if-conv.c: Likewise.
491         * profile.c: Likewise.
492         * domwalk.h: Likewise.
493         * tree-data-ref.c: Likewise.
494         * tree-data-ref.h: Likewise.
495         * tree-flow-inline.h: Likewise.
496         * tree-affine.c: Likewise.
497         * tree-vect-analyze.c: Likewise.
498         * c-typeck.c: Likewise.
499         * gimplify.c: Likewise.
500         * coretypes.h: Likewise.
501         * tree-ssa-phiopt.c: Likewise.
502         * calls.c: Likewise.
503         * tree-ssa-coalesce.c: Likewise.
504         * tree.def: Likewise.
505         * tree-dfa.c: Likewise.
506         * except.c: Likewise.
507         * except.h: Likewise.
508         * cfgexpand.c: Likewise.
509         * tree-cfgcleanup.c: Likewise.
510         * tree-ssa-pre.c: Likewise.
511         * tree-ssa-live.c: Likewise.
512         * tree-sra.c: Likewise.
513         * tree-ssa-live.h: Likewise.
514         * tree-predcom.c: Likewise.
515         * lambda.h: Likewise.
516         * tree-mudflap.c: Likewise.
517         * ipa-prop.c: Likewise.
518         * print-tree.c: Likewise.
519         * tree-ssa-copy.c: Likewise.
520         * ipa-prop.h: Likewise.
521         * tree-ssa-forwprop.c: Likewise.
522         * ggc-page.c: Likewise.
523         * c-omp.c: Likewise.
524         * tree-ssa-dce.c: Likewise.
525         * tree-vect-patterns.c: Likewise.
526         * tree-ssa-ter.c: Likewise.
527         * tree-nested.c: Likewise.
528         * tree-ssa.c: Likewise.
529         * lambda-code.c: Likewise.
530         * tree-ssa-loop-prefetch.c: Likewise.
531         * tree-inline.c: Likewise.
532         * tree-inline.h: Likewise.
533         * tree-iterator.c: Likewise.
534         * tree-optimize.c: Likewise.
535         * tree-ssa-phiprop.c: Likewise.
536         * tree-vect-transform.c: Likewise.
537         * tree-object-size.c: Likewise.
538         * tree-outof-ssa.c: Likewise.
539         * cfgloop.c: Likewise.
540         * system.h: Likewise.
541         * tree-profile.c: Likewise.
542         * cfgloop.h: Likewise.
543         * c-gimplify.c: Likewise.
544         * c-common.c: Likewise.
545         * tree-vect-generic.c: Likewise.
546         * tree-flow.h: Likewise.
547         * c-common.h: Likewise.
548         * basic-block.h: Likewise.
549         * tree-ssa-structalias.c: Likewise.
550         * tree-switch-conversion.c: Likewise.
551         * tree-ssa-structalias.h: Likewise.
552         * tree-cfg.c: Likewise.
553         * passes.c: Likewise.
554         * ipa-struct-reorg.c: Likewise.
555         * ipa-struct-reorg.h: Likewise.
556         * tree-ssa-reassoc.c: Likewise.
557         * cfgrtl.c: Likewise.
558         * varpool.c: Likewise.
559         * stmt.c: Likewise.
560         * tree-ssanames.c: Likewise.
561         * tree-ssa-threadedge.c: Likewise.
562         * langhooks-def.h: Likewise.
563         * tree-ssa-operands.c: Likewise.
564         * config/alpha/alpha.c: Likewise.
565         * config/frv/frv.c: Likewise.
566         * config/s390/s390.c: Likewise.
567         * config/m32c/m32c.c: Likewise.
568         * config/m32c/m32c-protos.h: Likewise.
569         * config/spu/spu.c: Likewise.
570         * config/sparc/sparc.c: Likewise.
571         * config/i386/i386.c: Likewise.
572         * config/sh/sh.c: Likewise.
573         * config/xtensa/xtensa.c: Likewise.
574         * config/stormy16/stormy16.c: Likewise.
575         * config/ia64/ia64.c: Likewise.
576         * config/rs6000/rs6000.c: Likewise.
577         * config/pa/pa.c: Likewise.
578         * config/mips/mips.c: Likewise.
579
580 2008-07-28  Simon Baldwin  <simonb@google.com>
581
582         * c-pragma.c (handle_pragma_message): New function.
583         (init_pragma): Register handle_pragma_message.
584         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
585         documentation.
586
587 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
588
589         PR tree-optimization/35252
590         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
591         REALPART_EXPR to be considered as same load operation.
592
593 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
594
595         PR tree-optimization/36830
596         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
597         (expressions_equal_p): Return false if only one operand is null.
598
599 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
600
601         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
602         version requirements.
603
604 2008-07-26  Olivier Hainque  <hainque@adacore.com>
605
606         * collect2.c (symkind): New enum.  Symbol kinds we care about.
607         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
608         code and head comment accordingly.
609         (scan_prog_file): Use symkind names instead of bare integers.
610
611 2008-07-25  Jan Hubicka  <jh@suse.cz>
612
613         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
614         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
615         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
616         * dojump.c (clear_pending_stack_adjust): Likewise.
617         * print-tree.c (print_node): Ignore DECL_INLINE.
618         * tree-inline.c (inlinable_function_p): Likewise.
619
620 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
621
622         * doc/extend.texi (hot attribute): Document that the hot attribute
623         turns on -O3 for some ports.
624         (cold attribute): Document that the cold attribute turns on -Os
625         for some ports
626
627         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
628         reflect function specific option support.
629
630         * target.h (struct target_option_hooks): Add fields to say whether
631         the cold attribute implies -Os and the hot attribute implies -O3.
632
633         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
634         By default, do not turn on -Os for cold functions.
635         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
636         not turn on -O3 for hot functions.
637
638         * c-common.c (handle_hot_attribute): Use target hook to determine
639         if hot functions should enable -O3.
640         (handle_cold_attribute): Use target hook to determine if cold
641         functions should enable -Os.
642
643         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
644         (override_options): Move disable scheduling to
645         optimization_options.
646         (optimization_options): Disable scheduling here, not
647         override_options.
648         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
649         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
650
651         * config/ia64/ia64.c (ia64_override_options): Move setting
652         scheduling flags to ia64_optimization_options.
653         (ia64_optimization_options): Disable scheduling options here, and
654         not in ia64_override_options.
655         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
656         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
657
658 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
659
660         PR target/36936
661         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
662
663 2008-07-25  Martin Jambor  <mjambor@suse.cz>
664
665         PR tree-optimization/36926
666         * ipa-prop.c (ipa_analyze_call_uses): Call
667         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
668
669 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
670
671         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
672         movv2si_internal): Add mem = reg alternative.
673
674 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
675
676         PR bootstrap/36918
677         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
678         DEFAULT_PCC_STRUCT_RETURN to 127.
679
680 2008-07-24  Jan Hubicka  <jh@suse.cz>
681
682         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
683         (build_cgraph_edges): Likewise.
684         * cgraph.c (cgraph_node): Do not update assembler hash.
685         (cgraph_remove_node): Drop non-unit-at-a-time code.
686         * tree-pass.h (pass_O0_always_inline): Remove.
687         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
688         * toplev.c (process_options): Flag unit-at-a-time does not imply
689         no section anchors.
690         * cgraphunit.c: Update comments.
691         (decide_is_function_needed): Drop non-unit-at-a-time mode.
692         (cgraph_assemble_pending_functions): Remove.
693         (cgraph_reset_node): Drop non-unit-at-a-time code.
694         (cgraph_finalize_function): Likewise.
695         (cgraph_analyze_function): Likewise.
696         (cgraph_finalize_compilation_unit): Likewise.
697         (cgraph_expand_function): Likewise.
698         (cgraph_optimize): Likesise.
699         (save_inline_function_body): Likewise.
700         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
701         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
702         * ipa-inline.c: Update comments.
703         (enum inlining_mode): remove INLINE_SPEED.
704         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
705         (cgraph_mark_inline_edge): Likewise.
706         (try_inline): Likewise.
707         (cgraph_decide_inlining_incrementally): Likewise.
708         (cgraph_gate_inlining): Remove.
709         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
710         (cgraph_gate_early_inlining): Likewise.
711         (gate_inline_passes): Remove.
712         (pass_inline_parameters, pass_ipa_inline): Remove gates.
713         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
714         pass_O0_always_inline): Remove.
715         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
716         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
717         * opts.c (no_unit_at_a_time_default): Remove.
718         (decode_options): Remove flag_unit_at_a_time reset and warning.
719         * opts.h (no_unit_at_a_time_default): Remove.
720         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
721         early in GNU dialect.
722         (merge_decls): Update comment; drop unit-at-a-time check.
723         (finish_decl): Likewise.
724         (grok_declaration): Remove flag_inline_trees code.
725         (finish_functions): Return on function returning non-void on all
726         statics.
727         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
728         * cfgexpand.c (expand_one_static_var): Remove.
729         (expand_one_var): Remove expand_one_static_var call.
730         (expand_used_vars_for_block): Remove flag_unit_a_time check.
731         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
732         and flag_unit_at_a-time compatibility checks.
733         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
734         * tree-inline.c (flag_inline_trees): Remove.
735         (inlinable_function_p): Don't check it.
736         (expand_call_inline): Remove non-unit-at-a-time code.
737         * tree-inline.h (flag_inline_trees): Remove.
738         * tree-optimize.c (execute_early_local_optimizations): Remove
739         unit-at-a-time checks.
740         (tree_rest_of_compilation): Likewise.
741         * combine.c (setup_incoming_promotions): Likewise.
742         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
743         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
744         * passes.c (pass_inline_parameters): Update comments; remove
745         O0_alwaysinline pass.
746         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
747         (execute_one_pass): Likewise.
748         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
749         (ix86_function_sseregparm): Likewise.
750         * arm.c (arm_function_in_section_p): Likewise.
751         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
752         * varpool.c: Update comments.
753         (decide_is_variable_needed): Remove unit-at-a-time checks.
754         (varpool_finalize_decl): Likewise.
755
756 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
757
758         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
759         to 2 instead of -1.
760         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal
761         to 2.
762
763 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
764
765         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
766         imp symbol extension.
767
768         2008-07-23  Ian Lance Taylor  <iant@google.com>
769
770         * tree-vrp.c (infer_value_range): Ignore asm statements when
771         looking for memory accesses for -fdelete-null-pointer-checks.
772
773 2008-07-24  Ben Elliston  <bje@au.ibm.com>
774
775         * config/spu/spu-c.c (__vector_keyword): New variable.
776         (vector_keyword): Likewise.
777         (spu_categorize_keyword): New function.
778         (spu_macro_to_expand): Likewise.
779         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
780         compiling an ISO C dialect.
781
782 2008-07-24  Ben Elliston  <bje@au.ibm.com>
783
784         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
785         conventional usage.
786
787 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
788
789         * configure: Regenerate.
790         * configure.ac: Require texinfo 4.7.
791         * doc/install.texi: Document texinfo 4.7 requirement.
792
793 2008-07-23  Martin Jambor  <mjambor@suse.cz>
794
795         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
796         rather than for DECL_SAVED_TREE.
797         * ipa-prop.c: Include diagnostic.h.
798         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
799         thoroughly.
800         (ipa_detect_param_modifications): Function rewritten from scratch.
801         (ipa_compute_jump_functions): Changed accesses to modification flags.
802         (ipa_free_node_params_substructures): Update flags destruction.
803         (ipa_node_duplication_hook): Update flags duplication.
804         (ipa_print_all_params_modified): Updated flag access.
805         * ipa-prop.h (struct ipa_param_flags): New structure.
806         (struct ipa_node_params): New field modification_analysis_done,
807         modified_flags changed into param_flags.
808         (ipa_is_ith_param_modified): Changed to use new flags.
809         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
810
811         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
812         ipa-cp.c and split into two functions.
813         (ipa_print_node_jump_functions): New function.
814         (compute_scalar_jump_functions): New function.
815         (type_like_member_ptr_p): New function.
816         (compute_pass_through_member_ptrs): New function.
817         (fill_member_ptr_cst_jump_function): New function.
818         (determine_cst_member_ptr): New function.
819         (compute_cst_member_ptr_arguments): New function.
820         (ipa_compute_jump_functions): Complete rewrite.
821         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
822         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
823         (struct ipa_member_ptr_cst): New structure.
824         (union jump_func_value): New field member_cst.
825         * ipa-cp.c (ipcp_lat_is_insertable): New function.
826         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
827         jump function types.
828         (ipcp_print_all_lattices): Slight fprintf rearrangement.
829         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
830         instead of ipcp_print_all_jump_functions.
831         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
832         only for replacable scalars.
833
834         * doc/invoke.texi (Optimize options): Add description of
835         -findirect-inlining.
836         * common.opt (flag_indirect_inlining): New flag.
837         * opts.c (decode_options): Set flag_indirect_inlining when
838         optimize >= 3.
839
840         * ipa-inline.c: Include ipa-prop.h.
841         (inline_indirect_intraprocedural_analysis): New function.
842         (inline_generate_summary): Allocate parameter and argument info
843         structures, call inline_indirect_intraprocedural_analysis on each
844         node when doing indirect inlining and deallocate indirect inlining
845         data structures in the end.
846         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
847         (free_all_ipa_structures_after_iinln): New function.
848         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
849         done.
850         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
851
852         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
853         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
854         of computing the frequency separately.
855         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
856         of computing the frequency separately.
857         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
858         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
859         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
860         (ipa_get_stmt_member_ptr_load_param): New function.
861         (ipa_is_ssa_with_stmt_def): New function.
862         (ipa_note_param_call): New function.
863         (ipa_analyze_call_uses): New function.
864         (ipa_analyze_stmt_uses): New function.
865         (ipa_analyze_params_uses): New function.
866         (ipa_free_node_params_substructures): Also free the param_calls linked
867         list.
868         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
869         (ipa_print_node_param_flags): New function.
870         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
871         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
872         * ipa-prop.h (struct ipa_param_flags): New field called.
873         (struct ipa_param_call_note): New structure.
874         (struct ipa_node_params): New fields param_calls and
875         uses_analysis_done.
876         (ipa_is_ith_param_called): New function.
877         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
878         ipa_analyze_params_uses and dump parameter flags.
879
880         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
881         ipa_propagate_indirect_call_infos if performing indirect inlining,
882         pass a new parameter new_edges to it.
883         (add_new_edges_to_heap): New fucntion.
884         (cgraph_decide_inlining_of_small_functions): New vector
885         new_indirect_edges for newly found indirect edges , call
886         ipa_propagate_indirect_call_infos after inlining.
887         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
888         inlining if performing indirect inlining.  Call
889         free_all_ipa_structures_after_iinln when doing so too.
890         (inline_generate_summary): Do not call
891         free_all_ipa_structures_after_iinln here.
892         * ipa-prop.c (update_jump_functions_after_inlining): New function.
893         (print_edge_addition_message): New function.
894         (update_call_notes_after_inlining): New function.
895         (propagate_info_to_inlined_callees): New function.
896         (ipa_propagate_indirect_call_infos): New function.
897         * ipa-prop.h: Include cgraph.h
898         (struct ipa_param_call_note): Fields reordered, new field processed.
899         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
900         flag indirect_call.
901         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
902         rediscovered call statements.
903         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
904         (dump_cgraph_node): Dump also the indirect_call flag.
905         (cgraph_clone_edge): Copy also the indirect_call flag.
906         * tree-inline.c (copy_bb): Do not check for fndecls from call
907         expressions, check for edge availability when moving clones.
908         (get_indirect_callee_fndecl): New function.
909         (expand_call_inline): If callee declaration is not apprent from
910         the statement, try calling get_indirect_callee_fndecl.  Do not
911         issue warnings or call sorry when not inlinings an indirect edge.
912         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
913
914         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
915         bit more frandly to matching.
916         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
917         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
918         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
919
920 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
921
922         PR 36907
923         * opth-gen.awk: Suppress function specific features when building
924         target libraries.
925         * optc-gen.awk: Ditto.
926
927 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
928
929         PR 35058
930         * diagnostic.c (pedwarn): Add opt parameter.
931         (pedwarn0): New.
932         * c-tree.h (pedwarn_init): Add opt parameter.
933         (pedwarn_c90): Likewise.
934         (pedwarn_c99): Likewise.
935         * c-errors.c (pedwarn_c99): Likewise.
936         (pedwarn_c90): Likewise.
937         * toplev.h (pedwarn): Update declaration.
938         (pedwarn0): Declare.
939         * c-lex.c: All calls to pedwarn changed.
940         * builtins.c: All calls to pedwarn changed.
941         * toplev.c: All calls to pedwarn changed.
942         * c-decl.c: All calls to pedwarn changed.
943         * c-typeck.c: All calls to pedwarn changed.
944         * c-common.c: All calls to pedwarn changed.
945         * c-parser.c: All calls to pedwarn changed.
946
947 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
948             Karthik Kumar  <karthikkumar@gmail.com>
949
950         * attribs.c (file scope): Include c-common.h.
951         (decl_attributes): Add support for #pragma GCC optimize and
952         #pragma GCC option.
953
954         * targhooks.c (default_can_inline_p): New function that is the
955         default for the TARGET_CAN_INLINE_P target hook.
956
957         * targhooks.h (default_can_inline_p): Add declaration.
958
959         * tree.c (cl_optimization_node): New static tree for building
960         OPTIMIZATION_NODE tree.
961         (cl_target_option_node): New static tree for building
962         TARGET_OPTION_NODE tree.
963         (cl_option_hash_table): New hash table for hashing
964         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
965         (cl_option_hash_hash): New function to provide the hash value for
966         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
967         (cl_option_hash_eq): New function to provide an equality test for
968         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
969         (tree_code_size): Add support for OPTIMIZATION_NODE and
970         TARGET_OPTION_NODE trees.
971         (tree_code_structure): Add support for OPTIMIZATION_NODE and
972         TARGET_OPTION_NODE trees.
973         (build_optimization_node): Build a tree that has all of the
974         current optimization options.
975         (build_target_option_node): Build a tree that has the target
976         options that might be changed on a per function basis.
977
978         * tree.h (file scope): Include options.h.
979         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
980         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
981         (TREE_OPTIMIZATION): Ditto.
982         (TREE_TARGET_SPECIFIC): Ditto.
983         (struct tree_function_decl): Add fields for remembering the
984         current optimization options and target specific options.
985         (struct tree_optimization_option): New tree variant that remembers
986         the optimization options.
987         (struct tree_target_option): New tree variant that remembers the
988         target specific flags that might change for compiling a particular
989         function.
990         (union tree_node): Include tree_optimization_option and
991         tree_target_option fields.
992         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
993         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
994         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
995         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
996         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
997         optimization and target options.
998         (optimization_default_node): New macro to refer to global_trees
999         field.
1000         (optimization_current_node): Ditto.
1001         (optimization_cold_node): Ditto.
1002         (optimization_hot_node): Ditto.
1003         (target_option_default_node): Ditto.
1004         (target_option_current_node): Ditto.
1005         (current_option_pragma): Ditto.
1006         (current_optimize_pragma): Ditto.
1007
1008         * target.h (struct gcc_target): Add valid_option_attribute_p,
1009         target_option_save, target_option_restore, target_option_print,
1010         target_option_pragma_parse, and can_inline_p hooks.
1011
1012         * toplev.h (parse_optimize_options): Add declaration.
1013         (fast_math_flags_struct_set_p): Ditto.
1014
1015         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
1016         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
1017         optimize is used.
1018
1019         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
1020         tree_can_inline_p hook to see if one function can inline another.
1021         (cgraph_decide_inlining): Ditto.
1022         (cgraph_decide_inlining_incrementally): Ditto.
1023
1024         * opts.c (decode_options): Add support for running multiple times
1025         to allow functions with different target or optimization options
1026         than was specified on the command line.
1027         (fast_math_flags_struct_set_p): New function that is similar to
1028         fast_math_flags_set_p, except it uses the values in the
1029         cl_optimization structure instead of global variables.
1030
1031         * optc-gen.awk: Add support for TargetSave to allow a back end to
1032         declare new fields that need to be saved when using function
1033         specific options.  Include flags.h and target.h in the options.c
1034         source.  Add support for Save to indicate which options can be set
1035         for individual functions.  Generate cl_optimize_save,
1036         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
1037         cl_target_option_restore, cl_target_option_print functions to
1038         allow functions to use different optimization or target options.
1039
1040         * opt-functions.awk (var_type_struct): Return the type used for
1041         storing the field in a structure.
1042
1043         * opth-gen.awk: Add support for TargetSave to allow a back end to
1044         declare new fields that need to be saved when using function
1045         specific options.  Add support for Save to indicate which options
1046         can be set for individual functions.  Only generate one extern for
1047         Mask fields.  Generate cl_optimization and cl_target_option
1048         structures to remember optimization and target options.
1049
1050         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
1051         collecting new tree nodes.
1052         (TS_TARGET_OPTION): Ditto.
1053
1054         * c-decl.c (merge_decls): Merge function specific target and
1055         optimization options.
1056
1057         * function.c (invoke_set_current_function_hook): If the function
1058         uses different optimization options, change the global variables
1059         to reflect this.
1060
1061         * coretypes.h (struct cl_optimization): Add forward reference.
1062         (struct cl_target_option): Ditto.
1063
1064         * c-pragma.c (option_stack): New static vector to remember the
1065         current #pragma GCC option stack.
1066         (handle_pragma_option): New function to support #pragma GCC option
1067         to change target options.
1068         (optimize_stack): New static vector to remember the current
1069         #pragma GCC optimize stack.
1070         (handle_pragma_optimize): New function to support #pragma GCC
1071         optimize to change optimization options.
1072         (init_pragma): Add support for #pragma GCC optimize and #pragma
1073         GCC option.
1074
1075         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
1076         optimization options.
1077         (TARGET_OPTION_NODE): New tree code for remembering certain target
1078         options.
1079
1080         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
1081         TARGET_OPTION_NODE trees.
1082
1083         * common.opt (-O): Add Optimization flag.
1084         (-Os): Ditto.
1085         (-fmath-errno): Ditto.
1086         (-falign-functions): Add UInteger flag to make sure flag gets full
1087         int in cl_optimization structure.
1088         (-falign-jumps): Ditto.
1089         (-falign-labels): Ditto.
1090         (-falign-loops): Ditto.
1091         (-fsched-stalled-insns): Ditto.
1092         (-fsched-stalled-insns-dep): Ditto.
1093
1094         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
1095         definition.
1096         (TARGET_OPTION_SAVE): Ditto.
1097         (TARGET_OPTION_RESTORE): Ditto.
1098         (TARGET_OPTION_PRINT): Ditto.
1099         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1100         (TARGET_CAN_INLINE_P): Ditto.
1101         (TARGET_INITIALIZER): Add new hooks.
1102
1103         * tree-inline.c (tree_can_inline_p): New function to determine
1104         whether one function can inline another.  Check if the functions
1105         use compatible optimization options, and also call the backend
1106         can_inline_p hook.
1107
1108         * tree-inline.h (tree_can_inline_p): Add declaration.
1109
1110         * c-common.c (c_common_attribute): Add support for option and
1111         optimize attributes.
1112         (handle_option_attribute): Add support for the option attribute to
1113         allow the user to specify different target options for compiling a
1114         specific function.
1115         (handle_optimize_attribute): Add support for the optimize
1116         attribute to allow the user to specify different optimization
1117         options for compiling a specific function.
1118         (handle_hot_attribute): Turn on -O3 optimization for this one
1119         function if it isn't the default optimization level.
1120         (handle_cold_attribute): Turn on -Os optimization for this one
1121         function if it insn't the default optimization.
1122         (const_char_p): New const char * typedef.
1123         (optimize_args): New static vector to remember the optimization
1124         arguments.
1125         (parse_optimize_options): New function to set up the optimization
1126         arguments from either the optimize attribute or #pragma GCC
1127         optimize.
1128
1129         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
1130         (builtin_define_std): Ditto.
1131
1132         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
1133         Add t-i386 Makefile fragment to add i386-c.o and i386.o
1134         dependencies.
1135         (x86_64-*-*): Ditto.
1136
1137         * Makefile.in (TREE_H): Add options.h.
1138         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
1139
1140         * doc/extend.texi (option attribute): Document new attribute.
1141         (optimize attribute): Ditto.
1142         (hot attribute): Document hot attribute sets -O3.
1143         (cold attribute): Document cold attribute sets -Os.
1144         (#pragma GCC option): Document new pragma.
1145         (#pragma GCC optimize): Ditto.
1146
1147         * doc/options.texi (TargetSave): Document TargetSave syntax.
1148         (UInteger): Document UInteger must be used for certain flags.
1149         (Save): Document Save option to create target specific options
1150         that can be saved/restored on a function specific context.
1151
1152         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new
1153         macro.
1154         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1155
1156         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new
1157         hook.
1158         (TARGET_OPTION_SAVE): Ditto.
1159         (TARGET_OPTION_RESTORE): Ditto.
1160         (TARGET_OPTION_PRINT): Ditto.
1161         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1162         (TARGET_CAN_INLINE_P): Ditto.
1163
1164         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
1165         -mfpmath=sse,387.
1166         (-mfpmath=both): Ditto.
1167
1168 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
1169             Karthik Kumar  <karthikkumar@gmail.com>
1170
1171         * config/i386/i386.h (TARGET_ABM): Move switch into
1172         ix86_isa_flags.
1173         (TARGET_POPCNT): Ditto.
1174         (TARGET_SAHF): Ditto.
1175         (TARGET_AES): Ditto.
1176         (TARGET_PCLMUL): Ditto.
1177         (TARGET_CMPXCHG16B): Ditto.
1178         (TARGET_RECIP): Move switch into target_flags.
1179         (TARGET_FUSED_MADD): Ditto.
1180         (ix86_arch_features): Make an unsigned char type.
1181         (ix86_tune_features): Ditto.
1182         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
1183         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
1184         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
1185
1186         * config/i386/i386.opt (arch): New TargetSave field to define
1187         fields that need to be saved for function specific option
1188         support.
1189         (tune): Ditto.
1190         (fpmath): Ditto.
1191         (branch_cost): Ditto.
1192         (ix86_isa_flags_explicit): Ditto.
1193         (tune_defaulted): Ditto.
1194         (arch_specified): Ditto.
1195         (-m128-long-double): Add Save flag to save option for target
1196         specific option support.
1197         (-m80387): Ditto.
1198         (-maccumulate-outgoing-args): Ditto.
1199         (-malign-double): Ditto.
1200         (-malign-stringops): Ditto.
1201         (-mfancy-math-387): Ditto.
1202         (-mhard-float): Ditto.
1203         (-mieee-fp): Ditto.
1204         (-minline-all-stringops): Ditto.
1205         (-minline-stringops-dynamically): Ditto.
1206         (-mms-bitfields): Ditto.
1207         (-mno-align-stringops): Ditto.
1208         (-mno-fancy-math-387): Ditto.
1209         (-mno-push-args): Ditto.
1210         (-mno-red-zone): Ditto.
1211         (-mpush-args): Ditto.
1212         (-mred-zone): Ditto.
1213         (-mrtd): Ditto.
1214         (-msseregparm): Ditto.
1215         (-mstack-arg-probe): Ditto.
1216         (-m32): Ditto.
1217         (-m64): Ditto.
1218         (-mmmx): Ditto.
1219         (-m3dnow): Ditto.
1220         (-m3dnowa): Ditto.
1221         (-msse): Ditto.
1222         (-msse2): Ditto.
1223         (-msse3): Ditto.
1224         (-msse4.1): Ditto.
1225         (-msse4.2): Ditto.
1226         (-msse4): Ditto.
1227         (-mno-sse4): Ditto.
1228         (-msse4a): Ditto.
1229         (-msse5): Ditto.
1230         (-mrecip): Move flag into target_flags.
1231         (-mcld): Ditto.
1232         (-mno-fused-madd): Ditto.
1233         (-mfused-madd): Ditto.
1234         (-mabm): Move flag into ix86_isa_flags.
1235         (-mcx16): Ditto.
1236         (-mpopcnt): Ditto.
1237         (-msahf): Ditto.
1238         (-maes): Ditto.
1239         (-mpclmul): Ditto.
1240
1241         * config/i386/i386-c.c: New file for #pragma support.
1242         (ix86_target_macros_internal): New function to #define or #undef
1243         target macros based when the user uses the #pragma GCC option to
1244         change target options.
1245         (ix86_pragma_option_parse): New function to add #pragma GCC option
1246         support.
1247         (ix86_target_macros): Move defining the target macros here from
1248         TARGET_CPU_CPP_BUILTINS in i386.h.
1249         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
1250         defined, initialize any subtarget #pragmas.
1251
1252         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
1253         REGISTER_TARGET_PRAGMAS.
1254
1255         * config/i386/t-i386: New file for x86 dependencies.
1256         (i386.o): Make dependencies mirror the include files used.
1257         (i386-c.o): New file, add dependencies.
1258
1259         * config/i386/i386-protos.h (override_options): Add bool
1260         argument.
1261         (ix86_valid_option_attribute_tree): Add declaration.
1262         (ix86_target_macros): Ditto.
1263         (ix86_register_macros): Ditto.
1264
1265         * config/i386/i386.c (ix86_tune_features): Move initialization of
1266         the target masks to initial_ix86_tune_features to allow functions
1267         to have different target options.  Make type unsigned char,
1268         instead of unsigned int.
1269         (initial_ix86_tune_features): New static vector to hold processor
1270         masks for the tune variables.
1271         (ix86_arch_features): Move initialization of the target masks to
1272         initial_ix86_arch_features to allow functions to have different
1273         target options.  Make type unsigned char, instead of unsigned
1274         int.
1275         (initial_ix86_arch_features): New static vector to hold processor
1276         masks for the arch variables.
1277         (enum ix86_function_specific_strings): New enum to describe the
1278         string options used for attribute((option(...))).
1279         (ix86_target_string): New function to return a string that
1280         describes the target options.
1281         (ix86_debug_options): New function to print the current options in
1282         the debugger.
1283         (ix86_function_specific_save): New function hook to save the
1284         function specific global variables in the cl_target_option
1285         structure.
1286         (ix86_function_specific_restore): New function hook to restore the
1287         function specific variables from the cl_target_option structure to
1288         the global variables.
1289         (ix86_function_specific_print): New function hook to print the
1290         target specific options in the cl_target_option structure.
1291         (ix86_valid_option_attribute_p): New function hook to validate
1292         attribute((option(...))) arguments.
1293         (ix86_valid_option_attribute_tree): New function that is common
1294         code between attribute((option(...))) and #pragma GCC option
1295         support that parses the options and returns a tree holding the
1296         options.
1297         (ix86_valid_option_attribute_inner_p): New helper function for
1298         ix86_valid_option_attribute_tree.
1299         (ix86_can_inline_p): New function hook to decide if one function
1300         can inline another on a target specific basis.
1301         (ix86_set_current_function); New function hook to switch target
1302         options if the user used attribute((option(...))) or #pragma GCC
1303         option.
1304         (ix86_tune_defaulted): Move to static file scope from
1305         override_options.
1306         (ix86_arch_specified): Ditto.
1307         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
1308         ix86_isa_flags.
1309         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
1310         (OPTION_MASK_ISA_ABM_SET): Ditto.
1311         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
1312         (OPTION_MASK_ISA_CX16_SET): Ditto.
1313         (OPTION_MASK_ISA_SAHF_SET): Ditto.
1314         (OPTION_MASK_ISA_AES_UNSET): Ditto.
1315         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
1316         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
1317         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
1318         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
1319         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
1320         (struct ptt): Move to static file scope from override_options.
1321         (processor_target_table): Ditto.
1322         (cpu_names): Ditto.
1323         (ix86_handle_option): Add support for options that are now isa
1324         options.
1325         (override_options): Add support for declaring functions that
1326         support different target options than were specified on the
1327         command line.  Move struct ptt, processor_target_table, cpu_names,
1328         ix86_tune_defaulted, ix86_arch_specified to static file scope.
1329         Add bool argument.  Fix up error messages so the appropriate error
1330         is given for either command line or attribute.
1331         (ix86_previous_fndecl): New static to remember previous function
1332         declaration to see if we need to change target options.
1333         (ix86_builtins_isa): New array to record the ISA of each builtin
1334         function.
1335         (def_builtin): Always create the builtin function, even if the
1336         current ISA doesn't support it.
1337         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
1338         tests for those builtins.
1339         (ix86_init_builtins): Remove TARGET_MMX test for calling
1340         ix86_init_mmx_sse_builtins.
1341         (ix86_expand_builtin): If the current ISA doesn't support a given
1342         builtin, signal an error.
1343         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
1344         (TARGET_SET_CURRENT_FUNCTION): Ditto.
1345         (TARGET_OPTION_SAVE): Ditto.
1346         (TARGET_OPTION_RESTORE): Ditto.
1347         (TARGET_OPTION_PRINT): Ditto.
1348         (TARGET_CAN_INLINE_P): Ditto.
1349
1350 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1351
1352        * c-typeck.c (build_external_ref): Don't call assemble_external.
1353        * final.c (output_operand): Call assemble_external.
1354
1355 2008-07-21  DJ Delorie  <dj@redhat.com>
1356
1357         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
1358         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1359
1360 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1361
1362         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
1363         original insn and splitter contents into ...
1364         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
1365         flag_unsafe_math_optimizations.  Add dummy scratch register.
1366         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
1367         !flag_unsafe_math_optimizations.  Returns number with next
1368         highest magnitude if this is still less or equal to the true
1369         quotient in magnitude.
1370
1371 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
1372
1373         * Makefile.in: Replace toplev.h with TOPLEV_H.
1374         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
1375         * c-lex.c (fe_file_change): Don't set in_system_header.
1376         * c-parser.c (c_token): Remove in_system_header.
1377         (c_lex_one_token): Don't set in_system_header.
1378         (c_parser_set_source_position_from_token): Don't set in_system_header.
1379         * diagnostic.c (diagnostic_report_diagnostic): Use location from
1380         diagnostic_info.
1381         (warning_at): New.
1382         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
1383         * flags.h (in_system_header): Remove.
1384         * function.c (saved_in_system_header): Remove.
1385         (push_cfun): Don't set in_system_header.
1386         (pop_cfun): Don't set in_system_header.
1387         (push_struct_function): Don't set in_system_header.
1388         * input.h (expanded_location): Add sysp.
1389         (in_system_header_at): New.
1390         (in_system_header): New.
1391         * toplev.c (in_system_header): Remove.
1392         * toplev.h: Include input.h
1393         (warning_at): New.
1394         * tree-cfg.c (execute_warn_function_return): Call warning_at.
1395         * tree-ssa.c (warn_uninit): Call warning_at.
1396         (warn_uninitialized_var): Update calls to warn_uninit.
1397         (warn_uninitialized_phi): Update calls to warn_uninit.
1398         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
1399         (expand_location): Initialize xloc.sysp.
1400         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
1401         (tree_decl_with_vis): Remove in_system_header_flag.
1402
1403 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1404
1405         PR target/36822
1406         * recog.c (asm_operand_ok): Change the order of the extra
1407         memory constraint checks.
1408
1409 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1410
1411         PR tree-opt/36879
1412         * tree-switch-conversion.c (build_one_array): Call
1413         varpool_mark_needed_node and varpool_finalize_decl
1414         instead of assemble_variable.
1415
1416 2008-07-19  Jan Hubicka  <jh@suse.cz>
1417
1418         * cgraph.c (cgraph_add_new_function): Do early local passes.
1419         * tree-nrv.c (gate_pass_return_slot): New gate.
1420         (pass_nrv): Add the gate.
1421         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
1422         functions.
1423         (coalesce_ssa_name): Coalesce SSA names.
1424         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
1425         not optimizing so unused user vars remains visible.
1426         * common.opt (flag_tree_ter): Always enable by default.
1427         * tree-ssa-ter.c: Include flags.h
1428         (is_replaceable_p): Check that locations match; when aliasing is missing
1429         be conservative about loads.
1430         * tree-optimize.c (gate_init_datastructures): Remove.
1431         (pass_init_datastructures): New.
1432         * passes.c: Reorder passes so we always go into SSA.
1433
1434 2008-07-19  Jan Hubicka  <jh@suse.cz>
1435
1436         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
1437         * doc/invoke.texi (--combine): Likewise.
1438         (-finline-functions-called-once): Update levels when enabled.
1439         (-funit-at-a-time): Document new behaviour.
1440         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
1441         -fno-section-anchors when disabled explicitly.
1442         (inline params): They are not ignored now.
1443         (precompiled headers): Remove unit-at-a-time as being incompatible.
1444         * opts.c (decode_options): Handle unit-at-a-time as alias;
1445         imply -fno-section-anchors when toplevel reorder is disabled
1446         explicitly.
1447         * common.opt (ftoplevel-reorder): Set default value to 2.
1448         (funit-at-a-time): Set default value to 1.
1449         * config/rs6000/rs6000.c (optimization_options): Set section anchors
1450         to 2.
1451
1452 2008-07-19  Jan Hubicka  <jh@suse.cz>
1453
1454         * builtins.c (expand_builtin_int_roundingfn,
1455         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
1456         it is not useful.
1457
1458 2008-07-19  Richard Guenther  <rguenther@suse.de>
1459
1460         PR bootstrap/36864
1461         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
1462         * tree-ssa-sccvn.c (get_constant_value_id): New function.
1463         * tree-ssa-pre.c (get_expr_value_id): For newly created
1464         constant value-ids make sure to add the expression to its
1465         expression-set.
1466
1467 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
1468
1469         PR middle-end/36877
1470         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
1471         return value of the builtin is ignored.
1472
1473 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1474
1475         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
1476         bits, a C conformant malloc implementation has to provide.
1477         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
1478
1479 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
1480
1481         PR target/36780
1482         PR target/36827
1483         * reload.c (find_reloads_subreg_address): Only reload address if
1484         reloaded == 0, not for reloaded != 1.
1485
1486         Revert:
1487         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1488         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1489         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1490         m32c_legitimize_reload_address.
1491
1492         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1493         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1494         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1495
1496 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1497
1498         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
1499         argument, saying whether nested array are to be collapsed
1500         into a single array type DIE with multiple subscripts.
1501         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
1502         issues, centralize the nested array types collapsing control and
1503         disable the transformation for Ada.
1504
1505 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
1506
1507         PR target/36786
1508         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
1509         x86_64_shift_adj.
1510         (x86_64_shift_adj_2): New expander.
1511         (x86_64_shift_adj_3): Ditto.
1512         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
1513         to split TImode operands.
1514         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
1515         (ix86_split_lshr): Ditto.
1516
1517 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
1518
1519         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
1520         and __CHAR32_TYPE__.
1521         * c-typeck.c (digest_init): Support char16_t and char32_t.
1522         (set_nonincremental_init_from_string): Idem.
1523
1524 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1525
1526         PR middle-end/36859
1527         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
1528         PREFERRED_STACK_BOUNDARY.
1529         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1530
1531 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1532
1533         PR middle-end/36858
1534         * function.c (locate_and_pad_parm): Cap boundary earlier.
1535
1536 2008-07-17  Julian Brown  <julian@codesourcery.com>
1537
1538         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
1539         no-op for targets which don't use DLLs.
1540
1541 2008-07-17  Martin Jambor  <mjambor@suse.cz>
1542
1543         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
1544         that nodes are relevant by examining the node->analyzed flag.
1545         (ipcp_init_stage): Check which nodes are relevant, assert that the
1546         relevant ones are also required.
1547         (ipcp_propagate_stage): Check on the side arrays are properly
1548         allocated.
1549         (ipcp_print_all_jump_functions): Make sure not to touch any node
1550         that is not analyzed or an edge that does not have a corresponding
1551         entry in the on-the-side vectors.
1552         (ipcp_function_scale_print): Likewise.
1553         (ipcp_update_callgraph): Check that the node is relevant.
1554         (ipcp_insert_stage): Check that the node is relevant.  Check there is
1555         an info for every node and edge.
1556         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
1557         (ipa_print_all_tree_maps): Likewise and a new variable info.
1558         (ipa_print_all_params_modified): Likewise.
1559         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
1560
1561 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
1562
1563         PR target/25343
1564         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
1565
1566 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
1567
1568         PR rtl-optimization/36753
1569         * fwprop.c (use_killed_between): Don't shortcut
1570         single-definition global registers.
1571
1572 2008-07-16  Jan Hubicka  <jh@suse.cz>
1573
1574         * cgraph.h (varpool_empty_needed_queue): Declare.
1575         * cgraphunit.c (output_in_order): Mark all variables as needed;
1576         empty the queue.
1577         * varpool.c (varpool_assemble_node): Update debug queue.
1578         (varpool_assemble_pending_decls): Don't do it here.
1579         (varpool_empty_needed_queue):  New function.
1580
1581 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1582
1583         * recog.c (peephole2_optimize): Fix formatting.
1584
1585 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1586
1587         * c-pch.c (get_ident): Avoid C++ keywords.
1588         * combine-stack-adj.c (single_set_for_csa): Likewise.
1589         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
1590         output_asm_insn): Likewise.
1591         * reload.c (push_secondary_reload, find_reusable_reload,
1592         push_reload, combine_reloads, find_reloads,
1593         debug_reload_to_stream): Likewise.
1594         * reload.h (struct reload): Likewise.
1595         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
1596         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
1597         emit_output_reload_insns): Likewise.
1598         * targhooks.c (default_secondary_reload): Likewise.
1599         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
1600
1601 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1602
1603         * recog.c (validate_change_1, validate_change,
1604         validate_unshare_change, validate_replace_rtx_1, struct
1605         funny_match, constrain_operands, peephole2_optimize): Avoid C++
1606         keywords.
1607         * reload.c (push_secondary_reload, secondary_reload_class,
1608         scratch_reload_class, find_valid_class, find_reusable_reload,
1609         push_reload, find_dummy_reload, find_reloads_address_1,
1610         find_reloads_address_part, find_equiv_reg): Likewise.
1611         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1612         choose_reload_regs): Likewise.
1613         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1614         Likewise.
1615         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1616         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1617         * sched-rgn.c (concat_INSN_LIST): Likewise.
1618         * stor-layout.c (mode_for_size, mode_for_size_tree,
1619         smallest_mode_for_size): Likewise.
1620
1621 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1622
1623         * cfg.c (dump_reg_info): Avoid C++ keywords.
1624         * dwarf2asm.c (dw2_force_const_mem,
1625         dw2_asm_output_encoded_addr_rtx): Likewise.
1626         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1627         * expmed.c (expand_shift): Likewise.
1628         * global.c (find_reg): Likewise.
1629         * graph.c (draw_edge): Likewise.
1630         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1631         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
1632         widen_clz, widen_bswap, expand_parity, expand_unop,
1633         emit_cmp_and_jump_insn_1): Likewise.
1634         * postreload.c (reload_cse_simplify_operands): Likewise.
1635         * ra.h (add_neighbor): Likewise.
1636         * reg-stack.c (remove_regno_note, change_stack): Likewise.
1637         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
1638         record_reg_classes, copy_cost, record_address_regs,
1639         invalid_mode_change_p): Likewise.
1640         * regrename.c (regrename_optimize, scan_rtx_reg,
1641         dump_def_use_chain, find_oldest_value_reg,
1642         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
1643
1644 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1645
1646         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
1647         MASK_POWERPC64 for power4 in previous commit.
1648
1649 2008-07-16  Olivier Hainque  <hainque@adacore.com>
1650
1651         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
1652         instead of bare conversion to cast const-ness away.
1653
1654 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
1655
1656         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
1657         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
1658         * config/xtensa/xtensa.c (xtensa_function_value): New function.
1659         (TARGET_FUNCTION_VALUE): Define.
1660
1661 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1662
1663         * config/rs6000/rs6000.c (processor_target_table): Add
1664         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
1665
1666 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1667
1668         PR target/36827
1669         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1670         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1671         m32c_legitimize_reload_address.
1672
1673 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
1674
1675        * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
1676        DECL_IN_SYSTEM_HEADER in sync.
1677
1678 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
1679
1680         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
1681         * tree-ssa-pre.c (pre_expr_eq): Ditto
1682         (get_constant_for_value_id): Take a type as an argument.
1683         (fully_constant_expression): Pass in type.
1684         (find_or_generate_expression): Short circuit constant case.
1685         (create_expression_by_pieces): Remove special casing of
1686         pointer_plus.
1687         (do_regular_insertion): Short circuit constant case.
1688         (do_partial_partial_insertion): Ditto.
1689
1690 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1691
1692         PR target/36782
1693         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
1694
1695 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
1696
1697         * config/xtensa/libgcc-xtensa.ver: New file.
1698         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
1699
1700 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1701
1702         * df-problems.c (df_set_note): Avoid C++ keywords.
1703         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
1704         * dse.c (record_store, remove_useless_values): Likewise.
1705         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
1706         gen_reg_rtx_offset, operand_subword, change_address_1,
1707         change_address, adjust_address_1, offset_address,
1708         widen_memory_access, emit_copy_of_insn_after): Likewise.
1709         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
1710         * fwprop.c (should_replace_address, propagate_rtx_1,
1711         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
1712         Likewise.
1713         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
1714         gcse_emit_move_after, update_ld_motion_stores): Likewise.
1715         * lcm.c (compute_insert_delete, pre_edge_lcm,
1716         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
1717         * lower-subreg.c (resolve_reg_notes): Likewise.
1718         * mode-switching.c (optimize_mode_switching): Likewise.
1719
1720 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1721
1722         * bt-load.c (add_btr_def, migrate_btr_def,
1723         branch_target_load_optimize): Avoid C++ keywords.
1724         * caller-save.c (insert_restore, insert_save, insert_one_insn):
1725         Likewise.
1726         * combine.c (subst, simplify_set, make_extraction,
1727         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
1728         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
1729         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
1730
1731 2008-07-15  Richard Guenther  <rguenther@suse.de>
1732
1733         PR middle-end/36369
1734         * c-common.c (strict_aliasing_warning): Do not warn for
1735         TYPE_REF_CAN_ALIAS_ALL pointers.
1736         (c_common_get_alias_set): may_alias types are not special.
1737         * tree.c (build_pointer_type_for_mode): Look up the may_alias
1738         attribute and set can_ref_all accordingly.
1739         (build_reference_type_for_mode): Likewise.
1740         * doc/extend.texi (may_alias): Clarify.
1741
1742 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1743
1744         PR target/36780
1745         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1746         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1747
1748 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1749
1750         PR target/31568
1751         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
1752         gcc_assert, instead call output_operand_lossage.
1753
1754 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
1755
1756         * builtins.c (std_canonical_va_list): Treat structure based
1757         va_list types.
1758
1759 2008-07-15  Ben Elliston  <bje@au.ibm.com>
1760
1761         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
1762
1763 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
1764
1765         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
1766         is set.
1767
1768 2008-07-14  Jan Hubicka  <jh@suse.cz>
1769
1770         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
1771         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
1772         fix predicates and constraints.
1773         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
1774         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
1775
1776 2008-07-14  Doug Kwan  <dougkwan@google.com>
1777
1778         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
1779         additional option file arm/eabi.opt.
1780         * config/arm/eabi.h (File): New configuration file for EABI targets.
1781         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
1782         SUBSUBTARGET_EXTRA_SPECS.
1783         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
1784         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
1785         from STARTFILE_SPEC so that it can be referenced in an override.
1786         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
1787         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
1788         can be referenced in an override.
1789         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
1790         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
1791         so that it can be referenced in an override.
1792         (LINK_SPEC): Use BPABI_LINK_SPEC.
1793         * config/arm/eabi.opt (File): New.
1794
1795 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1796
1797         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
1798         (FIXED_VALUE_H): New variable.
1799         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
1800         input.h, fixed-value.h.
1801         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
1802         (BASIC_BLOCK_H): Use $(BITMAP_H).
1803         (FUNCTION_H): Add varray.h.
1804         (IPA_REFERENCE_H): Use $(BITMAP_H).
1805         (CGRAPH_H): Add $(BASIC_BLOCK_H).
1806         (DF_H): Use $(BITMAP_H).
1807         (GGC_H): Add statistics.h.
1808         (INSN_ADDR_H): New.
1809         (INSN_ATTR_H): Use it.
1810         (SYSTEM_H): Add safe-ctype.h, filenames.h.
1811         (INPUT_H): New.
1812         (SYMTAB_H): Add $(OBSTACK_H).
1813         (CPP_INTERNAL_H): New.
1814         (TREE_DUMP_H): Add tree-pass.h.
1815         (TREE_FLOW_H): Use $(BITMAP_H)
1816         (PRETTY_PRINT_H): Use $(INPUT_H).
1817         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
1818         (GSTAB_H): New.
1819         (BITMAP_H): New.
1820         (many object files): Fix lots of header dependencies throughout.
1821
1822 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1823
1824         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
1825         New macros.
1826         (s-gtyp-input): Use them to write tmp-gi.list.
1827         (echo_to_gi.list): Remove.
1828
1829 2008-07-14  Richard Guenther  <rguenther@suse.de>
1830
1831         * tree-ssa-sccvn.c (pre_info): Remove.
1832         (switch_to_PRE_table): Likewise.
1833         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
1834         (set_hashtable_value_ids): Do not create value-ids for the
1835         optimistic tables.
1836         (run_scc_vn): Remove double test.  Remove bogus special-case
1837         in value-number printing.
1838         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
1839         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
1840         SSA_NAME_VALUE.
1841         * tree-flow-inline.h (get_value_handle): Remove.
1842         * tree-flow.h (get_value_handle): Remove.
1843
1844 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1845
1846         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
1847         in which we generate arithmetics is not a subrange.
1848
1849 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1850
1851         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
1852
1853 2008-07-14  Richard Guenther  <rguenther@suse.de>
1854
1855         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
1856
1857 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
1858
1859         PR target/36745
1860         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
1861         reload for symbol refs moved to r0 with -fPIC.
1862         (legitimize_pic_address): Use the target register as temporary
1863         reg if possible.
1864         (emit_symbolic_move): Adjust comment.
1865         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
1866         New expanders.
1867
1868 2008-07-14  Ben Elliston  <bje@au.ibm.com>
1869
1870         * c-common.h (C_CPP_HASHNODE): New macro.
1871         * coretypes.h (struct cpp_token): Forward declare.
1872         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1873         the context-sensitive keyword method.
1874         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
1875         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
1876         expand_bool_pixel): New.
1877         (altivec_categorize_keyword): New function.
1878         (init_vector_keywords): New function.
1879         (rs6000_macro_to_expand): Likewise.
1880         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
1881         compiling an ISO C dialect.
1882
1883 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
1884
1885         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
1886         (create_expression_by_pieces): Fix typo.
1887         (do_regular_insertion): Use debug counter here too.
1888
1889 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
1890
1891         PR target/35492.
1892         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
1893         CONST_OK_FOR_LETTER_P.  All port-local users changed.
1894         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
1895         implement Kp matching power-of-two.
1896         (CONSTRAINT_LEN): Define to match.
1897         * config/cris/cris.md: Replace all use of constraint K with Kc.
1898         ("*btst*): Use Kp for operand 0 of last alternative.
1899
1900 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1901
1902         PR testsuite/36440
1903         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
1904         and quad formats.
1905
1906 2008-07-13  Jan Hubicka  <jh@suse.cz>
1907
1908         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
1909         to be mangled too.
1910
1911 2008-07-13  Richard Guenther  <rguenther@suse.de>
1912
1913         PR middle-end/36811
1914         * langhooks.c (lhd_print_error_function): Deal with recursive
1915         BLOCK trees.
1916
1917 2008-07-12  Jan Hubicka  <jh@suse.cz>
1918
1919         * cgraph.c (assembler_name_hash): New static var.
1920         (hash_node_by_assembler_name, eq_assembler_name): New.
1921         (cgraph_node_for_asm): Use hashtable.
1922         (cgraph_remove_node): Maintain hashtable.
1923         (change_decl_assembler_name): Sanity check that names are not changing
1924         after aliasing was processed.
1925         * cgraph.h (varpoon_node): Add next GGC marker.
1926         * tree.c (decl_assembler_name_equal): Constify.
1927         (decl_assembler_name_hash): New.
1928         * tree.h (decl_assembler_name_equal): Constify.
1929         (decl_assembler_name_hash): Update.
1930
1931 2008-07-12  David Daney  <ddaney@avtrex.com>
1932
1933         * config/mips/driver-native.c (host_detect_local_cpu): Handle
1934         sb1 and r5000 cpus.
1935
1936 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
1937
1938         * doc/md.texi: Document the MIPS "v" constraint.
1939         * config/mips/mips.h (reg_class): Revert last change.
1940         (REG_CLASS_NAMES): Likewise.
1941         (REG_CLASS_CONTENTS): Likewise.
1942         * config/mips/mips.c (mips_regno_to_class): Likewise.
1943         * config/mips/constraints.md (v): Likewise, but add documentation.
1944         Add a comment to say that this constraint should not be used in
1945         gcc code.
1946
1947 2008-07-11  DJ Delorie  <dj@redhat.com>
1948
1949         * config/h8300/h8300.md (length): Fix branch offset limit.
1950
1951 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
1952
1953         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
1954         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
1955         (avr_hard_regno_scratch_ok): New function.
1956         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1957         * config/avr/avr.md (all peepholes that request a scratch register):
1958         Remove avr_peep2_scratch_safe use.
1959
1960 2008-07-11  Tom Tromey  <tromey@redhat.com>
1961             Ian Lance Taylor  <iant@google.com>
1962
1963         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
1964         (struct c_common_resword): Define.
1965         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
1966         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
1967         (c_common_reswords, num_c_common_reswords): Declare.
1968         * c-common.c (c_common_reswords): New global const array.
1969         (num_c_common_reswords): New const int.
1970         * c-parser.c (struct resword, reswords): Don't define.
1971         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
1972         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
1973         than reswords.  If warning about C++ keywords, give them a special
1974         RID code.
1975         (c_lex_one_token): Warn about C++ keywords.  Call
1976         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
1977         (c_parser_external_declaration): Look for RID_xxx rather than
1978         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
1979         (c_parser_statement_after_labels): Likewise.
1980         (c_parser_objc_class_instance_variables): Likewise.
1981         (c_parser_objc_class_declaration): Likewise.
1982         (c_parser_objc_try_catch_statement): Likewise.
1983         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
1984         (declspecs_add_type): Likewise.
1985
1986 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
1987
1988         * ggc-page.c (alloc_page):
1989         Substituting xmalloc, xcalloc with
1990         XNEWVEC and XCNEWVAR macros which add the
1991         needed casts.
1992
1993 2008-07-11  Richard Guenther  <rguenther@suse.de>
1994
1995         PR tree-optimization/36765
1996         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
1997         aliases from HEAP vars to SMTs.
1998
1999 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2000
2001         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
2002         * configure.ac (loose_warn): Move -Wc++-compat from here...
2003         (strict_warn): ...to here.
2004         * configure: Regenerate.
2005
2006 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
2007
2008         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
2009         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
2010         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
2011         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
2012         excluding more specific h8300-*-* and sh-*-* targets.
2013
2014 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
2015
2016         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
2017         (eliminate): Ditto.
2018         (execute_pre): Call loop_optimizer_finalize in early exit.
2019
2020 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
2021
2022         PR middle-end/36790
2023         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
2024         uids in the bitmap, not just VAR_DECL uids.
2025
2026         PR rtl-optimization/36419
2027         * combine-stack-adj.c (adjust_frame_related_expr): New function.
2028         (combine_stack_adjustments_for_block): Call it if needed.  Delete
2029         correct insn.
2030         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
2031         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
2032         prologue sp adjustment.
2033
2034 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
2035
2036         PR other/28322
2037         * opts.c (print_ignored_options): Report postponed diagnostics for
2038         unknown -Wno-* options as warnings, not errors.
2039         (postpone_unknown_option_error): Renamed to...
2040         (postpone_unknown_option_warning): ... this.
2041
2042 2008-07-09  Doug Kwan  <dougkwan@google.com>
2043
2044         Revert:
2045         2008-07-08  Doug Kwan  <dougkwan@google.com>
2046
2047         * config/arm/arm.opt (mandroid): New option.
2048         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2049         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2050         (CC1_SPEC): Same.
2051         (CC1PLUS_SPEC): Same.
2052         (LIB_SPEC): Same.
2053         (STARTFILE_SPEC): Same.
2054         (ENDFILE_SPEC): Same.
2055         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2056         used.
2057
2058 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
2059
2060         PR target/35802
2061         * config/mips/mips.h (reg_class): Remove V1_REG.
2062         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
2063         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
2064         instead of V1_REGS.
2065         (mips_get_tp): New function.
2066         (mips_legitimize_tls_address): Use it.
2067         * config/mips/constraints.md (v): Delete.
2068         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
2069         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
2070         After reload, split into a move and ...
2071         (*tls_get_tp_<mode>_split): ...this new instruction.
2072
2073 2008-07-09  David Daney  <ddaney@avtrex.com>
2074
2075         * config/mips/driver-native.c: Include coretypes.h and tm.h.
2076
2077 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
2078
2079         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
2080         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
2081         Add c argument.
2082         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
2083         htab_delete should be called.  Don't free c.
2084         (lookup_tmp_var): Create temp_htab lazily.
2085         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2086         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
2087         callers.
2088         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2089         lower_omp_ordered, lower_omp_critical, lower_omp_for,
2090         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
2091         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
2092         * tree-sra.c (generate_element_init): Likewise.
2093         * tree-mudflap.c (execute_mudflap_function_ops,
2094         execute_mudflap_function_decls): Likewise.
2095         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
2096         * tree-gimple.h (struct gimplify_ctx): New type.
2097         (push_gimplify_context): Adjust prototype.
2098
2099 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
2100
2101         * tree-ssa-pre.c (phi_translate_1): Update placement of
2102         add_to_value calls.
2103
2104 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
2105
2106         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
2107         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
2108         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
2109         * targhooks.c (default_hard_regno_scratch_ok): New function.
2110         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
2111         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
2112         * recog.c:  Include "target.h".
2113         (peep2_find_free_register): Add check for global regs. Add target
2114         specific check.
2115         * Makefile.in (recog.o): Depend on target.h.
2116
2117 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2118
2119         * config/sh/sh.c (sh_canonical_va_list_type): New.
2120         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
2121
2122 2008-07-09  Raksit Ashok <raksit@google.com>
2123
2124         * doc/invoke.texi (Option Summary): Mention new option
2125         -Wdisallowed-function-list=...
2126         (Warning Options): Document -Wdisallowed-function-list=...
2127         * common.opt (Wdisallowed-function-list=): New flag.
2128         * flags.h (warn_disallowed_functions): External definition of new
2129         boolean warning flag.
2130         (warn_if_disallowed_function_p): Declare new function.
2131         * opts.c (warning_disallowed_functions): New static variable.
2132         (warn_disallowed_functions): New boolean warning flag.
2133         (warn_if_disallowed_function_p): New function.
2134         (add_comma_separated_to_vector): Rename
2135         add_instrument_functions_exclude_list to this.
2136         (common_handle_option): Handle new option. Rename calls to
2137         add_instrument_functions_exclude_list into calls to
2138         add_comma_separated_to_vector.
2139         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
2140         based on flag warn_disallowed_functions.
2141
2142 2008-07-09  Christian Bruel  <christian.bruel@st.com>
2143
2144         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
2145          instead of get_attr_length.
2146
2147 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2148
2149         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
2150         keywords.
2151         * genemit.c (gen_insn): Likewise.
2152         * gengtype.c (note_def_vec): Likewise.
2153         * gengtype.h (note_def_vec): Likewise.
2154         * genoutput.c (struct data, output_insn_data, process_template,
2155         gen_expand, gen_split, note_constraint): Likewise.
2156         * genrecog.c (new_decision, add_to_sequence, factor_tests,
2157         make_insn_sequence): Likewise.
2158         * gensupport.c (record_insn_name): Likewise.
2159
2160 2008-07-08  Doug Kwan  <dougkwan@google.com>
2161
2162         * config/arm/arm.opt (mandroid): New option.
2163         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2164         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2165         (CC1_SPEC): Same.
2166         (CC1PLUS_SPEC): Same.
2167         (LIB_SPEC): Same.
2168         (STARTFILE_SPEC): Same.
2169         (ENDFILE_SPEC): Same.
2170         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2171         used.
2172
2173 2008-07-08  Raksit Ashok  <raksit@google.com>
2174
2175         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
2176         (set_storage_via_setmem): Fix expected_align parameter.
2177         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
2178         missing from the list.
2179         * doc/md.texi (movmem): Explicitly state that expected alignment is
2180         to be expressed in bytes.
2181         (setmem): Explicitly state that expected alignment is to be expressed
2182         in bytes.
2183
2184 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
2185
2186         * reload.c (find_reloads_subreg_address): Do not require validity
2187         of address in original mode before reloading address.
2188
2189 2008-07-07  Tianwei Sheng  <tianweis@google.com>
2190
2191         * df-core.c (df_remove_problem): Adjust the access to avoid out of
2192         bounds array access.
2193
2194 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
2195
2196         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
2197
2198 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
2199
2200         Fix PR tree-optimization/23455
2201         Fix PR tree-optimization/35286
2202         Fix PR tree-optimization/35287
2203         * Makefile.in (OBJS-common): Remove tree-vn.o.
2204         (tree-vn.o): Remove.
2205         * dbgcnt.def: Add treepre_insert debug counter.
2206         * gcc/tree-flow.h (add_to_value): Updated for other changes.
2207         (debug_value_expressions): Ditto.
2208         (print_value_expressions): Ditto.
2209         * tree-pretty-print.c (dump_generic_node): Updated for
2210         VALUE_HANDLE removal.
2211         * tree-ssa-dom.c (record_equality): Ditto.
2212         (cprop_operand): Ditto.
2213         (lookup_avail_expr): Ditto.
2214         * tree-ssa-threadedge.c
2215         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
2216         (simplify_control_stmt_condition): Ditto.
2217         * tree.c (tree_code_size): Ditto.
2218         (tree_node_structure): Ditto.
2219         (iterative_hash_expr): Ditto.
2220         * tree.def: Ditto.
2221         * tree.h (VALUE_HANDLE_ID): Ditto.
2222         (VALUE_HANDLE_EXPR_SET): Ditto.
2223         (struct tree_value_handle): Ditto.
2224         (union tree_node): Ditto.
2225         * treestruct.def: Ditto.
2226         * tree-vn.c: Removed.
2227         * tree-ssa-pre.c: Rewritten entirely.
2228         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
2229         (constant_value_ids): Ditto.
2230         (vn_nary_op_t): Moved to header.
2231         (vn_phi_t): Ditto.
2232         (vn_reference_op_t): Ditto
2233         (vn_reference_t): Ditto.
2234         (next_value_id): New variable.
2235         (VN_INFO): Add an assert.
2236         (vn_constant_eq): New function.
2237         (vn_constant_hash): Ditto.
2238         (get_or_alloc_constant_value_id): Ditto.
2239         (value_id_constant_p): Ditto.
2240         (vn_reference_compute_hash): De-staticify.
2241         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
2242         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
2243         (valueize_refs): Update opcode if it changes from ssa name to constant.
2244         (vn_reference_lookup_1): Add new argument.
2245         (vn_reference_lookup):  Ditto.
2246         (vn_reference_lookup_pieces): New function.
2247         (vn_reference_insert): Add return type. Modify to deal with value ids.
2248         (vn_reference_insert_pieces):  New function.
2249         (vn_nary_op_compute_hash): De-staticify.
2250         (vn_nary_op_eq): Ditto.
2251         (vn_nary_op_lookup_pieces): New function.
2252         (vn_nary_op_lookup): Add new argument.
2253         (vn_nary_op_insert_pieces): New function.
2254         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
2255         (vn_phi_insert): Ditto.
2256         (visit_unary_op): Update for callee changes.
2257         (visit_binary_op): Ditto.
2258         (visit_reference_op_load): Ditto.
2259         (visit_reference_op_store): Ditto.
2260         (init_scc_vn): Init next_value_id, constant_to_value_id and
2261         constant_value_ids.
2262         (free_scc_vn): Free them.
2263         (set_hashtable_value_ids): New function.
2264         (run_scc_vn): Use it.
2265         (get_max_value_id): New function.
2266         (get_next_value_id): Ditto.
2267         (expressions_equal_p): Moved from tree-vn.c
2268         (sort_vuses): Ditto.
2269         (sort_vuses_heap): Ditto.
2270         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
2271         above).
2272         * tree.c (iterative_hash_hashval_t): Made non-static
2273         * tree.h (iterative_hash_hashval_t): Declare it.
2274
2275 2008-07-08  Martin Jambor  <mjambor@suse.cz>
2276
2277         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
2278         instead of ipa_create_node_params.
2279         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
2280         ipa_check_create_edge_args, free them with
2281         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
2282
2283         * ipa-prop.c: Include flags.h and tree-inline.h.
2284         (ipa_node_params_vector): New variable.
2285         (ipa_edge_args_vector): New variable.
2286         (edge_removal_hook_holder): New variable.
2287         (node_removal_hook_holder): New variable.
2288         (edge_duplication_hook_holder): New variable.
2289         (node_duplication_hook_holder): New variable.
2290         (ipa_detect_param_modifications): Check for presence of modified flags.
2291         (ipa_compute_jump_functions): Check for presence of jump functions.
2292         (ipa_free_edge_args_substructures): New function.
2293         (ipa_create_node_params): Removed.
2294         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
2295         (ipa_free_node_params_substructures): New function.
2296         (ipa_free_all_node_params): Changed to deallocate the on-the-side
2297         vector.
2298         (ipa_edge_removal_hook): New function.
2299         (ipa_node_removal_hook): New function.
2300         (duplicate_array): New function.
2301         (ipa_edge_duplication_hook): New function.
2302         (ipa_node_duplication_hook): New function.
2303         (ipa_register_cgraph_hooks): New function.
2304         (ipa_unregister_cgraph_hooks): New function.
2305         (free_all_ipa_structures_after_ipa_cp): New function.
2306
2307         * ipa-prop.h: Include vec.h.
2308         (ipa_node_params_t): New typedef with vector types for it.
2309         (ipa_edge_args_t):  New typedef with vector types for it.
2310         (IPA_NODE_REF): Changed to access an on-the-side vector.
2311         (IPA_EDGE_REF): Changed to access an on-the-side vector.
2312         (ipa_check_create_node_params): New function.
2313         (ipa_check_create_edge_args): New function.
2314
2315         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
2316         all users.
2317
2318 2008-07-07  Tom Tromey  <tromey@redhat.com>
2319
2320         * configure, config.in: Rebuilt.
2321         * configure.ac: Don't check for scandir or alphasort.
2322
2323 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
2324
2325         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
2326         types immediately after creating them.
2327
2328 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
2329
2330         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
2331
2332 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
2333
2334         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
2335         dump_constraint_graph.
2336         (dump_constraint_edge): New function.
2337         (dump_constraint_graph): New function.
2338         (debug_constraint_graph): New function.
2339         (dump_constraint): Removed useless comparison.
2340         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
2341         (dump_constraint_graph): Declare.
2342         (debug_constraint_graph): Declare.
2343         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
2344
2345 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
2346
2347         * config/i386/i386.c (is_va_list_char_pointer): New.
2348         (ix86_va_start): Replace compare with ms_va_list_type_node
2349         by is_va_list_char_pointer.
2350         (ix86_gimplify_va_arg): Likewise.
2351
2352 2008-07-07  Martin Jambor  <mjambor@suse.cz>
2353
2354         * cgraph.c (cgraph_edge_max_uid): New variable.
2355         (struct cgraph_edge_hook_list): New type.
2356         (struct cgraph_node_hook_list): New type.
2357         (struct cgraph_2edge_hook_list): New type.
2358         (struct cgraph_2node_hook_list): New type.
2359         (first_cgraph_edge_removal_hook): New variable.
2360         (first_cgraph_node_removal_hook): New variable.
2361         (first_cgraph_edge_duplicated_hook): New variable.
2362         (first_cgraph_node_duplicated_hook): New variable.
2363         (cgraph_add_edge_removal_hook): New function.
2364         (cgraph_remove_edge_removal_hook): New function.
2365         (cgraph_call_edge_removal_hooks):  New function.
2366         (cgraph_add_node_removal_hook):  New function.
2367         (cgraph_remove_node_removal_hook):  New function.
2368         (cgraph_call_node_removal_hooks):  New function.
2369         (cgraph_add_edge_duplication_hook):  New function.
2370         (cgraph_remove_edge_duplication_hook):  New function.
2371         (cgraph_call_edge_duplication_hooks):  New function.
2372         (cgraph_add_node_duplication_hook):  New function.
2373         (cgraph_remove_node_duplication_hook):  New function.
2374         (cgraph_call_node_duplication_hooks):  New function.
2375         (cgraph_create_edge): Assign to edge uid.
2376         (cgraph_remove_edge): Call edge removal hooks.
2377         (cgraph_node_remove_callees): Call edge removal hooks.
2378         (cgraph_node_remove_callers): Call edge removal hooks.
2379         (cgraph_remove_node): Call node removal hooks.
2380         (cgraph_clone_edge): Call edge duplication hooks.
2381         (cgraph_clone_node): Call node duplication hooks.
2382
2383         * cgraph.h (cgraph_edge): New field uid.
2384         (cgraph_edge_hook): New type.
2385         (cgraph_node_hook): New type.
2386         (cgraph_2edge_hook): New type.
2387         (cgraph_2node_hook): New type.
2388
2389 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
2390
2391         * config.in: Regenerate.
2392
2393 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
2394
2395         * gcc.c (print_sysroot): New.
2396         (option_map, display_help, process_command): Handle the
2397         -print-sysroot option.
2398         (main): Print the sysroot if requested.
2399         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
2400
2401 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2402
2403         PR target/34780
2404         * unwind-pe.h (size_of_encoded_value): add attribute unused.
2405
2406 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
2407
2408         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
2409         (assign_parm_setup_block_p): Also check mode of entry_parm.
2410
2411 2008-07-07  Richard Guenther  <rguenther@suse.de>
2412
2413         * tree-ssa-structalias.h (set_used_smts): Remove.
2414         * tree-ssa-structalias.c (used_smts): Likewise.
2415         (set_used_smts): Likewise.
2416         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
2417         call to set_used_smts.
2418
2419 2008-07-07  Richard Guenther  <rguenther@suse.de>
2420
2421         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
2422         (new_var_info): Set it to false.
2423         (solution_set_add): Correctly handle pointers outside a var and
2424         inside a field.
2425         (type_safe): Treat variables with is_full_var properly.
2426         (do_sd_constraint): Likewise.
2427         (do_ds_constraint): Likewise.
2428         (process_constraint): Remove zeroing offset for !use_field_sensitive.
2429         (get_constraint_for_ptr_offset): New function.
2430         (get_constraint_for_component_ref): For addresses at least include
2431         the last field of the variable.  Handle is_full_vars properly.
2432         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
2433         (handle_ptr_arith): Remove.
2434         (find_func_aliases): Simplify assignment handling.
2435         (create_function_info_for): For parameter and result varinfos set
2436         is_full_var flag.
2437         (create_variable_info_for): Set is_full_var flag whenever we
2438         just created a single varinfo for a decl.
2439         (init_alias_vars): Initialize use_field_sensitive from
2440         max-fields-for-field-sensitive parameter.
2441
2442 2008-07-07  Richard Guenther  <rguenther@suse.de>
2443
2444         PR tree-optimization/36713
2445         * tree-flow-inline.h (is_call_used): New function.
2446         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
2447         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2448         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
2449
2450 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2451
2452         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
2453
2454 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
2455
2456         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
2457
2458 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2459             Nathan Sidwell  <nathan@codesourcery.com>
2460
2461         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
2462         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
2463         tmake_file.
2464         * config/m68k/t-linux: New.
2465         * doc/install.texi: Document m68k-*-linux is now multilibbed by
2466         default.
2467
2468 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
2469
2470         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
2471         * config/m68k/m68k-devices.def: Remove multilibs that only differ
2472         by MAC/EMAC.
2473
2474 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2475
2476         * gcc.c (execute): Fix -Wc++-compat warning.
2477
2478 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2479
2480         PR target/36720
2481         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
2482         constant for little endian.
2483
2484 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
2485
2486         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
2487         mips_base_mips16 instead of TARGET_MIPS16.
2488         (mips_base_mips16): Declare.
2489         * config/mips/mips.c (mips_base_mips16): Make global.
2490         (was_mips16_p): Remove GTY marker.
2491         (was_mips16_pch_p): New variable.
2492         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
2493         (mips_override_options): Force to non-MIPS16 mode initially.
2494         Do not complain about MIPS16 PIC incompatibilities here.
2495         Only allow -mgpopt if -mexplicit-relocs is in force for
2496         non-MIPS16 code.
2497
2498 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
2499
2500         * configure.ac: Check for caddr_t, define to char * if not defined.
2501         * configure: Regenerate.
2502         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
2503         (mmap_gt_pch_use_address): Likewise.
2504         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
2505
2506 2008-07-06  Richard Guenther  <rguenther@suse.de>
2507
2508         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
2509         (new_var_info): Deal with it.
2510         (solution_set_add): Likewise.
2511         (bitpos_of_field): Make signed, fix.
2512         (struct fieldoff): Remove type and decl fields.  Make size field
2513         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
2514         flags.
2515         (fieldoff_compare): Deal with it.
2516         (push_fields_onto_fieldstack): Remove has_union argument, glob
2517         adjacent non-pointer fields together.
2518         (create_function_info_for): Do not set has_union.
2519         (create_variable_info_for): Simplify.
2520
2521 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
2522
2523         * config.gcc (extra_headers): Add cross-stdarg.h for target
2524         x86_64-*-* and i?86-*-*.
2525         * config/i386/cross-stdarg.h: New.
2526         * builtins.c (std_fn_abi_va_list): New.
2527         (std_canonical_va_list_type): New.
2528         (stabilize_va_list): Replace va_list_type_node use by
2529         mtarget.canonical_va_list_type.
2530         (gimplify_va_arg_expr): Likewise.
2531         (expand_builtin_va_copy): Replace va_list_type_node use by
2532         mtarget.fn_abi_va_list.
2533         * tree-sra.c (is_va_list_type): New helper.
2534         (decl_can_be_decomposed_p): Replace
2535         va_list_type_node use by is_va_list_type.
2536         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
2537         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2538         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
2539         * config/i386/i386-protos.h (ix86_get_valist_type): New.
2540         (ix86_enum_va_list): New.
2541         * config/i386/i386.c (sysv_va_list_type_node): New.
2542         (ms_va_list_type_node): New.
2543         (ix86_function_type_abi): Remove sorry.
2544         (ix86_build_builtin_va_list_abi): New.
2545         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
2546         for 64-bit targets.
2547         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
2548         (ix86_init_builtins_va_builtins_abi): New.
2549         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
2550         for 64-bit targets.
2551         (ix86_handle_abi_attribute): New.
2552         (attribute_spec): Add sysv_abi and ms_abi.
2553         (ix86_fn_abi_va_list): New.
2554         (ix86_canonical_va_list_type): New.
2555         (ix86_enum_va_list): New.
2556         (TARGET_FN_ABI_VA_LIST): New.
2557         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2558         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
2559         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
2560         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2561         (TARGET_ENUM_VA_LIST): New.
2562         * expr.h (std_fn_abi_va_list): New.
2563         (std_canonical_va_list_type): New.
2564         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
2565         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2566         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
2567         TARGET_CANONICAL_VA_LIST_TYPE.
2568         * target.h (struct gcc_target): Add fn_abi_va_list hook
2569         and canonical_va_list_type hook.
2570
2571 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2572
2573         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
2574         integral and pointer types.
2575
2576 2008-07-04  Roger Sayle  <roger@eyesopen.com>
2577
2578         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
2579         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
2580
2581 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
2582
2583         PR target/36684
2584         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
2585
2586 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
2587
2588         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
2589         build_gimple_modify_stmt.
2590         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
2591         gimple operand.  Use fold_build* instead of build*.
2592
2593 2008-07-04  Richard Guenther  <rguenther@suse.de>
2594
2595         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
2596         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
2597         properly to compute the reachability set if we do field-sensitive PTA.
2598         * invoke.texi (max-fields-for-field-sensitive): Document default.
2599         * opts.c (decode_options): Set max-fields-for-field-sensitive to
2600         100 for optimize >= 2.
2601
2602 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2603
2604         * ggc-zone.c (lookup_page_table_if_allocated,
2605         set_page_table_entry, zone_find_object_size, alloc_small_page,
2606         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2607         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2608         -Wc++-compat and/or -Wcast-qual warnings.
2609
2610 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
2611
2612         PR target/36634
2613         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2614         pic_offset_table_rtx to be marked as used here.
2615         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2616         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2617         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2618         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2619         !TARGET_SECURE_PLT.
2620
2621 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2622
2623         * alloc-pool.c (hash_descriptor, eq_descriptor,
2624         alloc_pool_descriptor): Fix -Wc++-compat warnings.
2625         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
2626         Likewise.
2627         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
2628         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
2629         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
2630         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
2631         Likewise.
2632
2633 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2634
2635         * tree-flow.h (loop_only_exit_p): Declare.
2636         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
2637         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
2638         the number of iterations if it is constant.  Otherwise, if this is the
2639         only possible exit of the loop, use the conservative estimate on the
2640         number of iterations of the entire loop if available.
2641
2642 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
2643
2644         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
2645         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
2646         Add synchronization functions.
2647         * config/sync.c: New file.
2648         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
2649         (LIBGCC_SYNC_CFLAGS): Likewise.
2650
2651 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
2652
2653         PR target/36710
2654         * config/i386/i386.md (mode): Add TF to "mode" attribute.
2655         (*pushtf_sse): New insn pattern.
2656         (pushtf splitters): New splitters.
2657
2658 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
2659
2660         PR middle-end/35736
2661         * predict.c (build_predict_expr): Use void_type_node for the tree
2662         type, instead of NULL_TREE.
2663
2664 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
2665
2666         * config/i386/i386.c (contains_aligned_value_p): Return true
2667         for TCmode.
2668         (ix86_data_alignment): Align TCmode to 128bits.
2669         (ix86_local_alignment): Likewise.
2670
2671 2008-07-03  Andrew Haley  <aph@redhat.com>
2672
2673         PR bootstrap/33304
2674         * vec.h (VEC_TA): New.
2675         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
2676         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
2677         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
2678         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
2679         (C_COMMON_FIXED_TYPES): Remove first arg.
2680         (C_COMMON_FIXED_MODE_TYPES): Likewise.
2681         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
2682         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
2683         not to use empty macro arguments.
2684
2685 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
2686
2687         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
2688         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
2689         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
2690         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
2691         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
2692         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
2693         config/ia64/crtn.asm, config/m68hc11/larith.asm,
2694         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
2695         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
2696         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2697         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2698         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2699         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
2700         config/rs6000/e500crtres64gpr.asm,
2701         config/rs6000/e500crtres64gprctr.asm,
2702         config/rs6000/e500crtrest32gpr.asm,
2703         config/rs6000/e500crtrest64gpr.asm,
2704         config/rs6000/e500crtresx32gpr.asm,
2705         config/rs6000/e500crtresx64gpr.asm,
2706         config/rs6000/e500crtsav32gpr.asm,
2707         config/rs6000/e500crtsav64gpr.asm,
2708         config/rs6000/e500crtsav64gprctr.asm,
2709         config/rs6000/e500crtsavg32gpr.asm,
2710         config/rs6000/e500crtsavg64gpr.asm,
2711         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
2712         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
2713         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2714         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
2715         config/sparc/sol2-cn.asm: Remove .file directives.
2716
2717 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
2718
2719         * resource.c (mark_referenced_resources): Look inside
2720         UNSPEC_VOLATILEs and ASM_INPUTs.
2721
2722 2008-07-02  Ian Lance Taylor  <iant@google.com>
2723
2724         * rtlanal.c (add_reg_note): New function.
2725         * rtl.h (add_reg_note): Declare.
2726         * auto-inc-dec.c (attempt_change): Use add_reg_note.
2727         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
2728         * builtins.c (expand_builtin_longjmp): Likewise.
2729         (expand_builtin_nonlocal_goto): Likewise.
2730         * calls.c (emit_call_1, expand_call): Likewise.
2731         * cfgexpand.c (add_reg_br_prob_note): Likewise.
2732         * cfglayout.c (fixup_reorder_chain): Likewise.
2733         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2734         (commit_one_edge_insertion): Likewise.
2735         * combine.c (move_deaths, distribute_notes): Likewise.
2736         * df-problems.c (df_set_note): Likewise.
2737         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
2738         (set_unique_reg_note): Likewise.
2739         (emit_copy_of_insn_after): Likewise.
2740         * expr.c (expand_expr_real): Likewise.
2741         * gcse.c (add_label_notes): Likewise.
2742         * haifa-sched.c (create_check_block_twin): Likewise.
2743         * jump.c (mark_jump_label_1): Likewise.
2744         * loop-doloop.c (add_test, doloop_modify): Likewise.
2745         * loop-unswitch.c (compare_and_jump_seq): Likewise.
2746         * lower-subreg.c (move_eh_region_note): Likewise.
2747         * optabs.c (emit_libcall_block): Likewise.
2748         * predict.c (predict_insn): Likewise.
2749         (combine_predictions_for_insn): Likewise.
2750         * recog.c (peephole2_optimize): Likewise.
2751         * regmove.c (try_auto_increment): Likewise.
2752         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
2753         * reload.c (find_reloads): Likewise.
2754         * reload1.c (fixup_eh_region_note): Likewise.
2755         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
2756         * reorg.c (delete_prior_computation): Likewise.
2757         (delete_computation, dbr_schedule): Likewise.
2758         * config/pa/pa.c (legitimize_pic_address): Likewise.
2759         * config/sh/sh.c (sh_reorg): Likewise.
2760
2761 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2762
2763         PR target/36669
2764         * config/libgcc-glibc.ver: Add %exclude.
2765         * config/m32r/libgcc-glibc.ver: Likwise.
2766         * config/s390/libgcc-glibc.ver: Likwise.
2767         * config/sh/libgcc-glibc.ver: Likwise.
2768         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
2769
2770         * config/i386/libgcc-glibc.ver: New.
2771
2772         * config/i386/libgcc-x86_64-glibc.ver: Removed.
2773
2774 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2775
2776         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
2777         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
2778         i[34567]86-*-linux*, x86_64-*-linux*.  Add
2779         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
2780         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
2781         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
2782         i[34567]86-*-linux*, x86_64-*-linux*.
2783
2784         * libgcc-std.ver: Add empty GCC_4.4.0.
2785
2786         * mkmap-symver.awk: Support multiple versions per symbol.
2787
2788         * config/i386/i386.c (ix86_init_builtins): Always define
2789         __builtin_fabsq and __builtin_copysignq with fallbacks.
2790         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
2791         and __builtin_copysignq if SSE2 isn't available.
2792
2793         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
2794         (LIBGCC2_TF_CEXT): Likwise.
2795         (TF_SIZE): Likwise.
2796
2797         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
2798
2799         * config/i386/sfp-machine.h: Moved to libgcc.
2800
2801         * config/i386/sfp-machine.h: New.
2802         * config/i386/t-linux: Likwise.
2803
2804         * config/i386/t-darwin: Remove softfp_wrap_start and
2805         softfp_wrap_end.
2806         * config/i386/t-darwin64: Likewise.
2807
2808         * config/i386/t-fprules-softfp64: Renamed to ...
2809         * config/i386/t-fprules-softfp: This.
2810
2811         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
2812         and softfp_wrap_end.
2813
2814 2008-07-02  Jason Merrill  <jason@redhat.com>
2815
2816         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
2817
2818         * tree.c (ctor_to_list): New fn.
2819         * tree.h: Declare it.
2820         (CONSTRUCTOR_ELT): New macro.
2821         (CONSTRUCTOR_NELTS): New macro.
2822
2823 2008-07-02  Richard Guenther  <rguenther@suse.de>
2824
2825         * tree-ssa-structalias.c (struct variable_info): Reorder
2826         to fill padding on 64bit hosts.  Make collapsed_to an int.
2827         (get_varinfo_fc): Deal with that.
2828         (new_var_info): Likewise.
2829         (collapse_rest_of_var): Likewise.
2830
2831 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
2832
2833         * doc/install.texi (--enable-java-home): Document.
2834         (--enable-aot-compile-rpm): Likewise.
2835         (--with-arch-directory): Likewise.
2836         (--with-os-directory): Likewise.
2837         (--with-origin-name): Likewise.
2838         (--with-arch-suffix): Likewise.
2839         (--with-jvm-root-dir): Likewise.
2840         (--with-jvm-jar-dir): Likewise.
2841         (--with-python-dir): Likewise.
2842
2843 2008-07-02  Richard Guenther  <rguenther@suse.de>
2844
2845         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
2846         from decls explicitly.  Merge operand checking from tuples.
2847
2848 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2849
2850         * tree-switch-conversion.c: Included timevar.h which I forgot before.
2851
2852 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2853
2854         * tree-switch-conversion.c: Included timevar.h
2855         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
2856
2857         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
2858
2859 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2860
2861         * tree-switch-conversion.c: Corrected various comments and
2862         whitespace issues
2863         (build_constructors): Fixed minor formatting mistakes.
2864
2865         * invoke.texi (Optimize Options): Corrected the
2866         switch-conversion-max-branch-ratio parameter.
2867
2868 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
2869
2870         * final.c (asm_insn_count): Return zero for an empty asm body.
2871
2872 2008-07-02  Richard Guenther  <rguenther@suse.de>
2873
2874         * bitmap.h (bitmap_set_bit): Return bool.
2875         (bitmap_clear_bit): Likewise.
2876         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
2877         write to the bitmap if it would.
2878         (bitmap_clear_bit): Likewise.
2879         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
2880         bitmap_set_bit return value.
2881         (add_pred_graph_edge): Likewise.
2882         (add_graph_edge): Likewise.
2883         (do_sd_constraint): Likewise.
2884         (do_ds_constraint): Likewise.
2885
2886 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2887
2888         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
2889         Fix -Wc++-compat and/or -Wcast-qual warnings.
2890         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
2891         gen_regparm_prefix): Likewise.
2892         * vmsdbgout.c (write_modbeg, lookup_filename,
2893         vmsdbgout_source_line, vmsdbgout_init): Likewise.
2894
2895 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
2896
2897         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
2898         defaults.h definition apply.
2899
2900 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
2901
2902         * function.c (assign_parm_remove_parallels): New.
2903         (assign_parm_setup_block_p): Do not return true for non-BLKmode
2904         PARALLELs.
2905         (assign_parm_setup_block): Do not handle them.
2906         (assign_parm_setup_reg, assign_parm_setup_stack): Call
2907         assign_parm_remove_parallels.
2908
2909 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
2910
2911         * c-typeck.c (convert_for_assignment): Use
2912         vector_targets_convertible_p.
2913         * c-common.c (vector_targets_convertible_p): New.
2914         * c-common.h (vector_targets_convertible_p): New prototype.
2915         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
2916         opaque_p_V2SI_type_node.
2917
2918 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
2919
2920         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
2921         RFmode constants.
2922
2923 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
2924
2925         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
2926         TFmode constants via two element DImode vector for hosts with
2927         HOST_BITS_PER_WIDE_INT < 64.
2928         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
2929         also for HOST_BITS_PER_WIDE_INT < 64.
2930
2931 2008-07-01  Richard Guenther  <rguenther@suse.de>
2932
2933         PR tree-optimization/36666
2934         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
2935         (get_constraint_exp_from_ssa_var): Split into ...
2936         (get_constraint_exp_for_temp): ... this ...
2937         (get_constraint_for_ssa_var): ... and that.
2938         Return constraint expressions for all touched sub-fields
2939         if the results address is not taken.
2940         (process_constraint): Remove assertion that aggregate
2941         assignments do not happen at this place.
2942         (get_constraint_for_component_ref): Add address_p argument.
2943         Return constraint expressions for all touched sub-fields
2944         if the results address is not taken.
2945         (do_deref): Use get_constraint_exp_for_temp.
2946         (get_constraint_for_1): Rename from ...
2947         (get_constraint_for): ... this.  Add the old function as wrapper.
2948         (do_structure_copy): Use get_constraint_for_1.
2949
2950 2008-07-01  Martin Jambor  <mjambor@suse.cz>
2951
2952         * Makefile.in (tree-switch-conversion.o): Add.
2953         (OBJS-common): Add tree-swtch-conversion.o.
2954         * passes.c (init_optimization_passes): Add pass_convert_switch.
2955         * tree-pass.h: (pass_convert_switch): Add.
2956         * tree-switch-conversion.c: New file.
2957         * gcc.dg/tree-ssa/cswtch.c: New testcase.
2958         * common.opt (ftree-cswtch): New option.
2959         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2960         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
2961         * opts.c (decode_options): Set flag_tree_switch_conversion when
2962         optimization level is >= 2.
2963         * doc/invoke.texi (Optimize Options): Added description of
2964         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
2965
2966 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2967
2968         * config/darwin-driver.c (darwin_default_min_version): Fix
2969         -Wc++-compat warnings.
2970
2971 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
2972
2973         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
2974         of operand 0.
2975
2976 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2977
2978         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
2979
2980 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
2981
2982         PR rtl-optimization/34744
2983         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
2984         (df_scan_free_internal): Free data structures not
2985         allocated in storage pools.
2986         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
2987         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
2988         df_scan_free_mws_vec.
2989         * dse.c (dse_step6): Free offset_map_p and offset_map_n
2990         unconditionally.
2991
2992 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2993
2994         * config/i386/i386.c (contains_aligned_value_p): Return true
2995         for __float128.
2996         (ix86_function_arg_boundary): Return its natural boundary
2997         for __float128.
2998         (return_in_memory_32): Don't check TDmode.
2999         (ix86_split_to_parts): Support splitting into 4 parts and
3000         support TFmode for 32bit target.
3001         (ix86_split_long_move): Support splitting into 4 parts.
3002         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
3003         for SSE2.
3004         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
3005         (ix86_init_builtins): Here.
3006         (ix86_scalar_mode_supported_p): Always return true for TFmode.
3007         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
3008         'q' and 'w', respectively.
3009
3010         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
3011         TARGET_64BIT.
3012         (movtf_internal): Likewise.
3013         (<code>tf2): Likewise.
3014         (*absnegtf2_sse): Likewise.
3015         (copysign<mode>3): Likewise.
3016         (copysign<mode>3_const): Likewise.
3017         (copysign<mode>3_var): Likewise.
3018         (define_split UNSPEC_COPYSIGN): Likewise.
3019         * config/i386/sse.md (*nandtf3): Likewise.
3020         (<code>tf3): Likewise.
3021         (*<code>tf3): Likewise.
3022
3023 2008-06-30  Joey Ye  <joey.ye@intel.com>
3024             H.J. Lu  <hongjiu.lu@intel.com>
3025
3026         * global.c (compute_regsets): Set frame_pointer_needed here.
3027         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
3028
3029 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3030
3031         * doc/install.texi (specific): Expand Windows build notes.
3032
3033 2008-06-30  Ira Rosen  <irar@il.ibm.com>
3034
3035         PR tree-optimization/36648
3036         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
3037         number of prolog iterations by step. Fix the comment.
3038
3039 2008-06-30  Richard Guenther  <rguenther@suse.de>
3040
3041         PR middle-end/36671
3042         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
3043         handle calls from ECF_MALLOC functions.
3044         (handle_pure_call): ECF_MALLOC functions do not return
3045         call-used memory.
3046         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
3047
3048 2008-06-29  Andreas Schwab  <schwab@suse.de>
3049
3050         * config/m68k/m68k.c (print_operand): Always print a float
3051         constant in hex.
3052         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
3053         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
3054         Remove macros.
3055
3056         * config/rs6000/x-linux64: Remove never used file.
3057
3058 2008-06-29  Richard Guenther  <rguenther@suse.de>
3059
3060         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
3061         prototype.
3062         (struct alias_info): Move ...
3063         * tree-ssa-alias.c: ... here.
3064         (update_alias_info): Declare.
3065         (compute_may_aliases): Call it.
3066         (update_alias_info): New function.
3067         * tree-ssa-structalias.c (update_alias_info): Move ...
3068         * tree-ssa-alias.c (update_alias_info_1): ... here.
3069         * tree-ssa-structalias.c (process_constraint_1): Remove
3070         unused from_call argument.  Rename to ...
3071         (process_constraint): ... this.  Delete old wrapper.
3072         (make_constraint_to): Adjust callers.
3073         (handle_const_call): Likewise.
3074         (handle_pure_call): Likewise.
3075         (init_base_vars): Likewise.
3076         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
3077         (find_func_aliases): We don't need structure copies for
3078         complex types.
3079         (make_constraint_from_anything): Remove.
3080         (create_variable_info_for): For globals make constraints
3081         from escaped, not from anything.
3082         (compute_points_to_sets): Do not call update_alias_info.
3083         (ipa_pta_execute): Use make_constraint_from.
3084
3085 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3086
3087         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
3088         (bitmap.o-warn, dominance.o-warn): New.
3089         * configure.ac (cxx_compat_warn): Delete.
3090         (loose_warn): Add -Wcast-qual and -Wc++-compat.
3091         * system.h: Remove #pragma diagnostic for -Wcast-qual and
3092         -Wc++-compat.
3093         * configure: Regenerate.
3094
3095         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
3096         warnings.
3097
3098 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3099
3100         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
3101         * df-scan.c (df_notes_rescan): Likewise.
3102         * ggc-page.c (set_page_table_entry): Likewise.
3103         * intl.c (gcc_gettext_width): Likewise.
3104         * varasm.c (get_unnamed_section, get_noswitch_section,
3105         get_section): Likewise.
3106
3107 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
3108
3109         * regrename.c (build_def_use): Don't copy RTX.
3110
3111 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
3112
3113         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
3114         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
3115         punctuation.  Use @ref instead of @xref.
3116         (Function Names): Remove stray @display/@end display.
3117         (C++ Attributes): Use @ref instead of @xref.
3118         (Deprecated Features): Fix punctuation around @xref.
3119         (Backwards Compatibility): Likewise.
3120         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
3121
3122 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
3123
3124         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
3125         constants for E500 double.
3126
3127 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3128
3129         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
3130         element type of const_vector.
3131
3132 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
3133
3134         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
3135         Remove FLAGS_REG clobber from expander pattern.
3136         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
3137         (anddi3, andsi3, andhi3, andqi3): Ditto.
3138         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
3139         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
3140         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
3141         (ashlsi3, ashlhi3, ashlqi3): Ditto.
3142         (ashrsi3, ashrhi3, ashrqi3): Ditto.
3143         (lshrsi3, lshrhi3, lshrqi3): Ditto.
3144         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
3145         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
3146
3147 2008-06-28  Richard Guenther  <rguenther@suse.de>
3148
3149         * tree-ssa-structalias.c (callused_id, var_callused,
3150         callused_tree): Add.
3151         (handle_pure_call): New function.
3152         (find_func_aliases): Call it.
3153         (find_what_p_points_to): Handle the call-used set.
3154         (clobber_what_escaped): Likewise.
3155         (compute_call_used_vars): New function.
3156         (init_base_vars): Init the call-used variable.
3157         (do_sd_constraint): Do not propagate the solution from CALLUSED
3158         but use CALLUSED as a placeholder.
3159         (solve_graph): Likewise.
3160         * tree-flow-inline.h (gimple_call_used_vars): New function.
3161         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
3162         (compute_call_used_vars): Declare.
3163         * tree-ssa-alias.c (set_initial_properties): Call
3164         compute_call_used_vars.
3165         (reset_alias_info): Clear call-used variables.
3166         (add_call_clobber_ops): Assert we are not called for const/pure
3167         functions.  Remove handling of them.
3168         (add_call_read_ops): Handle pure functions by adding the
3169         call-used set of variables as VUSEs.
3170         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
3171         (delete_tree_ssa): Free it.
3172         * tree-dfa.c (remove_referenced_var): Clear the var from the
3173         call-used bitmap.
3174
3175 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
3176
3177         * tree.c (build_varargs_function_type_list): New.
3178         (build_function_type_list_1): New.
3179         (build_function_type_list): Use build_function_type_list_1.
3180         * tree.h (build_varargs_function_type_list): New.
3181
3182 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3183
3184         PR target/34856
3185         * config/spu/spu.c (spu_builtin_splats): Do not generate
3186         invalid CONST_VECTOR expressions.
3187         (spu_expand_vector_init): Likewise.
3188
3189 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
3190
3191         * optabs.c (libfunc_decls): New variable.
3192         (libfunc_decl_hash, libfunc_decl_eq): New functions.
3193         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
3194         for the same function twice.
3195
3196 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
3197
3198         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
3199         ix86_expand_binary_operator directly.
3200         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
3201         for operand 2.
3202         (*ashrti3_1): Ditto.
3203         (*lshrti3_1): Ditto.
3204         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
3205         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
3206         using only one splitter.  Conditionaly execute splitter before or
3207         after peephole2 pass.
3208         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
3209         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
3210         Use only one alternative in asm template.
3211         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
3212         in asm template.
3213         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
3214         "J" operand constraint for operand 2.
3215         (*ashldi3_cconly_rex64): Ditto.
3216         (*ashrdi3_cmp_rex64): Ditto.
3217         (*ashrdi3_cconly_rex64): Ditto.
3218         (*lshrdi3_cmp_rex64): Ditto.
3219         (*lshrdi3_cconly_rex64): Ditto.
3220         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
3221         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
3222         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
3223         gen_x86_shrd_1.
3224
3225 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
3226
3227         * gimplify.c (omp_is_private): Don't return true if decl is not
3228         already private on #pragma omp for or #pragma omp parallel for.
3229
3230         PR debug/36617
3231         * tree-cfg.c (struct move_stmt_d): Replace block field with
3232         orig_block and new_block fields.
3233         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
3234         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
3235         (move_block_to_fn): Replace vars_map and new_label_map arguments
3236         with struct move_stmt_d pointer.
3237         (replace_block_vars_by_duplicates): New function.
3238         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
3239         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
3240         all subblocks of ORIG_BLOCK to the new function.  Call
3241         replace_block_vars_by_duplicates.
3242         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
3243         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
3244         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
3245         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
3246         (expand_omp): Temporarily set input_location to the location of
3247         region's controlling stmt.
3248         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
3249         BIND_EXPR, push ctx->block_vars and gimplification vars into
3250         the BIND_EXPR and its block's BLOCK_VARS instead of directly
3251         into dest function.
3252         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
3253         there are any BLOCK_VARS.
3254         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
3255         OMP_PARALLEL or OMP_TASK stmt.
3256         (lower_omp): Save and restore input_location around the lower_omp_1
3257         call.
3258
3259 2008-06-27  Richard Guenther  <rguenther@suse.de>
3260
3261         PR tree-optimization/36400
3262         PR tree-optimization/36373
3263         PR tree-optimization/36344
3264         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
3265         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
3266         (update_alias_info): Remove call clobbering code.
3267         (make_constraint_to): New helper function.
3268         (make_escape_constraint): Likewise.
3269         (handle_rhs_call): Use it on all pointer containing arguments.
3270         Also mark the static chain escaped.
3271         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
3272         instead of ANYTHING.
3273         (make_constraint_from): New helper split out from ...
3274         (make_constraint_from_anything): ... here.
3275         (find_func_aliases): Add constraints for escape sites.
3276         (intra_create_variable_infos): Make constraints from NONLOCAL
3277         for parameters.
3278         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
3279         as ANYTHING.
3280         (clobber_what_p_points_to): Remove.
3281         (clobber_what_escaped): New function.
3282         (init_base_vars): Init NONLOCAL and ESCAPED.
3283         (do_sd_constraint): Do not propagate the solution from ESCAPED
3284         but use ESCAPED as a placeholder.
3285         (solve_graph): Likewise.
3286         * tree-flow.h (clobber_what_p_points_to): Remove.
3287         (clobber_what_escaped): Declare.
3288         * tree-ssa-alias.c (set_initial_properties): Call it.
3289         Remove code clobbering escaped pointers.
3290
3291 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
3292
3293         * function.c (allocate_struct_function): Only allocate a unique
3294         funcdef_no if the decl is nonzero.
3295
3296 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
3297
3298         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
3299         * config/mips/mips.c (mips_split_const_insns): New function.
3300         * config/mips/mips.md (move_type): New attribute.
3301         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
3302         (dword_mode): New attribute.
3303         (type): Avoid long line.  Map "move_type"s to "type"s,
3304         choosing "multi" for doubleword moves if appropriate.
3305         Swap MTC/MFC comments to match their declaration order.
3306         (extended_mips16): Default to "yes" if "move_type" is "sll0",
3307         "type" is "branch" or "jal" is "direct".
3308         (length): Handle "extended_mips16" first.  Make the default
3309         "0" for "ghost" instructions.  Set the length from "move_type".
3310         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
3311         of "type", with "sll0" for the register alternative.  Remove the
3312         "extended_mips16" attribute.
3313         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
3314         of "type", with "shift_shift" for the register alternative.
3315         Remove the "length" attribute.
3316         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
3317         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
3318         of "type", with "andi" for the register alternative.
3319         (*zero_extendqihi2): Likewise.
3320         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
3321         of "andi" instead of a "type" of "arith".
3322         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
3323         instead of "type".
3324         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
3325         (mov_<store>r, *mov<mode>_ra): Likewise.
3326         (extendsidi2): Use "move_type" instead of "type", with "move"
3327         for the register alternative.
3328         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
3329         of "type", with "signext" for the register alternative.
3330         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
3331         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
3332         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
3333         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
3334         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
3335         (unnamed branch insn): Likewise.
3336         (*movdi_gp32_fp64): Fold into...
3337         (*movdi_32bit): ...here.
3338         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
3339         (*movdf_hardfloat): ...this new pattern.
3340         (*movdf_softfloat): Remove redundant FPR alternatives.
3341         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
3342         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
3343         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
3344         the "move" attribute.
3345         (*movdi_32bit): Use "move_type" instead of "type" and remove the
3346         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
3347         and "store" for COP loads and stores.
3348         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
3349         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
3350         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
3351         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
3352         (*movtf_mips16, *movv2sf): Likewise.
3353         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
3354         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
3355         (mfhc1<mode>): Use "move_type" instead of "move".
3356         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
3357         (loadgp_blockage): Remove the "length" attribute.
3358         (blockage, set_got_version, update_got_version): Likewise.
3359         (call_internal): Remove the "extended_mips16" attribute.
3360         (call_value_internal, call_value_multiple_internal): Likewise.
3361         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
3362         instead of "move".
3363         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
3364         the "length" attribute.
3365
3366 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3367
3368         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
3369         -Wcast-qual warnings.
3370         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
3371         handle_pragma_pop_macro): Likewise.
3372         * collect2.c (resolve_lib_name): Likewise.
3373         * config/arc/arc.c (arc_init): Likewise.
3374         * config/arm/arm.c (neon_builtin_compare,
3375         locate_neon_builtin_icode): Likewise.
3376         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
3377         * config/bfin/bfin.c (bfin_init_machine_status,
3378         bfin_optimize_loop): Likewise.
3379         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3380         * config/cris/cris.c (cris_init_expanders): Likewise.
3381         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
3382         * config/darwin.c (machopic_indirection_eq,
3383         machopic_indirection_name, machopic_output_indirection): Likewise.
3384         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
3385         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
3386         frv_optimize_membar): Likewise.
3387         * config/i386/cygwin.h (mingw_scan,
3388         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
3389         * config/i386/cygwin1.c (mingw_scan): Likewise.
3390         * config/i386/i386.c (machopic_output_stub): Likewise.
3391         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
3392         i386_pe_unique_section): Likewise.
3393         * config/ia64/ia64.c (ia64_init_machine_status,
3394         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
3395         Likewise.
3396         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
3397         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
3398         * config/m68k/m68k.c (m68k_handle_option,
3399         m68k_sched_md_init_global): Likewise.
3400         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
3401         mcore_unique_section): Likewise.
3402         * config/mips/mips.c (mips_block_move_straight,
3403         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
3404         Likewise.
3405         * config/mmix/mmix.c (mmix_init_machine_status,
3406         mmix_encode_section_info): Likewise.
3407         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
3408         * config/rs6000/rs6000.c (rs6000_init_machine_status,
3409         print_operand_address, output_toc, redefine_groups,
3410         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
3411         * config/s390/s390.c (s390_init_machine_status): Likewise.
3412         * config/score/score.c (score_block_move_straight,
3413         score_block_move_loop_body): Likewise.
3414         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3415         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3416         * emit-rtl.c (find_auto_inc): Likewise.
3417         * gcc.c (translate_options, process_command): Likewise.
3418         * reorg.c (dbr_schedule): Likewise.
3419         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
3420         * xcoffout.c (xcoffout_declare_function): Likewise.
3421
3422 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
3423
3424         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
3425         ipa-pta working again.
3426
3427 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
3428
3429         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
3430         genautomata.
3431
3432 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
3433
3434         * config.gcc (powerpc*-*-*): Add new core e500mc.
3435         * config/rs6000/e500mc.md: New file.
3436         * config/rs6000/rs6000.c (processor_costs): Add new costs for
3437         e500mc.
3438         (rs6000_override_options): Add e500mc case to
3439         processor_target_table. Altivec and Spe options not allowed
3440         with e500mc. Add isel instruction to e500mc by
3441         default. Initialize rs6000_cost for e500mc.
3442         (rs6000_issue_rate): Set issue rate for e500mc.
3443         * config/rs6000/rs6000.h (processor_type): Add
3444         PROCESSOR_PPCE500MC.
3445         (ASM_CPU_SPEC): Add e500mc.
3446         Set TARGET_ISEL to rs6000_isel.
3447         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
3448         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
3449         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
3450         Include e500mc.md.
3451         * doc/invoke.texi: Add e500mc to list of cpus.
3452
3453 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3454
3455         PR c/34867
3456         * c-lex.c (lex_charconst): Initialize unsignedp.
3457
3458 2008-06-27  Olivier Hainque  <hainque@adacore.com>
3459
3460         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
3461         documented assumptions.
3462
3463 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
3464
3465         * dwarf2out.c: Remove trailing white spaces.  Break long line
3466         in comments.
3467
3468 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
3469
3470         * libfuncs.h (LTI_synchronize): New libfunc_index.
3471         (synchronize_libfunc): Declare.
3472         * builtins.c (expand_builtin_synchronize): Consider using
3473         synchronize_libfunc before falling back on an asm blockage.
3474         * config/mips/mips.c: Include libfuncs.h
3475         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
3476
3477 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
3478
3479         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
3480         parameter.  Copy stack_reg to r11 where appropriate.
3481         (no_global_regs_above): Add gpr parameter.
3482         (rs6000_stack_info): Only add padding for SPE save area if we
3483         are saving SPE GPRs and CR.
3484         (saveres_routine_syms): New variable.
3485         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
3486         Define.
3487         (rs6000_savres_routine_sym): New function.
3488         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
3489         split out of...
3490         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
3491         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
3492         Tweak FPR out-of-line saving.
3493         (rs6000_make_savres_rtx): New function.
3494         (rs6000_use_multiple_p): New function.
3495         (rs6000_savres_strategy): New function.
3496         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
3497         out-of-line if appropriate.
3498         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
3499         if we are optimizing for size.
3500         (GP_SAVE_INLINE): Define.
3501         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
3502         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
3503         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
3504         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
3505         (*save_fpregs_<mode>): Add use of r11.
3506         (*restore_gpregs_<mode>): New insn.
3507         (*return_and_restore_gpregs_<mode>): New insn.
3508         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
3509         use r11.
3510         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
3511         (*restore_gpregs_spe): New insn.
3512         (*return_and_restore_gpregs_spe): New insn.
3513         * config/rs6000/predicates.md (save_world_operation): Fix check.
3514
3515 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3516
3517         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
3518         this point, so assert that.
3519
3520 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3521
3522         * cfganal.c: Include vec.h and vecprim.h.
3523         (compute_idf): Import from...
3524         * tree-into-ssa (compute_idf): ...here.
3525         * basic-block.h (compute_idf): Export.
3526
3527 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
3528
3529         * c-decl.c (merge_decls): Use !current_function_decl to check for
3530         extern declaration of C99 inline function being at file scope.
3531
3532 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
3533
3534         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
3535
3536 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3537
3538         * alias.c (record_alias_subset, init_alias_analysis): Fix
3539         -Wc++-compat and/or -Wcast-qual warnings.
3540         * attribs.c (lookup_attribute_spec): Likewise.
3541         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
3542         copy_bb, connect_traces,
3543         find_rarely_executed_basic_blocks_and_cr): Likewise.
3544         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
3545         note_btr_set, migrate_btr_defs): Likewise.
3546         * builtins.c (result_vector, expand_builtin_memcpy,
3547         expand_builtin_mempcpy_args, expand_builtin_strncpy,
3548         builtin_memset_read_str, expand_builtin_printf,
3549         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
3550         Likewise.
3551         * caller-save.c (mark_set_regs): Likewise.
3552         * calls.c (expand_call, emit_library_call_value_1): Likewise.
3553         * cgraph.c (cgraph_edge): Likewise.
3554         * combine.c (likely_spilled_retval_1): Likewise.
3555         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
3556         htab_counts_entry_del, get_coverage_counts): Likewise.
3557         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
3558         new_cselib_val): Likewise.
3559         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
3560         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
3561         Likewise.
3562         * df-core.c (df_compact_blocks): Likewise.
3563         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
3564         * df-scan.c (df_grow_reg_info, df_ref_create,
3565         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
3566         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
3567         df_record_entry_block_defs, df_record_exit_block_uses,
3568         df_bb_verify): Likewise.
3569         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
3570         DF_REF_EXTRACT_MODE_CONST): New.
3571         * dominance.c (get_immediate_dominator, get_dominated_by,
3572         nearest_common_dominator, root_of_dom_tree,
3573         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
3574         -Wc++-compat and/or -Wcast-qual warnings.
3575         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
3576         record_store, replace_read, check_mem_read_rtx, scan_insn,
3577         dse_step1, dse_record_singleton_alias_set): Likewise.
3578         * dwarf2asm.c (dw2_force_const_mem): Likewise.
3579
3580 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3581
3582         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
3583         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
3584         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
3585         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
3586         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
3587         add_ranges_num, add_ranges_by_labels, file_info_cmp,
3588         file_name_acquire, output_file_names, add_const_value_attribute,
3589         premark_used_types_helper, file_table_eq, file_table_hash,
3590         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
3591         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
3592         -Wcast-qual warnings.
3593         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
3594         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
3595         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
3596         gen_reg_rtx, start_sequence, init_emit): Likewise.
3597         * et-forest.c (et_new_occ, et_new_tree): Likewise.
3598         * except.c (init_eh_for_function, gen_eh_region,
3599         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
3600         arh_to_landing_pad, arh_to_label, add_action_record,
3601         add_call_site, switch_to_exception_section): Likewise.
3602         * expmed.c (synth_mult): Likewise.
3603         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
3604         store_expr): Likewise.
3605         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
3606         Likewise.
3607         * function.c (assign_stack_temp_for_type,
3608         allocate_struct_function, match_asm_constraints_1): Likewise.
3609         * gcov-io.c (gcov_allocate): Likewise.
3610         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
3611         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
3612         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
3613         record_one_set, insert_expr_in_table, insert_set_in_table,
3614         dump_hash_table, compute_hash_table_work, alloc_hash_table,
3615         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
3616         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
3617         -Wcast-qual warnings.
3618
3619 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3620
3621         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
3622         -Wcast-qual warnings.
3623         * gcc.c (process_command): Likewise.
3624         * genattrtab.c (oballoc): Use XOBNEW.
3625         (oballocvec): Define.
3626         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
3627         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
3628         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
3629         -Wc++-compat and/or -Wcast-qual warnings.
3630         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
3631         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
3632         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3633         gen_presence_absence_set, gen_automaton, gen_regexp_el,
3634         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3635         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
3636         add_excls, process_presence_absence_names,
3637         process_presence_absence_patterns, add_presence_absence,
3638         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
3639         get_free_state, add_arc, get_free_automata_list_el,
3640         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
3641         transform_3, cache_presence, create_ainsns, create_automata,
3642         create_state_ainsn_table, dfa_insn_code_enlarge,
3643         output_trans_func, output_min_issue_delay_func,
3644         output_dead_lock_func, output_reset_func,
3645         output_get_cpu_unit_code_func, output_dfa_start_func,
3646         expand_automata): Likewise.
3647         * genextract.c (gen_insn): Likewise.
3648         * gengtype-lex.l: Likewise.
3649         * gengtype.c (read_input_list, adjust_field_type,
3650         process_gc_options): Likewise.
3651         * genoutput.c (note_constraint): Likewise.
3652         * genpreds.c (mangle, add_constraint): Likewise.
3653         * genrecog.c (process_define_predicate, new_decision,
3654         add_to_sequence): Likewise.
3655         * gensupport.c (record_insn_name): Likewise.
3656
3657 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3658
3659         * config/i386/driver-i386.c (detect_caches_amd,
3660         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
3661         and/or -Wcast-qual warnings.
3662         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
3663         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
3664         gt_pch_save): Likewise.
3665         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
3666         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
3667         * global.c (compute_regsets): Likewise.
3668         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3669         finish_graph_dump_file): Likewise.
3670         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
3671         unlink_bb_notes): Likewise.
3672         * integrate.c (get_hard_reg_initial_val): Likewise.
3673         * ipa-prop.c (ipa_push_func_to_list): Likewise.
3674         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
3675         * local-alloc.c (update_equiv_regs): Likewise.
3676         * loop-invariant.c (check_invariant_table_size,
3677         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
3678         Likewise.
3679         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
3680         altered_reg_used, mark_altered): Likewise.
3681         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
3682         insert_var_expansion_initialization,
3683         combine_var_copies_in_loop_exit, apply_opt_in_copies,
3684         release_var_copies): Likewise.
3685         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
3686         analyze_matrix_decl, add_allocation_site, analyze_transpose,
3687         analyze_accesses_for_phi_node, check_var_notmodified_p,
3688         check_allocation_function, find_sites_in_func,
3689         record_all_accesses_in_func, transform_access_sites,
3690         transform_allocation_sites): Likewise.
3691         * omp-low.c (new_omp_region, create_omp_child_function_name,
3692         check_omp_nesting_restrictions, check_combined_parallel,
3693         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
3694         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
3695         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
3696         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
3697         Likewise.
3698         * opts-common.c (prune_options): Likewise.
3699         * opts.c (add_input_filename, print_filtered_help,
3700         get_option_state): Likewise.
3701         * params.c (add_params): Likewise.
3702         * passes.c (set_pass_for_id, next_pass_1,
3703         do_per_function_toporder, pass_fini_dump_file): Likewise.
3704         * postreload.c (reload_cse_simplify_operands): Likewise.
3705         * predict.c (tree_predicted_by_p, tree_predict_edge,
3706         clear_bb_predictions, combine_predictions_for_bb): Likewise.
3707
3708 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3709
3710         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
3711         warnings.
3712         * recog.c (check_asm_operands, validate_change_1): Likewise.
3713         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
3714         subst_asm_stack_regs): Likewise.
3715         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
3716         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
3717         * regmove.c (reg_is_remote_constant_p): Likewise.
3718         * regrename.c (regrename_optimize, scan_rtx_reg,
3719         kill_clobbered_value, kill_set_value, kill_autoinc_value):
3720         Likewise.
3721         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
3722         regstat_compute_calls_crossed): Likewise.
3723         * reload1.c (init_reload, new_insn_chain,
3724         has_nonexceptional_receiver, reload, copy_reloads,
3725         calculate_needs_all_insns, init_elim_table): Likewise.
3726         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
3727         * rtl.c (shallow_copy_rtx_stat): Likewise.
3728         * rtlanal.c (parms_set): Likewise.
3729         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
3730         sbitmap_resize, sbitmap_vector_alloc): Likewise.
3731         * sched-ebb.c (earliest_block_with_similiar_load,
3732         add_deps_for_risky_insns): Likewise.
3733         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
3734         schedule_region): Likewise.
3735         * see.c (eq_descriptor_pre_extension,
3736         hash_descriptor_pre_extension, hash_del_pre_extension,
3737         eq_descriptor_properties, hash_descriptor_properties,
3738         hash_del_properties, see_seek_pre_extension_expr,
3739         see_initialize_data_structures, see_print_register_properties,
3740         see_print_pre_extension_expr, see_delete_merged_def_extension,
3741         see_delete_unmerged_def_extension, see_emit_use_extension,
3742         see_pre_delete_extension, see_map_extension, see_commit_changes,
3743         see_analyze_merged_def_local_prop,
3744         see_analyze_merged_def_local_prop,
3745         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
3746         see_set_prop_merged_def, see_set_prop_unmerged_def,
3747         see_set_prop_unmerged_use, see_print_one_extension,
3748         see_merge_one_use_extension, see_merge_one_def_extension,
3749         see_store_reference_and_extension, see_update_uses_relevancy,
3750         see_update_defs_relevancy): Likewise.
3751         * statistics.c (hash_statistics_hash, hash_statistics_eq,
3752         hash_statistics_free, curr_statistics_hash): Likewise.
3753         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
3754         expand_asm_operands, expand_return, case_bit_test_cmp,
3755         expand_case): Likewise.
3756         * stor-layout.c (start_record_layout): Likewise.
3757         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
3758         gt_pch_save_stringpool): Likewise.
3759         * tree-data-ref.c (hash_stmt_vertex_info,
3760         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
3761         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
3762
3763 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
3764
3765         PR target/36627
3766         * config/i386/i386.md : Change constraints of HImode and QImode
3767         immediate operands from "i" to "n".  Change SImode "ni" constraint to
3768         "i" and SImode "rmi" constraint to "g".  Remove all constraints
3769         from const0_operand and const1_operand predicated operands.
3770         (i): Change QImode and HImode attribute from "i" to "n".
3771         (*subqi_2): Change HImode operands to QImode.
3772         (*subqi_3): Ditto.
3773
3774 2008-06-25  Olivier Hainque  <hainque@adacore.com>
3775
3776         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
3777         sed substitutions.
3778
3779 2008-06-25  Richard Guenther  <rguenther@suse.de>
3780
3781         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
3782         not overflow the result type.
3783
3784 2008-06-25  Richard Guenther  <rguenther@suse.de>
3785
3786         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
3787         (vn_lookup): Likewise.
3788
3789 2008-06-25  Richard Guenther  <rguenther@suse.de>
3790
3791         PR tree-optimization/35518
3792         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
3793         * tree-sra.c (instantiate_element): Use fold_build3 to build
3794         BIT_FIELD_REFs.
3795         (try_instantiate_multiple_fields): Likewise.
3796
3797 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3798
3799         * config/rs6000/rs6000.md: Change all string instruction's clobber to
3800         be early clobbers.
3801
3802 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3803
3804         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
3805         use_backchain_to_restore_sp to true
3806         if the offset of the link register save area would go over the 32k - 1
3807         offset limit of the load
3808         instructions.
3809
3810 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
3811
3812         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
3813         anchor for the type-punning blurb.  Cross-reference "Structures
3814         unions enumerations and bit-fields implementation".  Provide a
3815         cast-through-pointer example.  Make final sentence self-contained.
3816         * doc/implement-c.texi (Structures unions enumerations and
3817         bit-fields implementation): Cross-reference the type-punning blurb
3818         in the -fstrict-aliasing documentation.
3819
3820 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3821
3822         PR middle-end/36594
3823         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
3824         the memory instead of the memory itself for the save area.
3825
3826 2008-06-24  Olivier Hainque  <hainque@adacore.com>
3827             Nicolas Roche  <roche@adacore.com>
3828
3829         * gengtype.c (srcdir_len): size_t instead of int.
3830         (get_file_realbasename): New function.  For F a filename, the real
3831         basename of F, with all the path components stripped.
3832         (get_file_srcdir_relative_path): New function.  For F a filename, the
3833         relative path to F from $(srcdir).
3834         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
3835         get_file_realbasename.  Adjust the head comment.
3836         (get_prefix_langdir_index): New function. For F a filename, return the
3837         lang_dir_names[] relative index of the language directory that is
3838         a prefix in F.
3839         (get_file_langdir): For F a filename, return the name of the language
3840         directory where F is located.
3841         (get_file_gtfilename): New function. The gt- output file name for an
3842         input filename F.
3843         (get_output_file_with_visibility): Replace in-line computations with
3844         uses of get_file_gtfilename and get_prefix_langdir_index.
3845         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
3846
3847 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
3848
3849         PR tree-optimization/36504
3850         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
3851         references without base address.
3852
3853 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3854
3855         PR middle-end/36584
3856         * calls.c (expand_call): Increase alignment for recursive functions.
3857
3858 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
3859
3860         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
3861         (TARGET_FUNCTION_VALUE): New define.
3862         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
3863         * config/avr/avr.h (FUNCTION_VALUE): Remove.
3864
3865 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3866
3867         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
3868         (fmod<mode>3): Ditto.
3869         (remainderxf3): Ditto.
3870         (remainder<mode>3): Ditto.
3871
3872 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
3873
3874         PR target/36533
3875         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
3876         REG is a hard register.
3877
3878         PR tree-optimization/36508
3879         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
3880         499, don't check it at all in release compilers.
3881
3882 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3883
3884         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
3885         together with SSE_TARGET_MATH to disable insn pattern.
3886         (*fop_<MODEF:mode>_2_i387): Ditto.
3887         (*fop_<MODEF:mode>_3_i387): Ditto.
3888
3889 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
3890
3891         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
3892
3893 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3894
3895         PR middle-end/34906
3896         * gimplify.c (gimplify_asm_expr): Check the return code of
3897         parse_output_constraint call, set function return and is_inout
3898         value if it failed.
3899
3900 2008-06-22  Ian Lance Taylor  <iant@google.com>
3901
3902         * c-lex.c (narrowest_unsigned_type): Change itk to int.
3903         (narrowest_signed_type): Likewise.
3904         * c-typeck.c (c_common_type): Change local variable mclass to enum
3905         mode_class, twice.
3906         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
3907         tcc_comparison, not the tree code itself.
3908         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
3909         (c_expand_expr): Cast modifier to enum expand_modifier.
3910         * c-common.h (C_RID_CODE): Add casts.
3911         (C_SET_RID_CODE): Define.
3912         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
3913         (c_lex_one_token): Add cast to avoid warning.
3914         (c_parser_objc_type_name): Rename local typename to type_name.
3915         (check_no_duplicate_clause): Change code parameter to enum
3916         omp_clause_code.
3917         (c_parser_omp_var_list_parens): Change kind parameter to enum
3918         omp_clause_code.
3919         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
3920         c_parser_omp_list_var_parens.
3921         (c_parser_omp_threadprivate): Likewise.
3922         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
3923         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
3924         * c-format.c (NO_FMT): Define.
3925         (printf_length_specs): Use NO_FMT.
3926         (asm_fprintf_length_specs): Likewise.
3927         (gcc_diag_length_specs): Likewise.
3928         (scanf_length_specs): Likewise.
3929         (strfmon_length_specs): Likewise.
3930         (gcc_gfc_length_specs): Likewise.
3931         (printf_flag_specs): Change 0 to STD_C89.
3932         (asm_fprintf_flag_specs): Likewise.
3933         (gcc_diag_flag_specs): Likewise.
3934         (gcc_cxxdiag_flag_specs): Likewise.
3935         (scanf_flag_specs): Likewise.
3936         (strftime_flag_specs): Likewise.
3937         (strfmon_flag_specs): Likewise.
3938         (print_char_table): Likewise.
3939         (asm_fprintf_char_table): Likewise.
3940         (gcc_diag_char_table): Likewise.
3941         (gcc_tdiag_char_table): Likewise.
3942         (gcc_cdiag_char_table): Likewise.
3943         (gcc_cxxdiag_char_table): Likewise.
3944         (gcc_gfc_char_table): Likewise.
3945         (scan_char_table): Likewise.
3946         (time_char_table): Likewis.
3947         (monetary_char_table): Likewise.
3948         * c-format.h (BADLEN): Likewise.
3949
3950 2008-06-21  Ian Lance Taylor  <iant@google.com>
3951
3952         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
3953         Define END_OF_BASE_TREE_CODES around inclusion.
3954         * tree.c (tree_code_type): New global array.
3955         (tree_code_length, tree_code_name): Likewise.
3956         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
3957         $(lang_tree_files).
3958         (all-tree.def, s-alltree): New targets.
3959         (gencheck.h, s-gencheck): Remove.
3960         (tree.o): Depend upon all-tree.def.
3961         (build/gencheck.o): Remove gencheck.h dependency.
3962         (mostlyclean): Don't remove gencheck.h.
3963         * c-common.h (enum c_tree_code): Remove.
3964         * c-lang.c (tree_code_type): Remove.
3965         (tree_code_length, tree_code_name): Remove.
3966         * gencheck.c (tree_codes): Include all-tree.def, rather than
3967         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
3968         after it is used.
3969         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
3970         than tree.def.
3971         * cp/cp-tree.h (enum cplus_tree_code): Remove.
3972         (operator_name_info): Size to MAX_TREE_CODES.
3973         (assignment_operator_name_info): Likewise.
3974         * cp/cp-lang.c (tree_code_type): Remove.
3975         (tree_code_length, tree_code_name): Remove.
3976         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
3977         (assignment_operator_name_info): Likewise.
3978         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
3979         MAX_TREE_CODES.
3980         * cp/mangle.c (write_expression): Likewise.
3981         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
3982         * fortran/f95-lang.c (tree_code_type): Remove.
3983         (tree_code_length, tree_code_name): Remove.
3984         * java/java-tree.h (enum java_tree_code): Remove.
3985         * java/lang.c (tree_code_type): Remove.
3986         (tree_code_length, tree_code_name): Remove.
3987         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
3988         * objc/objc-act.h (enum objc_tree_code): Remove.
3989         * objc/objc-lang.c (tree_code_type): Remove.
3990         (tree_code_length, tree_code_name): Remove.
3991         * objcp/objcp-lang.c (tree_code_type): Remove.
3992         (tree_code_length, tree_code_name): Remove.
3993         * ada/ada-tree.h (enum gnat_tree_code): Remove.
3994         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
3995         * ada/misc.c (tree_code_type): Remove.
3996         (tree_code_length, tree_code_name): Remove.
3997
3998 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
3999
4000         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
4001         the grand_bitmap_obstack.
4002
4003 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4004
4005         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
4006         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
4007         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
4008         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
4009         move_stmt_r, new_label_mapper): Likewise.
4010         * tree-complex.c (cvc_lookup): Likewise.
4011         * tree-dfa.c (create_function_ann): Likewise.
4012         * tree-dump.c (dump_register): Likewise.
4013         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
4014         find_phi_replacement_condition): Likewise.
4015         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
4016         tree_function_versioning): Likewise.
4017         * tree-into-ssa.c (cmp_dfsnum): Likewise.
4018         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
4019         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
4020         get_nonlocal_debug_decl, convert_nonlocal_reference,
4021         convert_nonlocal_omp_clauses, get_local_debug_decl,
4022         convert_local_reference, convert_local_omp_clauses,
4023         convert_nl_goto_reference, convert_nl_goto_receiver,
4024         convert_tramp_reference, convert_call_expr): Likewise.
4025         * tree-outof-ssa.c (contains_tree_r): Likewise.
4026         * tree-parloops.c (reduction_phi, initialize_reductions,
4027         eliminate_local_variables_1, add_field_for_reduction,
4028         add_field_for_name, create_phi_for_local_result,
4029         create_call_for_reduction_1, create_loads_for_reductions,
4030         create_stores_for_reduction, create_loads_and_stores_for_name):
4031         Likewise.
4032         * tree-phinodes.c (allocate_phi_node): Likewise.
4033         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
4034         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
4035         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
4036         * tree-ssa-coalesce.c (compare_pairs): Likewise.
4037         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
4038         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
4039         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
4040         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
4041         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
4042         vn_nary_op_insert): Likewise.
4043         * tree-ssa.c (redirect_edge_var_map_add,
4044         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
4045         * tree-vectorizer.c (vectorize_loops): Likewise.
4046         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
4047         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
4048         tree_cons_stat, build1_stat, build_variant_type_copy,
4049         decl_init_priority_lookup, decl_fini_priority_lookup,
4050         decl_priority_info, decl_restrict_base_lookup,
4051         decl_restrict_base_insert, decl_debug_expr_lookup,
4052         decl_debug_expr_insert, decl_value_expr_lookup,
4053         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
4054         type_hash_add, get_file_function_name, tree_check_failed,
4055         tree_not_check_failed, tree_range_check_failed,
4056         omp_clause_range_check_failed, build_omp_clause,
4057         build_vl_exp_stat): Likewise.
4058         * value-prof.c (gimple_histogram_value,
4059         gimple_duplicate_stmt_histograms): Likewise.
4060         * var-tracking.c (attrs_list_insert, attrs_list_copy,
4061         unshare_variable, variable_union_info_cmp_pos, variable_union,
4062         dataflow_set_different_1, dataflow_set_different_2,
4063         vt_find_locations, variable_was_changed, set_variable_part,
4064         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
4065         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
4066         section_entry_hash, object_block_entry_eq,
4067         object_block_entry_hash, create_block_symbol,
4068         initialize_cold_section_name, default_function_rodata_section,
4069         strip_reg_name, set_user_assembler_name, const_desc_eq,
4070         build_constant_desc, output_constant_def, lookup_constant_def,
4071         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
4072         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
4073         default_internal_label): Likewise.
4074         * varray.c (varray_init, varray_grow): Likewise.
4075         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
4076
4077 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
4078
4079         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
4080         operators for "test" insn.  Macroize insn using SWI mode macro.
4081         (*jcc_fused_2): Ditto.
4082         (*jcc_fused_3): Macroize insn using SWI mode macro.
4083         (*jcc_fused_4): Ditto.
4084
4085 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
4086
4087         * tree-ssa-pre.c: Fix typo in comment.
4088         (init_antic, fini_antic): Add explicit funtions for
4089         initializing and deinitializing ANTIC and AVAIL sets.
4090         (create_expression_by_pieces): Fix typo in comment.
4091         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
4092         (execute_pre): Eventually dump details about ANTIC_IN.
4093
4094 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4095
4096         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
4097         * gcc.c (translate_options, init_spec, store_arg, read_specs,
4098         add_to_obstack, file_at_path, find_a_file, execute,
4099         add_preprocessor_option, add_assembler_option, add_linker_option,
4100         process_command, insert_wrapper, do_option_spec, do_self_spec,
4101         spec_path, do_spec_1, is_directory, main, used_arg,
4102         getenv_spec_function): Likewise.
4103         * tlink.c (symbol_hash_lookup, file_hash_lookup,
4104         demangled_hash_lookup, symbol_push, file_push, frob_extension):
4105         Likewise.
4106
4107 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
4108
4109         * doc/rtl.texi: Updated subreg section.
4110
4111 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
4112
4113         PR c++/36523
4114         * cgraphunit.c (cgraph_process_new_functions): Don't clear
4115         node->needed and node->reachable.
4116         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
4117         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
4118         (expand_task_call): Don't call expand_task_copyfn.
4119         (expand_task_copyfn): Renamed to...
4120         (finalize_task_copyfn): ... this.
4121
4122 2008-06-19  Jan Hubicka  <jh@suse.cz>
4123
4124         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
4125         clobbering framepointer.
4126
4127 2008-06-19  Jan Hubicka  <jh@suse.cz>
4128
4129         * tree-optimize.c (execute_early_local_optimizations): Set
4130         cgraph_state only at first invocation.
4131
4132 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4133
4134         * system.h (-Wc++-compat): Activate as a warning, no an error.
4135
4136 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
4137
4138         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
4139         instead of "#" in insn asm template.
4140         (*jcc_fused_2): Ditto.
4141
4142 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
4143
4144         * config/i386/i386.h (ix86_tune_indices)
4145         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
4146         (TARGET_FUSE_CMP_AND_BRANCH): New define.
4147         * config/i386/i386.md (*jcc_fused_1): New insn pattern
4148         (*jcc_fused_2): Ditto.
4149         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
4150         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
4151         (print operand): Handle 'E' and 'e' code.
4152
4153 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
4154
4155         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
4156         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4157         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4158
4159 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
4160
4161         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
4162         node->decl.
4163         (cgraph_expand_function): Use local copy of decl.
4164         (cgraph_expand_all_functions): Remove redundant initialization of
4165         order_pos.
4166         (cgraph_optimize): Reword internal_error message.
4167
4168 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
4169
4170         * arm-protos.h (arm_return_in_memory): Remove public
4171         arm_return_in_memory() prototype.
4172         * arm.c (arm_return_in_memory): Add static prototype, add target
4173         hook macro, change definition and comments.
4174         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
4175
4176 2008-06-19  Ben Elliston  <bje@au.ibm.com>
4177
4178         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
4179         real.c: Remove references to IEEE 754R.
4180         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
4181         * doc/libgcc.texi (Decimal float library routines): Likewise.
4182
4183 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4184
4185         * targhooks.h (struct gcc_target): New member unwind_word_mode.
4186         (default_unwind_word_mode): Add prototype.
4187         * targhooks.c (default_unwind_word_mode): New function.
4188         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
4189         instead of word_mode.
4190         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
4191         (TARGET_INITIALIZER): Use it.
4192
4193         * c-common.c (handle_mode_attribute): Support "unwind_word"
4194         mode attribute.
4195         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
4196
4197         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
4198         word_mode to access SjLj_Function_Context member "data".
4199         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
4200         conversion from targetm.eh_return_filter_mode () to
4201         targetm.unwind_word_mode () if they differ.
4202
4203         * builtin-types.def (BT_UNWINDWORD): New primitive type.
4204         (BT_FN_UNWINDWORD_PTR): New function type.
4205         (BT_FN_WORD_PTR): Remove.
4206         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
4207         * except.c (expand_builtin_extend_pointer): Convert pointer to
4208         targetm.unwind_word_mode () instead of word_mode.
4209
4210         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
4211         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
4212         (spu_unwind_word_mode): New function.
4213         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
4214         (TARGET_UNWIND_WORD_MODE): Define.
4215         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
4216
4217 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4218
4219         * config/spu/spu.c (reg_align): Remove.
4220         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
4221         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
4222         (spu_split_store): Likewise.
4223
4224 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
4225
4226         * gcc/tree-vn.c: Fix typo in comment.
4227
4228 2008-06-18  Jan Hubicka  <jh@suse.cz>
4229
4230         * cgraphunit.c (cgraph_optimize): Output debug info when doing
4231         toplevel reorder too.
4232
4233 2008-06-18  Jan Hubicka  <jh@suse.cz>
4234
4235         * c-opts.c (c_common_post_options): PCH is not compatible with
4236         no-unit-at-a-time.
4237         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
4238         -fno-toplevel-reorder by default now.
4239
4240 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4241
4242         PR documentation/30739
4243         * doc/install.texi (Prerequisites): Document dependency on awk.
4244
4245 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
4246             Ian Lance Taylor  <iant@google.com>
4247
4248         PR rtl-optimization/35604
4249         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
4250         only want to change jump destinations, not eventual label comparisons.
4251
4252 2008-06-16  Jan Hubicka  <jh@suse.cz>
4253
4254         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
4255         syntax errors.
4256         (cgraph_analyze_function): Likewise.
4257
4258 2008-06-16  Jan Hubicka  <jh@suse.cz>
4259
4260         * cgraph.h (cgraph_mark_if_needed): New function.
4261         * cgraphunit.c (cgraph_mark_if_needed): New function.
4262         * c-decl.c (duplicate_decl): Use it.
4263
4264 2008-06-16  Jan Hubicka  <jh@suse.cz>
4265
4266         * cgraph.c (cgraph_add_new_function): When in expansion state, do
4267         lowering.
4268
4269 2008-06-16  Jan Hubicka  <jh@suse.cz>
4270
4271         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
4272
4273 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
4274             Kazu Hirata  <kazu@codesourcery.com>
4275             Maxim Kuvyrkov  <maxim@codesourcery.com
4276
4277         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
4278         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
4279         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
4280         EXTRA_SPEC_FUNCTIONS.
4281         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
4282         (DRIVER_SELF_SPECS): Adjust.
4283         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
4284         * config/mips/st.h, config/mips/t-st: New.
4285         * config/mips/driver-native.c, config/mips/x-native: New.
4286         * doc/invoke.texi (MIPS): Document 'native' value for -march and
4287         -mtune options.
4288
4289 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
4290
4291         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
4292         from it.
4293         (ISA_HAS_FP_CONDMOVE): New macro.
4294         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
4295         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
4296         (ISA_HAS_NMADD3_NMSUB3): New macro.
4297         * config/mips/mips.c (mips_rtx_costs): Update.
4298         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
4299         compiling for ST Loongson 2E/2F.
4300         (madd<mode>): Rename to madd4<mode>.  Update.
4301         (madd3<mode>): New pattern.
4302         (msub<mode>): Rename to msub4<mode>.  Update.
4303         (msub3<mode>): New pattern.
4304         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
4305         (nmadd3<mode>): New pattern.
4306         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
4307         (nmadd3<mode>_fastmath): New pattern.
4308         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
4309         (nmsub3<mode>): New pattern.
4310         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
4311         (nmsub3<mode>_fastmath): New pattern.
4312         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
4313
4314 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
4315
4316         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
4317         (DF_REF_INSN_INFO): New.
4318         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
4319         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
4320         with a NULL DF_REF_INSN_INFO.
4321         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
4322         DF_INSN_SET.
4323         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
4324         DF_INSN_INFO_EQ_USES): New.
4325         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
4326         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
4327         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
4328         * df-core.c: Update comment for above changes.
4329         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
4330         DF_INSN_UID_* macros.
4331         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
4332         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
4333         insn rtx.  Update all callers.
4334         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
4335         df_ref_create_structure, df_insn_refs_collect): Likewise.
4336         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
4337         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
4338         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
4339         macros to access the insn refs.
4340         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
4341         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
4342         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
4343         for accessing the refs.
4344         (try_fwprop_subst): Likewise.
4345         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
4346         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
4347         for accessing the refs.
4348         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
4349         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
4350         to look at the insn refs.
4351         (record_uses): Likewise.
4352         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
4353         function anymore.
4354         (mark_artificial_uses): Don't mark_insn for artificial refs.
4355         (mark_reg_rependencies): Likewise.
4356
4357         * doc/rtl.texi: Remove documentation of ADDRESSOF.
4358
4359 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4360
4361         * configure: Regenerate.
4362
4363 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4364
4365         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
4366         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4367         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4368
4369 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4370
4371         * config/avr/avr.c (avr_mcu_t): Add attiny167.
4372         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4373         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4374
4375 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4376
4377         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
4378         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4379         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4380
4381 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4382
4383         * tree-ssa-sccvn.c: Fix format of comments.
4384
4385 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4386
4387         * cgraph.c: Remove unneeded forward declarations of eq_node()
4388         and hash_node().
4389
4390 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
4391
4392         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
4393         REG_RETVAL notes.
4394         (see_update_relevancy): Likewise.
4395         * fwprop.c (try_fwprop_subst): Likewise.
4396         * rtlanal.c (noop_move_p): Likewise.
4397         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
4398         notes to non-existing libcall blocks.
4399         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
4400         Remove orig_set.
4401         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
4402         (dead_libcall_p): Remove.
4403         (delete_trivially_dead_insns): Don't use it.
4404         * web.c (union_defs): Remove comment about keeping nops.
4405         * gcse.c (hash_scan_insn): Don't take libcall pointers.
4406         (compute_hash_table_work): Don't track libcall notes.
4407         (do_local_cprop): Don't take libcall pointers.  Don't update
4408         libcall notes.
4409         (adjust_libcall_notes): Deleted.
4410         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
4411         ever have existed in the first place).
4412         (replace_store_insn): Don't try to remove libcall notes.
4413         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
4414         (resolve_reg_notes): Don't call them.
4415         (resolve_simple_move): Likewise.
4416         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
4417         Don't remove REG_RETVAL notes.
4418         * emit-rtl.c (try_split): Don't update libcall notes.
4419         (emit_copy_of_insn_after): Dito.
4420         * cselib.c (cselib_current_insn_in_libcall): Remove.
4421         (cselib_process_insn): Don't set/clear it.
4422         (new_elt_loc_list): Don't record it.
4423         (cselib_init): Don't initialize it.
4424         * cselib.c (struct elt_loc_list): Remove in_libcall field.
4425         * loop-invariant.c (find_invariant_insn): Don't look for libcall
4426         notes.
4427         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
4428         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
4429         (init_deps): Don't initialize it.
4430         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
4431         * combine.c (delete_noop_moves): Don't update libcall notes.
4432         (can_combine_p): Remove now pointless #if 0 block.
4433         (try_combine): Remove another obsolete #if 0 block.
4434         (distribute_notes): Don't distribute libcall notes.
4435         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
4436         * dce.c (libcall_dead_p): Remove.
4437         (delete_unmarked_insns): Don't handle libcall blocks.
4438         (preserve_libcall_for_dce): Remove.
4439         (prescan_insns_for_dce): Don't special-case libcall block insns.
4440         * reload1 (reload): Don't handle libcall notes.
4441         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
4442         documentation.
4443
4444 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4445
4446         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
4447         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4448         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4449
4450 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4451
4452         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
4453         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4454         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4455
4456 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4457
4458         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
4459
4460 2008-06-16  Ira Rosen  <irar@il.ibm.com>
4461
4462         PR tree-optimization/36493
4463         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
4464         the arguments list. Use VECTYPE to create vector pointer.
4465         (vectorizable_store): Fail if accesses through a pointer to vectype
4466         do not alias the original memory reference operands.
4467         Call vect_create_data_ref_ptr without the removed argument.
4468         (vectorizable_load): Likewise.
4469         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
4470         removed argument.
4471
4472 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
4473
4474         PR target/36336
4475         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
4476         reg_equiv_constant.
4477
4478 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4479
4480         * config/mips/loongson2ef.md: New file.
4481         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4482         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4483         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4484         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
4485         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
4486         and loongson_2f.
4487         (loongson2ef.md): New include.
4488         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
4489         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
4490         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
4491         (loongson_gt_<mode>, loongson_extract_halfword)
4492         (loongson_insert_halfword_0, loongson_insert_halfword_2)
4493         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
4494         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
4495         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
4496         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
4497         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
4498         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
4499         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
4500         (vec_interleave_low<mode>): Define type attribute.
4501         * config/mips/mips.c (mips_ls2): New static variable.
4502         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
4503         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
4504         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
4505         Implement target scheduling hooks.
4506         (mips_multipass_dfa_lookahead): Update to handle tuning for
4507         Loongson 2E/2F.
4508         (mips_sched_init): Initialize data for Loongson scheduling.
4509         (mips_ls2_variable_issue): New static function.
4510         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
4511         Add sanity check.
4512         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
4513         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
4514         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
4515         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
4516         Handle ST Loongson 2E/2F cores.
4517         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
4518
4519 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4520
4521         * omp-low.c (extract_omp_for_data): Fix comment typo.
4522         * c.opt: Fix typo.
4523
4524 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4525
4526         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
4527         FIXME note about gcc/config.guess.
4528         * doc/options.texi (Option file format): Remove non-ASCII bytes.
4529         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
4530         * doc/cppopts.texi: Likewise.
4531         * doc/extend.texi: Likewise.
4532         * doc/gcc.texi: Likewise.
4533         * doc/gccint.texi: Likewise.
4534         * doc/gcov.texi: Likewise.
4535         * doc/gty.texi: Likewise.
4536         * doc/hostconfig.texi: Likewise.
4537         * doc/install.texi: Likewise.
4538         * doc/invoke.texi: Likewise.
4539         * doc/loop.texi: Likewise.
4540         * doc/makefile.texi: Likewise.
4541         * doc/md.texi: Likewise.
4542         * doc/passes.texi: Likewise.
4543         * doc/tm.texi: Likewise.
4544         * doc/tree-ssa.texi: Likewise.
4545         * doc/trouble.texi: Likewise.
4546
4547 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
4548             Nathan Sidwell  <nathan@codesourcery.com>
4549             Maxim Kuvyrkov  <maxim@codesourcery.com>
4550             Richard Sandiford  <rdsandiford@googlemail.com>
4551
4552         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
4553         * config/mips/mips-protos.h (mips_expand_vector_init): New.
4554         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
4555         builtins.
4556         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
4557         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
4558         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
4559         V8QImode cases.
4560         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
4561         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
4562         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
4563         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
4564         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
4565         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
4566         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
4567         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
4568         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
4569         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
4570         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
4571         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
4572         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
4573         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
4574         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
4575         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
4576         (mips_builtins): Add Loongson builtins.
4577         (mips_loongson_2ef_bdesc): New.
4578         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
4579         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
4580         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
4581         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
4582         New.
4583         (mips_expand_vector_init): New.
4584         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
4585         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
4586         if appropriate.
4587         * config/mips/mips.md: Add unspec numbers for Loongson
4588         builtins.  Include loongson.md.
4589         (MOVE64): Include Loongson vector modes.
4590         (SPLITF): Include Loongson vector modes.
4591         (HALFMODE): Handle Loongson vector modes.
4592         * config/mips/loongson.md: New.
4593         * config/mips/loongson.h: New.
4594         * config.gcc: Add loongson.h header for mips*-*-* targets.
4595         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
4596
4597 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
4598
4599         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
4600         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
4601         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
4602         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
4603         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
4604         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
4605         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
4606         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
4607         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
4608         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
4609         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
4610         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
4611         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
4612         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
4613         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
4614         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
4615         Remove use_fixproto=yes.
4616         (ia64*-*-hpux*): Remove comment about using fixproto.
4617         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
4618
4619 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4620
4621         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
4622         library rebuilds.
4623         * configure: Regenerate.
4624
4625 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
4626
4627         PR middle-end/36520
4628         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
4629         before evaluating it.
4630
4631 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
4632
4633         PR c/36507
4634         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
4635         nested inline functions.
4636         (start_decl, start_function): Don't invert DECL_EXTERNAL
4637         for nested inline functions.
4638
4639 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4640
4641         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
4642         splits that must be made for correctness.
4643
4644 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4645
4646         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
4647         (AVAIL_NON_MIPS16): Likewise.
4648         (mips_builtin_description): Replace target_flags with a predicate.
4649         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
4650         (dspr2_32): New availability predicates.
4651         (MIPS_BUILTIN): New macro.
4652         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
4653         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
4654         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
4655         Replace the TARGET_FLAGS parameters with AVAIL parameters.
4656         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
4657         (mips_dsp_32only_bdesc): Merge into...
4658         (mips_builtins): ...this new array.
4659         (mips_bdesc_map, mips_bdesc_arrays): Delete.
4660         (mips_init_builtins): Update after above changes.
4661         (mips_expand_builtin_1): Merge into...
4662         (mips_expand_builtin): ...here and update after above changes.
4663
4664 2008-06-12  Paul Brook  <paul@codesourcery.com>
4665
4666         * longlong.h (__arm__): Define count_leading_zeros.
4667         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
4668         (clzsi2, clzdi2): New functions.
4669         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
4670         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
4671         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
4672         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
4673         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
4674         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
4675         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
4676         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4677         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
4678         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
4679
4680 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
4681
4682         * config/m68k/m68k.c (m68k_tune_flags): New.
4683         (override_options): Compute m68k_tune_flags.
4684         (MULL_COST, MULW_COST): Update for various variants of CFV2.
4685         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
4686
4687 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4688
4689         PR middle-end/36506
4690         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
4691
4692 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4693
4694         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
4695         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
4696
4697 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4698
4699         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
4700         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
4701
4702 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4703
4704         PR middle-end/36506
4705         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
4706         reductions.
4707
4708 2008-06-12  Richard Guenther  <rguenther@suse.de>
4709
4710         PR tree-optimization/36345
4711         * tree-flow.h (struct ptr_info_def): Align escape_mask,
4712         add memory_tag_needed flag.
4713         (may_alias_p): Declare.
4714         * tree-ssa-alias.c (may_alias_p): Export.
4715         (set_initial_properties): Use memory_tag_needed flag.
4716         (update_reference_counts): Likewise.
4717         (reset_alias_info): Reset memory_tag_needed flag.
4718         (create_name_tags): Check memory_tag_needed flag.
4719         (dump_points_to_info_for): Dump it.
4720         * tree-ssa-structalias.c (struct variable_info): Remove
4721         directly_dereferenced flag.
4722         (new_var_info): Do not initialize it.
4723         (process_constraint_1): Do not set it.
4724         (update_alias_info): Set is_dereferenced flag.
4725         (set_uids_in_ptset): Use may_alias_p.
4726         (set_used_smts): Check memory_tag_needed flag.
4727         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
4728         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
4729         memory_tag_needed flag.
4730         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
4731         from broken design.
4732
4733 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
4734
4735         * config/i386/i386.c (ix86_compute_frame_layout): Disable
4736         red zone for w64 abi.
4737         (ix86_expand_prologue): Likewise.
4738         (ix86_force_to_memory): Likewise.
4739         (ix86_free_from_memory): Likewise.
4740
4741 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
4742
4743         PR target/36425
4744         * config/rs6000/rs6000.c (rs6000_override_options): Set
4745         rs6000_isel conditionally to the absence of comand line override.
4746         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4747         Remove duplicate rs6000_isel setting.
4748         * config/rs6000/eabispe.h: Ditto.
4749
4750 2008-06-11  Richard Guenther  <rguenther@suse.de>
4751
4752         * alias.c (get_alias_set): Use the element alias-set for arrays.
4753         (record_component_aliases): For arrays and vectors do nothing.
4754         * c-common.c (strict_aliasing_warning): Handle the cases
4755         of alias set zero explicitly.
4756         * Makefile.in (dfp.o-warn): Add -Wno-error.
4757
4758 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4759
4760         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
4761         tune_32 tune_64.
4762         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
4763         tune_32 tune_64 to supported_defaults.  Allow values not
4764         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
4765         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
4766         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
4767         with_cpu_64 to generic for 64-bit-supporting configurations, not
4768         with_cpu.  Remove FIXMEs.
4769         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
4770         --with-arch-64, --with-tune-32, --with-tune-64): Document.
4771         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
4772         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
4773         arch_32 and arch_64.
4774
4775 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
4776             Olivier Hainque  <hainque@adacore.com>
4777
4778         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
4779         Use DECL_SIZE_UNIT to retrieve the size of the field.
4780
4781 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4782
4783         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
4784         with function calls after declarations.  Lay out
4785         neon_float_type_node before further use.
4786
4787 2008-06-11  Richard Guenther  <rguenther@suse.de>
4788
4789         * tree-flow.h (may_point_to_global_var): Declare.
4790         * tree-ssa-alias.c (may_point_to_global_var): New function.
4791         * tree-ssa-sink.c (is_hidden_global_store): Use it.
4792
4793 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
4794
4795         * configure.ac: Teach that fido supports .debug_line.
4796         * configure: Regenerate.
4797
4798 2008-06-10  Tom Tromey  <tromey@redhat.com>
4799
4800         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
4801         debug hook.
4802
4803 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4804
4805         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
4806         (encode_decimal64, decode_decimal64, encode_decimal128,
4807         decode_decimal128): Reverse order of 32-bit parts of value if host
4808         and target endianness differ.
4809
4810 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
4811
4812         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
4813         Avoid division by 0.
4814         (tree_mod_pow2_value_transform): Likewise.
4815         (tree_ic_transform): Likewise.
4816         (tree_stringops_transform): Likewise.
4817         (tree_mod_subtract_transform): Likewise.
4818         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
4819         (copy_edges_for_bb): Likewise.
4820         (initialize_cfun): Likewise.
4821
4822 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4823
4824         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
4825         nonmemory_operand. Add "N" operand constraint.
4826         (*btsi): Ditto.
4827         (*jcc_btdi_mask_rex64): New instruction and split pattern.
4828         (*jcc_btsi_mask): Ditto.
4829         (*jcc_btsi_mask_1): Ditto.
4830
4831 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4832
4833         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
4834         TYPE_CANONICAL for copied element type.
4835
4836 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4837
4838         PR target/36473
4839         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
4840         Add m_CORE2 and m_GENERIC.
4841         * config/i386/predicates.md (bt_comparison_operator): New predicate.
4842         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
4843         (*btsi): Ditto.
4844         (*jcc_btdi_rex64): New instruction and split pattern.
4845         (*jcc_btsi): Ditto.
4846         (*jcc_btsi_1): Ditto.
4847         (*btsq): Fix Intel asm dialect operand order.
4848         (*btrq): Ditto.
4849         (*btcq): Ditto.
4850
4851 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
4852
4853         PR middle-end/36447
4854         * simplify-rtx.c (simplify_subreg): Add check for shift count
4855         greater than size.
4856
4857 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
4858
4859         * doc/md.texi: Synchronize with later constraints.md change.
4860         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
4861         with a C implementation.
4862         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
4863         MFLO handling.
4864         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
4865         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
4866         when moving to and from MD_REGNUM.
4867         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
4868         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
4869         Handle byte and halfword moves.
4870         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
4871         separately.
4872         * config/mips/constraints.md (h): Turn into NO_REGS.
4873         (l, x): Update documentation.
4874         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
4875         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
4876         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
4877         (HILO): New mode iterator.
4878         (MOVE128): Add TI.
4879         (any_div): New code iterator.
4880         (u): Extend code attribute to div and udiv.
4881         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
4882         d_operand in the splitters.  Remove redundant CONST_INT checks.
4883         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
4884         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
4885         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
4886         accordingly, using normal moves instead of unspecs to move LO into
4887         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
4888         (<u>mulsidi3): Handle expansion in C code.
4889         (<u>mulsidi3_32bit_internal): Rename to...
4890         (<u>mulsidi3_32bit): ...this.
4891         (<u>mulsidi3_32bit_r4000): Fix insn separator.
4892         (*<u>mulsidi3_64bit): Rename to...
4893         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
4894         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
4895         to set LO and HI to the multiplication result.  Use a normal move
4896         for MFLO and an unspec for MFHI.
4897         (*<u>mulsidi3_64bit_parts): Replace with...
4898         (<u>mulsidi3_64bit_hilo): ...this new instruction.
4899         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
4900         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
4901         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
4902         instead of HI.  Split the instruction into a separate multiplication
4903         and MFHI if !TARGET_FIX_R4000.
4904         (<su>muldi3_highpart): Likewise.
4905         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
4906         and the "=h" clobber.
4907         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
4908         (<u>mulditi3): New expander.
4909         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
4910         (madsi): Remove "=h" clobber.
4911         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
4912         Force the modulus result to be a GPR and split the instruction into
4913         a division followed by an MFHI after reload.
4914         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
4915         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
4916         the MIPS16 HIGH define_split.
4917         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
4918         of acc<->gpr moves to "multi".
4919         (*movdi_64bit): Replace the single "x" alternative with
4920         alternatives for moving into and out of "a".
4921         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
4922         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
4923         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
4924         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
4925         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
4926         (movti): New expander.
4927         (*movti, *movti_mips16): New insns.
4928         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
4929         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
4930         (mthi<GPR:mode>_<HILO:mode>): Likewise.
4931         * config/mips/predicates.md (fpr_operand): Delete.
4932         (d_operand): New predicate.
4933
4934 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
4935
4936         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
4937         failure on some Bourne shells.
4938         (x86_64-*-*): Ditto.
4939
4940 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
4941
4942         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
4943
4944 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
4945
4946         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
4947         (sparc-sun-solaris2*): Likewise.
4948
4949 2008-06-09  Arnaud Charlet  <charlet@adacore.com
4950
4951         * doc/install.texi: Update requirements to build the Ada compiler.
4952
4953 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
4954
4955         * df-scan.c (struct df_scan_problem_data): Remove the
4956         mw_link_pool alloc pool.
4957         (df_scan_free_internal): Don't free it.
4958         (df_scan_alloc): Don't allocate it.
4959         * df.h (struct df_link): Update comment.
4960
4961 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
4962
4963         * except.h: Correct checks for when SJLJ exceptions must be used.
4964
4965 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4966
4967         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
4968         default.
4969
4970 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
4971
4972         PR tree-optimization/36218
4973         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
4974         configure for the build system.
4975         (BUILD_LDFLAGS): Define.
4976         * configure: Regenerate.
4977         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
4978
4979 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
4980
4981         PR target/36424
4982         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
4983         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
4984         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
4985
4986 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
4987
4988         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
4989
4990 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
4991
4992         * config.gcc (Obsolete configurations): Remove list of
4993         configurations.
4994         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
4995         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
4996         targets matched by those patterns.
4997         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
4998         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
4999         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
5000         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
5001         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5002         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
5003         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
5004         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
5005         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
5006         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
5007         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
5008         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
5009         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
5010         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
5011         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
5012         Make code for Solaris 7 and greater unconditional for Solaris.
5013         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
5014         Remove --with-* handling.
5015         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
5016         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
5017         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
5018         LINK_OS_WINDISS_SPEC): Remove.
5019         * config/rs6000/sysv4.opt (mwindiss): Remove.
5020         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
5021         * configure: Regenerate.
5022         * doc/cpp.texi: Don't mention BeOS.
5023         * doc/extend.texi (interrupt): Don't mention MS1.
5024         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
5025         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
5026         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
5027         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
5028         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
5029         Remove.
5030         * doc/invoke.texi (MT Options): Remove.
5031         (-mwindiss): Remove.
5032         (CRIS Options): Remove cris-axis-aout references.
5033         (HPPA Options): Don't mention hppa1.1-*-pro.
5034         * doc/md.texi: (MorphoTech family): Remove.
5035         * libgcc2.c: Don't handle UWIN.
5036         * config/alpha/t-unicosmk: Remove.
5037         * config/alpha/unicosmk.h: Remove.
5038         * config/arm/kaos-arm.h: Remove.
5039         * config/arm/kaos-strongarm.h: Remove.
5040         * config/arm/strongarm-coff.h: Remove.
5041         * config/arm/strongarm-elf.h: Remove.
5042         * config/arm/strongarm-pe.h: Remove.
5043         * config/arm/t-strongarm-pe: Remove.
5044         * config/arm/t-xscale-coff: Remove.
5045         * config/arm/t-xscale-elf: Remove.
5046         * config/arm/xscale-coff.h: Remove.
5047         * config/arm/xscale-elf.h: Remove.
5048         * config/chorus.h: Remove.
5049         * config/cris/aout.h: Remove.
5050         * config/cris/aout.opt: Remove.
5051         * config/cris/t-aout: Remove.
5052         * config/i386/beos-elf.h: Remove.
5053         * config/i386/kaos-i386.h: Remove.
5054         * config/i386/ptx4-i.h: Remove.
5055         * config/i386/sco5.h: Remove.
5056         * config/i386/sco5.opt: Remove.
5057         * config/i386/sysv4-cpp.h: Remove.
5058         * config/i386/sysv5.h: Remove.
5059         * config/i386/t-beos: Remove.
5060         * config/i386/t-sco5: Remove.
5061         * config/i386/t-uwin: Remove.
5062         * config/i386/uwin.asm: Remove.
5063         * config/i386/uwin.h: Remove.
5064         * config/kaos.h: Remove.
5065         * config/mips/windiss.h: Remove.
5066         * config/mt: Remove directory.
5067         * config/pa/pa-osf.h: Remove.
5068         * config/pa/pa-pro-end.h: Remove.
5069         * config/pa/t-pro: Remove.
5070         * config/ptx4.h: Remove.
5071         * config/rs6000/beos.h: Remove.
5072         * config/rs6000/kaos-ppc.h: Remove.
5073         * config/rs6000/t-beos: Remove.
5074         * config/rs6000/windiss.h: Remove.
5075         * config/sh/kaos-sh.h: Remove.
5076         * config/sol2-6.h: Remove.
5077         * config/sparc/sol26-sld.h: Remove.
5078         * config/sparc/sysv4-only.h: Remove.
5079         * config/vax/bsd.h: Remove.
5080         * config/vax/t-memfuncs: Remove.
5081         * config/vax/ultrix.h: Remove.
5082         * config/vax/vaxv.h: Remove.
5083         * config/windiss.h: Remove.
5084
5085 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
5086
5087         PR rtl-optimization/36438
5088         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
5089         for vector shifts with constant scalar shift operands.
5090
5091 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
5092
5093         * doc/invoke.texi: Document -march=xlr.
5094         * config/mips/xlr.md: New file.
5095         * config/mips/mips.md: Include it.
5096         (cpu): Add "xlr".
5097         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
5098         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
5099         (mips_rtx_cost_data): Likewise.
5100
5101 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
5102
5103         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
5104         PRE_INC and PRE_DEC cases.
5105
5106 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
5107
5108         PR rtl-optimization/36419
5109         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
5110         the emitting jump insn.
5111
5112         PR target/36362
5113         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
5114         is not bool, boolify the whole *expr_p and convert to the desired type.
5115
5116 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
5117
5118         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
5119         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
5120         Add omp_private_outer_ref hook, add another argument to
5121         omp_clause_default_ctor hook.
5122         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
5123         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
5124         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
5125         hook_tree_tree_tree_tree_null.
5126         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
5127         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
5128         * hooks.c (hook_tree_tree_tree_tree_null): New function.
5129         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
5130         * tree.def (OMP_TASK): New tree code.
5131         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
5132         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
5133         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
5134         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
5135         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
5136         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
5137         OMP_CLAUSE_COLLAPSE_EXPR): Define.
5138         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5139         (OMP_DIRECTIVE_P): Add OMP_TASK.
5140         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
5141         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
5142         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
5143         and OMP_CLAUSE_UNTIED entries.
5144         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
5145         num_ops to 2.
5146         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5147         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
5148         * tree-pretty-print.c (dump_omp_clause): Handle
5149         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
5150         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5151         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
5152         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
5153         warning about unsigned iterators.  Change decl/init/cond/incr
5154         arguments to TREE_VECs, check arguments for all collapsed loops.
5155         (c_finish_omp_taskwait): New function.
5156         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
5157         ws_clauses.
5158         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
5159         default_function_array_conversion on init.  Add par_clauses argument.
5160         If decl is present in parallel's lastprivate clause, change it to
5161         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
5162         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
5163         collapse count in clauses.
5164         (c_parser_omp_for, c_parser_omp_parallel): Adjust
5165         c_parser_omp_for_loop callers.
5166         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
5167         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
5168         (c_parser_omp_clause_name): Handle collapse and untied clauses.
5169         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
5170         functions.
5171         (c_parser_omp_clause_schedule): Handle schedule(auto).
5172         Include correct location in the error message.
5173         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
5174         and PRAGMA_OMP_CLAUSE_UNTIED.
5175         (OMP_TASK_CLAUSE_MASK): Define.
5176         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
5177         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
5178         * tree-nested.c (convert_nonlocal_omp_clauses,
5179         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
5180         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
5181         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5182         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
5183         OMP_CLAUSE_DECL.
5184         (conver_nonlocal_reference, convert_local_reference,
5185         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
5186         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
5187         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
5188         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
5189         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
5190         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
5191         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
5192         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
5193         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5194         OMP_CLAUSE_UNTIED.
5195         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
5196         * c-common.h (c_finish_omp_taskwait): New prototype.
5197         * gimple-low.c (lower_stmt): Handle OMP_TASK.
5198         * tree-parloops.c (create_parallel_loop): Create 1 entry
5199         vectors for OMP_FOR_{INIT,COND,INCR}.
5200         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
5201         (make_edges): Handle OMP_TASK.
5202         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
5203         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5204         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
5205         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
5206         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
5207         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5208         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5209         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
5210         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
5211         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
5212         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
5213         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
5214         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
5215         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
5216         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
5217         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
5218         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
5219         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
5220         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
5221         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
5222         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
5223         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
5224         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
5225         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
5226         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
5227         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
5228         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
5229         original iterator is present in lastprivate clause or if
5230         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
5231         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5232         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
5233         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
5234         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
5235         if it is set, lookup var in outer contexts too.  Handle
5236         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
5237         to be implicitly determined firstprivate for task regions.
5238         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
5239         if it is set, lookup var in outer contexts too.  Set
5240         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
5241         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
5242         OMP_CLAUSE_UNTIED.  Take region_type as last argument
5243         instead of in_parallel and in_combined_parallel.
5244         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
5245         Adjust callers.
5246         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
5247         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
5248         (new_omp_context): Set default_kind to
5249         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
5250         (omp_region_type): New enum.
5251         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
5252         fields, add region_type.
5253         (new_omp_context): Take region_type as argument instead of is_parallel
5254         and is_combined_parallel.
5255         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
5256         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
5257         ctx->is_combined_parallel checks.
5258         (gimplify_omp_task): New function.
5259         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5260         OMP_CLAUSE_UNTIED.
5261         * omp-low.c (extract_omp_for_data): Use schedule(static)
5262         for schedule(auto).  Handle pointer and unsigned iterators.
5263         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
5264         Add loops argument.  Extract data for collapsed OMP_FOR loops.
5265         (expand_parallel_call): Assert sched_kind isn't auto,
5266         map runtime schedule to index 3.
5267         (struct omp_for_data_loop): New type.
5268         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
5269         Add loop, loops, collapse and iter_type fields.
5270         (workshare_safe_to_combine_p): Disallow combined for if
5271         iter_type is unsigned long long.  Don't combine collapse > 1 loops
5272         unless all bounds and steps are constant.  Adjust extract_omp_for_data
5273         caller.
5274         (expand_omp_for_generic): Handle pointer, unsigned and long long
5275         iterators.  Handle collapsed OMP_FOR loops.  Adjust
5276         for struct omp_for_data changes.  If libgomp function doesn't return
5277         boolean_type_node, add comparison of the return value with 0.
5278         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
5279         pointer, unsigned and long long iterators.  Adjust for struct
5280         omp_for_data changes.
5281         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
5282         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
5283         unsigned long long.  Allocate loops array, pass it to
5284         extract_omp_for_data.  For collapse > 1 loops use always
5285         expand_omp_for_generic.
5286         (omp_context): Add sfield_map and srecord_type fields.
5287         (is_task_ctx, lookup_sfield): New functions.
5288         (use_pointer_for_field): Use is_task_ctx helper.  Change first
5289         argument's type from const_tree to tree.  Clarify comment.
5290         In OMP_TASK disallow copy-in/out sharing.
5291         (build_sender_ref): Call lookup_sfield instead of lookup_field.
5292         (install_var_field): Add mask argument.  Populate both record_type
5293         and srecord_type if needed.
5294         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
5295         in srecord_type.
5296         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
5297         and DECL_FIELD_OFFSET.
5298         (scan_sharing_clauses): Adjust install_var_field callers.  For
5299         firstprivate clauses on explicit tasks allocate the var by value in
5300         record_type unconditionally, rather than by reference.
5301         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
5302         Use is_taskreg_ctx instead of is_parallel_ctx.
5303         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5304         (create_omp_child_function_name): Add task_copy argument, use
5305         *_omp_cpyfn* names if it is true.
5306         (create_omp_child_function): Add task_copy argument, if true create
5307         *_omp_cpyfn* helper function.
5308         (scan_omp_parallel): Adjust create_omp_child_function callers.
5309         Rename parallel_nesting_level to taskreg_nesting_level.
5310         (scan_omp_task): New function.
5311         (lower_rec_input_clauses): Don't run constructors for firstprivate
5312         explicit task vars which are initialized by *_omp_cpyfn*.
5313         Pass outer var ref to omp_clause_default_ctor hook if
5314         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
5315         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
5316         OMP_CLAUSE_REDUCTION_INIT.
5317         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
5318         avoid duplicate setting of fields.  Handle
5319         OMP_CLAUSE_PRIVATE_OUTER_REF.
5320         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
5321         copy-out if TREE_READONLY, only copy-in.
5322         (expand_task_copyfn): New function.
5323         (expand_task_call): New function.
5324         (struct omp_taskcopy_context): New type.
5325         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
5326         New functions.
5327         (lower_omp_parallel): Rename to...
5328         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
5329         Call create_task_copyfn if srecord_type is needed.  Adjust
5330         sender_decl type.
5331         (task_shared_vars): New variable.
5332         (check_omp_nesting_restrictions): Warn if work-sharing,
5333         barrier, master or ordered region is closely nested inside OMP_TASK.
5334         Add warnings for barrier if closely nested inside of work-sharing,
5335         ordered, or master region.
5336         (scan_omp_1): Call check_omp_nesting_restrictions even for
5337         GOMP_barrier calls.  Rename parallel_nesting_level to
5338         taskreg_nesting_level.  Handle OMP_TASK.
5339         (lower_lastprivate_clauses): Even if some lastprivate is found on a
5340         work-sharing construct, continue looking for them on parent parallel
5341         construct.
5342         (lower_omp_for_lastprivate): Add lastprivate clauses
5343         to the beginning of dlist rather than end.  Adjust for struct
5344         omp_for_data changes.
5345         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
5346         not after it.  Handle collapsed OMP_FOR loops, adjust for
5347         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
5348         (get_ws_args_for): Adjust extract_omp_for_data caller.
5349         (scan_omp_for): Handle collapsed OMP_FOR
5350         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5351         (lower_omp_single_simple): If libgomp function doesn't return
5352         boolean_type_node, add comparison of the return value with 0.
5353         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
5354         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
5355         (parallel_nesting_level): Rename to...
5356         (taskreg_nesting_level): ... this.
5357         (is_taskreg_ctx): New function.
5358         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
5359         of is_parallel_ctx.
5360         (execute_lower_omp): Rename parallel_nesting_level to
5361         taskreg_nesting_level.
5362         (expand_omp_parallel): Rename to...
5363         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
5364         Call omp_task_call for OMP_TASK regions.
5365         (expand_omp): Adjust caller, handle OMP_TASK.
5366         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
5367
5368         * bitmap.c (bitmap_default_obstack_depth): New variable.
5369         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
5370         if argument is NULL and bitmap_default_obstack is already initialized.
5371         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
5372         at the end.
5373         * matrix-reorg.c (matrix_reorg): Likewise.
5374
5375 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
5376
5377         * config/i386/i386.md (*indirect_jump): Macroize using P
5378         mode iterator.  Remove !TARGET_64BIT from insn constraints.
5379         (*tablejump_1): Ditto.
5380         (*indirect_jump_rex64): Remove insn pattern.
5381         (*tablejump_1_rex64): Ditto.
5382         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
5383         and eh_return_si insn patterns.
5384
5385 2008-06-06  Richard Guenther  <rguenther@suse.de>
5386
5387         * tree-ssa-structalias.c (merge_smts_into): Remove.
5388         (find_what_p_points_to): Do not bother to compute the
5389         points-to set for pt_anything pointers.
5390         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
5391         for pt_anything pointers is ok.
5392
5393 2008-06-06  Jan Hubicka  <jh@suse.cz>
5394
5395         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
5396
5397 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5398
5399         * cgraph.c: Fix typos in comments.
5400         (cgraph_availability_names): Fix string typo.
5401         * fold-const.c: Fix typos in comments.
5402         (fold_binary): Fix typo in warning.
5403         * genautomata.c: Fix typos in comments.
5404         (check_presence_pattern_sets): Fix typo in local variable.
5405         (output_description): Fix typo in output.
5406         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
5407         * hwint.h: Likewise.
5408         * matrix-reorg.c (check_allocation_function): Likewise.
5409         * omega.c (smooth_weird_equations): Likewise.
5410         * auto-inc-dec.c: Fix typos in comments.
5411         * bb-reorder.c: Likewise.
5412         * builtins.c: Likewise.
5413         * c-common.c: Likewise.
5414         * c-cppbuiltin.c: Likewise.
5415         * c-parser.c: Likewise.
5416         * c-pretty-print.c: Likewise.
5417         * cfgcleanup.c: Likewise.
5418         * cfgexpand.c: Likewise.
5419         * cfghooks.c: Likewise.
5420         * cfglayout.c: Likewise.
5421         * cfgloopmanip.c: Likewise.
5422         * cgraphunit.c: Likewise.
5423         * coverage.c: Likewise.
5424         * dbxout.c: Likewise.
5425         * df-byte-scan.c: Likewise.
5426         * df-core.c: Likewise.
5427         * df-problems.c: Likewise.
5428         * df-scan.c: Likewise.
5429         * dfp.c: Likewise.
5430         * dominance.c: Likewise.
5431         * domwalk.c: Likewise.
5432         * dse.c: Likewise.
5433         * dwarf2out.c: Likewise.
5434         * emit-rtl.c: Likewise.
5435         * et-forest.c: Likewise.
5436         * function.c: Likewise.
5437         * function.h: Likewise.
5438         * gcc.c: Likewise.
5439         * gcov-io.c: Likewise.
5440         * gcov.c: Likewise.
5441         * gcse.c: Likewise.
5442         * genattrtab.c: Likewise.
5443         * ggc-page.c: Likewise.
5444         * gimplify.c: Likewise.
5445         * gthr-lynx.h: Likewise.
5446         * haifa-sched.c: Likewise.
5447         * ipa-cp.c: Likewise.
5448         * ipa-inline.c: Likewise.
5449         * ipa-prop.h: Likewise.
5450         * ipa-pure-const.c: Likewise.
5451         * ipa-struct-reorg.c: Likewise.
5452         * ipa-struct-reorg.h: Likewise.
5453         * ipa-type-escape.c: Likewise.
5454         * ipa.c: Likewise.
5455         * loop-doloop.c: Likewise.
5456         * mips-tfile.c: Likewise.
5457         * mkmap-flat.awk: Likewise.
5458         * mkmap-symver.awk: Likewise.
5459         * modulo-sched.c: Likewise.
5460         * omp-low.c: Likewise.
5461         * optabs.c: Likewise.
5462         * optabs.h: Likewise.
5463         * opts.c: Likewise.
5464         * passes.c: Likewise.
5465         * postreload-gcse.c: Likewise.
5466         * postreload.c: Likewise.
5467         * predict.c: Likewise.
5468         * pretty-print.h: Likewise.
5469         * profile.c: Likewise.
5470         * protoize.c: Likewise.
5471         * ra-conflict.c: Likewise.
5472         * real.c: Likewise.
5473         * recog.c: Likewise.
5474         * regclass.c: Likewise.
5475         * regs.h: Likewise.
5476         * reload.c: Likewise.
5477         * rtl-error.c: Likewise.
5478         * rtlanal.c: Likewise.
5479         * scan.h: Likewise.
5480         * sched-rgn.c: Likewise.
5481         * see.c: Likewise.
5482         * stmt.c: Likewise.
5483         * target.h: Likewise.
5484         * tree-dfa.c: Likewise.
5485         * tree-eh.c: Likewise.
5486         * tree-flow-inline.h: Likewise.
5487         * tree-inline.c: Likewise.
5488         * tree-into-ssa.c: Likewise.
5489         * tree-loop-distribution.c: Likewise.
5490         * tree-nested.c: Likewise.
5491         * tree-parloops.c: Likewise.
5492         * tree-pass.h: Likewise.
5493         * tree-pretty-print.c: Likewise.
5494         * tree-profile.c: Likewise.
5495         * tree-scalar-evolution.c: Likewise.
5496         * tree-sra.c: Likewise.
5497         * tree-ssa-alias-warnings.c: Likewise.
5498         * tree-ssa-ccp.c: Likewise.
5499         * tree-ssa-coalesce.c: Likewise.
5500         * tree-ssa-dom.c: Likewise.
5501         * tree-ssa-dse.c: Likewise.
5502         * tree-ssa-forwprop.c: Likewise.
5503         * tree-ssa-live.c: Likewise.
5504         * tree-ssa-live.h: Likewise.
5505         * tree-ssa-loop-im.c: Likewise.
5506         * tree-ssa-loop-ivopts.c: Likewise.
5507         * tree-ssa-loop-niter.c: Likewise.
5508         * tree-ssa-loop-prefetch.c: Likewise.
5509         * tree-ssa-phiopt.c: Likewise.
5510         * tree-ssa-phiprop.c: Likewise.
5511         * tree-ssa-sccvn.c: Likewise.
5512         * tree-ssa-ter.c: Likewise.
5513         * tree-ssa-threadupdate.c: Likewise.
5514         * tree-ssa.c: Likewise.
5515         * tree-vect-analyze.c: Likewise.
5516         * tree-vect-transform.c: Likewise.
5517         * tree-vectorizer.c: Likewise.
5518         * tree-vn.c: Likewise.
5519         * tree-vrp.c: Likewise.
5520         * tree.c: Likewise.
5521         * tree.def: Likewise.
5522         * tree.h: Likewise.
5523         * unwind-dw2-fde.c: Likewise.
5524         * unwind.inc: Likewise.
5525         * value-prof.c: Likewise.
5526         * vmsdbgout.c: Likewise.
5527
5528 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
5529
5530         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
5531         always place FP constants in the TOC for TARGET_POWERPC64.
5532         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
5533
5534 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
5535
5536         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
5537         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
5538         enable for TARGET_E500_DOUBLE.
5539         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
5540         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
5541         floating-point modes like integer modes for E500 double.
5542         (rs6000_legitimate_offset_address_p): Likewise.
5543         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
5544         addressing for DDmode for E500 double.
5545         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
5546         modes as using 64-bits of registers for E500 double.
5547         (spe_build_register_parallel): Do not handle DDmode or TDmode.
5548         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
5549         specially for E500 double.
5550         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
5551         TDmode for E500 double.
5552         (rs6000_gimplify_va_arg): Only handle SDmode in registers
5553         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
5554         (rs6000_split_multireg_move): Do not handle TDmode specially for
5555         E500 double.
5556         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
5557         using 64-bit registers for E500 double.
5558         (emit_frame_save): Do not handle DDmode specially for E500 double.
5559         (gen_frame_mem_offset): Likewise.
5560         (rs6000_function_value): Do not call spe_build_register_parallel
5561         for DDmode or TDmode.
5562         (rs6000_libcall_value): Likewise.
5563         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
5564         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
5565         for E500 double.
5566
5567 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5568
5569         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
5570         in comments.
5571
5572 2008-06-04  Junjie Gu <jgu@tensilica.com>
5573
5574         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
5575         comparison for frame pointers.
5576
5577 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5578
5579         PR target/27386
5580         * config/avr/avr.h (PUSH_ROUNDING): Remove.
5581
5582 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5583
5584         PR target/30243
5585         * builtins.c (expand_builtin_signbit): Don't take lowpart when
5586         register is already smaller or equal to required mode.
5587
5588 2008-06-04  Xinliang David Li  <davidxl@google.com>
5589
5590         * tree-call-cdce.c: New file.
5591         (cond_dead_built_in_calls): New static variable.
5592         (input_domain): New struct.
5593         (check_pow): New function.
5594         (check_builtin_call): Ditto.
5595         (check_target_format): Ditto.
5596         (is_call_dce_candidate): Ditto.
5597         (gen_one_condition): Ditto.
5598         (gen_conditions_for_domain): Ditto.
5599         (get_domain): Ditto.
5600         (gen_conditions_for_pow_cst_base): Ditto.
5601         (gen_conditions_for_pow_int_base): Ditto.
5602         (gen_conditions_for_pow): Ditto.
5603         (get_no_error_domain): Ditto.
5604         (gen_shrink_wrap_conditions): Ditto.
5605         (shrink_wrap_one_built_in_call): Ditto.
5606         (shink_wrap_conditional_dead_built_in_calls): Ditto.
5607         (tree_call_cdce): Ditto.
5608         (gate_call_cdce): Ditto.
5609         (pass_call_cdce): New gimple pass.
5610         * passes.c: (init_optimization_passes): New pass.
5611         * tree-pass.h: New pass declaration.
5612         * opts.c (decode_options): New flag setting.
5613         * common.opt: Add -ftree-builtin-call-dce flag.
5614         * Makefile.in: Add new source file.
5615         * tempvar.def: New tv_id.
5616         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
5617
5618 2008-06-04  Richard Guenther  <rguenther@suse.de>
5619
5620         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
5621         (is_call_clobbered): Always check var_ann->call_clobbered.
5622         (mark_call_clobbered): Always set var_ann->call_clobbered.
5623         (clear_call_clobbered): Always clear var_ann->call_clobbered.
5624         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
5625         (reset_alias_info): Clear call clobbering info on MTAGs and
5626         globals as well.
5627         (set_pt_anything): Set pt_global_mem.
5628         (create_tag_raw): Adjust comment.
5629         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
5630
5631 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
5632             Maxim Kuvyrkov  <maxim@codesourcery.com>
5633
5634         * config/m68k/m68k.opt (mxgot): New option.
5635         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
5636         (m68k_output_addr_const_extra): New.
5637         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
5638         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
5639         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
5640         * doc/invoke.texi (M680x0 Options): Document -mxgot.
5641
5642 2008-06-04  Richard Guenther  <rguenther@suse.de>
5643
5644         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
5645         negative or non-representable offsets.
5646
5647 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5648
5649         * config/i386/i386.c (ix86_gen_leave): New.
5650         (ix86_gen_pop1): Likewise.
5651         (ix86_gen_add3): Likewise.
5652         (ix86_gen_sub3): Likewise.
5653         (ix86_gen_sub3_carry): Likewise.
5654         (ix86_gen_one_cmpl2): Likewise.
5655         (ix86_gen_monitor): Likewise.
5656         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
5657         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
5658         ix86_gen_one_cmpl2 and ix86_gen_monitor.
5659         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
5660         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
5661         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
5662         (ix86_expand_epilogue): Updated.
5663         (print_operand): Handle integer register operand for 'z'.
5664         (ix86_expand_strlensi_unroll_1): Likewise.
5665         (ix86_expand_strlen): Likewise.
5666         (ix86_expand_builtin): Likewise.
5667         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
5668         mov{q}/mov{l} and add{q}/add{l}.
5669
5670 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5671
5672         * config/i386/i386.md (P): New mode iterator.
5673         (SFmode push_operand splitter): Macroize DImode and SImode pushes
5674         using P mode iterator.
5675         (DFmode push_operand splitter): Ditto.
5676         (XFmode push_operand splitter): Ditto.
5677         (DFmode float_extend SFmode push_operand splitter): Ditto.
5678         (XFmode float_extend SFmode push_operand splitter): Do not generate
5679         SImode pushes for 64bit target.  Macroize Dimode and SImode
5680         pushes using P mode iterator.
5681         (XFmode float_extend DFmode push_operand splitter): Ditto.
5682
5683 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5684
5685         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
5686         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
5687         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
5688         return type to int.
5689         (ix86_call_abi_override): Remove check for call_used_regs.
5690
5691 2008-06-03  Richard Guenther  <rguenther@suse.de>
5692
5693         * tree-ssa-structalias.c (find_func_aliases): Add constraints
5694         for the lhs of calls if the return type contains pointers.
5695
5696 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5697
5698         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
5699         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
5700         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
5701         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
5702         of cfun and DEFAULT_ABI to deceide abi mode.
5703         (DEFAULT_ABI): New.
5704         (REG_PARM_STACK_SPACE): Removed.
5705         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
5706         (STACK_BOUNDARY): Use default target to deceide stack boundary.
5707         * config/i386/i386-protos.h (ix86_cfun_abi): New.
5708         (ix86_function_abi): Likewise.
5709         (ix86_function_type_abi): Likewise.
5710         (ix86_call_abi_override): Likewise.
5711         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
5712         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
5713         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
5714         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
5715         specific defines.
5716         (X86_64_REGPARM_MAX): New.
5717         (X86_64_SSE_REGPARM_MAX): New.
5718         (X64_REGPARM_MAX): New.
5719         (X64_SSE_REGPARM_MAX): New.
5720         (X86_32_REGPARM_MAX): New.
5721         (X86_32_SSE_REGPARM_MAX): New.
5722         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
5723         (ix86_function_regparm): Handle user calling abi.
5724         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
5725         by DEFAULT_ABI versus SYSV_ABI check.
5726         (ix86_reg_parm_stack_space): New.
5727         (ix86_function_type_abi): New.
5728         (ix86_call_abi_override): New.
5729         (ix86_function_abi): New.
5730         (ix86_cfun_abi): New.
5731         (init_cumulative_args): Call abi specific initialization.
5732         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
5733         (function_arg_64): Extend SSE_REGPARM_MAX check.
5734         (function_arg (): Remove TARGET_64BIT_MS_ABI.
5735         (ix86_pass_by_reference): Likewise.
5736         (ix86_function_value_regno_p): Likewise.
5737         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
5738         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
5739         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
5740         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
5741         (setup_incoming_varargs_64): Adjust regparm for call abi.
5742         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
5743         (ix86_va_start): Likewise.
5744         (ix86_gimplify_va_arg): Likewise.
5745         (ix86_expand_prologue): Likewise.
5746         (output_pic_addr_const): Likewise.
5747         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
5748         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
5749         (x86_output_mi_thunk): Likewise.
5750         (x86_function_profiler): Likewise.
5751         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
5752         (SYSV_ABI, MS_ABI): New constants.
5753         (DEFAULT_ABI): New.
5754         (init_regs): Add prototype of function in regclass.c file.
5755         (OVERRIDE_ABI_FORMAT): New.
5756         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
5757         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
5758         (OUTGOING_REG_PARM_STACK_SPACE): New.
5759         (ix86_reg_parm_stack_space): New prototype.
5760         (CUMULATIVE_ARGS): Add call_abi member.
5761         (machine_function): Add call_abi member.
5762         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
5763         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
5764
5765 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
5766
5767         PR target/34879
5768         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
5769         (avr_builtin_setjmp_frame_value): New function.
5770         * config/avr/avr.md (nonlocal_goto_receiver): Define.
5771         (nonlocal_goto): Define.
5772
5773 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
5774
5775         * config/mips/mips.c (mips_emit_loadgp): Return early if
5776         there is nothing do to, otherwise emit a blockage if
5777         !TARGET_EXPLICIT_RELOCS || crtl->profile.
5778         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
5779
5780 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5781
5782         * configure.ac: Drop unneeded backslash ending up in config.in.
5783         * acinclude.m4: Likewise.
5784         * config.in: Regenerate.
5785
5786 2008-05-26  Jan Hubicka  <jh@suse.cz>
5787
5788         * predict.c (maybe_hot_frequency_p): Break out of...
5789         (maybe_hot_bb_p): ... here.
5790         (maybe_hot_edge_p): New.
5791         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
5792         * basic-block.h (maybe_hot_edge_p): Declare.
5793
5794 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
5795
5796         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
5797         (*cmpfp_<mode>_cc): Ditto.
5798         (*fp_jcc_8<mode>_387): Ditto.
5799         (*fop_<MODEF:mode>_2_i387): Ditto.
5800         (*fop_<MODEF:mode>_3_i387): Ditto.
5801         (*fop_xf_2_i387): Ditto.
5802         (*fop_xf_3_i387): Ditto.
5803
5804 2008-06-02  Tomas Bily  <tbily@suse.cz>
5805
5806         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
5807
5808 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5809
5810         * config/mips/mips.c (mips_valid_offset_p): New function.
5811         (mips_valid_lo_sum_p): Likewise.
5812         (mips_classify_address): Use them.
5813         (mips_force_address): New function.
5814         (mips_legitimize_address): Use it.
5815         * config/mips/mips.md (MOVE128): New mode iterator.
5816         (movtf): Require TARGET_64BIT.  Remove empty strings.
5817         (*movtf_internal): Rename to...
5818         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
5819         of "R" and use {,fp}{load,store} attributes instead of "multi".
5820         Use a separate define_split.
5821         (*movtf_mips16): New pattern.
5822
5823 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5824
5825         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
5826         * config/mips/mips.c (mips_expand_before_return): New function.
5827         (mips_expand_epilogue): Call it.
5828         * config/mips/mips.md (return): Turn into a define_expand.
5829         (*return): New insn.
5830
5831 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5832
5833         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
5834         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
5835         functions.  Do not emit uses and clobbers of CONCATs; individually
5836         use and clobber their operands.
5837         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
5838         gen_clobber, emit_use and gen_use.
5839         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5840         (expand_builtin_return): Likewise.
5841         * cfgbuild.c (count_basic_blocks): Likewise.
5842         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5843         * explow.c (emit_stack_restore): Likewise.
5844         * expmed.c (extract_bit_field_1): Likewise.
5845         * expr.c (convert_move, emit_move_complex_parts): Likewise.
5846         (emit_move_multi_word, store_constructor): Likewise.
5847         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
5848         (thread_prologue_and_epilogue_insns): Likewise.
5849         * lower-subreg.c (resolve_simple_move): Likewise.
5850         * optabs.c (widen_operand, expand_binop): Likewise.
5851         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
5852         * reload.c (find_reloads): Likewise.
5853         * reload1.c (eliminate_regs_in_insn): Likewise.
5854         * stmt.c (expand_nl_goto_receiver): Likewise.
5855         * config/alpha/alpha.md (builtin_longjmp): Likewise.
5856         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
5857         * config/arm/arm.c (arm_load_pic_register): Likewise.
5858         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
5859         * config/arm/arm.md (untyped_return): Likewise.
5860         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
5861         * config/avr/avr.c (expand_prologue): Likewise.
5862         * config/bfin/bfin.c (do_unlink): Likewise.
5863         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
5864         * config/cris/cris.c (cris_expand_prologue): Likewise.
5865         * config/darwin.c (machopic_indirect_data_reference): Likewise.
5866         (machopic_legitimize_pic_address): Likewise.
5867         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
5868         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
5869         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
5870         (ix86_expand_convert_uns_didf_sse): Likewise.
5871         (ix86_expand_vector_init_general): Likewise.
5872         * config/ia64/ia64.md (eh_epilogue): Likewise.
5873         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
5874         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
5875         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
5876         (config/iq2000/iq2000.c): Likewise.
5877         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
5878         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5879         (builtin_longjmp): Likewise.
5880         * config/mn10300/mn10300.md (call, call_value): Likewise.
5881         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
5882         * config/pdp11/pdp11.md (abshi2): Likewise.
5883         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5884         * config/s390/s390.c (s390_emit_prologue): Likewise.
5885         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
5886         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
5887         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
5888         * config/sh/sh.c (prepare_move_operands): Likewise.
5889         (output_stack_adjust, sh_expand_epilogue): Likewise.
5890         (sh_set_return_address, sh_expand_t_scc): Likewise.
5891         * config/sparc/sparc.c (load_pic_register): Likewise.
5892         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
5893         * config/spu/spu.c (spu_expand_epilogue): Likewise.
5894         * config/v850/v850.c (expand_epilogue): Likewise.
5895
5896 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
5897
5898         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
5899         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
5900         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
5901         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
5902         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
5903         stack pointer register.
5904         (output_movhi): Remove code for interrupt specific writing to the
5905         stack pointer register.
5906
5907 2008-05-31  Richard Guenther  <rguenther@suse.de>
5908
5909         PR tree-optimization/34244
5910         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
5911         (tree_expr_nonzero_warnv_p): Likewise.
5912         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
5913         ssa_name_nonnegative_p.
5914         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
5915         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
5916         not tree_expr_nonzero_warnv_p.
5917
5918         PR tree-optimization/36262
5919         Revert
5920         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
5921
5922         PR tree-optimization/34244
5923         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
5924         (record_numbers_of_iterations): New function.
5925         (execute_vrp): Cache the numbers of iterations of loops.
5926         * tree-scalar-evolution.c (scev_reset_except_niters):
5927         New function.
5928         (scev_reset): Use scev_reset_except_niters.
5929         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
5930
5931 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
5932
5933         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5934         __WORKAROUND_RETS when appropriate.
5935
5936 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
5937
5938         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
5939         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
5940         mode iterator.
5941         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
5942         *fop_df_comm_sse insn patterns using MODEF mode iterator.
5943         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
5944         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
5945         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
5946         *fop_df_1_mixed insn patterns using MODEF mode iterator.
5947         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
5948         *fop_df_1_sse insn patterns using MODEF mode iterator.
5949         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
5950         *fop_df_1_i387 insn patterns using MODEF mode iterator.
5951         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
5952         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
5953         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
5954         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
5955         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
5956         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
5957         (*fop_xf_4_i387): Use <MODE> for mode attribute.
5958         (*fop_xf_5_i387): Ditto.
5959         (*fop_xf_6_i387): Ditto.
5960
5961 2008-05-30  Richard Guenther  <rguenther@suse.de>
5962
5963         * builtins.c (build_string_literal): Avoid generating
5964         a non-gimple_val result.
5965
5966 2008-05-30  DJ Delorie  <dj@redhat.com>
5967
5968         * exec-tool.in: Use an environment variable (private) instead of a
5969         file (shared) as a semaphore, so as to not break parallel builds.
5970
5971 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
5972
5973         * optabs.c (maybe_encapsulate_block): Remove.
5974         (emit_libcall_block): Adjust accordingly.
5975         * optabs.h (maybe_encapsulate_block): Remove prototype.
5976
5977         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
5978         Don't use maybe_encapsulate_block.
5979
5980 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
5981
5982         * config/rs6000/rs6000.c (rs6000_legitimize_address,
5983         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
5984         rtx is a SYMBOL_REF before calling get_pool_constant.
5985
5986 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
5987
5988         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
5989
5990 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
5991
5992         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
5993         rather than OS names to choose INO_T_EQ definition.
5994         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
5995         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
5996
5997 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
5998
5999         PR target/36348
6000         * config/darwin-f.c: New.
6001         * config/t-darwin: Added rule to build darwin-f.o.
6002         * config.gcc: Defined new variable, fortran_target_objs.
6003         (*-*-darwin*): Set fortran_target_objs.
6004         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
6005         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
6006         * configure: Regenerated.
6007
6008 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6009
6010         PR target/35771
6011         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
6012         canonical type if needed.
6013
6014 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
6015
6016         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
6017
6018 2008-05-29  Richard Guenther  <rguenther@suse.de>
6019
6020         PR tree-optimization/36343
6021         PR tree-optimization/36346
6022         PR tree-optimization/36347
6023         * tree-flow.h (clobber_what_p_points_to): Declare.
6024         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
6025         pointed-to variable is dereferenced is irrelevant to whether
6026         the pointer can access the pointed-to variable.
6027         (clobber_what_p_points_to): New function.
6028         * tree-ssa-alias.c (set_initial_properties): Use it.
6029         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
6030         call clobber check for NMTs.
6031
6032 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
6033
6034         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
6035         for printing gcov_type.
6036
6037 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
6038
6039         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
6040         and the eh region information.
6041         * value-prof.c (gimple_move_stmt_histograms): New function.
6042         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
6043
6044 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
6045
6046         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
6047
6048 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
6049
6050         * value-prof.c (tree_ic_transform): Print counts.
6051         * tree-profile.c (tree_gen_ic_func_profiler):
6052         Clear __gcov_indreict_call_callee variable to avoid misattribution
6053         of the profile.
6054
6055 2008-05-28  Rafael Espindola  <espindola@google.com>
6056
6057         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
6058         invalid sharing.
6059
6060 2008-05-28  Richard Guenther  <rguenther@suse.de>
6061
6062         PR tree-optimization/36339
6063         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
6064         and clobbering code out of the loop.
6065
6066 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
6067
6068         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
6069         letters defined.
6070
6071         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
6072         s390_contiguous_bitmask_p, s390_symref_operand_p,
6073         s390_check_symref_alignment, s390_reload_larl_operand,
6074         s390_reload_symref_address): New functions.
6075         (s390_branch_condition_mnemonic): Support compare and branch
6076         instructions.
6077         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
6078         and 'W' constraints.
6079         (s390_secondary_reload): Add secondary reloads for unaligned
6080         symbol refs or symbol refs to floating point or QI/TI mode
6081         integer values.
6082         (legitimate_address_p): Accept symbol references as addresses.
6083         (s390_expand_insv): Use rotate and insert selected bits
6084         instruction for insv when building for z10.
6085         (print_operand_address): Handle symbol ref addresses.
6086         (print_operand): Output modifier 'c' added for signed byte values.
6087         (s390_encode_section_info): Mark symbol refs with
6088         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
6089
6090         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
6091         (length attribute): RRF, RRR have 4 byte length.
6092         (FPALL, INTALL): New mode iterators added.
6093         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
6094         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
6095         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
6096         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
6097         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
6098         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
6099         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
6100         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
6101         instructions.
6102         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
6103         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
6104         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
6105         reload<INTALL:mode><P:mode>_toreg_z10,
6106         reload<FPALL:mode><P:mode>_tomem_z10,
6107         reload<FPALL:mode><P:mode>_toreg_z10,
6108         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
6109         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
6110         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
6111         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
6112         definition.
6113         (movmem, clrmem, cmpmem): New splitters added.
6114
6115         * config/s390/predicates.md (larl_operand): Use
6116         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
6117         SYMBOL_REF_ALIGN1_P.
6118         (s390_signed_integer_comparison,
6119         s390_unsigned_integer_comparison): New predicates.
6120
6121         * config/s390/s390-protos.h (s390_check_symref_alignment,
6122         s390_contiguous_bitmask_p, s390_reload_larl_operand,
6123         s390_reload_symref_address,
6124         s390_compare_and_branch_condition_mask): Prototypes added.
6125
6126         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
6127         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
6128         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
6129
6130 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
6131
6132         * config/s390/s390.c (z10_cost): New cost function for z10.
6133         (s390_handle_arch_option, override_options): Support -march=z10 switch.
6134         (s390_issue_rate): Adjust issue rate for z10.
6135         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
6136         (processor_flags): Add PF_Z10.
6137         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
6138         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
6139         * gcc/config.gcc: Add z10.
6140
6141 2008-05-28  Richard Guenther  <rguenther@suse.de>
6142
6143         PR tree-optimization/36291
6144         * tree-flow. h (struct gimple_df): Remove var_anns member.
6145         * tree-flow-inline.h (gimple_var_anns): Remove.
6146         (var_ann): Simplify.
6147         * tree-dfa.c (create_var_ann): Simplify.
6148         (remove_referenced_var): Clear alias info from var_anns of globals.
6149         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
6150         (delete_tree_ssa): Clear alias info from var_anns of globals.
6151         Do not free var_anns.
6152         (var_ann_eq): Remove.
6153         (var_ann_hash): Likewise.
6154
6155 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
6156
6157         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
6158         and loongson2f entries.
6159         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
6160         * config/mips/mips.h (processor_type): Add Loongson-2E
6161         and Loongson-2F entries.
6162         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
6163         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
6164         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
6165         * doc/invoke.texi (MIPS Options): Document loongson2e
6166         and loongson2f processor names.
6167
6168 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
6169
6170         PR target/35767
6171         PR target/35771
6172         * config/i386/i386.c (ix86_function_arg_boundary): Use
6173         alignment of canonical type.
6174         (ix86_expand_vector_move): Check unaligned memory access for
6175         all SSE modes.
6176
6177 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
6178
6179         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
6180         Moved to the front of file.
6181
6182 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
6183             H.J. Lu  <hongjiu.lu@intel.com>
6184
6185         * dwarf2out.c (current_fde): New.
6186         (add_cfi): Use it.
6187         (lookup_cfa:): Likewise.
6188         (dwarf2out_end_epilogue): Likewise.
6189         (dwarf2out_note_section_used): Likewise.
6190
6191 2008-05-27  Michael Matz  <matz@suse.de>
6192
6193         PR c++/27975
6194         * c.opt (Wenum-compare): New warning option.
6195         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
6196
6197 2008-05-27  Michael Matz  <matz@suse.de>
6198
6199         PR middle-end/36326
6200         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
6201         non-BLKmode types.
6202         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
6203         into memory as tail calls.
6204
6205 2008-05-27  Richard Guenther  <rguenther@suse.de>
6206
6207         PR tree-optimization/36339
6208         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
6209         pointers cause all addressable variables to be call clobbered.
6210
6211 2008-05-27  Richard Guenther  <rguenther@suse.de>
6212
6213         PR tree-optimization/36245
6214         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
6215
6216 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6217
6218         * config/s390/s390.md: Replace all occurences of the 'm'
6219         constraint with 'RT'.
6220
6221 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6222
6223         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
6224         definitions added.
6225         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
6226         "*movdi_64".
6227         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
6228         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
6229         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
6230
6231 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6232
6233         * reload.c: (find_reloads): Skip alternatives according to the
6234         "enabled" attribute. Constify the constraint variable.
6235         * recog.c (get_attr_enabled): Add default implementation.
6236         (extract_insn): Set the alternative_enabled_p array
6237         in the recog_data struct.
6238         (preprocess_constraints, constrain_operands): Skip
6239         alternatives according to the "enabled" attribute
6240         * recog.h (struct recog_data): New field alternative_enabled_p.
6241         (skip_alternative): New inline function.
6242         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
6243         (record_reg_classes): Skip alternative according to the
6244         "enabled" attribute.
6245
6246         * doc/md.texi: Add documention for the "enabled" attribute.
6247
6248 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6249
6250         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
6251         * postreload.c (reload_cse_simplify_operands): Replace 'm'
6252         constraint with TARGET_MEM_CONSTRAINT.
6253         * recog.c (asm_operand_ok, preprocess_constraints,
6254         constrain_operands): Likewise.
6255         * regclass.c (record_reg_classes): Likewise.
6256         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
6257         * reload1.c (maybe_fix_stack_asms): Likewise.
6258         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
6259         * recog.h: Adjust comment.
6260         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
6261         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
6262         * doc/md.texi: Add a note to description of 'm' constraint.
6263         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
6264
6265 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6266
6267         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
6268         that the bitfield is of integral type before testing its precision.
6269
6270 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
6271             Sa Liu  <saliu@de.ibm.com>
6272
6273         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
6274         __modti3, __udivti3, __umodti3 and __udivmodti4.
6275         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
6276         that implement TImode mul and div functions.
6277         * config/spu/multi3.c: New. Implement __multi3.
6278         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
6279         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
6280         functions on SPU.
6281
6282 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
6283
6284         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
6285         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
6286         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
6287         tls_sysv_suffix): New mode and mode attribute iterators.
6288         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
6289         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
6290         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
6291         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
6292         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
6293         iterators.
6294
6295 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6296
6297         PR tree-optimization/36329
6298         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
6299         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
6300         * cgraphbuild.c (initialize_inline_failed): Use the latter
6301         macro in lieu of the former.
6302         * ipa-inline.c (cgraph_mark_inline): Likewise.
6303         (cgraph_decide_inlining_of_small_function): Likewise.
6304         (cgraph_decide_inlining): Likewise.
6305         (cgraph_decide_inlining_incrementally): Likewise.
6306
6307 2008-05-26  Tristan Gingold  <gingold@adacore.com>
6308             Anatoly Sokolov  <aesok@post.ru>
6309
6310         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
6311         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
6312         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
6313         optimization for 'avr6' architecture.
6314
6315 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
6316
6317         PR target/34932
6318         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
6319
6320 2008-05-26  Richard Guenther  <rguenther@suse.de>
6321
6322         * tree-ssa-sccvn.c (expr_has_constants): Declare.
6323         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
6324
6325 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
6326
6327         PR middle-end/36253
6328         * caller-save.c (insert_restore): Verify alignment of spill space.
6329         (insert_save): Likewise.
6330         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
6331         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
6332         (STACK_SLOT_ALIGNMENT): Likewise.
6333         * function.c (LOCAL_ALIGNMENT): Removed.
6334         (get_stack_local_alignment): New.
6335         (assign_stack_local): Use it.  Set alignment on stack slot.
6336         (assign_stack_temp_for_type): Use get_stack_local_alignment.
6337         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
6338         (STACK_SLOT_ALIGNMENT): New.
6339         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
6340         stack slot in XFmode.
6341
6342         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
6343
6344 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
6345
6346         PR/36321
6347         * config/i386/i386.md (allocate_stack_worker_64): Make sure
6348         argument operand in rax isn't removed.
6349
6350 2008-05-26  Richard Guenther  <rguenther@suse.de>
6351
6352         PR middle-end/36300
6353         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
6354         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
6355
6356 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6357
6358         PR bootstrap/36331
6359         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
6360
6361 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
6362
6363         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
6364         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
6365
6366 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6367
6368         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
6369         build a trampoline if we don't want one.
6370         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
6371         return zero for nested functions if we don't want a trampoline.
6372
6373 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6374
6375         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
6376
6377 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6378
6379         PR fortran/18428
6380         * c.opt: Removed undocumented option '-lang-fortran'.
6381         * c-common.h: Removed global variable 'lang_fortran'.
6382         * c-opts.c (c_common_handle_option): Removed code to handle
6383         option '-lang-fortran'. Updated includes.
6384         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
6385         definition of '__GFORTRAN__'.
6386         (define__GNUC__): Reimplemented to use BASEVER and
6387         cpp_define_formatted.
6388         (builtin_define_with_value_n): Removed.
6389         * c-incpath.h: Renamed to ...
6390         * incpath.h: ... this.
6391         * c-incpath.c: Renamed to ...
6392         * incpath.c: ... this. Updated includes.
6393         * fix-header.c: Updated includes.
6394         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
6395         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
6396         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
6397
6398 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6399
6400         * tree.h: Update the table of flags used on tree nodes.
6401         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
6402         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
6403         (FORCED_LABEL): Add access check.
6404         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
6405         (ASM_INPUT_P): Likewise.
6406         (ASM_VOLATILE_P): Likewise.
6407         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
6408         (OMP_SECTION_LAST): Access private_flag directly.
6409         (OMP_RETURN_NOWAIT): Likewise.
6410         (OMP_PARALLEL_COMBINED): Likewise.
6411         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
6412         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
6413         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
6414         deprecated_flag directly.
6415
6416 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6417
6418         * final.c (frame_pointer_needed): Removed.
6419         * flags.h (frame_pointer_needed): Likewise.
6420
6421         * function.h (rtl_data): Add frame_pointer_needed.
6422         (frame_pointer_needed): New.
6423
6424 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
6425
6426         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
6427
6428 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
6429
6430         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
6431         SRC is a REG.
6432
6433 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
6434
6435         * c-common.c (strip_array_types): Move function to..
6436         * tree.c: ..here.
6437         (get_inner_array_type): Delete.
6438         * c-common.h (strip_array_types): Move declaration to..
6439         * tree.h: ..here.
6440         (get_inner_array_type): Delete.
6441         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
6442         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6443         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6444         * config/pa/pa.c (emit_move_sequence): Likewise.
6445
6446 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6447
6448         * config/i386/i386.md (*sse_prologue_save_insn): Set length
6449         attribute to 34.
6450
6451 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
6452
6453         * function.c: Include target hook for nonlocal_goto frame value.
6454
6455 2008-05-24  Richard Guenther  <rguenther@suse.de>
6456
6457         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
6458         variable can be only accessed through a pointer or a union.
6459
6460 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6461
6462         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
6463         * doc/extend.texi: Likewise.
6464
6465 2008-05-23  DJ Delorie  <dj@redhat.com>
6466
6467         * config/m32c/jump.md (untyped_call): Add.
6468
6469         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
6470         for A24 to PSImode.
6471         (m32c_address_cost): Detail costs for indirect offsets.
6472
6473 2008-05-23  Rafael Espindola  <espindola@google.com>
6474
6475         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
6476         if a node is a SUBREG.
6477         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
6478         is a SUBREG.
6479
6480 2008-05-23  Paul Brook  <paul@codesourcery.com>
6481             Carlos O'Donell  <carlos@codesourcery.com>
6482
6483         * doc/extend.texi: Clarify use of __attribute__((naked)).
6484         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6485         * target.h (gcc_target): Add allocate_stack_slots_for_args.
6486         * function.c (use_register_for_decl): Use
6487         targetm.calls.allocate_stack_slots_for_args.
6488         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6489         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
6490         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
6491
6492 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
6493
6494         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
6495
6496 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
6497
6498         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
6499         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
6500         is only rounded once.
6501
6502 2008-05-23  Richard Guenther  <rguenther@suse.de>
6503
6504         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
6505
6506 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
6507             Jakub Jelinek  <jakub@redhat.com>
6508
6509         PR target/36079
6510         * configure.ac: Handle --enable-cld.
6511         * configure: Regenerated.
6512         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
6513         * config/i386/i386.h (struct machine_function): Add needs_cld field.
6514         (ix86_current_function_needs_cld): New define.
6515         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
6516         (cld): New isns pattern.
6517         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
6518         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
6519         * config/i386/i386.opt (mcld): New option.
6520         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
6521         TARGET_CLD and ix86_current_function_needs_cld.
6522         (override_options): Use -mcld by default for 32-bit code if
6523         USE_IX86_CLD.
6524
6525         * doc/install.texi (Options specification): Document --enable-cld.
6526         * doc/invoke.texi (Machine Dependent Options)
6527         [i386 and x86-64 Options]: Add -mcld option.
6528         (Intel 386 and AMD x86-64 Options): Document -mcld option.
6529
6530 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
6531         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
6532         (return_in_memory_64): Likewise.
6533         (return_in_memory_ms_64): Likewise.
6534
6535 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6536
6537         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
6538         * builtins.c (fold_builtin_fpclassify): New.
6539         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
6540         * builtins.def (BUILT_IN_FPCLASSIFY): New.
6541         * c-common.c (handle_type_generic_attribute): Adjust to accept
6542         fixed arguments before an elipsis.
6543         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
6544         * doc/extend.texi: Document __builtin_fpclassify.
6545
6546 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
6547
6548         * omp-low.c (gate_expand_omp_ssa): Remove.
6549         (pass_expand_omp_ssa): Remove.
6550         (gate_expand_omp): Do not check for flag_openmp_ssa.
6551         * common.opt (-fopenmp-ssa): Remove.
6552         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
6553
6554 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
6555
6556         * config/sh/sh.opt (mfixed-range): New option.
6557         * config/sh/sh-protos.h (sh_fix_range): Declare.
6558         * config/sh/sh.c (sh_fix_range): New function.
6559         * config/sh/sh.h (sh_fixed_range_str): Declare.
6560         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
6561         is not empty.
6562         * doc/invoke.texi (SH Options): Document -mfixed-range.
6563
6564 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
6565
6566         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
6567         it before the redeclaration.
6568
6569 2008-05-22  Anatoly Sokolov <aesok@post.ru>
6570
6571         * config/avr/avr.c (get_sequence_length): Add new function.
6572         (expand_prologue, expand_epilogue): Remove duplicate code.
6573
6574 2008-05-22  Rafael Espindola  <espindola@google.com>
6575
6576         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
6577         sharing.
6578
6579 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6580
6581         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
6582         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
6583
6584         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
6585         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
6586         (vect_update_misalignment_for_peel): Likewise.
6587         (vector_alignment_reachable_p): Likewise.
6588         * tree-vect-transform.c (vectorizable_load): Likewise.
6589         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
6590         (get_vectype_for_scalar_type): Pass mode of scalar_type
6591         to UNITS_PER_SIMD_WORD.
6592
6593         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
6594         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6595         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6596         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6597         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6598
6599 2008-05-22  Ira Rosen  <irar@il.ibm.com>
6600
6601         PR tree-optimization/36293
6602         * tree-vect-transform.c (vect_transform_strided_load): Don't check
6603         if the first load must be skipped because of a gap.
6604
6605 2008-05-22  Richard Guenther  <rguenther@suse.de>
6606
6607         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
6608         more cases of offset disambiguation that is possible if
6609         strict-aliasing rules apply.
6610         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6611         for basic offset and type-based disambiguation.
6612
6613 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6614
6615         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6616         ix86_expand_vector_set on V16QImode for SSE4.1.
6617
6618 2008-05-21  Tom Tromey  <tromey@redhat.com>
6619
6620         * c.opt (Wimport): Mark as undocumented.
6621         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6622         -Wno-import.
6623         (Warning Options): Likewise.
6624         * doc/cppopts.texi: Don't mention -Wimport.
6625
6626 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
6627
6628         PR tree-optimization/36287
6629         PR tree-optimization/36286
6630         * lambda-code.c (build_access_matrix): Do not use the loop->num
6631         for computing the number of induction variables: use the loop depth
6632         instead.
6633
6634 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
6635
6636         PR/36280
6637         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
6638         option -f(no-)leading-underscore.
6639
6640 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6641
6642         * config/i386/i386.c (ix86_expand_vector_init_general): Use
6643         GET_MODE_NUNITS (mode).
6644
6645 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
6646
6647         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
6648         (-mmulhw): Add 464 to description.
6649         (-mdlmzb): Likewise.
6650         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
6651         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
6652         464fp entries.
6653         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
6654         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
6655         * config/rs6000/rs6000.md: Update comments for 464.
6656
6657 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
6658
6659         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
6660
6661 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6662
6663         * config/i386/sse.md (vec_extractv4sf): Removed.
6664         (vec_extractv2df): Likewise.
6665         (vec_extractv2di): Likewise.
6666         (vec_extractv4si): Likewise.
6667         (vec_extractv8hi): Likewise.
6668         (vec_extractv16qi): Likewise.
6669         (vec_extract<mode>): New.
6670
6671 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6672
6673         * config/i386/sse.md (vec_setv4sf): Removed.
6674         (vec_setv2df): Likewise.
6675         (vec_setv2di): Likewise.
6676         (vec_setv4si): Likewise.
6677         (vec_setv8hi): Likewise.
6678         (vec_setv16qi): Likewise.
6679         (vec_set<mode>): New.
6680
6681 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6682
6683         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
6684         goto for vec_concat and vec_interleave.
6685
6686 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6687
6688         * config/i386/sse.md (vec_initv4sf): Removed.
6689         (vec_initv2df): Likewise.
6690         (vec_initv2di): Likewise.
6691         (vec_initv4si): Likewise.
6692         (vec_initv8hi): Likewise.
6693         (vec_initv16qi): Likewise.
6694         (vec_init<mode>): New.
6695
6696 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
6697
6698         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
6699
6700 2008-05-21  Tom Tromey  <tromey@redhat.com>
6701
6702         * ggc-zone.c (lookup_page_table_if_allocated): New function.
6703         (zone_find_object_offset): Likewise.
6704         (gt_ggc_m_S): Likewise.
6705         (highest_bit): Likewise.
6706         * ggc-page.c (gt_ggc_m_S): New function.
6707         * stringpool.c (string_stack): Remove.
6708         (init_stringpool): Update.
6709         (ggc_alloc_string): Use ggc_alloc.
6710         (maybe_delete_ident): New function.
6711         (ggc_purge_stringpool): Likewise.
6712         (gt_ggc_m_S): Remove.
6713         * ggc-common.c (ggc_protect_identifiers): New global.
6714         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
6715         ggc_protect_identifiers.
6716         * ggc.h (ggc_protect_identifiers): Declare.
6717         (gt_ggc_m_S): Update.
6718         (ggc_purge_stringpool): Declare.
6719         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
6720         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
6721         special case.
6722         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
6723
6724 2008-05-21  David S. Miller  <davem@davemloft.net>
6725
6726         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
6727         tmake_file.
6728
6729 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
6730
6731         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
6732         once finished.
6733
6734 2008-05-20  David Daney  <ddaney@avtrex.com>
6735
6736         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
6737         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
6738         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6739         UNSPEC_UPDATE_GOT_VERSION): Renumber.
6740         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
6741         (atomic_hiqi_op): New define_code_iterator.
6742         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
6743         mips_expand_compare_and_swap_12.
6744         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
6745         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
6746         (sync_<optab><mode>, sync_old_<optab><mode>,
6747         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6748         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
6749         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
6750         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
6751         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
6752         (test_and_set_12): New insn.
6753         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
6754         sync_new_<optab><mode>, sync_old_nand<mode>,
6755         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
6756         clobber to operand 0 for SI and DI mode insns.
6757         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
6758         mips_gen_fn_4): New typedefs.
6759         (mips_gen_fn_ptrs): Define new union type.
6760         (mips_expand_compare_and_swap_12): Remove declaration.
6761         (mips_expand_atomic_qihi): Declare function.
6762         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
6763         (mips_expand_atomic_qihi): ... this.  Use new generator function
6764         parameter.
6765         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
6766         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
6767         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
6768         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
6769         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
6770         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
6771         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
6772         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
6773         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
6774         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
6775         New macros.
6776
6777 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
6778
6779         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
6780         the missing break.
6781
6782 2008-05-20  Anatoly Sokolov <aesok@post.ru>
6783
6784         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
6785         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
6786         (avr_attribute_table): Add 'OS_main' function attribute.
6787         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
6788         functions with 'OS_main' attribute.
6789
6790 2008-05-20  Richard Guenther  <rguenther@suse.de>
6791
6792         PR tree-optimization/35204
6793         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
6794         helper, split out from ...
6795         (DFS): ... here.  Make the DFS walk non-recursive.
6796
6797 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
6798             Jan Sjodin  <jan.sjodin@amd.com>
6799
6800         PR tree-optimization/36181
6801         * tree-parloops.c (loop_has_vector_phi_nodes): New.
6802         (parallelize_loops): Don't parallelize when the loop has vector
6803         phi nodes.
6804
6805 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6806             Sebastian Pop  <sebastian.pop@amd.com>
6807
6808         * tree-loop-linear.c (gather_interchange_stats): Look in the access
6809         matrix, and never look at the tree representation of the memory
6810         accesses.
6811         (linear_transform_loops): Computes parameters and access matrices.
6812         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
6813         when fails.
6814         (access_matrix_get_index_for_parameter): New.
6815         * tree-data-ref.h (struct access_matrix): New.
6816         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6817         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6818         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
6819         am_vector_index_for_loop): New.
6820         (struct data_reference): Add field access_matrix.
6821         (DR_ACCESS_MATRIX): New.
6822         (compute_data_dependences_for_loop): Update declaration.
6823         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
6824         * lambda.h (lambda_vector_vec_p): Declared.
6825         * lambda-code.c: Depend on pointer-set.h.
6826         (lambda_collect_parameters_from_af, lambda_collect_parameters,
6827         av_for_af_base, av_for_af, build_access_matrix,
6828         lambda_compute_access_matrices): New.
6829         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
6830
6831 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
6832
6833         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
6834         $SOURCEDIR/include.
6835
6836 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6837             Sebastian Pop  <sebastian.pop@amd.com>
6838
6839         PR tree-optimization/36206
6840         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
6841         FOLD_CONVERSIONS.
6842         (instantiate_scev_1): Rename flags to fold_conversions.
6843         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
6844         outeside instantiation_loop.
6845         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
6846         (evolution_function_is_affine_or_constant_p): Removed.
6847         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
6848         instantiate_scev.
6849         (analyze_siv_subscript): Pass in the loop nest number.
6850         Call evolution_function_is_affine_in_loop instead of
6851         evolution_function_is_affine_p.
6852         (analyze_overlapping_iterations): Pass in the loop nest number.
6853
6854 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6855             Sebastian Pop  <sebastian.pop@amd.com>
6856
6857         PR tree-optimization/36206
6858         * tree-chrec.h (chrec_fold_op): New.
6859         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
6860         and other trees.
6861
6862 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
6863
6864         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
6865         (DIRS_EQ): New.
6866         (remove_duplicates): Do not set inode on non-inode systems.
6867         Use DIRS_EQ.
6868
6869 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
6870
6871         * config.gcc (tm_file): Update comments about relative pathnames.
6872
6873 2008-05-20  Richard Guenther  <rguenther@suse.de>
6874
6875         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
6876         * tree-ssa-sccvn.c (process_scc): Likewise.
6877         * tree-ssa-sink.c (execute_sink_code): Likewise.
6878         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
6879         * tree-vrp.c (process_assert_insertions): Likewise.
6880         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6881         (perform_tree_ssa_dce): Likewise.
6882         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6883         (dump_dominator_optimization_stats): Likewise.
6884         * tree-vectorizer.c (vectorize_loops): Likewise.
6885
6886 2008-05-20  Richard Guenther  <rguenther@suse.de>
6887
6888         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
6889
6890 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
6891
6892         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
6893         (ix86_i386elf_return_in_memory): Likewise.
6894         (ix86_i386interix_return_in_memory): Likewise.
6895         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
6896         (SUBTARGET_RETURN_IN_MEMORY): New.
6897         * config/i386/i386elf.h: Likewise.
6898         * config/i386/ptx4-i.h: Likewise.
6899         * config/i386/sol2-10.h: Likewise.
6900         * config/i386/sysv4.h: Likewise.
6901         * config/i386/vx-common.h: Likewise.
6902         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
6903         * config/i386/i386.c (ix86_return_in_memory): Made static and
6904         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
6905         (ix86_i386elf_return_in_memory): Removed.
6906         (ix86_i386interix_return_in_memory): Removed.
6907         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
6908         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
6909
6910 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
6911
6912         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
6913
6914 2008-05-19  Xinliang David Li  <davidxl@google.com>
6915
6916         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
6917         * opts.c: Ditto.
6918         * common.opt: Ditto.
6919         * doc/invoke.texi: Ditto.
6920
6921 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
6922
6923         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
6924         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
6925
6926 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6927
6928         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
6929         sizes of operand array from 8/4 to 4/2.
6930         (ix86_expand_vector_init_general): Change size of operand array
6931         from 32 to 16.  Remove op0, op1 and half_mode.
6932
6933 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6934
6935         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
6936         (ix86_expand_vector_init_interleave): Likewise.
6937         (ix86_expand_vector_init_general): Use them.  Assert
6938         word_mode == SImode when n_words == 4.
6939
6940 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
6941
6942         * config/i386/i386.c (ix86_secondary_reload): New static function.
6943         (TARGET_SECONDARY_RELOAD): New define.
6944         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
6945         * config/i386/i386.md (reload_outqi): Remove.
6946
6947 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6948
6949         PR middle-end/35509
6950         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
6951         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
6952         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
6953         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
6954         (fold_builtin_1): Likewise.
6955         * builtins.def (BUILT_IN_ISINF_SIGN): New.
6956         c-common.c (check_builtin_function_arguments): Handle
6957         BUILT_IN_ISINF_SIGN.
6958         * doc/extend.texi: Document __builtin_isinf_sign.
6959         * fold-const.c (operand_equal_p): Handle COND_EXPR.
6960
6961 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
6962
6963         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
6964         EH cleanup at the end of the pass, search for those that have been
6965         turned into forwarder blocks and do the cleanup on their successor.
6966
6967 2008-05-18  Richard Guenther  <rguenther@suse.de>
6968
6969         * tree-cfg.c (verify_gimple_expr): Allow conversions from
6970         pointers to sizetype and vice versa.
6971
6972 2008-05-18 Xinliang David Li   <davidxl@google.com>
6973
6974         * gcc/tree-ssa-dce.c: Coding style fix.
6975         (check_pow): Documentation comment.
6976         (check_log): Documenation comment. Coding style fix.
6977         (is_unnecessary_except_errno_call): Ditto.
6978         (gen_conditions_for_pow): Ditto.
6979         (gen_conditions_for_log): Ditto.
6980         (gen_shrink_wrap_conditions): Ditto.
6981         (shrink_wrap_one_built_in_calls): Ditto.
6982         * gcc/doc/invoke.texi: Better documentation string.
6983         * ChangeLog: Fix wrong change log entries from
6984         May 17 checkin on function call DCE.
6985
6986 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
6987
6988         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
6989
6990 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
6991
6992         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
6993         * df-problems.c (simulation routines): Fixed block comment to
6994         properly say how to add forwards scanning functions.
6995
6996 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
6997
6998         * tree-inline.c (setup_one_parameter): Remove dead code.
6999
7000 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
7001
7002         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
7003         a BIT_AND_EXPR only for an INTEGER_TYPE.
7004
7005 2008-05-17 Xinliang David Li   <davidxl@google.com>
7006
7007         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
7008         (check_pow, check_log, is_unnecessary_except_errno_call): New
7009         functions to check for eliminating math functions that are pure
7010         except for setting errno.
7011         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
7012         general condition expressions for shrink-wrapping pow/log calls.
7013         (gen_shrink_wrap_conditions): Ditto.
7014         (shrink_wrap_one_built_in_call): Ditto.
7015         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
7016         (mark_operand_necessary): If debugging, output if OP is necessary.
7017         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
7018         unnecessary.
7019         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
7020         opt level >= 2.
7021         * gcc/common.opt: New user flag -ftree-builtin-dce.
7022         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
7023
7024 2008-05-16  David S. Miller  <davem@davemloft.net>
7025
7026         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
7027         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7028
7029 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
7030
7031         PR target/36246
7032         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
7033
7034 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7035
7036         * ifcvt.c (dead_or_predicable): Rename
7037         df_simulate_one_insn_backwards to df_simulate_one_insn.
7038         * recog.c (peephole2_optimize): Ditto.
7039         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
7040         Ditto.
7041         * df.h: Rename df_simulate_one_insn_backwards to
7042         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
7043         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
7044         scanning of defs and uses.
7045         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
7046         (df_simulate_one_insn_forwards): Removed.
7047
7048 2008-05-16  Doug Kwan  <dougkwan@google.com>
7049
7050         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
7051         QNaN & SNaN.
7052         (real_from_string): Handle NaNs and Inf as approriate.
7053
7054 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
7055
7056         * doc/gty.texi (Source Files Containing Type Information): Note
7057         that headers should appear first in the gtfiles list.
7058
7059 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7060
7061         * tree.def (COND_EXEC): Properly documented this code.
7062
7063 2008-05-16  Diego Novillo  <dnovillo@google.com>
7064
7065         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
7066         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
7067         the new field.
7068
7069 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7070
7071         * tree-ssa-dse (max_stmt_uid): Removed.
7072         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
7073         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
7074         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
7075         * function.h (cfun.last_stmt_uid): New field.
7076         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
7077         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
7078         New functions.
7079         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
7080         (create_stmt_ann): Initialize the ann->uid field.
7081         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
7082         with new calls.
7083         * tree-flow.h (renumber_gimple_stmt_uids): New function.
7084
7085 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
7086
7087         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
7088         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
7089         (init_empty_tree_cfg): Call it.
7090
7091 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7092
7093         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
7094         Update all users.
7095
7096 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7097
7098         * doc/invoke.text (-fdump-tree-*-verbose): New option.
7099         * tree-dump.c (dump_options): New verbose option.
7100         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
7101         Add verbose dump.
7102         * tree-pass.h (TDF_VERBOSE): New dump flag.
7103         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
7104         (tree-flow.h): Added include.
7105         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
7106
7107 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
7108
7109         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
7110
7111         From Jie Zhang  <jie.zhang@analog.com>
7112         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7113         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
7114         mcpu=bf561-none and mcpu=bf561-0.2.
7115         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7116         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7117         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7118         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7119         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
7120         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
7121         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
7122         option.
7123         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
7124         (cputype_selected): Remove.
7125         (bfin_handle_option): Don't use cputype_selected.
7126         (override_options): When no mcpu option, enable all workarounds.
7127         Don't use bfin_workarounds.
7128         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
7129         processor type.
7130         (DEFAULT_CPU_TYPE): Don't define.
7131
7132 2008-05-16  Richard Guenther  <rguenther@suse.de>
7133
7134         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
7135         on deletion of the last stmt.
7136
7137 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7138
7139         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
7140         V8HImode for SSE2 and V16QImode for SSE4.1.
7141
7142 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
7143
7144         * cgraph.h (compute_inline_parameters): Made public.
7145         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
7146         variable_generate_summary, function_write_summary,
7147         variable_write_summary, variable_read_summary.  Added generate_summary,
7148         write_summary, read_summary.
7149         * cgraphunit.c (cgraph_process_new_functions): Changed call from
7150         pass_ipa_inline.function_generate_summary, to
7151         compute_inline_parameters.
7152         * ipa-inline.c (compute_inline_parameters): Made public and added
7153         node parameter.
7154         (compute_inline_parameters_for_current): New function.
7155         (pass_inline_param): Now calls compute_inline_parameters_for_current.
7156         (inline_generate_summary): Removed parameter and made to loop over
7157         all cgraph nodes.
7158         (pass_ipa_inline): Updated for new IPA_PASS structure.
7159         * passes.c (execute_ipa_summary_passes): Now is called once per
7160         pass rather than once per node*pass.
7161
7162 2008-05-15  Anatoly Sokolov <aesok@post.ru>
7163
7164         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
7165         avr_have_mul_p, avr_asm_only_p): Remove variables.
7166         (avr_override_options): Remove initialization of removed variables.
7167         (avr_file_start):  Convert removed variables to fields of
7168         'struct base_arch_s *avr_current_arch'.
7169         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
7170         (AVR_HAVE_MUL): (Ditto.).
7171         (AVR_HAVE_MOVW): (Ditto.).
7172         (AVR_HAVE_LPMX): (Ditto.).
7173         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
7174         avr_asm_only_p): Remove declaration.
7175
7176 2008-05-15  Diego Novillo  <dnovillo@google.com>
7177
7178         * config/arm/arm.c (arm_return_in_memory): Fix return type.
7179         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
7180
7181 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
7182
7183         PR middle-end/36194
7184         * combine.c (check_conversion): Rename back to check_promoted_subreg.
7185         Don't call record_truncated_value from here.
7186         (record_truncated_value): Turn it into a for_each_rtx callback.
7187         (record_truncated_values): New function.
7188         (combine_instructions): Call note_uses with record_truncated_values.
7189         Change name of check_conversion to check_promoted_subreg.
7190
7191 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
7192
7193         * doc/sourcebuild.texi: Document support for torture tests.
7194
7195 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
7196
7197         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
7198         to alternative 4 of operand 2.
7199
7200 2008-05-15  Richard Guenther  <rguenther@suse.de>
7201
7202         * tree-pass.h (current_pass): Declare.
7203         (get_pass_for_id): Likewise.
7204         * passes.c (passes_by_id, passes_by_id_size): New globals.
7205         (set_pass_for_id): New function.
7206         (get_pass_for_id): Likewise.
7207         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
7208         (execute_function_todo): Flush per function statistics.
7209         * toplev.c (compile_file): Init statistics.
7210         (general_init): Do early statistics initialization.
7211         (finalize): Finish statistics.
7212         * statistics.h (statistics_early_init): Declare.
7213         (statistics_init): Likewise.
7214         (statistics_fini): Likewise.
7215         (statistics_fini_pass): Likewise.
7216         (statistics_counter_event): Likewise.
7217         (statistics_histogram_event): Likewise.
7218         * statistics.c: New file.
7219         * Makefile.in (OBJS-common): Add statistics.o.
7220         (statistics.o): Add dependencies.
7221         * doc/invoke.texi (-fdump-statistics): Document.
7222
7223         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
7224         (insert): Likewise.
7225         (execute_pre): Use statistics_counter_event.
7226         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
7227         (substitute_and_fold): Increment it.  Use statistics_counter_event.
7228
7229 2008-05-15  Diego Novillo  <dnovillo@google.com>
7230
7231         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
7232
7233         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
7234         * tree-ssa-alias.c (new_type_alias): Remove references to
7235         sub-variables from comment.
7236         * tree-ssa-operands.c (swap_tree_operands): Likewise.
7237
7238 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7239
7240         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
7241         attribute to 1 only for insertps alternative.
7242
7243 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
7244
7245         * config/bfin/bfin.md (loadbytes): New pattern.
7246         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
7247         (bfin_init_builtins): Initialize it.
7248         (bdesc_1arg): Add it.
7249
7250 2008-05-15  Sa Liu  <saliu@de.ibm.com>
7251
7252         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
7253         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
7254         * testsuite/lib/target-supports.exp: Add
7255         check_effective_target_fortran_integer_16.
7256
7257 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
7258
7259         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
7260         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
7261         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
7262         (TARGET_RETURN_IN_MEMORY): Define.
7263
7264 2008-05-15  Richard Guenther  <rguenther@suse.de>
7265
7266         PR middle-end/36244
7267         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
7268         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
7269         represent unmodifiable vars.
7270
7271 2008-05-15  Richard Guenther  <rguenther@suse.de>
7272
7273         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
7274         INDIRECT_REF and TARGET_MEM_REF.
7275         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7276         TARGET_MEM_REF.
7277
7278 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
7279             H.J. Lu  <hongjiu.lu@intel.com>
7280
7281         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
7282         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
7283         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
7284         insn alternatives.  Add missing alternatives.
7285         (*vec_concatv2di_rex64_sse4_1): Likewise.
7286         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
7287         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
7288         Require TARGET_SSE.
7289
7290 2008-05-15  Richard Guenther  <rguenther@suse.de>
7291
7292         PR tree-optimization/36009
7293         PR tree-optimization/36204
7294         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
7295         (determine_invariantness_stmt): Record the loop a store is
7296         always executed in.
7297         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
7298         dependency.
7299
7300 2008-05-15  Richard Guenther  <rguenther@suse.de>
7301
7302         PR tree-optimization/34330
7303         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
7304         through the pointer will alias the SMT.
7305
7306 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
7307
7308         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
7309
7310 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7311
7312         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
7313
7314 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7315             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
7316
7317         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
7318         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
7319         (vashl_optab): New optab for vector/vector shifts.
7320         (vashr_optab): Ditto.
7321         (vlshr_optab): Ditto.
7322         (vrotl_optab): Ditto.
7323         (vrotr_optab): Ditto.
7324         (optab_subtype): New enum for optab_for_tree_code call.
7325         (optab_for_tree_code): Add enum optab_subtype argument.
7326
7327         * optabs.c (optab_for_tree_code): Take an additional argument to
7328         distinguish between a vector shift by a scalar and vector shift by
7329         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
7330         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
7331         vector shift by a vector.
7332         (expand_widen_pattern_expr): Pass additional argument to
7333         optab_for_tree_code.
7334
7335         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
7336         vrotl_optab, vrotr_optab.
7337
7338         * expr.c (expand_expr_real_1): Update calls to
7339         optab_for_tree_code to distinguish between vector shifted by a
7340         scalar and vector shifted by a vector.
7341         * tree-vectorizer.c (supportable_widening_operation): Ditto.
7342         (supportable_narrowing_operation): Ditto.
7343         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
7344         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
7345         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
7346         (vect_create_epilog_for_reduction): Ditto.
7347         (vectorizable_reduction): Ditto.
7348         (vectorizable_operation): Ditto.
7349         (vect_strided_store_supported): Ditto.
7350         (vect_strided_load_supported): Ditto.
7351         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
7352         * expmed.c (expand_shift): Ditto.
7353
7354         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
7355         scalar type.
7356         (ashr@var{m}3): Ditto.
7357         (vashl@var{m}3): Document new vector/vector shift standard name.
7358         (vashr@var{m}3): Ditto.
7359         (vlshr@var{m}3): Ditto.
7360         (vrotl@var{m}3): Ditto.
7361         (vrotr@var{m}3): Ditto.
7362
7363         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
7364         (PPERM_INVERT): Ditto.
7365         (PPERM_REVERSE): Ditto.
7366         (PPERM_REV_INV): Ditto.
7367         (PPERM_ZERO): Ditto.
7368         (PPERM_ONES): Ditto.
7369         (PPERM_SIGN): Ditto.
7370         (PPERM_INV_SIGN): Ditto.
7371         (PPERM_SRC1): Ditto.
7372         (PPERM_SRC2): Ditto.
7373
7374         * config/i386/sse.md (mulv2di3): Add SSE5 support.
7375         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
7376         allows a memory operand to be the value being added, and split it
7377         to improve vectorization.
7378         (sse5_pmacsdqh_mem): Ditto.
7379         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
7380         (sse5_mulv2div2di3_high): Ditto.
7381         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
7382         (vec_pack_trunc_v4si): Ditto.
7383         (vec_pack_trunc_v2di): Ditto.
7384         (sse5_pcmov_<mode>): Remove code that tried to use use
7385         andps/andnps instead of pcmov.
7386         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
7387         pmacsdqh instructions.
7388         (vec_widen_smult_lo_v4si): Ditto.
7389
7390         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
7391         (PPERM_INVERT): Ditto.
7392         (PPERM_REVERSE): Ditto.
7393         (PPERM_REV_INV): Ditto.
7394         (PPERM_ZERO): Ditto.
7395         (PPERM_ONES): Ditto.
7396         (PPERM_SIGN): Ditto.
7397         (PPERM_INV_SIGN): Ditto.
7398         (PPERM_SRC1): Ditto.
7399         (PPERM_SRC2): Ditto.
7400         (ix86_expand_sse_movcc): Move the SSE5 test after the if
7401         true/false tests.
7402         (ix86_expand_int_vcond): If SSE5 generate all possible integer
7403         comparisons.
7404         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
7405         says ignore whether the last reference is a memory operand.
7406
7407 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7408             Paolo Bonzini <bonzini at gnu dot org>
7409
7410         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
7411         shift patterns.
7412
7413         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
7414         (vlshr<mode>3): Rename from vlshr<mode>3.
7415         (vashr<mode>3): Rename from vashr<mode>3.
7416         (mulv4sf3): Change the names of vector shift patterns.
7417         (mulv4si3): Ditto.
7418         (negv4sf2): Ditt.
7419
7420         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
7421         shift insns.
7422
7423         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
7424         (SI_SHLHI): Ditto.
7425         (SI_SHL): Ditto.
7426         (SI_SHLI): Ditto.
7427         (SI_ROTH): Ditto.
7428         (SI_ROTHI): Ditto.
7429         (SI_ROT): Ditto.
7430         (SI_ROTI): Ditto.
7431         (SPU_RL_0): Ditto.
7432         (SPU_RL_1): Ditto.
7433         (SPU_RL_2): Ditto.
7434         (SPU_RL_3): Ditto.
7435         (SPU_RL_4): Ditto.
7436         (SPU_RL_5): Ditto.
7437         (SPU_RL_6): Ditto.
7438         (SPU_RL_7): Ditto.
7439         (SPU_SL_0): Ditto.
7440         (SPU_SL_1): Ditto.
7441         (SPU_SL_2): Ditto.
7442         (SPU_SL_3): Ditto.
7443         (SPU_SL_4): Ditto.
7444         (SPU_SL_5): Ditto.
7445         (SPU_SL_6): Ditto.
7446         (SPU_SL_7): Ditto.
7447
7448         * config/spu/spu.md (v): New iterator macro to add v for vector types.
7449         (floatunssidf2_internal): Change vector/vector shift names.
7450         (floatunsdidf2_internal): Ditto.
7451         (mulv8hi3): Ditto.
7452         (ashrdi3): Ditto.
7453         (ashrti3): Ditto.
7454         (cgt_df): Ditto.
7455         (cgt_v2df): Ditto.
7456         (dftsv): Ditto.
7457         (vashl<mode>3): Rename from ashl<mode>3.
7458         (vashr<mode>3): Rename from ashr<mode>3.
7459         (vlshr<mode>3): Rename from lshr<mode>3.
7460         (vrotl<mode>3): Rename from rotl<mode>3.
7461
7462 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7463
7464         PR target/36224
7465         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
7466         multiply gives the wrong value when doing widening multiplies.
7467         (vec_widen_smult_lo_v4si): Ditto.
7468
7469 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7470
7471         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
7472         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
7473         emit_library_call_value.
7474         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
7475         * tree.h (ECF_LIBCALL_BLOCK): Removed.
7476         * calls.c (initialize_argument_information, precompute_arguments,
7477         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
7478         (precompute_arguments): Removed flags parameter.
7479         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
7480
7481 2008-05-14  Richard Guenther  <rguenther@suse.de>
7482
7483         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
7484         Make sure to register the store if the use is a PHI_NODE.
7485
7486 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7487
7488         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
7489         memory if the component is to be referenced in BLKmode according
7490         to get_inner_reference.
7491
7492 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
7493
7494         * calls.c (emit_library_call_value_1): Restore code clearing
7495         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
7496
7497 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7498             Nicolas Roche  <roche@adacore.com>
7499
7500         * configure.ac: Add support for a "gcc_subdir" variable in
7501         config-lang.in, to denote a subdirectory where the language/GCC
7502         integration files are to be found.
7503         * configure: Regenerate.
7504
7505 2008-05-14  Ira Rosen  <irar@il.ibm.com>
7506
7507         PR tree-optimization/36098
7508         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
7509         value for the first load in the group in case of a gap.
7510         (vect_build_slp_tree): Check that there are no gaps in loads.
7511
7512 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7513
7514         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
7515         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
7516         expand_copysign_bit, ): Change call to emit_no_conflict_block to
7517         emit_insn and remove unneeded code to construct extra args.
7518         (emit_no_conflict_block): Removed.
7519         * optabls.h: (emit_no_conflict_block): Removed.
7520         * cse.c (cse_extended_basic_block): Remove search for
7521         REG_NO_CONFLICT note.
7522         * global.c: Removed incorrect comment added in revision 117.
7523         * expr.c (convert_move): Change call to emit_no_conflict_block to
7524         emit_insn.
7525         * recog.c: Change comments so that they do not mention
7526         REG_NO_CONFLICT.
7527         * local_alloc.c (combine_regs): Removed last parameter.
7528         (no_conflict_p): Removed.
7529         (block_alloc): Removed note, no_conflict_combined_regno and set
7530         local vars. Removed all code to process REG_NO_CONFLICT blocks.
7531         (combine_regs): Removed already_dead and code to look for
7532         REG_NO_CONFLICT notes.
7533         * lower_subreg (remove_retval_note): Removed code to look for
7534         REG_NO_CONFLICT block.
7535         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
7536         (resolve_clobber): Remove code to process libcalls that have
7537         REG_NO_CONFLICT notes.
7538         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
7539         case.
7540         * combine.c (can_combine_p, distribute_notes):  Removed
7541         REG_NO_CONFLICT case.
7542         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
7543         to emit_insns.
7544         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
7545         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
7546         Ditto.
7547         * reg-notes.def (NO_CONFLICT): Removed.
7548
7549 2008-05-14  David S. Miller  <davem@davemloft.net>
7550
7551         * config/sparc/sparc.c (sparc_profile_hook): If
7552         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
7553         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
7554         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7555
7556 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7557
7558         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
7559
7560 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
7561
7562         PR target/36222
7563         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
7564         and op1 expansion before vector concat to have less live pseudos.
7565
7566 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
7567
7568         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
7569         ix86_expand_vector_set if supported.
7570
7571 2008-05-13  Diego Novillo  <dnovillo@google.com>
7572             Kenneth Zadeck  <zadeck@naturalbridge.com>
7573
7574         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
7575
7576         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
7577         phinodes_print_statistics, init_ssanames, fini_ssanames,
7578         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
7579         release_ssa_name, release_defs, replace_ssa_name_symbol,
7580         ssanames_print_statistics): Move ...
7581         * tree-flow.h: ... here.
7582         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
7583         Use FN instead of cfun.
7584         (make_ssa_name_fn): Rename from make_ssa_name.
7585         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
7586         * tree-flow-inline.h (make_ssa_name): Move from
7587         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
7588         * omp-low.c (expand_omp_parallel):
7589         * tree-flow-inline.h (redirect_edge_var_map_result):
7590         * tree-ssa.c (init_tree_ssa): Add argument FN.
7591         Use it instead of cfun.  Update all users.
7592
7593 2008-05-13  Tom Tromey  <tromey@redhat.com>
7594
7595         PR preprocessor/22168:
7596         * doc/cpp.texi (Top): Update menu.
7597         (Alternatives to Wrapper #ifndef): New node.
7598         (Other Directives): Document deprecation.
7599         (Obsolete Features): Remove menu.
7600         (Assertions): Merge node into Obsolete Features.
7601         (Obsolete once-only headers): Move earlier; rename to Alternatives
7602         to Wrapper #ifndef.
7603         * doc/cppopts.texi: Update.
7604         * c.opt (Wdeprecated): Enable for C and ObjC.
7605         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7606         (C++ Dialect Options): Move -Wno-deprecated from here to...
7607         (Warning Options): ... here.
7608
7609 2008-05-13  Richard Guenther  <rguenther@suse.de>
7610
7611         PR middle-end/36227
7612         * fold-const.c (fold_sign_changed_comparison): Do not allow
7613         changes in pointer-ness.
7614
7615 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7616
7617         PR target/24713
7618         * config/sh/sh.c (sh_expand_prologue): Don't clear
7619         RTX_FRAME_RELATED_P for push insns.
7620
7621 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
7622
7623         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7624
7625 2008-05-12  Anatoly Sokolov <aesok@post.ru>
7626
7627         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7628         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7629         Use 'machine->is_leaf' instead of 'leaf_func_p'.
7630
7631 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
7632
7633         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
7634         (*vec_concatv4sf_sse): This.
7635         (*sse2_concatv2si): Renamed to ...
7636         (*vec_concatv2si_sse2): This.
7637         (*sse1_concatv2si): Renamed to ...
7638         (*vec_concatv2si_sse): This.
7639         (*vec_concatv2di_rex): Renamed to ...
7640         (*vec_concatv2di_rex64): This.
7641         (*vec_concatv2si_sse4_1): New.
7642         (*vec_concatv2di_rex64_sse4_1): Likewise.
7643
7644 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
7645
7646         PR rtl-optimization/36111
7647         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
7648         that was created for swappable operands.
7649
7650 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
7651
7652         PR ada/36001
7653         * Makefile.in: Substitute GNATMAKE and GNATBIND.
7654         * configure.ac: Add call to ACX_PROG_GNAT.
7655
7656 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
7657
7658         * optc-gen.awk: Fix comment typo.
7659
7660 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
7661
7662         * pretty-print.c (pp_integer_with_precision): Use
7663         HOST_LONG_LONG_FORMAT.
7664
7665 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
7666
7667         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
7668
7669 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7670
7671         * config/i386/i386.c (bdesc_ptest): Removed.
7672         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
7673         (bdesc_args): Add __builtin_ia32_ptestz128,
7674         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
7675         (ix86_init_mmx_sse_builtins): Updated.
7676         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
7677         (ix86_expand_builtin): Updated.
7678
7679 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
7680
7681         * tree-cfg.c (valid_fixed_convert_types_p): New function.
7682         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
7683
7684 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
7685
7686         * value-prof.c (interesting_stringop_to_profile): Do not
7687         return early for BUILT_IN_MEMPCPY.
7688
7689 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7690
7691         * calls.c (expand_call): Don't use callgraph to increase
7692         preferred_stack_boundary.
7693
7694         * cgraph.h (cgraph_rtl_info): Use unsigned on
7695         preferred_incoming_stack_boundary.
7696
7697         * final.c (rest_of_clean_state): Use unsigned on
7698         preferred_stack_boundary.
7699
7700 2008-05-09  Tom Tromey  <tromey@redhat.com>
7701
7702         PR preprocessor/22231:
7703         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
7704         proceeding.
7705
7706 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
7707
7708         PR tree-optimization/36129
7709         * tree-ssa-ccp.c: Include value-prof.h.
7710         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
7711         built-in function was folded to a constant.
7712         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
7713
7714 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
7715             Sebastian Pop  <sebastian.pop@amd.com>
7716
7717         * tree-scalar-evolution.c: Document instantiate_scev.
7718         (instantiate_parameters_1): Renamed instantiate_scev_1.
7719         Don't use the same loop for instantiation_loop and evolution_loop.
7720         (instantiate_scev): New.
7721         (instantiate_parameters): Moved...
7722         (resolve_mixers): Update call to instantiate_scev_1 to pass the
7723         same loop twice.  Maintains the semantics for this function.
7724         * tree-scalar-evolution.h (instantiate_scev): Declare.
7725         (instantiate_parameters): ...here.  Now static inline.
7726         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
7727         instead of resolve_mixers.
7728
7729 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
7730
7731         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
7732
7733 2008-05-09  Tomas Bily  <tbily@suse.cz>
7734
7735         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
7736         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
7737         * tree-ssa-structalias.c (get_constraint_for): Likewise.
7738         * c-common.c (c_common_truthvalue_conversion): Likewise.
7739         * tree-object-size.c (compute_object_offset): Likewise.
7740         * tree-inline.c (estimate_num_insns_1): Likewise.
7741         * varasm.c (const_hash_1, compare_constant, copy_constant)
7742         (compute_reloc_for_constant, output_addressed_constants)
7743         (initializer_constant_valid_p): Likewise.
7744         * c-omp.c (check_omp_for_incr_expr): Likewise.
7745         * gimplify.c (gimplify_expr): Likewise.
7746         * c-typeck.c (c_finish_return): Likewise.
7747         * tree-vectorizer.c (supportable_widening_operation)
7748         (supportable_narrowing_operation): Likewise.
7749         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
7750         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
7751         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7752         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
7753         (descr_info_loc): Likewise.
7754         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7755         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
7756         (fold_unary): Likewise.
7757         * builtins.c (get_pointer_alignment): Likewise.
7758         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
7759         (instantiate_parameters_1): Likewise.
7760         * tree.c (expr_align, stabilize_reference): Likewise.
7761         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
7762         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7763         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
7764         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7765         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
7766         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
7767         Likewise.
7768         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
7769         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
7770         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7771         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
7772         (forward_propagate_comparison)
7773         (tree_ssa_forward_propagate_single_use_vars): Likewise.
7774         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
7775         * emit-rtl.c (component_ref_for_mem_expr)
7776         (set_mem_attributes_minus_bitpos): Likewise.
7777         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
7778         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
7779         Likewise.
7780         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
7781         (build_function_call, pointer_diff, build_compound_expr)
7782         (c_finish_return): Likewise.
7783         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
7784         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
7785         Likewise.
7786         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
7787         * expr.c (is_aligning_offset): Likewise.
7788         * tree-ssa-alias.c (is_escape_site): Likewise.
7789         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
7790         (check_all_va_list_escapes): Likewise.
7791         * tree-ssa-loop-ivopts.c (determine_base_object)
7792         (determine_common_wider_type): Likewise.
7793         * dojump.c (do_jump): Likewise.
7794         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
7795         * tree-gimple.c (is_gimple_cast): Likewise.
7796         * fold-const.c (decode_field_reference, )
7797         (fold_sign_changed_comparison, fold_unary, fold_comparison)
7798         (fold_binary): Likewise.
7799         * tree-ssa-alias-warnings.c (find_alias_site_helper)
7800         (already_warned_in_frontend_p): Likewise.
7801         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
7802         * tree.c (really_constant_p, get_unwidened): Likewise.
7803         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7804         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7805         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
7806         Likewise.
7807         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
7808         CONVERT_EXPR_P.
7809         (CONVERT_EXPR_P): Define.
7810         (CASE_CONVERT): Define.
7811
7812 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
7813
7814         PR middle-end/36117
7815         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
7816         (delete_unmarked_insns): When deleting a call, call
7817         delete_unreachable_blocks.
7818         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7819         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
7820
7821 2008-05-08  Richard Guenther  <rguenther@suse.de>
7822
7823         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
7824         (-ftree-salias): Likewise.
7825         (salias-max-implicit-fields): Remove param documentation.
7826         (salias-max-array-elements): Likewise.
7827         * tree-pass.h (pass_create_structure_vars): Remove.
7828         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7829         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7830         * tree-ssa-alias.c (create_structure_vars): Remove.
7831         (gate_structure_vars): Likewise.
7832         (pass_create_structure_vars): Likewise.
7833         (gate_build_alias): Likewise.
7834         (pass_build_alias): Adjust to run always and dump the function.
7835         * common.opt (ftree-salias): Hide.
7836         * passes.c (init_optimization_passes): Remove
7837         pass_create_structure_vars, adjust comment.
7838         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7839         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7840         * opts.c (decode_options): Do not set flag_tree_salias.
7841         (common_handle_option): Add OPT_ftree_salias to the backward
7842         compatibility section.
7843
7844 2008-05-08  Richard Guenther  <rguenther@suse.de>
7845
7846         * tree-flow-inline.h (var_can_have_subvars): Move ...
7847         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
7848         * tree-flow.h (var_can_have_subvars): Remove.
7849         (push_fields_onto_fieldstack): Remove.
7850         (sort_fieldstack): Likewise.
7851         (struct fieldoff): Move ...
7852         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
7853         alias_set and base_for_components fields.
7854         (sort_fieldstack): Make static.
7855         (push_fields_onto_fieldstack): Likewise.  Remove code that
7856         handles anything but RECORD_TYPEs.  Remove alias_set and
7857         base_for_components handling.
7858         (create_variable_info_for): Adjust.
7859
7860 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
7861
7862         * common.opt (Wframe-larger-than=): Shorten the help message
7863         to one line.
7864         * doc/invoke.texi (Wframe-larger-than=): Add more description.
7865
7866 2008-05-08  Rafael Espindola  <espindola@google.com>
7867
7868         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
7869         trap.
7870         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
7871         trap and that both operands are gimple values.
7872         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
7873         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
7874         is a fp operation.
7875
7876 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7877
7878         * read-rtl.c (join_c_conditions): Return the first string if the
7879         two strings are equal.
7880
7881 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7882
7883         * gensupport.h (pred_data): Add a "num_codes" field.
7884         (add_predicate_code): Declare.
7885         * gensupport.c (add_predicate_code): New function.
7886         (std_pred_table): Add an "allows_const_p" field.
7887         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
7888         Remove the (incomplete) list of such codes from the codes field.
7889         (init_predicate_table): Use add_predicate_code.  Add all
7890         RTX_CONST_OBJs if allows_const_p is true.
7891         * genrecog.c (process_define_predicate): Use add_predicate_code.
7892
7893 2008-05-08  David Daney  <ddaney@avtrex.com>
7894             Richard Sandiford  <rsandifo@nildram.co.uk>
7895
7896         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
7897         special case of constant zero operands.
7898         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
7899         old and new values.  Special case constant zero values.
7900         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
7901         fails.
7902         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
7903         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
7904
7905 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
7906
7907         PR target/36090
7908         * simplify-rtx.c (simplify_plus_minus): Create CONST of
7909         similar RTX_CONST_OBJ before CONST_INT.
7910
7911 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
7912
7913         * stmt.c (expand_stack_restore): Change sa mode if needed.
7914
7915 2008-05-08  Richard Guenther  <rguenther@suse.de>
7916
7917         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
7918         return type to bool.
7919         (ix86_sol10_return_in_memory): Likewise.
7920         (ix86_i386elf_return_in_memory): Likewise.
7921         (ix86_i386interix_return_in_memory): Likewise.
7922         * config/i386/i386.c (ix86_return_in_memory): Likewise.
7923         (ix86_sol10_return_in_memory): Likewise.
7924         (ix86_i386elf_return_in_memory): Likewise.
7925         (ix86_i386interix_return_in_memory): Likewise.
7926
7927 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
7928
7929         PR bootstrap/36180
7930         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
7931         fndecl argument.
7932         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
7933         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
7934         declared in front.
7935
7936 2008-05-08  Richard Guenther  <rguenther@suse.de>
7937
7938         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
7939         * tree-data-ref.h (struct dr_alias): Remove subvars field.
7940         (DR_SUBVARS): Remove.
7941         * tree-dfa.c (dump_subvars_for): Remove.
7942         (debug_subvars_for): Likewise.
7943         (dump_variable): Do not dump subvars.
7944         (remove_referenced_var): Do not remove subvars.
7945         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
7946         (lookup_subvars_for_var): Remove.
7947         (get_subvars_for_var): Likewise.
7948         (get_subvars_at): Likewise.
7949         (get_first_overlapping_subvar): Likewise.
7950         (overlap_subvar): Likewise.
7951         * tree-flow.h (subvar_t): Remove.
7952         (struct var_ann_d): Remove subvars field.
7953         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
7954         argument.  Remove special handling of SFTs.
7955         (compute_tag_properties): Likewise.
7956         (set_initial_properties): Likewise.
7957         (compute_call_clobbered): Likewise.
7958         (count_mem_refs): Likewise.
7959         (compute_memory_partitions): Likewise.
7960         (compute_flow_insensitive_aliasing): Likewise.
7961         (setup_pointers_and_addressables): Likewise.
7962         (new_type_alias): Likewise.
7963         (struct used_part): Remove.
7964         (used_portions): Likewise.
7965         (struct used_part_map): Likewise.
7966         (used_part_map_eq): Likewise.
7967         (used_part_map_hash): Likewise.
7968         (free_used_part_map): Likewise.
7969         (up_lookup): Likewise.
7970         (up_insert): Likewise.
7971         (get_or_create_used_part_for): Likewise.
7972         (create_sft): Likewise.
7973         (create_overlap_variables_for): Likewise.
7974         (find_used_portions): Likewise.
7975         (create_structure_vars): Likewise.
7976         * tree.def (STRUCT_FIELD_TAG): Remove.
7977         * tree.h (MTAG_P): Adjust.
7978         (struct tree_memory_tag): Remove base_for_components and
7979         unpartitionable flags.
7980         (struct tree_struct_field_tag): Remove.
7981         (SFT_PARENT_VAR): Likewise.
7982         (SFT_OFFSET): Likewise.
7983         (SFT_SIZE): Likewise.
7984         (SFT_NONADDRESSABLE_P): Likewise.
7985         (SFT_ALIAS_SET): Likewise.
7986         (SFT_UNPARTITIONABLE_P): Likewise.
7987         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
7988         (union tree_node): Remove sft field.
7989         * alias.c (get_alias_set): Remove special handling of SFTs.
7990         * print-tree.c (print_node): Remove handling of SFTs.
7991         * tree-dump.c (dequeue_and_dump): Likewise.
7992         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
7993         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
7994         * tree-predcom.c (set_alias_info): Do not set subvars.
7995         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
7996         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
7997         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
7998         (add_vars_for_offset): Remove.
7999         (add_virtual_operand): Remove special handling of SFTs.
8000         (add_call_clobber_ops): Likewise.
8001         (add_call_read_ops): Likewise.
8002         (get_asm_expr_operands): Likewise.
8003         (get_modify_stmt_operands): Likewise.
8004         (get_expr_operands): Likewise.
8005         (add_to_addressable_set): Likewise.
8006         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
8007         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8008         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
8009         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
8010         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
8011         (tree_node_structure): Likewise.
8012         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
8013         handling of SFTs.
8014         (find_what_p_points_to): Likewise.
8015
8016 2008-05-08  Sa Liu  <saliu@de.ibm.com>
8017
8018         * config/spu/spu.md: Fixed subti3 pattern.
8019
8020 2008-05-08  Richard Guenther  <rguenther@suse.de>
8021
8022         PR middle-end/36154
8023         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8024         sure to create a representative for trailing arrays for PTA.
8025
8026 2008-05-08  Richard Guenther  <rguenther@suse.de>
8027
8028         PR middle-end/36172
8029         * fold-const.c (operand_equal_p): Two objects which types
8030         differ in pointerness are not equal.
8031
8032 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
8033
8034         * calls.c (compute_argument_block_size): Add argument tree fndecl.
8035         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
8036         (emit_library_call_value_1): Add new variable fndecl initialized by
8037         NULL_TREE. It should be the decl type of orgfun, but this information
8038         seems not to be available here, so it uses the default calling abi.
8039         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
8040         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
8041         by TARGET_RETURN_IN_MEMORY.
8042         * config/i386/i386-interix.h: Likewise.
8043         * config/i386/i386.h: Likewise.
8044         * config/i386/i386elf.h: Likewise.
8045         * config/i386/ptx4-i.h: Likewise.
8046         * config/i386/sol2-10.h: Likewise.
8047         * config/i386/sysv4.h: Likewise.
8048         * config/i386/vx-common.h: Likewise.
8049         * config/cris/cris.h: Removed #if 0 clause.
8050         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
8051         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
8052         argument.
8053         (ix86_sol10_return_in_memory): Likewise.
8054         (ix86_i386elf_return_in_memory): New.
8055         (ix86_i386interix_return_in_memory): New.
8056         * config/mt/mt-protos.h (mt_return_in_memory): New.
8057         * config/mt/mt.c: Likewise.
8058         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8059         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
8060         * config/bfin/bfin.h: Likewise.
8061         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
8062         argument.
8063         * config/bfin/bfin.c: Likewise.
8064         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8065         * config/alpha/unicosmk.h: Likewise.
8066         * config/i386/cygming.h: Likewise.
8067         * config/iq2000/iq2000.h: Likewise.
8068         * config/mips/mips.h: Likewise.
8069         * config/mn10300/mn10300.h: Likewise.
8070         * config/rs6000/rs6000.h: Likewise.
8071         * config/score/score.h: Likewise.
8072         * config/spu/spu.h: Likewise.
8073         * config/v850/v850.h: Likewise.
8074         * defaults.h: Likewise.
8075         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
8076         * expr.c (emit_block_move): Adjust use of
8077         OUTGOING_REG_PARM_STACK_SPACE.
8078         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
8079         OUTGOING_REG_PARM_STACK_SPACE.
8080         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
8081
8082 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
8083
8084         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
8085         on OMP_RETURN for OMP_FOR.
8086
8087         PR debug/35896
8088         * dwarf2out.c (dw_expand_expr, common_check): Removed.
8089         (fortran_common): New function.
8090         (gen_variable_die): Call fortran_common instead of common_check,
8091         adjust for it returning tree instead of rtx.  Formatting.
8092
8093 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
8094
8095         PR rtl/7335
8096         PR rtl/33826
8097         * see.c (see_copy_insn): Copy new pure const attributes for new call.
8098         * c-decl.c (merge_decls): Ditto.
8099         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
8100         to RTL_CONST_OR_PURE_CALL_P.
8101         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
8102         Initialized DECL_LOOPING_CONST_PURE.
8103         (process_call_operands): Set tree_side_effects properly.
8104         * tree.h (TREE_READONLY_DECL_P): Removed.
8105         (DECL_IS_PURE): Renamed to DECL_PURE_P.
8106         (DECL_LOOPING_OR_CONST_P): New macro.
8107         (struct tree_function_decl): Added looping_const_or_pure_p.
8108         (ECF_*) Renumbered.
8109         (ECF_LOOPING_OR_CONST_P): New macro.
8110         * rtlanal.c (pure_const_p): Removed.
8111         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
8112         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
8113         to RTL_CONST_CALL_P.
8114         * ipa-pure-const.c (pure_const_state_e): Added looping field.
8115         (check_decl, check_tree, check_call, scan_function): Initialize
8116         looping.
8117         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
8118         (static_execute): Set looping true for recursive functions.
8119         Undo setting state to IPA_NEITHER for recursive functions.
8120         * cse.c (cse_insn):
8121         * ifcvt.c (noce_can_store_speculate_p): Changed
8122         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
8123         RTL_CONST_OR_PURE_CALL_P.
8124         * dse.c (scan_insn): Ditto.
8125         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
8126         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
8127         RTL_CONST_OR_PURE_CALL_P.
8128         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
8129         pure_call_p to RTL_CONST_CALL_P.
8130         * gimplify.c (gimplify_call_expr): Clear side effects for
8131         non-looping pure and constant calls.
8132         * calls.c (emit_call_1): Set rtl flags from ecf flags.
8133         (flags_from_decl_or_type): Set ecf flags from decl flags.
8134         (initialize_argument_information): Turn off
8135         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
8136         Change const to pure if callee_copies is true rather than just
8137         turning off const.
8138         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
8139         way of marking pure calls.
8140         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
8141         Remove hack that was supposed to fix pr7335 and remove old
8142         way of marking pure calls.
8143         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
8144         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
8145         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
8146         RTL_CONST_OR_PURE_CALL_P.
8147         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
8148         * loop-invariant.c (find_exits, find_invariant_bb): Changed
8149         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
8150         * sched-deps.c (schedule_analyze): Ditto.
8151         * rtl.h (struct rtx_def): Use call field, unchanging field, and
8152         return_val field of calls to represent pure and const function info.
8153         (CONST_OR_PURE_CALL_P): Deleted macro.
8154         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8155         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
8156         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
8157         TREE_READONLY.
8158         * tree-optimize.c (execute_fixup_cfg): Added test for
8159         ECF_LOOPING_CONST_OR_PURE.
8160         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
8161         DECL_PURE_P.
8162         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
8163         effects for looping pure or const calls.
8164         (verify_gimple_expr): Added verification code.
8165         * config/alpha/alpha.c (alpha_legitimize_address,
8166         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
8167         RTL_CONST_CALL_P.
8168         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
8169         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
8170         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
8171         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
8172         RTL_CONST_OR_PURE_CALL_P.
8173         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
8174         and const calls to be deleted.
8175
8176 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
8177
8178         PR target/35714
8179         * config/i386/mmx.md (mmx_subv2sf3): New expander.
8180         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
8181         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
8182         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8183         to handle nonimmediate operands.
8184         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
8185         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
8186         to handle nonimmediate operands.
8187         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
8188         (mmx_pmulhrwv4hi3): New expander.  Use
8189         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8190         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
8191         (sse2_umulv1siv1di3): New expander.  Use
8192         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8193         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
8194         (mmx_eq<mode>3): New expander.  Use
8195         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8196         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
8197         (mmx_uavgv8qi3): New expander.  Use
8198         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8199         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
8200         (mmx_uavgv4hi3): New expander.  Use
8201         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8202
8203         * config/i386/sse.md
8204         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
8205         to handle nonimmediate operands.
8206         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
8207         to handle nonimmediate operands.
8208         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
8209         to handle nonimmediate operands.
8210         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
8211         to handle nonimmediate operands.
8212         (sse2_unpckhpd_exp): New expander.  Use
8213         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8214         (sse2_unpcklpd_exp): New expander.  Use
8215         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8216         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
8217         to handle nonimmediate operands.
8218         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
8219         to handle nonimmediate operands.
8220         (*sse2_<plusminus_insn><mode>3): Rename from
8221         sse2_<plusminus_insn><mode>3 insn pattern.
8222         (sse2_<plusminus_insn><mode>3): New expander.  Use
8223         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8224         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
8225         (sse2_umulv2siv2di3): New expander.  Use
8226         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8227         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
8228         (sse4_1_mulv2siv2di3): New expander.  Use
8229         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8230         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
8231         (sse2_pmaddwd): New expander.  Use
8232         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8233         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
8234         (sse2_eq<mode>3): New expander.  Use
8235         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8236         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
8237         (sse4_1_eqv2di3): New expander.  Use
8238         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8239         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8240         (sse2_uavgv16qi3): New expander.  Use
8241         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8242         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8243         (sse2_uavgv16qi3): New expander.  Use
8244         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8245         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
8246         (sse2_uavgv8hi3): New expander.  Use
8247         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8248         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
8249         (ssse3_pmulhrswv8hi3): New expander.  Use
8250         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8251         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
8252         (ssse3_pmulhrswv4hi3): New expander.  Use
8253         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8254
8255         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
8256         (<sse>_vmmul<mode>3): Ditto.
8257         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
8258         (divv2df3): Ditto.
8259         (ssse3_pmaddubsw128): Use register_operand for operand 1.
8260         (ssse3_pmaddubsw): Ditto.
8261
8262         * config/i386/i386.c (struct_builtin_description)
8263         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
8264         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
8265         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
8266         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
8267         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
8268         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
8269         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
8270         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
8271         (ix86_fixup_binary_operands): Assert that src1
8272         and src2 must have the same mode when swapped.
8273         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
8274         and ix86_binary_operator_ok.  Do not force operands in registers
8275         when optimizing.
8276
8277 2008-05-07  Jan Hubicka  <jh@suse.cz>
8278
8279         * cgraph.c (dump_cgraph_node): Update.
8280         * cgraph.h (cgraph_local_info): Break out inline summary.
8281         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
8282         hook.
8283         * ipa-inline (inline_summary): New accestor function.
8284         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
8285         cgraph_decide_inlining, compute_inline_parameters): Update.
8286         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
8287
8288 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8289
8290         Cleanup ColdFire scheduling support and add V4 pipeline model.
8291
8292         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
8293         (define_attr cpu): Add cfv4 value.
8294         (define_attr type, define_attr type1): Merge into a single 'type'
8295         attribute.  Update all uses.
8296         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
8297         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
8298         Update all uses.
8299         (define_attr opx_mem, define_attr opy_mem): Remove.
8300         (define_attr op_mem): Clean up, update comment.
8301         (define_attr size): Use specific values instead of general int.
8302         (define_attr guess, define_attr split): Remove.  Update all uses.
8303         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
8304         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
8305         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
8306         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
8307         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
8308         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
8309         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
8310         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
8311         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
8312         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
8313         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
8314         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
8315         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
8316         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
8317         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
8318         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
8319         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
8320         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
8321         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
8322         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
8323         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
8324         Update or set attributes.
8325         (stack_tie): New fake instruction.
8326
8327         * config/m68k/m68k.h (TUNE_CFV4): New macro.
8328         (m68k_sched_attr_size): Update declaration.
8329         (m68k_sched_attr_type2): Remove.
8330         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
8331         Declare new bypass predicates.
8332
8333         * config/m68k/m68k.c (m68k_sched_issue_rate,
8334         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
8335         implementations.
8336         (TARGET_SCHED_ISSUE_RATE,
8337         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
8338         (override_options): Handle scheduling for ColdFire V4 core.
8339         (m68k_expand_prologue): Emit stack_tie.
8340         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
8341         'OP_TYPE_FPN'.  Update all uses.
8342         (sched_guess_p): Remove.
8343         (sched_address_type): Handle symbolic addresses.
8344         (sched_get_operand): New static function.
8345         (sched_operand_type): Merge into sched_attr_op_type.
8346         (sched_attr_op_type): Handle FP registers, handle quick constants,
8347         update.
8348         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
8349         (m68k_sched_attr_size): Update.  Move logic to ...
8350         (sched_get_attr_size_int): New static function.
8351         (sched_get_opxy_mem_type): New static function.
8352         (m68k_sched_attr_op_mem): Update.
8353         (m68k_sched_attr_type2): Remove.
8354         (sched_cfv4_bypass_data): New static variable.
8355         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
8356         (m68k_sched_issue_rate): Implement scheduler hook.
8357         (struct _sched_ib: enabled_p): New field.
8358         (m68k_sched_variable_issue): Update.  Handle V4.
8359         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
8360         sched_dump_class_func_t, sched_dump_split_class,
8361         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
8362         sched_dump_dfa_class, m68k_sched_dump): Remove.
8363         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
8364         hook.
8365         (m68k_sched_init_global): Remove statisctics dumping, introduce
8366         sanity check that all instructions have pipeline reservations.  Handle
8367         ColdFire V4 core.
8368         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8369         Handle ColdFire V4 core.
8370         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
8371         New static functions.
8372         (m68k_sched_address_bypass_p): New bypass predicate.
8373         (sched_get_indexed_address_scale): New static function.
8374         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
8375
8376         * cf.md: Update comments.
8377         (define_attr type2): Remove.  Use 'type' attribute instead.
8378         Update all uses.
8379         (cf_ib): Rename to cfv123_ib.  Update all uses.
8380         (cf_oep): Rename to cfv123_oep.  Update all uses.
8381         (cf_chr): Rename to cfv123_chr.  Update all uses.
8382         (cf_mem): Rename to cfv123_mem.  Update all uses.
8383         (cf_mac): Move to more appropriate place.
8384         (cfv123_guess): New automaton and cpu_unit.
8385         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
8386         Update uses of 'size' attribute.  Handle before reload scheduling.
8387         (cfv123_guess): New dummy reservation for unhandled instructions.
8388         (cfv4_*): Pipeline description of ColdFire V4 core.
8389         (ignore): New reservation to handle 'ignore' type.
8390
8391 2008-05-07  Ian Lance Taylor  <iant@google.com>
8392
8393         PR middle-end/36013
8394         * gimplify.c (find_single_pointer_decl_1): Don't look through
8395         indirections.
8396         (find_single_pointer_decl): Adjust comments.
8397
8398 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
8399
8400         PR middle-end/36137
8401         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
8402         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
8403
8404         PR middle-end/36106
8405         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
8406         integral type rather than floating point, then VIEW_CONVERT_EXPR
8407         to the floating point type.
8408
8409 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
8410
8411         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
8412         TFmode op0 to register.
8413
8414 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
8415
8416         * c-decl.c (grokdeclarator): Comment typo.
8417
8418 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
8419
8420         * tree-flow.h: Remove prototype for computed_goto_p.
8421         * tree-cfg.c (computed_goto_p): Make static.
8422
8423 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
8424
8425         PR target/35657
8426         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
8427         (contains_aligned_value_p): This.  Handle _Decimal128.
8428         (ix86_function_arg_boundary): Only align _Decimal128 to its
8429         natural boundary and handle it properly.
8430
8431 2008-05-06  Martin Jambor  <mjambor@suse.cz>
8432
8433         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
8434         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
8435         (ipcp_method_set_orig_node): Removed.
8436         (ipcp_cval_get_cvalue_type): Removed.
8437         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
8438         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
8439         (ipcp_cval_set_cvalue_type): Removed.
8440         (ipcp_cval_get_cvalue): Removed.
8441         (ipcp_cval_set_cvalue): Removed.
8442         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
8443         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
8444         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
8445         (ipcp_cval_meet): Renamed to ipa_lattice_meet
8446         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
8447         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
8448         (ipcp_get_ith_lattice): Changed parameters.
8449         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
8450         (ipcp_lattice_from_jfunc): Changed parameters.
8451         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
8452         (ipcp_method_cval_print): Added temporary variable info.
8453         (ipcp_redirect): Removed already unused local variable caller.
8454         (ipcp_redirect): New temporary variable orig_callee_info
8455         (ipcp_redirect): Removed newly unused local variable callee.
8456         (ipcp_redirect): Removed (a bit confusing) local variable type.
8457         (ipcp_insert_stage): Added local variable info.
8458         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
8459         renamed too
8460         (ipcp_formal_create): Removed.
8461         (ipcp_method_cval_set): Removed.
8462         (ipcp_propagate_stage): Renamed lattice variables.
8463         (ipcp_method_cval_set_cvalue_type): Removed.
8464         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
8465         (ipcp_print_all_lattices): Changed printed strings to refer to
8466         lattices rather than cvals.
8467         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
8468         (ipcp_propagate_const): Changed formal parameters.
8469         (build_const_val): Changed formal parameters.
8470         (ipcp_insert_stage): Removed useless variable cvalue
8471         (build_const_val): Changed formal parameters.
8472         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
8473         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
8474         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
8475         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
8476         (ipcp_print_func_profile_counts): Changed string from "method" to
8477         "function"
8478         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
8479         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
8480         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
8481         (ipcp_structures_print): Renamed to ipcp_print_all_structures
8482         (ipcp_profile_print): Renamed to ipcp_print_profile_data
8483         (ipcp_lat_is_const): Changed parameters and made inline.
8484         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
8485         (ipcp_redirect): Renamed to ipcp_need_redirect_p
8486         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
8487         the predicate condition directly
8488         (ipcp_propagate_stage): Added local variable args. Removed local
8489         variable callee.  (Both are mere code simplifications.)
8490         (ipcp_method_dont_insert_const): Renamed to
8491         ipcp_node_not_modifiable_p.
8492         (ipcp_node_not_modifiable_p): Made inline.
8493         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
8494         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
8495         (ipcp_print_all_lattices): Removed variable cvalue
8496         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
8497         Updated comments.
8498
8499 2008-05-06  Olivier Hainque  <hainque@adacore.com>
8500
8501         * tree-sra.c (try_instantiate_multiple_fields): Early return
8502         if field has POINTER_TYPE.
8503
8504 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
8505
8506         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
8507         by using 'q' specifier for instruction.
8508         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
8509
8510 2008-05-06  Anatoly Sokolov <aesok@post.ru>
8511
8512         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8513         Change mode of zero_extract from QImode to HImode.
8514         (sign bit tests peepholes): (Ditto.).
8515
8516 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
8517
8518         * config/i386/mmx.md: Remove double backslashes from asm templates.
8519         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
8520         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8521         to handle nonimmediate operands.
8522         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
8523         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8524         to handle nonimmediate operands.
8525         (*mmx_<code>v2sf3_finite): New insn pattern.
8526         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
8527         (mmx_<code>v2sf3): New expander.  Use
8528         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8529         (mmx_<plusminus_insn><mode>3): New expander.  Use
8530         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8531         (*mmx_<plusminus_insn><mode>3): New insn pattern.
8532         (mmx_add<mode>3): Removed.
8533         (mmx_ssadd<mode>3): Ditto.
8534         (mmx_usadd<mode>3): Ditto.
8535         (mmx_sub<mode>3): Ditto.
8536         (mmx_sssub<mode>3): Ditto.
8537         (mmx_ussub<mode>3): Ditto.
8538         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
8539         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
8540         to handle nonimmediate operands.
8541         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
8542         insn pattern.
8543         (mmx_smulv4hi3_highpart): New expander.  Use
8544         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8545         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
8546         insn pattern.
8547         (mmx_umulv4hi3_highpart): New expander.  Use
8548         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8549         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
8550         (mmx_<code>v4hi3): New expander.  Use
8551         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8552         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
8553         (mmx_<code>v8qi3): New expander.  Use
8554         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8555         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
8556         (mmx_<code><mode>3): New expander.  Use
8557         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8558
8559 2008-05-05  Jan Hubicka  <jh@suse.cz>
8560
8561         PR tree-optimization/36118
8562         * passes.c (pass_init_dump_file): Fix dump header.
8563
8564 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8565
8566         PR middle-end/36141
8567         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
8568         VCE for function decls.
8569
8570 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8571
8572         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
8573
8574 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8575
8576         * config/i386/i386.md (sat_plusminus): New.
8577         (plusminus_insn): Likewise.
8578         (plusminus_mnemonic): Likewise.
8579         (addsub): Removed.
8580         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
8581         (*<addsub><mode>3_cc_overflow): Renamed to ...
8582         (*<plusminus_insn><mode>3_cc_overflow): This.
8583         (*<addsub>si3_zext_cc_overflow): Renamed to ...
8584         (*<plusminus_insn>si3_zext_cc_overflow): This.
8585
8586         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
8587         (<plusminus_insn><mode>3): This.
8588         (*<addsub><mode>3): Renamed to ...
8589         (*<plusminus_insn><mode>3): This.
8590         (<sse>_vm<addsub><mode>3): Renamed to ...
8591         (<sse>_vm<plusminus_insn><mode>3): This.
8592         (sse3_h<addsub>v4sf3): Renamed to ...
8593         (sse3_h<plusminus_insn>v4sf3): This.
8594         (sse3_h<addsub>v2df3): Renamed to ...
8595         (sse3_h<plusminus_insn>v2df3): This.
8596         (<plusminus_insn><mode>3): New.
8597         (*<plusminus_insn><mode>3): Likewise.
8598         (sse2_<plusminus_insn><mode>3): Likewise.
8599         (add<mode>): Removed.
8600         (*add<mode>3): Likewise.
8601         (sse2_ssadd<mode>3): Likewise.
8602         (sse2_usadd<mode>3): Likewise.
8603         (sub<mode>3): Likewise.
8604         (*sub<mode>3): Likewise.
8605         (sse2_sssub<mode>3): Likewise.
8606         (sse2_ussub<mode>3): Likewise.
8607
8608 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
8609
8610         * gthr-single.h: Add in required interface elements as per gthr.h.
8611         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8612         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8613         Generalize UNUSED macro.
8614         (__gthread_once): Add.
8615         (__gthread_key_create): Add.
8616         (__gthread_key_delete): Add.
8617         (__gthread_getspecific): Add.
8618         (__gthread_setspecific): Add.
8619
8620 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
8621
8622         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8623         the same size types for the indirect reference on the rhs, then
8624         create a VCE.
8625
8626 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
8627
8628         * config/i386/i386.md
8629         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8630         one insn template instead of template series.
8631         (*xordi_1_rex64): Ditto.
8632         (*xordi_2_rex64): Ditto.
8633
8634 2008-05-05  Ira Rosen  <irar@il.ibm.com>
8635
8636         PR tree-optimization/36119
8637         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
8638         in case of SLP.
8639
8640 2008-06-04  Jan Hubicka  <jh@suse.cz>
8641
8642         tree-optimization/36100
8643         * tree-pass.h (pass_O0_always_inline): Declare.
8644         * ipa-inline.c (inline_transform): Remove dead code.
8645         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8646         pass_O0_always_inline): New.
8647         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
8648
8649 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
8650
8651         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
8652         mnemonic in this_param move for TARGET_64BIT.
8653
8654 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
8655
8656         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
8657         (*strmovsi_rex_1): Ditto.
8658         (*strsetsi_1): Ditto.
8659         (*strsetsi_rex_1): Ditto.
8660
8661         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
8662         adddicc expanders using SWI mode iterator.
8663
8664 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8665
8666         PR target/36121
8667         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
8668         argument handling.
8669
8670 2008-05-04  David S. Miller  <davem@davemloft.net>
8671
8672         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
8673         (sparc*-*-linux*): Use linux.h in tm_file.
8674         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
8675         compiler defaulting to 32-bit.
8676         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
8677         no longer needed.
8678         * config/sparc/linux.h: Remove definitions now obtained
8679         properly from linux.h
8680         * config/sparc/linux64.h: Likewise.
8681         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
8682         don't want this setting for 32-bit builds in a biarch compiler.
8683         * doc/install.texi: Add sparc-linux to list of targets
8684         supporting --enable-targets=all.
8685
8686 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
8687
8688         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
8689
8690 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
8691
8692         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
8693         after V4SI_FTYPE_V8HI.
8694         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
8695         case V4SI_FTYPE_V2DF.
8696
8697 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
8698
8699         * doc/invoke.texi (max-flow-memory-locations): Removed.
8700         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
8701
8702 2008-05-03  Richard Guenther  <rguenther@suse.de>
8703
8704         PR middle-end/34973
8705         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
8706
8707 2008-05-02  David S. Miller  <davem@davemloft.net>
8708
8709         * config.gcc (need_64bit_hwint): Document libcpp dependency.
8710
8711 2008-05-02  Simon Baldwin <simonb@google.com>
8712
8713         PR bootstrap/36108
8714         * c-common.h (warn_array_subscript_range): Removed.
8715         * c-common.c (warn_array_subscript_range): Ditto.
8716         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
8717         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
8718
8719 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8720
8721         * config/i386/i386.c (ix86_special_builtin_type): New.
8722         (bdesc_special_args): Likewise.
8723         (ix86_expand_special_args_builtin): Likewise.
8724         (ix86_init_mmx_sse_builtins): Updated.
8725         (ix86_expand_builtin): Updated.
8726         (ix86_expand_store_builtin): Removed.
8727         (ix86_expand_unop_builtin): Likewise.
8728
8729         * config/i386/mm3dnow.h (__v2sf): Moved to ...
8730         * config/i386/mmintrin.h (__v2sf): Here.
8731
8732         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
8733         const __v2sf.
8734         (_mm_loadl_pi): Likewise.
8735         (_mm_storeh_pi): Replace __v2si with __v2sf.
8736         (_mm_storel_pi): Likewise.
8737
8738         * doc/extend.texi: Correct __builtin_ia32_loadhps,
8739         __builtin_ia32_loadlps, __builtin_ia32_storehps,
8740         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
8741         __builtin_ia32_loadlpd.
8742
8743 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8744
8745         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
8746         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
8747         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
8748         (ix86_init_mmx_sse_builtins): Updated.
8749         (ix86_expand_args_builtin): Likewise.
8750         (ix86_expand_builtin): Likewise.
8751         (ix86_expand_unop1_builtin): Renamed to ...
8752         (ix86_expand_unop_vec_merge_builtin): This.
8753
8754 2008-05-01  Jan Hubicka  <jh@suse.cz>
8755
8756         PR bootstrap/36100
8757         * ipa-inline.c (inline_generate_summary): Make static.
8758         (inline_transform): Do not call inlining at -O0; make static.
8759         * passes.c (execute_todo): Add sanity check.
8760         (execute_one_ipa_transform_pass): Execute proper flags.
8761
8762 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
8763
8764         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
8765         (DECL_NONADDRESSABLE_P): Likewise.
8766         * alias.c (record_component_aliases): Fix comment.
8767
8768 2008-05-01  Simon Baldwin <simonb@google.com>
8769
8770         * c-common.h (warn_array_subscript_range): New function.
8771         * c-common.c (warn_array_subscript_range): Ditto.
8772         * tree-vrp.c (check_array_ref): Corrected code to agree with
8773         comment, ignoring only arrays of size 0 or size 1.
8774         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
8775
8776 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8777
8778         * config/i386/i386.c (ix86_builtin_type): Replace
8779         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
8780         (bdesc_args): Updated.
8781         (ix86_init_mmx_sse_builtins): Likewise.
8782         (ix86_expand_args_builtin): Likewise.
8783
8784         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
8785         with __v1di.
8786
8787         * doc/extend.texi: Correct __builtin_ia32_palignr.
8788
8789 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8790
8791         PR target/36095
8792         * config/i386/i386.c (bdesc_crc32): Removed.
8793         (ix86_expand_crc32): Likewise.
8794         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
8795         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
8796         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
8797         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
8798         UINT_FTYPE_UINT_UCHAR.
8799         (bdesc_args): Updated. Add crc32 builtins.
8800         (ix86_init_mmx_sse_builtins): Updated.
8801         (ix86_expand_args_builtin): Updated to support subreg.
8802
8803         * doc/extend.texi: Correct __builtin_ia32_crc32di.
8804
8805 2008-05-01  Jan Hubicka  <jh@suse.cz>
8806
8807         * tree-pass.h (opt_pass): Add IPA_PASS.
8808         (varpool_node, cgraph_node): Forward declare.
8809         (ipa_opt_pass): Define.
8810         (pass_ipa_inline): Turn into ipa_opt_pass.
8811         (pass_apply_inline): Remove.
8812         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
8813         (apply_inline): Turn into ....
8814         (inline_transform): ... this one.
8815         (inline_generate_summary): New function.
8816         (pass_apply_inline): Remove.
8817         * function.h (ipa_opt_pass): Forward declare structure; typedef;
8818         vector.
8819         (struct function): Add ipa_transforms_to_apply.
8820         * passes.c (register_one_dump_file): Work on IPA_PASS.
8821         (init_optimization_passes): Remove pass_inline_parameters and
8822         pass_apply_inline.
8823         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
8824         (execute_one_pass) ... here; apply transforms when possible.
8825         (add_ipa_transform_pass, execute_ipa_summary_asses,
8826         execute_one_ipa_transform_pass): New.
8827         (execute_ipa_pass_list): Update for IPA_PASS type.
8828
8829 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8830
8831         * config/i386/i386.c (ix86_builtin_type): Add
8832         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
8833         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
8834         (bdesc_args): Add SSE4a builtins.
8835         (ix86_init_mmx_sse_builtins): Updated.
8836         (ix86_expand_args_builtin): Likewise.
8837         (ix86_expand_builtin): Likewise.
8838
8839 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8840
8841         * config/i386/i386.c (ix86_builtin_type): Add
8842         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
8843         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
8844         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
8845         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
8846         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
8847         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
8848         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
8849         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
8850         and DI_FTYPE_DI_DI_INT.
8851         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
8852         (ix86_init_mmx_sse_builtins): Updated.
8853         (ix86_expand_args_builtin): Likewise.
8854         (ix86_expand_builtin): Likewise.
8855         (ix86_expand_binop_imm_builtin): Removed.
8856
8857         * doc/extend.texi: Correct __builtin_ia32_palignr128.
8858
8859 2008-04-30  Richard Guenther  <rguenther@suse.de>
8860
8861         PR tree-optimization/32921
8862         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
8863
8864 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
8865
8866         * config/arm/arm.c (arm_unwind_emit): Use
8867         crtl->all_throwers_are_sibcalls instead of
8868         cfun->all_throwers_are_sibcalls.
8869         (arm_output_fn_unwind): Likewise.
8870         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
8871         instead of cfun->uses_pic_offset_table.
8872         (frv_expand_prologue): Likewise.
8873         (frv_frame_pointer_required): Likewise.
8874         (frv_expand_fdpic_call): Likewise.
8875         (frv_emit_movsi): Likewise.
8876         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
8877         cfun->returns_pcc_struct instead of
8878         current_function_returns_pcc_struct.
8879         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
8880         instead of cfun->calls_eh_return.
8881         (m32c_pushm_popm): Likewise.
8882         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
8883         "extern" declaration.
8884
8885 2008-04-30  Richard Guenther  <rguenther@suse.de>
8886
8887         PR tree-optimization/21636
8888         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
8889         constant address.
8890         (evaluate_stmt): Print the likely value.
8891         (ccp_visit_stmt): Avoid excessive vertical spacing.
8892
8893 2008-04-30  Rafael Espindola  <espindola@google.com>
8894
8895         * builtins.c (fold_call_expr): Return realret.
8896         * tree-ssa-threadedge.c
8897         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
8898         __builtin_object_size.
8899
8900 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
8901
8902         * gcc.c (wrapper_string): New variable.
8903         (insert_wrapper): New function.
8904         (execute): New option -wrapper.
8905         * doc/invoke.texi (Overall Options): New driver option -wrapper.
8906
8907 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
8908
8909         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
8910         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
8911         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
8912         from...
8913         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
8914         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
8915         config/rs6000/e500crtres64gprctr.asm,
8916         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
8917         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
8918         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
8919         config/rs6000/e500crtsav64gprctr.asm,
8920         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
8921         config/rs6000/e500crtsavg64gprctr.asm: New files.
8922         * config/rs6000/t-ppccomm: Add build rules for new files.
8923         (LIB2FUNCS_STATIC_EXTRA): Add new files.
8924         * config/rs6000/t-netbsd: Add build rules for new files.
8925         (LIB2FUNCS_STATIC_EXTRA): New variable.
8926         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
8927         (CRTSAVRES_DEFAULT_SPEC): Likewise.
8928         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
8929
8930 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
8931
8932         * config/i386/i386.c (ix86_builtin_type): Add
8933         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
8934         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
8935         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
8936         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
8937         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
8938         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
8939         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
8940         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
8941         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
8942         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
8943         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
8944         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
8945         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
8946         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
8947         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
8948         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
8949         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
8950         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
8951         V1DI_FTYPE_V2SI_V2SI.
8952         (bdesc_2arg): Moved to ...
8953         (bdesc_args): Here.
8954         (ix86_init_mmx_sse_builtins): Updated.
8955         (ix86_expand_args_builtin): Updated.  Take a pointer
8956         to const struct builtin_description.  Handle comparison
8957         builtin functions.
8958         (ix86_expand_sse_compare): Take a new argument for swapping operands.
8959         (ix86_expand_builtin): Updated.
8960
8961         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
8962         (ssse3_pmaddubsw128): This.
8963         (ssse3_pmaddubswv4hi3): Renamed to ...
8964         (ssse3_pmaddubsw): This.
8965
8966         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
8967         (__builtin_ia32_packssdw128): Likewise.
8968         (__builtin_ia32_packuswb128): Likewise.
8969         (__builtin_ia32_pmaddubsw): Likewise.
8970         (__builtin_ia32_pmaddubsw128): Likewise.
8971
8972 2008-04-30  Richard Guenther  <rguenther@suse.de>
8973
8974         PR tree-optimization/14847
8975         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
8976         (recognize_bits_test): Use it.
8977         (recognize_single_bit_test): Likewise.
8978
8979 2008-04-30  Martin Jambor  <mjambor@suse.cz>
8980
8981         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
8982         instead of setting number of formal parameters to zero.
8983         (ipcp_init_stage): Do not set the number of actual parameters to zero
8984         either.
8985         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
8986         which are called with variable number of arguments.
8987         (ipcp_insert_stage): Explicitely skipping all nodes which are
8988         called with variable number of arguments.
8989         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
8990         number of parameters.
8991
8992         * ipa-prop.h (struct ipa_node_params): Added flag
8993         called_with_var_arguments
8994         (ipa_set_param_count): Added.  Changed sole setter to use it.
8995         (ipa_get_param_count): Added.  All readers of param_count
8996         converted to use it instead.
8997         (ipa_set_called_with_variable_arg): Added.
8998         (ipa_is_called_with_var_arguments): Added.
8999         (ipa_get_ith_param): Added.  All readers of param_decls converted
9000         to use it instead.
9001         (ipa_set_cs_argument_count): Added, sole writer to argument_count
9002         changed to use it.
9003         (ipa_get_cs_argument_count): Added, all readers of argument_count
9004         changed to cal it.
9005         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
9006         to use it.
9007
9008         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
9009         (struct ipcp_lattice): Renamed cval_type to type
9010         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
9011
9012         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
9013         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
9014         (ipcp_insert_stage): Changed the type of variable cvalue to tree
9015         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
9016         (build_const_val): Changed the type of parameter cvalue to tree
9017         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
9018         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
9019
9020         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
9021         constant
9022
9023         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
9024         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
9025         (ipa_add_method): Renamed to ipa_push_func_to_list
9026         (ipa_remove_method): Renamed to ipa_pop_func_from_list
9027         (ipa_callsite_param_count): Removed.
9028         (ipa_callsite_param_count_set): Removed.
9029         (ipa_callsite_param): Removed.
9030         (ipa_callsite_callee): Removed.
9031         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
9032         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
9033         (ipa_method_formal_count): Removed.
9034         (ipa_method_formal_count_set): Removed.
9035         (ipa_method_get_tree): Removed.
9036         (ipa_method_tree_map_create): Removed.
9037         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
9038         (ipa_create_param_decls_array): Creates the array itself
9039         (ipa_create_param_decls_array): Temporary variable info instead of
9040         a few dereferences.
9041         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
9042         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
9043         (get_type): Removed.
9044         (ipa_jf_get_info_type): Removed.
9045         (ipa_node_create): Renamed to ipa_create_node_params
9046         (ipa_free): Renamed to ipa_free_all_node_params
9047         (ipa_nodes_create): Renamed to ipa_create_all_node_params
9048         (ipa_edges_create): Renamed to ipa_create_all_edge_args
9049         (ipa_edges_free): Renamed to ipa_free_all_edge_args
9050         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
9051         (ipa_free_all_node_params): Deallocation to jump_functions moved to
9052         ipa_free_all_edge_args
9053         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
9054         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
9055         (ipa_create_methodlist_node): Removed.
9056         (ipa_methodlist_method): Removed.
9057         (ipa_methodlist_method_set): Removed.
9058         (ipa_methodlist_next_method): Removed.
9059         (ipa_methodlist_next_method_set): Removed.
9060         (ipa_method_is_modified): Removed.
9061         (ipa_method_modify_create): Removed.
9062         (ipa_method_modify_init): Temporary variable info instead of a few
9063         dereferences.
9064         (ipa_detect_param_modifications): Temporary variable info instead of
9065         a few dereferences.
9066         (ipa_compute_jump_functions): Temporary variable info instead of
9067         a few dereferences.
9068         (ipa_method_modify_set): Removed.
9069         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
9070         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
9071         than craph_node as the first parameter.
9072         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
9073         (ipa_method_modify_init): Removed.
9074         (ipa_compute_jump_functions): Added a temp variable instead of
9075         repeatadly dereferencing the cgraph_edge.aux pointer
9076         (ipa_callsite_param_set_type): Removed.
9077         (ipa_compute_jump_functions): i renamed to index and moved to
9078         an inner block
9079         (ipa_callsite_param_set_info_type_formal): Removed.
9080         (ipa_callsite_param_set_info_type): Removed.
9081         (ipa_callsite_param_map_create): Removed.
9082         (ipa_callsite_tree): Removed.
9083         (ipa_callsite_caller): Removed.
9084         (ipa_pop_func_from_list): return_method removed to return_func
9085
9086         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
9087         prefixed all values with IPA_. Changed all users.
9088         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
9089         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
9090         and FORMAL_IPATYPE IPA_PASS_THROUGH.
9091         (union parameter_info): Renamed to jump_func_value.
9092         (union jump_func_value): Renamed value to constant
9093         (struct ipa_jump_func): Renamed info_type to value
9094         (struct ipa_node): Renamed to ipa_node_params
9095         (struct ipa_node_params): Renamed ipa_arg_num to param_count
9096         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
9097         (struct ipa_node_params): Renamed ipa_mod to modified_flags
9098         (struct ipa_edge): Renamed to ipa_edge_args
9099         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
9100         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
9101         (struct ipa_methodlist): Renamed to ipa_func_list
9102         (struct ipa_func_list): method_p renamed to node, next_method
9103         renamed to next
9104         (ipa_methodlist_p): Removed, switched all users to struct pointer
9105         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
9106
9107 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
9108
9109         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
9110         (rs6000_emit_epilogue): Use backchain to restore only when we
9111         have a large frame.  Make use of frame pointer to restore if we
9112         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
9113
9114 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
9115
9116         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
9117         Add mode to zero_extract.
9118         (sign bit tests peepholes): (Ditto.).
9119
9120 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
9121
9122         * config/i386/i386.c (ix86_builtins): Replace Prescott New
9123         Instructions in comments with SSE3.
9124         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
9125         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
9126         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
9127         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
9128         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
9129         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
9130         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
9131         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
9132         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
9133         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
9134         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
9135         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
9136         (bdesc_sse_args): Renamed to ...
9137         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
9138         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
9139         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
9140         IX86_BUILTIN_FABSQ.
9141         (bdesc_1arg): Moved to ...
9142         (bdesc_args): Here.
9143         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
9144         Instructions in comments with SSE3.
9145         (ix86_expand_sse_operands_builtin): Renamed to ...
9146         (ix86_expand_args_builtin): This.  Updated.
9147         (ix86_expand_unop1_builtin): Update comments.
9148         (ix86_expand_builtin): Updated.
9149
9150 2008-04-29  Richard Guenther  <rguenther@suse.de>
9151
9152         PR tree-optimization/36078
9153         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9154         Update virtual SSA form after cleaning up the CFG.
9155
9156 2008-04-29  Richard Guenther  <rguenther@suse.de>
9157
9158         PR middle-end/15255
9159         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
9160
9161 2008-04-29  Richard Guenther  <rguenther@suse.de>
9162
9163         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
9164         (compute_may_aliases): Do not call finalize_ref_all_pointers.
9165         (compute_flow_insensitive_aliasing): Do not treat
9166         PTR_IS_REF_ALL pointers special.
9167         (get_smt_for): Likewise.
9168         (may_alias_p): Re-structure.
9169         (is_escape_site): A ref-all pointer conversion is not an escape site.
9170         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
9171         PTR_IS_REF_ALL pointers special.
9172         * tree-ssa-structalias.h (struct alias_info): Remove
9173         ref_all_symbol_mem_tag field.
9174         (PTR_IS_REF_ALL): Remove.
9175
9176 2008-04-29  Richard Guenther  <rguenther@suse.de>
9177
9178         PR middle-end/36077
9179         * fold-const.c (extract_muldiv_1): In combining division constants
9180         make sure to never overflow.
9181
9182 2008-04-29  Nick Clifton  <nickc@redhat.com>
9183
9184         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
9185
9186 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9187
9188         PR bootstrap/35169
9189         * optc-gen.awk: Work around HP-UX/IA awk bug.
9190
9191 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
9192
9193         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
9194         2008-04-25 commit.
9195
9196 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
9197
9198         PR target/36073
9199         * config/i386/i386.md
9200         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
9201         Change operand 1 predicate to nonimmediate_operand.
9202
9203 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
9204
9205         PR debug/36060
9206         * dwarf2out.c (struct die_struct): Mark as chain_circular through
9207         die_sub field.
9208         * gengtype.c (walk_type, write_func_for_structure): Handle
9209         chain_circular.
9210         * doc/gty.texi: Document chain_circular.
9211
9212 2008-04-28  Richard Guenther  <rguenther@suse.de>
9213
9214         PR tree-optimization/36066
9215         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
9216         SCEV and loop.
9217
9218 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
9219
9220         PR target/36064
9221         * config/i386/i386.md
9222         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
9223         Use match_scratch instead of match_operand for operands 3 and 4.
9224
9225 2008-04-27  Richard Guenther  <rguenther@suse.de>
9226
9227         PR tree-optimization/18754
9228         PR tree-optimization/34223
9229         * tree-pass.h (pass_complete_unrolli): Declare.
9230         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
9231         loop size before and after unconditionally of UL_NO_GROWTH in effect.
9232         Rewrite loop into loop closed SSA form if it is not already.
9233         (tree_unroll_loops_completely): Re-structure to iterate over
9234         innermost loops with intermediate CFG cleanups.
9235         Unroll outermost loops only if requested or the code does not grow
9236         doing so.
9237         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
9238         loops are available.
9239         (tree_vectorize): Instead do so here.
9240         (tree_complete_unroll): Also unroll outermost loops.
9241         (tree_complete_unroll_inner): New function.
9242         (gate_tree_complete_unroll_inner): Likewise.
9243         (pass_complete_unrolli): New pass.
9244         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
9245         uses outside of the loop.
9246         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
9247         form if it is available.
9248         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
9249         * passes.c (init_optimization_passes): Schedule complete inner
9250         loop unrolling pass before the first CCP pass after final inlining.
9251
9252 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
9253
9254         * targhooks.h (default_emutls_var_fields,
9255         default_emutls_var_init): Declare.
9256         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
9257         * target.h (struct gcc_target): Add struct emutls member.
9258         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
9259         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
9260         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
9261         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
9262         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
9263         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
9264         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
9265         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
9266         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
9267         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
9268         emit debug information.
9269         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
9270         * varasm.c: Include targhooks.h.
9271         (emutls_object_section, emutls_tmpl_section): New.
9272         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
9273         (EMUTLS_SEPARATOR): New.
9274         (prefix_name): New.
9275         (get_emutls_object_name): New.
9276         (default_emutls_var_fields): New, broken out of ...
9277         (get_emutls_object_type): ... here.  Adjust to use target hooks.
9278         (get_emutls_init_templ_addr): Adjust to use target hooks.
9279         (emutls_decl): Adjust to use target hooks.
9280         (emutls_finish): Likewise.
9281         (default_emutls_var_init): New, broken out of ...
9282         (assemble_variable): ... here.  Adjust to use target hooks.
9283         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
9284         SECCAT_EMUTLS_TMPL.
9285         * c-common.c (handle_section_attribute): Prevent overriding
9286         sections for emulated tls with special sections.
9287         * config/i386/i386.c (x86_64_elf_select_section): Add
9288         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
9289         (x86_64_elf_unique_section): Likewise.
9290         * config/vxworks.c: Include tree.h.
9291         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
9292         (vxworks_override_options): Set TLS scheme.
9293         * doc/tm.texi (Emulated TLS): New node.
9294
9295 2008-04-26  Simon Baldwin <simonb@google.com>
9296
9297         PR c/35652
9298         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
9299         with propagated string constants.
9300
9301 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
9302
9303         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
9304         constraint for operand 2 when operand 0 is memory operand.
9305         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
9306         operand 0 is memory operand.
9307         (fix_trunc<mode>_i387_with_temp): Ditto.
9308         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
9309         operand 2 when operand 1 is memory operand.
9310         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
9311         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
9312         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
9313         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
9314         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
9315         operands 2,3 and 4 when operand 1 is memory operand.
9316         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
9317         is memory operand.
9318         (fistdi2_floor_with_temp): Ditto.
9319         (fist<mode>2_floor_with_temp): Ditto.
9320         (fistdi2_ceil_with_temp): Ditto.
9321         (fist<mode>2_ceil_with_temp): Ditto.
9322         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
9323
9324 2008-04-26  David Daney  <ddaney@avtrex.com>
9325
9326         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
9327         unspec_volitile.
9328         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
9329         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
9330         UNSPEC_UPDATE_GOT_VERSION): Renumber.
9331         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
9332         (compare_and_swap_12): New insn.
9333         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
9334         * config/mips/mips.c (mips_force_binary): New function.
9335         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
9336         (mips_expand_compare_and_swap_12): New function.
9337         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
9338
9339 2008-04-25  Jan Hubicka  <jh@suse.cz>
9340
9341         PR testsuite/35843
9342         * cfgexpand.c (pass_expand): Turn into RTL pass.
9343         * passes.c (execute_one_pass): Do pass typechecking after execution.
9344         * tree-pass.h (pass_expand): Turn into RTL pass.
9345
9346         * function.h (struct rtl_data): Move here fields
9347         accesses_prior_frames, calls_eh_return, saves_all_registers,
9348         has_nonlocal_goto, has_asm_statement, is_thunk,
9349         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
9350         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
9351         arg_pointer_save_area_init from struct function; turn into bool.
9352         (struct function): Move
9353         calls_eh_return, saves_all_registers, has_nonlocal_goto,
9354         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
9355         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
9356         tail_call_emit, arg_pointer_save_area_init
9357         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
9358         (current_function_returns_struct, current_function_returns_pcc_struct,
9359         current_function_calls_setjmp, current_function_calls_alloca,
9360         current_function_accesses_prior_frames,
9361         current_function_calls_eh_return, current_function_is_thunk,
9362         current_function_stdarg, current_function_profile,
9363         current_function_limit_stack, current_function_uses_pic_offset_table,
9364         current_function_uses_const_pool, current_function_has_nonlocal_label,
9365         current_function_saves_all_registers,
9366         current_function_has_nonlocal_goto,
9367         current_function_has_asm_statement): Remove accesor macros.
9368         * ra-conflict.c (global_conflicts): Update.
9369         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
9370         (suitable_for_tail_call_opt_p): Update.
9371         * builtins.c (expand_builtin_return_addr): Update.
9372         (expand_builtin_setjmp_setup): Update.
9373         (expand_builtin_nonlocal_goto): Update.
9374         * final.c (final_start_function): Update.
9375         (profile_function): Update.
9376         (leaf_function_p): Update.
9377         (only_leaf_regs_used): Update.
9378         * df-scan.c (df_get_exit_block_use_set): Update.
9379         * dojump.c (clear_pending_stack_adjust): Update.
9380         * tree-stdarg.c (gate_optimize_stdarg): Update.
9381         * gimple-low.c (lower_function_body): Update.
9382         * global.c (compute_regsets): Update.
9383         (global_alloc): Update.
9384         * dwarf2out.c (dwarf2out_begin_prologue): Update.
9385         * expr.c (expand_assignment): Update.
9386         * dse.c (dse_step0): Update.
9387         (dse_step1): Update.
9388         * c-decl.c (store_parm_decls): Update.
9389         * local-alloc.c (combine_regs): Update.
9390         (find_free_reg): Update.
9391         * function.c (assign_parms_augmented_arg_list): Update.
9392         (assign_parm_find_data_types): Update.
9393         (assign_parms): Update.
9394         (allocate_struct_function): Update.
9395         (expand_function_start): Update.
9396         (expand_function_end): Update.
9397         (get_arg_pointer_save_area): Update.
9398         (thread_prologue_and_epilogue_insns): Update.
9399         (rest_of_match_asm_constraints): Update.
9400         * stor-layout.c (variable_size): Update.
9401         * gcse.c (gcse_main): Update.
9402         (bypass_jumps): Update.
9403         * gimplify.c (gimplify_function_tree): Update.
9404         * calls.c (emit_call_1): Update.
9405         (expand_call): Update.
9406         * bt-load.c (compute_defs_uses_and_gen): Update.
9407         * except.c (sjlj_assign_call_site_values): Update.
9408         (sjlj_emit_function_enter): Update.
9409         (can_throw_external): Update.
9410         (set_nothrow_function_flags): Update.
9411         (expand_builtin_unwind_init): Update.
9412         (expand_eh_return): Update.
9413         (convert_to_eh_region_ranges): Update.
9414         (output_function_exception_table): Update.
9415         * emit-rtl.c (gen_tmp_stack_mem): Update.
9416         * cfgexpand.c (expand_used_vars): Update.
9417         (tree_expand_cfg): Update.
9418         * cfgcleanup.c (rest_of_handle_jump): Update.
9419         * explow.c (allocate_dynamic_stack_space): Update.
9420         * varasm.c (assemble_start_function): Update.
9421         (force_const_mem): Update.
9422         (mark_constant_pool): Update.
9423         * tree-optimize.c (tree_rest_of_compilation): Update.
9424         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
9425         * tree-cfg.c (notice_special_calls): Update.
9426         (is_ctrl_altering_stmt): Update.
9427         (tree_can_make_abnormal_goto): Update.
9428         (tree_purge_dead_abnormal_call_edges): Update.
9429         * config/alpha/predicates.md: Update.
9430         * config/alpha/alpha.c (alpha_sa_mask): Update.
9431         (alpha_sa_size): Update.
9432         (alpha_does_function_need_gp): Update.
9433         (alpha_expand_prologue): Update.
9434         (alpha_start_function): Update.
9435         (alpha_output_function_end_prologue): Update.
9436         (alpha_expand_epilogue): Update.
9437         * config/frv/frv.c (frv_stack_info): Update.
9438         (frv_expand_epilogue): Update.
9439         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
9440         (s390_register_info): Update.
9441         (s390_frame_info): Update.
9442         (s390_init_frame_layout): Update.
9443         (s390_can_eliminate): Update.
9444         (save_gprs): Update.
9445         * config/spu/spu.c (spu_split_immediate): Update.
9446         (need_to_save_reg): Update.
9447         (spu_expand_prologue): Update.
9448         (spu_expand_epilogue): Update.
9449         * config/sparc/sparc.md: Update.
9450         * config/sparc/sparc.c (eligible_for_return_delay): Update.
9451         (sparc_tls_got): Update.
9452         (legitimize_pic_address): Update.
9453         (sparc_emit_call_insn): Update.
9454         (sparc_expand_prologue): Update.
9455         (output_return): Update.
9456         (print_operand): Update.
9457         (sparc_function_ok_for_sibcall): Update.
9458         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
9459         * config/m32r/m32r.md: Update.
9460         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
9461         (m32r_compute_frame_size): Update.
9462         (m32r_expand_prologue): Update.
9463         (m32r_expand_epilogue): Update.
9464         (m32r_legitimize_pic_address): Update.
9465         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
9466         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9467         * config/i386/i386.c (ix86_frame_pointer_required): Update.
9468         (gen_push): Update.
9469         (ix86_save_reg): Update.
9470         (ix86_compute_frame_layout): Update.
9471         (ix86_expand_prologue): Update.
9472         (ix86_expand_epilogue): Update.
9473         * config/sh/sh.c (output_stack_adjust): Update.
9474         (calc_live_regs): Update.
9475         (sh5_schedule_saves): Update.
9476         (sh_expand_prologue): Update.
9477         (sh_expand_epilogue): Update.
9478         (sh_setup_incoming_varargs): Update.
9479         (sh_allocate_initial_value): Update.
9480         (sh_get_pr_initial_val): Update.
9481         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
9482         * config/sh/sh.md (label:): Update.
9483         * config/avr/avr.c (out_movhi_mr_r): Update.
9484         * config/crx/crx.h (enum): Update.
9485         * config/xtensa/xtensa.h (along): Update.
9486         * config/stormy16/stormy16.c Update.
9487         (xstormy16_compute_stack_layout): Update.
9488         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
9489         (fr30_expand_prologue): Update.
9490         * config/cris/cris.c (cris_conditional_register_usage): Update.
9491         (cris_reg_saved_in_regsave_area): Update.
9492         (cris_initial_frame_pointer_offset): Update.
9493         (cris_simple_epilogue): Update.
9494         (cris_expand_prologue): Update.
9495         (cris_expand_epilogue): Update.
9496         (cris_expand_pic_call_address): Update.
9497         (cris_asm_output_symbol_ref): Update.
9498         (cris_asm_output_label_ref): Update.
9499         * config/cris/cris.md Update.
9500         * config/iq2000/iq2000.c (compute_frame_size): Update.
9501         (iq2000_expand_epilogue): Update.
9502         * config/mt/mt.h (save_direction): Update.
9503         * config/mn10300/mn10300.c (mn10300_function_value): Update.
9504         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9505         (ia64_secondary_reload_class): Update.
9506         * config/m68k/m68k.c (m68k_save_reg): Update.
9507         (m68k_expand_prologue): Update.
9508         (m68k_expand_epilogue): Update.
9509         (legitimize_pic_address): Update.
9510         * config/rs6000/rs6000.c (rs6000_got_register): Update.
9511         (first_reg_to_save): Update.
9512         (first_altivec_reg_to_save): Update.
9513         (compute_vrsave_mask): Update.
9514         (compute_save_world_info): Update.
9515         (rs6000_stack_info): Update.
9516         (spe_func_has_64bit_regs_p): Update.
9517         (rs6000_ra_ever_killed): Update.
9518         (rs6000_emit_eh_reg_restore): Update.
9519         (rs6000_emit_allocate_stack): Update.
9520         (rs6000_emit_prologue): Update.
9521         (rs6000_emit_epilogue): Update.
9522         (rs6000_output_function_epilogue): Update.
9523         (output_profile_hook): Update.
9524         (rs6000_elf_declare_function_name): Update.
9525         * config/rs6000/rs6000.h (rs6000_args): Update.
9526         * config/rs6000/rs6000.md: Update.
9527         * config/mcore/mcore.c (mcore_expand_prolog): Update.
9528         * config/arc/arc.c (arc_output_function_epilogue): Update.
9529         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
9530         * config/darwin.c (machopic_function_base_name): Update.
9531         * config/score/score3.c (score3_compute_frame_size): Update.
9532         (rpush): Update.
9533         (rpop): Update.
9534         (score3_epilogue): Update.
9535         * config/score/score7.c (score7_compute_frame_size): Update.
9536         (score7_prologue): Update.
9537         (score7_epilogue): Update.
9538         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
9539         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9540         * config/arm/arm.c (use_return_insn): Update.
9541         (require_pic_register): Update.
9542         (arm_load_pic_register): Update.
9543         (arm_compute_save_reg0_reg12_mask): Update.
9544         (arm_compute_save_reg_mask): Update.
9545         (thumb1_compute_save_reg_mask): Update.
9546         (output_return_instruction): Update.
9547         (arm_output_function_prologue): Update.
9548         (arm_output_epilogue): Update.
9549         (arm_get_frame_offsets): Update.
9550         (arm_expand_prologue): Update.
9551         (thumb_pushpop): Update.
9552         (thumb_exit): Update.
9553         (thumb1_expand_prologue): Update.
9554         (thumb1_expand_epilogue): Update.
9555         (arm_unwind_emit): Update.
9556         (arm_output_fn_unwind): Update.
9557         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
9558         * config/arm/arm.md: Update.
9559         * config/pa/pa.md: Update.
9560         * config/pa/pa.c (legitimize_pic_address): Update.
9561         (compute_frame_size): Update.
9562         (hppa_expand_prologue): Update.
9563         (hppa_expand_epilogue): Update.
9564         (borx_reg_operand): Update.
9565         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
9566         (HARD_REGNO_RENAME_OK): Update.
9567         * config/mips/mips.c (mips_global_pointer): Update.
9568         (mips_save_reg_p): Update.
9569         (mips_compute_frame_info): Update.
9570         (mips_frame_pointer_required): Update.
9571         (mips_expand_prologue): Update.
9572         (mips_expand_epilogue): Update.
9573         (mips_can_use_return_insn): Update.
9574         (mips_reorg_process_insns): Update.
9575         * config/v850/v850.c (compute_register_save_size): Update.
9576         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
9577         * config/mmix/mmix.c (along): Update.
9578         (mmix_expand_epilogue): Update.
9579         * config/bfin/bfin.c (legitimize_pic_address): Update.
9580         (must_save_p): Update.
9581         (stack_frame_needed_p): Update.
9582         (add_to_reg): Update.
9583         (bfin_expand_prologue): Update.
9584         * stmt.c (expand_asm_operands): Update.
9585         * reload1.c (reload): Update.
9586         (init_elim_table): Update.
9587
9588 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
9589
9590         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
9591
9592 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
9593
9594         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
9595         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
9596         (mov<mode>): Removed.
9597         (*movv4sf_internal): Likewise.
9598         (*movv2df_internal): Likewise.
9599
9600 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
9601
9602         * config.gcc (crx-*-elf): Remove deprecation.
9603
9604 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
9605
9606         * config/i386/cygming-crtend.c (register_frame_ctor): Register
9607         __gcc_deregister_frame with atexit.
9608         (deregister_frame_dtor): Remove.
9609
9610 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
9611             Nathan Sidwell  <nathan@codesourcery.com>
9612
9613         * config/rs6000/rs6000.opt (mspe): Remove Var property.
9614         (misel): Likewise.
9615         * config/rs6000/rs6000.h (rs6000_spe): Declare.
9616         (rs6000_isel): Likewise.
9617         * config/rs6000/rs6000.c (rs6000_spe): New variable.
9618         (rs6000_isel): New variable.
9619         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9620
9621 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9622
9623         PR c++/35758
9624         * c-common.c (handle_vector_size_attribute): Call
9625         lang_hooks.types.reconstruct_complex_type instead of
9626         reconstruct_complex_type.
9627         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9628         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9629         * langhooks.h (struct lang_hooks_for_types): Add
9630         reconstruct_complex_type hook.
9631         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
9632         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9633
9634 2008-04-24  Richard Guenther  <rguenther@suse.de>
9635
9636         * c-common.h (check_builtin_function_arguments): Declare.
9637         * c-common.c (validate_nargs): New function.
9638         (check_builtin_function_arguments): Likewise.
9639         * c-typeck.c (build_function_call): Call
9640         check_builtin_function_arguments.
9641         * builtins.c (fold_builtin_classify): Remove error reporting code.
9642         (fold_builtin_unordered_cmp): Likewise.
9643         (fold_builtin_1): Likewise.
9644         (fold_builtin_n): Likewise.
9645
9646 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9647
9648         PR tree-optimization/36008
9649         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
9650         the original op1, rather than delta by step.
9651
9652 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
9653             Sebastian Pop  <sebastian.pop@amd.com>
9654
9655         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
9656         eliminate_local_variables_stmt, eliminate_local_variables,
9657         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
9658         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
9659         of code delimited by two edges in the CFG.
9660         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
9661         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
9662         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
9663         the case of parallelisation of reductions.
9664         (expr_invariant_in_region_p): New.
9665
9666         * tree-flow.h (gather_blocks_in_sese_region): Declared.
9667         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
9668
9669 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9670             Richard Guenther  <rguenther@suse.de>
9671
9672         PR tree-optimization/36034
9673         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
9674         incapable of dealing with loads with gaps.
9675
9676 2008-04-24  Rafael Espindola  <espindola@google.com>
9677
9678         * tree-flow.h (vrp_evaluate_conditional): Change signature.
9679         * tree-ssa-propagate.c (fold_predicate_in): Update call to
9680         vrp_evaluate_conditional.
9681         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
9682         (vrp_evaluate_conditional): Split the cond argument.
9683         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9684         (simplify_stmt_for_jump_threading): Update call to
9685         vrp_evaluate_conditional.
9686
9687 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9688
9689         PR tree-optimization/35982
9690         * tree-vect-analyze.c (vect_check_interleaving): Check that the
9691         interleaved data-refs are of the same type.
9692
9693 2008-04-24  Danny Smith  <dannysmith@users.net>
9694
9695         * c-format.c (check_format_info_main): Use strncmp rather than a
9696         magic prefix to handle multichar length specs.
9697         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
9698         Don't prefix "I64" and "I32" with '\0'.
9699
9700 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9701
9702         PR target/36015
9703         * config/i386/i386.c (init_cumulative_args): Don't pass anything
9704         in registers for -m32 only if stdarg_p (fntype).
9705
9706 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
9707
9708         PR rtl-optimization/36006
9709         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
9710         temp to op0 in order to avoid invalid rtx sharing.
9711
9712 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
9713
9714         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
9715         check TREE_INVARIANT.
9716         * tree-gimple.c (is_gimple_address): New.
9717         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
9718         * tree-gimple.h (is_gimple_address): New.
9719         * tree.h (decl_address_invariant_p): New.
9720         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
9721         (build_string): Likewise.
9722         (decl_address_invariant_p): New, from is_gimple_invariant_address.
9723         (tree_invariant_p_1): Likewise.
9724         (save_expr): Use it.
9725         (tree_invariant_p): New.
9726         (skip_simple_arithmetic): Use it.
9727         (stabilize_reference_1): Use it.
9728         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
9729         simplify.
9730         (build1_stat): Drop code to compute TREE_INVARIANT.
9731         (build2_stat): Drop code to compute TREE_INVARIANT.
9732         (build3_stat): Drop code to compute TREE_INVARIANT.
9733         (build4_stat): Drop code to compute TREE_INVARIANT.
9734         (build5_stat): Drop code to compute TREE_INVARIANT.
9735         (build7_stat): Drop code to compute TREE_INVARIANT.
9736         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
9737         * tree.h (struct tree_base): Remove invariant_flag.
9738         (TREE_INVARIANT): Remove.
9739         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
9740         (fold_builtin_expect): Check TREE_CONSTANT.
9741         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
9742         * c-tree.h (c_expr_to_decl): Drop third parameter.
9743         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
9744         (build_c_cast): Don't set TREE_INVARIANT.
9745         (pop_init_level): Don't set TREE_INVARIANT.
9746         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
9747         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
9748         TREE_CONSTANT.
9749         (gimplify_init_constructor): Don't set TREE_INVARIANT.
9750         (gimplify_addr_expr): Adjust comment.
9751         * tree-mudflap.c (mf_build_string):
9752         * print-tree.c (print_node): Don't print TREE_INVARIANT.
9753         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
9754         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
9755         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
9756         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
9757         * langhooks.h (struct lang_hooks): Drop third parameter from
9758         expr_to_decl.
9759
9760 2008-04-23  Richard Guenther  <rguenther@suse.de>
9761
9762         PR tree-optimization/27799
9763         PR tree-optimization/32921
9764         PR tree-optimization/32624
9765         * tree-ssa-structalias.c (merge_smts_into): Only merge the
9766         SMTs aliases and the tag itself into the solution.
9767         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
9768         merge the points-to solution back into the SMT aliases.
9769         (may_alias_p): Use alias_set_subset_of instead of
9770         aliases_conflict_p.  A pointer which points to
9771         memory with alias set zero may access any variable.
9772
9773 2008-04-23  Richard Guenther  <rguenther@suse.de>
9774
9775         * alias.c (alias_set_subset_of): Correctly handle asking
9776         if zero is a subset of an alias set with zero child.
9777         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
9778         (compute_flow_insensitive_aliasing): Correctly walk all
9779         pointers.  Do not unnecessarily union sets.
9780
9781 2008-04-23  Richard Guenther  <rguenther@suse.de>
9782
9783         PR middle-end/36021
9784         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
9785
9786 2008-04-22  Tomas Bily  <tbily@suse.cz>
9787
9788         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
9789         unreachable case.
9790         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
9791         NON_LVALUE_EXPR.
9792         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9793         * tree-ssa-structalias.c (get_constraint_for): Likewise.
9794         * tree-inline.c (estimate_num_insns_1): Likewise.
9795         * varasm.c (const_hash_1, compare_constant, copy_constant)
9796         (compute_reloc_for_constant, output_addressed_constants): Likewise.
9797         * emit-rtl.c (component_ref_for_mem_expr)
9798         (set_mem_attributes_minus_bitpos): Likewise.
9799         * expr.c (highest_pow2_factor, expand_expr_real_1, )
9800         (is_aligning_offset): Likewise.
9801         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
9802         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9803         * dojump.c (do_jump): Likewise.
9804         * builtins.c (get_pointer_alignment, get_memory_rtx)
9805         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
9806         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
9807
9808 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
9809
9810         PR rtl-optimization/36017
9811         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
9812         expanding the library call.
9813
9814 2008-04-22  Ian Lance Taylor  <iant@google.com>
9815
9816         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
9817         than size_in_bytes.
9818
9819 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
9820
9821         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
9822         of LR/CTR moves for Power6.
9823
9824 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
9825
9826         PR middle-end/36003
9827         * passes.c (init_optimization_passes): Remove
9828         pass_fast_rtl_byte_dce.
9829
9830 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
9831
9832         PR target/29096
9833         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
9834         builtin functions to generate faster code.
9835         (_mm_cvtpu16_ps): Ditto.
9836         (_mm_cvtpi32x2_ps): Ditto.
9837
9838 2008-04-22  Nick Clifton  <nickc@redhat.com>
9839
9840         * common.opt (ftree-loop-distribution): Add Optimization
9841         attribute.
9842
9843         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
9844         (frv_expand_builtin_va_start): Likewise.
9845
9846         * config/arm/arm.c (thumb_find_work_register): Fix location of
9847         argument register count.
9848
9849 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9850
9851         Support scheduling for ColdFire V1 and V3 microarchitecture.
9852         Improve scheduling of multiplication instructions.
9853
9854         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
9855         (mac): New instruction attribute.
9856         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
9857         (m68k_sched_mac): New variable.
9858         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
9859         Handle cfv1 and cfv3.
9860         (max_insn_size): New static variable.
9861         (struct _sched_ib): New type.
9862         (sched_ib): New static variable.
9863         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
9864         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
9865         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
9866         Update.
9867         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
9868         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
9869         new variables.  Update.
9870         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9871         Add modeling of cfv3 instruction buffer.  Update.
9872         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
9873         * config/m68k/m68k.h (TUNE_CFV3): New macro.
9874         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
9875         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
9876         a particular reservation applies to.
9877         (type2): Reorganize attribute values.  Rename alu to alu_reg,
9878         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
9879         to mul_l and mul_w.
9880         (cf_ib_*): Simplify description of instruction buffer.
9881         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
9882         (cf_mem): Split into cf_mem1 and cf_mem2.
9883         (cf_v2_move_??): Rename to cfv12_alu_??.
9884         (cf_v2_move_l_??): Rename to cfv12_omove_??.
9885         (cf_v2_mul_??): Remove reservations.
9886         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
9887         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
9888         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
9889         appropriate place.
9890         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
9891         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
9892         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
9893         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
9894         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
9895         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
9896         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
9897         expansions of the above reservations for instructions of sizes
9898         1, 2 and 3 words.
9899
9900 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9901
9902         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
9903
9904 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
9905
9906         * coverage.c: Include tree-pass.h.
9907         (coverage_counter_alloc): Print da_file_name to the dump file.
9908
9909 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
9910
9911         * sbitmap.c (sbitmap_range_empty_p): New function.
9912         * sbitmap.h (sbitmap_range_empty_p): New function.
9913         * bitmap.h: Now includes obstack.h.
9914
9915 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
9916             Kenneth Zadeck  <zadeck@naturalbridge.com>
9917
9918         * dbgcnt.def (ra_byte_scan): Added.
9919         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
9920         when the last hit happens for a counter.
9921         * timevar.def (TV_DF_BYTE_LR): New variable.
9922         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
9923         * passes.c (pass_fast_rtl_byte_dce): New pass.
9924         * fwprop.c (update_df): Added mode to call df_ref_create.
9925         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9926         DF_REF_EXTRACT_OFFSET.
9927         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
9928         DF_BYTE_LR_OUT, df_byte_lr): New macro.
9929         (df_mm): New enum.
9930         (df_ref_extract): Added mode field.
9931         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
9932         DF_REF_EXTRACT_OFFSET.
9933         (DF_REF_EXTRACT_MODE): New macro.
9934         (df_byte_lr_bb_info): New structure.
9935         (df_print_byte_regset, df_compute_accessed_bytes,
9936         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
9937         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
9938         df_byte_lr_simulate_uses,
9939         df_byte_lr_simulate_artificial_refs_at_top,
9940         df_byte_lr_simulate_artificial_refs_at_end,
9941         df_compute_accessed_bytes): New function.
9942         (df_ref_create): Add parameter.
9943         (df_byte_lr_get_bb_info): New inline function.
9944         * df-scan.c (df_ref_record, df_uses_record,
9945         df_ref_create_structure): Added mode parameter.
9946         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
9947         df_defs_record, df_uses_record, df_get_conditional_uses,
9948         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
9949         df_entry_block_defs_collect, df_exit_block_uses_collect):
9950         Added mode parameter to calls to df_ref_record, df_uses_record,
9951         df_ref_create_structure.
9952         (df_ref_equal_p, df_ref_compare): Added test for modes.
9953         (df_ref_create_structure): Added code to set mode.  Renamed
9954         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
9955         DF_REF_EXTRACT_OFFSET.
9956         * df-core.c (df_print_byte_regset): New function.
9957         * df-byte-scan.c: New file.
9958         * df-problems.c (df_rd_transfer_function): Removed unnecessary
9959         calls to BITMAP_FREE.
9960         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
9961         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
9962         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
9963         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
9964         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
9965         df_byte_lr_local_compute, df_byte_lr_init,
9966         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
9967         df_byte_lr_transfer_function, df_byte_lr_free,
9968         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
9969         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
9970         df_byte_lr_simulate_uses,
9971         df_byte_lr_simulate_artificial_refs_at_top,
9972         df_byte_lr_simulate_artificial_refs_at_end): New function.
9973         * dce.c (byte_dce_process_block): New function.
9974         (dce_process_block): au is now passed in rather than computed
9975         locally.  Changed loops that look at artificial defs to not look
9976         for conditional or partial ones, because there never are any.
9977         (fast_dce): Now is able to drive byte_dce_process_block or
9978         dce_process_block depending on the kind of dce being done.
9979         (rest_of_handle_fast_dce): Add parameter to fast_dce.
9980         (rest_of_handle_fast_byte_dce): New function.
9981         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
9982         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
9983
9984 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
9985
9986         PR fortran/35019
9987         * gcc.h: Added fortran options that take arguments to
9988         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
9989         macros.
9990
9991 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
9992
9993         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
9994         scalarization if on the LHS and not a full access.
9995
9996 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9997
9998         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
9999
10000 2008-04-18  Rafael Espindola  <espindola@google.com>
10001
10002         * tree-vrp.c (find_case_label_index): Fix the binary search.
10003         (find_case_label_range): New.
10004         (vrp_visit_switch_stmt): Use find_case_label_range.
10005         (simplify_switch_using_ranges): Use find_case_label_range.
10006
10007 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
10008
10009         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
10010         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
10011
10012 2008-04-18  Tom Tromey  <tromey@redhat.com>
10013
10014         PR libcpp/15500:
10015         * doc/cpp.texi (Implementation-defined behavior): Mention
10016         -finput-charset.
10017
10018 2008-04-18  Ian Lance Taylor  <iant@google.com>
10019
10020         * fold-const.c (pointer_may_wrap_p): New static function.
10021         (fold_comparison): Add another test for pointer overflow.  Use
10022         pointer_may_wrap_p to disable some false positives.
10023
10024 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
10025
10026         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
10027         (fname_as_string): Match updated cpp_interpret_string prototype.
10028         (fix_string_type): Support char16_t* and char32_t*.
10029         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
10030         derivative) nodes.  Register as builtin if C++0x.
10031         (c_parse_error): Support CPP_CHAR{16,32}.
10032         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
10033         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
10034         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
10035         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
10036         CTI_CHAR32_ARRAY_TYPE>: New elements.
10037         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
10038         char32_type_node, signed_char32_type_node, char16_array_type_node,
10039         char32_array_type_node): New defines.
10040         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
10041         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
10042         (lex_string): Support CPP_STRING{16,32}, match updated
10043         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
10044         (lex_charconst): Support CPP_CHAR{16,32}.
10045         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
10046         and CPP_STRING{16,32}.
10047
10048 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
10049
10050         PR bootstrap/35457
10051         * aclocal.m4: Regenerate.
10052         * configure: Regenerate.
10053
10054 2008-04-18  Jan Hubicka  <jh@suse.cz>
10055
10056         * except.c (dw2_size_of_call_site_table,
10057         sjlj_size_of_call_site_table): Use vector API for call_site_record.
10058
10059         * cgraphbuild.c (build_cgraph_edges): Update.
10060         * tree-pass.h: Update comment.
10061         * final.c (leaf_function_p): Update.
10062         (leaf_renumber_regs): Update.
10063         (rest_of_clean_state): Update.
10064         * omp-low.c (expand_omp_parallel): Update.
10065         * ipa-reference.c (analyze_function): Update.
10066         * reorg.c (find_end_label): Update.
10067         (optimize_skip): Update.
10068         (fill_simple_delay_slots): Update.
10069         (fill_simple_delay_slots): Update.
10070         (make_return_insns): Update.
10071         (dbr_schedule): Update.
10072         * gimple-low.c (record_vars_into): Update.
10073         * cfgbuild.c (make_edges): Update.
10074         * function.c (assign_stack_local): Update.
10075         (assign_parm_adjust_stack_rtl): Update.
10076         (locate_and_pad_parm): Update.
10077         (allocate_struct_function): Do not initialize stack_alignment_needed
10078         and preferred_stack_boundary here.
10079         (stack_protect_prologue): Update.
10080         (stack_protect_epilogue): Update.
10081         (expand_function_start): Initialize stack_alignment_needed,
10082         preferred_stack_boundary and max_jumptable_ents.
10083         (expand_function_end): Update.
10084         (free_after_compilation): Do not NULLify epilogue_delay_list.
10085         * function.h (struct rtl_data): Add stack_protect_guard,
10086         stack_alignment_needed,
10087         preferred_stack_boundary, epilogue_delay_list.
10088         (struct function): Remove value_histograms, stack_alignment_needed,
10089         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
10090         last_label_uid,
10091         unexpanded_var_list, stack_protect_guard.
10092         (current_function_epilogue_delay_list): Remove.
10093         * ipa-type-escape.c (analyze_function): Update.
10094         * gimplify.c (pop_gimplify_context): Update comment.
10095         * calls.c (expand_call): Update.
10096         (emit_library_call_value_1): Update.
10097         * except.c (set_nothrow_function_flags): Update.
10098         * cfgexpand.c (get_decl_align_unit): Update.
10099         (create_stack_guard): Update.
10100         (estimated_stack_frame_size): Update.
10101         (expand_used_vars): Update.
10102         (tree_expand_cfg): Free histogram earliers, init expansion variables.
10103         * explow.c (allocate_dynamic_stack_space): Update.
10104         * tree-ssa-live.c (remove_unused_locals): Update.
10105         * varasm.c (mark_constant_pool): Update.
10106         * tree-inline.c (remap_decls): Update.
10107         (initialize_cfun): Update.
10108         (declare_return_variable): Update.
10109         (inline_forbidden_p): Update.
10110         (expand_call_inline): Update.
10111         (declare_inline_vars): Update.
10112         (tree_function_versioning): Update.
10113         * tree-flow.h (value_histograms): New.
10114         (VALUE_HISTOGRAMS): New macro.
10115         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
10116         last_label_uid.
10117         * tree-cfg.c (set_bb_for_stmt): Update.
10118         (replace_by_duplicate_decl): Update.
10119         (move_block_to_fn): Update.
10120         (new_label_mapper): Update.
10121         (dump_function_to_file): Update.
10122         * ipa-struct-reorg.c (build_data_structure): Update.
10123         * cfgrtl.c (print_rtl_with_bb): Update.
10124         * reload1.c (reload): Update.
10125         (reload): Update.
10126         * config/i386/i386.c (setup_incoming_varargs_64,
10127         ix86_compute_frame_layout): Update.
10128         * config/arc/arc.c (arc_output_function_epilogue): Update.
10129
10130 2008-04-18  Marius Strobl <marius@FreeBSD.org>
10131
10132         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
10133         for FreeBSD as well.
10134         * gthr-posix95.h: Likewise.
10135
10136 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
10137
10138         PR rtl-optimization/35838
10139         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
10140         out the byte offset of the first subreg.
10141
10142 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
10143
10144         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
10145         to split_ti instead of three separate calls with single member arrays.
10146         (subti3 splitter): Ditto.
10147         (adddi3 splitter): Ditto with split_di.
10148         (subdi3 splitter): Ditto.
10149         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
10150         two separate calls with single member arrays.  Swap match_dup
10151         operands 1 and 2 to better fit into the array.
10152         (negdi2 splitter): Ditto with split_di.
10153         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
10154         two separate calls with single member arrays.  Swap match_dup operands
10155         6 and 7 to better fit into the array.
10156
10157 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
10158
10159         * config/i386/i386.c (sse_builtin_type): New.
10160         (bdesc_sse_args): Likewise.
10161         (bdesc_sse_3arg): Removed.
10162         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10163         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
10164         IX86_BUILTIN_ROUNDPS.
10165         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
10166         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
10167         IX86_BUILTIN_ROUNDPS.
10168         (ix86_expand_sse_4_operands_builtin): Removed.
10169         (ix86_expand_sse_operands_builtin): New.
10170         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
10171         and CODE_FOR_sse4_1_roundps.
10172         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10173         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
10174
10175 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
10176
10177         PR target/35907
10178         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
10179         regs before frame pop when needed.  If use_backchain_to_restore_sp
10180         then load backchain into a temp reg to restore vr and vrsave.  Add
10181         code to restore vr after frame pop if possible.
10182
10183 2008-04-17  Richard Guenther  <rguenther@suse.de>
10184
10185         * tree-vn.c (expressions_equal_p): Do not check type
10186         equality or compatibility before calling operand_equal_p.
10187         * fold-const.c (operand_equal_p): Check equivalence of
10188         integer constants before bailing out due to signedness or
10189         precision differences.
10190         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
10191         spurious differences in type qualification.  Ignore types
10192         for COMPONENT_REFs at all.
10193
10194 2008-04-17  Christian Bruel  <christian.bruel@st.com>
10195
10196         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
10197         msw_skip comparison.
10198
10199 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
10200
10201         PR c/35739
10202         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
10203         reg type.
10204
10205         PR tree-optimization/35899
10206         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
10207         rather than TREE_OPERAND.
10208
10209 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
10210
10211         PR target/35944
10212         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
10213         temporary registers.  Change operand predicate to general_operand.
10214         (remainderxf3): Ditto.
10215
10216 2008-04-16  Richard Guenther  <rguenther@suse.de>
10217
10218         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
10219         * tree-affine.c (aff_combination_expand): Look through some
10220         conversions.
10221
10222 2008-04-15  Doug Kwan  <dougkwan@google.com>
10223
10224         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
10225         for hex printing.
10226         * tree-pretty-print.c (dump_generic_node): Ditto.
10227         * final.c (output_addr_const): Ditto.
10228         * dwarf2out.c (output_cfi): Ditto.
10229         * c-pretty-print.c (pp_c_integer_constant): Ditto.
10230         * print-rtl.c (print_rtx): Ditto.
10231         * print-tree.c (print_node_brief, print_node): Ditto.
10232         * c-common.c (match_case_to_enum_1): Ditto.
10233         * sched-vis.c (print_value): Ditto.
10234         * config/i386/i386.c (print_operand): Cast to long unsigned int
10235         for hex printing.
10236
10237 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
10238         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
10239         MS Windows VirtualProtect function.
10240
10241 2008-04-15  Jan Hubicka  <jh@suse.cz>
10242
10243         * gengtype.c (write_root): Param_is argument is OK.
10244         * expr.c (expand_expr_real_1): Update call of get_exception_*.
10245         * function.h: Include varray.h
10246         (rtl_eh): New stucture based on except.c one.
10247         (call_site_record): New forward declaration and vector type.
10248         * calls.c (emit_call_1): Do not call
10249         note_current_region_may_contain_throw.
10250         * except.c (eh_status): Remove cur_region, try_region since they are
10251         unused.
10252         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
10253         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
10254         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
10255         Remove call_site_data_used, call_site_data_size.
10256         Turn call_site_record into vector in function.h.
10257         (note_current_region_may_contain_throw): Remove.
10258         (get_exception_pointer, get_exception_filter): Do not take struct
10259         function argument; update.
10260         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
10261         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
10262         build_post_landing_pads, dw2_build_landing_pads,
10263         sjlj_assign_call_site_values, sjlj_mark_call_sites,
10264         sjlj_emit_function_enter, sjlj_emit_function_enter,
10265         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
10266         sjlj_build_landing_pads, finish_eh_generation,
10267         remove_exception_handler_label, remove_eh_handler,
10268         maybe_remove_eh_handler, add_reachable_handler,
10269         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
10270         add_action_record, collect_one_action_chain, add_call_site,
10271         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
10272         sjlj_output_call_site_table, output_function_exception_table,
10273         * except.h (note_current_region_may_contain_throw): Remove
10274         (get_exception_pointer, get_exception_filter): Do not take struct
10275         function argument.
10276         * Makefile.in (GTFILES): Put varargs before struct function.
10277
10278 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10279
10280         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
10281         punt for STRING_CST.
10282         (get_constraint_for): Deal with STRING_CST here instead.
10283
10284 2008-04-15  Richard Guenther  <rguenther@suse.de>
10285
10286         * tree-ssa-propagate.c (substitute_and_fold): Substitute
10287         statements in a basic-block with a backward walk.  Do not
10288         substitute into dead statements but instead remove those.
10289
10290 2008-04-15  Richard Guenther  <rguenther@suse.de>
10291
10292         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
10293         to zero, thus disable creation of SFTs.
10294
10295 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10296
10297         * tree-predcom.c (suitable_reference_p): Return false if the
10298         reference can throw.
10299
10300 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
10301
10302         PR c/35751
10303         * c-decl.c (finish_decl): If extern or static var has variable
10304         size, set TREE_TYPE (decl) to error_mark_node.
10305
10306 2008-04-15  Rafael Espindola  <espindola@google.com>
10307
10308         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
10309         variable arg1.
10310
10311 2008-04-15  Richard Guenther  <rguenther@suse.de>
10312
10313         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
10314         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
10315         (visit_reference_op_load): Do walk vuse-vdef chains on
10316         vn_reference_lookup.
10317         (visit_reference_op_store): But do not here.
10318         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
10319         vn_reference_lookup.
10320         (vn_lookup_with_vuses): But do so here.
10321
10322 2008-04-14  Ian Lance Taylor  <iant@google.com>
10323
10324         * fold-const.c (fold_overflow_warning): Remove assertion.
10325
10326 2008-04-15  Ben Elliston  <bje@au.ibm.com>
10327
10328         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
10329         temp1 local variables.
10330
10331 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
10332
10333         PR target/35661
10334         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
10335         ".text.unlikely" section as executable.
10336
10337 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
10338
10339         * config/ia64/ia64.c (rtx_needs_barrier): Handle
10340         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
10341         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
10342         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
10343         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
10344         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
10345         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
10346
10347 2008-04-14  Ian Lance Taylor  <iant@google.com>
10348
10349         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
10350         * fold-const.c (fold_comparison): If appropriate, test
10351         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
10352         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
10353         reassociating a pointer type.
10354         * doc/invoke.texi (Optimize Options): Document that
10355         -fstrict-overflow applies to pointer wraparound.
10356
10357 2008-04-13  Jan Hubicka  <jh@suse.cz>
10358
10359         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
10360
10361 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
10362
10363         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
10364         we are going to "save the world".
10365
10366 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
10367
10368         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
10369         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
10370         operand 0 constraint, not "=".
10371
10372 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
10373
10374         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
10375
10376 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10377
10378         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
10379         of size of positions_needed * CHAR_BIT.
10380
10381 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10382
10383         PR middle-end/35897
10384         * dse.c (store_info): Change positions_needed to unsigned
10385         HOST_WIDE_INT.
10386         (lowpart_bitmask): New.
10387         (record_store): Cast to unsigned HOST_WIDE_INT for
10388         positions_needed.  Assert width <= size of positions_needed *
10389         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
10390         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
10391         lowpart_bitmask to set mask.
10392
10393 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
10394
10395         * config/bfin/constraints.md: New file.
10396         * config/bfin/bfin.md: Include it.
10397         (adddi3): Use satisfies_constraint functions instead of the old macros.
10398         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
10399         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
10400         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
10401         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
10402         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
10403         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
10404         EXTRA_CONSTRAINT): Delete.
10405         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
10406         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
10407         of the old macros.
10408         * config/bfin/bfin.c: Include "tm-constrs.h".
10409         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
10410         Use satisfies_constraint functions instead of the old macros.
10411         * doc/md.texi (Blackfin Constraints): Update file name reference.
10412
10413 2008-04-11  Richard Guenther  <rguenther@suse.de>
10414
10415         PR tree-optimization/35869
10416         * tree-vrp.c (execute_vrp): Move switch statement update after
10417         jump threading.  Schedule another cfg cleanup run.
10418
10419 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
10420
10421         PR c/35744
10422         * attribs.c (decl_attributes): Return early on errorneous node.
10423
10424 2008-04-10  Oleg Ryjkov  <olegr@google.com>
10425
10426         * tree.h (struct tree_base): Added a new flag default_def_flag.
10427         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
10428
10429 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
10430
10431         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
10432
10433 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10434
10435         PR target/35768
10436         * pa.md: Define mode iterator P.  Define mode attribute dwc.
10437         (dcacheflush): Update pattern to use iterator P and attribute dwc.
10438         (icacheflush): Likewise.
10439         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
10440         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
10441
10442 2008-04-11  Ben Elliston  <bje@au.ibm.com>
10443
10444         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
10445
10446 2008-04-10  Rafael Espindola  <espindola@google.com>
10447
10448         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
10449         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
10450         (extract_range_from_expr): The same.
10451
10452 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10453
10454         * config/mips/mips.md (GPR2): New mode iterator.
10455         (seq): Add comment.
10456         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
10457         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
10458         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
10459         Rewrite these to take two modes, the mode of comparison and the
10460         mode of the destination.
10461         * config/mips/mips.c (mips_expand_scc): Instead of having
10462         paradoxical subreg as destination, expand "narrowing" scc if mode
10463         of comparison is SI and target is requested in DI mode.
10464         (mips_emit_int_order_test): Update comment.  Make mode of
10465         comparison match CMP0 rather than TARGET.  When creating inverse
10466         target use mode of TARGET.
10467
10468 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10469
10470         * gcov-dump.c (tag_summary): Only print summaries for the first
10471         GCOV_COUNTERS_SUMMABLE counters.
10472
10473 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
10474
10475         * config/i386/i386.md (absneg): New code iterator.
10476         (absnegprefix): New code attribute.
10477         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
10478         patterns using absneg code iterator.
10479         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
10480         using absneg code iterator.
10481         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
10482         *neg<mode>2 patterns using absneg code iterator.
10483         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10484         *negextendsfdf2 patterns using absneg code iterator.
10485         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
10486         *negextendsfxf2 patterns using absneg code iterator.
10487         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10488         *negextendsfdf2 patterns using absneg code iterator.
10489         * config/i386/sse.md (<code><mode>2): Macroize expander from
10490         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
10491
10492 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
10493
10494         * config/s390/s390.h: Remove the remains of the recent search
10495         & replace action of current_function_outgoing_args_size.
10496
10497 2008-04-10  Ira Rosen  <irar@il.ibm.com>
10498
10499         PR tree-optimization/35821
10500         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
10501         NEW_STMT_LIST is not NULL.
10502
10503 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
10504
10505         PR libstdc++/35597
10506         * toplev.c (process_options): Remove -ffunction-sections debugging
10507         warning.
10508
10509 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
10510
10511         PR middle-end/PR28690
10512         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
10513         than gen_rtx_fmt_ee to perform more canonicalizations.
10514
10515 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10516
10517         PR driver/35665
10518         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
10519
10520 2008-04-09  Richard Guenther  <rguenther@suse.de>
10521
10522         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
10523         (dump_function_to_file): Dump function arguments with types.
10524
10525 2008-04-08  Richard Guenther  <rguenther@suse.de>
10526
10527         * fold-const.c (fold_widened_comparison): Do not allow
10528         sign-changes that change the result.
10529
10530 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
10531
10532         PR target/35839
10533         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
10534         kinds of indirect references.
10535
10536 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
10537
10538         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
10539         GNU Fortran language string.
10540
10541 2008-04-08  Rafael Espindola  <espindola@google.com>
10542
10543         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
10544         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
10545         * tree.h (tree_call_nonnegative_warnv_p): New.
10546
10547 2008-04-08  Jan Hubicka  <jh@suse.cz>
10548
10549         * function.c (free_after_compilation): Clear out regno_reg_rtx
10550         pointer.
10551
10552 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
10553
10554         Revert
10555         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10556
10557         PR middle-end/PR28690
10558         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
10559         same precedence as REG_POINTER and MEM_POINTER operands.
10560
10561 2008-04-08  Richard Guenther  <rguenther@suse.de>
10562
10563         PR middle-end/35834
10564         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
10565         for adding index to base.
10566
10567 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
10568
10569         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
10570         (MINGW_ENABLE_EXECUTE_STACK): New.
10571         (IN_LIBGCC2): For libgcc include windows.h file for
10572         function declarations.
10573
10574 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
10575
10576         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
10577         and tem2 if tem1 is not a REG or MULT.
10578
10579 2008-04-08  Jan Hubicka  <jh@suse.cz>
10580
10581         * function.h (incomming_args): Break out of struct function.
10582         (function_subsections): Break out of struct function.
10583         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
10584         return_rtx and hard_reg_initial_vals from struct function.
10585         Kill inl_max_label_num.
10586         (current_function_pops_args, current_function_args_info,
10587         current_function_args_size, current_function_args_size,
10588         current_function_pretend_args_size,
10589         current_function_outgoing_args_size,
10590         current_function_internal_arg_pointer, current_function_return_rtx):
10591         Kill compatibility accestor macros.
10592         * builtins.c (expand_builtin_apply_args_1): Update.
10593         (expand_builtin_next_arg): Update.
10594         * df-scan.c (df_get_call_refs): Update.
10595         * dbxout.c (dbxout_function_end): Update.
10596         * dwarf2out.c (dwarf2out_switch_text_section): Update.
10597         (output_line_info): Update.
10598         (secname_for_decl): Update.
10599         (dwarf2out_var_location): Update.
10600         * function.c (free_after_compilation): Update.
10601         (assign_parm_find_stack_rtl): Update.
10602         (assign_parms): Update.
10603         (expand_dummy_function_end): Update.
10604         (expand_function_end): Update.
10605         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10606         (expand_call): Update.
10607         (emit_library_call_value_1): Update.
10608         (store_one_arg): Update.
10609         * varasm.c (initialize_cold_section_name): Update.
10610         (unlikely_text_section): Update.
10611         (unlikely_text_section_p): Update.
10612         (assemble_start_function): Update.
10613         (assemble_end_function): Update.
10614         (default_section_type_flags): Update.
10615         (switch_to_section): Update.
10616         * integrate.c (set_decl_abstract_flags): Update.
10617         (get_hard_reg_initial_val): Update.
10618         (has_hard_reg_initial_val): Update.
10619         (allocate_initial_values): Update.
10620         * resource.c (init_resource_info): Update.
10621         * config/alpha/alpha.c (NUM_ARGS): Update.
10622         (direct_return): Update.
10623         (alpha_va_start): Update.
10624         (alpha_sa_size): Update.
10625         (alpha_initial_elimination_offset): Update.
10626         (alpha_expand_prologue): Update.
10627         (alpha_start_function): Update.
10628         (alpha_expand_epilogue): Update.
10629         (unicosmk_initial_elimination_offset):
10630         * config/alpha/alpha.md (call expander): Update.
10631         * config/s390/s390.c (s390_register_info): Update.
10632         (s390_register_info): Update.
10633         (s390_frame_info): Update.
10634         (s390_initial_elimination_offset): Update.
10635         (s390_build_builtin_va_list): Update.
10636         (s390_va_start): Update.
10637         * config/spu/spu.c (direct_return): Update.
10638         (spu_expand_prologue): Update.
10639         (spu_initial_elimination_offset): Update.
10640         (spu_build_builtin_va_list): Update.
10641         (spu_va_start): Update.
10642         * config/sparc/sparc.c (sparc_init_modes): Update.
10643         (sparc_compute_frame_size): Update.
10644         (function_value): Update.
10645         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
10646         * config/i386/i386.md (return expander): Update.
10647         * config/i386/i386.c (ix86_va_start): Update.
10648         (ix86_can_use_return_insn_p): Update.
10649         (ix86_compute_frame_layout): Update.
10650         (ix86_expand_epilogue): Update.
10651         * config/sh/sh.c (output_stack_adjust): Update.
10652         (calc_live_regs): Update.
10653         (sh_expand_prologue): Update.
10654         (sh_builtin_saveregs): Update.
10655         (sh_va_start): Update.
10656         (initial_elimination_offset): Update.
10657         (sh_allocate_initial_value): Update.
10658         (sh_function_ok_for_sibcall): Update.
10659         (sh_get_pr_initial_val): Update.
10660         * config/sh/sh.md (return expander): Update.
10661         * config/avr/avr.c (frame_pointer_required_p): UPdate.
10662         * config/crx/crx.c (crx_compute_frame): UPdate.
10663         (crx_initial_elimination_offset): UPdate.
10664         * config/xtensa/xtensa.c (compute_frame_size): Update
10665         (xtensa_builtin_saveregs): Update.
10666         (xtensa_va_start): Update.
10667         (order_regs_for_local_alloc): Update.
10668         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
10669         (xstormy16_expand_builtin_va_start): Update.
10670         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
10671         * config/m68hc11/m68hc11.md (return expanders): Update.
10672         * config/m68hc11/m68hc11.c (expand_prologue): Update.
10673         (expand_epilogue): Update.
10674         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
10675         (cris_simple_epilogue): Update.
10676         (cris_expand_prologue): Update.
10677         (cris_expand_epilogue): Update.
10678         * config/iq2000/iq2000.c (iq2000_va_start): Update.
10679         (compute_frame_size): Update.
10680         * config/mt/mt.c (mt_compute_frame_size): Update.
10681         * config/mn10300/mn10300.c (expand_prologue): Update.
10682         (expand_epilogue): Update.
10683         (initial_offset): Update.
10684         (mn10300_builtin_saveregs):
10685         * config/mn10300/mn10300.md (return expander): Update.
10686         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10687         (ia64_initial_elimination_offset): Update.
10688         (ia64_initial_elimination_offset): Update.
10689         (ia64_expand_prologue): Update.
10690         * config/m68k/m68k.md (return expander): Update.
10691         * config/rs6000/rs6000.c (rs6000_va_start): Update.
10692         (rs6000_stack_info): Update.
10693         * config/mcore/mcore.c (layout_mcore_frame): Update.
10694         (mcore_expand_prolog): Update.
10695         * config/arc/arc.c (arc_compute_frame_size): Update.
10696         * config/score/score3.c (score3_compute_frame_size): Update.
10697         * config/score/score7.c (score7_compute_frame_size): Update.
10698         * config/arm/arm.c (use_return_insn): Update.
10699         (thumb_find_work_register): Update.
10700         (arm_compute_save_reg_mask): Update.
10701         (arm_output_function_prologue): Update.
10702         (arm_output_epilogue): Update.
10703         (arm_size_return_regs): Update.
10704         (arm_get_frame_offsets): Update.
10705         (arm_expand_prologue): Update.
10706         (thumb_exit): Update.
10707         (thumb_unexpanded_epilogue): Update.
10708         (thumb1_output_function_prologue): Update.
10709         * config/pa/pa.md (return expander): Update.
10710         * config/pa/pa.c (compute_frame_size): Update.
10711         (hppa_builtin_saveregs): Update.
10712         * config/mips/mips.c (mips_va_start): Update.
10713         (mips16_build_function_stub): Update.
10714         (mips_compute_frame_info): Update.
10715         (mips_restore_gp): Update.
10716         (mips_output_function_prologue): Update.
10717         (mips_expand_prologue): Update.
10718         * config/v850/v850.c (compute_frame_size): Update.
10719         (expand_prologue): * config/mmix/mmix.c (along): update.
10720         (mmix_initial_elimination_offset): update.
10721         (mmix_reorg): update.
10722         (mmix_use_simple_return): update.
10723         (mmix_expand_prologue): update.
10724         (mmix_expand_epilogue): Update.
10725         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
10726         (emit_link_insn): Update.
10727
10728 2008-04-08  Anatoly Sokolov <aesok@post.ru>
10729
10730         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
10731         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
10732         instructions.
10733         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
10734         atmega103 device.
10735
10736 2008-04-07  Jan Hubicka  <jh@suse.cz>
10737
10738         * function.h (rtl): Rename to x_rtl.
10739         (crtl): New define.
10740         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10741         frame_offset, stack_check_probe_note, arg_pointer_save_area,
10742         used_temp_slots avail_temp_slots, temp_slot_level,
10743         nonlocal_goto_handler_labels): Update accesstors.
10744         (rtl): New global variable.
10745         (struct function): Move some fileds to rtl_data.
10746         (get_arg_pointer_save_area): Update prototype.
10747         * builtins.c (expand_builtin_setjmp_receiver): Update call of
10748         get_arg_pointer_save_area.
10749         * expr.c (init_expr): Update
10750         * function.c (get_frame_size): Update
10751         (assign_stack_local): Update
10752         (expand_function_end): Update.
10753         (get_art_pointer_save_area): Update
10754         * function.h
10755         * emit-rtl.c (rtl): Declare.
10756         (regno_reg_rtx): Declare.
10757         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10758         Update.
10759         (gen_reg_rtx): Update.
10760         * varasm.c (n_deferred_constatns): Update accestor.
10761         (init_varasm_status): Do not allocate varasm_status.
10762         (force_const_mem, get_pool_size, output_constant_pool): Update.
10763         * stmt.c (force_label_rtx): Do not use x_ prefixes.
10764         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10765         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
10766         * sparc/sparc.h (INIT_EXPANDERS): Update.
10767         * ia64/ia64.h (INIT_EXPANDERS): Update.
10768
10769 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
10770
10771         * reload.c (push_secondary_reload): Add missing break to for loop.
10772
10773 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10774
10775         PR middle-end/PR28690
10776         * rtlanal.c: Update copyright years.
10777         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
10778         as REG_POINTER and MEM_POINTER operands.
10779         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
10780         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
10781         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
10782         * gcse.c: Update copyright years.
10783         (pre_delete): Call gen_reg_rtx_and_attrs.
10784         (hoist_code): Likewise.
10785         (build_store_vectors): Likewise.
10786         (delete_store): Likewise.
10787         * loop-invariant.c (move_invariant_reg): Likewise.
10788         Update copyright years.
10789
10790 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
10791
10792         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
10793         control string instead of quoted.
10794
10795 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
10796
10797         * doc/rtl.texi: Rewrite of subreg section.
10798
10799 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
10800
10801         PR/35842
10802         * config/i386/i386.c (legitimize_pic_address): Add treating
10803         of dllimport SYM_REF's.
10804         (legitimize_dllimport_symbol): Add prototype.
10805
10806 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10807
10808         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
10809         reference in constructor with non self-referential type.
10810
10811 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10812
10813         Removal of Return with Depressed Stack Pointer support
10814         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
10815         (ECF_SP_DEPRESSED): Likewise.
10816         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
10817         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
10818         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10819         (expand_call): Do not test ECF_SP_DEPRESSED.
10820         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10821         * function.c (keep_stack_depressed): Delete.
10822         (handle_epilogue_set): Likewise.
10823         (update_epilogue_consts): Likewise.
10824         (emit_equiv_load): Likewise.
10825         (thread_prologue_and_epilogue_insns): Remove support for Return with
10826         Depressed Stack Pointer.
10827         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10828
10829 2008-04-06  Richard Guenther  <rguenther@suse.de>
10830
10831         PR tree-optimization/35400
10832         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
10833         information from SSA_NAMEs.
10834
10835 2008-04-06  Anatoly Sokolov <aesok@post.ru>
10836
10837         * config/avr/avr.h (avr_mega_p): Remove declaration.
10838         (AVR_MEGA): Remove macro.
10839         * config/avr/avr.c (avr_mega_p): Remove variable.
10840         (avr_override_options): Remove inicializion of avr_mega_p.
10841         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10842         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10843         (avr_jump_mode): (Ditto.).
10844         (avr_output_progmem_section_asm_op): (Ditto.).
10845         (avr_asm_init_sections): (Ditto.).
10846         (avr_asm_init_sections): (Ditto.).
10847         (avr_rtx_costs): (Ditto.).
10848         * config/avr/avr.md: (Ditto.).
10849         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
10850         '__AVR_MEGA__'.
10851
10852 2008-04-06  Richard Guenther  <rguenther@suse.de>
10853
10854         PR tree-optimization/35842
10855         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
10856         is_gimple_invariant_address.
10857
10858 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10859
10860         * gcc.c (default_compilers): Sync Fortran extensions list with
10861         that in fortran/lang-specs.h.
10862         * doc/invoke.texi: Likewise.
10863         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
10864         * dwarf2out.c (gen_compile_unit_die): Likewise.
10865
10866 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
10867
10868         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
10869
10870 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
10871
10872         PR target/12329
10873         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
10874         attribute is used for nested functions.
10875
10876 2008-04-05  Jan Hubicka  <jh@suse.cz>
10877
10878         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
10879
10880         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
10881         letter argument.
10882         (dump_files): Update.
10883         (enable_rtl_dump_file): Do not accept letter argument.
10884         * tree-pass.h (dump_file_info): Remove letter argument.
10885         * toplev.c (decode_d_option): Update -da handling.
10886         * toplev.h (enable_rtl_dump_file): Update prototype.
10887         * passes.c (register_one_dump_file): Do not accept IPA argument; work
10888         it out based on pass type.
10889         (register_dump_files_1): Likewise.
10890         (init_optimization_passes): Update register_one_dump_file calls.
10891         (execute_one_pass): Sanity check that IPA passes are called at IPA
10892         level and RTL passes at RTL level.
10893         (execute_pass_list): IPA pass can not be after or subpass of
10894         GIMPLE/RTL pass.
10895         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
10896         disallov RTL subpasses of IPA subpasses.
10897
10898 2008-04-05  Ben Elliston  <bje@au.ibm.com>
10899
10900         * tree-cfg.c (need_fake_edge_p): Return false for calls to
10901         builtins that return exactly once and do not throw. Cache call to
10902         call_expr_flags.
10903
10904 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
10905
10906         PR rtl-optimization/34916
10907         PR middle-end/35519
10908         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
10909         between instruction pairs.
10910
10911 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
10912
10913         * doc/invoke.texi: Document -mbitops for SH.
10914         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
10915         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
10916         * config/sh/sh.c (print_operand): Add %t operand code.
10917         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
10918         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
10919         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
10920         (extendqihi2): Likewise.
10921         (movqi_i): Likewise.
10922         (insv): Use bset, bclr and bst instructions for SH2A if possible.
10923         (extv): Use bld instruction for SH2A if possible.
10924         (extzv): Likewise.
10925         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
10926         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
10927         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
10928         (bset.b, bclr.b): Define peepholes.
10929         * config/sh/sh.opt (mbitops): New option.
10930
10931 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
10932
10933         PR target/35620
10934         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
10935         and view convert expression.
10936
10937 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
10938
10939         PR target/35364
10940         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
10941
10942 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
10943
10944         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
10945
10946         * config/i386/cpuid.h (bit_AES): New.
10947         (bit_PCLMUL): Likewise.
10948
10949         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
10950         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
10951         SSE2 if AES or PCLMUL is enabled.
10952         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
10953         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10954         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
10955         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
10956         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
10957         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
10958         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
10959         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
10960         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
10961         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
10962         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
10963         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
10964         __builtin_ia32_aeskeygenassist128 and
10965         __builtin_ia32_pclmulqdq128.
10966         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
10967         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
10968         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
10969
10970         * config/i386/i386.h (TARGET_AES): New.
10971         (TARGET_PCLMUL): Likewise.
10972         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
10973
10974         * config/i386/i386.md (UNSPEC_AESENC): New.
10975         (UNSPEC_AESENCLAST): Likewise.
10976         (UNSPEC_AESDEC): Likewise.
10977         (UNSPEC_AESDECLAST): Likewise.
10978         (UNSPEC_AESIMC): Likewise.
10979         (UNSPEC_AESKEYGENASSIST): Likewise.
10980         (UNSPEC_PCLMUL): Likewise.
10981
10982         * config/i386/i386.opt (maes): New.
10983         (mpclmul): Likewise.
10984
10985         * config/i386/sse.md (aesenc): New pattern.
10986         (aesenclast): Likewise.
10987         (aesdec): Likewise.
10988         (aesdeclast): Likewise.
10989         (aesimc): Likewise.
10990         (aeskeygenassist): Likewise.
10991         (pclmulqdq): Likewise.
10992
10993         * config/i386/wmmintrin.h: New.
10994
10995         * doc/extend.texi: Document AES and PCLMUL built-in function.
10996
10997         * doc/invoke.texi: Document -maes and -mpclmul.
10998
10999 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
11000
11001         * function.c (free_after_parsing): Replace with
11002         cxx_push_function_context from C++ front-end.
11003         (allocate_struct_function): Don't call langhook.
11004         * langhooks.h (struct lang_hooks_for_functions): Delete.
11005         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
11006         member "function".
11007         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
11008         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
11009         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
11010         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
11011         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
11012         remove LANG_HOOKS_FUNCTION_INITIALIZER.
11013         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
11014
11015         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
11016         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
11017
11018 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
11019
11020         PR c/35440
11021         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
11022         for all types.
11023
11024 2008-04-04  Richard Guenther  <rguenther@suse.de>
11025
11026         PR middle-end/35823
11027         * fold-const.c (optimize_minmax_comparison): Use the correct
11028         type for the constant in the simplified comparison.
11029
11030 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
11031
11032         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
11033         Pass L2 size as "--param l2-cache-size" to the compiler.
11034         (decode_l2_cache): New function to decode L2 cache parameters using
11035         0x8000006 extended cpuid function.
11036         (detect_caches_amd): Determine parameters of L2 cache using
11037         decode_l2_caches function.
11038         (decode_caches_intel): Decode L2 cache parameters.
11039         (detect_caches_intel): Determine L2 cache parameters using
11040         decode_caches_intel and decode_l2_caches functions.
11041
11042 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
11043
11044         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
11045         secondary input reload for subword loads from the constant pool.
11046
11047 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
11048
11049         PR target/35713
11050         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
11051           constants of the appropriate size for runtime calculations.
11052
11053         PR c/35712
11054         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
11055           decimal-float literal constant zero.
11056
11057 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
11058
11059         PR c/35738
11060         * c-parser.c (c_parser_omp_atomic): Call
11061         default_function_array_conversion on the RHS.
11062
11063         PR middle-end/35818
11064         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
11065         call is_variable_sized if decl has incomplete type.
11066
11067 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
11068
11069         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
11070
11071 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
11072
11073         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
11074         iterators.
11075         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
11076         (sgt<u>): Merge sgt and sgtu into new expander.
11077         (sgt, sgtu): Remove expanders.
11078         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
11079         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
11080         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
11081         *sgtu_<mode>_mips16 into new pattern.
11082         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
11083         (sge<u>): Merge sge and sgeu into new expander.
11084         (sge, sgeu): Remove expanders.
11085         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
11086         new pattern.
11087         (*sge_<mode>, second *sge_<mode>): Remove patterns.
11088         (slt<u>): Merge slt and sltu into new expander.
11089         (slt, sltu): Remove expanders.
11090         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
11091         (*slt_<mode>, *sltu_<mode>): Remove patterns.
11092         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
11093         *sltu_<mode>_mips16 into new pattern.
11094         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
11095         (sle<u>): Merge sle and sleu into new expander.
11096         (sle, sleu): Remove expanders.
11097         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
11098         (*sle_<mode>, *sleu_<mode>): Remove patterns.
11099         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
11100         *sleu_<mode>_mips16 into new pattern.
11101         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
11102
11103 2008-04-03  Jan Hubicka  <jh@suse.cz>
11104
11105         PR tree-optimization/35795
11106         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
11107         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11108         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11109         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11110         * score/score3.c (score3_output_mi_thunk): Likewise.
11111         * score/score7.c (score7_output_mi_thunk): Likewise.
11112         * mips/mips.c (mips_output_mi_thunk): Likewise.
11113
11114 2008-04-03  Richard Guenther  <rguenther@suse.de>
11115
11116         * tree-vrp.c (extract_range_from_unary_expr): Handle all
11117         conversions.  Simplify code.
11118
11119 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
11120
11121         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
11122
11123 2008-04-03  Tom Tromey  <tromey@redhat.com>
11124             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11125
11126         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11127         * config/bfin/t-bfin-linux (generated_files): Add
11128         linux-sysroot-suffix.h.
11129         * doc/install.texi (Prerequisites): Require make 3.80.
11130         * doc/sourcebuild.texi (Front End Directory): Document new
11131         variable.
11132         * Makefile.in (generated_files): New variable.
11133         (ALL_HOST_OBJS): New variable.
11134         ($(ALL_HOST_OBJS)): New target.
11135
11136 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
11137
11138         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
11139         (remap_block): Call id->transform_lang_insert_block instead
11140         of langhook.
11141         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
11142         Set id.transform_lang_insert_block to NULL.
11143         (clone_body): Move to cp/optimize.c
11144         * tree-inline.h (struct copy_body_data): Change
11145         transform_lang_insert_block to function pointer.
11146         (copy_generic_body, copy_decl_no_change): Export.
11147         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
11148         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
11149         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
11150
11151         * c-tree.h (insert_block): Kill.
11152         * c-decl.c (insert_block): Kill.
11153
11154 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
11155
11156         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11157         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11158         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
11159         argument.
11160         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
11161         argument, call {push,pop}_function_context from here.
11162         * c-parser.c: Use c_{push,pop}_function_context.
11163
11164         * function.c (push_function_context_to): Move meat ...
11165         (push_function_context): ... here.  Simplify.
11166         * function.c (pop_function_context_from): Move meat ...
11167         (pop_function_context): ... here.  Simplify.
11168         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
11169         leave_nested).
11170         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11171         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11172         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
11173         * tree.h (push_function_context_to, pop_function_context_from): Remove.
11174
11175 2008-04-03  Ben Elliston  <bje@au.ibm.com>
11176
11177         * expmed.c (extract_force_align_mem_bit_field): Remove.
11178
11179 2008-04-03  Richard Guenther  <rguenther@suse.de>
11180
11181         PR middle-end/35800
11182         * expr.h (try_casesi): Adjust prototype.
11183         * expr.c (try_casesi): Take fallback label as extra parameter.
11184         Use that for gen_casesi if default_label is NULL.
11185         * stmt.c (expand_case): Pass fallback label to try_casesi,
11186         make sure to fill gaps with a fallback label if default_label
11187         is not present.
11188
11189 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
11190
11191         PR target/35801
11192         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
11193
11194 2008-04-03  Ben Elliston  <bje@au.ibm.com>
11195
11196         * expmed.c (extract_split_bit_field): Remove if (0) code.
11197         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
11198         (do_ds_constraint): Likewise.
11199
11200 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
11201
11202         * doc/cppopts.texi (-dU): Document.
11203         * c-common.h (flag_dump_macros): Update comment.
11204         * c-opts.c (handle_OPT_d): Handle -dU.
11205         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
11206         dump_queued_macros, cb_used_define, cb_used_undef): New.
11207         (init_pp_output): Handle -dU.
11208         (cb_line_change): Call dump_queued_macros.
11209         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
11210
11211 2008-04-02  Anatoly Sokolov <aesok@post.ru>
11212
11213         * config/avr/predicates.md (io_address_operand): New predicate.
11214         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
11215         * config/avr/avr.c (avr_io_address_p): Remove function.
11216         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
11217         'avr_io_address_p' function.
11218         (out_movhi_r_mr): (Ditto.).
11219         (out_movqi_mr_r): (Ditto.).
11220         (out_movhi_mr_r): (Ditto.).
11221         (avr_address_cost): (Ditto.).
11222
11223 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
11224
11225         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
11226         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
11227         in 32bit mode when XMM registers are available to avoid store
11228         forwarding stalls.
11229         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
11230         corresponding post-reload splitters.
11231
11232 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
11233
11234         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
11235         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
11236         __builtin_ia32_roundss.
11237         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
11238         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
11239         __builtin_ia32_roundss.
11240         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
11241         IX86_BUILTIN_SHUFPD here.
11242
11243 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
11244
11245         * config/i386/i386.md (plogic): New.
11246         (plogicprefix): Likewise.
11247
11248         * config/i386/mmx.md (mmx_<code><mode>3): New.
11249         (mmx_and<mode>3): Removed.
11250         (mmx_ior<mode>3): Likewise.
11251         (mmx_xor<mode>3): Likewise.
11252
11253         * config/i386/sse.md (<code><mode>3): New.
11254         (*<code><mode>3): Likewise.
11255         (*<code><mode>3): Likewise.
11256         (<code><mode>3): Likewise.
11257         (*sse_<code><mode>3): Likewise.
11258         (*sse2_<code><mode>3): Likewise.
11259         (<code>tf3): Likewise.
11260         (*<code>tf3): Likewise.
11261         (and<mode>3): Likewise.
11262         (*and<mode>3): Likewise.
11263         (ior<mode>3): Removed.
11264         (*ior<mode>3): Likewise.
11265         (xor<mode>3): Likewise.
11266         (*xor<mode>3): Likewise.
11267         (*and<mode>3): Likewise.
11268         (*ior<mode>3): Likewise.
11269         (*xor<mode>3): Likewise.
11270         (and<mode>3): Likewise.
11271         (*sse_and<mode>3): Likewise.
11272         (*sse2_and<mode>3): Likewise.
11273         (andtf3): Likewise.
11274         (*andtf3): Likewise.
11275         (ior<mode>3): Likewise.
11276         (*sse_ior<mode>3): Likewise.
11277         (*sse2_ior<mode>3): Likewise.
11278         (iortf3): Likewise.
11279         (*iortf3): Likewise.
11280         (xor<mode>3): Likewise.
11281         (*sse_xor<mode>3): Likewise.
11282         (*sse2_xor<mode>3): Likewise.
11283         (xortf3): Likewise.
11284         (*xortf3): Likewise.
11285
11286 2008-04-02  Richard Guenther  <rguenther@suse.de>
11287
11288         PR tree-optimization/14495
11289         PR tree-optimization/34793
11290         * tree-vrp.c (struct switch_update): New structure.
11291         (to_remove_edges, to_update_switch_stmts): New VECs.
11292         (simplify_switch_using_ranges): New function.  Remove not taken
11293         case labels and edges.
11294         (simplify_stmt_using_ranges): Call it.
11295         (identify_jump_threads): Mark edges we have queued for removal
11296         so we don't thread them.
11297         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
11298         case label vector.
11299         * tree-cfg.c (group_case_labels): Deal with missing default label.
11300         (tree_verify_flow_info): Allow missing default label.
11301         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
11302         (emit_case_nodes): Likewise.
11303         (expand_case): Do not rely on the default label to be present.
11304         * expr.c (try_casesi): Deal with NULL default_label.
11305         (do_tablejump): Likewise.
11306
11307 2008-04-02  Richard Guenther  <rguenther@suse.de>
11308
11309         PR tree-optimization/14495
11310         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
11311         SWITCH_EXPR here ...
11312         (vrp_visit_switch_stmt): ... but here (new function).
11313         (find_case_label_index): New helper function.
11314         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
11315
11316 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11317
11318         * fwprop.c: Fix ISO-C99ism.
11319
11320 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11321
11322         PR bootstrap/35752
11323         * Makefile.in (objdir): Set it here.
11324         * configure.ac: Not here.  Find dynamic linker characteristics.
11325         * exec-tool.in: Use them.
11326         * aclocal.m4: Regenerate.
11327         * configure: Regenerate.
11328
11329 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11330
11331         * expr.c (expand_var): Delete it.
11332         * expr.h (expand_var): Delete prototype.
11333         * function.c (expand_function_start): Use expand_decl instead.
11334         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
11335         langhook.
11336
11337 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
11338
11339         PR rtl-optimization/35542
11340         * fwprop.c (forward_propagate_and_simplify): Replace
11341         loc_reg_mentioned_in_p with reg_mentioned_p.
11342
11343 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11344
11345         PR rtl-optimization/35281
11346         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
11347         (propagate_rtx_1): Handle PR_HANDLE_MEM.
11348         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
11349         (varying_mem_p): Move above propagate_rtx.
11350         (all_uses_available_at): Do not check MEMs.
11351
11352 2008-04-02  Rafael Espindola  <espindola@google.com>
11353
11354         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
11355         (register_edge_assert_for_2): Split the cond argument.
11356         (register_edge_assert_for_1): Adjust for the change in
11357         register_edge_assert_for_2.
11358         (register_edge_assert_for): Split the cond argument.
11359         (find_switch_asserts): Adjust for the change in
11360         register_edge_assert_for.
11361
11362 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
11363
11364         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
11365         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
11366         offsets for 64-bit mingw.
11367         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
11368         abi for x86_64-pc-mingw.
11369
11370 2008-04-02  Richard Guenther  <rguenther@suse.de>
11371
11372         * tree-vrp.c (extract_range_from_assert): Make sure to not
11373         produce range min/max with TREE_OVERFOW set.
11374         If merging a anti-range and a range keep the anti-range if
11375         the range covers all values of the type.
11376         (register_edge_assert_for_2): Only allow sign-changing
11377         conversions in detecting canonical range checks.  Also
11378         register an assert for the unsigned name if useful.
11379
11380         PR tree-optimization/35787
11381         * tree-vrp.c (vrp_val_max): New function.
11382         (vrp_val_min): Likewise.
11383         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
11384         (vrp_val_is_min): Likewise.
11385         (supports_overflow_infinity): Use vrp_val_{min,max}.
11386         (negative_overflow_infinity): Likewise.
11387         (positive_overflow_infinity): Likewise.
11388         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
11389         (is_positive_overflow_infinity): Likewise.
11390         (is_overflow_infinity): Likewise.
11391         (avoid_overflow_infinity): Use vrp_val_{min,max} and
11392         vrp_val_is_{min,max}.
11393         (set_and_canonicalize_value_range): Canonicalize anti-ranges
11394         to ranges if possible.  Avoid empty ranges.
11395
11396 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11397
11398         PR middle-end/35705
11399         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
11400         the expression is a function address.
11401
11402 2008-04-01  George Helffrich  <george@gcc.gnu.org>
11403
11404         PR fortran/35154, fortran/23057
11405         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
11406         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
11407         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
11408         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
11409         in common.
11410         (dbxout_syms): Check for COMMON-based symbol and wrap in
11411         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
11412         in bracket for efficiency.
11413
11414         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
11415         using DW_TAG_common_block + member offset.
11416         (add_pubname_string): New function.
11417         (dw_expand_expr): New function to find block name and offset for
11418         COMMON var.
11419         (common_check): New function to check whether symbol in Fortran COMMON.
11420         (gen_variable_die): If COMMON, use DW_TAG_common_block.
11421
11422 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
11423
11424         PR c/35436
11425         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
11426
11427 2008-04-02  Ben Elliston  <bje@au.ibm.com>
11428
11429         * config/v850/v850.md (casesi): Remove if (0) code.
11430         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11431         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11432
11433 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
11434
11435         * config/i386/i386.md (rex64suffix): New mode attribute.
11436         (floathi<mode>2): Disable expander for SSE math.
11437         (*floathi<mode>2_1): New insn insn_and_split pattern.
11438         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
11439         corresponding post-reload splitters.
11440         (*floathi<mode>2_i387): New macroized insn pattern.
11441         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
11442         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
11443         insn_and_split pattern.
11444         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
11445         New macroized instruction patterns and corresponding post-reload
11446         splitters.
11447         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
11448         and corresponding post-reload splitters.
11449         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
11450         New macroized instruction patterns.
11451         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
11452         macroized instruction patterns and corresponding post-reload splitters.
11453         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
11454         corresponding post-reload splitters.
11455         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
11456         New macroized instruction patterns.
11457         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
11458         corresponding post-reload splitters.
11459         (*floatsi<mode>2_i387): New macroized instruction patterns.
11460
11461 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
11462
11463         * config/i386/i386.md (smaxmin): New.
11464         (umaxmin): Likewise.
11465         (maxminiprefix): Likewise.
11466         (maxminfprefix): Likewise.
11467         (<code><mode>3): Likewise.
11468         (smin<mode>3): Removed.
11469         (smax<mode>3): Likewise.
11470
11471         * config/i386/mmx.md (mmx_<code>v2sf3): New.
11472         (mmx_<code>v4hi3): Likewise.
11473         (mmx_<code>v8qi3): Likewise.
11474         (mmx_smaxv2sf3): Removed.
11475         (mmx_sminv2sf3): Likewise.
11476         (mmx_umaxv8qi3): Likewise.
11477         (mmx_smaxv4hi3): Likewise.
11478         (mmx_uminv8qi3): Likewise.
11479         (mmx_sminv4hi3): Likewise.
11480
11481         * config/i386/sse.md (<addsub><mode>3): New.
11482         (*<addsub><mode>3): Likewise.
11483         (<sse>_vm<addsub><mode>3): Likewise.
11484         (<maxmin><mode>3): Likewise.
11485         (*<maxmin><mode>3_finite): Likewise.
11486         (*<maxmin><mode>3): Likewise.
11487         (<sse>_vm<maxmin><mode>3): Likewise.
11488         (sse3_h<addsub>v4sf3): Likewise.
11489         (sse3_h<addsub>v2df3): Likewise.
11490         (<maxmin>v16qi3): Likewise.
11491         (*<maxmin>v16qi3): Likewise.
11492         (<maxmin>v8hi3): Likewise.
11493         (*<maxmin>v8hi3): Likewise.
11494         (*sse4_1_<maxmin><mode>3): Likewise.
11495         (*sse4_1_<maxmin><mode>3): Likewise.
11496         (add<mode>3): Removed.
11497         (*add<mode>3): Likewise.
11498         (<sse>_vmadd<mode>3): Likewise.
11499         (sub<mode>3): Likewise.
11500         (*sub<mode>3): Likewise.
11501         (<sse>_vmsub<mode>3): Likewise.
11502         (smin<mode>3): Likewise.
11503         (*smin<mode>3_finite): Likewise.
11504         (*smin<mode>3): Likewise.
11505         (<sse>_vmsmin<mode>3): Likewise.
11506         (smax<mode>3): Likewise.
11507         (*smax<mode>3_finite): Likewise.
11508         (*smax<mode>3): Likewise.
11509         (<sse>_vmsmax<mode>3): Likewise.
11510         (sse3_haddv4sf3): Likewise.
11511         (sse3_haddv2df3): Likewise.
11512         (sse3_hsubv4sf3): Likewise.
11513         (sse3_hsubv2df3): Likewise.
11514         (umaxv16qi3): Likewise.
11515         (*umaxv16qi3): Likewise.
11516         (smaxv8hi3): Likewise.
11517         (*smaxv8hi3): Likewise.
11518         (*sse4_1_smax<mode>3): Likewise.
11519         (*sse4_1_umax<mode>3): Likewise.
11520         (uminv16qi3): Likewise.
11521         (*uminv16qi3): Likewise.
11522         (sminv8hi3): Likewise.
11523         (*sminv8hi3): Likewise.
11524         (*sse4_1_smin<mode>3): Likewise.
11525         (*sse4_1_umin<mode>3): Likewise.
11526
11527 2008-04-01  Rafael Espindola  <espindola@google.com>
11528
11529         * tree-cfg.c (verify_expr): remove in_phi.
11530         (verify_stmt): Don't call walk_tree with verify_expr. Use
11531         is_gimple_min_invariant instead of is_gimple_val.
11532
11533 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
11534
11535         * doc/include/gpl_v3.texi: Update for manpage generation.
11536         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
11537         gpl.texi.
11538         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
11539         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
11540         gpl_v3.texi instead of gpl.texi.
11541         (gpl.pod): New.
11542
11543 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
11544
11545         PR pch/13675
11546         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
11547
11548 2008-04-01  Rafael Espindola  <espindola@google.com>
11549
11550         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
11551         (extract_code_and_val_from_cond): Use
11552         extract_code_and_val_from_cond_with_ops.
11553
11554 2008-04-01  Jan Hubicka  <jh@suse.cz>
11555
11556         * function.c (free_after_compilation): Free epilogue_delay_list.
11557         (prepare_function_start): Assert that previous compilation was freed.
11558
11559 2008-04-01  Jan Hubicka  <jh@suse.cz>
11560             Jim Wilson  <wilson@tuliptree.org>
11561             Andreas Tobler <andreast@gcc.gnu.org>
11562
11563         PR middle-end/35781
11564         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
11565         rtl.emit instead cfun->emit.
11566         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
11567         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
11568
11569 2008-04-01  Ben Elliston  <bje@au.ibm.com>
11570
11571         * doc/c-tree.texi (Function Basics): Fix grammatical error.
11572
11573 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
11574
11575         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
11576         New options
11577         (fprofile-use): Add var flag_profile_use
11578         * coverage.c (coverage_begin_output): Do not open a gcno file for
11579         output only if -ftest-coverage is set.
11580         Do not add getpwd() to gcda file path.
11581         (build_gcov_info): Check the new flag
11582         flag_profile_datafile_relative_path.
11583         (coverage_init): Use profile_data_prefix.
11584         Read profile counter only if flag_profile_use is set.
11585         * opts.c (common_handle_option): New option fprofile-use=,
11586         fprofile-dir=, fprofile-generate=.
11587         * toplev.c (profile_data_prefix): New variable definition.
11588         * toplev.h (profile_data_prefix): New declaration.
11589         * doc/invoke.tex (Option Summary, Optimization Options):
11590         Add new options.
11591
11592 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
11593
11594         * varasm.c (output_constant_pool_1): In LABEL_REF check,
11595         use tmp consistently.
11596
11597         PR target/35695
11598         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
11599         * config/ia64/ia64.c (rtx_needs_barrier): Handle
11600         UNSPEC_FR_RECIP_APPROX_RES.
11601         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11602
11603 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
11604
11605         PR c/35750
11606         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11607
11608 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11609
11610         PR middle-end/30186
11611         * fold-const.c (fold_indirect_ref_1): Support accessing non first
11612         element of the vector via a pointer.
11613
11614 2008-03-31  Ian Lance Taylor  <iant@google.com>
11615
11616         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11617
11618 2008-03-31  Jan Hubicka  <jh@suse.cz>
11619
11620         * builtins.c (expand_builtin_setjmp_receiver): Update call of
11621         get_arg_pointer_save_area.
11622         * expr.c (init_expr): Just clear out rtl.expr.
11623         * function.c (free_after_compilation): Clear out whole RTL structure.
11624         (get_func_frame_size): Merge into ...
11625         (get_frame_size): ... this one.
11626         (assign_stack_local_1): Merge into ...
11627         (assign_stack_local): ... this one.
11628         (expand_function_end): Update call of get_arg_pointer_save_area.
11629         (get_art_pointer_save_area): Remove cfun argument.
11630         * function.h (emit_status): regno_pointer_align does not need length
11631         attribute. Move x_regno_reg_rtx to ...
11632         (regno_reg_rtx): ... new global array.
11633         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
11634         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
11635         apply_args_value, forced_labels, stack_pointer_delta):
11636         Update accestors.
11637         (struct varasm_status): Move here from varasm.c
11638         (struct rtl_data): New. Move here some fields from struct function.
11639         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11640         frame_offset, stack_check_probe_note, arg_pointer_save_area,
11641         used_temp_slots avail_temp_slots, temp_slot_level,
11642         nonlocal_goto_handler_labels): Update accesstors.
11643         (rtl): New global variable.
11644         (struct function): Move some fileds to rtl_data.
11645         (get_arg_pointer_save_area): Update prototype.
11646         * emit-rtl.c (rtl): Declare.
11647         (regno_reg_rtx): Declare.
11648         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11649         Update.
11650         (gen_reg_rtx): Update.
11651         (init_virtual_regs): Do not tate emit_status argument.
11652         (init_emit): Do not allocate emit.
11653         * varasm.c (varasm_statuc): Move to function.h.
11654         (n_deferred_constatns): Update accestor.
11655         (init_varasm_status): Do not allocate varasm_status.
11656         (force_const_mem, get_pool_size, output_constant_pool): Update.
11657         * stmt.c (force_label_rtx): Do not use x_ prefixes.
11658         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11659
11660 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
11661
11662         PR rtl-optimization/35729
11663         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
11664         references.
11665
11666 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
11667
11668         PR target/32000
11669         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
11670         load/store if memory is unaligned.
11671         (*movti_rex64): Likewise.
11672
11673         * config/i386/predicates.md (misaligned_operand): New.
11674
11675 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
11676
11677         PR tree-opt/35431
11678         * tree-ssa-phiopt.c (conditional_replacement): Return early for
11679         complex types.
11680
11681 2008-03-31  Jan Beulich  <jbeulich@novell.com>
11682
11683         * config/ia64/constraints.md: Add 'j' constraint.
11684         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
11685         (movdi_internal): Likewise.
11686
11687 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
11688
11689         PR c/35748
11690         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
11691
11692 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11693
11694         PR target/35757
11695         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
11696         proper error message for the third argument on blendpd and
11697         blendps.
11698
11699         * config/i386/sse.md (blendbits): New.
11700         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
11701
11702 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
11703
11704         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
11705
11706 2008-03-30  Richard Guenther  <rguenther@suse.de>
11707
11708         PR middle-end/31023
11709         * fold-const.c (fold_sign_changed_comparison): Do leave
11710         conversions to base-types alone.
11711
11712 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11713
11714         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
11715         the link register if one altivec register is be saved.
11716
11717 2008-03-30  Ben Elliston  <bje@au.ibm.com>
11718
11719         * final.c (final_scan_insn): Remove if (0) code.
11720
11721 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
11722
11723         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
11724
11725 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
11726
11727         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
11728         of V4SFmode to ix86_binary_operator_ok.
11729
11730 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
11731
11732         * config/i386/i386.c (override_options): Initialize
11733         ix86_veclib_handler to ix86_veclibabi_svml when
11734         -mveclibabi=svml is used.
11735         (ix86_veclibabi_svml): New function for SVML ABI style
11736         vectorization support.
11737         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
11738
11739 2008-03-28  Rafael Espindola  <espindola@google.com>
11740
11741         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
11742         (tree_binary_nonnegative_warnv_p): Make it public.
11743         (tree_single_nonnegative_warnv_p): Make it public.
11744         (tree_invalid_nonnegative_warnv_p): Make it public.
11745         (tree_unary_nonzero_warnv_p): Make it public.
11746         (tree_binary_nonzero_warnv_p): Make it public
11747         (tree_single_nonzero_warnv_p): Make it public.
11748         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
11749         (extract_range_from_binary_expr): Split the expr argument.
11750         (extract_range_from_unary_expr): Split the expr argument.
11751         (extract_range_from_comparison): Split the expr argument.
11752         (extract_range_from_expr): Use the new aux functions.
11753         (vrp_evaluate_conditional_warnv): Use
11754         vrp_evaluate_conditional_warnv_with_ops.
11755         * tree.h (tree_unary_nonzero_warnv_p): Declare.
11756         (tree_binary_nonzero_warnv_p): Declare.
11757         (tree_single_nonzero_warnv_p): Declare.
11758         (tree_expr_nonzero_warnv_p): Declare.
11759         (tree_unary_nonnegative_warnv_p): Declare.
11760         (tree_binary_nonnegative_warnv_p): Declare.
11761         (tree_single_nonnegative_warnv_p): Declare.
11762         (tree_invalid_nonnegative_warnv_p): Declare.
11763
11764 2008-03-28  Richard Guenther  <rguenther@suse.de>
11765
11766         PR tree-optimization/30317
11767         PR tree-optimization/30911
11768         PR tree-optimization/34793
11769         * tree-vrp.c (set_and_canonicalize_value_range): New function.
11770         (struct assert_locus_d): New member EXPR.
11771         (register_new_assert_for): Add EXPR parameter to support
11772         ASSERT_EXPR <name, expr OP limit>.
11773         (register_edge_assert_for_1): Adjust callers.
11774         (find_assert_locations): Likewise.
11775         (process_assert_insertions_for): Build condition from expression.
11776         (extract_range_from_assert): Handle ASSERT_EXPRs
11777         of the form ASSERT_EXPR <name, expr OP limit>.
11778         (register_edge_assert_for_2): New helper registering
11779         asserts for comparisons.  Recognize range tests of the form
11780         (unsigned)i - CST1 OP CST2.
11781         (register_edge_assert_for_1): Use it.
11782         (register_edge_assert_for): Likewise.
11783         (needs_overflow_infinity): Integer sub-types
11784         do not need overflow infinities.
11785         (vrp_val_is_max): The extreme values of integer sub-types
11786         are those of the base type.
11787         (vrp_val_is_min): Likewise.
11788         * tree.def (ASSERT_EXPR): Document extra allowed conditional
11789         expressions.
11790
11791 2008-03-28  Nick Clifton  <nickc@redhat.com>
11792
11793         PR target/31110
11794         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
11795         Return GENERAL_REGS for stack adjustment reloads.
11796
11797 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11798
11799         PR target/31334
11800         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
11801         const_vector when all the vectors are constant.
11802
11803 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
11804
11805         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
11806         comparisons.
11807         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
11808         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
11809         (scc_sf): New.
11810         (s<code>_sf): Use new scc_sf attribute for opcode names.
11811
11812 2008-03-27  Tom Tromey  <tromey@redhat.com>
11813
11814         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
11815         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
11816         config/spu/t-spu-elf, config/i386/t-interix,
11817         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
11818         config/i386/x-darwin, config/i386/x-mingw32,
11819         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
11820         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
11821         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
11822         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
11823         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
11824         config/rs6000/x-darwin, config/rs6000/t-rs6000,
11825         config/score/t-score-elf, config/arm/t-strongarm-pe,
11826         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
11827         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
11828         Revert automatic dependency patch.
11829
11830 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11831
11832         PR target/35657
11833         * config/i386/i386.c (ix86_function_arg_boundary): Align
11834         decimal floating point to its natural boundary.
11835
11836 2008-03-27  Richard Guenther  <rguenther@suse.de>
11837
11838         PR middle-end/35716
11839         * fold-const.c (fold_comparison): Restrict distinct decl
11840         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
11841         solely rely on operand_equal_p.
11842
11843 2008-03-27  Richard Guenther  <rguenther@suse.de>
11844
11845         PR c/32511
11846         * c-common.c (handle_weak_attribute): Reject combination of
11847         weak and inline.
11848
11849 2008-03-27  Richard Guenther  <rguenther@suse.de>
11850
11851         PR tree-optimization/32810
11852         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
11853         conversions from DECL_INITIAL.
11854         (fold_const_aggregate_ref): Likewise from constructor elements.
11855
11856 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
11857
11858         * tree-affine.h (aff_combination_expand): Declare.
11859         (get_inner_reference_aff): Likewise.
11860         * tree-affine.c (aff_combination_expand): Split out from
11861         tree_to_aff_combination_expand.
11862         (get_inner_reference_aff): New function.
11863         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
11864         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
11865         (struct lim_aux_data): sm_done field removed.
11866         (mem_ref_loc_p, mem_ref_locs_p): New types.
11867         (struct mem_ref): Added id, stored, accesses_in_loop,
11868         indep_loop, dep_loop, indep_ref, dep_ref fields.
11869         Removed is_stored, locs and next fields.
11870         (memory_accesses): New variable.
11871         (movement_possibility): Do not allow moving statements
11872         that store to memory.
11873         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
11874         New functions.
11875         (determine_max_movement): For statements with memory references,
11876         find the outermost loop in that the reference is independent.
11877         (move_computations_stmt): Mark the virtual operands for renaming.
11878         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
11879         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
11880         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
11881         add_vop_ref_mapping, create_vop_ref_mapping_loop,
11882         create_vop_ref_mapping, analyze_memory_references,
11883         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
11884         get_all_locs_in_loop, ref_always_accessed_p,
11885         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
11886         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
11887         store_motion_loop, store_motion): New functions.
11888         (struct vop_to_refs_elt): New type.
11889         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
11890         memref_hash, memref_eq, hoist_memory_references): Rewritten.
11891         (schedule_sm): Replaced by...
11892         (execute_sm): ... this.
11893         (determine_lsm_ref, hoist_memory_references,
11894         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
11895         find_more_ref_vops, free_mem_ref, free_mem_refs,
11896         determine_lsm_loop, determine_lsm): Removed.
11897         (tree_ssa_lim_finalize): Free data structures used by store motion.
11898         (tree_ssa_lim): Call analyze_memory_references.  Use
11899         store_motion instead of determine_lsm.
11900
11901 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
11902
11903         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
11904         rename tmake_file to m68hc11/t-m68hc11.
11905         (mcore): Set inhibit_libc to true.
11906         * config.host (alpha*-dec-*vms*): Set extra_programs.
11907         (interix3*): Don't use host_xmake_file.
11908         * configure.ac: Let config.gcc override inhibit_libc.
11909         * configure: Regenerate.
11910
11911         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
11912         * config/t-openbsd-thread: Remove commented out lines.
11913
11914         * config/x-interix: Remove.
11915
11916         * config/m68hc11/t-m68hc11-gas: Rename to...
11917         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
11918
11919         * config/mcore/t-mcore: Remove T_CFLAGS.
11920         * config/mcore/t-mcore-pe: Likewise.
11921
11922 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
11923
11924         * configure.ac: Replace custom __GNU_SOURCE test with
11925         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
11926         * aclocal.m4: Regenerate.
11927         * configure: Regenerate.
11928         * config.in: Regenerate.
11929
11930 2008-03-27  Richard Guenther  <rguenther@suse.de>
11931
11932         * fold-const.c (target.h): Include.
11933         (fold_comparison): Fold comparison of addresses of decls
11934         that bind locally or of constants.  Consolidate address folding code.
11935         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
11936         results from fold_binary_to_constant.
11937         (compare_values_warnv): Likewise.
11938
11939 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
11940
11941         PR middle-end/35429
11942         * fold-const.c (fold_truthop): Check for integeral types when folding
11943         a == 0 && b == 0 and a != 0 || b != 0 .
11944
11945 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
11946
11947         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
11948
11949 2008-03-26  Andreas Schwab  <schwab@suse.de>
11950
11951         * doc/invoke.texi: Fix use of @item vs. @itemx.
11952
11953 2008-03-26  Tom Tromey  <tromey@redhat.com>
11954
11955         * Makefile.in (build/gensupport.o, build/print-rtl.o,
11956         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
11957         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
11958         build/gencodes.o, build/genconditions.o, build/genconfig.o,
11959         build/genconstants.o, build/genemit.o, build/genextract.o,
11960         build/genflags.o, build/genmddeps.o, build/genopinit.o,
11961         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
11962         options.h.
11963
11964 2008-03-26  Richard Guenther  <rguenther@suse.de>
11965
11966         Revert
11967         2008-03-26  Richard Guenther  <rguenther@suse.de>
11968
11969         * fold-const.c (target.h): Include.
11970         (fold_comparison): Fold comparison of addresses of two decls
11971         that bind locally.  Consolidate address folding code.
11972
11973 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11974
11975         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
11976         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
11977         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
11978         dconstsqrt2, dconstthird, dconste and/or dconst10.
11979         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
11980         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
11981         dconstsqrt2, dconste): Delete.
11982         (init_emit_once): Likewise.  Simplify initializing dconstm1.
11983         Constify variable.
11984         * real.c (get_real_const): New.
11985         * real.h (dconst3, dconst10, dconstm2, dconstthird,
11986         dconstsqrt2, dconste): Delete.
11987         (real_value_const, get_real_const): New.
11988
11989 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
11990
11991         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
11992
11993         * config/i386/i386.c (ix86_function_arg_boundary): Check
11994         BIGGEST_ALIGNMENT instead of 128.
11995         (setup_incoming_varargs_64): Likewise.
11996
11997 2008-03-26  Tom Tromey  <tromey@redhat.com>
11998
11999         * Makefile.in (DEPFILES): Add missing '/'.
12000
12001 2008-03-26  Richard Guenther  <rguenther@suse.de>
12002
12003         * fold-const.c (target.h): Include.
12004         (fold_comparison): Fold comparison of addresses of two decls
12005         that bind locally.  Consolidate address folding code.
12006
12007 2008-03-26  Nick Clifton  <nickc@redhat.com>
12008
12009         PR target/31232
12010         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
12011         not allow INT+INT as a legitimate addressing mode.
12012
12013 2008-03-26  Richard Guenther  <rguenther@suse.de>
12014
12015         * tree-flow.h (widen_bitfield): Remove declaration.
12016         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
12017         (widen_bitfield): Remove function.
12018         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
12019         code.
12020
12021 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12022
12023         PR target/31558
12024         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
12025         error_mark_node's.
12026
12027 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
12028
12029         PR rtl-optimization/35232
12030         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
12031         (forget_old_reloads_1, forget_marked_reloads): Don't clear
12032         reg_reloaded_call_part_clobbered here.
12033         (reload_regs_reach_end_p): New function.
12034         (reload_reg_rtx_for_input): New variable.
12035         (reload_reg_rtx_for_output): Likewise.
12036         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
12037         when reassigning a pseudo register.  Load reloadreg from
12038         reload_reg_rtx_for_input, moving the mode and register
12039         calculation to...
12040         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
12041         instead of the original when deciding whether an input reload
12042         would be a no-op or whether an output reload can be deleted.
12043         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
12044         when setting up new_spill_reg_store.  Load it from
12045         reload_reg_rtx_for_output, moving the mode and register
12046         calculation to...
12047         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
12048         instead of the original when deciding whether an output reload
12049         would be a no-op.  Do the same when modifying insn notes.
12050         Use rtx_equal_p instead of == to compare the registers.
12051         (inherit_piecemeal_p): Take a mode and two register numbers
12052         as argument.
12053         (emit_reload_insns): Clear new_spill_reg_store for every hard
12054         register in the reload register.  Remove spill registers
12055         from reg_reloaded_valid before considering whether to record
12056         inheritance information for them.  Use reload_reg_rtx_for_output
12057         instead of reg_rtx when recording output reloads.  Use
12058         reload_reg_rtx_for_input instead of reg_rtx when recording
12059         input reloads.  Set or clear reg_reloaded_call_part_clobbered
12060         at the same time as setting reg_reloaded_valid.
12061         (delete_output_reload): Add a new_reload_reg parameter and use it
12062         instead of rld[j].reg_rtx.
12063         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
12064         calls accordingly.
12065
12066 2008-03-25  Tom Tromey  <tromey@redhat.com>
12067
12068         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
12069         (build/genattr.o): Likewise.
12070         (build/genattrtab.o): Likewise.
12071         (build/gencodes.o): Likewise.
12072         (build/genconfig.o): Likewise.
12073         (build/genconstants.o): Likewise.
12074         (build/genemit.o): Likewise.
12075         (build/genextract.o): Likewise.
12076         (build/genflags.o): Likewise.
12077
12078 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
12079
12080         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
12081         instead of size_int for integer types.
12082         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
12083         to match type of MINUS_EXPR.
12084
12085 2008-03-25  Tom Tromey  <tromey@redhat.com>
12086
12087         * configure: Rebuilt.
12088         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
12089         Makefile.
12090
12091 2008-03-25  Tom Tromey  <tromey@redhat.com>
12092
12093         * config/x-solaris (host-solaris.o): Update.
12094         * config/x-linux (host-linux.o): Update.
12095         * config/x-hpux (host-hpux.o): Update.
12096         * config/x-darwin (host-darwin.o): Update.
12097         * config/v850/t-v850e (v850-c.o): Update.
12098         * config/v850/t-v850 (v850-c.o): Update.
12099         * config/t-vxworks (vxworks.o): Update.
12100         * config/t-sol2 (sol2-c.o, sol2.o): Update.
12101         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
12102         * config/spu/t-spu-elf (spu-c.o): Update.
12103         (spu.o): Remove.
12104         * config/sh/t-symbian (sh-c.o): Update.
12105         (symbian.o): Update.
12106         * config/sh/t-sh (sh-c.o): Update.
12107         * config/score/t-score-elf (score7.o, score3.o): Update.
12108         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
12109         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
12110         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
12111         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
12112         (rs6000.o): Remove.
12113         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
12114         * config/m32c/t-m32c (m32c-pragma.o): Update.
12115         * config/ia64/t-ia64 (ia64-c.o): Update.
12116         * config/i386/x-mingw32 (host-mingw32.o): Update.
12117         * config/i386/x-i386 (driver-i386.o): Update.
12118         * config/i386/x-darwin (host-i386-darwin.o): Update.
12119         * config/i386/x-cygwin (host-cygwin.o): Update.
12120         * config/i386/t-nwld (nwld.o): Update.
12121         * config/i386/t-netware (netware.o): Update.
12122         * config/i386/t-interix (winnt.o): Update.
12123         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
12124         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
12125         msformat-c.o): Update.
12126         * config/bfin/t-bfin-linux (generated_files): Add
12127         linux-sysroot-suffix.h.
12128         * config/arm/t-wince-pe (pe.o): Update.
12129         * config/arm/t-strongarm-pe (pe.o): Update.
12130         * config/arm/t-pe (pe.o): Update.
12131         * config/arm/t-arm (arm-c.o): Update.
12132         * doc/install.texi (Prerequisites): Require make 3.80.
12133         * Makefile.in: Remove .o targets.
12134         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
12135         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
12136         (simple_generated_h, simple_generated_c): Move earlier.
12137         (generated_files): New variable.
12138         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
12139         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
12140         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
12141         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
12142         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
12143         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
12144         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
12145         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
12146         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
12147         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
12148         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
12149         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
12150         (.c.o): Remove.
12151         (COMPILE.base, COMPILE): New variables.
12152         (%.o): New pattern rule.
12153         (ALL_HOST_OBJS): New variable.
12154         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
12155         (dummy-checksum.o, cc1-checksum.o): Remove.
12156         (DRIVER_SHLIB): New variable.
12157         (DRIVER_DEFINES): Use it.
12158         (gencondmd.c): Move out of build/.
12159         (s-conditions): Update.
12160         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
12161         (ALL_BUILD_OBJS): Likewise.
12162         (build/%.o): Use BUILDCOMPILE.
12163         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
12164         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
12165         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
12166         build/gencheck.o, build/gencodes.o, build/genconditions.o,
12167         build/genconfig.o, build/genconstants.o, build/genemit.o,
12168         build/genextract.o, build/genflags.o, build/genmddeps.o,
12169         build/genopinit.o, build/genoutput.o, build/genpeep.o,
12170         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
12171         build/gen-protos.o, build/scan.o, build/fix-header.o,
12172         build/scan-decls.o): Simplify.
12173         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
12174         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
12175         prefix.o, toplev.o): Reduce to variable setting.
12176         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
12177         ($(out_object_file), gcc-options.o): New targets.
12178         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
12179         * configure: Rebuilt.
12180         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
12181         * doc/sourcebuild.texi (Front End Directory): Document new variable.
12182
12183 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
12184
12185         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
12186         complain when we hit an error, return ERROR_MARK_NODE.
12187
12188 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
12189
12190         * config/sh/constraints.md (Pso, Psz): New constraints.
12191         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
12192         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
12193
12194 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
12195
12196         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
12197         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
12198
12199 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
12200
12201         * config/sh/sh.md (prefetch): Add condition for SH2A target.
12202         (prefetch_sh2a): New.
12203
12204 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
12205             Naveen.H.S  <naveen.hs@kpitcummins.com>
12206
12207         * config/sh/constraints.md (I28): New constraint.
12208         * config/sh/sh.c (broken_move): Add support for movi20s.
12209         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
12210
12211 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
12212             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
12213             Naveen.H.S  <naveen.hs@kpitcummins.com>
12214
12215         * config/sh/sh.c (SH_ATTRIBUTES): Define.
12216         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
12217         (print_operand): Handle resbank in %@ operand code.
12218         (sh_encode_section_info): New.
12219         (push_regs): Add conditions for resbank.
12220         (sh_expand_epilogue): Likewise.
12221         (sh_insert_attributes): Likewise.
12222         (sh_attribute_table): Likewise.
12223         (sh_handle_resbank_handler_attribute): New.
12224         (sh2a_handle_function_vector_handler_attribute): New.
12225         (sh2a_is_function_vector_call): New.
12226         (sh2a_get_function_vector_number): New.
12227         (sh2a_function_vector_p): New.
12228         (sh_cfun_resbank_handler_p): New.
12229         * config/sh/sh.md (calli): Emit jsr/n if possible.
12230         (calli_tbr_rel): New.
12231         (calli_pcrel): Emit jsr/n if possible.
12232         (return_i): Emit rts/n if possible.
12233         (call_valuei_tbr_rel): New.
12234         (call_valuei_pcrel): Add condition for SH2A target.
12235         (call_value): Likewise.
12236         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
12237         (sh2a_get_function_vector_number): Likewise.
12238         (sh2a_is_function_vector_call): Likewise.
12239         * doc/extend.texi: Document TBR relative addressing of SH2A.
12240         (resbank): Add description for SH2A.
12241
12242 2008-03-24  Richard Guenther  <rguenther@suse.de>
12243
12244         PR c/22371
12245         * gimplify.c (gimplify_modify_expr): For frontend type-correct
12246         pointer assignments change conversions according to middle-end rules.
12247         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
12248         * configure.ac: Include type checking in yes.
12249         * configure: Regenerate.
12250
12251 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12252
12253         * diagnostic.c (diagnostic_count_diagnostic): Delete.
12254         (diagnostic_report_diagnostic): Update. Handle ICEs here.
12255
12256 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
12257
12258         * gthr-vxworks.h (UNUSED): Define.
12259
12260 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
12261
12262         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
12263
12264 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
12265
12266         * doc/extend.texi (Function Attributes): Add missing comma in the
12267         example of the "alloc_size" attribute.
12268
12269 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
12270
12271         Revert:
12272         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12273
12274         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12275         32bit host.
12276
12277         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
12278
12279         PR target/35496
12280         * stor-layout.c (update_alignment_for_field): Set minimum alignment
12281         of the underlying type of a MS bitfield layout to the natural
12282         alignment of the type.
12283
12284         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
12285
12286         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12287         to their natural alignment to avoid store forwarding stalls.
12288
12289 2008-03-22  Richard Guenther  <rguenther@suse.de>
12290
12291         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
12292         For PHI nodes verify the address is invariant.
12293         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
12294         (get_symbol_constant_value): Use is_gimple_min_invariant.
12295         (maybe_fold_stmt_indirect): Likewise.
12296
12297 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
12298
12299         PR rtl-optimization/33927
12300         * Makefile.in (dse.o): Depend on $(TM_P_H).
12301         * expr.h (extract_low_bits): Declare.
12302         * expmed.c (extract_low_bits): New function.
12303         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
12304         * dse.c: Include tm_p.h.
12305         (find_shift_sequence): Remove the read_reg argument and return the
12306         read value.  Emit the instructions instead of returning them.
12307         Iterate on new_mode rather than calculating it each time.
12308         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
12309         source to NEW_MODE and extract_low_bits to convert the shifted
12310         value to READ_MODE.
12311         (replace_read): Allow the load and store to have different mode
12312         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
12313         or extraction instructions before trying the replacement.  Update
12314         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
12315
12316 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
12317
12318         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12319         to their natural alignment to avoid store forwarding stalls.
12320
12321 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12322
12323         PR target/27946
12324         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
12325         encouraging but not allowing gprs for input;
12326         change the input constraint to !f#r.
12327         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
12328         gprs for output;
12329         change the output constraint to !f#r.
12330
12331 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
12332
12333         PR target/13958
12334         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
12335         corresponding post-reload splitters.
12336         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
12337         when x87 FP math is selected.
12338         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
12339         New function prototype.
12340         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
12341         unreachable function to ease macroization of insn patterns.
12342
12343 2008-03-21  Martin Jambor  <mjambor@suse.cz>
12344
12345         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
12346         reference dumps if ddr is NULL or dependence is unknown.
12347
12348 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12349
12350         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
12351         unsigned extension into account.
12352         (ATOMIC_COMPARE_AND_SWAP): Likewise.
12353         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
12354         Do computations on a scratch register.
12355
12356 2008-03-21  Richard Guenther  <rguenther@suse.de>
12357
12358         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12359         Use is_gimple_min_invariant instead of TREE_INVARIANT.
12360         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
12361         * tree-ssa-dom.c (record_equality): Likewise.
12362         * tree-inline.c (copy_body_r): Likewise.
12363         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
12364         TREE_INVARIANT.
12365
12366 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12367
12368         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
12369         as 'delete_unused' argument.
12370
12371 2008-03-20  Richard Guenther  <rguenther@suse.de>
12372
12373         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
12374         special casing of constant qualifiers.
12375         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
12376         care about them in general.
12377         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
12378         regardless of their type.
12379         (fold_stmt_r): Forcefully fold *& if we end up with that.
12380
12381 2008-03-20  Paul Brook  <paul@codesourcery.com>
12382
12383         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
12384         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
12385         linker flags.
12386         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
12387         definition.
12388         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
12389         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
12390
12391 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
12392
12393         * common.opt (Wmudflap): New option.
12394         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
12395         (mx_register_decls): Likewise.
12396         (mudflap_finish_file): Likewise.
12397         * doc/invoke.texi: Document -Wno-mudflap.
12398
12399 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
12400
12401         * c-format.c (replace_format_name_to_system_name): New.
12402         (cmp_attribs): New.
12403         (convert_format_name_to_system_name): New.
12404         (decode_format_attr): Add use of convert_format_name_to_system_name.
12405         (format_types_orig): Add gnu_ prefix to names.
12406         (check_format_info_main): Special treating of \0 escaped names for
12407         supporting multi-character format specifiers as I32, I64.
12408         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
12409         (gnu_target_overrides_format_attributes): New.
12410         * c-format.h: Add structure target_ovr_attr to hold
12411         system specific formatter names.
12412         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
12413         msformat-c.o file to c_target_objs and cxx_target_objs.
12414         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12415         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
12416         (TARGET_N_FORMAT_TYPES): New.
12417         * config/i386/msformat-c.c: New.
12418         * config/i386/t-cygming: Add build rule for msformat-c.o.
12419         * doc/extend.texi: Add new format names gnu_* and ms_* and
12420         further details.
12421         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12422
12423 2008-03-20  Ira Rosen  <irar@il.ibm.com>
12424
12425         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
12426         optimizations turned on under -O3.
12427         (ftree-vectorize): Add that the flag is turned on with -O3.
12428
12429 2008-03-20  Ben Elliston  <bje@au.ibm.com>
12430
12431         * regmove.c (try_auto_increment): Fix spelling error in comment.
12432         * final.c (final_scan_insn): Likewise.
12433
12434 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
12435
12436         PR target/14552
12437         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
12438         allocator preferences for "y" and "r" class registers.
12439         ("*mov<mode>_internal"): Ditto.
12440         ("*movv2sf_internal_rex64"): Ditto.
12441         ("*movv2sf_internal"): Ditto.
12442
12443 2008-03-19  Michael Matz  <matz@suse.de>
12444
12445         PR middle-end/35616
12446         * calls.c (expand_call): Check overlap of arguments with call
12447         address for sibcalls.
12448
12449 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
12450
12451         PR target/35496
12452         * stor-layout.c (update_alignment_for_field): Set minimum alignment
12453         of the underlying type of a MS bitfield layout to the natural
12454         alignment of the type.
12455
12456 2008-03-19  Jan Hubicka  <jh@suse.cz>
12457
12458         PR other/35094
12459         * toplev.c (decode_d_option): Handle all CPP flags.
12460         * tree-vrp.c: Update tree_pass descriptors.
12461         * regrename.c: Update tree_pass descriptors.
12462         * fwprop.c: Update tree_pass descriptors.
12463         * doc/invoke.texi: Remove documentation of dropped -d? flags.
12464         * tree-into-ssa.c: Update tree_pass descriptors.
12465         * tree-dump.c: Update tree_pass descriptors.
12466         * tree-complex.c: Update tree_pass descriptors.
12467         * tree-dump.h: Update tree_pass descriptors.
12468         * see.c: Update tree_pass descriptors.
12469         * cgraphbuild.c: Update tree_pass descriptors.
12470         * tracer.c: Update tree_pass descriptors.
12471         * tree-loop-distribution.c: Update tree_pass descriptors.
12472         * cgraph.c: Update tree_pass descriptors.
12473         * postreload-gcse.c: Update tree_pass descriptors.
12474         * postreload.c: Update tree_pass descriptors.
12475         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
12476         * tree-tailcall.c: Update tree_pass descriptors.
12477         * tree-pass.h (tree_opt_pass): Rename to ...
12478         (opt_pass) ... this one; add "type" field and remove letter field.
12479         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
12480         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
12481         all_lowering_passes): Update declaration.
12482         * ipa-cp.c: Update tree_pass descriptors.
12483         * final.c: Update tree_pass descriptors.
12484         * omp-low.c: Update tree_pass descriptors.
12485         * tree-ssa-dse.c: Update tree_pass descriptors.
12486         * ipa-reference.c: Update tree_pass descriptors.
12487         * tree-ssa-uncprop.c: Update tree_pass descriptors.
12488         * auto-inc-dec.c: Update tree_pass descriptors.
12489         * reorg.c: Update tree_pass descriptors.
12490         * cgraphunit.c: Update tree_pass descriptors.
12491         * tree-ssa-copyrename.c: Update tree_pass descriptors.
12492         * tree-ssa-ccp.c: Update tree_pass descriptors.
12493         * df-core.c: Update tree_pass descriptors.
12494         * mode-switching.c: Update tree_pass descriptors.
12495         * tree-nomudflap.c: Update tree_pass descriptors.
12496         * modulo-sched.c: Update tree_pass descriptors.
12497         * ipa-pure-const.c: Update tree_pass descriptors.
12498         * cse.c: Update tree_pass descriptors.
12499         * web.c: Update tree_pass descriptors.
12500         * tree-stdarg.c: Update tree_pass descriptors.
12501         * tree-ssa-math-opts.c: Update tree_pass descriptors.
12502         * tree-ssa-dom.c: Update tree_pass descriptors.
12503         * tree-nrv.c: Update tree_pass descriptors.
12504         * tree-ssa-alias.c: Update tree_pass descriptors.
12505         * loop-init.c: Update tree_pass descriptors.
12506         * gimple-low.c: Update tree_pass descriptors.
12507         * ipa-inline.c: Update tree_pass descriptors.
12508         * tree-ssa-sink.c: Update tree_pass descriptors.
12509         * global.c: Update tree_pass descriptors.
12510         * ifcvt.c: Update tree_pass descriptors.
12511         * jump.c: Update tree_pass descriptors.
12512         * predict.c: Update tree_pass descriptors.
12513         * tree-ssa-loop.c: Update tree_pass descriptors.
12514         * recog.c: Update tree_pass descriptors.
12515         * dse.c: Update tree_pass descriptors.
12516         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
12517         * tree-eh.c: Update tree_pass descriptors.
12518         * regmove.c: Update tree_pass descriptors.
12519         * local-alloc.c
12520         * function.c: Update tree_pass descriptors.
12521         * tree-vectorizer.c: Update tree_pass descriptors.
12522         * gcse.c: Update tree_pass descriptors.
12523         * ipa-type-escape.c: Update tree_pass descriptors.
12524         * tree-if-conv.c: Update tree_pass descriptors.
12525         * init-regs.c: Update tree_pass descriptors.
12526         * ipa.c: Update tree_pass descriptors.
12527         * tree-ssa-phiopt.c: Update tree_pass descriptors.
12528         * rtl-factoring.c: Update tree_pass descriptors.
12529         * lower-subreg.c: Update tree_pass descriptors.
12530         * bt-load.c: Update tree_pass descriptors.
12531         * tree-dfa.c: Update tree_pass descriptors.
12532         * except.c: Update tree_pass descriptors.
12533         * emit-rtl.c: Update tree_pass descriptors.
12534         * cfgexpand.c: Update tree_pass descriptors.
12535         * tree-cfgcleanup.c: Update tree_pass descriptors.
12536         * cfgcleanup.c: Update tree_pass descriptors.
12537         * tree-ssa-pre.c: Update tree_pass descriptors.
12538         * tree-sra.c: Update tree_pass descriptors.
12539         * tree-mudflap.c: Update tree_pass descriptors.
12540         * tree-ssa-copy.c: Update tree_pass descriptors.
12541         * cfglayout.c: Update tree_pass descriptors.
12542         * tree-ssa-forwprop.c: Update tree_pass descriptors.
12543         * tree-ssa-dce.c: Update tree_pass descriptors.
12544         * tree-ssa.c: Update tree_pass descriptors.
12545         * regclass.c: Update tree_pass descriptors.
12546         * integrate.c: Update tree_pass descriptors.
12547         * tree-optimize.c: Update tree_pass descriptors.
12548         * tree-ssa-phiprop.c: Update tree_pass descriptors.
12549         * tree-object-size.c: Update tree_pass descriptors.
12550         * combine.c: Update tree_pass descriptors.
12551         * tree-outof-ssa.c: Update tree_pass descriptors.
12552         * bb-reorder.c: Update tree_pass descriptors.
12553         * stack-ptr-mod.c: Update tree_pass descriptors.
12554         * var-tracking.c: Update tree_pass descriptors.
12555         * tree-profile.c: Update tree_pass descriptors.
12556         * tree-vect-generic.c: Update tree_pass descriptors.
12557         * reg-stack.c: Update tree_pass descriptors.
12558         * sched-rgn.c: Update tree_pass descriptors.
12559         * tree-ssa-structalias.c: Update tree_pass descriptors.
12560         * tree-cfg.c: Update tree_pass descriptors.
12561         * passes.c (current_pass): Update declaration.
12562         (finish_optimization_passes): Update.
12563         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
12564         (register_one_dump_file, register_dump_files_1, next_pass_1):
12565         Update arguments.
12566         (init_optimization_passes): Update handling of new types.
12567         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
12568         * ipa-struct-reorg.c: Update tree_pass descriptors.
12569         * tree-ssa-reassoc.c: Update tree_pass descriptors.
12570         * combine-stack-adj.c: Update tree_pass descriptors.
12571         * cfgrtl.c: Update tree_pass descriptors.
12572         * dce.c: Update tree_pass descriptors.
12573         * tree-ssanames.c: Update tree_pass descriptors.
12574
12575 2008-03-19  Richard Guenther  <rguenther@suse.de>
12576
12577         PR middle-end/35609
12578         * tree-ssa.c (walk_data): New structure.
12579         (warn_uninitialized_var): If not always_executed warn with "maybe"
12580         instead of "is".
12581         (execute_early_warn_uninitialized): Compute post-dominators.
12582         Initialize always_executed before processing each basic block.
12583
12584 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
12585
12586         PR target/35504
12587         * config/i386/i386.c (x86_this_parameter): Calculate correct location
12588         of "this" pointer when "regparm = N" or "fastcall" is in effect.
12589
12590 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12591
12592         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
12593
12594 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
12595
12596         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
12597         is true.
12598         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
12599         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
12600         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
12601         target after ignore has been set, and move there also the commputation
12602         of subtarget and original_target.
12603         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12604         (LANG_HOOKS_INITIALIZER): Remove it.
12605         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12606
12607 2008-03-18  Richard Guenther  <rguenther@suse.de>
12608
12609         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12610         found an expression with constants, note that in the VN for the lhs.
12611         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12612         fold them to constants if possible.  Run cleanup_cfg if done so.
12613         (execute_pre): Return todo.
12614         (do_pre): Likewise.
12615         (execute_fre): Likewise.
12616         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12617         of constants.
12618         (get_prop_source_stmt): Look through pointer conversions.
12619
12620 2008-03-18  Jan Hubicka  <jh@suse.cz>
12621
12622         * tree-pretty-print.c: Include predict.h.
12623         (dump_generic_node): Dump predictor.
12624         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12625         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12626         * gimple-low.c (lower_stmt): Likewise.
12627         * expr.c (expand_expr_real): Likewise.
12628         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12629         them.
12630         (build_predict_expr, build_predict_expr): New.
12631         * predict.h (predictor_name, build_predict_expr): Update.
12632         * c-typeck.c (c_finish_bc_stmt): Add prediction.
12633         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
12634         * predict.def (PRED_CONTINUE): Update hitrate.
12635         * tree.def (PREDICT_EXPR): Define.
12636         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
12637         do not handle BIND_EXPR.
12638         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
12639         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
12640         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
12641         operands.
12642
12643 2008-03-18  Michael Matz  <matz@suse.de>
12644
12645         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
12646
12647 2008-03-18  Richard Guenther  <rguenther@suse.de>
12648
12649         * tree-gimple.h (is_gimple_invariant_address): Declare.
12650         (is_gimple_constant): Likewise.
12651         * tree-gimple.c (is_gimple_constant): New function.
12652         (is_gimple_invariant_address): Likewise.
12653         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
12654         and is_gimple_invariant_address.
12655         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
12656         previous change.
12657         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
12658         an addressable base.
12659
12660 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
12661
12662         PR middle-end/35611
12663         * gimplify.c (gimplify_expr): Gimplify second operand of
12664         OMP_ATOMIC_LOAD.
12665
12666 2008-03-17  Richard Guenther  <rguenther@suse.de>
12667
12668         PR tree-optimization/19637
12669         * fold-const.c (fold_unary): Remove restrictions of removing
12670         intermediate pointer-conversions (P2)(P1)P0.
12671         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
12672         conversion to void pointer.
12673         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
12674
12675 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
12676
12677         PR debug/31510
12678         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
12679         emulated thread local variables.
12680
12681 2008-03-16  Richard Guenther  <rguenther@suse.de>
12682
12683         PR middle-end/35607
12684         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12685         expand TREE_INVARIANT operations that are not gimple invariant.
12686
12687 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
12688
12689         * doc/extend.texi (Alignment): Say that the ABI controls
12690         the __alignof__ for non-strict-alignment targets rather
12691         than being a recommendation.
12692
12693 2008-03-15  Paul Brook  <paul@codesourcery.com>
12694
12695         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
12696         annotations.
12697         (arm_output_fn_unwind): Mark functions that can not be unwound.
12698
12699 2008-03-15  Paul Brook  <paul@codesourcery.com>
12700
12701         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
12702         extension instructions.
12703
12704 2008-03-15  Richard Guenther  <rguenther@suse.de>
12705
12706         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
12707         and fold constant aggregate refs.
12708         (fold_const_aggregate_ref): Handle string constants
12709         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
12710         (evaluate_stmt): Simplify now that ccp_fold folds constant
12711         aggregate refs.
12712
12713 2008-03-15  Paul Brook  <paul@codesourcery.com>
12714
12715         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
12716         (extzv): Use gen_extzv_t2.
12717         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
12718
12719 2008-03-15  Richard Guenther  <rguenther@suse.de>
12720
12721         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
12722         (fold_const_aggregate_ref): Likewise.
12723         (get_value): Return NULL if we don't have any values.
12724         (ccp_finalize): Set const_val to NULL after freeing it.
12725         * tree-flow.h (get_symbol_constant_value): Declare.
12726         (fold_const_aggregate_ref): Likewise.
12727         * tree-ssa-sccvn.c (try_to_simplify): Use them.
12728
12729 2008-03-15  Richard Guenther  <rguenther@suse.de>
12730
12731         PR middle-end/35593
12732         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
12733         to not produce negative array indices if not allowed.  Add
12734         parameter to indicate that.
12735         (maybe_fold_offset_to_component_ref): Allow negative array
12736         indices only for the first member of a structure.
12737         (maybe_fold_offset_to_reference): Allow negative array indices.
12738         (maybe_fold_stmt_addition): Likewise.
12739
12740 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
12741             Anatoly Sokolov <aesok@post.ru>
12742
12743         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
12744         (avr_arch): Add ARCH_AVR6.
12745         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
12746         (initial_elimination_offset): Initialize and use 'avr_pc_size'
12747         instead of fixed value 2.
12748         (print_operand_address): Use gs() asm specifier instead of pm().
12749         (avr_assemble_integer): (Ditto.).
12750         (avr_output_addr_vec_elt): (Ditto.).
12751         (print_operand): Handle "!" code.
12752         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
12753         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
12754         (AVR_HAVE_EIJMP_EICALL): Define.
12755         (AVR_3_BYTE_PC): Redefine.
12756         (AVR_2_BYTE_PC): (Ditto.).
12757         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
12758         (LINK_SPEC): Add atmega2560 and atmega2561.
12759         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
12760         (crtm2561.o).
12761         * config/avr/avr.md (call_insn): Use eicall instead of icall
12762         for 3 byte PC devices.
12763         (call_value_insn): (Ditto.).
12764         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
12765         (indirect_jump): Use only for for 2 byte PC devices.
12766         (*tablejump): (Ditto.).
12767         (*indirect_jump_avr6): Add insn.
12768         (*tablejump_rjmp): Don't use for 3 byte PC devices.
12769         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
12770         instead of ijmp for 3 byte PC devices.
12771         (__tablejump2__): (Ditto.).
12772         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
12773         (MULITLIB_DIRNAMES): (Ditto.).
12774         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
12775
12776 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
12777
12778         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
12779         "sse2_umulsidi3".  Use V1DI mode for operand 0.
12780         ("mmx_psadbw"): Use V1DI mode for operand 0.
12781         * config/i386/i386-modes.def (V1SI): New vector mode.
12782         * config/i386/i386.c (struct builtin_description)
12783         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
12784         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
12785         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
12786         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
12787         v1di_ftype_v8qi_v8qi type.
12788         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
12789
12790         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
12791         __builtin_ia32_pmuludq]: Fix the mode of return value.
12792
12793 2008-03-15  Richard Guenther  <rguenther@suse.de>
12794
12795         PR middle-end/35595
12796         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
12797         being a PHI_NODE.
12798
12799 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
12800
12801         * doc/invoke.texi (Option Summary, Xtensa Options): Document
12802         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
12803         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
12804         unless TARGET_SERIALIZE_VOLATILE is enabled.
12805         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
12806         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
12807         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
12808
12809 2008-03-14  Richard Guenther  <rguenther@suse.de>
12810
12811         PR tree-optimization/34172
12812         * tree-flow.h (refs_may_alias_p): Declare.
12813         (get_single_def_stmt): Likewise.
12814         (get_single_def_stmt_from_phi): Likewise.
12815         (get_single_def_stmt_with_phi): Likewise.
12816         * tree-dfa.c (refs_may_alias_p): New function.
12817         (get_single_def_stmt): Likewise.
12818         (get_single_def_stmt_from_phi): Likewise.
12819         (get_single_def_stmt_with_phi): Likewise.
12820         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
12821         (vn_reference_lookup_1): New helper function.
12822         (vn_reference_lookup): Walk the virtual use-def chain to
12823         continue searching for a match if the def does not alias the
12824         reference we are looking for.
12825
12826 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
12827
12828         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
12829         archive and Perzl.  Update The Written Word listing.
12830
12831 2008-03-14  Richard Guenther  <rguenther@suse.de>
12832
12833         PR tree-optimization/34043
12834         PR tree-optimization/33989
12835         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
12836         when doing FRE.
12837         (bitmap_find_leader): Use extra argument to verify dominance
12838         relationship inside a basic-block.
12839         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
12840         (find_leader_in_sets): Adjust.
12841         (create_component_ref_by_pieces): Take extra argument for
12842         dominance check, handle lookup failures.
12843         (find_or_generate_expression): Likewise.
12844         (create_expression_by_pieces): Likewise.
12845         (insert_into_preds_of_block): Adjust.
12846         (create_value_expr_from): If asked for, verify all operands
12847         are in the blocks AVAIL_OUT set.
12848         (make_values_for_stmt): Check for SSA_NAMEs that are life
12849         over an abnormal edge.
12850         (compute_avail): Remove such check.
12851         (do_SCCVN_insertion): New function.
12852         (eliminate): If we do not find a leader suitable for replacement
12853         insert a replacement expression from SCCVN if available.
12854         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
12855         (struct vn_ssa_aux): Add needs_insertion flag.
12856         * tree-ssa-sccvn.c (may_insert): New global flag.
12857         (copy_reference_ops_from_ref): Value-number union member access
12858         based on its size, not type and member if insertion is allowed.
12859         (visit_reference_op_load): For a weak match from union type
12860         punning lookup a view-converted value and insert a SSA_NAME
12861         for that value if that is not found.
12862         (visit_use): Make dumps shorter.  Do not disallow value numbering
12863         SSA_NAMEs that are life over an abnormal edge to constants.
12864         (free_scc_vn): Release inserted SSA_NAMEs.
12865         (run_scc_vn): New flag to specify whether insertion is allowed.
12866         Process SSA_NAMEs in forward order.
12867         * tree-ssa-loop-im.c (for_each_index): Handle invariant
12868         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
12869         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
12870         pointer type to/from integral types that do not change the
12871         precision to regular conversions.
12872
12873 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12874
12875         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12876         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12877         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
12878         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
12879         input arguments and the mode of return value.  Built-in functions
12880         that operate on whole 64-bit MMX register now use V1DI mode.
12881
12882 2008-03-13  Alon Dayan  <alond@il.ibm.com>
12883             Olga Golovanevsky  <olga@il.ibm.com>
12884
12885         PR tree-optimization/35041
12886         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
12887         to locate the right position in a statement.
12888
12889 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12890
12891         PR target/34000
12892         PR target/35553
12893         * config/i386/xmmintrin.h:  Change all static inline functions to
12894         extern inline and add __gnu_inline__ attribute.
12895         * config/i386/bmintrin.h: Ditto.
12896         * config/i386/smmintrin.h: Ditto.
12897         * config/i386/tmmintrin.h: Ditto.
12898         * config/i386/mmintrin-common.h: Ditto.
12899         * config/i386/ammintrin.h: Ditto.
12900         * config/i386/emmintrin.h: Ditto.
12901         * config/i386/pmmintrin.h: Ditto.
12902         * config/i386/mmintrin.h: Ditto.
12903         * config/i386/mm3dnow.h: Ditto.
12904
12905 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
12906
12907         PR middle-end/35185
12908         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
12909         (lower_omp_2): New function.
12910         (lower_omp_1, lower_omp): Rewritten.
12911
12912 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
12913
12914         PR 35054
12915         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
12916         with the phrase "Microsoft Windows compilers".
12917         (Push/Pop Macro Pragmas): New subsection. Document
12918         #pragma push_macro and pragma pop_macro.
12919
12920 2008-03-12  Paul Brook  <paul@codesourcery.com>
12921
12922         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
12923
12924 2008-03-12  Paul Brook  <paul@codesourcery.com>
12925
12926         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
12927         (thumb2_alusi3_short): Exclude PLUS and MINUS.
12928         (thumb2_addsi_shortim): Rename ...
12929         (thumb2_addsi_short): ... to this.  Allow register operands.
12930         (thumb2_subsi_short): New pattern.
12931         (thumb2_one_cmplsi2_short,
12932         thumb2_negsi2_short): New patterns and peepholes.
12933
12934 2008-03-12  Paul Brook  <paul@codesourcery.com>
12935
12936         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
12937
12938 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
12939
12940         * config/i386/i386.md (int_cond): New code iterator.
12941         (fp_cond): Ditto.
12942         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
12943         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
12944         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
12945         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
12946         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
12947         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
12948         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
12949         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
12950
12951 2008-03-12  Paul Brook  <paul@codesourcery.com>
12952
12953         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
12954         instead of {arm,thumb}_compute_save_reg_mask.
12955         (output_return_instruction): Ditto.
12956         (thumb_unexpanded_epilogue): Ditto.
12957         (thumb1_expand_prologue): Ditto.
12958         (thumb1_output_function_prologue): Ditto.
12959         (arm_set_return_address): Ditto.
12960         (thumb_set_return_address): Ditto.
12961         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
12962         regs to achieve stack alignment.
12963         (thumb1_compute_save_reg_mask): Fix compiler warning.
12964         (arm_output_epilogue): Use offsets->saved_regs_mask.
12965         Adjust stack pointer by poping call clobered registers.
12966         (arm_expand_prologue): Use offsets->saved_regs_mask.
12967         Adjust stack pointer by pushing extra registers.
12968         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
12969
12970 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
12971
12972         PR tree-opt/35422
12973         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
12974         conversion to the operands of a multiplication.
12975
12976 2008-03-12  Richard Guenther  <rguenther@suse.de>
12977
12978         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
12979         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
12980         * timevar.def (TV_TREE_PHIPROP): Add.
12981         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
12982         pass description.  Use TV_TREE_PHIPROP.
12983         * tree-ssa-forwprop.c: Remove phiprop code.
12984
12985 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
12986
12987         PR middle-end/35549
12988         * omp-low.c (maybe_lookup_decl): Constify first argument.
12989         (use_pointer_for_field): Change last argument from bool to
12990         omp_context *.  Disallow shared copy-in/out in nested
12991         parallel if decl is shared in outer parallel too.
12992         (build_outer_var_ref, scan_sharing_clauses,
12993         lower_rec_input_clauses, lower_copyprivate_clauses,
12994         lower_send_clauses, lower_send_shared_vars): Adjust callers.
12995
12996 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
12997             Ira Rosen  <irar@il.ibm.com>
12998
12999         * tree-vectorizer.c (free_stmt_vec_info): New function.
13000         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
13001         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
13002         * tree-vectorizer.h (free_stmt_vec_info): Declare.
13003         * tree-vect-transform.c (vectorizable_conversion): Free
13004         vec_oprnds0 if it was allocated.
13005         (vect_permute_store_chain): Remove unused VECs.
13006         (vectorizable_store): Free VECs that are allocated in the..
13007         function.
13008         (vect_transform_strided_load, vectorizable_load): Likewise.
13009         (vect_remove_stores): Simplify the code.
13010         (vect_transform_loop): Move code to vect_remove_stores().
13011         Call vect_remove_stores() and free_stmt_vec_info().
13012
13013 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13014
13015         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
13016         TARGET_HPUX.  Revise comment.
13017         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
13018         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
13019         Use sr4 variant of `be' instruction when not generating PIC code.
13020         (attr_length_call): Adjust for above change.
13021
13022 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13023
13024         * ipa-reference.c (static_execute): Remove module_statics_const and
13025         associated setting code.
13026
13027 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
13028
13029         PR target/35540
13030         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
13031         predicate for operand 1.
13032         (paritysi2_cmp): Use register_operand predicate for operand 2.
13033         Use earlyclobber modifier for operand 1.  Remove support for
13034         memory operands.
13035         (paritydi2_cmp): Use register_operand predicate for operand 3.
13036         Use earlyclobber modifier for operand 1.  Remove support for
13037         memory operands.
13038
13039 2008-03-11  Paul Brook  <paul@codesourcery.com>
13040             Vladimir Prus  <vladimir@codesourcery.com>
13041
13042         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
13043         (arm_compute_save_reg0_reg12_mask): Always
13044         check if register 11 must be saved.  Always safe hard frame pointer
13045         when frame_pointer_needeed.
13046         (arm_compute_save_reg_mask): Save IP and PC
13047         only with apcs frames.
13048         (arm_output_epilogue): Adjust Thumb2 codepath to
13049         be also invoked and work for ARM non-apcs frames.
13050         (arm_expand_prologue): Don't bother saving IP
13051         for non-apcs frame, since it's not clobbered by
13052         prologue code.  Implement non-apcs frame
13053         layout.
13054
13055 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
13056
13057         PR rtl-optimization/35281
13058         * expr.c (convert_move): Use a new pseudo for the intermediate
13059         from_mode->word_mode result.
13060
13061 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
13062
13063         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
13064         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
13065         * toplev.c (compile_file): Don't call it.
13066
13067 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
13068
13069         PR middle-end/35526
13070         * expr.c (store_expr): Call emit_block_move if the mode
13071         of "temp" RTX is BLKmode.
13072
13073 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13074             Richard Guenther  <rguenther@suse.de>
13075
13076         PR tree-optimization/31358
13077         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
13078         the step with a NULL_TREE.
13079         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
13080         to sizetype if type is a pointer type.
13081         (add_candidate_1): Don't convert the base and step to
13082         the generic type if the orginal type is a pointer type.
13083         (add_iv_value_candidates): Use sizetype for the step
13084         if type is a pointer type.
13085         (cand_value_at): Likewise.
13086         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
13087         for pointer types.
13088         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
13089         Don't convert the tem affine to the type.
13090         (add_elt_to_tree): Use sizetype for the step if a pointer.
13091         Use POINTER_PLUS_EXPR for pointers.
13092         (aff_combination_to_tree): Use sizetype for the step if a
13093         pointer.
13094
13095 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
13096
13097         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
13098         Remove commutativity hint.
13099
13100 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
13101
13102         PR c/35438
13103         PR c/35439
13104         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
13105         errorneous type.  Check that v is a VAR_DECL.
13106
13107         PR middle-end/35099
13108         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
13109
13110 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
13111
13112         PR tree-optimization/35494
13113         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
13114         may be overriden at link and run time.
13115
13116 2008-03-10  Richard Guenther  <rguenther@suse.de>
13117
13118         PR tree-optimization/34677
13119         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
13120         (poolify_tree): Likewise.
13121         (modify_expr_template): Likewise.
13122         (poolify_modify_stmt): Likewise.
13123         (insert_fake_stores): Handle all component-ref style stores
13124         in addition to INDIRECT_REF.  Also handle complex types.
13125         Do not poolify the inserted load.
13126         (realify_fake_stores): Do not rebuild the tree but only
13127         make it a SSA_NAME copy.
13128         (init_pre): Remove initialzation of modify_expr_template.
13129         Do not allocate modify_expr_node_pool.
13130         (fini_pre): Do not free modify_expr_node_pool.
13131
13132 2008-03-10  Paul Brook  <paul@codesourcery.com>
13133
13134         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
13135         to avoid conflicts.
13136
13137 2008-03-10  Paul Brook  <paul@codesourcery.com>
13138             Mark Shinwell  <shinwell@codesourcery.com>
13139
13140         * config/arm/cortex-r4.md: New.
13141         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
13142         insn attributes.
13143         * config/arm/arm.md: Include cortex-r4.md.
13144         (insn): Add smmls, sdiv and udiv values.
13145         (generic_sched): Don't use generic scheduling for Cortex-R4.
13146         (arm_issue_rate): New function.
13147         (TARGET_SCHED_ISSUE_RATE): Define.
13148
13149 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
13150
13151         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
13152
13153 2008-03-10  Richard Guenther  <rguenther@suse.de>
13154
13155         * tree-ssa-pre.c (get_sccvn_value): Simplify.
13156         (compute_avail): Do not add stmt uses to AVAIL_OUT.
13157
13158 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
13159
13160         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
13161         Set default to true.
13162
13163 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13164
13165         * c.opt (Wsynth): Deprecate.
13166         * doc/invoke.texi (Option Summary, Warning Options): Document
13167         -Wno-format-contains-nul.
13168
13169 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
13170
13171         PR target/35496
13172         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
13173         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
13174
13175 2008-03-09  Ira Rosen  <irar@il.ibm.com>
13176
13177         * config/rs6000/rs6000.c (builtin_description): Rename vector
13178         left shift operations.
13179         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
13180         (altivec_vsl<VI_char>): Rename to ...
13181         (ashl<mode>3): ... new name.
13182         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
13183         gen_ashlv4si3.
13184         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
13185
13186 2008-03-08  Richard Guenther  <rguenther@suse.de>
13187
13188         * coverage.h (tree_coverage_counter_addr): Declare.
13189         * coverage.c (tree_coverage_counter_addr): New function.
13190         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
13191         before using again.
13192         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
13193         (tree_gen_one_value_profiler): Likewise.
13194         (tree_gen_ic_profiler): Likewise.
13195         (tree_gen_average_profiler): Likewise.
13196         (tree_gen_ior_profiler): Likewise.
13197
13198 2008-03-08  Richard Guenther  <rguenther@suse.de>
13199
13200         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
13201         (vn_binary_op_insert): Likewise.
13202         (vn_unary_op_lookup): Likewise.
13203         (vn_unary_op_insert): Likewise.
13204         (vn_nary_op_lookup): Declare.
13205         (vn_nary_op_insert): Likewise.
13206         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
13207         and binary hashes, use a single obstack for unary_op_pool
13208         and binary_op_pool.
13209         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
13210         a single struct vn_nary_op_s.  Store tree code length and
13211         a variable number of operands.
13212         (struct vn_reference_op_struct): Remove unused op2.
13213         (vn_reference_op_eq): Do not compare op2.
13214         (vn_reference_op_compute_hash): Do not compute hash of op2.
13215         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
13216         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
13217         with vn_nary_op_compute_hash.
13218         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
13219         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
13220         vn_nary_op_lookup.
13221         (vn_unary_op_insert, vn_binary_op_insert): Replace with
13222         vn_nary_op_insert.
13223         (visit_unary_op): Call nary functions.
13224         (visit_binary_op): Likewise.
13225         (process_scc): Adjust for struct vn_tables_s changes.
13226         (allocate_vn_table): Likewise.
13227         (free_vn_table): Likewise.
13228         * tree-vn.c (vn_add): Call nary functions.
13229         (vn_lookup): Likewise.
13230
13231 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
13232
13233         PR target/35498
13234         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
13235         wdst back after sync_compare_and_swapqhi_internal.
13236
13237 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
13238
13239         PR target/22152
13240         * config/i386/i386-modes.def (V1DI): New vector mode.
13241         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
13242         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
13243         (MMXMODE248): Ditto.
13244         (MMXMODE): Add V1DI mode.
13245         (mmxvecsize): Change DI mode to V1DI mode.
13246         ("mov<mode>): Use MMXMODEI8 mode iterator.
13247         ("*mov<mode>_internal_rex64"): Ditto.
13248         ("*mov<mode>_internal"): Ditto.
13249         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
13250         ("mmx_sub<mode>3"): Ditto.
13251         ("mmx_adddi3"): Remove insn pattern.
13252         ("mmx_subdi3"): Ditto.
13253         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
13254         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
13255         ("mmx_ashl<mode>3"): Ditto.
13256         ("mmx_lshrdi3"): Remove insn pattern.
13257         ("mmx_ashldi3"): Ditto.
13258         * config/i386/i386.c (classify_argument): Handle V1DImode.
13259         (function_arg_advance_32): Ditto.
13260         (function_arg_32): Ditto.
13261         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
13262         mmx_addv1di3 insn pattern.
13263         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
13264         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
13265         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
13266         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
13267         Remove definitions of built-in functions.
13268         (V1DI_type_node): New node.
13269         (v1di_ftype_v1di_int): Ditto.
13270         (v1di_ftype_v1di_v1di): Ditto.
13271         (v2si_ftype_v2si_si): Ditto.
13272         (v4hi_ftype_v4hi_di): Remove node.
13273         (v2si_ftype_v2si_di): Ditto.
13274         (ix86_init_mmx_sse_builtins): Handle V1DImode.
13275         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
13276         Redefine builtins using def_builtin_const with *_ftype_*_int node.
13277         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
13278         Add new builtins using def_builtin_const.
13279         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
13280         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
13281         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
13282         * config/i386/mmintrin.h (__v1di): New typedef.
13283         (_mm_add_si64): Cast arguments to __v1di type.
13284         (_mm_sub_si64): Ditto.
13285         (_mm_sll_pi16): Cast __count to __v4hi type.
13286         (_mm_sll_pi32): Cast __count to __v2si type.
13287         (_mm_sll_si64): Cast arguments to __v1di type.
13288         (_mm_srl_pi16): Cast __count to __v4hi type.
13289         (_mm_srl_pi32): Cast __count to __v2si type.
13290         (_mm_srl_si64): Cast arguments to __v1di type.
13291         (_mm_sra_pi16): Cast __count to __v4hi type.
13292         (_mm_sra_pi32): Cast __count to __v2si type.
13293         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
13294         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
13295         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
13296         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
13297         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
13298         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
13299         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
13300         (_mm_srai_pi32): Use __builtin_ia32_psradi.
13301         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
13302         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13303         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13304         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
13305
13306 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
13307
13308         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
13309
13310 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
13311
13312         PR target/35373
13313         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
13314         reg+const addressing for Altivec modes.  Don't generate reg+reg
13315         addressing for TFmode or TDmode quantities.
13316
13317 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
13318
13319         * c-common.c (vector_types_convertible_p): Call langhook
13320         instead of comptypes.
13321
13322 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13323
13324         PR tree-opt/35402
13325         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
13326         integral and scalar float variables which have a
13327         NULL DECL_INITIAL.
13328
13329 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
13330
13331         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
13332         dwarf_register_span hook when emitting unwind information for
13333         register-to-memory saves.
13334         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
13335         (rs6000_frame_related): Remove call to spe_synthesize_frame.
13336
13337 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
13338
13339         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
13340         for the same VAR_DECL.
13341
13342 2008-03-06  Tom Tromey  <tromey@redhat.com>
13343
13344         * treelang: Delete.
13345         * doc/standards.texi (Standards): Don't mention treelang.
13346         * doc/invoke.texi (Overall Options): Don't mention treelang.
13347         * doc/install.texi (Prerequisites): Don't mention bison or
13348         treelang.
13349         (Configuration): Don't mention treelang.
13350         (Building): Likewise.
13351         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
13352
13353 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
13354
13355         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
13356         word-extractions out of a multi-word object.
13357
13358 2008-03-06  Richard Guenther  <rguenther@suse.de>
13359
13360         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
13361         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
13362         result type and precision.
13363         * expr.c (get_inner_reference): Set unsignedp based on the result
13364         type of BIT_FIELD_REF.
13365         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
13366         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
13367         (try_instantiate_multiple_fields): Likewise.  Use the correct type
13368         for BIT_FIELD_REF.
13369         (sra_build_assignment): Likewise.
13370         (sra_build_elt_assignment): Likewise.
13371         (sra_explode_bitfield_assignment): Likewise.
13372         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
13373         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
13374         set BIT_FIELD_REF_UNSIGNED.
13375         (vectorizable_load): Likewise.
13376
13377 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
13378
13379         * cse.c (cse_extended_basic_block): Invalidate artificial defs
13380         at bb start.
13381
13382 2008-03-06  Richard Guenther  <rguenther@suse.de>
13383
13384         * alias.c (struct alias_set_entry): Move has_zero_child field
13385         to pack with alias_set.
13386
13387 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13388
13389         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13390         32bit host.
13391
13392 2008-03-05  Ian Lance Taylor  <iant@google.com>
13393
13394         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
13395
13396 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
13397
13398         * fwprop.c (update_df): Support width and offset parameters of
13399         df_ref_create.
13400         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
13401         global_conflicts): Change DF_REF_EXTRACT to either
13402         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13403         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13404         * df-scan.c (df_ref_record, df_defs_record,
13405         df_ref_create_structure, df_def_record_1, df_uses_record,
13406         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
13407         df_bb_refs_collect, df_entry_block_defs_collect,
13408         df_exit_block_uses_collect): Support new width and offset fields.
13409         (ref_extract_pool): New storage pool.
13410         (df_free_ref): New function.
13411         (df_reg_chain_unlink, df_free_collection_rec,
13412         df_sort_and_compress_refs): Call df_free_ref.
13413         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
13414         of df_ref_extract.
13415         (df_ref_create_structure): Allocate df_ref_extract if offset and
13416         width fields are used.
13417         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
13418         (df_uses_record): Get offset and width from ZERO_EXTRACT
13419         and SIGN_EXTRACT.
13420         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
13421         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13422         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13423         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
13424         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13425         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13426         (df_ref_extract): New structure.
13427         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
13428         (df_ref_create): Add width and offset parameters.
13429
13430 2008-03-05  Richard Guenther  <rguenther@suse.de>
13431
13432         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13433         Use ranges_overlap_p.
13434         (offset_overlaps_with_access): Rename
13435         to ranges_overlap_p and move ...
13436         * tree-flow-inline.h (ranges_overlap_p): ... here.
13437
13438         * tree.h (get_inner_reference, handled_component_p): Update
13439         comments.
13440
13441         * tree.h (record_component_aliases, get_alias_set,
13442         alias_sets_conflict_p, alias_sets_must_conflict_p,
13443         objects_must_conflict_p): Move declarations ...
13444         * alias.h (record_component_aliases, get_alias_set,
13445         alias_sets_conflict_p, alias_sets_must_conflict_p,
13446         objects_must_conflict_p): ... here.
13447         Include coretypes.h.
13448         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
13449
13450 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
13451
13452         * cfg.c: Include tree-flow.h.
13453         (remove_edge_raw): Call redirect_edge_var_map_clear.
13454         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
13455         * tree-flow-inline.h (redirect_edge_var_map_def): New.
13456         (redirect_edge_var_map_result): New.
13457         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
13458         PENDING_STMT use with redirect_edge_var_map_*.
13459         * tree-ssa.c (edge_var_maps): New definition.
13460         (redirect_edge_var_map_add): New.
13461         (redirect_edge_var_map_clear): New.
13462         (redirect_edge_var_map_dup): New.
13463         (redirect_edge_var_map_vector): New.
13464         (redirect_edge_var_map_destroy): New.
13465         (ssa_redirect_edge): Replace PENDING_STMT use with
13466         redirect_edge_var_map_*.
13467         (flush_pending_stmts): Same.
13468         (delete_tree_ssa): Destroy edge var map.
13469         * tree-flow.h (struct _edge_var_map): New.
13470         Define edge_var_map vector type.
13471         Declare redirect_edge_var_map_* prototypes.
13472         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
13473         * tree-cfg.c (reinstall_phi_args): Replace
13474         PENDING_STMT use with redirect_edge_var_map_*.
13475
13476 2008-03-05  Richard Guenther  <rguenther@suse.de>
13477
13478         PR tree-optimization/35472
13479         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
13480         whose single use_stmt has a overlapping set of loaded and
13481         stored symbols as that use_stmt might be a noop assignment then.
13482
13483 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
13484
13485         * gthr-rtems.h: Implement __gthread_mutex_destroy.
13486
13487 2008-03-05  Richard Guenther  <rguenther@suse.de>
13488
13489         PR c++/35336
13490         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
13491         should be constants.
13492         * tree-cfg.c (verify_expr): Verify it.
13493         * fold-const.c (fold_truthop): Remove code generating
13494         BIT_FIELD_REFs of structure bases.
13495         (fold_binary): Likewise.
13496         (fold_ternary): Position and size of BIT_FIELD_REFs are
13497         always host integers.
13498         (make_bit_field_ref): Remove.
13499         (optimize_bit_field_compare): Remove.
13500         (all_ones_mask_p): Remove.
13501
13502 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
13503
13504         PR gcc/33009
13505         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
13506         (split_block_and_df_analyze): New. Split basic block and rebuild
13507         dataflow.
13508         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
13509         SPLIT_BLOCK.
13510         (split_pattern_seq): Likewise.
13511         (erase_matching_seqs): Likewise.
13512         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
13513
13514 2008-03-04  Geoff Keating  <geoffk@apple.com>
13515
13516         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
13517         declaration and code.
13518         (tree_invalid_nonnegative_warnv_p): Likewise.
13519
13520 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
13521
13522         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
13523         examples.  Truncate option-names then causing overfull hbox.
13524
13525 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13526
13527         PR target/35222
13528         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
13529         on hpux10.
13530         * configure: Rebuilt.
13531
13532 2008-03-04  Rafael Espindola  <espindola@google.com>
13533
13534         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
13535         (tree_unary_nonnegative_warnv_p): New.
13536         (tree_binary_nonnegative_warnv_p): New.
13537         (tree_single_nonnegative_warnv_p): New.
13538         (tree_invalid_nonnegative_warnv_p): New.
13539         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
13540
13541 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13542
13543         PR 28322
13544         * opts.c (handle_option): Postpone 'unknown option' errors only for
13545         warning options.
13546
13547 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13548
13549         PR target/35453
13550         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
13551         (_SIDD_XXX): This.
13552
13553 2008-03-04  Rafael Espindola  <espindola@google.com>
13554
13555         * fold-const.c (tree_unary_nonzero_warnv_p): New.
13556         (tree_binary_nonzero_warnv_p): New.
13557         (tree_single_nonzero_warnv_p): New.
13558         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
13559
13560 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
13561
13562         PR middle-end/35456
13563         * fold-const.c (fold_cond_expr_with_comparison): Prevent
13564         transformations for modes that have signed zeros.
13565         * ifcvt.c (noce_try_abs): Ditto.
13566
13567 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
13568
13569         * config/i386/i386.c (override_options): Force
13570         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
13571
13572 2008-03-04  Jan Hubicka  <jh@suse.cz>
13573
13574         PR c++/35262
13575         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
13576         in last commit.
13577
13578 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13579
13580         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
13581         label to probe the stack.
13582
13583 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13584
13585         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
13586         (__gthr_win32_mutex_destroy): Declare.
13587         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
13588         __gthr_win32_mutex_destroy.
13589         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
13590
13591 2008-03-03  Jan Hubicka  <jh@suse.cz>
13592
13593         PR c++/35262
13594         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
13595         aggressive on inlining cold calls.
13596
13597 2008-03-03  Richard Guenther  <rguenther@suse.de>
13598
13599         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
13600         struct copies into the expression table.
13601         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
13602         (try_to_simplify): Likewise.
13603         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13604         integral and pointer arguments which do not change the
13605         precision to NOP_EXPRs.
13606         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13607         VIEW_CONVERT_EXPR case.
13608
13609 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
13610
13611         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13612         defined in a loop at depth 0 is invariant.
13613         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13614         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13615         be called at loop depth 0.
13616
13617 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
13618
13619         PR driver/35420
13620         * gcc.c (process_command): Update copyright notice dates.
13621         * gcov.c (print_version): Likewise.
13622         * gcov-dump.c (print_version): Likewise.
13623         * mips-tfile.c (main): Likewise.
13624         * mips-tdump.c (main): Likewise.
13625
13626 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13627
13628         PR 24924
13629         * c-common.c (flag_permissive): Delete.
13630         (constant_expression_warnings): Check flags first.
13631         (constant_expression_error): New.
13632         * c-common.h (flag_permissive): Delete.
13633         (constant_expression_error): Declare.
13634         * flags.h (flag_permissive): Declare. Update description.
13635         * diagnostic.c (pedwarn): Update.
13636         (permerror): New.
13637         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
13638         (permissive_error_kind): New.
13639         * toplev.c (flag_permissive): Define. Update description.
13640         * toplev.h (permissive_error_kind): Declare.
13641         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
13642         (pedwarn_c90): Use pedantic_warning_kind.
13643         * c-opts.c (c_common_post_options): flag_permissive does not affect
13644         flag_pedantic_errors.
13645
13646 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
13647
13648         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
13649         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
13650         __absvsi2, __absvDI2): Use unsigned arithmetic.
13651
13652 2008-03-02  Andi Kleen  <ak@suse.de>
13653             Richard Guenther  <rguenther@suse.de>
13654
13655         * struct-equiv.c: Remove file.
13656         * cfg_cleanup.c (condjump_equiv_p): Remove.
13657         * Makefile.in (OBJS-common): Remove struct-equiv.o.
13658         (struct-equiv.o): Remove rule.
13659         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
13660         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
13661         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
13662
13663 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13664
13665         * ifcvt.c (noce_process_if_block): Try to handle only the then
13666         block if the else block exists but isn't suitable.
13667
13668 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13669
13670         PR gcc/35063
13671         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
13672         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
13673         regression from previous patch.
13674
13675 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13676
13677         PR gcc/35063
13678         * gthr.h: Add __gthread_mutex_destroy as a function that must be
13679         implemented.
13680         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
13681         * gthr-single.h (__gthread_mutex_destroy): Likewise.
13682         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
13683         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
13684         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
13685         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
13686         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
13687         (__gthread_mutex_destroy_function): Rename to
13688         __gthread_mutex_destroy.
13689         * gthr-dce.h (__gthread_mutex_destroy): Call
13690         pthread_mutex_destroy.
13691         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
13692         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
13693         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
13694
13695 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13696
13697         * df-scan.c (df_ref_chain_change_bb): Simplify.
13698         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
13699         set_block_for_insn if there's any change.
13700         * df.h ((df_insn_change_bb): Fix prototype.
13701         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
13702         df_insn_change_bb, don't call set_block_for_insn.
13703         * emit-rtl.c (reorder_insns): Likewise.
13704         * haifa-sched.c (move_insn): Likewise.
13705
13706 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13707
13708         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
13709
13710 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13711
13712         * tree-flow-inline.h (next_readonly_imm_use): Return
13713         NULL_USE_OPERAND_P after the end.
13714
13715 2008-03-01  Richard Guenther  <rguenther@suse.de>
13716
13717         PR tree-optimization/35411
13718         * tree-sra.c (sra_build_assignment): Split conversion to
13719         final type to a separate statement if we are not assigning
13720         to a register.
13721
13722 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13723
13724         * fold-const.c (fold_convertible_p): Correct the logic to follow
13725         that in fold_convert().
13726
13727 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
13728
13729         PR c++/35315
13730         * tree-inline.c (build_duplicate_type): When we make a
13731         duplicate type, make it unique in the canonical types system.
13732
13733 2008-02-29  Tom Tromey  <tromey@redhat.com>
13734
13735         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
13736         input_file_stack_history, input_file_stack_restored): Remove.
13737         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13738         * input.h (struct file_stack): Remove.
13739         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13740         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
13741         Likewise.
13742         * diagnostic.h (struct diagnostic_context) <last_module>: Change
13743         type.
13744         (diagnostic_last_module_changed): Add 'map' argument.
13745         (diagnostic_set_last_function): Likewise.
13746         * diagnostic.c (undiagnostic_report_current_module): Iterate using
13747         line map, not input_file_stack.
13748         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
13749
13750 2008-02-29  Paul Brook  <paul@codesourcery.com>
13751
13752         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
13753
13754 2008-02-29  Paul Brook  <paul@codesourcery.com>
13755
13756         * config/arm/ieee754-df.S (muldf3): Use RET macros.
13757
13758 2008-02-29  Richard Guenther  <rguenther@suse.de>
13759
13760         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
13761         vn_lookup_or_add.
13762         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
13763         value for comparing for a store match.
13764         (simplify_unary_expression): Do nothing for SSA_NAMEs.
13765         (try_to_simplify): Do not do a full-blown reference lookup.
13766
13767 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13768
13769         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
13770         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
13771
13772         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
13773
13774 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
13775
13776         * tree-loop-linear.c (try_interchange_loops): Compare memory access
13777         strides against cache sizes.
13778
13779 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13780
13781         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
13782         constant to fpul.
13783
13784 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
13785
13786         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
13787         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
13788         is smaller than the original promoted value.
13789         (simplify_subreg): If OP is a SUBREG, try to preserve its
13790         SUBREG_PROMOTED_VAR_P information.
13791
13792 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
13793
13794         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
13795         (VN_INFO_GET): Allocate new objects on the obstack.
13796         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
13797         for rpo_numbers_temp, for consistency.
13798         (free_scc_vn): Free the obstack.
13799
13800 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
13801
13802         * doc/invoke.texi: Document -ftree-loop-distribution.
13803         * tree-loop-distribution.c: New.
13804         * tree-pass.h (pass_loop_distribution): New.
13805         * graphds.h (struct graph): Add htab_t indices.
13806         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
13807         * tree-vectorizer.c (rename_variables_in_loop): Extern.
13808         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
13809         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
13810         * tree-data-ref.c (debug_data_dependence_relations): New.
13811         (dump_data_dependence_relation): Also print data references.
13812         (free_data_ref): Extern.
13813         (same_access_functions): Moved...
13814         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
13815         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13816         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
13817         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
13818         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
13819         (stmts_from_loop): Skip LABEL_EXPR.
13820         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
13821         New.
13822         (build_rdg): Initialize rdg->indices htab.
13823         (free_rdg, stores_from_loop, ref_base_address,
13824         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
13825         have_similar_memory_accesses_1, ref_base_address_1,
13826         remove_similar_memory_refs): New.
13827         * tree-data-ref.h: Depend on tree-chrec.h.
13828         (debug_data_dependence_relations, free_data_ref): Declared.
13829         (same_access_functions): ... here.
13830         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
13831         New.
13832         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
13833         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
13834         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
13835         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13836         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
13837         rdg_vertex_for_stmt): Declared.
13838         (struct rdg_edge): Add level.
13839         (RDGE_LEVEL): New.
13840         (free_rdg, stores_from_loop, remove_similar_memory_refs,
13841         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
13842         Declared.
13843         (rdg_has_similar_memory_accesses): New.
13844         * tree-vect-analyze.c: Remove unused static decls.
13845         * lambda.h (dependence_level): New.
13846         * common.opt (ftree-loop-distribution): New.
13847         * tree-flow.h (mark_virtual_ops_in_bb,
13848         slpeel_tree_duplicate_loop_to_edge_cfg,
13849         rename_variables_in_loop): Declared.
13850         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
13851         (OBJS-common): Add tree-loop-distribution.o.
13852         (tree-loop-distribution.o): New rule.
13853         * tree-cfg.c (mark_virtual_ops_in_bb): New.
13854         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
13855         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
13856
13857 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
13858
13859         PR target/33963
13860         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
13861         other than structures and unions.
13862
13863 2008-02-28  Richard Guenther  <rguenther@suse.de>
13864
13865         Revert:
13866         2008-02-26  Richard Guenther  <rguenther@suse.de>
13867
13868         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13869         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13870         (lookup_decl_from_uid): Declare.
13871         (remove_decl_from_map): Likewise.
13872         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13873         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13874         (decl_for_uid_map): New global hashtable mapping DECL_UID
13875         to the decl tree.
13876         (init_ttree): Allocate it.
13877         (insert_decl_to_uid_decl_map): New helper function.
13878         (make_node_stat): Insert new decls into the map.
13879         (copy_node_stat): Likewise.
13880         (lookup_decl_from_uid): New function.
13881         (remove_decl_from_map): Likewise.
13882         (print_decl_for_uid_map_statistics): New helper.
13883         (dump_tree_statistics): Call it.
13884
13885         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13886         (referenced_var_iterator): Adjust.
13887         (FOR_EACH_REFERENCED_VAR): Adjust.
13888         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13889         (num_referenced_vars): Adjust.
13890         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13891         (first_referenced_var): Remove.
13892         (end_referenced_vars_p): Likewise.
13893         (next_referenced_var): Likewise.
13894         (referenced_var_iterator_set): New helper function.
13895         * tree-dfa.c (referenced_var_lookup): Adjust.
13896         (referenced_var_check_and_insert): Likewise.
13897         (remove_referenced_var): Likewise.
13898         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
13899         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13900         (verify_call_clobbering): Likewise.
13901         (verify_memory_partitions): Likewise.
13902         (init_tree_ssa): Allocate bitmap instead of hashtable for
13903         referenced_vars.
13904         (delete_tree_ssa): Adjust.
13905         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
13906         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
13907         (compute_tag_properties): Likewise.
13908         (set_initial_properties): Likewise.
13909         (find_partition_for): Likewise.
13910         (update_reference_counts): Likewise.
13911         (dump_may_aliases_for): Likewise.
13912         * tree-ssa-operands.c (add_virtual_operand): Likewise.
13913         (add_call_clobber_ops): Likewise.
13914         (add_call_read_ops): Likewise.
13915         (get_asm_expr_operands): Likewise.
13916         * tree-into-ssa.c (dump_decl_set): Likewise.
13917         (update_ssa): Likewise.
13918         * tree-sra.c (scan_function): Likewise.
13919         (decide_instantiations): Likewise.
13920         (scalarize_parms): Likewise.
13921         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
13922         (dsa_named_for): Likewise.
13923         * tree-ssa-structalias.c (update_alias_info): Likewise.
13924         (merge_smts_into): Likewise.
13925
13926 2008-02-27  David Daney  <ddaney@avtrex.com>
13927
13928         PR target/34409
13929         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
13930         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
13931         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
13932         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
13933         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
13934
13935 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
13936
13937         PR target/25477
13938         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
13939         (BUILT_IN_NEXTTOWARD): Remove.
13940         (BUILT_IN_NEXTTOWARDF): Ditto.
13941         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
13942         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
13943
13944 2008-02-27  Tom Tromey  <tromey@redhat.com>
13945
13946         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
13947         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
13948
13949 2008-02-27  Jan Beulich  <jbeulich@novell.com>
13950
13951         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
13952         update the respective field on newdecl.
13953
13954 2008-02-27  Revital Eres  <eres@il.ibm.com>
13955
13956         PR rtl-optimization/34999
13957         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
13958         crossing edges that ends with a call insn.
13959         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
13960         call insn and clear the EDGE_CROSSING flag of the crossing edge
13961         when fixing fallthru edges.
13962
13963 2008-02-27  Richard Guenther  <rguenther@suse.de>
13964
13965         PR middle-end/35390
13966         * fold-const.c (fold_unary): Return the correct argument,
13967         converted to the result type.
13968
13969 2008-02-27  Richard Guenther  <rguenther@suse.de>
13970
13971         PR middle-end/34971
13972         * expr.c (expand_expr_real_1): Assert on rotates that operate
13973         on partial modes.
13974         * fold-const.c (fold_binary): Use the types precision, not the
13975         bitsize of the mode if folding rotate expressions.  Build rotates
13976         only for full modes.
13977
13978 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
13979
13980         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
13981         and CPP_PRAGMA_EOL.
13982         * c-pragma.c (pragma_ns_name): New typedef.
13983         (registered_pp_pragmas): New variable.
13984         (c_pp_lookup_pragma): New function.
13985         (c_register_pragma_1): If flag_preprocess_only, do nothing
13986         for non-expanded pragmas, for expanded ones push pragma's
13987         namespace and name into registered_pp_pragmas vector.
13988         (c_invoke_pragma_handler): Register OpenMP pragmas even when
13989         flag_preprocess_only, don't register GCC pch_preprocess
13990         pragma if flag_preprocess_only.
13991         * c-opts.c (c_common_init): Call init_pragma even if
13992         flag_preprocess_only.
13993         * c-pragma.c (c_pp_lookup_pragma): New prototype.
13994         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
13995         cpp_register_pragma if flag_preprocess_only.
13996
13997 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13998
13999         PR c/28800
14000         * c-parser.c (c_parser_translation_unit): Warn for empty
14001         translation unit, not empty source file.
14002
14003 2008-02-26  Paul Brook  <paul@codesourcery.com>
14004
14005         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
14006         operand for Thumb-2.
14007         * config/arm/arm.h (reg_class): Add CORE_REGS.
14008         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
14009         (BASE_REG_CLASS): Use CORE_REGS.
14010         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
14011         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
14012         (REGNO_OK_FOR_INDEX_P): Exclude SP.
14013         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
14014         ARM_REGNO_OK_FOR_INDEX_P.
14015         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
14016         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
14017         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
14018         (ldm/stm peepholes): Ditto.
14019         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
14020         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
14021         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
14022         * config/arm/constraints.md: Enable "k" constraint on ARM.
14023
14024 2008-02-27  Ben Elliston  <bje@au.ibm.com>
14025
14026         * config/rs6000/rs6000.c: Annotate cache line size field in all
14027         instances of struct processor_costs.
14028
14029 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
14030
14031         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
14032         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
14033         jump_bypass): New counters.
14034         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
14035         * dce.c (gate_ud_dce): Same.
14036         (gate_fast_dce): Same.
14037         * dse.c (gate_dse1): New function.
14038         (gate_dse2): New function.
14039         (gate_dse): Merge results of new gate functions.
14040         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
14041         (gate_handle_jump_bypass): Add dbg_cnt.
14042         (gate_handle_gcse): Add dbg_cnt.
14043         * ifcvt.c (gate_handle_if_conversion): Same.
14044         (gate_handle_if_after_combine): Same.
14045         (gate_handle_if_after_reload): Same.
14046         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
14047
14048 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
14049
14050         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
14051         line sizes.
14052         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
14053
14054 2008-02-26  Jason Merrill  <jason@redhat.com>
14055
14056         PR c++/35315
14057         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
14058         alone if it's the naming decl for the type's main variant.
14059
14060 2008-02-26  Tom Tromey  <tromey@redhat.com>
14061
14062         * system.h (USE_MAPPED_LOCATION): Poison.
14063         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
14064         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
14065         (make_goto_expr_edges): Likewise.
14066         (remove_bb): Likewise.
14067         (execute_warn_function_return): Likewise.
14068         * basic-block.h (struct edge_def) <goto_locus>: Change type to
14069         location_t.
14070         * c-common.c (fname_decl): Remove old location code.
14071         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
14072         location code.
14073         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
14074         variant.
14075         (ASM_INPUT_SOURCE_LOCATION): Likewise.
14076         (gen_rtx_ASM_INPUT): Likewise.
14077         (gen_rtx_ASM_INPUT_loc): Likewise.
14078         (get_rtx_asm_OPERANDS): Remove.
14079         * cfglayout.c (insn_locators_alloc): Remove old location code.
14080         (set_curr_insn_source_location): Likewise.
14081         (curr_insn_locator): Likewise.
14082         * print-tree.c (print_node): Remove old location code.
14083         * tree-mudflap.c (mf_varname_tree): Remove old location code.
14084         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
14085         * cfgexpand.c (expand_gimple_cond_expr): Don't use
14086         location_from_locus.
14087         (construct_exit_block): Remove old location code.
14088         * emit-rtl.c (force_next_line_note): Remove old location code.
14089         * profile.c (branch_prob): Remove old location code.
14090         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
14091         LOC_LINE): Remove old-location variants.
14092         * langhooks.c (lhd_print_error_function): Remove old location
14093         code.
14094         * configure, config.in: Rebuilt.
14095         * configure.ac (--enable-mapped-location): Remove.
14096         * c-decl.c (c_init_decl_processing): Remove old location code.
14097         (finish_function): Likewise.
14098         * recog.c (decode_asm_operands): Remove old location code.
14099         * c-pch.c (c_common_read_pch): Remove old location code.
14100         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
14101         variants.
14102         * gimple-low.c (lower_function_body): Remove old location code.
14103         * toplev.c (unknown_location): Remove.
14104         (push_srcloc): Remove old-location variant.
14105         (process_options): Remove old location code.
14106         (lang_dependent_init): Likewise.
14107         * input.h (UNKNOWN_LOCATION): Move definition.
14108         (location_t): Undeprecate.
14109         (source_locus): Remove.
14110         (location_from_locus): Remove.
14111         (struct location_s): Remove.
14112         Remove all old-location code.
14113         (input_line, input_filename): Remove.
14114         * final.c (final_scan_insn): Remove old location code.
14115         * diagnostic.c (diagnostic_build_prefix): Remove
14116         USE_MAPPED_LOCATION test.
14117         * tree.h (gimple_stmt) <locus>: Now a location_t.
14118         (tree_exp) <locus>: Likewise.
14119         (DECL_IS_BUILTIN): Remove old-location variant.
14120         (annotate_with_file_line, annotate_with_locus): Likewise.
14121         (expr_locus, set_expr_locus): Update.
14122         * tree.c (build1_stat): Remove old location code.
14123         (last_annotated_node): Remove.
14124         (annotate_with_file_line): Remove old-location variant.
14125         (annotate_with_locus): Likewise.
14126         (expr_location): Remove old location code.
14127         (set_expr_location): Likewise.
14128         (expr_has_location): Likewise.
14129         (expr_locus): Likewise.
14130         (set_expr_locus): Likewise.
14131         (expr_filename): Don't use location_from_locus.
14132         (expr_lineno): Likewise.
14133         * rtl-error.c (location_for_asm): Remove old location code.
14134         * c-lex.c (cb_line_change): Remove old location code.
14135         (fe_file_change): Likewise.
14136         (cb_def_pragma): Likewise.
14137         (c_lex_with_flags): Likewise.
14138         * gengtype.c (do_typedef): Don't special-case location types.
14139         (define_location_structures): Remove.
14140         (main): Don't call define_location_structures.
14141         * tree-pretty-print.c (dump_implicit_edges): Remove old location
14142         code.
14143
14144 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14145
14146         PR 26264
14147         * builtins.def (BUILT_IN_STDARG_START): Remove.
14148         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
14149         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
14150         * tree-inline.c (inline_forbidden_p_1): Likewise.
14151
14152 2008-02-26  Richard Guenther  <rguenther@suse.de>
14153
14154         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14155         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14156         (lookup_decl_from_uid): Declare.
14157         (remove_decl_from_map): Likewise.
14158         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14159         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14160         (decl_for_uid_map): New global hashtable mapping DECL_UID
14161         to the decl tree.
14162         (init_ttree): Allocate it.
14163         (insert_decl_to_uid_decl_map): New helper function.
14164         (make_node_stat): Insert new decls into the map.
14165         (copy_node_stat): Likewise.
14166         (lookup_decl_from_uid): New function.
14167         (remove_decl_from_map): Likewise.
14168         (print_decl_for_uid_map_statistics): New helper.
14169         (dump_tree_statistics): Call it.
14170
14171         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14172         (referenced_var_iterator): Adjust.
14173         (FOR_EACH_REFERENCED_VAR): Adjust.
14174         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14175         (num_referenced_vars): Adjust.
14176         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14177         (first_referenced_var): Remove.
14178         (end_referenced_vars_p): Likewise.
14179         (next_referenced_var): Likewise.
14180         (referenced_var_iterator_set): New helper function.
14181         * tree-dfa.c (referenced_var_lookup): Adjust.
14182         (referenced_var_check_and_insert): Likewise.
14183         (remove_referenced_var): Likewise.
14184         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14185         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14186         (verify_call_clobbering): Likewise.
14187         (verify_memory_partitions): Likewise.
14188         (init_tree_ssa): Allocate bitmap instead of hashtable for
14189         referenced_vars.
14190         (delete_tree_ssa): Adjust.
14191         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14192         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14193         (compute_tag_properties): Likewise.
14194         (set_initial_properties): Likewise.
14195         (find_partition_for): Likewise.
14196         (update_reference_counts): Likewise.
14197         (dump_may_aliases_for): Likewise.
14198         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14199         (add_call_clobber_ops): Likewise.
14200         (add_call_read_ops): Likewise.
14201         (get_asm_expr_operands): Likewise.
14202         * tree-into-ssa.c (dump_decl_set): Likewise.
14203         (update_ssa): Likewise.
14204         * tree-sra.c (scan_function): Likewise.
14205         (decide_instantiations): Likewise.
14206         (scalarize_parms): Likewise.
14207         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14208         (dsa_named_for): Likewise.
14209         * tree-ssa-structalias.c (update_alias_info): Likewise.
14210         (merge_smts_into): Likewise.
14211
14212 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14213
14214         PR 34351
14215         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
14216         * c-opts.c (c_common_handle_option): Wall enables
14217         Wvolatile-register-var.
14218         * common.opt: Move Wvolatile-register-var to...
14219         * c.opt: ...here.
14220
14221 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14222
14223         * common.opt (Wlarger-than=): New.
14224         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
14225         -Wlarger-than=.
14226         * opts.c (common_handle_option): Handle -Wlarger-than=.
14227         * optc-gen.awk: Likewise.
14228         * opth-gen.awk: Likewise.
14229         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
14230         * tree-optimize.c (tree_rest_of_compilation): Likewise.
14231
14232 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14233
14234         * c-common.c (match_case_to_enum_1): Add appropriate
14235         OPT_W* parameter to warning.
14236         (c_do_switch_warnings): Likewise.
14237         * c-typeck.c (warning_init): Add one more parameter following
14238         'warning' function.
14239         (push_init_level): Update call to warning_init.
14240         (pop_init_level): Likewise.
14241         (add_pending_init): Likewise.
14242         (output_init_element: Likewise.
14243
14244 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14245
14246         PR 28322
14247         * toplev.c (toplev_main): If there are warnings or error, print
14248         errors for ignored options.
14249         * opts.c (ignored_options): New static variable.
14250         (postpone_unknown_option_error): New.
14251         (print_ignored_options): New.
14252         (handle_option): Postpone errors for unknown -Wno-* options.
14253         * opts.h (print_ignored_options): Declare.
14254
14255 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
14256
14257         * config/mips/mips.md (loadgp_blockage, blockage): Change type
14258         to "ghost".
14259
14260 2008-02-25  Richard Guenther  <rguenther@suse.de>
14261
14262         Revert:
14263         2008-02-25  Richard Guenther  <rguenther@suse.de>
14264
14265         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14266         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14267         (lookup_decl_from_uid): Declare.
14268         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14269         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14270         (decl_for_uid_map): New global hashtable mapping DECL_UID
14271         to the decl tree.
14272         (init_ttree): Allocate it.
14273         (insert_decl_to_uid_decl_map): New helper function.
14274         (make_node_stat): Insert new decls into the map.
14275         (copy_node_stat): Likewise.
14276         (lookup_decl_from_uid): New function.
14277         (print_decl_for_uid_map_statistics): New helper.
14278         (dump_tree_statistics): Call it.
14279
14280         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14281         (referenced_var_iterator): Adjust.
14282         (FOR_EACH_REFERENCED_VAR): Adjust.
14283         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14284         (num_referenced_vars): Adjust.
14285         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14286         (first_referenced_var): Remove.
14287         (end_referenced_vars_p): Likewise.
14288         (next_referenced_var): Likewise.
14289         (referenced_var_iterator_set): New helper function.
14290         * tree-dfa.c (referenced_var_lookup): Adjust.
14291         (referenced_var_check_and_insert): Likewise.
14292         (remove_referenced_var): Likewise.
14293         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14294         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14295         (verify_call_clobbering): Likewise.
14296         (verify_memory_partitions): Likewise.
14297         (init_tree_ssa): Allocate bitmap instead of hashtable for
14298         referenced_vars.
14299         (delete_tree_ssa): Adjust.
14300         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14301         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14302         (compute_tag_properties): Likewise.
14303         (set_initial_properties): Likewise.
14304         (find_partition_for): Likewise.
14305         (update_reference_counts): Likewise.
14306         (dump_may_aliases_for): Likewise.
14307         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14308         (add_call_clobber_ops): Likewise.
14309         (add_call_read_ops): Likewise.
14310         (get_asm_expr_operands): Likewise.
14311         * tree-into-ssa.c (dump_decl_set): Likewise.
14312         (update_ssa): Likewise.
14313         * tree-sra.c (scan_function): Likewise.
14314         (decide_instantiations): Likewise.
14315         (scalarize_parms): Likewise.
14316         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14317         (dsa_named_for): Likewise.
14318         * tree-ssa-structalias.c (update_alias_info): Likewise.
14319         (merge_smts_into): Likewise.
14320
14321 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
14322
14323         PR fortran/29549
14324         * doc/invoke.texi (-fcx-limited-range): Document new option.
14325         * toplev.c (process_options): Handle -fcx-fortran-rules.
14326         * common.opt: Add documentation for -fcx-fortran-rules.
14327
14328 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
14329
14330         PR c/35162
14331         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
14332         actual behaviour and C99.
14333
14334 2008-02-26  Ben Elliston  <bje@au.ibm.com>
14335
14336         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
14337         (ASM_CPU_POWER6_SPEC): Likewise.
14338         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
14339         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
14340         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
14341
14342 2008-02-25  Richard Guenther  <rguenther@suse.de>
14343
14344         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14345         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14346         (lookup_decl_from_uid): Declare.
14347         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14348         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14349         (decl_for_uid_map): New global hashtable mapping DECL_UID
14350         to the decl tree.
14351         (init_ttree): Allocate it.
14352         (insert_decl_to_uid_decl_map): New helper function.
14353         (make_node_stat): Insert new decls into the map.
14354         (copy_node_stat): Likewise.
14355         (lookup_decl_from_uid): New function.
14356         (print_decl_for_uid_map_statistics): New helper.
14357         (dump_tree_statistics): Call it.
14358
14359         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14360         (referenced_var_iterator): Adjust.
14361         (FOR_EACH_REFERENCED_VAR): Adjust.
14362         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14363         (num_referenced_vars): Adjust.
14364         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14365         (first_referenced_var): Remove.
14366         (end_referenced_vars_p): Likewise.
14367         (next_referenced_var): Likewise.
14368         (referenced_var_iterator_set): New helper function.
14369         * tree-dfa.c (referenced_var_lookup): Adjust.
14370         (referenced_var_check_and_insert): Likewise.
14371         (remove_referenced_var): Likewise.
14372         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14373         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14374         (verify_call_clobbering): Likewise.
14375         (verify_memory_partitions): Likewise.
14376         (init_tree_ssa): Allocate bitmap instead of hashtable for
14377         referenced_vars.
14378         (delete_tree_ssa): Adjust.
14379         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14380         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14381         (compute_tag_properties): Likewise.
14382         (set_initial_properties): Likewise.
14383         (find_partition_for): Likewise.
14384         (update_reference_counts): Likewise.
14385         (dump_may_aliases_for): Likewise.
14386         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14387         (add_call_clobber_ops): Likewise.
14388         (add_call_read_ops): Likewise.
14389         (get_asm_expr_operands): Likewise.
14390         * tree-into-ssa.c (dump_decl_set): Likewise.
14391         (update_ssa): Likewise.
14392         * tree-sra.c (scan_function): Likewise.
14393         (decide_instantiations): Likewise.
14394         (scalarize_parms): Likewise.
14395         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14396         (dsa_named_for): Likewise.
14397         * tree-ssa-structalias.c (update_alias_info): Likewise.
14398         (merge_smts_into): Likewise.
14399
14400 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
14401
14402         PR target/35258
14403         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
14404         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
14405         * alias.h (nonoverlapping_memrefs_p): Likewise.
14406
14407 2008-02-25  Jan Beulich  <jbeulich@novell.com>
14408
14409         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
14410         * config/i386/netware-libgcc.exp: Add __bswap?i2,
14411         __emultls_get_address, __emultls_register_common,
14412         __floatundi?f, and _Unwind_GetIPInfo.
14413         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
14414         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
14415         (gen_regparm_prefix): Likewise.
14416         (i386_nlm_encode_section_info): Sync with
14417         config/i386/winnt.c:i386_pe_encode_section_info().
14418         (i386_nlm_maybe_mangle_decl_assembler_name): New.
14419         i386_nlm_mangle_decl_assembler_name): New.
14420         (netware_override_options): New.
14421         * config/i386/netware.h (netware_override_options): Declare.
14422         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
14423         (i386_nlm_mangle_decl_assembler_name): Declare.
14424         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
14425
14426 2008-02-25  Ben Elliston  <bje@au.ibm.com>
14427
14428         PR other/32948
14429         * c-decl.c (grokdeclarator): Remove unused local variables
14430         `typedef_type' and `type_as_written'.
14431         * bb-reorder.c
14432         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
14433         unused local variable `has_hot_blocks'.
14434         (fix_crossing_conditional_branches): Remove unused local variable
14435         `prev_bb'.
14436
14437 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
14438
14439         PR middle-end/19984
14440         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
14441         using DEF_C99_BUILTIN.
14442         (BUILT_IN_NANF): Ditto.
14443         (BUILT_IN_NANL): Ditto.
14444
14445 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
14446             Revital Eres  <eres@il.ibm.com>
14447
14448         * modulo-sched.c (calculate_must_precede_follow): Address TODO
14449         regarding the order of two dependent insns in the same row.
14450
14451 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
14452
14453         * stor-layout.c (layout_decl): Do not bump the alignment of a
14454         bit-field to more than byte alignment if it is packed.
14455
14456 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
14457
14458         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
14459         e300c2 and e300c3.
14460
14461 2008-02-24  Diego Novillo  <dnovillo@google.com>
14462
14463         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
14464
14465         PR 33738
14466         * tree-vrp.c (vrp_evaluate_conditional): With
14467         -Wtype-limits, emit a warning when comparing against a
14468         constant outside the natural range of OP0's type.
14469         * c.opt (Wtype-limits): Move ...
14470         * common.opt (Wtype-limits): ... here.
14471
14472 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
14473
14474         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
14475         * config/rs6000/e300c2c3.md: New file.
14476         * config/rs6000/rs6000.c (processor_costs): Add new costs for
14477         e300c2 and e300c3.
14478         (rs6000_override_options): Add e300c2 and e300c3 cases to
14479         processor_target_table. Do not allow usage of Altivec or Spe
14480         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
14481         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
14482         * config/rs6000/rs6000.h (processor_type): Add
14483         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
14484         (ASM_CPU_SPEC): Add e300c2 and e300c3.
14485         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
14486         and ppce300c3. Include e300c2c3.md.
14487
14488 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
14489
14490         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
14491         instead of TARGET_STRICT_ALIGN.
14492
14493 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
14494
14495         * explow.c (memory_address): Assert that the generated address is
14496         valid.
14497
14498 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
14499
14500         PR target/25477
14501         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
14502         * config/darwin-ppc-ldouble-patch.def: New file.
14503         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
14504         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
14505         SUBTARGET_INIT_BUILTINS if defined.
14506         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
14507         New functions.
14508
14509 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14510
14511         PR rtl-opt/33512
14512         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
14513         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
14514
14515 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14516
14517         PR pch/35027
14518         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
14519         file" warning condtional on -Winvalid-PCH.
14520
14521 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
14522
14523         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
14524
14525 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
14526
14527         PR target/22076
14528         PR target/34256
14529         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
14530         prevent reload from using MMX registers.
14531         (*mov<mode>_internal): Ditto.
14532         (*movv2sf_internal_rex64): Ditto.
14533         (*movv2sf_internal): Ditto.
14534
14535 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14536
14537         PR documentation/31569
14538         * doc/install.texi2html: Use makeinfo --no-number-sections.
14539
14540 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14541
14542         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
14543         ensure that we can address an entire entity > 8 bytes.  Don't
14544         generate reg+reg addressing for such data.
14545
14546 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14547
14548         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
14549         strings when optimizing for size, unless the target cares about
14550         alignment.
14551
14552 2008-02-22  Tom Tromey  <tromey@redhat.com>
14553
14554         * regclass.c (current_pass): Remove declaration.
14555
14556 2008-02-22  Anatoly Sokolov <aesok@post.ru>
14557
14558         * config/avr/libgcc.S (__RAMPZ__): Define.
14559         (__do_copy_data): Add for devices with 128KB code memory.
14560
14561 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14562
14563         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14564         Use spe_abi.
14565         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
14566
14567 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
14568
14569         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
14570         GENNONACR_REGS.
14571
14572 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14573
14574         PR c/19999
14575         * c-typeck.c (build_binary_op): Warn about floating point
14576         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
14577
14578 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
14579
14580         PR target/34526
14581         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
14582         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
14583         add vrsave.
14584         (rs6000_override_options): Set altivec_abi as default, not override,
14585         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
14586         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
14587         is used; use new member spe_abi.
14588         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
14589         spe_abi and altivec_abi.
14590
14591 2008-02-22  Tomas Bily  <tbily@suse.cz>
14592
14593         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
14594
14595 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14596
14597         PR bootstrap/35273
14598         * config.build (build_file_translate): Set to `CMD //c' only if
14599         it works.
14600         * Makefile.in (build_file_translate): Improve comment.
14601
14602 2008-02-21  Jan Hubicka  <jh@suse.cz>
14603
14604         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14605         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14606         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14607
14608 2008-02-21  Michael Matz  <matz@suse.de>
14609
14610         PR target/35264
14611         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14612
14613 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
14614
14615         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14616         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14617         as insn constraint.
14618         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14619         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14620         SSE_VEC_FLOAT_MODE_P as insn constraint.
14621         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14622         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14623         sse4a_movntdf using MODEF mode iterator.
14624         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14625         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14626         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14627         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14628         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14629         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14630         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14631
14632 2008-02-21  Richard Guenther  <rguenther@suse.de>
14633
14634         * tree.def (PAREN_EXPR): New tree code.
14635         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
14636         and PAREN_EXPR.
14637         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
14638         * expr.c (expand_expr_real_1): Likewise.
14639         * tree-inline.c (estimate_num_insns_1): Likewise.
14640         * tree-complex.c (expand_complex_move): Likewise.
14641         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
14642         as plain x.
14643
14644 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14645
14646         PR target/35225
14647         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
14648
14649 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14650
14651         PR target/35190
14652         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
14653
14654         * config/sh/sh.c (find_barrier): Don't go past
14655         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
14656
14657 2008-02-20  DJ Delorie  <dj@redhat.com>
14658
14659         * config/h8300/h8300.md (insv): Force source operand to be a register.
14660
14661         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
14662         as a jump, not as a plain insn.
14663
14664 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
14665
14666         * doc/invoke.texi (Warning Options): Add new option
14667         -Wframe-larger-than=.
14668         (-Wframe-larger-than): Document.
14669
14670         * flags.h (warn_frame_larger_than, frame_larger_than_size):
14671         Add declarations for new option variables.
14672
14673         * final.c (final_start_function): Check the frame size
14674         before emission and issue a Wframe-larger-than warning.
14675
14676         * opts.c (warn_frame_larger_than, frame_larger_than_size):
14677         Add definitions for new option variables.
14678         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
14679
14680         * common.opt (Wframe-larger-than=): New option.
14681
14682 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14683
14684         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
14685         (<sse>_div<mode>3): Ditto.
14686         (<sse>_vmdiv<mode>3): Ditto.
14687         (<sse>_vmsqrt<mode>2): Ditto.
14688         (*smax<mode>3): Ditto.
14689         (sse5_frcz<mode>2): Ditto.
14690         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
14691         as insn constraint.
14692
14693 2008-02-20  Richard Guenther  <rguenther@suse.de>
14694
14695         PR middle-end/35265
14696         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
14697         be happy with INTEGRAL_TYPE_P.
14698
14699 2008-02-20  Richard Guenther  <rguenther@suse.de>
14700
14701         * fold-const.c (split_tree): Associate floatig-point expressions
14702         if flag_associative_math is set.
14703
14704 2008-02-20  Richard Guenther  <rguenther@suse.de>
14705
14706         * tree.h (fold_real_zero_addition_p): Declare.
14707         * fold-const.c (fold_real_zero_addition_p): Export.
14708         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
14709         floating-point operations with zero and one.
14710
14711 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
14712
14713         * doc/install.texi: Correct references to CFLAGS, replacing them
14714         with BOOT_CFLAGS.  Document flags used during bootstrap for
14715         target libraries.
14716
14717 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14718
14719         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
14720         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
14721         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
14722         insn constraint.
14723         (smin<mode>3): Ditto from similar patterns.
14724         (smax<mode>3): Ditto.
14725         (*ieee_smin<mode>3): Ditto.
14726         (*ieee_smax<mode>3): Ditto.
14727         * config/i386/sse.md (sse): New mode attribute.
14728         (mov<mode>): Macroize expander from movv4sf and movv2df using
14729         SSEMODEF2P mode iterator.
14730         (<sse>_movnt<mode>): Ditto from similar patterns. Use
14731         SSE_VEC_FLOAT_MODE_P as insn constraint.
14732         (storent<mode>): Ditto.
14733         (storent<mode>): Macroize expander from storentsf and storentdf using
14734         MODEF mode iterator.
14735         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
14736         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
14737         (abs<mode>2): Ditto from similar patterns.
14738         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
14739         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
14740         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
14741         (<sse>_vmsqrt<mode>2): Ditto.
14742         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
14743         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
14744         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
14745         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
14746         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
14747         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
14748         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
14749         insn constraint.
14750         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
14751         iterator and SSE_FLOAT_MODE_P as insn constraint.
14752         (<sse>_ucomi): Ditto from similar patterns.
14753         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
14754         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
14755         SSE_VEC_FLOAT_MODE_P as insn constraint.
14756         (vcond<mode>): Ditto from similar patterns.
14757         (and<mode>3, *and<mode>3): Ditto.
14758         (<sse>_nand<mode>3): Ditto.
14759         (ior<mode>3, *ior<mode>3): Ditto.
14760         (xor<mode>3, *xor<mode>3): Ditto.
14761         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
14762         iterator and SSE_FLOAT_MODE_P as insn constraint.
14763         (*nand<mode>3): Ditto from similar patterns.
14764         (*ior<mode>3): Ditto.
14765         (*xor<mode>3): Ditto.
14766
14767 2008-02-20  Ira Rosen  <irar@il.ibm.com>
14768
14769         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
14770         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
14771         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
14772
14773 2008-02-19  Jan Hubicka  <jh@suse.cz>
14774
14775         * predict.c (tree_bb_level_predictions): Remove variable next
14776         mistakely introduced by previous commit.
14777
14778 2008-02-19  Jan Hubicka  <jh@suse.cz>
14779
14780         * predict.c (predict_paths_leading_to): Rewrite.
14781         (predict_paths_for_bb): New.
14782         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
14783
14784 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14785
14786         PR bootstrap/35218
14787         * Makefile.in (build_file_translate): New.
14788         (gcc-vers.texi): Use it for translating $(abs_srcdir).
14789         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
14790         * configure.ac (build_file_translate): Substitute it.
14791         * configure: Regenerate.
14792
14793 2008-02-19  Jan Hubicka  <jh@suse.cz>
14794
14795         PR rtl-optimization/34408
14796         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
14797         invalid sharing.
14798
14799 2008-02-19  Jan Hubicka  <jh@suse.cz>
14800
14801         PR middle-end/28779
14802         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
14803         call_expr.
14804
14805 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
14806
14807         PR Ada/35186
14808         * config/i386/i386-modes.def: Revert the last DI alignment
14809         change until Ada people can look into it.
14810
14811 2008-02-19  Nick Clifton  <nickc@redhat.com>
14812
14813         * opts.c (print_specific_help): Fix typo in --help text.
14814
14815 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
14816
14817         PR target/35239
14818         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
14819         32-bit inline asm without asm alternatives for host GCC < 3.0.
14820
14821 2008-02-19  Richard Guenther  <rguenther@suse.de>
14822
14823         PR tree-optimization/34989
14824         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
14825         Allow propagation to INDIRECT_REF if we can simplify only.
14826
14827 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14828
14829         * c-common.c (warn_for_collisions_1): Use appropriate option when
14830         warning.
14831
14832 2008-02-19  Nick Clifton  <nickc@redhat.com>
14833
14834         PR other/31349
14835         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
14836         (handle_options): Fix indentation.
14837         (print_filtered_help): If no language-specific options were
14838         displayed tell the user how to list all the options supported by
14839         the language's front-end.
14840         (print_specific_help): Fix indentation and remove duplicate line.
14841         (common_handle_option): Handle the -v option.
14842         For --help enable the display of undocumented options if the -v
14843         switch has been included on the command line.
14844         For --help= check for overlaps in the arguments between the option
14845         classes and the language names and issue a warning when they
14846         cannot be disambiguated.
14847         * c.opt (v): Pass on to the common option handler.
14848
14849 2008-02-19  Revital Eres  <eres@il.ibm.com>
14850
14851         * modulo-sched.c (sms_schedule): Change dump message when
14852         create_ddg function fails.
14853         (try_scheduling_node_in_cycle): Rename row to cycle.
14854         (print_partial_schedule): Rename CYCLE to ROW.
14855
14856 2008-02-19  Christian Bruel  <christian.bruel@st.com>
14857             Zdenek Dvorak  <ook@ucw.cz>
14858
14859         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
14860
14861 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14862
14863         PR target/33555
14864         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
14865         (*x86_movdicc_0_m1_se): Ditto.
14866
14867 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14868
14869         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
14870         (CMPtype): Define as __gcc_CMPtype.
14871         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
14872         (CMPtype): Define as __gcc_CMPtype.
14873
14874 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
14875
14876         Support valgrind 3.3 for --enable-checking=valgrind.
14877         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
14878         here.
14879         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
14880         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
14881         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
14882         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
14883         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
14884         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
14885         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
14886         respectively.
14887         * ggc-zone.c: Similar.
14888         * ggc-page.c: Similar.
14889
14890 2008-02-19  Paul Brook  <paul@codesourcery.com>
14891
14892         PR target/35071
14893         * config/arm/ieee754-df.S: Fix do_it typo.
14894         * config/arm/ieee754-sf.S: Fix do_it typo.
14895
14896 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14897
14898         PR target/35189
14899         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
14900         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
14901         (OPTION_MASK_ISA_SSE_SET): Likewise.
14902         (OPTION_MASK_ISA_SSE2_SET): Likewise.
14903         (OPTION_MASK_ISA_SSE3_SET): Likewise.
14904         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
14905         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
14906         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
14907         (OPTION_MASK_ISA_SSE4_SET): Likewise.
14908         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
14909         (OPTION_MASK_ISA_SSE5_SET): Likewise.
14910         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
14911         (OPTION_MASK_ISA_MMX_UNSET): Updated.
14912         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
14913         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
14914         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
14915         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
14916         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
14917         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
14918         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
14919         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
14920         (OPTION_MASK_ISA_SSE4): Removed.
14921         (ix86_handle_option): Turn on bits in ix86_isa_flags and
14922         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
14923         (override_options): Don't turn on implied SSE/MMX bits in
14924         ix86_isa_flags.
14925
14926 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
14927
14928         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14929         32bit host.
14930
14931 2008-02-18  Joey Ye  <joey.ye@intel.com>
14932
14933         PR middle-end/34921
14934         * tree-nested.c (insert_field_into_struct): Set type alignment
14935         to field alignment if the former is less than the latter.
14936
14937 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
14938
14939         * BASE-VER: Set to 4.4.0.
14940
14941 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14942
14943         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
14944         * doc/cfg.texi: Likewise.
14945         * doc/extend.texi: Likewise.
14946         * doc/gty.texi: Likewise.
14947         * doc/invoke.texi: Likewise.
14948         * doc/loop.texi: Likewise.
14949         * doc/md.texi: Likewise.
14950         * doc/passes.texi: Likewise.
14951         * doc/rtl.texi: Likewise.
14952         * doc/sourcebuild.texi: Likewise.
14953         * doc/tm.texi: Likewise.
14954         * doc/tree-ssa.texi: Likewise.
14955
14956 2008-02-17  Richard Guenther  <rguenther@suse.de>
14957
14958         PR middle-end/35227
14959         * tree-complex.c (init_parameter_lattice_values): Handle parameters
14960         without default definition.
14961
14962 2008-02-17  Richard Guenther  <rguenther@suse.de>
14963
14964         PR tree-optimization/35231
14965         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
14966         if A | B != 1.
14967
14968 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
14969
14970         Revert:
14971         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
14972         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
14973         libgcc_cmp_return mode.
14974
14975 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14976
14977         PR c/28368
14978         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
14979
14980 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
14981
14982         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
14983         multilibs.
14984
14985 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14986
14987         * doc/c-tree.texi: Use `@.' where appropriate.
14988         * doc/extend.texi: Likewise.
14989         * doc/install.texi: Likewise.
14990         * doc/invoke.texi: Likewise.
14991         * doc/loop.texi: Likewise.
14992         * doc/makefile.texi: Likewise.
14993         * doc/md.texi: Likewise.
14994         * doc/passes.texi: Likewise.
14995         * doc/standards.texi: Likewise.
14996         * doc/tm.texi: Likewise.
14997
14998 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14999
15000         PR middle-end/35196
15001         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
15002         in entry_bb.
15003         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
15004         rather than in entry_bb.
15005
15006 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15007
15008         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15009         libgcc_cmp_return mode.
15010
15011 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
15012
15013         PR middle-end/35130
15014         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
15015         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
15016
15017 2008-02-15  Richard Guenther  <rguenther@suse.de>
15018             Zdenek Dvorak  <ook@ucw.cz>
15019
15020         PR tree-optimization/35164
15021         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
15022         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
15023         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
15024         Only propagate addresses which do not have abnormal SSA_NAMEs
15025         in their operands.
15026
15027 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
15028
15029         PR target/35088
15030         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
15031
15032 2008-02-15  Jan Hubicka  <jh@suse.cz>
15033
15034         PR middle-end/35149
15035         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
15036
15037 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15038
15039         PR middle-end/34621
15040         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
15041         when calculating alignment_pad.
15042
15043 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15044
15045         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
15046         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
15047         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
15048         and STACK_BOUNDARY define.
15049
15050 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
15051
15052         PR preprocessor/35061
15053         * c-pragma.c (handle_pragma_pop_macro): Check that
15054         pushed_macro_table has been allocated.
15055
15056 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
15057
15058         PR middle-end/35136
15059         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
15060         (force_gimple_operand): Likewise.
15061         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
15062         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
15063         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
15064         (find_interesting_uses_address): Check addressability and alignment
15065         of the base expression only after substituting bases of IVs into it.
15066
15067 2008-02-14  Michael Matz  <matz@suse.de>
15068
15069         PR target/34930
15070         * function.c (instantiate_virtual_regs_in_insn): Reload address
15071         before falling back to reloading the whole operand.
15072
15073 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
15074
15075         * config/s390/s390.c (s390_mainpool_start): Emit the pool
15076         before the first section switch note.
15077
15078 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15079
15080         * doc/bugreport.texi: Update copyright years.
15081         * doc/c-tree.texi: Likewise.
15082         * doc/cfg.texi: Likewise.
15083         * doc/cpp.texi: Likewise.
15084         * doc/cppinternals.texi: Likewise.
15085         * doc/fragments.texi: Likewise.
15086         * doc/frontends.texi: Likewise.
15087         * doc/gcc.texi: Likewise.
15088         * doc/gty.texi: Likewise.
15089         * doc/hostconfig.texi: Likewise.
15090         * doc/implement-c.texi: Likewise.
15091         * doc/libgcc.texi: Likewise.
15092         * doc/loop.texi: Likewise.
15093         * doc/makefile.texi: Likewise.
15094         * doc/options.texi: Likewise.
15095         * doc/passes.texi: Likewise.
15096         * doc/rtl.texi: Likewise.
15097         * doc/sourcebuild.texi: Likewise.
15098         * doc/standards.texi: Likewise.
15099         * doc/tree-ssa.texi: Likewise.
15100         * doc/trouble.texi: Likewise.
15101
15102         * doc/extend.texi: Use @: or add comma where appropriate.
15103         * doc/invoke.texi: Likewise.
15104         * doc/tm.texi: Likewise.
15105
15106 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
15107
15108         PR target/34393
15109         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
15110         to a reg.
15111
15112 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
15113
15114         * doc/md.texi (clz, ctz): Add reference.
15115         * doc/rtl.texi (clz, ctz): Likewise.
15116
15117 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15118
15119         PR other/35148
15120         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
15121         srcdir.
15122
15123 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
15124
15125         * config/s390/s390.c (struct constant_pool): New field
15126         emit_pool_after added.
15127         (s390_mainpool_start): Set the emit_pool_after flag according
15128         to the section switch notes.
15129         (s390_mainpool_finish): Consider emit_pool_after when emitting
15130         the literal pool at the end of the function.
15131         (s390_chunkify_start): Force literal pool splits at section
15132         switch notes.
15133
15134 2008-02-13  Michael Matz  <matz@suse.de>
15135
15136         PR debug/35065
15137         * var-tracking.c (clobber_variable_part): Correctly traverse the
15138         list.
15139
15140 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15141
15142         PR 29673
15143         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
15144         Add -fdump-ipa-inline.
15145         * tree-dump.c (dump_files): Remove tree-inlined dump.
15146         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
15147
15148 2008-02-12  Richard Guenther  <rguenther@suse.de>
15149
15150         PR tree-optimization/35171
15151         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
15152         default defs.
15153
15154 2008-02-12  Richard Guenther  <rguenther@suse.de>
15155
15156         PR middle-end/35163
15157         * fold-const.c (fold_widened_comparison): Use get_unwidened in
15158         value-preserving mode.  Disallow final truncation.
15159
15160 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
15161
15162         PR middle-end/35136
15163         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
15164         code from here to...
15165         (force_gimple_operand): ...here.
15166
15167 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
15168
15169         PR c++/35144
15170         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
15171         non-compatible pointers.
15172         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
15173         different FIELD_DECLs, try harder by comparing field offsets, sizes
15174         and types.
15175
15176         PR inline-asm/35160
15177         * function.c (match_asm_constraints_1): Don't replace the same input
15178         multiple times.
15179
15180 2008-02-12  Anatoly Sokolov <aesok@post.ru>
15181
15182         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
15183         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
15184         (expand_epilogue): Restore RAMPZ register.
15185         * config/avr/avr.md (RAMPZ_ADDR): New constant.
15186
15187 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
15188
15189         * config/i386/cygwin.asm: (__alloca): Correct calling
15190         convention and alignment.
15191         (__chkstk): Force 8 byte stack alignment.
15192
15193 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
15194             Richard Guenther  <rguenther@suse.de>
15195
15196         PR tree-optimization/33992
15197         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
15198         the zero we compare against.
15199
15200 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
15201
15202         PR libfortran/35063
15203         * gthr-win32.h (__gthread_mutex_destroy_function): New function
15204         to CloseHandle after unlocking to prevent accumulation of handle
15205         count.
15206
15207 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15208
15209         PR middle_end/34150
15210         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
15211         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
15212         and update LABEL_NUSES during and after reload.
15213
15214 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
15215
15216         PR middle-end/34627
15217         * combine.c (simplify_if_then_else): Make sure the comparison is
15218         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
15219
15220 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
15221
15222         PR bootstrap/35051
15223         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
15224         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
15225         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
15226         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
15227         * tree.h (get_type_static_bounds): Likewise.
15228
15229 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15230
15231         * doc/invoke.texi (Option Summary, C++ Dialect Options)
15232         (Objective-C and Objective-C++ Dialect Options, Warning Options):
15233         Make -Wfoo language annotations match what the compiler outputs.
15234
15235 2008-02-08  Sa Liu  <saliu@de.ibm.com>
15236
15237         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
15238         intrinsics spu_convts, spu_convtu, spu_convtf.
15239
15240 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
15241
15242         * doc/extend.texi (Function Attributes) <noinline>: Mention
15243         asm ("") as method to keep calls.
15244
15245 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15246
15247         PR other/32754
15248         * doc/options.texi (Options): Replace references to opts.sh with
15249         optc-gen.awk.
15250         * opts-common.c: Likewise.
15251         * optc-gen.awk: Likewise.
15252
15253 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
15254
15255         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
15256
15257 2008-02-07  Richard Henderson  <rth@redhat.com>
15258
15259         PR rtl-opt/33410
15260         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
15261         EXPR_LIST for the REG_EQUAL instead of a comparison with a
15262         funny mode.
15263
15264 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
15265
15266         PR tree-optimization/35085
15267         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
15268         for operand entry oe2 in addition to operand entry oe3 in order to
15269         expose more opportunities for vectorizer sum reduction.
15270
15271 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15272
15273         PR other/35107
15274         * Makefile.in (LIBS): Remove $(GMPLIBS).
15275         (cc1-dummy, cc1): Add $(GMPLIBS).
15276
15277 2008-02-06  Jan Hubicka  <jh@suse.cz>
15278
15279         PR target/23322
15280         * i386.md (moddf_integer): Do not produce partial memory stalls for
15281         targets where it hurts.
15282
15283 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
15284
15285         PR target/35083
15286         * optabs.c (expand_float): Do not check for decimal modes when
15287         expanding unsigned integer through signed conversion.
15288
15289 2008-02-06  Nick Clifton  <nickc@redhat.com>
15290
15291         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
15292         inside the clobber with a match_operand and duplicated operand
15293         number in the constraint.
15294         (ineqbranchsi): Delete redundant comment.
15295
15296 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
15297
15298         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
15299         builtin_define ("__USE_INIT_FINI__").
15300         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
15301         -msx multilibs.
15302         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
15303
15304 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15305
15306         PR documentation/30330
15307         * doc/invoke.texi (C++ Dialect Options)
15308         (Objective-C and Objective-C++ Dialect Options, Warning Options):
15309         For each warning option -Wfoo that allows -Wno-foo, ensure both
15310         -Wfoo and -Wno-foo are listed in the option index.  Fix index
15311         entry of -Wswitch-default, index -Wnormalized= including the
15312         `=', and -Wlarger-than-@var{len} including @var{len}.
15313
15314 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
15315
15316         * config/i386/i386.md (floatunssisf2): Use
15317         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
15318         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
15319         Macroize expander using MODEF mode iterator.
15320
15321 2008-02-05  Diego Novillo  <dnovillo@google.com>
15322
15323         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
15324
15325         PR 33738
15326         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
15327
15328 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15329
15330         PR other/35070
15331         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
15332
15333 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
15334
15335         PR target/35084
15336         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
15337         to indicate if a message should be generated.
15338         (init_cumulative_args): Updated.
15339         (function_value_32): Likewise.
15340
15341 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
15342
15343         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
15344
15345 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
15346
15347         PR target/35083
15348         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
15349         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
15350
15351 2008-02-04  Diego Novillo  <dnovillo@google.com>
15352
15353         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
15354
15355         PR 33738
15356         * tree-vrp.c (vrp_evaluate_conditional): With
15357         -Wtype-limits, emit a warning when comparing against a
15358         constant outside the natural range of OP0's type.
15359
15360 2008-02-04  Richard Guenther  <rguenther@suse.de>
15361
15362         PR middle-end/33631
15363         * expr.c (count_type_elements): Give for unions instead of
15364         guessing.
15365
15366 2008-02-04  Richard Guenther  <rguenther@suse.de>
15367
15368         PR middle-end/35043
15369         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
15370         to TYPE_DOMAINs base type instead of using bitsizetype here.
15371
15372 2008-02-03  Jason Merrill  <jason@redhat.com>
15373
15374         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
15375
15376 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15377
15378         PR other/29972
15379         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
15380         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
15381         (RS/6000 and PowerPC Options): Fix typos and markup.
15382         * doc/passes.texi (Tree-SSA passes): Likewise.
15383
15384 2008-02-02  Michael Matz  <matz@suse.de>
15385
15386         PR target/35045
15387         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
15388         from record_last_reg_set_info.
15389         (record_last_reg_set_info): Take an RTX argument, iterate over all
15390         constituent hardregs.
15391         (record_last_set_info, record_opr_changes): Change calls to
15392         new signature or to record_last_reg_set_info_regno.
15393
15394 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
15395
15396         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
15397
15398 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
15399
15400         PR rtl-optimization/34773
15401         * reg-notes.def (EQUAL): Mention significance of combination of
15402         REG_EQUAL and REG_RETVAL.
15403         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
15404         insn that has a REG_RETVAL.
15405
15406 2008-02-01  Roger Sayle  <roger@eyesopen.com>
15407
15408         PR bootstrap/33781
15409         * configure.ac (--enable-fixed-point): Disable unless explicitly
15410         requested on IRIX.
15411         * configure: Regenerate.
15412
15413 2008-02-01  Richard Guenther  <rguenther@suse.de>
15414
15415         PR other/35042
15416         * invoke.texi (-finline-limit): Remove no longer true parts
15417         of the documentation.  Note that there is no default value.
15418
15419 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
15420             Mark Mitchell  <mark@codesourcery.com>
15421             Ben Elliston  <bje@au.ibm.com>
15422
15423         PR c/29326
15424         * doc/extend.texi (Other Builtins): Document.
15425
15426 2008-01-31  Tom Browder <tom.browder@gmail.com>
15427
15428         * doc/c-tree.texi (Types): Fix grammar.
15429         (Expression trees): Ditto.
15430         * doc/passes.texi (Tree-SSA passes): Ditto.
15431
15432         * doc/configterms.texi (Configure Terms): Fix typo.
15433         * doc/cpp.texi (Common Predefined Macros): Ditto.
15434         * doc/md.texi (Machine Constraints): Ditto.
15435
15436         * doc/makefile.texi (Makefile): Add comma.
15437
15438 2008-01-31  Tom Browder  <tom.browder@gmail.com>
15439             Gerald Pfeifer  <gerald@pfeifer.com>
15440
15441         * doc/sourcebuild.texi (Front End): Remove references to CVS
15442         and CVSROOT/modules.
15443         (Texinfo Manuals): Replace reference to CVS by one to SVN.
15444         (Back End): Remove reference to CVS.
15445
15446 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15447
15448         PR target/34900
15449         * config/mips/mips.c (gen_load_const_gp): New function, taking a
15450         comment from...
15451         (mips16_gp_pseudo_reg): ...here.
15452         * config/mips/mips.md (load_const_gp): Replace with...
15453         (load_const_gp_<mode>): ...this :P-based insn.
15454
15455 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15456
15457         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
15458         options. Minor fixes.
15459         (-std): Move reference to standards closer to where language
15460         standards are first mentioned.
15461
15462 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15463
15464         PR rtl-optimization/34995
15465         * reload.c (alternative_allows_const_pool_ref): Take an rtx
15466         parameter and return a bool.  If the rtx parameter is nonnull,
15467         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
15468         (find_reloads): Update call accordingly.  Pass the new operand
15469         if it needed no address reloads, otherwise pass null.
15470
15471 2008-01-30  Richard Henderson  <rth@redhat.com>
15472
15473         PR c/34993
15474         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
15475         for unbounded arrays.
15476
15477 2008-01-30  Silvius Rus  <rus@google.com>
15478
15479         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
15480
15481 2008-01-30  Jan Hubicka  <jh@suse.cz>
15482
15483         PR target/34982
15484         * i386.c (init_cumulative_args): Use real function declaration when
15485         calling locally.
15486
15487 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
15488
15489         PR rtl-optimization/34998
15490         * global.c (build_insn_chain): Treat non-subreg_lowpart
15491         SUBREGs of pseudos as clobbering all the words covered by the
15492         SUBREG, not just all the bytes.
15493         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
15494         original df_ref rather than an extract parameter.
15495         (global_conflicts): Update call accordingly.
15496
15497 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
15498
15499         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
15500         the overflow check to make it easier to read.
15501         (__fixtfdi): Change the type of the ll member in union
15502         long_double to UDItype_x.
15503
15504 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
15505
15506         PR middle-end/34969
15507         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
15508         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
15509         * tree-inline.c (fold_marked_statements): Call
15510         cgraph_update_edges_for_call_stmt if folding a call statement.
15511         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
15512         debug_generic_stmt calls, reset it back afterwards.
15513
15514         PR c/35017
15515         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
15516         static decls.
15517         * c-typeck.c (build_external_ref): Don't pedwarn about
15518         static vars in current function's scope.
15519
15520 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
15521
15522         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
15523
15524 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
15525
15526         PR c/35002
15527         * ipa-struct-reorg.c: Fix spelling.
15528         * params.def: Ditto.
15529
15530 2008-01-29  Richard Guenther  <rguenther@suse.de>
15531
15532         PR middle-end/35006
15533         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
15534         field.
15535         * tree-inline.c (remap_type): Increment remapping_type_depth
15536         around remapping types.
15537         (copy_body_r): Only add referenced variables if they are referenced
15538         from code, not types.
15539
15540 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
15541
15542         PR c++/34055
15543         PR c++/34103
15544         PR c++/34219
15545         PR c++/34606
15546         PR c++/34753
15547         PR c++/34754
15548         PR c++/34755
15549         PR c++/34919
15550         PR c++/34961
15551         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
15552         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
15553
15554 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
15555
15556         PR target/34412
15557         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
15558         pointer for tiny stack.
15559
15560 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15561
15562         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
15563
15564 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15565
15566         * config/vx-common.h: Fix typo in comment.
15567
15568 2008-01-28  Ian Lance Taylor  <iant@google.com>
15569
15570         PR c++/34862
15571         PR c++/33407
15572         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15573         coalesce pointers if they have different DECL_NO_TBAA_P values.
15574         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
15575         between variables with different DECL_NO_TBAA_P values.
15576
15577 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
15578
15579         PR 31535
15580         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
15581         are not legitimate small data references on SPE targets.
15582
15583 2008-01-28  David Daney  <ddaney@avtrex.com>
15584
15585         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
15586
15587 2008-01-28  David Daney  <ddaney@avtrex.com>
15588
15589         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
15590
15591 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
15592
15593         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
15594         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
15595         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
15596         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
15597         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15598         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
15599         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
15600         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
15601
15602 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15603
15604         * basic-block.h (condjump_equiv_p): Fix comment.
15605
15606 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15607
15608         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15609         print_generic_stmt_indented): Fix comment.
15610
15611 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15612
15613         * configure.ac (__stack_chk_fail): Add detecion for availability
15614         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15615         * configure: Regenerate.
15616
15617 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
15618
15619         PR middle-end/34688
15620         * final.c (output_addr_const): Handle TRUNCATE.
15621
15622 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
15623
15624         PR target/34711
15625         * tree-ssa-loop-ivopts.c (comp_cost): New type.
15626         (zero_cost, infinite_cost): New constants.
15627         (struct cost_pair): Change type of cost to comp_cost.
15628         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15629         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15630         New functions.
15631         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
15632         split_address_cost, ptr_difference_cost, difference_cost,
15633         get_computation_cost_at, get_computation_cost,
15634         determine_use_iv_cost_generic, determine_use_iv_cost_address,
15635         determine_use_iv_cost_condition, determine_use_iv_costs,
15636         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
15637         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
15638         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
15639         Change type of cost to comp_cost.
15640         (determine_iv_cost): Increase cost of non-original ivs, instead
15641         of decreasing the cost of original ones.
15642         (get_address_cost): Indicate the complexity of the addressing mode
15643         in comp_cost.
15644         (try_add_cand_for): Prefer using ivs not specific to some object.
15645         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
15646
15647 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
15648             Janis Johnson  <janis187@us.ibm.com>
15649
15650         PR target/34814
15651         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
15652         (TARGET_INSTANTIATE_DECLS): Likewise.
15653         * target.h (expand_to_rtl_hook): New target hook.
15654         (instantiate_decls): Likewise.
15655         * function.c (instantiate_decl): Make non-static.  Rename to...
15656         (instantiate_decl_rtl): ... this.
15657         (instantiate_expr): Use instantiate_decl_rtl.
15658         (instantiate_decls_1): Likewise.
15659         (instantiate_decls): Likewise.
15660         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
15661         * function.h (instantiate_decl_rtl): Add prototype.
15662         * cfgexpand.c (target.h): New include.
15663         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
15664         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
15665         (TARGET_INSTANTIATE_DECLS): Likewise.
15666         (TARGET_INITIALIZER): New target hooks added.
15667         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
15668         New prototype.
15669         * config/rs6000/rs6000.c (tree-flow.h): New include.
15670         (machine_function): Add sdmode_stack_slot field.
15671         (rs6000_alloc_sdmode_stack_slot): New function.
15672         (rs6000_instantiate_decls): Likewise.
15673         (rs6000_secondary_memory_needed_rtx): Likewise.
15674         (rs6000_check_sdmode): Likewise.
15675         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
15676         (TARGET_INSTANTIATE_DECLS): Likewise.
15677         (rs6000_hard_regno_mode_ok): Allow SDmode.
15678         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
15679         (rs6000_emit_move): Handle SDmode.
15680         (function_arg_advance): Likewise.
15681         (function_arg): Likewise.
15682         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
15683         SDmode var args for 32-bit compiles.
15684         (rs6000_secondary_reload_class): Handle SDmode.
15685         (rs6000_output_function_epilogue): Likewise.
15686         (rs6000_function_value): Simplify if statement.
15687         (rs6000_libcall_value): Likewise.
15688         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
15689         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
15690         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
15691         (movsd_hardfloat): New define_insn.
15692         (movsd_softfloat): Likewise.
15693         (movsd_store): Likewise.
15694         (movsd_load): Likewise.
15695         (extendsddd2): Likewise.
15696         (extendsdtd2): Likewise.
15697         (truncddsd2): Likewise.
15698         (movdd_hardfloat64): Fixup comment.
15699         (UNSPEC_MOVSD_LOAD): New constant.
15700         (UNSPEC_MOVSD_STORE): Likewise.
15701
15702 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
15703
15704         PR c++/34965
15705         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
15706         TRUTH_XOR_EXPR.
15707         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
15708         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
15709         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
15710         and TRUTH_XOR_EXPR.
15711
15712 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
15713
15714         PR target/34794
15715         * config.gcc: Separate AIX 5.3 from AIX 6.1.
15716         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15717         __LONGDOUBLE128 too.
15718         * config/rs6000/aix61.h: New file.
15719
15720 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15721
15722         PR rtl-optimization/34959
15723         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
15724         popcount and parity rtxes the same mode as their operand.
15725         Truncate or extend the result to the return value's mode
15726         if necessary.
15727
15728 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15729
15730         PR target/34981
15731         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
15732         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
15733         to GOT_VERSION_REGNUM.
15734         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
15735         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
15736         * config/mips/mips.c (mips_emit_call_insn): New function.
15737         (mips_call_tls_get_addr): Call mips_expand_call directly.
15738         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
15739         emit_call_insn.
15740         (mips16_build_call_stub): Likewise.  Return the call insn or null.
15741         (mips_expand_call): Update the call to mips16_build_call_stub
15742         accordingly and a remove redundant condition.  Assert that MIPS16
15743         stubs do not use lazy binding.  Use mips_emit_call_insn and return
15744         the call insn.
15745         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
15746         TARGET_USE_GOT.
15747         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
15748         (mips_avoid_hazard): Remove hazard_set handling.
15749         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
15750         (UNSPEC_RESTORE_GP): ...this.
15751         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
15752         (FAKE_CALL_REGNO): Rename to...
15753         (GOT_VERSION_REGNUM): ...this.
15754         (type): Add "ghost" value.  Add an associated insn reservation.
15755         (hazard_set): Remove.
15756         (exception_receiver): Rename to...
15757         (restore_gp): ...this and update the unspec identifier accordingly.
15758         (exception_receiver, nonlocal_got_receiver): New expanders.
15759         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
15760         FAKE_CALL_REGNO.  Remove hazard_set attribute.
15761         (set_got_version, update_got_version): New patterns.
15762
15763 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
15764
15765         PR target/34970
15766         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
15767
15768 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15769
15770         PR other/31955
15771         * doc/install.texi2html: Generate gcc-vers.texi.
15772
15773 2008-01-25  DJ Delorie  <dj@redhat.com>
15774
15775         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15776
15777 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15778
15779         * config/c4x: Remove directory.
15780         * config.gcc (crx-*, mt-*): Mark obsolete.
15781         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
15782         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
15783         sh-*-rtemscoff*): Remove cases.
15784         * defaults.h (C4X_FLOAT_FORMAT): Remove.
15785         * real.c (encode_c4x_single, decode_c4x_single,
15786         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
15787         c4x_extended_format): Remove.
15788         * real.h (c4x_single_format, c4x_extended_format): Remove.
15789         * doc/extend.texi (interrupt, naked): Remove mention of attributes
15790         on C4x.
15791         (Pragmas): Remove comment about c4x pragmas.
15792         * doc/install.texi (c4x): Remove target-specific instructions.
15793         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
15794         * doc/md.texi (Machine Constraints): Remove C4x documentation.
15795         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
15796         refer to C4x source files as examples.
15797         (C4X_FLOAT_FORMAT): Remove documentation.
15798
15799 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
15800
15801         * config/bfin/bfin.c (override_options): Reorder tests so that
15802         flag_pic gets enabled for -msep-data.
15803
15804 2008-01-25  Richard Guenther  <rguenther@suse.de>
15805
15806         PR middle-end/32244
15807         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
15808         to its bitfield precision if required.
15809
15810 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15811
15812         PR middle-end/33880
15813         * tree-nested.c (walk_omp_for): New function.
15814         (convert_nonlocal_reference, convert_local_reference): Call
15815         walk_omp_for on OMP_FOR.
15816         (convert_call_expr): Call walk_body on OMP_FOR's
15817         OMP_FOR_PRE_INIT_BODY.
15818
15819 2008-01-25  Richard Guenther  <rguenther@suse.de>
15820
15821         PR tree-optimization/34966
15822         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
15823         default defs and PHI_NODEs we have to insert after the
15824         defining statement.
15825
15826 2008-01-24  Nick Clifton  <nickc@redhat.com>
15827
15828         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
15829         Provide a default definition.
15830         (LIBGCC2_UNITS_PER_WORD): Likewise.
15831
15832         * config/stormy16/stormy16.c: Include df.h for the prototype
15833         for df_regs_ever_live_p.
15834         (xstormy16_expand_builtin_va_start): Convert the stack offset
15835         into a component_ref and then use POINTER_PLUS_EXPR to add it
15836         to the incoming_virtual_args_rtx.
15837         (xstormy16_gimplify_va_arg_expr): Rename to
15838         xstormy16_gimplify_va_arg_expr.
15839         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
15840         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
15841         xstormy16_gimplify_va_arg_expr.
15842         Fix up some formatting issues.
15843
15844         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
15845         Move to predicates.md.
15846         (xs_hi_general_operand): Likewise.
15847         (xs_hi_nonmemory_operand): Likewise.
15848         * config/stormy16/predicates.md:
15849         (xstormy16_carry_plus_operand): New predicate.
15850         (xs_hi_general_operand): New predicate.
15851         (xs_hi_nonmemory_operand): New predicate.
15852         * config/stormy16/stormy16-protos.h:
15853         (xstormy16_carry_plus_operand): Delete prototype.
15854         (xs_hi_general_operand): Likewise.
15855         (xs_hi_nonmemory_operand): Likewise.
15856
15857         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
15858         modifiers as they are no longer needed and they can trigger
15859         reload spill failures.
15860
15861         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
15862         with a match_operand in order to help reload.
15863
15864         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
15865         constraint with 'e' for the 8th alternative as this version of
15866         the mov.w instruction only accepts the lower 8 registers.
15867
15868 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
15869
15870         PR target/34856
15871         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
15872         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
15873         vector elements.
15874
15875 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15876
15877         PR middle-end/33333
15878         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
15879
15880 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15881
15882         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
15883         New functions.
15884         (remove_structure): Update allocations list before removing structure.
15885
15886 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15887
15888         * ipa-struct-reorg.c (is_safe_cond_expr,
15889         create_new_stmts_for_cond_expr): Use integer_zerop function,
15890         that recognize not only zero-pointer, but zero-integer too.
15891
15892 2008-01-25  Ben Elliston  <bje@au.ibm.com>
15893
15894         PR other/22232
15895         * fixproto: Escape "." in sed expression that strips leading "./".
15896
15897 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
15898
15899         PR driver/34904
15900         * gcc.c (SWITCH_OK): Removed.
15901         (SWITCH_LIVE): Changed to bit.
15902         (SWITCH_FALSE): Likewise.
15903         (SWITCH_IGNORE): Likewise.
15904         (switchstr): Change live_cond to unsigned int.
15905         (process_command): Replace SWITCH_OK with 0.
15906         (do_self_spec): Likewise.
15907         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
15908         (give_switch): Likewise.
15909         (used_arg): Likewise.
15910         (do_spec_1): Set the SWITCH_IGNORE bit.
15911         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
15912         bits.  Set the SWITCH_LIVE bit.
15913
15914 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
15915
15916         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
15917
15918 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
15919
15920         PR tree-optimization/34472
15921         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
15922         parameter to a "bool *" and set *DATA to false if there is
15923         an unsafe access.  Do not delete the structure here.
15924         (check_cond_exprs): Delete it here instead.
15925         (check_cond_exprs, exclude_cold_structs): Do not increase
15926         I when removing a structure.
15927
15928 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
15929
15930         PR target/34856
15931         * config/i386/i386.c (ix86_expand_vector_init): Consider only
15932         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
15933
15934 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
15935
15936         PR middle-end/34934
15937         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
15938         a fixed vector for stack.
15939
15940 2008-01-24  Ben Elliston  <bje@au.ibm.com>
15941
15942         PR c++/25701
15943         * doc/gcc.texi (Software development): Add a direntry for g++.
15944
15945 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
15946
15947         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
15948         stale and straggling -fforce-addr comments above.
15949
15950         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
15951         define.
15952         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
15953         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
15954
15955 2008-01-23  Michael Matz  <matz@suse.de>
15956
15957         PR debug/34895
15958         * dwarf2out.c (force_type_die): Use modified_type_die instead of
15959         gen_type_die.
15960
15961 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
15962
15963         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
15964         malloc result type.
15965
15966 2008-01-23 Anatoly Sokolov <aesok@post.ru>
15967
15968         * config/avr/avr.c (avr_current_arch): New variable.
15969         (avr_arch_types): Add 'avr31' and 'avr51' entries.
15970         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
15971         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
15972         (avr_override_options): Init 'avr_current_arch'.
15973         (base_arch_s): Move from here...
15974         * config/avr/avr.h (base_arch_s): ... here. Add new members
15975         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
15976         'mega' to 'have_jmp_call'.
15977         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
15978         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
15979         macros.
15980         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
15981         architectures.
15982         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15983         MULTILIB_MATCHES): (Ditto.).
15984
15985 2008-01-23  Richard Guenther  <rguenther@suse.de>
15986
15987         PR middle-end/31529
15988         * cgraphunit.c (cgraph_reset_node): Always mark the node
15989         not reachable if it is not queued already.
15990
15991 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
15992
15993         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
15994         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
15995         (cputype_selected): New static variable.
15996         (bfin_handle_option): Set it if -mcpu is used.
15997         (override_option): Select default set of workarounds if no cpu type
15998         selected on the command line.
15999         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
16000
16001         From  Michael Frysinger  <michael.frysinger@analog.com>
16002         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
16003         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
16004
16005         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
16006         for bf547, bf523, bf524, and bf526.
16007         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
16008         bf526.
16009         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16010         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
16011         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
16012         __ADSPBF547__ and __ADSPBF54x__ for bf547.
16013         * doc/invoke.texi (Blackfin Options): Document that
16014         -mcpu now accept bf547, bf523, bf524, and bf526.
16015
16016 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
16017
16018         PR rtl-optimization/34628
16019         * combine.c (try_combine): Stop and undo after the first combination
16020         if an autoincrement side-effect on the first insn has effectively
16021         been lost.
16022
16023 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
16024
16025         PR target/34529
16026         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
16027         Offset addresses are not valid for Altivec or paired float modes.
16028
16029 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
16030
16031         PR c++/34607
16032         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
16033         if DECL_INITIAL (decl) is error_mark_node.
16034
16035         PR c++/34914
16036         * c-common.c (handle_vector_size_attribute): Only allow
16037         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
16038         the same way as pointer, array etc. types.
16039         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
16040
16041         PR c++/34917
16042         * tree.c (build_type_attribute_qual_variant): Call
16043         build_qualified_type if attributes are equal, but quals are not.
16044
16045 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16046
16047         PR 32102
16048         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
16049         * flags.h (warn_strict_aliasing): Remove.
16050         (warn_strict_overflow): Remove.
16051         * opts.c (warn_strict_aliasing): Remove.
16052         (warn_strict_overflow): Remove.
16053         * c-opts.c (c_common_handle_option): -Wall only sets
16054         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
16055         (c_common_post_options): Give default values to -Wstrict-aliasing
16056         and -Wstrict-overflow if they are uninitialized.
16057         * common.opt (Wstrict-aliasing): Specify Var and Init.
16058         (Wstrict-overflow): Likewise.
16059
16060 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
16061
16062         PR rtl-optimization/26854
16063         PR rtl-optimization/34400
16064         PR rtl-optimization/34884
16065         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
16066         DF_RD->gen.
16067         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
16068         (df_rd_bb_info.expanded_lr_out): Deleted
16069         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
16070         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
16071         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16072         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16073         Removed code to allocate, initialize or free expanded_lr_out.
16074         (df_rd_bb_local_compute_process_def): Restructured to make more
16075         understandable.
16076         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
16077         sets if the sets are being trimmed.
16078
16079 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
16080
16081         PR bootstrap/32287
16082         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
16083         (as_vers): Likewise.
16084         * configure: Regenerated.
16085
16086 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16087
16088         PR middle-end/33092
16089         * tree-pass.h (pass_build_alias): New pass.
16090         * tree-ssa-alias.c (gate_build_alias): New.
16091         (pass_build_alias): New.
16092         * passes.c (init_optimization_passes): Add pass_build_alias after
16093         pass_create_structure_vars.
16094
16095 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
16096
16097         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
16098         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
16099         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
16100         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
16101         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
16102         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
16103         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
16104         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
16105         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
16106         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
16107         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
16108         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
16109         * config/s390/s390.md (FP_ALL): New mode iterator.
16110         (_d): New mode attribute.
16111         ("*signbit<mode>2>"): Changed mode of first operand.
16112         ("isinf<mode>2"): Changed mode of first operand.
16113         ("*TDC_insn"): Adaptation for DFP modes.
16114
16115 2008-01-22  Ben Elliston  <bje@au.ibm.com>
16116
16117         * tree.c (check_qualified_type): Improve function description.
16118
16119 2008-01-21  Jason Merrill  <jason@redhat.com>
16120
16121         PR c++/34196
16122         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
16123         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
16124         if it is set.
16125
16126 2008-01-21  DJ Delorie  <dj@redhat.com>
16127
16128         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
16129         return zero.
16130
16131 2008-01-21  Richard Guenther  <rguenther@suse.de>
16132
16133         PR middle-end/34856
16134         * tree-cfg.c (verify_expr): Allow all invariant expressions
16135         instead of just constant class ones as reference argument.
16136         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
16137         like any other constant.
16138         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16139
16140 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
16141
16142         * regmove.c (fixup_match_1): Update call crossed frequencies.
16143
16144 2008-01-21  Richard Guenther  <rguenther@suse.de>
16145
16146         PR c/34885
16147         * tree-inline.c (setup_one_parameter): Deal with mismatched
16148         types using a VIEW_CONVERT_EXPR.
16149
16150 2008-01-21  Alon Dayan  <alond@il.ibm.com>
16151             Olga Golovanevsky  <olga@il.ibm.com>
16152
16153         PR tree-optimization/34701
16154         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
16155         when the structure size is not a power of 2.
16156
16157 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
16158
16159         * doc/install.texi: Add doc for --enable-checking=df.
16160
16161 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
16162
16163         PR rtl-optimization/34808
16164         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
16165
16166 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
16167
16168         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
16169         input.
16170
16171 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
16172
16173         PR rtl-optimization/26854
16174         PR rtl-optimization/34400
16175         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
16176         DF_RD->gen.
16177         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
16178         (df_rd_bb_info.expanded_lr_out): New.
16179         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
16180         * loop_iv.c (iv_analysis_loop_init): Ditto.
16181         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16182         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16183         Added code to allocate, initialize or free expanded_lr_out.
16184         (df_rd_bb_local_compute_process_def): Restructured to make
16185         more understandable.
16186         (df_rd_confluence_n): Add code to do nothing with fake edges and
16187         code to no apply invalidate_by_call sets if the sets are being trimmed.
16188         (df_lr_local_finalize): Renamed to df_lr_finalize.
16189         (df_live_local_finalize): Renamed to df_live_finalize.
16190
16191 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
16192
16193         PR target/34831
16194         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
16195         deciding whether to use reciprocal instructions.
16196
16197 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
16198
16199         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
16200         dwarf2out_note_section_used if cold_text_section is NULL.
16201
16202 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
16203
16204         PR gcov-profile/34610
16205         * tree-cfg.c (make_edges): Mark both outgoing edges from
16206         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
16207         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
16208         from OMP_FOR and OMP_CONTINUE outgoing edges.
16209
16210         * tree-profile.c (tree_profiling): Return early if
16211         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
16212         at the end.
16213         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
16214         from cfun to child_cfun.
16215         * function.h (struct function): Add after_tree_profile bit.
16216
16217 2008-01-19 Anatoly Sokolov <aesok@post.ru>
16218
16219         * config/avr/avr.S (_exit): Disable interrupt.
16220
16221 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
16222             Steven Bosscher  <stevenb.gcc@gmail.com>
16223
16224         PR rtl-optimization/26854
16225         PR rtl-optimization/34400
16226         * df-problems.c (df_live_scratch): New scratch bitmap.
16227         (df_live_alloc): Allocate df_live_scratch when doing df_live.
16228         (df_live_reset): Clear the proper bitmaps.
16229         (df_live_bb_local_compute): Only process the artificial defs once
16230         since the order is not important.
16231         (df_live_init): Init the df_live sets only with the variables
16232         found live by df_lr.
16233         (df_live_transfer_function): Use the df_lr sets to prune the
16234         df_live sets as they are being computed.
16235         (df_live_free): Free df_live_scratch.
16236
16237 2008-01-18  Ian Lance Taylor  <iant@google.com>
16238
16239         * common.opt: Add fmerge-debug-strings.
16240         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
16241         flag_merge_debug_strings rather than flag_merge_constants.
16242         * doc/invoke.texi (Option Summary): Mention
16243         -fmerge-debug-strings.
16244         (Debugging Options): Document -fmerge-debug-strings.
16245
16246 2008-01-18  Ian Lance Taylor  <iant@google.com>
16247
16248         PR c++/33407
16249         * tree.h (DECL_IS_OPERATOR_NEW): Define.
16250         (struct tree_function_decl): Add new field operator_new_flag.
16251         * tree-inline.c (expand_call_inline): When inlining a call to
16252         operator new, force the return value to go into a variable, and
16253         set DECL_NO_TBAA_P on that variable.
16254         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
16255
16256 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
16257
16258         PR debug/34484
16259         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
16260         DWARF2_DEBUGGING_INFO.
16261         (dwarf2out_note_section_used): Ditto.  Add prototype.
16262         (have_multiple_function_sections, text_section_used,
16263         cold_text_section_used, *cold_text_sections): Move declarations
16264         before their uses.
16265
16266 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
16267
16268         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
16269         field and add signal_ra.
16270         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
16271         assignments to frame state pc.  Move end of stack check after
16272         MD_FALLBACK_FRAME_STATE_FOR.
16273         (uw_update_context_1): Use frame state signal_regs if set, instead
16274         of checking signal_frame flag.
16275         (uw_update_context): Use frame state signal_ra if set.
16276         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
16277         * config/xtensa/linux-unwind.h: New file.
16278
16279 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
16280
16281         * modulo-sched.c (get_sched_window): Fix comment typo.
16282
16283 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
16284
16285         PR tree-optimization/34648
16286         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
16287
16288 2008-01-17  Anatoly Sokolov <aesok@post.ru>
16289
16290         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
16291         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
16292
16293 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
16294
16295         PR rtl-optimization/34400
16296         * df-core.c (df_worklist_dataflow_overeager,
16297         df_worklist_dataflow_doublequeue): New functions.
16298         (df_worklist_dataflow): Two different worklist solvers.
16299         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
16300         New param.
16301
16302 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16303
16304         PR testsuite/34821
16305         * doc/invoke.texi: Document the dependence on pthread for fopenmp
16306         and ftree-parallelize-loops.
16307
16308 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
16309
16310         PR rtl-optimization/34826
16311         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
16312
16313 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
16314
16315         * global.c (find_reg): Mark the eh regs as used if necessary.
16316         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
16317         * ra.h (struct allocno): no_eh_reg field added.  Changed
16318         no_stack_reg type to bitfield.
16319
16320 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
16321
16322         * tree.c (substitute_in_expr): Add missing 'break'.
16323
16324 2008-01-17  Richard Guenther  <rguenther@suse.de>
16325
16326         PR tree-optimization/34825
16327         * tree-ssa-math-opts.c (is_division_by): Do not recognize
16328         x / x as division to handle.
16329
16330 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16331
16332         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
16333         "-pthread" is specified.
16334         * pa-hpux11.h (LIB_SPEC): Likewise.
16335
16336 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
16337             Peter Bergner  <bergner@vnet.ibm.com>
16338
16339         PR rtl-optimization/33796
16340         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
16341
16342 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16343
16344         PR libgfortran/34699
16345         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
16346         static links.
16347         * pa-hpux10.h (LINK_SPEC): Likewise.
16348         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
16349
16350 2008-01-16  Richard Guenther  <rguenther@suse.de>
16351
16352         PR middle-end/32628
16353         * fold-const.c (fold_convert_const_int_from_int): Do not
16354         set overflow if that occured only because of a sign extension
16355         change when converting from/to a sizetype with the same
16356         precision and signedness.
16357
16358 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16359
16360         PR debug/34249
16361         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
16362         location address to the correct place.  Update copyright year.
16363
16364 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16365
16366         * lambda-code.c (lambda_transform_legal_p): Handle the case of
16367         no dependences in the dependence_relations vector.
16368
16369 2008-01-16  Jan Hubicka  <jh@suse.cz>
16370
16371         PR rtl-optimization/31396
16372         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
16373         * cfg.c (dump_reg_info): Print it.
16374         * regs.h (struct reg_info_t): add freq_calls_crossed.
16375         (REG_FREQ_CALLS_CROSSED): New macro.
16376         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
16377         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
16378         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
16379         regmove_optimize): Update call crossed frequencies.
16380         * local-alloc.c (struct qty): Add freq_calls_crossed.
16381         (alloc_qty): Copute freq_calls_crossed.
16382         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
16383         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
16384         * ra.h (struct allocno): Add freq_calls_crossed.
16385
16386 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16387
16388         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
16389         libgomp when compiling with ftree-parallelize-loops.
16390         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
16391
16392 2008-01-16  Richard Guenther  <rguenther@suse.de>
16393
16394         PR tree-optimization/34769
16395         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
16396         * tree.c (int_cst_value): Instead make this function more
16397         permissive in what it accepts as valid input.  Document this
16398         function always sign-extends the value.
16399
16400 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
16401             Richard Guenther  <rguenther@suse.de>
16402
16403         PR c/34668
16404         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
16405         (gimple_fold_indirect_ref_rhs): ... this.
16406         (gimple_fold_indirect_ref): New function with foldings
16407         that preserve lvalueness.
16408         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
16409         * tree-flow.h (gimple_fold_indirect_ref): Declare.
16410         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
16411         to fold an INDIRECT_REF, fall back to the old use of
16412         fold_indirect_ref_1.
16413
16414 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16415
16416         * tree-data-ref.c (subscript_dependence_tester_1): Call
16417         free_conflict_function.
16418         (compute_self_dependence): Same.
16419
16420 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16421
16422         PR debug/34249
16423         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
16424         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
16425         function global.
16426         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
16427         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
16428         for DWARF2_UNWIND_INFO targets.
16429
16430 2008-01-16  Richard Guenther  <rguenther@suse.de>
16431
16432         PR c/34768
16433         * c-typeck.c (common_pointer_type): Do not merge inconsistent
16434         type qualifiers for function types.
16435
16436 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
16437
16438         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
16439         loop_iterator li from previous commit.
16440
16441 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
16442
16443         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
16444
16445 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16446
16447         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
16448         (parallelize_loops): Don't parallelize irreducible components.
16449
16450 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16451
16452         PR c++/24924
16453         * c-opts (c_common_post_options): Do not enable CPP
16454         flag_pedantic_errors by default.
16455
16456 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
16457
16458         PR rtl-optimization/31944
16459         * cse.c (remove_pseudo_from_table): New function.
16460         (merge_equiv_classes): Use above function to remove pseudo-registers.
16461         (invalidate): Likewise.
16462
16463 2008-01-13  Richard Guenther  <rguenther@suse.de>
16464
16465         PR middle-end/34601
16466         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
16467         instead of TYPE_MODE to deal with calls from expand_one_error_var.
16468
16469 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
16470
16471         * gcse.c (cprop_jump): Call validate_unshare_change instead of
16472         validate_change to unshare the source of the PC set.
16473
16474 2008-01-12  Jan Hubicka  <jh@suse.cz>
16475
16476         PR middle-end/32135
16477         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
16478         references above array bounds.  This might trigger bounds checks for
16479         pointers to arrays.
16480
16481 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16482
16483         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
16484         new_replaceable_dependencies.
16485
16486 2008-01-12  Doug Kwan  <dougkwan@google.com>
16487
16488         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
16489         instead of OPT_Wreturn_type in warning due to ignored return type
16490         qualifiers.
16491         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
16492         options included in -Wextra.
16493         * c.opt: New option -Wignored_qualifiers.
16494         * doc/invoke.texi (Warning Options, -Wextra): Add new option
16495         -Wignore_qualifiers.
16496         (-Wignored-qualifiers): Document.
16497         (-Wreturn-type): Remove description of functionality now handled
16498         by -Wignored-qualifiers.
16499
16500 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
16501
16502         PR ada/33788
16503         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
16504         NOP_EXPR if it is between integral types with the same precision.
16505
16506 2008-01-12  Jan Hubicka  <jh@suse.cz>
16507
16508         PR other/28023
16509         * invoke.texi (max-inline-recursive-depth): Fix default value.
16510
16511 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
16512
16513         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
16514         correct type.
16515
16516 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
16517
16518         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
16519
16520 2008-01-11  James E. Wilson  <wilson@specifix.com>
16521
16522         PR target/26015
16523         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
16524
16525 2008-01-11  Anatoly Sokolov <aesok@post.ru>
16526
16527         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
16528         save/restore frame pointer register and don't use 'call-prologues'
16529         optimization in function with "OS_task" attribute.
16530
16531 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
16532
16533         PR middle-end/31309
16534         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
16535         when copying to memory.
16536
16537 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
16538
16539         PR rtl-optimization/30905
16540         * cfgcleanup.c: Include dce.h
16541         (crossjumps_occured): New global variable.
16542         (try_crossjump_bb): Exit loop after finding a fallthru edge.
16543         If something changed, set crossjumps_occured to true.
16544         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
16545         Don't add/remove fake edges to exit here...
16546         (cleanup_cfg): ...but do it here, when crossjumping.
16547         Run a fast DCE when successful crossjumps occured in the latest
16548         iteration of try_optimize_cfg.
16549
16550 2008-01-11  Richard Guenther  <rguenther@suse.de>
16551
16552         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
16553         (struct vn_unary_op_s): Likewise.
16554         (vn_reference_insert): Free old reference on hash collision.
16555
16556 2008-01-10  Raksit Ashok  <raksit@google.com>
16557
16558         PR rtl-optimization/27971
16559         * combine.c (find_split_point): Split PLUS expressions which are
16560         inside a MEM rtx, and whose first operand is complex.
16561
16562 2008-01-10  DJ Delorie  <dj@redhat.com>
16563
16564         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
16565         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
16566         (m32c_hard_regno_ok): Call the underlying function.
16567
16568 2008-01-10  Richard Guenther  <rguenther@suse.de>
16569
16570         PR middle-end/34683
16571         * tree-cfg.c (tree_merge_blocks): Do not go through the
16572         full-blown folding and stmt updating path if we just deal
16573         with virtual operands.
16574         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
16575         test for abnormal SSA_NAMEs.
16576
16577 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
16578
16579         PR middle-end/34641
16580         * reload.c (push_reload): Add assertions.  All constants from
16581         reg_equiv_constant should have been used for replacing the respective
16582         pseudo earlier.
16583         (find_reloads_address): Invoke find_reloads_address_part for
16584         constant taken from the reg_equiv_constant array.
16585
16586 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
16587
16588         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
16589         field (valnum) the first in the struct.  Replace bools with
16590         unit bit fields.
16591
16592 2008-01-10  Richard Guenther  <rguenther@suse.de>
16593
16594         PR tree-optimization/34651
16595         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
16596         types and ordering for masking and converting.
16597
16598 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
16599
16600         PR tree-optimization/34017
16601         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
16602         also for PHI_NODE expressions.
16603
16604 2008-01-09  Jan Hubicka  <jh@suse.cz>
16605
16606         PR tree-optimization/34708
16607         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16608         based on number of case labels.
16609         (init_inline_once): Remove switch_cost.
16610         * tree-inline.h (eni_weights_d): Remove switch_cost.
16611
16612 2008-01-09  Richard Guenther  <rguenther@suse.de>
16613         Andrew Pinski  <andrew_pinski@playstation.sony.com>
16614
16615         PR middle-end/30132
16616         * gimplify.c (gimplify_cond_expr): Do not create an addressable
16617         temporary if an rvalue is ok or an lvalue is not required.
16618
16619 2008-01-09  Richard Guenther  <rguenther@suse.de>
16620
16621         PR middle-end/34458
16622         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16623         adjust return type.
16624
16625 2008-01-09  Richard Guenther  <rguenther@suse.de>
16626
16627         PR middle-end/34679
16628         * tree.c (host_integerp): Check for sizetype only if the
16629         type is an integer type.
16630
16631 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
16632
16633         PR debug/26364
16634         * opts.c (decode_options): Disable inlining of functions called
16635         once if not in unit-at-a-time mode.
16636
16637 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
16638
16639         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
16640
16641 2008-01-08  Richard Guenther  <rguenther@suse.de>
16642
16643         PR middle-end/31863
16644         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
16645         out early if the result will be unused.
16646
16647 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16648
16649         PR target/34709
16650         Revert:
16651
16652         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16653         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16654         for TARGET_RECIP.
16655
16656 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
16657
16658         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
16659         for vectorization tuned.
16660
16661 2008-01-08  Richard Guenther  <rguenther@suse.de>
16662
16663         PR tree-optimization/34683
16664         * tree-ssa-operands.c (operand_build_cmp): Export.
16665         * tree-ssa-operands.h (operand_build_cmp): Declare.
16666         * tree-vn.c (vuses_compare): Remove.
16667         (sort_vuses): Use operand_build_cmp.
16668         (sort_vuses_heap): Likewise.
16669         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
16670         to re-use old VEC if available.  Do not sort already sorted VUSEs.
16671         (vdefs_to_vec): Do not sort already sorted VDEFs.
16672
16673 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
16674
16675         PR middle-end/34694
16676         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
16677
16678 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16679
16680         PR target/34702
16681         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
16682         limitations of reciprocal sequences on x86 targets.
16683
16684 2008-01-08  Richard Guenther  <rguenther@suse.de>
16685
16686         PR tree-optimization/34683
16687         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
16688
16689 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
16690
16691         PR target/34622
16692         * config/darwin.c (darwin_mergeable_string_section): Don't use
16693         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
16694
16695 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
16696
16697         PR target/34682
16698         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
16699         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
16700         predicates of op0 and op1 to register_operand.
16701         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
16702         expander using X87MODEF mode iterator.  Change predicates of
16703         op0 and op1 to register_operand.
16704         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
16705         corresponding patterns and macroize using MODEF macro.  Change
16706         predicates of op0 and op1 to register_operand and remove
16707         "m" constraint. Disparage "r" alternative with "!".
16708         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
16709         macroize using X87MODEF macro.  Change predicates of op0 and op1
16710         to register_operand and remove "m" constraint.  Disparage "r"
16711         alternative with "!".
16712         (absneg splitter with memory operands): Remove.
16713         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
16714         patterns and macroize using X87MODEF mode iterator.
16715         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
16716         Change predicate of op1 to register_operand.
16717         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
16718         for memory operands.
16719
16720 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
16721
16722         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
16723
16724 2008-01-07  Richard Guenther  <rguenther@suse.de>
16725
16726         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
16727         fields.
16728
16729 2008-01-07  Richard Guenther  <rguenther@suse.de>
16730
16731         PR tree-optimization/34683
16732         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
16733         VOPs of the needed size to save memory.  Use VEC_quick_push
16734         to save compile-time.
16735         (vdefs_to_vec): Likewise.
16736
16737 2008-01-07  Sa Liu  <saliu@de.ibm.com>
16738
16739         * config/spu/spu.md (divdf3): Genetate inline code for double
16740         division.  The implementation doesn't handle INF or NAN, therefore it
16741         only applies when -ffinite-math-only is given.
16742
16743 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
16744
16745         PR libstdc++/34680
16746         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
16747         * doc/cpp.texi ([Common Predefined Macros]): Document.
16748
16749 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
16750
16751         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
16752         order to use commutative addition instead of subtraction.
16753
16754 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16755             Mircea Namolaru  <namolaru@il.ibm.com>
16756             Vladimir Yanovsky  <yanov@il.ibm.com>
16757             Revital Eres  <eres@il.ibm.com>
16758
16759         PR tree-optimization/34263
16760         * tree-outof-ssa.c (process_single_block_loop_latch,
16761         contains_tree_r): New functions.
16762         (analyze_edges_for_bb): Call process_single_block_loop_latch
16763         function to empty single-basic-block latch block if possible.
16764
16765 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16766
16767         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16768         for TARGET_RECIP.
16769         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
16770
16771 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16772
16773         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
16774
16775 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16776
16777         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
16778
16779 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
16780
16781         PR tree-optimization/34618
16782         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
16783         flag from T.
16784
16785 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16786
16787         PR target/34673
16788         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
16789         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
16790         Update copyright year.
16791
16792         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
16793         Update copyright year.
16794         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
16795         using NR fixup.
16796
16797 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
16798
16799         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
16800         edge does not point to current bb before changing need_assert.
16801
16802 2008-01-04  Richard Guenther  <rguenther@suse.de>
16803
16804         PR middle-end/34029
16805         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
16806         for verifying purposes if they are is_gimple_min_invariant.
16807
16808 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
16809
16810         PR tree-optimization/34448
16811         PR tree-optimization/34465
16812         * gimplify.c (gimplify_init_constructor): Add new parameter
16813         notify_temp_creation.  Use it.
16814         (gimplify_modify_expr_rhs): Take volatiles into account when
16815         optimizing constructors.
16816         Do not optimize constructors if gimplify_init_constructor will dump to
16817         memory.
16818         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
16819         * gcc.c-torture/compile/pr34448.c: New.
16820
16821 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
16822
16823         PR gcov-profile/34609
16824         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
16825         return_slot if result is TREE_ADDRESSABLE.
16826
16827 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
16828
16829         * config/mips/mips.md (sqrt_condition): Tweak comment.
16830         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
16831
16832 2008-01-03  Tom Tromey  <tromey@redhat.com>
16833
16834         PR c/34457
16835         * c-common.c (c_type_hash): Handle VLAs.
16836
16837 2008-01-03  Jan Hubicka  <jh@suse.cz>
16838
16839         PR tree-optimization/31081
16840         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
16841         0 when inlining and not inlining to first basic block.
16842         (remap_decl): When var is initialized to 0, don't set default_def.
16843         (expand_call_inline): Set entry_bb.
16844         * tree-inline.h (copy_body_data): Add entry_bb.
16845
16846 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16847
16848         PR c++/34619
16849         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
16850         before returning.
16851
16852         PR tree-optimization/29484
16853         * tree-inline.c (inline_forbidden_p_2): New function.
16854         (inline_forbidden_p): Disallow inlining if some static var
16855         has an address of a local LABEL_DECL in its initializer.
16856         * doc/extend.texi (Labels as Values): Document &&foo behaviour
16857         vs. inlining.
16858
16859 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
16860
16861         PR tree-optimization/34635
16862         * tree-data-ref.c (add_other_self_distances): Make sure that the
16863         evolution step is constant.
16864
16865 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16866
16867         PR middle-end/34608
16868         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
16869
16870 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
16871
16872         * tree-sra.c (scalarize_init): Insert the generate_element_init
16873         statements after the generate_element_zero statements.
16874
16875 2008-01-02  Richard Guenther  <rguenther@suse.de>
16876
16877         PR middle-end/34093
16878         PR middle-end/31976
16879         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
16880         for very large number of operands instead of ICEing.
16881
16882 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
16883
16884         PR target/34013
16885         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
16886         while stack probing.
16887
16888 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
16889
16890         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
16891         in C++0x mode.
16892
16893 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
16894
16895         PR libmudflap/26442
16896         * tree-mudflap.c (mx_register_decls): Guard warning by
16897         !DECL_ARTIFICIAL check.
16898
16899 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
16900
16901         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
16902         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
16903         sse5_perm<mode>): Fix constraints.