OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
2
3         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
4         (FUNCTION_PROFILER): Save the static chain pointer into $2
5         beforehand and restore it aftewards.
6         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
7         address directly into $25 and call the function through $25;
8         do not clobber $3.  Pad the DImode version to cover the space
9         left by the deleted $25 <- $3 move.
10         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
11         the removal of the $25 <- $3 move.
12         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
13         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
14
15 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
16             Daniel Jacobowitz  <dan@codesourcery.com>
17
18         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
19         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
20         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
21         * config/mips/mips.c (mips_start_function_definition): New function.
22         (mips_end_function_definition): Likewise.
23         (mips_output_function_prologue): Use mips_start_function_definition.
24         (mips_output_function_epilogue): Use mips_end_function_definition.
25         (build_mips16_function_stub): Use mips_start_function_definition
26         and mips_end_function_definition.
27         (build_mips16_call_stub): Likewise.
28
29 2008-08-09  Richard Guenther  <rguenther@suse.de>
30
31         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
32         * gimple.h (gimple_call_fn): Adjust comment.
33         (gimple_call_set_fndecl): New function.
34         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
35         longer having bare FUNCTION_DECL operand.
36         (gimple_call_return_type): Likewise.
37         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
38
39         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
40         (gimple_mod_pow2): Likewise.
41         (gimple_mod_subtract): Likewise.
42         (gimple_ic): Likewise.
43         (gimple_stringop_fixed_value): Likewise.
44         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
45         longer having bare FUNCTION_DECL operand.
46         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
47         * omp-low.c (optimize_omp_library_calls): Likewise.
48         * cgraphunit.c (update_call_expr): Likewise.
49         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
50         (execute_convert_to_rsqrt): Likewise.
51         * cfgexpand.c (gimple_to_tree): Simplify.
52         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
53         bare FUNCTION_DECL operand.
54         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
55         (convert_gimple_call): Use gimple_call_fndecl.
56         * c-common.c (c_warn_unused_result): Likewise.
57
58 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
59
60         PR c/17880
61         * c-typeck.c (digest_init): Call verify_sequence_points from here.
62         (c_finish_return): Likewise.
63         (c_start_case): Likewise.
64         * c-common.c (warn_for_collisions_1): Use explicit location in
65         warning.
66         * c-parser.c (c_parser_condition): New. Call
67         verify_sequence_points.
68         (c_parser_paren_condition): Call c_parser_condition.
69         (c_parser_for_statement): Call c_parser_condition.
70
71 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
72
73         PR 36901
74         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.  
75         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
76         Moved from diagnostic.h
77         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
78         DK_PERMERROR.
79         (emit_diagnostic): New.
80         (warning0, pedwarn0): Delete.
81         (warning, warning_at, pedwarn, permerror): Return bool.  
82         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
83         Moved to diagnostic.c.
84         (struct diagnostic_context): Use correct type for
85         classify_diagnostic.
86         (diagnostic_report_diagnostic): Update declaration.
87         (emit_diagnostic): Declare.
88         * errors.c (warning): Return bool.  
89         * errors.h (warning): Update declaration.
90         * toplev.h (warning0, pedwarn0): Delete.
91         (warning, warning_at, pedwarn, permerror): Return bool.
92         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
93         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
94         inform. Update all calls.
95         (diagnose_mismatched_decls): Check return value of warning/pedwarn
96         before giving informative note.
97         (implicit_decl_warning): Likewise.  
98         * c-typeck.c (build_function_call): Likewise.  
99         * tree-sssa.c (warn_uninit): Likewise.  
100         * builtins.c (gimplify_va_arg_expr): Likewise.
101
102 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
103
104         PR 7651
105         * doc/invoke.texi (-Wextra): Move warning from here...
106         (-Wuninitialized): ... to here.
107         
108 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
109
110         PR 28875
111         * flags.h (set_Wunused): Delete
112         * toplev.c (process_options): Handle Wunused flags here.
113         * opts.c (maybe_warn_unused_parameter): Delete.
114         (common_handle_option): Replace set_Wunused by warn_unused.
115         (set_Wextra): Do not handle Wunused-parameter here.
116         (set_Wunused): Delete.
117         * c-opts.c (c_common_handle_option): Replace set_Wunused by
118         warn_unused.
119         * common.opt (Wunused): Add Var and Init.
120         (Wunused-function): Likewise.
121         (Wunused-label): Likewise.
122         (Wunused-parameter): Likewise.
123         (Wunused-value): Likewise.
124         (Wunused-variable): Likewise.
125         
126 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
127
128         * doc/invoke.texi: Add cpu_type power7.
129         * config.in (HAVE_AS_VSX): New.
130         * config.gcc: Add cpu_type power7.
131         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
132         VSX instructions.
133         * configure: Regenerate.
134         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
135         power5.
136         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
137         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
138         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
139
140 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
141
142         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
143         type to vectorize.builtin_conversion.
144         (vectorizable_conversion): Likewise.
145         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
146         integral type as input.
147         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
148         FIX_TRUNC_EXPR.
149         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
150         and ALTIVEC_BUILTIN_VCTSXS.
151         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
152         formatting. 
153
154 2008-08-08  Richard Guenther  <rguenther@suse.de>
155
156         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
157         (surely_varying_stmt_p): Calls are varying only if they are
158         non-builtin and not indirect or have no result.
159         (ccp_fold): Re-instantiate code before the tuples merge.
160
161 2008-08-08  Richard Guenther  <rguenther@suse.de>
162
163         PR tree-optimization/37056
164         * gimple.h (gimple_assign_rhs_class): New helper function.
165         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
166         unary operations properly.
167
168 2008-08-07  Jan Hubicka  <jh@suse.cz>
169
170         * i386.h (ix86_size_cost): Declare.
171         (ix86_cur_cost): New function macro.
172         * i386.md (peepholes expanding size and splitters): Predicate by
173         optimize_insn_for_speed_p.
174         (peepholes reduce size and splitters): Predicate by
175         optimize_insn_for_size_p.
176         * i386.c (ix86_size_cost): Rename from ...
177         (size_cost): This one.
178         (override_options): Update.
179         (decide_alg): Likewise.
180         (ix86_expand_clear): Use RTL profile.
181         (ix86_pad_returns): Use RTL profile.
182
183 2008-08-07  Jan Hubicka  <jh@suse.cz>
184
185         * recog.c (split_all_insns): Set RTL profile
186         (peephole2_optimize): Likewise.
187         * function.c (thread_prologue_and_epilogue_insns): Likewise.
188         * combine.c (combine_instructions): Likewise.
189
190 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
191
192         * c-common.c (c_common_reswords): Also warn about keyword "bool".
193
194 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
195         
196         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming value
197         in a6 after the set_frame_ptr insn.
198         
199 2008-08-07  Richard Henderson  <rth@redhat.com>
200
201         PR debug/37033
202         * gcc.c (cpp_options): Pass along -g*.
203
204 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
205
206         * config/arm/arm.c (output_move_neon): Update comment describing
207         big-endian vector layout.
208         (arm_assemble_integer): Do not handle big-endian NEON vectors
209         specially.
210         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
211         neon_vget_lane<mode>_sext_internal,
212         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
213         element indices for big-endian.
214
215 2008-08-07  Richard Henderson  <rth@redhat.com>
216
217         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
218         * configure, config.in: Rebuild.
219         * debug.h (dwarf2out_do_cfi_asm): Declare.
220         * c-cppbuiltin.c (c_cpp_builtins): Use it.
221         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
222         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
223         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
224
225 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
226
227         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
228         movv2si_internal): Combine into mov<mode>_internal.
229         (movv2si_internal_2): Remove.
230
231 2008-08-07  Jan Hubicka  <jh@suse.cz>
232
233         PR target/37048
234         * i386.md (single stringop patterns): Enable unconditionally. 
235
236 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
237
238         PR target/36992
239         * config/i386/emmintrin.h (_mm_move_epi64): Use
240         __builtin_ia32_movq128.
241
242         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
243         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
244
245         * config/i386/sse.md (sse2_movq128): New.
246
247         * doc/extend.texi: Document __builtin_ia32_movq128.
248
249 2008-08-07  Richard Guenther  <rguenther@suse.de>
250
251         PR middle-end/37042
252         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
253         pointers can access anything.
254
255 2008-08-06  Jan Hubicka  <jh@suse.cz>
256
257         * optabs.c (emit_unop_insn): Break out to ...
258         (maybe_emit_unop_insn): ... this one.
259         (expand_sfix_optab): Use maybe variant.
260         * optabs.h (maybe_emit_unop_insn): Declare.
261
262         * i386.md (mov0 patterns): Enable by default.
263         (FP conversion expanders): Disable expansion of code expanding
264         sequences when instruction should be optimized for size.
265         (single strinop patterns): Enable when optimizing for size.
266         (string expanders): Disable expanding of code expanding sequences
267         when optimizning instruction for size.
268         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
269         per BB basis.
270         (ix86_fp_comparison_sahf_cost): Likewise.
271         (ix86_expand_branch): Likewise.
272         (ix86_expand_ashl_const): Likewise.
273         (ix86_split_ashl): Likewise.
274         (ix86_expand_strlen): Likewise.
275         (ix86_emit_fp_unordered_jump): Likewie.
276
277 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
278
279         * c-common.c: Fix typo.
280         (c_common_reswords): Activate more C++ keyword warnings.
281
282         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
283
284 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
285        
286         PR 26785
287         * diagnostic.c (permerror_at): New.
288         * toplev.h (permerror_at): Declare.
289         
290 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
291             Ira Rosen  <irar@il.ibm.com>
292
293         * tree-vect-transform.c (vect_model_simple_cost): Return
294         immediately if stmt is pure SLP.
295         (vect_model_store_cost): Ditto.
296         (vect_model_load_cost): Ditto.
297         (vectorizable_store): Remove PURE_SLP check before call
298         to vect_model_store_cost.
299         (vect_model_store_cost): When checking whether stmt describe
300         strided access, add a check that it is not slp_node.
301
302 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
303
304         PR 8715
305         * c-common.c (warn_for_sign_compare): New. Handle separately the
306         case that 'constant' is zero.
307         * c-typeck.c (build_binary_op): Move code to c-common.c
308         
309 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
310
311         * config/alpha/alpha.c (alpha_preferred_reload_class,
312         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
313         alpha_output_mi_thunk_osf): Avoid C++ keywords.
314         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
315         * config/arm/arm.md: Likewise.
316         * config/avr/avr-protos.h (preferred_reload_class,
317         test_hard_reg_class, avr_simplify_comparison_p,
318         out_shift_with_cnt, class_max_nregs): Likewise.
319         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
320         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
321         preferred_reload_class, test_hard_reg_class): Likewise.
322         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
323         bfin_memory_move_cost, bfin_secondary_reload,
324         bfin_output_mi_thunk): Likewise.
325         * config/crx/crx.c (crx_secondary_reload_class,
326         crx_memory_move_cost): Likewise.
327         * config/frv/frv-protos.h (frv_secondary_reload_class,
328         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
329         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
330         frv_secondary_reload_class, frv_class_likely_spilled_p,
331         frv_class_max_nregs): Likewise.
332         * config/h8300/h8300.c (h8300_classify_operand,
333         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
334         Likewise.
335         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
336         * config/ia64/ia64.c (ia64_preferred_reload_class,
337         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
338         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
339         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
340         Likewise.
341         * config/m68hc11/m68hc11.c (preferred_reload_class,
342         m68hc11_memory_move_cost): Likewise.
343         * config/mcore/mcore.c (mcore_secondary_reload_class,
344         mcore_reload_class): Likewise.
345         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
346         mips_class_max_nregs, mips_cannot_change_mode_class,
347         mips_preferred_reload_class, mips_secondary_reload_class,
348         mips_output_mi_thunk): Likewise.
349         * config/mmix/mmix.c (mmix_preferred_reload_class,
350         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
351         Likewise.
352         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
353         Likewise.
354         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
355         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
356         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
357         * config/rs6000/rs6000.c (paired_expand_vector_init,
358         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
359         compare_section_name, rs6000_memory_move_cost): Likewise.
360         * config/s390/s390.c (s390_emit_compare_and_swap,
361         s390_preferred_reload_class, s390_secondary_reload,
362         legitimize_pic_address, legitimize_tls_address,
363         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
364         s390_class_max_nregs): Likewise.
365         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
366         * config/s390/s390.md: Likewise.
367         * config/score/score-protos.h (score_secondary_reload_class,
368         score_preferred_reload_class): Likewise.
369         * config/score/score.c (score_preferred_reload_class,
370         score_secondary_reload_class): Likewise.
371         * config/score/score3.c (score3_output_mi_thunk,
372         score3_preferred_reload_class, score3_secondary_reload_class,
373         score3_hard_regno_mode_ok): Likewise.
374         * config/score/score3.h (score3_preferred_reload_class,
375         score3_secondary_reload_class): Likewise.
376         * config/score/score7.c (score7_output_mi_thunk,
377         score7_preferred_reload_class, score7_secondary_reload_class,
378         score7_hard_regno_mode_ok): Likewise.
379         * config/score/score7.h (score7_preferred_reload_class,
380         score7_secondary_reload_class): Likewise.
381         * config/sh/sh.c (prepare_move_operands, output_far_jump,
382         output_branchy_insn, add_constant, gen_block_redirect,
383         sh_insn_length_adjustment, sh_cannot_change_mode_class,
384         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
385         Likewise.
386         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
387         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
388         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
389         xstormy16_preferred_reload_class): Likewise.
390         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
391         xtensa_expand_atomic, override_options,
392         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
393         Likewise.
394         * reorg.c (try_merge_delay_insns): Likewise.
395         * tree.c (merge_dllimport_decl_attributes): Likewise.
396
397         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
398
399 2008-08-06  Michael Matz  <matz@suse.de>
400
401         * Makefile.in (write_entries_to_file): Quote words.
402         * gengtype.c: (read_input_line): Skip over leading white-space.
403
404 2008-08-06  Marc Gauthier  <marc@tensilica.com>
405
406         * config.gcc: Match more processor names for Xtensa.
407         * configure.ac: Likewise.
408         * doc/install.texi (Specific): Likewise.
409         * configure: Regenerate.
410
411 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
412
413         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
414         * calls.c (avoid_likely_spilled_reg): Likewise.
415         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
416         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
417         * config/i386/i386.c (ix86_expand_special_args_builtin,
418         ix86_secondary_reload): Likewise.
419         * except.c (struct eh_region, gen_eh_region_catch,
420         remove_unreachable_regions, duplicate_eh_regions,
421         assign_filter_values, build_post_landing_pads,
422         sjlj_find_directly_reachable_regions, remove_eh_handler,
423         reachable_next_level, foreach_reachable_handler,
424         can_throw_internal_1, can_throw_external_1,
425         collect_one_action_chain): Likewise.
426         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
427         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
428         * function.c (update_temp_slot_address, instantiate_new_reg,
429         instantiate_virtual_regs_in_rtx,
430         instantiate_virtual_regs_in_insn): Likewise.
431         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
432         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
433         gimplify_cleanup_point_expr): Likewise.
434         * ipa-cp.c (ipcp_lattice_changed): Likewise.
435         * passes.c (next_pass_1): Likewise.
436         * print-tree.c (print_node_brief, print_node): Likewise.
437         * profile.c (branch_prob): Likewise.
438         * tree-dump.c (dump_register): Likewise.
439         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
440         Likewise.
441         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
442         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
443         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
444         copy_arguments_for_versioning, copy_static_chain): Likewise.
445         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
446         add_new_name_mapping, register_new_name_mapping): Likewise.
447         * tree-mudflap.c (mf_xform_derefs): Likewise.
448         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
449         get_init_expr, combine_chains): Likewise.
450         * tree-pretty-print.c (dump_generic_node): Likewise.
451         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
452         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
453         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
454         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
455
456 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
457
458         PR middle-end/37010
459         * calls.c (expand_call): Use the biggest preferred stack
460         boundary.
461
462 2008-08-06  Michael Matz  <matz@suse.de>
463
464         PR target/36613
465         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
466         for reused reload, instead of overwriting them.
467
468 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
469
470         PR middle-end/37009
471         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
472         for incoming stack boundary.
473
474         * function.c (assign_parm_find_entry_rtl): Update
475         parm_stack_boundary.
476
477         * function.h (rtl_data): Add parm_stack_boundary.
478
479         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
480         parm_stack_boundary for incoming stack boundary.
481
482 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
483
484         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
485         for unrepresentable subregs or treat them as equal to other regs
486         or subregs with the same register number.
487
488 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
489
490         PR middle-end/35432
491         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
492         if want_value.
493
494 2008-08-06  Jan Hubicka  <jh@suse.cz>
495
496         * predict.c (maybe_hot_frequency_p): When profile is absent, all
497         frequencies might be hot.
498
499 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
500
501         * reload.c (find_reloads): Force constants into literal pool
502         also if they are wrapped in a SUBREG.
503
504 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
505
506         PR target/35659
507         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
508         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
509         Don't allow predicated instructions for data speculation.
510         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
511         declaration.
512
513 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
514
515         * haifa-sched.c (extend_global): Split to extend_global_data and
516         extend_region_data.  Update all uses.
517         (extend_all): Rename to extend_block_data.
518
519 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
520
521         * sched-rgn.c (new_ready): Check if instruction can be
522         speculatively scheduled before attempting speculation.
523         (debug_rgn_dependencies): Remove wrongful assert.
524
525 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
526
527         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
528         
529 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
530         
531         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
532         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
533         va_size, and type_size.
534         
535 2008-08-04  Jason Merrill  <jason@redhat.com>
536
537         PR c++/37016
538         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
539         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
540
541 2008-08-05  Richard Henderson  <rth@redhat.com>
542
543         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
544         * configure: Rebuild.
545
546 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
547
548         PR tree-opt/37024
549         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
550         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
551         is a conversion.
552
553 2008-08-05  Richard Henderson  <rth@redhat.com>
554
555         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
556         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
557         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
558         * common.opt (fdwarf2-cfi-asm): New.
559         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
560         * config.in, configure: Rebuild.
561         * dwarf2asm.c (dw2_asm_output_data_raw): New.
562         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
563         (dw2_force_const_mem): Externalize.
564         * dwarf2asm.h: Update.
565         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
566         generate a real label.
567         (output_cfi_directive): New.
568         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
569         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
570         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
571         and .cfi_lsda.
572         (dwarf2out_end_epilogue): Emit .cfi_endproc.
573         (output_loc_operands_raw, output_loc_sequence_raw): New.
574         (output_cfa_loc_raw): New.
575         
576 2008-08-05  Paul Brook  <paul@codesourcery.com>
577
578         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
579         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
580         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
581         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
582         * config/arm/arm.h (TARGET_VFPD32): Define.
583         (TARGET_VFP3): Use TARGET_VFPD32.
584         (fputype): Add FPUTYPE_VFP3D16.
585         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
586         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
587         * config/arm/arm-cores.def: Add cortex-r4f.
588         * config/arm/arm-tune.md: Regenerate.
589
590 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
591
592         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
593         Reword some comments throughout the file.
594
595         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
596         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
597         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
598         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
599
600         (MFC_START_ENABLE): Remove PPU-only define.
601         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
602         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
603
604         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
605         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
606         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
607         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
608         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
609         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
610         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
611
612         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
613         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
614         (mfc_sdcrt, mfc_sdcrtst): Likewise.
615         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
616
617         (spu_read_machine_status): Fix typo.
618
619 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
620
621         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
622         SUBREG of multi-word hard register.
623         * config/spu/spu.c (valid_subreg): Likewise.
624         (adjust_operand): Handle SUBREGs of multi-word hard registers.
625
626 2008-08-04  Richard Guenther  <rguenther@suse.de>
627
628         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
629         the candidate with the stripped base if that base is different
630         from the original base even for offset zero.
631
632 2008-08-04  Richard Guenther  <rguenther@suse.de>
633
634         PR middle-end/36691
635         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
636         check for no_overflow.
637
638 2008-08-04  Richard Guenther  <rguenther@suse.de>
639
640         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
641
642 2008-08-04  Paul Brook  <paul@codesourcery.com>
643
644         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
645         (arm_order_regs_for_local_alloc): New function.
646         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
647         prototype.
648         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
649
650 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
651
652         PR target/37012
653         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
654         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
655         (ix86_expand_epilogue): Likewise.
656
657 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
658
659         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
660         in comments.
661
662 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
663
664         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
665         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
666         (*movv2sf_internal_rex64): Ditto.
667
668 2008-08-03  Jan Hubicka  <jh@suse.cz>
669
670         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
671         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
672         * expmed.c (expand_smod_pow2): Likewise.
673
674 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
675
676         PR target/36992
677         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
678         alternative 0 of operand 1.
679         (*vec_concatv2di_rex64_sse): Ditto.
680         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
681         of operand 1.
682         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
683         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
684         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
685         (*movv2sf_internal_rex64): Ditto.
686
687 2008-08-02  Richard Guenther  <rguenther@suse.de>
688
689         PR target/35252
690         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
691         (ssedoublesizemode): New mode attribute.
692         (sse_shufps): Call gen_sse_shufps_v4sf.
693         (sse_shufps_1): Macroize.
694         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
695         (sse2_shufpd_1): Macroize.
696         (vec_extract_odd, vec_extract_even): New expanders.
697         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
698         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
699         * i386.c (ix86_expand_vector_init_one_nonzero): Call
700         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
701         (ix86_expand_vector_set): Likewise.
702         (ix86_expand_reduc_v4sf): Likewise.
703
704 2008-08-01  Doug Kwan  <dougkwan@google.com>
705
706         * matrix-reorg.c: Re-enable all code.
707         (struct malloc_call_data): Change CALL_STMT to gimple type.
708         (collect_data_for_malloc_call): Tuplify.
709         (struct access_site_info): Change STMT to gimple type.
710         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
711         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
712         (struct free_info): Change STMT to gimple type.
713         (struct matrix_access_phi_node):  Change PHI to gimple type.
714         (get_inner_of_cast_expr): Remove.
715         (may_flatten_matrices_1): Tuplify.
716         (may_flatten_matrices): Ditto.
717         (mark_min_matrix_escape_level): Ditto.
718         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
719         (ssa_accessed_in_call_rhs): New
720         (ssa_accessed_in_assign_rhs): New
721         (record_access_alloc_site_info): Tuplify.
722         (add_allocation_site): Ditto.
723         (analyze_matrix_allocation_site): Ditto.
724         (analyze_transpose): Ditto.
725         (get_index_from_offset): Ditto.
726         (update_type_size): Ditto.
727         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
728         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
729         (analyze_accesses_for_phi_node): Tuplify.
730         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
731         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
732         (analyze_matrix_accesses): Tuplify.
733         (check_var_data): New call-back type for check_var_notmodified_p.
734         (check_var_notmodified_p): Tuplify and use call-back struct to
735         return statement found.
736         (can_calculate_expr_before_stmt): Factor out statement related code
737         into ...
738         (can_calculate_stmt_before_stmt): New.
739         (check_allocation_function): Tuplify.
740         (find_sites_in_func): Ditto.
741         (record_all_accesses_in_func): Ditto.
742         (transform_access_sites): Ditto.
743         (transform_allocation_sites): Ditto.
744         (matrix_reorg): Re-enable.
745         (gate_matrix_reorg): Re-enable.
746
747 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
748
749         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
750         for labels for which it hasn't been set yet.  If it has been set,
751         stop walking insns and continue with next worklist item.
752         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
753         if the only BARRIER is at the very end of a function.
754
755 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
756
757         * cfgexpand.c (expand_stack_alignment): Assert that
758         stack_realign_drap and drap_rtx must match.
759
760         * function.c (instantiate_new_reg): If DRAP is used to realign
761         stack, replace virtual_incoming_args_rtx with internal arg
762         pointer.
763
764 2008-08-01  Richard Guenther  <rguenther@suse.de>
765
766         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
767         loop information only if we initialized it.
768         (execute_pre): Call fini_pre with in_fre.
769         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
770         if we do not unroll because we hit max-completely-peeled-insns.
771         Use our estimation for consistency, do allow shrinking.
772
773 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
774
775         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
776         with MIN_STACK_BOUNDARY.
777         (ix86_update_stack_boundary): Likewise.
778         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
779         STACK_BOUNDARY.
780
781         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
782         (MIN_STACK_BOUNDARY): This.
783
784 2008-08-01  Richard Guenther  <rguenther@suse.de>
785
786         PR middle-end/36997
787         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
788
789 2008-08-01  Richard Guenther  <rguenther@suse.de>
790
791         PR tree-optimization/36988
792         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
793         do not matter if that doesn't change volatile qualification.
794
795 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
796
797         * configure.ac: Do not generate libada-mk.  Do not subst
798         host_cc_for_libada.
799         * libada-mk.in: Remove.
800         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
801         * configure: Regenerate.
802
803 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
804
805         * tree-pass.h: Added comment about not dumping passes with name
806         starting with star in struct opt_pass.
807         * passes.c (register_dump_files_1): Don't do dump for a pass with
808         name starting with star.
809         * doc/passes.texi (Pass manager): Mention pass names and special
810         meaning of star prefix to avoid dump.
811
812 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
813
814         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
815         to MIPS64r2.
816         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
817         (ISA_MIPS64R2): New macro.
818         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
819         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
820         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
821         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
822         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
823         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
824         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
825         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
826         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
827         Move up to keep list alphabetically sorted.
828         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
829         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
830         processor.
831         * doc/invoke.texi (MIPS Options): Add -mips64r2.
832         (-march=@var{arch}): Add mips64r2.
833
834 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
835
836         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
837
838 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
839
840         * expr.c (expand_assignment): Check for complete type.
841
842 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
843
844         PR debug/36977
845         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
846
847         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
848         for stack alignment.
849
850         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
851
852 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
853
854         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
855         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
856
857 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
858
859         PR rtl-optimization/36419
860         * dwarf2out.c (barrier_args_size): New variable.
861         (compute_barrier_args_size, compute_barrier_args_size_1): New
862         functions.
863         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
864         if not called yet in the current function, use barrier_args_size
865         array to find the new args_size value.
866         (dwarf2out_frame_debug): Free and clear barrier_args_size.
867
868 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
869
870         PR debug/36980
871         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
872         rule 19.
873
874 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
875
876         PR debug/36976
877         * dwarf2out.c (dwarf2out_args_size_adjust): New.
878         (dwarf2out_stack_adjust): Use it.
879         (dwarf2out_frame_debug_expr): Likewise.
880
881 2008-07-31  Richard Guenther  <rguenther@suse.de>
882
883         PR tree-optimization/36978
884         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
885         the generated condition.
886
887 2008-07-31  Richard Guenther  <rguenther@suse.de>
888
889         * passes.c (init_optimization_passes): Always call
890         pass_early_warn_uninitialized.
891         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
892         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
893         * doc/passes.texi (Warn for uninitialized variables): Adjust.
894
895 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
896
897         PR c/36970
898         * builtins.c (maybe_emit_free_warning): New function.
899         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
900         maybe_emit_free_warning for BUILT_IN_FREE.
901
902         PR debug/36278
903         * dwarf2out.c (get_context_die): New function.
904         (force_decl_die, force_type_die): Use it.
905         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
906         returns NULL, force generation of DW_TAG_typedef and put that into
907         DW_AT_import.
908
909         PR preprocessor/36649
910         * c-pch.c (c_common_read_pch): Save and restore
911         line_table->trace_includes across PCH restore.
912
913 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
914
915         PR ada/36554
916         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
917
918 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
919
920         PR 36974
921         * final.c (call_from_call_insn): Handle COND_EXEC.
922
923 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
924
925         * builtins.c (std_gimplify_va_arg_expr): Replace
926         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
927         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
928
929 2008-07-30  Joey Ye  <joey.ye@intel.com>
930             H.J. Lu  <hongjiu.lu@intel.com>
931
932         * builtins.c (expand_builtin_setjmp_receiver): Replace
933         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
934         (expand_builtin_apply_args_1): Likewise.
935         (expand_builtin_longjmp): Need DRAP for stack alignment.
936         (expand_builtin_apply): Likewise.
937
938         * caller-save.c (setup_save_areas): Call assign_stack_local_1
939         instead of assign_stack_local to allow alignment reduction.
940
941         * calls.c (emit_call_1): Need DRAP for stack alignment if
942         return pops.
943         (expand_call): Replace virtual_incoming_args_rtx with
944         crtl->args.internal_arg_pointer.
945         * stmt.c (expand_nl_goto_receiver): Likewise.
946
947         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
948         alignment and store to stack_alignment_estimated and
949         max_used_stack_slot_alignment.
950         (expand_one_var): Likewise.
951         (expand_stack_alignment): New function.
952         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
953         and stack_alignment_estimated fields in rtl_data.  Call
954         expand_stack_alignment at end.
955
956         * defaults.h (INCOMING_STACK_BOUNDARY): New.
957         (MAX_STACK_ALIGNMENT): Likewise.
958         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
959         (SUPPORTS_STACK_ALIGNMENT): Likewise.
960
961         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
962         stack alignment when generating virtual registers.
963
964         * function.c (assign_stack_local): Renamed to ...
965         (assign_stack_local_1): This.  Add a parameter to indicate
966         if it is OK to reduce alignment.
967         (assign_stack_local): Use it.
968         (instantiate_new_reg): Instantiate virtual incoming args rtx
969         to vDRAP if stack realignment and DRAP is needed.
970         (assign_parms): Collect parameter/return type alignment and
971         contribute to stack_alignment_estimated.
972         (locate_and_pad_parm): Likewise.
973         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
974         with crtl->args.internal_arg_pointer.
975
976         * function.h (rtl_data): Add new field drap_reg,
977         max_used_stack_slot_alignment, stack_alignment_estimated,
978         stack_realign_needed, need_drap, stack_realign_processed and
979         stack_realign_finalized.
980         (stack_realign_fp): New macro.
981         (stack_realign_drap): Likewise.
982
983         * global.c (compute_regsets): Frame pointer is needed when
984         stack is realigned.  Can eliminate frame pointer when stack is
985         realigned and dynamic realigned argument pointer isn't used.
986
987         * reload1.c (update_eliminables):  Frame pointer is needed
988         when stack is realigned.
989         (init_elim_table): Can eliminate frame pointer when stack is
990         realigned and dynamic realigned argument pointer isn't used.
991
992         * rtl.h (assign_stack_local_1): Declare new funtion.
993
994         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
995         (TARGET_GET_DRAP_RTX): Likewise.
996         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
997         TARGET_GET_DRAP_RTX.
998
999         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
1000
1001         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
1002         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
1003
1004 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
1005             H.J. Lu  <hongjiu.lu@intel.com>
1006
1007         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
1008         vdrap_reg, stack_realign and drap_reg_saved.
1009         (add_cfi): Don't allow redefining CFA when DRAP is used.
1010         (reg_save): Handle stack alignment.
1011         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
1012         alignment.  Don't generate DWARF information for (set fp sp)
1013         when DRAP is used.
1014         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
1015         to INVALID_REGNUM.
1016         (int_loc_descriptor): Move prototype forward.  Also define if
1017         DWARF2_UNWIND_INFO is true.
1018         (output_cfa_loc): Handle DW_CFA_expression.
1019         (build_cfa_aligned_loc): New.
1020         (based_loc_descr): Update assert for stack realign.  For local
1021         variables, use sp+offset when stack is aligned without drap and
1022         fp+offset when stack is aligned with drap.  For arguments, use
1023         cfa+offset when drap is used to align stack.
1024
1025 2008-07-30  Joey Ye  <joey.ye@intel.com>
1026             H.J. Lu  <hongjiu.lu@intel.com>
1027
1028         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
1029         Break long line.
1030         (ix86_gen_andsp): New.
1031         (ix86_user_incoming_stack_boundary): Likewise.
1032         (ix86_default_incoming_stack_boundary): Likewise.
1033         (ix86_incoming_stack_boundary): Likewise.
1034         (ix86_can_eliminate): Likewise.
1035         (find_drap_reg): Likewise.
1036         (ix86_update_stack_boundary): Likewise.
1037         (ix86_get_drap_rtx): Likewise.
1038         (ix86_finalize_stack_realign_flags): Likewise.
1039         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
1040         (TARGET_GET_DRAP_RTX): Likewise.
1041         (override_options): Overide option value for new options.
1042         (ix86_function_ok_for_sibcall): Remove check for
1043         force_align_arg_pointer.
1044         (ix86_handle_cconv_attribute): Likewise.
1045         (ix86_function_regparm): Likewise.
1046         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
1047         (ix86_va_start): Replace virtual_incoming_args_rtx with
1048         crtl->args.internal_arg_pointer.
1049         (ix86_select_alt_pic_regnum): Check DRAP register.
1050         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
1051         (ix86_compute_frame_layout): Compute frame layout wrt stack
1052         realignment.
1053         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
1054         (ix86_expand_prologue): Decide if stack realignment is needed
1055         and generate prologue code accordingly.
1056         (ix86_expand_epilogue): Generate epilogue code wrt stack
1057         realignment is really needed or not.
1058         
1059         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
1060         (ABI_STACK_BOUNDARY): Likewise.
1061         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
1062         (STACK_REALIGN_DEFAULT): Likewise.
1063         (INCOMING_STACK_BOUNDARY): Likewise.
1064         (MAX_STACK_ALIGNMENT): Likewise.
1065         (ix86_incoming_stack_boundary): Likewise.
1066         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
1067         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
1068         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
1069         (machine_function): Remove force_align_arg_pointer.
1070
1071         * config/i386/i386.md (BX_REG): New.
1072         (R13_REG): Likewise.
1073
1074         * config/i386/i386.opt (mforce_drap): New.
1075         (mincoming-stack-boundary): Likewise.
1076         (mstackrealign): Add Init(-1).
1077
1078         * config/i386/i386-protos.h (ix86_can_eliminate): New
1079
1080 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
1081
1082         * doc/extend.texi: Update force_align_arg_pointer.
1083
1084         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
1085         -mstackrealign.
1086
1087         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
1088         (INCOMING_STACK_BOUNDARY): Likewise.
1089         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
1090         (TARGET_GET_DRAP_RTX): Likewise.
1091
1092 2008-07-30  Andreas Schwab  <schwab@suse.de>
1093
1094         PR rtl-optimization/36929
1095         * dse.c (replace_inc_dec): Use emit_insn_before instead of
1096         add_insn_before and fix argument order.
1097         (replace_inc_dec_mem): Handle NULL rtx.
1098
1099 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
1100
1101         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
1102         function.
1103         (arm_compute_initial_elimination_offset): Use it.
1104         (arm_compute_save_reg_mask): Include static chain save slot when
1105         calculating alignment.
1106         (arm_get_frame_offsets): Ditto.
1107         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
1108         that we can use to decrement the stack when the stack decrement
1109         could be too big for an immediate value in a single insn.
1110         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
1111
1112 2008-07-30  Richard Guenther  <rguenther@suse.de>
1113
1114         PR tree-optimization/36967
1115         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
1116         Release defs of statements we remove.
1117
1118 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
1119
1120         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
1121         instead of NULL_RTVEC.
1122
1123 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
1124
1125         PR target/35866
1126
1127         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
1128         vector modes.
1129
1130 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
1131
1132         * final.c (call_from_call_insn): New.
1133         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
1134
1135 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
1136
1137         * configure.ac: Substitute ADA_CFLAGS.
1138         * configure: Regenerate.
1139         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
1140         * Makefile.in: Remove mention of X_* variables.
1141         * config/pa/x-ada-hpux10: Remove.
1142         * config/pa/x-ada: Remove.
1143
1144         * doc/fragments.texi: Update.
1145
1146 2008-07-30  Olivier Hainque  <hainque@adacore.com>
1147
1148         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
1149         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
1150         __dso_handle explicitly here.
1151
1152 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1153
1154         PR 34389
1155         * c-typeck.c (build_binary_op): Encapsulate code into...
1156         * c-common.c (shorten_binary_op): ...this new function.
1157         (conversion_warning): Use the new function. Handle non-negative
1158         constant in bitwise-and.
1159         * c-common.h (shorten_binary_op): Declare.
1160
1161 2008-07-30  Olivier Hainque  <hainque@adacore.com>
1162
1163         * scan.c (make_sstring_space): Add explicit conversions of
1164         allocator's return value.
1165         * fix-header.c (recognized_function): Likewise.
1166
1167 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1168
1169         * doc/cpp.texi: Update to GFDL 1.2.
1170         * doc/gcc.texi: Do not list GPL as Invariant Section.
1171         * doc/gccint.texi: Likewise.  Update copyright years.
1172         * doc/install.texi: Update copyright years.
1173
1174 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
1175
1176         PR target/36955
1177         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
1178         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
1179
1180 2008-07-29  Jan Hubicka  <jh@suse.cz>
1181
1182         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
1183         (grokdeclarator): Likewise.
1184         * langhooks.c (lhd_warn_unused_global_decl): Use
1185         DECL_DECLARED_INLINE_P.
1186         * print-tree.c (print_node): Remove DECL_INLINE check.
1187
1188 2008-07-29  Richard Guenther  <rguenther@suse.de>
1189
1190         PR tree-optimization/36945
1191         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
1192         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
1193         Record invariant addresses un-decomposed.
1194         (copy_reference_ops_from_call): Record reference call
1195         arguments properly.  Simplify.
1196         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
1197         helper split out from ...
1198         (create_component_ref_by_pieces): ... here.  Simplify.
1199         Prepare for recursive invocation for call arguments.
1200         (create_expression_by_pieces): Adjust call to
1201         create_component_ref_by_pieces.
1202         (compute_avail): Process operand 2 of reference ops.
1203
1204 2008-07-29  Richard Guenther  <rguenther@suse.de>
1205
1206         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
1207
1208 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
1209
1210         * c-format.c (check_format_types): Revert unwanted checkin.
1211
1212 2008-07-29  Jan Hubicka  <jh@suse.cz>
1213
1214         * flags.h (flag_really_no_inline): Remove.
1215         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
1216         * toplev.c (flag_really_no_inline): Remove.
1217         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
1218         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
1219         (cgraph_decide_inlining_incrementally): Likewise.
1220         (compute_inline_parameters): Likewise.
1221         * opts.c (decode_options): Simplify.
1222         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
1223         * common.opt (finline): Initialize to 1.
1224         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
1225
1226 2008-07-29  Jan Hubicka  <jh@suse.cz>
1227
1228         * predict.c (always_optimize_for_size_p): New function.
1229         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
1230         optimize_edge_for_size_p, optimize_edge_for_speed_p,
1231         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
1232         functions.
1233         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
1234         * function.c (prepare_function_start): Set default profile.
1235         * function.h (rtl_data): Add maybe_hot_insn_p.
1236         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
1237         (construct_exit_block): Likewise.
1238         (tree_expand_cfg): Likewise.
1239         * basic-block.h
1240         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
1241         optimize_edge_for_size_p, optimize_edge_for_speed_p,
1242         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
1243         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
1244         Declare.
1245
1246 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1247
1248         PR 34985
1249         * c-decl.c (merge_decls): Merge USED flags.
1250
1251 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1252
1253         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
1254         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
1255         next_stack, lab_false and lab_over trees.
1256
1257 2008-07-28  Richard Guenther  <rguenther@suse.de>
1258
1259         PR tree-optimization/36957
1260         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
1261         (useless_type_conversion_p): Remove.
1262         (types_compatible_p): Remove.
1263         * gimple.h (tree_ssa_useless_type_conversion): Declare.
1264         (useless_type_conversion_p): Declare.
1265         (types_compatible_p): Declare.
1266         (gimple_expr_type): Return the base type only if it is
1267         trivially convertible to the subtype.
1268
1269 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
1270
1271         * configure.ac: Use the m4_do macro to concatenate the warnings into
1272         one string in ACX_PROG_CC_WARNING_OPTS,
1273         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
1274         * configure: Regenerate.
1275
1276 2008-07-28  Richard Guenther  <rguenther@suse.de>
1277
1278         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
1279         (insert_fake_stores): Remove.
1280         (realify_fake_stores): Likewise.
1281         (execute_pre): Remove dead code.
1282         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
1283         (find_func_aliases): Deal with it here instead.
1284         Re-enable gcc_unreachable call.
1285
1286 2008-07-28  Richard Guenther  <rguenther@suse.de>
1287
1288         Merge from gimple-tuples-branch.
1289
1290         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
1291         * gimple.def: New file.
1292         * gsstruct.def: Likewise.
1293         * gimple-iterator.c: Likewise.
1294         * gimple-pretty-print.c: Likewise.
1295         * tree-gimple.c: Removed.  Merged into ...
1296         * gimple.c: ... here.  New file.
1297         * tree-gimple.h: Removed.  Merged into ...
1298         * gimple.h: ... here.  New file.
1299
1300         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
1301         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
1302         --enable-checking=gimple flag.
1303         * config.in: Likewise.
1304         * configure: Regenerated.
1305
1306         * tree-ssa-operands.h: Tuplified.
1307         * tree-vrp.c: Likewise.
1308         * tree-loop-linear.c: Likewise.
1309         * tree-into-ssa.c: Likewise.
1310         * tree-ssa-loop-im.c: Likewise.
1311         * tree-dump.c: Likewise.
1312         * tree-complex.c: Likewise.
1313         * cgraphbuild.c: Likewise.
1314         * tree-ssa-threadupdate.c: Likewise.
1315         * tree-ssa-loop-niter.c: Likewise.
1316         * tree-pretty-print.c: Likewise.
1317         * tracer.c: Likewise.
1318         * gengtype.c: Likewise.
1319         * tree-loop-distribution.c: Likewise.
1320         * tree-ssa-loop-unswitch.c: Likewise.
1321         * cgraph.c: Likewise.
1322         * cgraph.h: Likewise.
1323         * tree-ssa-loop-manip.c: Likewise.
1324         * value-prof.c: Likewise.
1325         * tree-ssa-loop-ch.c: Likewise.
1326         * tree-tailcall.c: Likewise.
1327         * value-prof.h: Likewise.
1328         * tree.c: Likewise.
1329         * tree.h: Likewise.
1330         * tree-pass.h: Likewise.
1331         * ipa-cp.c: Likewise.
1332         * tree-scalar-evolution.c: Likewise.
1333         * tree-scalar-evolution.h: Likewise.
1334         * target.h: Likewise.
1335         * lambda-mat.c: Likewise.
1336         * tree-phinodes.c: Likewise.
1337         * diagnostic.h: Likewise.
1338         * builtins.c: Likewise.
1339         * tree-ssa-alias-warnings.c: Likewise.
1340         * cfghooks.c: Likewise.
1341         * fold-const.c: Likewise.
1342         * cfghooks.h: Likewise.
1343         * omp-low.c: Likewise.
1344         * tree-ssa-dse.c: Likewise.
1345         * ipa-reference.c: Likewise.
1346         * tree-ssa-uncprop.c: Likewise.
1347         * toplev.c: Likewise.
1348         * tree-gimple.c: Likewise.
1349         * tree-gimple.h: Likewise.
1350         * tree-chrec.c: Likewise.
1351         * tree-chrec.h: Likewise.
1352         * tree-ssa-sccvn.c: Likewise.
1353         * tree-ssa-sccvn.h: Likewise.
1354         * cgraphunit.c: Likewise.
1355         * tree-ssa-copyrename.c: Likewise.
1356         * tree-ssa-ccp.c: Likewise.
1357         * tree-ssa-loop-ivopts.c: Likewise.
1358         * tree-nomudflap.c: Likewise.
1359         * tree-call-cdce.c: Likewise.
1360         * ipa-pure-const.c: Likewise.
1361         * c-format.c: Likewise.
1362         * tree-stdarg.c: Likewise.
1363         * tree-ssa-math-opts.c: Likewise.
1364         * tree-ssa-dom.c: Likewise.
1365         * tree-nrv.c: Likewise.
1366         * tree-ssa-propagate.c: Likewise.
1367         * ipa-utils.c: Likewise.
1368         * tree-ssa-propagate.h: Likewise.
1369         * tree-ssa-alias.c: Likewise.
1370         * gimple-low.c: Likewise.
1371         * tree-ssa-sink.c: Likewise.
1372         * ipa-inline.c: Likewise.
1373         * c-semantics.c: Likewise.
1374         * dwarf2out.c: Likewise.
1375         * expr.c: Likewise.
1376         * tree-ssa-loop-ivcanon.c: Likewise.
1377         * predict.c: Likewise.
1378         * tree-ssa-loop.c: Likewise.
1379         * tree-parloops.c: Likewise.
1380         * tree-ssa-address.c: Likewise.
1381         * tree-ssa-ifcombine.c: Likewise.
1382         * matrix-reorg.c: Likewise.
1383         * c-decl.c: Likewise.
1384         * tree-eh.c: Likewise.
1385         * c-pretty-print.c: Likewise.
1386         * lambda-trans.c: Likewise.
1387         * function.c: Likewise.
1388         * langhooks.c: Likewise.
1389         * ebitmap.h: Likewise.
1390         * tree-vectorizer.c: Likewise.
1391         * function.h: Likewise.
1392         * langhooks.h: Likewise.
1393         * tree-vectorizer.h: Likewise.
1394         * ipa-type-escape.c: Likewise.
1395         * ipa-type-escape.h: Likewise.
1396         * domwalk.c: Likewise.
1397         * tree-if-conv.c: Likewise.
1398         * profile.c: Likewise.
1399         * domwalk.h: Likewise.
1400         * tree-data-ref.c: Likewise.
1401         * tree-data-ref.h: Likewise.
1402         * tree-flow-inline.h: Likewise.
1403         * tree-affine.c: Likewise.
1404         * tree-vect-analyze.c: Likewise.
1405         * c-typeck.c: Likewise.
1406         * gimplify.c: Likewise.
1407         * coretypes.h: Likewise.
1408         * tree-ssa-phiopt.c: Likewise.
1409         * calls.c: Likewise.
1410         * tree-ssa-coalesce.c: Likewise.
1411         * tree.def: Likewise.
1412         * tree-dfa.c: Likewise.
1413         * except.c: Likewise.
1414         * except.h: Likewise.
1415         * cfgexpand.c: Likewise.
1416         * tree-cfgcleanup.c: Likewise.
1417         * tree-ssa-pre.c: Likewise.
1418         * tree-ssa-live.c: Likewise.
1419         * tree-sra.c: Likewise.
1420         * tree-ssa-live.h: Likewise.
1421         * tree-predcom.c: Likewise.
1422         * lambda.h: Likewise.
1423         * tree-mudflap.c: Likewise.
1424         * ipa-prop.c: Likewise.
1425         * print-tree.c: Likewise.
1426         * tree-ssa-copy.c: Likewise.
1427         * ipa-prop.h: Likewise.
1428         * tree-ssa-forwprop.c: Likewise.
1429         * ggc-page.c: Likewise.
1430         * c-omp.c: Likewise.
1431         * tree-ssa-dce.c: Likewise.
1432         * tree-vect-patterns.c: Likewise.
1433         * tree-ssa-ter.c: Likewise.
1434         * tree-nested.c: Likewise.
1435         * tree-ssa.c: Likewise.
1436         * lambda-code.c: Likewise.
1437         * tree-ssa-loop-prefetch.c: Likewise.
1438         * tree-inline.c: Likewise.
1439         * tree-inline.h: Likewise.
1440         * tree-iterator.c: Likewise.
1441         * tree-optimize.c: Likewise.
1442         * tree-ssa-phiprop.c: Likewise.
1443         * tree-vect-transform.c: Likewise.
1444         * tree-object-size.c: Likewise.
1445         * tree-outof-ssa.c: Likewise.
1446         * cfgloop.c: Likewise.
1447         * system.h: Likewise.
1448         * tree-profile.c: Likewise.
1449         * cfgloop.h: Likewise.
1450         * c-gimplify.c: Likewise.
1451         * c-common.c: Likewise.
1452         * tree-vect-generic.c: Likewise.
1453         * tree-flow.h: Likewise.
1454         * c-common.h: Likewise.
1455         * basic-block.h: Likewise.
1456         * tree-ssa-structalias.c: Likewise.
1457         * tree-switch-conversion.c: Likewise.
1458         * tree-ssa-structalias.h: Likewise.
1459         * tree-cfg.c: Likewise.
1460         * passes.c: Likewise.
1461         * ipa-struct-reorg.c: Likewise.
1462         * ipa-struct-reorg.h: Likewise.
1463         * tree-ssa-reassoc.c: Likewise.
1464         * cfgrtl.c: Likewise.
1465         * varpool.c: Likewise.
1466         * stmt.c: Likewise.
1467         * tree-ssanames.c: Likewise.
1468         * tree-ssa-threadedge.c: Likewise.
1469         * langhooks-def.h: Likewise.
1470         * tree-ssa-operands.c: Likewise.
1471         * config/alpha/alpha.c: Likewise.
1472         * config/frv/frv.c: Likewise.
1473         * config/s390/s390.c: Likewise.
1474         * config/m32c/m32c.c: Likewise.
1475         * config/m32c/m32c-protos.h: Likewise.
1476         * config/spu/spu.c: Likewise.
1477         * config/sparc/sparc.c: Likewise.
1478         * config/i386/i386.c: Likewise.
1479         * config/sh/sh.c: Likewise.
1480         * config/xtensa/xtensa.c: Likewise.
1481         * config/stormy16/stormy16.c: Likewise.
1482         * config/ia64/ia64.c: Likewise.
1483         * config/rs6000/rs6000.c: Likewise.
1484         * config/pa/pa.c: Likewise.
1485         * config/mips/mips.c: Likewise.
1486
1487 2008-07-28  Simon Baldwin  <simonb@google.com>
1488
1489         * c-pragma.c (handle_pragma_message): New function.
1490         (init_pragma): Register handle_pragma_message.
1491         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
1492         documentation.
1493
1494 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
1495
1496         PR tree-optimization/35252
1497         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
1498         REALPART_EXPR to be considered as same load operation.
1499
1500 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
1501
1502         PR tree-optimization/36830
1503         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
1504         (expressions_equal_p): Return false if only one operand is null.
1505
1506 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
1507
1508         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
1509         version requirements.
1510
1511 2008-07-26  Olivier Hainque  <hainque@adacore.com>
1512
1513         * collect2.c (symkind): New enum.  Symbol kinds we care about.
1514         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
1515         code and head comment accordingly.
1516         (scan_prog_file): Use symkind names instead of bare integers.
1517
1518 2008-07-25  Jan Hubicka  <jh@suse.cz>
1519
1520         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
1521         DECL_INLINE.
1522         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
1523         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
1524         * dojump.c (clear_pending_stack_adjust): Likewise.
1525         * print-tree.c (print_node): Ignore DECL_INLINE.
1526         * tree-inline.c (inlinable_function_p): Likewise.
1527
1528 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
1529
1530         * doc/extend.texi (hot attribute): Document that the hot attribute
1531         turns on -O3 for some ports.
1532         (cold attribute): Document that the cold attribute turns on -Os
1533         for some ports
1534
1535         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
1536         reflect function specific option support.
1537
1538         * target.h (struct target_option_hooks): Add fields to say whether
1539         the cold attribute implies -Os and the hot attribute implies -O3.
1540
1541         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
1542         By default, do not turn on -Os for cold functions.
1543         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
1544         not turn on -O3 for hot functions.
1545
1546         * c-common.c (handle_hot_attribute): Use target hook to determine
1547         if hot functions should enable -O3.
1548         (handle_cold_attribute): Use target hook to determine if cold
1549         functions should enable -Os.
1550
1551         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
1552         (override_options): Move disable scheduling to
1553         optimization_options.
1554         (optimization_options): Disable scheduling here, not
1555         override_options.
1556         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1557         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1558
1559         * config/ia64/ia64.c (ia64_override_options): Move setting
1560         scheduling flags to ia64_optimization_options.
1561         (ia64_optimization_options): Disable scheduling options here, and
1562         not in ia64_override_options.
1563         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1564         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1565
1566 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
1567
1568         PR target/36936
1569         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
1570
1571 2008-07-25  Martin Jambor  <mjambor@suse.cz>
1572
1573         PR tree-optimization/36926
1574         * ipa-prop.c (ipa_analyze_call_uses): Call
1575         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
1576
1577 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
1578
1579         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
1580         movv2si_internal): Add mem = reg alternative.
1581
1582 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
1583
1584         PR bootstrap/36918
1585         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
1586         DEFAULT_PCC_STRUCT_RETURN to 127.
1587
1588 2008-07-24  Jan Hubicka  <jh@suse.cz>
1589
1590         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
1591         (build_cgraph_edges): Likewise.
1592         * cgraph.c (cgraph_node): Do not update assembler hash.
1593         (cgraph_remove_node): Drop non-unit-at-a-time code.
1594         * tree-pass.h (pass_O0_always_inline): Remove.
1595         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
1596         * toplev.c (process_options): Flag unit-at-a-time does not imply
1597         no section anchors.
1598         * cgraphunit.c: Update comments.
1599         (decide_is_function_needed): Drop non-unit-at-a-time mode.
1600         (cgraph_assemble_pending_functions): Remove.
1601         (cgraph_reset_node): Drop non-unit-at-a-time code.
1602         (cgraph_finalize_function): Likewise.
1603         (cgraph_analyze_function): Likewise.
1604         (cgraph_finalize_compilation_unit): Likewise.
1605         (cgraph_expand_function): Likewise.
1606         (cgraph_optimize): Likesise.
1607         (save_inline_function_body): Likewise.
1608         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
1609         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
1610         * ipa-inline.c: Update comments.
1611         (enum inlining_mode): remove INLINE_SPEED.
1612         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
1613         (cgraph_mark_inline_edge): Likewise.
1614         (try_inline): Likewise.
1615         (cgraph_decide_inlining_incrementally): Likewise.
1616         (cgraph_gate_inlining): Remove.
1617         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
1618         (cgraph_gate_early_inlining): Likewise.
1619         (gate_inline_passes): Remove.
1620         (pass_inline_parameters, pass_ipa_inline): Remove gates.
1621         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
1622         pass_O0_always_inline): Remove.
1623         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
1624         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
1625         * opts.c (no_unit_at_a_time_default): Remove.
1626         (decode_options): Remove flag_unit_at_a_time reset and warning.
1627         * opts.h (no_unit_at_a_time_default): Remove.
1628         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
1629         early in GNU dialect.
1630         (merge_decls): Update comment; drop unit-at-a-time check.
1631         (finish_decl): Likewise.
1632         (grok_declaration): Remove flag_inline_trees code.
1633         (finish_functions): Return on function returning non-void on all
1634         statics.
1635         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
1636         * cfgexpand.c (expand_one_static_var): Remove.
1637         (expand_one_var): Remove expand_one_static_var call.
1638         (expand_used_vars_for_block): Remove flag_unit_a_time check.
1639         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
1640         and flag_unit_at_a-time compatibility checks.
1641         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
1642         * tree-inline.c (flag_inline_trees): Remove.
1643         (inlinable_function_p): Don't check it.
1644         (expand_call_inline): Remove non-unit-at-a-time code.
1645         * tree-inline.h (flag_inline_trees): Remove.
1646         * tree-optimize.c (execute_early_local_optimizations): Remove
1647         unit-at-a-time checks.
1648         (tree_rest_of_compilation): Likewise.
1649         * combine.c (setup_incoming_promotions): Likewise.
1650         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
1651         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
1652         * passes.c (pass_inline_parameters): Update comments; remove
1653         O0_alwaysinline pass.
1654         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
1655         (execute_one_pass): Likewise.
1656         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
1657         (ix86_function_sseregparm): Likewise.
1658         * arm.c (arm_function_in_section_p): Likewise.
1659         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
1660         * varpool.c: Update comments.
1661         (decide_is_variable_needed): Remove unit-at-a-time checks.
1662         (varpool_finalize_decl): Likewise.
1663
1664 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
1665
1666         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
1667         to 2 instead of -1.
1668         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
1669
1670 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
1671
1672         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
1673         imp symbol extension.
1674
1675         2008-07-23  Ian Lance Taylor  <iant@google.com>
1676
1677         * tree-vrp.c (infer_value_range): Ignore asm statements when
1678         looking for memory accesses for -fdelete-null-pointer-checks.
1679
1680 2008-07-24  Ben Elliston  <bje@au.ibm.com>
1681
1682         * config/spu/spu-c.c (__vector_keyword): New variable.
1683         (vector_keyword): Likewise.
1684         (spu_categorize_keyword): New function.
1685         (spu_macro_to_expand): Likewise.
1686         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
1687         compiling an ISO C dialect.
1688
1689 2008-07-24  Ben Elliston  <bje@au.ibm.com>
1690
1691         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
1692         conventional usage.
1693
1694 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1695
1696         * configure: Regenerate.
1697         * configure.ac: Require texinfo 4.7.
1698         * doc/install.texi: Document texinfo 4.7 requirement.
1699
1700 2008-07-23  Martin Jambor  <mjambor@suse.cz>
1701
1702         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
1703         rather than for DECL_SAVED_TREE.
1704         * ipa-prop.c: Include diagnostic.h.
1705         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
1706         thoroughly.
1707         (ipa_detect_param_modifications): Function rewritten from scratch.
1708         (ipa_compute_jump_functions): Changed accesses to modification flags.
1709         (ipa_free_node_params_substructures): Update flags destruction.
1710         (ipa_node_duplication_hook): Update flags duplication.
1711         (ipa_print_all_params_modified): Updated flag access.
1712         * ipa-prop.h (struct ipa_param_flags): New structure.
1713         (struct ipa_node_params): New field modification_analysis_done,
1714         modified_flags changed into param_flags.
1715         (ipa_is_ith_param_modified): Changed to use new flags.
1716         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
1717
1718         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
1719         ipa-cp.c and split into two functions.
1720         (ipa_print_node_jump_functions): New function.
1721         (compute_scalar_jump_functions): New function.
1722         (type_like_member_ptr_p): New function.
1723         (compute_pass_through_member_ptrs): New function.
1724         (fill_member_ptr_cst_jump_function): New function.
1725         (determine_cst_member_ptr): New function.
1726         (compute_cst_member_ptr_arguments): New function.
1727         (ipa_compute_jump_functions): Complete rewrite.
1728         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
1729         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
1730         (struct ipa_member_ptr_cst): New structure.
1731         (union jump_func_value): New field member_cst.
1732         * ipa-cp.c (ipcp_lat_is_insertable): New function.
1733         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
1734         jump function types.
1735         (ipcp_print_all_lattices): Slight fprintf rearrangement.
1736         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
1737         instead of ipcp_print_all_jump_functions.
1738         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
1739         only for replacable scalars.
1740
1741         * doc/invoke.texi (Optimize options): Add description of
1742         -findirect-inlining.
1743         * common.opt (flag_indirect_inlining): New flag.
1744         * opts.c (decode_options): Set flag_indirect_inlining when
1745         optimize >= 3.
1746
1747         * ipa-inline.c: Include ipa-prop.h.
1748         (inline_indirect_intraprocedural_analysis): New function.
1749         (inline_generate_summary): Allocate parameter and argument info
1750         structures, call inline_indirect_intraprocedural_analysis on each
1751         node when doing indirect inlining and deallocate indirect inlining
1752         data structures in the end.
1753         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
1754         (free_all_ipa_structures_after_iinln): New function.
1755         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
1756         done.
1757         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
1758
1759         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
1760         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1761         of computing the frequency separately.
1762         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1763         of computing the frequency separately.
1764         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
1765         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
1766         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
1767         (ipa_get_stmt_member_ptr_load_param): New function.
1768         (ipa_is_ssa_with_stmt_def): New function.
1769         (ipa_note_param_call): New function.
1770         (ipa_analyze_call_uses): New function.
1771         (ipa_analyze_stmt_uses): New function.
1772         (ipa_analyze_params_uses): New function.
1773         (ipa_free_node_params_substructures): Also free the param_calls linked
1774         list.
1775         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
1776         (ipa_print_node_param_flags): New function.
1777         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
1778         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
1779         * ipa-prop.h (struct ipa_param_flags): New field called.
1780         (struct ipa_param_call_note): New structure.
1781         (struct ipa_node_params): New fields param_calls and
1782         uses_analysis_done.
1783         (ipa_is_ith_param_called): New function.
1784         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1785         ipa_analyze_params_uses and dump parameter flags.
1786
1787         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
1788         ipa_propagate_indirect_call_infos if performing indirect inlining,
1789         pass a new parameter new_edges to it.
1790         (add_new_edges_to_heap): New fucntion.
1791         (cgraph_decide_inlining_of_small_functions): New vector
1792         new_indirect_edges for newly found indirect edges , call
1793         ipa_propagate_indirect_call_infos after inlining.
1794         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
1795         inlining if performing indirect inlining.  Call
1796         free_all_ipa_structures_after_iinln when doing so too.
1797         (inline_generate_summary): Do not call
1798         free_all_ipa_structures_after_iinln here.
1799         * ipa-prop.c (update_jump_functions_after_inlining): New function.
1800         (print_edge_addition_message): New function.
1801         (update_call_notes_after_inlining): New function.
1802         (propagate_info_to_inlined_callees): New function.
1803         (ipa_propagate_indirect_call_infos): New function.
1804         * ipa-prop.h: Include cgraph.h
1805         (struct ipa_param_call_note): Fields reordered, new field processed.
1806         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
1807         flag indirect_call.
1808         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
1809         rediscovered call statements.
1810         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
1811         (dump_cgraph_node): Dump also the indirect_call flag.
1812         (cgraph_clone_edge): Copy also the indirect_call flag.
1813         * tree-inline.c (copy_bb): Do not check for fndecls from call
1814         expressions, check for edge availability when moving clones.
1815         (get_indirect_callee_fndecl): New function.
1816         (expand_call_inline): If callee declaration is not apprent from
1817         the statement, try calling get_indirect_callee_fndecl.  Do not
1818         issue warnings or call sorry when not inlinings an indirect edge.
1819         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
1820
1821         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
1822         bit more frandly to matching.
1823         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
1824         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
1825         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
1826
1827 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
1828
1829         PR 36907
1830         * opth-gen.awk: Suppress function specific features when building
1831         target libraries.
1832         * optc-gen.awk: Ditto.
1833
1834 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1835
1836         PR 35058
1837         * diagnostic.c (pedwarn): Add opt parameter.
1838         (pedwarn0): New.
1839         * c-tree.h (pedwarn_init): Add opt parameter.
1840         (pedwarn_c90): Likewise.
1841         (pedwarn_c99): Likewise.
1842         * c-errors.c (pedwarn_c99): Likewise.
1843         (pedwarn_c90): Likewise.
1844         * toplev.h (pedwarn): Update declaration.
1845         (pedwarn0): Declare.
1846         * c-lex.c: All calls to pedwarn changed.
1847         * builtins.c: All calls to pedwarn changed.
1848         * toplev.c: All calls to pedwarn changed.
1849         * c-decl.c: All calls to pedwarn changed.
1850         * c-typeck.c: All calls to pedwarn changed.
1851         * c-common.c: All calls to pedwarn changed.
1852         * c-parser.c: All calls to pedwarn changed.
1853
1854 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
1855             Karthik Kumar  <karthikkumar@gmail.com>
1856
1857         * attribs.c (file scope): Include c-common.h.
1858         (decl_attributes): Add support for #pragma GCC optimize and
1859         #pragma GCC option.
1860
1861         * targhooks.c (default_can_inline_p): New function that is the
1862         default for the TARGET_CAN_INLINE_P target hook.
1863
1864         * targhooks.h (default_can_inline_p): Add declaration.
1865
1866         * tree.c (cl_optimization_node): New static tree for building
1867         OPTIMIZATION_NODE tree.
1868         (cl_target_option_node): New static tree for building
1869         TARGET_OPTION_NODE tree.
1870         (cl_option_hash_table): New hash table for hashing
1871         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1872         (cl_option_hash_hash): New function to provide the hash value for
1873         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1874         (cl_option_hash_eq): New function to provide an equality test for
1875         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1876         (tree_code_size): Add support for OPTIMIZATION_NODE and
1877         TARGET_OPTION_NODE trees.
1878         (tree_code_structure): Add support for OPTIMIZATION_NODE and
1879         TARGET_OPTION_NODE trees.
1880         (build_optimization_node): Build a tree that has all of the
1881         current optimization options.
1882         (build_target_option_node): Build a tree that has the target
1883         options that might be changed on a per function basis.
1884
1885         * tree.h (file scope): Include options.h.
1886         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
1887         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1888         (TREE_OPTIMIZATION): Ditto.
1889         (TREE_TARGET_SPECIFIC): Ditto.
1890         (struct tree_function_decl): Add fields for remembering the
1891         current optimization options and target specific options.
1892         (struct tree_optimization_option): New tree variant that remembers
1893         the optimization options.
1894         (struct tree_target_option): New tree variant that remembers the
1895         target specific flags that might change for compiling a particular
1896         function.
1897         (union tree_node): Include tree_optimization_option and
1898         tree_target_option fields.
1899         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
1900         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
1901         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
1902         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
1903         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
1904         optimization and target options.
1905         (optimization_default_node): New macro to refer to global_trees
1906         field.
1907         (optimization_current_node): Ditto.
1908         (optimization_cold_node): Ditto.
1909         (optimization_hot_node): Ditto.
1910         (target_option_default_node): Ditto.
1911         (target_option_current_node): Ditto.
1912         (current_option_pragma): Ditto.
1913         (current_optimize_pragma): Ditto.
1914
1915         * target.h (struct gcc_target): Add valid_option_attribute_p,
1916         target_option_save, target_option_restore, target_option_print,
1917         target_option_pragma_parse, and can_inline_p hooks.
1918
1919         * toplev.h (parse_optimize_options): Add declaration.
1920         (fast_math_flags_struct_set_p): Ditto.
1921
1922         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
1923         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
1924         optimize is used.
1925
1926         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
1927         tree_can_inline_p hook to see if one function can inline another.
1928         (cgraph_decide_inlining): Ditto.
1929         (cgraph_decide_inlining_incrementally): Ditto.
1930
1931         * opts.c (decode_options): Add support for running multiple times
1932         to allow functions with different target or optimization options
1933         than was specified on the command line.
1934         (fast_math_flags_struct_set_p): New function that is similar to
1935         fast_math_flags_set_p, except it uses the values in the
1936         cl_optimization structure instead of global variables.
1937
1938         * optc-gen.awk: Add support for TargetSave to allow a back end to
1939         declare new fields that need to be saved when using function
1940         specific options.  Include flags.h and target.h in the options.c
1941         source.  Add support for Save to indicate which options can be set
1942         for individual functions.  Generate cl_optimize_save,
1943         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
1944         cl_target_option_restore, cl_target_option_print functions to
1945         allow functions to use different optimization or target options.
1946
1947         * opt-functions.awk (var_type_struct): Return the type used for
1948         storing the field in a structure.
1949
1950         * opth-gen.awk: Add support for TargetSave to allow a back end to
1951         declare new fields that need to be saved when using function
1952         specific options.  Add support for Save to indicate which options
1953         can be set for individual functions.  Only generate one extern for
1954         Mask fields.  Generate cl_optimization and cl_target_option
1955         structures to remember optimization and target options.
1956
1957         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
1958         collecting new tree nodes.
1959         (TS_TARGET_OPTION): Ditto.
1960
1961         * c-decl.c (merge_decls): Merge function specific target and
1962         optimization options.
1963
1964         * function.c (invoke_set_current_function_hook): If the function
1965         uses different optimization options, change the global variables
1966         to reflect this.
1967
1968         * coretypes.h (struct cl_optimization): Add forward reference.
1969         (struct cl_target_option): Ditto.
1970
1971         * c-pragma.c (option_stack): New static vector to remember the
1972         current #pragma GCC option stack.
1973         (handle_pragma_option): New function to support #pragma GCC option
1974         to change target options.
1975         (optimize_stack): New static vector to remember the current
1976         #pragma GCC optimize stack.
1977         (handle_pragma_optimize): New function to support #pragma GCC
1978         optimize to change optimization options.
1979         (init_pragma): Add support for #pragma GCC optimize and #pragma
1980         GCC option.
1981
1982         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
1983         optimization options.
1984         (TARGET_OPTION_NODE): New tree code for remembering certain target
1985         options.
1986
1987         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
1988         TARGET_OPTION_NODE trees.
1989
1990         * common.opt (-O): Add Optimization flag.
1991         (-Os): Ditto.
1992         (-fmath-errno): Ditto.
1993         (-falign-functions): Add UInteger flag to make sure flag gets full
1994         int in cl_optimization structure.
1995         (-falign-jumps): Ditto.
1996         (-falign-labels): Ditto.
1997         (-falign-loops): Ditto.
1998         (-fsched-stalled-insns): Ditto.
1999         (-fsched-stalled-insns-dep): Ditto.
2000
2001         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
2002         definition.
2003         (TARGET_OPTION_SAVE): Ditto.
2004         (TARGET_OPTION_RESTORE): Ditto.
2005         (TARGET_OPTION_PRINT): Ditto.
2006         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
2007         (TARGET_CAN_INLINE_P): Ditto.
2008         (TARGET_INITIALIZER): Add new hooks.
2009
2010         * tree-inline.c (tree_can_inline_p): New function to determine
2011         whether one function can inline another.  Check if the functions
2012         use compatible optimization options, and also call the backend
2013         can_inline_p hook.
2014
2015         * tree-inline.h (tree_can_inline_p): Add declaration.
2016
2017         * c-common.c (c_common_attribute): Add support for option and
2018         optimize attributes.
2019         (handle_option_attribute): Add support for the option attribute to
2020         allow the user to specify different target options for compiling a
2021         specific function.
2022         (handle_optimize_attribute): Add support for the optimize
2023         attribute to allow the user to specify different optimization
2024         options for compiling a specific function.
2025         (handle_hot_attribute): Turn on -O3 optimization for this one
2026         function if it isn't the default optimization level.
2027         (handle_cold_attribute): Turn on -Os optimization for this one
2028         function if it insn't the default optimization.
2029         (const_char_p): New const char * typedef.
2030         (optimize_args): New static vector to remember the optimization
2031         arguments.
2032         (parse_optimize_options): New function to set up the optimization
2033         arguments from either the optimize attribute or #pragma GCC optimize.
2034
2035         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
2036         (builtin_define_std): Ditto.
2037
2038         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
2039         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
2040         (x86_64-*-*): Ditto.
2041
2042         * Makefile.in (TREE_H): Add options.h.
2043         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
2044
2045         * doc/extend.texi (option attribute): Document new attribute.
2046         (optimize attribute): Ditto.
2047         (hot attribute): Document hot attribute sets -O3.
2048         (cold attribute): Document cold attribute sets -Os.
2049         (#pragma GCC option): Document new pragma.
2050         (#pragma GCC optimize): Ditto.
2051
2052         * doc/options.texi (TargetSave): Document TargetSave syntax.
2053         (UInteger): Document UInteger must be used for certain flags.
2054         (Save): Document Save option to create target specific options
2055         that can be saved/restored on a function specific context.
2056
2057         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
2058         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
2059
2060         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
2061         (TARGET_OPTION_SAVE): Ditto.
2062         (TARGET_OPTION_RESTORE): Ditto.
2063         (TARGET_OPTION_PRINT): Ditto.
2064         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
2065         (TARGET_CAN_INLINE_P): Ditto.
2066
2067         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
2068         -mfpmath=sse,387.
2069         (-mfpmath=both): Ditto.
2070
2071 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
2072             Karthik Kumar  <karthikkumar@gmail.com>
2073
2074         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
2075         (TARGET_POPCNT): Ditto.
2076         (TARGET_SAHF): Ditto.
2077         (TARGET_AES): Ditto.
2078         (TARGET_PCLMUL): Ditto.
2079         (TARGET_CMPXCHG16B): Ditto.
2080         (TARGET_RECIP): Move switch into target_flags.
2081         (TARGET_FUSED_MADD): Ditto.
2082         (ix86_arch_features): Make an unsigned char type.
2083         (ix86_tune_features): Ditto.
2084         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
2085         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
2086         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
2087
2088         * config/i386/i386.opt (arch): New TargetSave field to define
2089         fields that need to be saved for function specific option support.
2090         (tune): Ditto.
2091         (fpmath): Ditto.
2092         (branch_cost): Ditto.
2093         (ix86_isa_flags_explicit): Ditto.
2094         (tune_defaulted): Ditto.
2095         (arch_specified): Ditto.
2096         (-m128-long-double): Add Save flag to save option for target
2097         specific option support.
2098         (-m80387): Ditto.
2099         (-maccumulate-outgoing-args): Ditto.
2100         (-malign-double): Ditto.
2101         (-malign-stringops): Ditto.
2102         (-mfancy-math-387): Ditto.
2103         (-mhard-float): Ditto.
2104         (-mieee-fp): Ditto.
2105         (-minline-all-stringops): Ditto.
2106         (-minline-stringops-dynamically): Ditto.
2107         (-mms-bitfields): Ditto.
2108         (-mno-align-stringops): Ditto.
2109         (-mno-fancy-math-387): Ditto.
2110         (-mno-push-args): Ditto.
2111         (-mno-red-zone): Ditto.
2112         (-mpush-args): Ditto.
2113         (-mred-zone): Ditto.
2114         (-mrtd): Ditto.
2115         (-msseregparm): Ditto.
2116         (-mstack-arg-probe): Ditto.
2117         (-m32): Ditto.
2118         (-m64): Ditto.
2119         (-mmmx): Ditto.
2120         (-m3dnow): Ditto.
2121         (-m3dnowa): Ditto.
2122         (-msse): Ditto.
2123         (-msse2): Ditto.
2124         (-msse3): Ditto.
2125         (-msse4.1): Ditto.
2126         (-msse4.2): Ditto.
2127         (-msse4): Ditto.
2128         (-mno-sse4): Ditto.
2129         (-msse4a): Ditto.
2130         (-msse5): Ditto.
2131         (-mrecip): Move flag into target_flags.
2132         (-mcld): Ditto.
2133         (-mno-fused-madd): Ditto.
2134         (-mfused-madd): Ditto.
2135         (-mabm): Move flag into ix86_isa_flags.
2136         (-mcx16): Ditto.
2137         (-mpopcnt): Ditto.
2138         (-msahf): Ditto.
2139         (-maes): Ditto.
2140         (-mpclmul): Ditto.
2141
2142         * config/i386/i386-c.c: New file for #pragma support.
2143         (ix86_target_macros_internal): New function to #define or #undef
2144         target macros based when the user uses the #pragma GCC option to
2145         change target options.
2146         (ix86_pragma_option_parse): New function to add #pragma GCC option
2147         support.
2148         (ix86_target_macros): Move defining the target macros here from
2149         TARGET_CPU_CPP_BUILTINS in i386.h.
2150         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
2151         defined, initialize any subtarget #pragmas.
2152
2153         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
2154         REGISTER_TARGET_PRAGMAS.
2155
2156         * config/i386/t-i386: New file for x86 dependencies.
2157         (i386.o): Make dependencies mirror the include files used.
2158         (i386-c.o): New file, add dependencies.
2159
2160         * config/i386/i386-protos.h (override_options): Add bool argument.
2161         (ix86_valid_option_attribute_tree): Add declaration.
2162         (ix86_target_macros): Ditto.
2163         (ix86_register_macros): Ditto.
2164
2165         * config/i386/i386.c (ix86_tune_features): Move initialization of
2166         the target masks to initial_ix86_tune_features to allow functions
2167         to have different target options.  Make type unsigned char,
2168         instead of unsigned int.
2169         (initial_ix86_tune_features): New static vector to hold processor
2170         masks for the tune variables.
2171         (ix86_arch_features): Move initialization of the target masks to
2172         initial_ix86_arch_features to allow functions to have different
2173         target options.  Make type unsigned char, instead of unsigned int.
2174         (initial_ix86_arch_features): New static vector to hold processor
2175         masks for the arch variables.
2176         (enum ix86_function_specific_strings): New enum to describe the
2177         string options used for attribute((option(...))).
2178         (ix86_target_string): New function to return a string that
2179         describes the target options.
2180         (ix86_debug_options): New function to print the current options in
2181         the debugger.
2182         (ix86_function_specific_save): New function hook to save the
2183         function specific global variables in the cl_target_option structure.
2184         (ix86_function_specific_restore): New function hook to restore the
2185         function specific variables from the cl_target_option structure to
2186         the global variables.
2187         (ix86_function_specific_print): New function hook to print the
2188         target specific options in the cl_target_option structure.
2189         (ix86_valid_option_attribute_p): New function hook to validate
2190         attribute((option(...))) arguments.
2191         (ix86_valid_option_attribute_tree): New function that is common
2192         code between attribute((option(...))) and #pragma GCC option
2193         support that parses the options and returns a tree holding the options.
2194         (ix86_valid_option_attribute_inner_p): New helper function for
2195         ix86_valid_option_attribute_tree.
2196         (ix86_can_inline_p): New function hook to decide if one function
2197         can inline another on a target specific basis.
2198         (ix86_set_current_function); New function hook to switch target
2199         options if the user used attribute((option(...))) or #pragma GCC
2200         option.
2201         (ix86_tune_defaulted): Move to static file scope from
2202         override_options.
2203         (ix86_arch_specified): Ditto.
2204         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
2205         ix86_isa_flags.
2206         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
2207         (OPTION_MASK_ISA_ABM_SET): Ditto.
2208         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
2209         (OPTION_MASK_ISA_CX16_SET): Ditto.
2210         (OPTION_MASK_ISA_SAHF_SET): Ditto.
2211         (OPTION_MASK_ISA_AES_UNSET): Ditto.
2212         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
2213         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
2214         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
2215         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
2216         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
2217         (struct ptt): Move to static file scope from override_options.
2218         (processor_target_table): Ditto.
2219         (cpu_names): Ditto.
2220         (ix86_handle_option): Add support for options that are now isa options.
2221         (override_options): Add support for declaring functions that
2222         support different target options than were specified on the
2223         command line.  Move struct ptt, processor_target_table, cpu_names,
2224         ix86_tune_defaulted, ix86_arch_specified to static file scope.
2225         Add bool argument.  Fix up error messages so the appropriate error
2226         is given for either command line or attribute.
2227         (ix86_previous_fndecl): New static to remember previous function
2228         declaration to see if we need to change target options.
2229         (ix86_builtins_isa): New array to record the ISA of each builtin
2230         function.
2231         (def_builtin): Always create the builtin function, even if the
2232         current ISA doesn't support it.
2233         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
2234         tests for those builtins.
2235         (ix86_init_builtins): Remove TARGET_MMX test for calling
2236         ix86_init_mmx_sse_builtins.
2237         (ix86_expand_builtin): If the current ISA doesn't support a given
2238         builtin, signal an error.
2239         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
2240         (TARGET_SET_CURRENT_FUNCTION): Ditto.
2241         (TARGET_OPTION_SAVE): Ditto.
2242         (TARGET_OPTION_RESTORE): Ditto.
2243         (TARGET_OPTION_PRINT): Ditto.
2244         (TARGET_CAN_INLINE_P): Ditto.
2245
2246 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
2247
2248         * c-typeck.c (build_external_ref): Don't call assemble_external.
2249         * final.c (output_operand): Call assemble_external.
2250
2251 2008-07-21  DJ Delorie  <dj@redhat.com>
2252
2253         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
2254         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
2255
2256 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2257
2258         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
2259         original insn and splitter contents into ...
2260         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
2261         flag_unsafe_math_optimizations.  Add dummy scratch register.
2262         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
2263         !flag_unsafe_math_optimizations.  Returns number with next
2264         highest magnitude if this is still less or equal to the true
2265         quotient in magnitude.
2266
2267 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
2268
2269         * Makefile.in: Replace toplev.h with TOPLEV_H.
2270         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
2271         * c-lex.c (fe_file_change): Don't set in_system_header.
2272         * c-parser.c (c_token): Remove in_system_header.
2273         (c_lex_one_token): Don't set in_system_header.
2274         (c_parser_set_source_position_from_token): Don't set in_system_header.
2275         * diagnostic.c (diagnostic_report_diagnostic): Use location from
2276         diagnostic_info.
2277         (warning_at): New.
2278         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
2279         * flags.h (in_system_header): Remove.
2280         * function.c (saved_in_system_header): Remove.
2281         (push_cfun): Don't set in_system_header.
2282         (pop_cfun): Don't set in_system_header.
2283         (push_struct_function): Don't set in_system_header.
2284         * input.h (expanded_location): Add sysp.
2285         (in_system_header_at): New.
2286         (in_system_header): New.
2287         * toplev.c (in_system_header): Remove.
2288         * toplev.h: Include input.h
2289         (warning_at): New.
2290         * tree-cfg.c (execute_warn_function_return): Call warning_at.
2291         * tree-ssa.c (warn_uninit): Call warning_at.
2292         (warn_uninitialized_var): Update calls to warn_uninit.
2293         (warn_uninitialized_phi): Update calls to warn_uninit.
2294         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
2295         (expand_location): Initialize xloc.sysp.
2296         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
2297         (tree_decl_with_vis): Remove in_system_header_flag.
2298
2299 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
2300
2301         PR target/36822
2302         * recog.c (asm_operand_ok): Change the order of the extra
2303         memory constraint checks.
2304
2305 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2306
2307         PR tree-opt/36879
2308         * tree-switch-conversion.c (build_one_array): Call
2309         varpool_mark_needed_node and varpool_finalize_decl
2310         instead of assemble_variable.
2311
2312 2008-07-19  Jan Hubicka  <jh@suse.cz>
2313
2314         * cgraph.c (cgraph_add_new_function): Do early local passes.
2315         * tree-nrv.c (gate_pass_return_slot): New gate.
2316         (pass_nrv): Add the gate.
2317         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
2318         functions.
2319         (coalesce_ssa_name): Coalesce SSA names.
2320         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
2321         not optimizing so unused user vars remains visible.
2322         * common.opt (flag_tree_ter): Always enable by default.
2323         * tree-ssa-ter.c: Include flags.h
2324         (is_replaceable_p): Check that locations match; when aliasing is missing
2325         be conservative about loads.
2326         * tree-optimize.c (gate_init_datastructures): Remove.
2327         (pass_init_datastructures): New.
2328         * passes.c: Reorder passes so we always go into SSA.
2329
2330 2008-07-19  Jan Hubicka  <jh@suse.cz>
2331
2332         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
2333         * doc/invoke.texi (--combine): Likewise.
2334         (-finline-functions-called-once): Update levels when enabled.
2335         (-funit-at-a-time): Document new behaviour.
2336         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
2337         -fno-section-anchors when disabled explicitly.
2338         (inline params): They are not ignored now.
2339         (precompiled headers): Remove unit-at-a-time as being incompatible.
2340         * opts.c (decode_options): Handle unit-at-a-time as alias;
2341         imply -fno-section-anchors when toplevel reorder is disabled
2342         explicitly.
2343         * common.opt (ftoplevel-reorder): Set default value to 2.
2344         (funit-at-a-time): Set default value to 1.
2345         * config/rs6000/rs6000.c (optimization_options): Set section anchors
2346         to 2.
2347
2348 2008-07-19  Jan Hubicka  <jh@suse.cz>
2349
2350         * builtins.c (expand_builtin_int_roundingfn,
2351         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
2352         it is not useful.
2353
2354 2008-07-19  Richard Guenther  <rguenther@suse.de>
2355
2356         PR bootstrap/36864
2357         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
2358         * tree-ssa-sccvn.c (get_constant_value_id): New function.
2359         * tree-ssa-pre.c (get_expr_value_id): For newly created
2360         constant value-ids make sure to add the expression to its
2361         expression-set.
2362
2363 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
2364
2365         PR middle-end/36877
2366         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
2367         return value of the builtin is ignored.
2368
2369 2008-07-19  Olivier Hainque  <hainque@adacore.com>
2370
2371         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
2372         bits, a C conformant malloc implementation has to provide.
2373         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
2374
2375 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
2376
2377         PR target/36780
2378         PR target/36827
2379         * reload.c (find_reloads_subreg_address): Only reload address if
2380         reloaded == 0, not for reloaded != 1.
2381
2382         Revert:
2383         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
2384         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
2385         (m32c_legitimate_address_p): Handle "++rii" addresses created by
2386         m32c_legitimize_reload_address.
2387
2388         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2389         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
2390         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
2391
2392 2008-07-19  Olivier Hainque  <hainque@adacore.com>
2393
2394         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
2395         argument, saying whether nested array are to be collapsed
2396         into a single array type DIE with multiple subscripts.
2397         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
2398         issues, centralize the nested array types collapsing control and
2399         disable the transformation for Ada.
2400
2401 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
2402
2403         PR target/36786
2404         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
2405         x86_64_shift_adj.
2406         (x86_64_shift_adj_2): New expander.
2407         (x86_64_shift_adj_3): Ditto.
2408         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
2409         to split TImode operands.
2410         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
2411         (ix86_split_lshr): Ditto.
2412
2413 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
2414
2415         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
2416         and __CHAR32_TYPE__.
2417         * c-typeck.c (digest_init): Support char16_t and char32_t.
2418         (set_nonincremental_init_from_string): Idem.
2419
2420 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2421
2422         PR middle-end/36859
2423         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
2424         PREFERRED_STACK_BOUNDARY.
2425         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2426
2427 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2428
2429         PR middle-end/36858
2430         * function.c (locate_and_pad_parm): Cap boundary earlier.
2431
2432 2008-07-17  Julian Brown  <julian@codesourcery.com>
2433
2434         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
2435         no-op for targets which don't use DLLs.
2436
2437 2008-07-17  Martin Jambor  <mjambor@suse.cz>
2438
2439         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
2440         that nodes are relevant by examining the node->analyzed flag.
2441         (ipcp_init_stage): Check which nodes are relevant, assert that the
2442         relevant ones are also required.
2443         (ipcp_propagate_stage): Check on the side arrays are properly
2444         allocated.
2445         (ipcp_print_all_jump_functions): Make sure not to touch any node
2446         that is not analyzed or an edge that does not have a corresponding
2447         entry in the on-the-side vectors.
2448         (ipcp_function_scale_print): Likewise.
2449         (ipcp_update_callgraph): Check that the node is relevant.
2450         (ipcp_insert_stage): Check that the node is relevant.  Check there is
2451         an info for every node and edge.
2452         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
2453         (ipa_print_all_tree_maps): Likewise and a new variable info.
2454         (ipa_print_all_params_modified): Likewise.
2455         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
2456
2457 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
2458
2459         PR target/25343
2460         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
2461
2462 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
2463
2464         PR rtl-optimization/36753
2465         * fwprop.c (use_killed_between): Don't shortcut
2466         single-definition global registers.
2467
2468 2008-07-16  Jan Hubicka  <jh@suse.cz>
2469
2470         * cgraph.h (varpool_empty_needed_queue): Declare.
2471         * cgraphunit.c (output_in_order): Mark all variables as needed;
2472         empty the queue.
2473         * varpool.c (varpool_assemble_node): Update debug queue.
2474         (varpool_assemble_pending_decls): Don't do it here.
2475         (varpool_empty_needed_queue):  New function.
2476
2477 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2478
2479         * recog.c (peephole2_optimize): Fix formatting.
2480
2481 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2482
2483         * c-pch.c (get_ident): Avoid C++ keywords.
2484         * combine-stack-adj.c (single_set_for_csa): Likewise.
2485         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
2486         output_asm_insn): Likewise.
2487         * reload.c (push_secondary_reload, find_reusable_reload,
2488         push_reload, combine_reloads, find_reloads,
2489         debug_reload_to_stream): Likewise.
2490         * reload.h (struct reload): Likewise.
2491         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
2492         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
2493         emit_output_reload_insns): Likewise.
2494         * targhooks.c (default_secondary_reload): Likewise.
2495         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
2496
2497 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2498
2499         * recog.c (validate_change_1, validate_change,
2500         validate_unshare_change, validate_replace_rtx_1, struct
2501         funny_match, constrain_operands, peephole2_optimize): Avoid C++
2502         keywords.
2503         * reload.c (push_secondary_reload, secondary_reload_class,
2504         scratch_reload_class, find_valid_class, find_reusable_reload,
2505         push_reload, find_dummy_reload, find_reloads_address_1,
2506         find_reloads_address_part, find_equiv_reg): Likewise.
2507         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
2508         choose_reload_regs): Likewise.
2509         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
2510         Likewise.
2511         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
2512         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
2513         * sched-rgn.c (concat_INSN_LIST): Likewise.
2514         * stor-layout.c (mode_for_size, mode_for_size_tree,
2515         smallest_mode_for_size): Likewise.
2516
2517 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2518
2519         * cfg.c (dump_reg_info): Avoid C++ keywords.
2520         * dwarf2asm.c (dw2_force_const_mem,
2521         dw2_asm_output_encoded_addr_rtx): Likewise.
2522         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
2523         * expmed.c (expand_shift): Likewise.
2524         * global.c (find_reg): Likewise.
2525         * graph.c (draw_edge): Likewise.
2526         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
2527         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
2528         widen_clz, widen_bswap, expand_parity, expand_unop,
2529         emit_cmp_and_jump_insn_1): Likewise.
2530         * postreload.c (reload_cse_simplify_operands): Likewise.
2531         * ra.h (add_neighbor): Likewise.
2532         * reg-stack.c (remove_regno_note, change_stack): Likewise.
2533         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
2534         record_reg_classes, copy_cost, record_address_regs,
2535         invalid_mode_change_p): Likewise.
2536         * regrename.c (regrename_optimize, scan_rtx_reg,
2537         dump_def_use_chain, find_oldest_value_reg,
2538         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
2539
2540 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
2541
2542         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
2543         MASK_POWERPC64 for power4 in previous commit.
2544
2545 2008-07-16  Olivier Hainque  <hainque@adacore.com>
2546
2547         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
2548         instead of bare conversion to cast const-ness away.
2549
2550 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
2551
2552         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
2553         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
2554         * config/xtensa/xtensa.c (xtensa_function_value): New function.
2555         (TARGET_FUNCTION_VALUE): Define.
2556
2557 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
2558
2559         * config/rs6000/rs6000.c (processor_target_table): Add
2560         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
2561
2562 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
2563
2564         PR target/36827
2565         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
2566         (m32c_legitimate_address_p): Handle "++rii" addresses created by
2567         m32c_legitimize_reload_address.
2568
2569 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
2570
2571         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
2572         DECL_IN_SYSTEM_HEADER in sync.
2573
2574 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
2575
2576         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
2577         * tree-ssa-pre.c (pre_expr_eq): Ditto
2578         (get_constant_for_value_id): Take a type as an argument.
2579         (fully_constant_expression): Pass in type.
2580         (find_or_generate_expression): Short circuit constant case.
2581         (create_expression_by_pieces): Remove special casing of
2582         pointer_plus.
2583         (do_regular_insertion): Short circuit constant case.
2584         (do_partial_partial_insertion): Ditto.
2585
2586 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2587
2588         PR target/36782
2589         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
2590
2591 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
2592
2593         * config/xtensa/libgcc-xtensa.ver: New file.
2594         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
2595
2596 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2597
2598         * df-problems.c (df_set_note): Avoid C++ keywords.
2599         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
2600         * dse.c (record_store, remove_useless_values): Likewise.
2601         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
2602         gen_reg_rtx_offset, operand_subword, change_address_1,
2603         change_address, adjust_address_1, offset_address,
2604         widen_memory_access, emit_copy_of_insn_after): Likewise.
2605         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
2606         * fwprop.c (should_replace_address, propagate_rtx_1,
2607         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
2608         Likewise.
2609         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
2610         gcse_emit_move_after, update_ld_motion_stores): Likewise.
2611         * lcm.c (compute_insert_delete, pre_edge_lcm,
2612         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
2613         * lower-subreg.c (resolve_reg_notes): Likewise.
2614         * mode-switching.c (optimize_mode_switching): Likewise.
2615
2616 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2617
2618         * bt-load.c (add_btr_def, migrate_btr_def,
2619         branch_target_load_optimize): Avoid C++ keywords.
2620         * caller-save.c (insert_restore, insert_save, insert_one_insn):
2621         Likewise.
2622         * combine.c (subst, simplify_set, make_extraction,
2623         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
2624         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
2625         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
2626
2627 2008-07-15  Richard Guenther  <rguenther@suse.de>
2628
2629         PR middle-end/36369
2630         * c-common.c (strict_aliasing_warning): Do not warn for
2631         TYPE_REF_CAN_ALIAS_ALL pointers.
2632         (c_common_get_alias_set): may_alias types are not special.
2633         * tree.c (build_pointer_type_for_mode): Look up the may_alias
2634         attribute and set can_ref_all accordingly.
2635         (build_reference_type_for_mode): Likewise.
2636         * doc/extend.texi (may_alias): Clarify.
2637
2638 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2639
2640         PR target/36780
2641         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
2642         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
2643
2644 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2645
2646         PR target/31568
2647         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
2648         gcc_assert, instead call output_operand_lossage.
2649
2650 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
2651
2652         * builtins.c (std_canonical_va_list): Treat structure based
2653         va_list types.
2654
2655 2008-07-15  Ben Elliston  <bje@au.ibm.com>
2656
2657         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
2658
2659 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
2660
2661         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
2662         is set.
2663
2664 2008-07-14  Jan Hubicka  <jh@suse.cz>
2665
2666         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
2667         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
2668         fix predicates and constraints.
2669         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
2670         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
2671
2672 2008-07-14  Doug Kwan  <dougkwan@google.com>
2673
2674         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
2675         additional option file arm/eabi.opt.
2676         * config/arm/eabi.h (File): New configuration file for EABI targets.
2677         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
2678         SUBSUBTARGET_EXTRA_SPECS.
2679         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
2680         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
2681         from STARTFILE_SPEC so that it can be referenced in an override.
2682         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
2683         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
2684         can be referenced in an override.
2685         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
2686         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
2687         so that it can be referenced in an override.
2688         (LINK_SPEC): Use BPABI_LINK_SPEC.
2689         * config/arm/eabi.opt (File): New.
2690
2691 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2692
2693         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
2694         (FIXED_VALUE_H): New variable.
2695         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
2696         input.h, fixed-value.h.
2697         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
2698         (BASIC_BLOCK_H): Use $(BITMAP_H).
2699         (FUNCTION_H): Add varray.h.
2700         (IPA_REFERENCE_H): Use $(BITMAP_H).
2701         (CGRAPH_H): Add $(BASIC_BLOCK_H).
2702         (DF_H): Use $(BITMAP_H).
2703         (GGC_H): Add statistics.h.
2704         (INSN_ADDR_H): New.
2705         (INSN_ATTR_H): Use it.
2706         (SYSTEM_H): Add safe-ctype.h, filenames.h.
2707         (INPUT_H): New.
2708         (SYMTAB_H): Add $(OBSTACK_H).
2709         (CPP_INTERNAL_H): New.
2710         (TREE_DUMP_H): Add tree-pass.h.
2711         (TREE_FLOW_H): Use $(BITMAP_H)
2712         (PRETTY_PRINT_H): Use $(INPUT_H).
2713         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
2714         (GSTAB_H): New.
2715         (BITMAP_H): New.
2716         (many object files): Fix lots of header dependencies throughout.
2717
2718 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2719
2720         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
2721         New macros.
2722         (s-gtyp-input): Use them to write tmp-gi.list.
2723         (echo_to_gi.list): Remove.
2724
2725 2008-07-14  Richard Guenther  <rguenther@suse.de>
2726
2727         * tree-ssa-sccvn.c (pre_info): Remove.
2728         (switch_to_PRE_table): Likewise.
2729         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
2730         (set_hashtable_value_ids): Do not create value-ids for the
2731         optimistic tables.
2732         (run_scc_vn): Remove double test.  Remove bogus special-case
2733         in value-number printing.
2734         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
2735         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
2736         SSA_NAME_VALUE.
2737         * tree-flow-inline.h (get_value_handle): Remove.
2738         * tree-flow.h (get_value_handle): Remove.
2739
2740 2008-07-14  Martin Jambor  <mjambor@suse.cz>
2741
2742         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
2743         in which we generate arithmetics is not a subrange.
2744
2745 2008-07-14  Martin Jambor  <mjambor@suse.cz>
2746
2747         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
2748
2749 2008-07-14  Richard Guenther  <rguenther@suse.de>
2750
2751         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
2752
2753 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
2754
2755         PR target/36745
2756         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
2757         reload for symbol refs moved to r0 with -fPIC.
2758         (legitimize_pic_address): Use the target register as temporary
2759         reg if possible.
2760         (emit_symbolic_move): Adjust comment.
2761         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
2762         New expanders.
2763
2764 2008-07-14  Ben Elliston  <bje@au.ibm.com>
2765
2766         * c-common.h (C_CPP_HASHNODE): New macro.
2767         * coretypes.h (struct cpp_token): Forward declare.
2768         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2769         the context-sensitive keyword method.
2770         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
2771         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
2772         expand_bool_pixel): New.
2773         (altivec_categorize_keyword): New function.
2774         (init_vector_keywords): New function.
2775         (rs6000_macro_to_expand): Likewise.
2776         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
2777         compiling an ISO C dialect.
2778
2779 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
2780
2781         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
2782         (create_expression_by_pieces): Fix typo.
2783         (do_regular_insertion): Use debug counter here too.
2784
2785 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
2786
2787         PR target/35492.
2788         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
2789         CONST_OK_FOR_LETTER_P.  All port-local users changed.
2790         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
2791         implement Kp matching power-of-two.
2792         (CONSTRAINT_LEN): Define to match.
2793         * config/cris/cris.md: Replace all use of constraint K with Kc.
2794         ("*btst*): Use Kp for operand 0 of last alternative.
2795
2796 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2797
2798         PR testsuite/36440
2799         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
2800         and quad formats.
2801
2802 2008-07-13  Jan Hubicka  <jh@suse.cz>
2803
2804         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
2805         to be mangled too.
2806
2807 2008-07-13  Richard Guenther  <rguenther@suse.de>
2808
2809         PR middle-end/36811
2810         * langhooks.c (lhd_print_error_function): Deal with recursive
2811         BLOCK trees.
2812
2813 2008-07-12  Jan Hubicka  <jh@suse.cz>
2814
2815         * cgraph.c (assembler_name_hash): New static var.
2816         (hash_node_by_assembler_name, eq_assembler_name): New.
2817         (cgraph_node_for_asm): Use hashtable.
2818         (cgraph_remove_node): Maintain hashtable.
2819         (change_decl_assembler_name): Sanity check that names are not changing
2820         after aliasing was processed.
2821         * cgraph.h (varpoon_node): Add next GGC marker.
2822         * tree.c (decl_assembler_name_equal): Constify.
2823         (decl_assembler_name_hash): New.
2824         * tree.h (decl_assembler_name_equal): Constify.
2825         (decl_assembler_name_hash): Update.
2826
2827 2008-07-12  David Daney  <ddaney@avtrex.com>
2828
2829         * config/mips/driver-native.c (host_detect_local_cpu): Handle
2830         sb1 and r5000 cpus.
2831
2832 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2833
2834         * doc/md.texi: Document the MIPS "v" constraint.
2835         * config/mips/mips.h (reg_class): Revert last change.
2836         (REG_CLASS_NAMES): Likewise.
2837         (REG_CLASS_CONTENTS): Likewise.
2838         * config/mips/mips.c (mips_regno_to_class): Likewise.
2839         * config/mips/constraints.md (v): Likewise, but add documentation.
2840         Add a comment to say that this constraint should not be used in
2841         gcc code.
2842
2843 2008-07-11  DJ Delorie  <dj@redhat.com>
2844
2845         * config/h8300/h8300.md (length): Fix branch offset limit.
2846
2847 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
2848
2849         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
2850         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
2851         (avr_hard_regno_scratch_ok): New function.
2852         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
2853         * config/avr/avr.md (all peepholes that request a scratch register):
2854         Remove avr_peep2_scratch_safe use.
2855
2856 2008-07-11  Tom Tromey  <tromey@redhat.com>
2857             Ian Lance Taylor  <iant@google.com>
2858
2859         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
2860         (struct c_common_resword): Define.
2861         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
2862         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
2863         (c_common_reswords, num_c_common_reswords): Declare.
2864         * c-common.c (c_common_reswords): New global const array.
2865         (num_c_common_reswords): New const int.
2866         * c-parser.c (struct resword, reswords): Don't define.
2867         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
2868         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
2869         than reswords.  If warning about C++ keywords, give them a special
2870         RID code.
2871         (c_lex_one_token): Warn about C++ keywords.  Call
2872         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
2873         (c_parser_external_declaration): Look for RID_xxx rather than
2874         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
2875         (c_parser_statement_after_labels): Likewise.
2876         (c_parser_objc_class_instance_variables): Likewise.
2877         (c_parser_objc_class_declaration): Likewise.
2878         (c_parser_objc_try_catch_statement): Likewise.
2879         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
2880         (declspecs_add_type): Likewise.
2881
2882 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
2883
2884         * ggc-page.c (alloc_page):
2885         Substituting xmalloc, xcalloc with
2886         XNEWVEC and XCNEWVAR macros which add the
2887         needed casts.
2888
2889 2008-07-11  Richard Guenther  <rguenther@suse.de>
2890
2891         PR tree-optimization/36765
2892         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
2893         aliases from HEAP vars to SMTs.
2894
2895 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2896
2897         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
2898         * configure.ac (loose_warn): Move -Wc++-compat from here...
2899         (strict_warn): ...to here.
2900         * configure: Regenerate.
2901
2902 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
2903
2904         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
2905         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
2906         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
2907         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
2908         excluding more specific h8300-*-* and sh-*-* targets.
2909
2910 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
2911
2912         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
2913         (eliminate): Ditto.
2914         (execute_pre): Call loop_optimizer_finalize in early exit.
2915
2916 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
2917
2918         PR middle-end/36790
2919         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
2920         uids in the bitmap, not just VAR_DECL uids.
2921
2922         PR rtl-optimization/36419
2923         * combine-stack-adj.c (adjust_frame_related_expr): New function.
2924         (combine_stack_adjustments_for_block): Call it if needed.  Delete
2925         correct insn.
2926         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
2927         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
2928         prologue sp adjustment.
2929
2930 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
2931
2932         PR other/28322
2933         * opts.c (print_ignored_options): Report postponed diagnostics for
2934         unknown -Wno-* options as warnings, not errors.
2935         (postpone_unknown_option_error): Renamed to...
2936         (postpone_unknown_option_warning): ... this.
2937
2938 2008-07-09  Doug Kwan  <dougkwan@google.com>
2939
2940         Revert:
2941         2008-07-08  Doug Kwan  <dougkwan@google.com>
2942
2943         * config/arm/arm.opt (mandroid): New option.
2944         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2945         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2946         (CC1_SPEC): Same.
2947         (CC1PLUS_SPEC): Same.
2948         (LIB_SPEC): Same.
2949         (STARTFILE_SPEC): Same.
2950         (ENDFILE_SPEC): Same.
2951         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2952         used.
2953
2954 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
2955
2956         PR target/35802
2957         * config/mips/mips.h (reg_class): Remove V1_REG.
2958         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
2959         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
2960         instead of V1_REGS.
2961         (mips_get_tp): New function.
2962         (mips_legitimize_tls_address): Use it.
2963         * config/mips/constraints.md (v): Delete.
2964         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
2965         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
2966         After reload, split into a move and ...
2967         (*tls_get_tp_<mode>_split): ...this new instruction.
2968
2969 2008-07-09  David Daney  <ddaney@avtrex.com>
2970
2971         * config/mips/driver-native.c: Include coretypes.h and tm.h.
2972
2973 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
2974
2975         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
2976         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
2977         Add c argument.
2978         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
2979         htab_delete should be called.  Don't free c.
2980         (lookup_tmp_var): Create temp_htab lazily.
2981         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2982         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
2983         callers.
2984         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2985         lower_omp_ordered, lower_omp_critical, lower_omp_for,
2986         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
2987         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
2988         * tree-sra.c (generate_element_init): Likewise.
2989         * tree-mudflap.c (execute_mudflap_function_ops,
2990         execute_mudflap_function_decls): Likewise.
2991         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
2992         * tree-gimple.h (struct gimplify_ctx): New type.
2993         (push_gimplify_context): Adjust prototype.
2994
2995 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
2996
2997         * tree-ssa-pre.c (phi_translate_1): Update placement of
2998         add_to_value calls.
2999
3000 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
3001
3002         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
3003         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
3004         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
3005         * targhooks.c (default_hard_regno_scratch_ok): New function.
3006         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
3007         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
3008         * recog.c:  Include "target.h".
3009         (peep2_find_free_register): Add check for global regs. Add target
3010         specific check.
3011         * Makefile.in (recog.o): Depend on target.h.
3012
3013 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
3014
3015         * config/sh/sh.c (sh_canonical_va_list_type): New.
3016         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
3017
3018 2008-07-09  Raksit Ashok <raksit@google.com>
3019
3020         * doc/invoke.texi (Option Summary): Mention new option
3021         -Wdisallowed-function-list=...
3022         (Warning Options): Document -Wdisallowed-function-list=...
3023         * common.opt (Wdisallowed-function-list=): New flag.
3024         * flags.h (warn_disallowed_functions): External definition of new
3025         boolean warning flag.
3026         (warn_if_disallowed_function_p): Declare new function.
3027         * opts.c (warning_disallowed_functions): New static variable.
3028         (warn_disallowed_functions): New boolean warning flag.
3029         (warn_if_disallowed_function_p): New function.
3030         (add_comma_separated_to_vector): Rename
3031         add_instrument_functions_exclude_list to this.
3032         (common_handle_option): Handle new option. Rename calls to
3033         add_instrument_functions_exclude_list into calls to
3034         add_comma_separated_to_vector.
3035         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
3036         based on flag warn_disallowed_functions.
3037
3038 2008-07-09  Christian Bruel  <christian.bruel@st.com>
3039
3040         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
3041          instead of get_attr_length.
3042
3043 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3044
3045         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
3046         keywords.
3047         * genemit.c (gen_insn): Likewise.
3048         * gengtype.c (note_def_vec): Likewise.
3049         * gengtype.h (note_def_vec): Likewise.
3050         * genoutput.c (struct data, output_insn_data, process_template,
3051         gen_expand, gen_split, note_constraint): Likewise.
3052         * genrecog.c (new_decision, add_to_sequence, factor_tests,
3053         make_insn_sequence): Likewise.
3054         * gensupport.c (record_insn_name): Likewise.
3055
3056 2008-07-08  Doug Kwan  <dougkwan@google.com>
3057
3058         * config/arm/arm.opt (mandroid): New option.
3059         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
3060         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
3061         (CC1_SPEC): Same.
3062         (CC1PLUS_SPEC): Same.
3063         (LIB_SPEC): Same.
3064         (STARTFILE_SPEC): Same.
3065         (ENDFILE_SPEC): Same.
3066         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
3067         used.
3068
3069 2008-07-08  Raksit Ashok  <raksit@google.com>
3070
3071         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
3072         (set_storage_via_setmem): Fix expected_align parameter.
3073         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
3074         missing from the list.
3075         * doc/md.texi (movmem): Explicitly state that expected alignment is
3076         to be expressed in bytes.
3077         (setmem): Explicitly state that expected alignment is to be expressed
3078         in bytes.
3079
3080 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
3081
3082         * reload.c (find_reloads_subreg_address): Do not require validity
3083         of address in original mode before reloading address.
3084
3085 2008-07-07  Tianwei Sheng  <tianweis@google.com>
3086
3087         * df-core.c (df_remove_problem): Adjust the access to avoid out of
3088         bounds array access.
3089
3090 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
3091
3092         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
3093
3094 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
3095
3096         Fix PR tree-optimization/23455
3097         Fix PR tree-optimization/35286
3098         Fix PR tree-optimization/35287
3099         * Makefile.in (OBJS-common): Remove tree-vn.o.
3100         (tree-vn.o): Remove.
3101         * dbgcnt.def: Add treepre_insert debug counter.
3102         * gcc/tree-flow.h (add_to_value): Updated for other changes.
3103         (debug_value_expressions): Ditto.
3104         (print_value_expressions): Ditto.
3105         * tree-pretty-print.c (dump_generic_node): Updated for
3106         VALUE_HANDLE removal.
3107         * tree-ssa-dom.c (record_equality): Ditto.
3108         (cprop_operand): Ditto.
3109         (lookup_avail_expr): Ditto.
3110         * tree-ssa-threadedge.c
3111         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
3112         (simplify_control_stmt_condition): Ditto.
3113         * tree.c (tree_code_size): Ditto.
3114         (tree_node_structure): Ditto.
3115         (iterative_hash_expr): Ditto.
3116         * tree.def: Ditto.
3117         * tree.h (VALUE_HANDLE_ID): Ditto.
3118         (VALUE_HANDLE_EXPR_SET): Ditto.
3119         (struct tree_value_handle): Ditto.
3120         (union tree_node): Ditto.
3121         * treestruct.def: Ditto.
3122         * tree-vn.c: Removed.
3123         * tree-ssa-pre.c: Rewritten entirely.
3124         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
3125         (constant_value_ids): Ditto.
3126         (vn_nary_op_t): Moved to header.
3127         (vn_phi_t): Ditto.
3128         (vn_reference_op_t): Ditto
3129         (vn_reference_t): Ditto.
3130         (next_value_id): New variable.
3131         (VN_INFO): Add an assert.
3132         (vn_constant_eq): New function.
3133         (vn_constant_hash): Ditto.
3134         (get_or_alloc_constant_value_id): Ditto.
3135         (value_id_constant_p): Ditto.
3136         (vn_reference_compute_hash): De-staticify.
3137         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
3138         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
3139         (valueize_refs): Update opcode if it changes from ssa name to constant.
3140         (vn_reference_lookup_1): Add new argument.
3141         (vn_reference_lookup):  Ditto.
3142         (vn_reference_lookup_pieces): New function.
3143         (vn_reference_insert): Add return type. Modify to deal with value ids.
3144         (vn_reference_insert_pieces):  New function.
3145         (vn_nary_op_compute_hash): De-staticify.
3146         (vn_nary_op_eq): Ditto.
3147         (vn_nary_op_lookup_pieces): New function.
3148         (vn_nary_op_lookup): Add new argument.
3149         (vn_nary_op_insert_pieces): New function.
3150         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
3151         (vn_phi_insert): Ditto.
3152         (visit_unary_op): Update for callee changes.
3153         (visit_binary_op): Ditto.
3154         (visit_reference_op_load): Ditto.
3155         (visit_reference_op_store): Ditto.
3156         (init_scc_vn): Init next_value_id, constant_to_value_id and
3157         constant_value_ids.
3158         (free_scc_vn): Free them.
3159         (set_hashtable_value_ids): New function.
3160         (run_scc_vn): Use it.
3161         (get_max_value_id): New function.
3162         (get_next_value_id): Ditto.
3163         (expressions_equal_p): Moved from tree-vn.c
3164         (sort_vuses): Ditto.
3165         (sort_vuses_heap): Ditto.
3166         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
3167         above).
3168         * tree.c (iterative_hash_hashval_t): Made non-static
3169         * tree.h (iterative_hash_hashval_t): Declare it.
3170
3171 2008-07-08  Martin Jambor  <mjambor@suse.cz>
3172
3173         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
3174         instead of ipa_create_node_params.
3175         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
3176         ipa_check_create_edge_args, free them with
3177         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
3178
3179         * ipa-prop.c: Include flags.h and tree-inline.h.
3180         (ipa_node_params_vector): New variable.
3181         (ipa_edge_args_vector): New variable.
3182         (edge_removal_hook_holder): New variable.
3183         (node_removal_hook_holder): New variable.
3184         (edge_duplication_hook_holder): New variable.
3185         (node_duplication_hook_holder): New variable.
3186         (ipa_detect_param_modifications): Check for presence of modified flags.
3187         (ipa_compute_jump_functions): Check for presence of jump functions.
3188         (ipa_free_edge_args_substructures): New function.
3189         (ipa_create_node_params): Removed.
3190         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
3191         (ipa_free_node_params_substructures): New function.
3192         (ipa_free_all_node_params): Changed to deallocate the on-the-side
3193         vector.
3194         (ipa_edge_removal_hook): New function.
3195         (ipa_node_removal_hook): New function.
3196         (duplicate_array): New function.
3197         (ipa_edge_duplication_hook): New function.
3198         (ipa_node_duplication_hook): New function.
3199         (ipa_register_cgraph_hooks): New function.
3200         (ipa_unregister_cgraph_hooks): New function.
3201         (free_all_ipa_structures_after_ipa_cp): New function.
3202
3203         * ipa-prop.h: Include vec.h.
3204         (ipa_node_params_t): New typedef with vector types for it.
3205         (ipa_edge_args_t):  New typedef with vector types for it.
3206         (IPA_NODE_REF): Changed to access an on-the-side vector.
3207         (IPA_EDGE_REF): Changed to access an on-the-side vector.
3208         (ipa_check_create_node_params): New function.
3209         (ipa_check_create_edge_args): New function.
3210
3211         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
3212         all users.
3213
3214 2008-07-07  Tom Tromey  <tromey@redhat.com>
3215
3216         * configure, config.in: Rebuilt.
3217         * configure.ac: Don't check for scandir or alphasort.
3218
3219 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
3220
3221         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
3222         types immediately after creating them.
3223
3224 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
3225
3226         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
3227
3228 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
3229
3230         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
3231         dump_constraint_graph.
3232         (dump_constraint_edge): New function.
3233         (dump_constraint_graph): New function.
3234         (debug_constraint_graph): New function.
3235         (dump_constraint): Removed useless comparison.
3236         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
3237         (dump_constraint_graph): Declare.
3238         (debug_constraint_graph): Declare.
3239         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
3240
3241 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
3242
3243         * config/i386/i386.c (is_va_list_char_pointer): New.
3244         (ix86_va_start): Replace compare with ms_va_list_type_node
3245         by is_va_list_char_pointer.
3246         (ix86_gimplify_va_arg): Likewise.
3247
3248 2008-07-07  Martin Jambor  <mjambor@suse.cz>
3249
3250         * cgraph.c (cgraph_edge_max_uid): New variable.
3251         (struct cgraph_edge_hook_list): New type.
3252         (struct cgraph_node_hook_list): New type.
3253         (struct cgraph_2edge_hook_list): New type.
3254         (struct cgraph_2node_hook_list): New type.
3255         (first_cgraph_edge_removal_hook): New variable.
3256         (first_cgraph_node_removal_hook): New variable.
3257         (first_cgraph_edge_duplicated_hook): New variable.
3258         (first_cgraph_node_duplicated_hook): New variable.
3259         (cgraph_add_edge_removal_hook): New function.
3260         (cgraph_remove_edge_removal_hook): New function.
3261         (cgraph_call_edge_removal_hooks):  New function.
3262         (cgraph_add_node_removal_hook):  New function.
3263         (cgraph_remove_node_removal_hook):  New function.
3264         (cgraph_call_node_removal_hooks):  New function.
3265         (cgraph_add_edge_duplication_hook):  New function.
3266         (cgraph_remove_edge_duplication_hook):  New function.
3267         (cgraph_call_edge_duplication_hooks):  New function.
3268         (cgraph_add_node_duplication_hook):  New function.
3269         (cgraph_remove_node_duplication_hook):  New function.
3270         (cgraph_call_node_duplication_hooks):  New function.
3271         (cgraph_create_edge): Assign to edge uid.
3272         (cgraph_remove_edge): Call edge removal hooks.
3273         (cgraph_node_remove_callees): Call edge removal hooks.
3274         (cgraph_node_remove_callers): Call edge removal hooks.
3275         (cgraph_remove_node): Call node removal hooks.
3276         (cgraph_clone_edge): Call edge duplication hooks.
3277         (cgraph_clone_node): Call node duplication hooks.
3278
3279         * cgraph.h (cgraph_edge): New field uid.
3280         (cgraph_edge_hook): New type.
3281         (cgraph_node_hook): New type.
3282         (cgraph_2edge_hook): New type.
3283         (cgraph_2node_hook): New type.
3284
3285 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
3286
3287         * config.in: Regenerate.
3288
3289 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
3290
3291         * gcc.c (print_sysroot): New.
3292         (option_map, display_help, process_command): Handle the
3293         -print-sysroot option.
3294         (main): Print the sysroot if requested.
3295         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
3296
3297 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3298
3299         PR target/34780
3300         * unwind-pe.h (size_of_encoded_value): add attribute unused.
3301
3302 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
3303
3304         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
3305         (assign_parm_setup_block_p): Also check mode of entry_parm.
3306
3307 2008-07-07  Richard Guenther  <rguenther@suse.de>
3308
3309         * tree-ssa-structalias.h (set_used_smts): Remove.
3310         * tree-ssa-structalias.c (used_smts): Likewise.
3311         (set_used_smts): Likewise.
3312         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
3313         call to set_used_smts.
3314
3315 2008-07-07  Richard Guenther  <rguenther@suse.de>
3316
3317         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
3318         (new_var_info): Set it to false.
3319         (solution_set_add): Correctly handle pointers outside a var and
3320         inside a field.
3321         (type_safe): Treat variables with is_full_var properly.
3322         (do_sd_constraint): Likewise.
3323         (do_ds_constraint): Likewise.
3324         (process_constraint): Remove zeroing offset for !use_field_sensitive.
3325         (get_constraint_for_ptr_offset): New function.
3326         (get_constraint_for_component_ref): For addresses at least include
3327         the last field of the variable.  Handle is_full_vars properly.
3328         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
3329         (handle_ptr_arith): Remove.
3330         (find_func_aliases): Simplify assignment handling.
3331         (create_function_info_for): For parameter and result varinfos set
3332         is_full_var flag.
3333         (create_variable_info_for): Set is_full_var flag whenever we
3334         just created a single varinfo for a decl.
3335         (init_alias_vars): Initialize use_field_sensitive from
3336         max-fields-for-field-sensitive parameter.
3337
3338 2008-07-07  Richard Guenther  <rguenther@suse.de>
3339
3340         PR tree-optimization/36713
3341         * tree-flow-inline.h (is_call_used): New function.
3342         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
3343         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
3344         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
3345
3346 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
3347
3348         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
3349
3350 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
3351
3352         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
3353
3354 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
3355             Nathan Sidwell  <nathan@codesourcery.com>
3356
3357         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
3358         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
3359         tmake_file.
3360         * config/m68k/t-linux: New.
3361         * doc/install.texi: Document m68k-*-linux is now multilibbed by
3362         default.
3363
3364 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
3365
3366         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
3367         * config/m68k/m68k-devices.def: Remove multilibs that only differ
3368         by MAC/EMAC.
3369
3370 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3371
3372         * gcc.c (execute): Fix -Wc++-compat warning.
3373
3374 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
3375
3376         PR target/36720
3377         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
3378         constant for little endian.
3379
3380 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
3381
3382         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
3383         mips_base_mips16 instead of TARGET_MIPS16.
3384         (mips_base_mips16): Declare.
3385         * config/mips/mips.c (mips_base_mips16): Make global.
3386         (was_mips16_p): Remove GTY marker.
3387         (was_mips16_pch_p): New variable.
3388         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
3389         (mips_override_options): Force to non-MIPS16 mode initially.
3390         Do not complain about MIPS16 PIC incompatibilities here.
3391         Only allow -mgpopt if -mexplicit-relocs is in force for
3392         non-MIPS16 code.
3393
3394 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
3395
3396         * configure.ac: Check for caddr_t, define to char * if not defined.
3397         * configure: Regenerate.
3398         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
3399         (mmap_gt_pch_use_address): Likewise.
3400         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
3401
3402 2008-07-06  Richard Guenther  <rguenther@suse.de>
3403
3404         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
3405         (new_var_info): Deal with it.
3406         (solution_set_add): Likewise.
3407         (bitpos_of_field): Make signed, fix.
3408         (struct fieldoff): Remove type and decl fields.  Make size field
3409         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
3410         flags.
3411         (fieldoff_compare): Deal with it.
3412         (push_fields_onto_fieldstack): Remove has_union argument, glob
3413         adjacent non-pointer fields together.
3414         (create_function_info_for): Do not set has_union.
3415         (create_variable_info_for): Simplify.
3416
3417 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
3418
3419         * config.gcc (extra_headers): Add cross-stdarg.h for target
3420         x86_64-*-* and i?86-*-*.
3421         * config/i386/cross-stdarg.h: New.
3422         * builtins.c (std_fn_abi_va_list): New.
3423         (std_canonical_va_list_type): New.
3424         (stabilize_va_list): Replace va_list_type_node use by
3425         mtarget.canonical_va_list_type.
3426         (gimplify_va_arg_expr): Likewise.
3427         (expand_builtin_va_copy): Replace va_list_type_node use by
3428         mtarget.fn_abi_va_list.
3429         * tree-sra.c (is_va_list_type): New helper.
3430         (decl_can_be_decomposed_p): Replace
3431         va_list_type_node use by is_va_list_type.
3432         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
3433         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3434         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
3435         * config/i386/i386-protos.h (ix86_get_valist_type): New.
3436         (ix86_enum_va_list): New.
3437         * config/i386/i386.c (sysv_va_list_type_node): New.
3438         (ms_va_list_type_node): New.
3439         (ix86_function_type_abi): Remove sorry.
3440         (ix86_build_builtin_va_list_abi): New.
3441         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
3442         for 64-bit targets.
3443         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
3444         (ix86_init_builtins_va_builtins_abi): New.
3445         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
3446         for 64-bit targets.
3447         (ix86_handle_abi_attribute): New.
3448         (attribute_spec): Add sysv_abi and ms_abi.
3449         (ix86_fn_abi_va_list): New.
3450         (ix86_canonical_va_list_type): New.
3451         (ix86_enum_va_list): New.
3452         (TARGET_FN_ABI_VA_LIST): New.
3453         (TARGET_CANONICAL_VA_LIST_TYPE): New.
3454         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
3455         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
3456         (TARGET_CANONICAL_VA_LIST_TYPE): New.
3457         (TARGET_ENUM_VA_LIST): New.
3458         * expr.h (std_fn_abi_va_list): New.
3459         (std_canonical_va_list_type): New.
3460         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
3461         (TARGET_CANONICAL_VA_LIST_TYPE): New.
3462         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
3463         TARGET_CANONICAL_VA_LIST_TYPE.
3464         * target.h (struct gcc_target): Add fn_abi_va_list hook
3465         and canonical_va_list_type hook.
3466
3467 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3468
3469         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
3470         integral and pointer types.
3471
3472 2008-07-04  Roger Sayle  <roger@eyesopen.com>
3473
3474         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
3475         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
3476
3477 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
3478
3479         PR target/36684
3480         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
3481
3482 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
3483
3484         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
3485         build_gimple_modify_stmt.
3486         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
3487         gimple operand.  Use fold_build* instead of build*.
3488
3489 2008-07-04  Richard Guenther  <rguenther@suse.de>
3490
3491         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
3492         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
3493         properly to compute the reachability set if we do field-sensitive PTA.
3494         * invoke.texi (max-fields-for-field-sensitive): Document default.
3495         * opts.c (decode_options): Set max-fields-for-field-sensitive to
3496         100 for optimize >= 2.
3497
3498 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3499
3500         * ggc-zone.c (lookup_page_table_if_allocated,
3501         set_page_table_entry, zone_find_object_size, alloc_small_page,
3502         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
3503         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
3504         -Wc++-compat and/or -Wcast-qual warnings.
3505
3506 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
3507
3508         PR target/36634
3509         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
3510         pic_offset_table_rtx to be marked as used here.
3511         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
3512         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
3513         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
3514         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
3515         !TARGET_SECURE_PLT.
3516
3517 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3518
3519         * alloc-pool.c (hash_descriptor, eq_descriptor,
3520         alloc_pool_descriptor): Fix -Wc++-compat warnings.
3521         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
3522         Likewise.
3523         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
3524         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
3525         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
3526         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
3527         Likewise.
3528
3529 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
3530
3531         * tree-flow.h (loop_only_exit_p): Declare.
3532         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
3533         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
3534         the number of iterations if it is constant.  Otherwise, if this is the
3535         only possible exit of the loop, use the conservative estimate on the
3536         number of iterations of the entire loop if available.
3537
3538 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
3539
3540         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
3541         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
3542         Add synchronization functions.
3543         * config/sync.c: New file.
3544         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
3545         (LIBGCC_SYNC_CFLAGS): Likewise.
3546
3547 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
3548
3549         PR target/36710
3550         * config/i386/i386.md (mode): Add TF to "mode" attribute.
3551         (*pushtf_sse): New insn pattern.
3552         (pushtf splitters): New splitters.
3553
3554 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
3555
3556         PR middle-end/35736
3557         * predict.c (build_predict_expr): Use void_type_node for the tree
3558         type, instead of NULL_TREE.
3559
3560 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3561
3562         * config/i386/i386.c (contains_aligned_value_p): Return true
3563         for TCmode.
3564         (ix86_data_alignment): Align TCmode to 128bits.
3565         (ix86_local_alignment): Likewise.
3566
3567 2008-07-03  Andrew Haley  <aph@redhat.com>
3568
3569         PR bootstrap/33304
3570         * vec.h (VEC_TA): New.
3571         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
3572         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
3573         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
3574         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
3575         (C_COMMON_FIXED_TYPES): Remove first arg.
3576         (C_COMMON_FIXED_MODE_TYPES): Likewise.
3577         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
3578         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
3579         not to use empty macro arguments.
3580
3581 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
3582
3583         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
3584         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
3585         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
3586         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
3587         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
3588         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
3589         config/ia64/crtn.asm, config/m68hc11/larith.asm,
3590         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
3591         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
3592         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
3593         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
3594         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
3595         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
3596         config/rs6000/e500crtres64gpr.asm,
3597         config/rs6000/e500crtres64gprctr.asm,
3598         config/rs6000/e500crtrest32gpr.asm,
3599         config/rs6000/e500crtrest64gpr.asm,
3600         config/rs6000/e500crtresx32gpr.asm,
3601         config/rs6000/e500crtresx64gpr.asm,
3602         config/rs6000/e500crtsav32gpr.asm,
3603         config/rs6000/e500crtsav64gpr.asm,
3604         config/rs6000/e500crtsav64gprctr.asm,
3605         config/rs6000/e500crtsavg32gpr.asm,
3606         config/rs6000/e500crtsavg64gpr.asm,
3607         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
3608         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
3609         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
3610         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
3611         config/sparc/sol2-cn.asm: Remove .file directives.
3612
3613 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
3614
3615         * resource.c (mark_referenced_resources): Look inside
3616         UNSPEC_VOLATILEs and ASM_INPUTs.
3617
3618 2008-07-02  Ian Lance Taylor  <iant@google.com>
3619
3620         * rtlanal.c (add_reg_note): New function.
3621         * rtl.h (add_reg_note): Declare.
3622         * auto-inc-dec.c (attempt_change): Use add_reg_note.
3623         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
3624         * builtins.c (expand_builtin_longjmp): Likewise.
3625         (expand_builtin_nonlocal_goto): Likewise.
3626         * calls.c (emit_call_1, expand_call): Likewise.
3627         * cfgexpand.c (add_reg_br_prob_note): Likewise.
3628         * cfglayout.c (fixup_reorder_chain): Likewise.
3629         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3630         (commit_one_edge_insertion): Likewise.
3631         * combine.c (move_deaths, distribute_notes): Likewise.
3632         * df-problems.c (df_set_note): Likewise.
3633         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
3634         (set_unique_reg_note): Likewise.
3635         (emit_copy_of_insn_after): Likewise.
3636         * expr.c (expand_expr_real): Likewise.
3637         * gcse.c (add_label_notes): Likewise.
3638         * haifa-sched.c (create_check_block_twin): Likewise.
3639         * jump.c (mark_jump_label_1): Likewise.
3640         * loop-doloop.c (add_test, doloop_modify): Likewise.
3641         * loop-unswitch.c (compare_and_jump_seq): Likewise.
3642         * lower-subreg.c (move_eh_region_note): Likewise.
3643         * optabs.c (emit_libcall_block): Likewise.
3644         * predict.c (predict_insn): Likewise.
3645         (combine_predictions_for_insn): Likewise.
3646         * recog.c (peephole2_optimize): Likewise.
3647         * regmove.c (try_auto_increment): Likewise.
3648         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
3649         * reload.c (find_reloads): Likewise.
3650         * reload1.c (fixup_eh_region_note): Likewise.
3651         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
3652         * reorg.c (delete_prior_computation): Likewise.
3653         (delete_computation, dbr_schedule): Likewise.
3654         * config/pa/pa.c (legitimize_pic_address): Likewise.
3655         * config/sh/sh.c (sh_reorg): Likewise.
3656
3657 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
3658
3659         PR target/36669
3660         * config/libgcc-glibc.ver: Add %exclude.
3661         * config/m32r/libgcc-glibc.ver: Likwise.
3662         * config/s390/libgcc-glibc.ver: Likwise.
3663         * config/sh/libgcc-glibc.ver: Likwise.
3664         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
3665
3666         * config/i386/libgcc-glibc.ver: New.
3667
3668         * config/i386/libgcc-x86_64-glibc.ver: Removed.
3669
3670 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
3671
3672         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
3673         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
3674         i[34567]86-*-linux*, x86_64-*-linux*.  Add
3675         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
3676         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
3677         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
3678         i[34567]86-*-linux*, x86_64-*-linux*.
3679
3680         * libgcc-std.ver: Add empty GCC_4.4.0.
3681
3682         * mkmap-symver.awk: Support multiple versions per symbol.
3683
3684         * config/i386/i386.c (ix86_init_builtins): Always define
3685         __builtin_fabsq and __builtin_copysignq with fallbacks.
3686         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
3687         and __builtin_copysignq if SSE2 isn't available.
3688
3689         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
3690         (LIBGCC2_TF_CEXT): Likwise.
3691         (TF_SIZE): Likwise.
3692
3693         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
3694
3695         * config/i386/sfp-machine.h: Moved to libgcc.
3696
3697         * config/i386/sfp-machine.h: New.
3698         * config/i386/t-linux: Likwise.
3699
3700         * config/i386/t-darwin: Remove softfp_wrap_start and
3701         softfp_wrap_end.
3702         * config/i386/t-darwin64: Likewise.
3703
3704         * config/i386/t-fprules-softfp64: Renamed to ...
3705         * config/i386/t-fprules-softfp: This.
3706
3707         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
3708         and softfp_wrap_end.
3709
3710 2008-07-02  Jason Merrill  <jason@redhat.com>
3711
3712         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
3713
3714         * tree.c (ctor_to_list): New fn.
3715         * tree.h: Declare it.
3716         (CONSTRUCTOR_ELT): New macro.
3717         (CONSTRUCTOR_NELTS): New macro.
3718
3719 2008-07-02  Richard Guenther  <rguenther@suse.de>
3720
3721         * tree-ssa-structalias.c (struct variable_info): Reorder
3722         to fill padding on 64bit hosts.  Make collapsed_to an int.
3723         (get_varinfo_fc): Deal with that.
3724         (new_var_info): Likewise.
3725         (collapse_rest_of_var): Likewise.
3726
3727 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
3728
3729         * doc/install.texi (--enable-java-home): Document.
3730         (--enable-aot-compile-rpm): Likewise.
3731         (--with-arch-directory): Likewise.
3732         (--with-os-directory): Likewise.
3733         (--with-origin-name): Likewise.
3734         (--with-arch-suffix): Likewise.
3735         (--with-jvm-root-dir): Likewise.
3736         (--with-jvm-jar-dir): Likewise.
3737         (--with-python-dir): Likewise.
3738
3739 2008-07-02  Richard Guenther  <rguenther@suse.de>
3740
3741         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
3742         from decls explicitly.  Merge operand checking from tuples.
3743
3744 2008-07-02  Martin Jambor  <mjambor@suse.cz>
3745
3746         * tree-switch-conversion.c: Included timevar.h which I forgot before.
3747
3748 2008-07-02  Martin Jambor  <mjambor@suse.cz>
3749
3750         * tree-switch-conversion.c: Included timevar.h
3751         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
3752
3753         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
3754
3755 2008-07-02  Martin Jambor  <mjambor@suse.cz>
3756
3757         * tree-switch-conversion.c: Corrected various comments and
3758         whitespace issues
3759         (build_constructors): Fixed minor formatting mistakes.
3760
3761         * invoke.texi (Optimize Options): Corrected the
3762         switch-conversion-max-branch-ratio parameter.
3763
3764 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
3765
3766         * final.c (asm_insn_count): Return zero for an empty asm body.
3767
3768 2008-07-02  Richard Guenther  <rguenther@suse.de>
3769
3770         * bitmap.h (bitmap_set_bit): Return bool.
3771         (bitmap_clear_bit): Likewise.
3772         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
3773         write to the bitmap if it would.
3774         (bitmap_clear_bit): Likewise.
3775         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
3776         bitmap_set_bit return value.
3777         (add_pred_graph_edge): Likewise.
3778         (add_graph_edge): Likewise.
3779         (do_sd_constraint): Likewise.
3780         (do_ds_constraint): Likewise.
3781
3782 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3783
3784         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
3785         Fix -Wc++-compat and/or -Wcast-qual warnings.
3786         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
3787         gen_regparm_prefix): Likewise.
3788         * vmsdbgout.c (write_modbeg, lookup_filename,
3789         vmsdbgout_source_line, vmsdbgout_init): Likewise.
3790
3791 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
3792
3793         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
3794         defaults.h definition apply.
3795
3796 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
3797
3798         * function.c (assign_parm_remove_parallels): New.
3799         (assign_parm_setup_block_p): Do not return true for non-BLKmode
3800         PARALLELs.
3801         (assign_parm_setup_block): Do not handle them.
3802         (assign_parm_setup_reg, assign_parm_setup_stack): Call
3803         assign_parm_remove_parallels.
3804
3805 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
3806
3807         * c-typeck.c (convert_for_assignment): Use
3808         vector_targets_convertible_p.
3809         * c-common.c (vector_targets_convertible_p): New.
3810         * c-common.h (vector_targets_convertible_p): New prototype.
3811         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
3812         opaque_p_V2SI_type_node.
3813
3814 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
3815
3816         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
3817         RFmode constants.
3818
3819 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
3820
3821         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
3822         TFmode constants via two element DImode vector for hosts with
3823         HOST_BITS_PER_WIDE_INT < 64.
3824         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
3825         also for HOST_BITS_PER_WIDE_INT < 64.
3826
3827 2008-07-01  Richard Guenther  <rguenther@suse.de>
3828
3829         PR tree-optimization/36666
3830         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
3831         (get_constraint_exp_from_ssa_var): Split into ...
3832         (get_constraint_exp_for_temp): ... this ...
3833         (get_constraint_for_ssa_var): ... and that.
3834         Return constraint expressions for all touched sub-fields
3835         if the results address is not taken.
3836         (process_constraint): Remove assertion that aggregate
3837         assignments do not happen at this place.
3838         (get_constraint_for_component_ref): Add address_p argument.
3839         Return constraint expressions for all touched sub-fields
3840         if the results address is not taken.
3841         (do_deref): Use get_constraint_exp_for_temp.
3842         (get_constraint_for_1): Rename from ...
3843         (get_constraint_for): ... this.  Add the old function as wrapper.
3844         (do_structure_copy): Use get_constraint_for_1.
3845
3846 2008-07-01  Martin Jambor  <mjambor@suse.cz>
3847
3848         * Makefile.in (tree-switch-conversion.o): Add.
3849         (OBJS-common): Add tree-swtch-conversion.o.
3850         * passes.c (init_optimization_passes): Add pass_convert_switch.
3851         * tree-pass.h: (pass_convert_switch): Add.
3852         * tree-switch-conversion.c: New file.
3853         * gcc.dg/tree-ssa/cswtch.c: New testcase.
3854         * common.opt (ftree-cswtch): New option.
3855         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3856         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3857         * opts.c (decode_options): Set flag_tree_switch_conversion when
3858         optimization level is >= 2.
3859         * doc/invoke.texi (Optimize Options): Added description of
3860         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
3861
3862 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3863
3864         * config/darwin-driver.c (darwin_default_min_version): Fix
3865         -Wc++-compat warnings.
3866
3867 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
3868
3869         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
3870         of operand 0.
3871
3872 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
3873
3874         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
3875
3876 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
3877
3878         PR rtl-optimization/34744
3879         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
3880         (df_scan_free_internal): Free data structures not
3881         allocated in storage pools.
3882         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
3883         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
3884         df_scan_free_mws_vec.
3885         * dse.c (dse_step6): Free offset_map_p and offset_map_n
3886         unconditionally.
3887
3888 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
3889
3890         * config/i386/i386.c (contains_aligned_value_p): Return true
3891         for __float128.
3892         (ix86_function_arg_boundary): Return its natural boundary
3893         for __float128.
3894         (return_in_memory_32): Don't check TDmode.
3895         (ix86_split_to_parts): Support splitting into 4 parts and
3896         support TFmode for 32bit target.
3897         (ix86_split_long_move): Support splitting into 4 parts.
3898         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
3899         for SSE2.
3900         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
3901         (ix86_init_builtins): Here.
3902         (ix86_scalar_mode_supported_p): Always return true for TFmode.
3903         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
3904         'q' and 'w', respectively.
3905
3906         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
3907         TARGET_64BIT.
3908         (movtf_internal): Likewise.
3909         (<code>tf2): Likewise.
3910         (*absnegtf2_sse): Likewise.
3911         (copysign<mode>3): Likewise.
3912         (copysign<mode>3_const): Likewise.
3913         (copysign<mode>3_var): Likewise.
3914         (define_split UNSPEC_COPYSIGN): Likewise.
3915         * config/i386/sse.md (*nandtf3): Likewise.
3916         (<code>tf3): Likewise.
3917         (*<code>tf3): Likewise.
3918
3919 2008-06-30  Joey Ye  <joey.ye@intel.com>
3920             H.J. Lu  <hongjiu.lu@intel.com>
3921
3922         * global.c (compute_regsets): Set frame_pointer_needed here.
3923         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
3924
3925 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3926
3927         * doc/install.texi (specific): Expand Windows build notes.
3928
3929 2008-06-30  Ira Rosen  <irar@il.ibm.com>
3930
3931         PR tree-optimization/36648
3932         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
3933         number of prolog iterations by step. Fix the comment.
3934
3935 2008-06-30  Richard Guenther  <rguenther@suse.de>
3936
3937         PR middle-end/36671
3938         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
3939         handle calls from ECF_MALLOC functions.
3940         (handle_pure_call): ECF_MALLOC functions do not return
3941         call-used memory.
3942         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
3943
3944 2008-06-29  Andreas Schwab  <schwab@suse.de>
3945
3946         * config/m68k/m68k.c (print_operand): Always print a float
3947         constant in hex.
3948         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
3949         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
3950         Remove macros.
3951
3952         * config/rs6000/x-linux64: Remove never used file.
3953
3954 2008-06-29  Richard Guenther  <rguenther@suse.de>
3955
3956         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
3957         prototype.
3958         (struct alias_info): Move ...
3959         * tree-ssa-alias.c: ... here.
3960         (update_alias_info): Declare.
3961         (compute_may_aliases): Call it.
3962         (update_alias_info): New function.
3963         * tree-ssa-structalias.c (update_alias_info): Move ...
3964         * tree-ssa-alias.c (update_alias_info_1): ... here.
3965         * tree-ssa-structalias.c (process_constraint_1): Remove
3966         unused from_call argument.  Rename to ...
3967         (process_constraint): ... this.  Delete old wrapper.
3968         (make_constraint_to): Adjust callers.
3969         (handle_const_call): Likewise.
3970         (handle_pure_call): Likewise.
3971         (init_base_vars): Likewise.
3972         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
3973         (find_func_aliases): We don't need structure copies for
3974         complex types.
3975         (make_constraint_from_anything): Remove.
3976         (create_variable_info_for): For globals make constraints
3977         from escaped, not from anything.
3978         (compute_points_to_sets): Do not call update_alias_info.
3979         (ipa_pta_execute): Use make_constraint_from.
3980
3981 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3982
3983         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
3984         (bitmap.o-warn, dominance.o-warn): New.
3985         * configure.ac (cxx_compat_warn): Delete.
3986         (loose_warn): Add -Wcast-qual and -Wc++-compat.
3987         * system.h: Remove #pragma diagnostic for -Wcast-qual and
3988         -Wc++-compat.
3989         * configure: Regenerate.
3990
3991         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
3992         warnings.
3993
3994 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3995
3996         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
3997         * df-scan.c (df_notes_rescan): Likewise.
3998         * ggc-page.c (set_page_table_entry): Likewise.
3999         * intl.c (gcc_gettext_width): Likewise.
4000         * varasm.c (get_unnamed_section, get_noswitch_section,
4001         get_section): Likewise.
4002
4003 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
4004
4005         * regrename.c (build_def_use): Don't copy RTX.
4006
4007 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
4008
4009         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
4010         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
4011         punctuation.  Use @ref instead of @xref.
4012         (Function Names): Remove stray @display/@end display.
4013         (C++ Attributes): Use @ref instead of @xref.
4014         (Deprecated Features): Fix punctuation around @xref.
4015         (Backwards Compatibility): Likewise.
4016         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
4017
4018 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
4019
4020         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
4021         constants for E500 double.
4022
4023 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4024
4025         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
4026         element type of const_vector.
4027
4028 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
4029
4030         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
4031         Remove FLAGS_REG clobber from expander pattern.
4032         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
4033         (anddi3, andsi3, andhi3, andqi3): Ditto.
4034         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
4035         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
4036         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
4037         (ashlsi3, ashlhi3, ashlqi3): Ditto.
4038         (ashrsi3, ashrhi3, ashrqi3): Ditto.
4039         (lshrsi3, lshrhi3, lshrqi3): Ditto.
4040         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
4041         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
4042
4043 2008-06-28  Richard Guenther  <rguenther@suse.de>
4044
4045         * tree-ssa-structalias.c (callused_id, var_callused,
4046         callused_tree): Add.
4047         (handle_pure_call): New function.
4048         (find_func_aliases): Call it.
4049         (find_what_p_points_to): Handle the call-used set.
4050         (clobber_what_escaped): Likewise.
4051         (compute_call_used_vars): New function.
4052         (init_base_vars): Init the call-used variable.
4053         (do_sd_constraint): Do not propagate the solution from CALLUSED
4054         but use CALLUSED as a placeholder.
4055         (solve_graph): Likewise.
4056         * tree-flow-inline.h (gimple_call_used_vars): New function.
4057         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
4058         (compute_call_used_vars): Declare.
4059         * tree-ssa-alias.c (set_initial_properties): Call
4060         compute_call_used_vars.
4061         (reset_alias_info): Clear call-used variables.
4062         (add_call_clobber_ops): Assert we are not called for const/pure
4063         functions.  Remove handling of them.
4064         (add_call_read_ops): Handle pure functions by adding the
4065         call-used set of variables as VUSEs.
4066         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
4067         (delete_tree_ssa): Free it.
4068         * tree-dfa.c (remove_referenced_var): Clear the var from the
4069         call-used bitmap.
4070
4071 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
4072
4073         * tree.c (build_varargs_function_type_list): New.
4074         (build_function_type_list_1): New.
4075         (build_function_type_list): Use build_function_type_list_1.
4076         * tree.h (build_varargs_function_type_list): New.
4077
4078 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4079
4080         PR target/34856
4081         * config/spu/spu.c (spu_builtin_splats): Do not generate
4082         invalid CONST_VECTOR expressions.
4083         (spu_expand_vector_init): Likewise.
4084
4085 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
4086
4087         * optabs.c (libfunc_decls): New variable.
4088         (libfunc_decl_hash, libfunc_decl_eq): New functions.
4089         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
4090         for the same function twice.
4091
4092 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
4093
4094         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
4095         ix86_expand_binary_operator directly.
4096         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
4097         for operand 2.
4098         (*ashrti3_1): Ditto.
4099         (*lshrti3_1): Ditto.
4100         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
4101         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
4102         using only one splitter.  Conditionaly execute splitter before or
4103         after peephole2 pass.
4104         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
4105         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
4106         Use only one alternative in asm template.
4107         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
4108         in asm template.
4109         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
4110         "J" operand constraint for operand 2.
4111         (*ashldi3_cconly_rex64): Ditto.
4112         (*ashrdi3_cmp_rex64): Ditto.
4113         (*ashrdi3_cconly_rex64): Ditto.
4114         (*lshrdi3_cmp_rex64): Ditto.
4115         (*lshrdi3_cconly_rex64): Ditto.
4116         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
4117         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
4118         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
4119         gen_x86_shrd_1.
4120
4121 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
4122
4123         * gimplify.c (omp_is_private): Don't return true if decl is not
4124         already private on #pragma omp for or #pragma omp parallel for.
4125
4126         PR debug/36617
4127         * tree-cfg.c (struct move_stmt_d): Replace block field with
4128         orig_block and new_block fields.
4129         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
4130         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
4131         (move_block_to_fn): Replace vars_map and new_label_map arguments
4132         with struct move_stmt_d pointer.
4133         (replace_block_vars_by_duplicates): New function.
4134         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
4135         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
4136         all subblocks of ORIG_BLOCK to the new function.  Call
4137         replace_block_vars_by_duplicates.
4138         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
4139         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
4140         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
4141         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
4142         (expand_omp): Temporarily set input_location to the location of
4143         region's controlling stmt.
4144         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
4145         BIND_EXPR, push ctx->block_vars and gimplification vars into
4146         the BIND_EXPR and its block's BLOCK_VARS instead of directly
4147         into dest function.
4148         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
4149         there are any BLOCK_VARS.
4150         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
4151         OMP_PARALLEL or OMP_TASK stmt.
4152         (lower_omp): Save and restore input_location around the lower_omp_1
4153         call.
4154
4155 2008-06-27  Richard Guenther  <rguenther@suse.de>
4156
4157         PR tree-optimization/36400
4158         PR tree-optimization/36373
4159         PR tree-optimization/36344
4160         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
4161         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
4162         (update_alias_info): Remove call clobbering code.
4163         (make_constraint_to): New helper function.
4164         (make_escape_constraint): Likewise.
4165         (handle_rhs_call): Use it on all pointer containing arguments.
4166         Also mark the static chain escaped.
4167         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
4168         instead of ANYTHING.
4169         (make_constraint_from): New helper split out from ...
4170         (make_constraint_from_anything): ... here.
4171         (find_func_aliases): Add constraints for escape sites.
4172         (intra_create_variable_infos): Make constraints from NONLOCAL
4173         for parameters.
4174         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
4175         as ANYTHING.
4176         (clobber_what_p_points_to): Remove.
4177         (clobber_what_escaped): New function.
4178         (init_base_vars): Init NONLOCAL and ESCAPED.
4179         (do_sd_constraint): Do not propagate the solution from ESCAPED
4180         but use ESCAPED as a placeholder.
4181         (solve_graph): Likewise.
4182         * tree-flow.h (clobber_what_p_points_to): Remove.
4183         (clobber_what_escaped): Declare.
4184         * tree-ssa-alias.c (set_initial_properties): Call it.
4185         Remove code clobbering escaped pointers.
4186
4187 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
4188
4189         * function.c (allocate_struct_function): Only allocate a unique
4190         funcdef_no if the decl is nonzero.
4191
4192 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
4193
4194         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
4195         * config/mips/mips.c (mips_split_const_insns): New function.
4196         * config/mips/mips.md (move_type): New attribute.
4197         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
4198         (dword_mode): New attribute.
4199         (type): Avoid long line.  Map "move_type"s to "type"s,
4200         choosing "multi" for doubleword moves if appropriate.
4201         Swap MTC/MFC comments to match their declaration order.
4202         (extended_mips16): Default to "yes" if "move_type" is "sll0",
4203         "type" is "branch" or "jal" is "direct".
4204         (length): Handle "extended_mips16" first.  Make the default
4205         "0" for "ghost" instructions.  Set the length from "move_type".
4206         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
4207         of "type", with "sll0" for the register alternative.  Remove the
4208         "extended_mips16" attribute.
4209         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
4210         of "type", with "shift_shift" for the register alternative.
4211         Remove the "length" attribute.
4212         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
4213         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
4214         of "type", with "andi" for the register alternative.
4215         (*zero_extendqihi2): Likewise.
4216         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
4217         of "andi" instead of a "type" of "arith".
4218         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
4219         instead of "type".
4220         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
4221         (mov_<store>r, *mov<mode>_ra): Likewise.
4222         (extendsidi2): Use "move_type" instead of "type", with "move"
4223         for the register alternative.
4224         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
4225         of "type", with "signext" for the register alternative.
4226         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
4227         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
4228         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
4229         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
4230         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
4231         (unnamed branch insn): Likewise.
4232         (*movdi_gp32_fp64): Fold into...
4233         (*movdi_32bit): ...here.
4234         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
4235         (*movdf_hardfloat): ...this new pattern.
4236         (*movdf_softfloat): Remove redundant FPR alternatives.
4237         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
4238         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
4239         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
4240         the "move" attribute.
4241         (*movdi_32bit): Use "move_type" instead of "type" and remove the
4242         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
4243         and "store" for COP loads and stores.
4244         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
4245         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
4246         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
4247         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
4248         (*movtf_mips16, *movv2sf): Likewise.
4249         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
4250         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
4251         (mfhc1<mode>): Use "move_type" instead of "move".
4252         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
4253         (loadgp_blockage): Remove the "length" attribute.
4254         (blockage, set_got_version, update_got_version): Likewise.
4255         (call_internal): Remove the "extended_mips16" attribute.
4256         (call_value_internal, call_value_multiple_internal): Likewise.
4257         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
4258         instead of "move".
4259         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
4260         the "length" attribute.
4261
4262 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4263
4264         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
4265         -Wcast-qual warnings.
4266         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
4267         handle_pragma_pop_macro): Likewise.
4268         * collect2.c (resolve_lib_name): Likewise.
4269         * config/arc/arc.c (arc_init): Likewise.
4270         * config/arm/arm.c (neon_builtin_compare,
4271         locate_neon_builtin_icode): Likewise.
4272         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
4273         * config/bfin/bfin.c (bfin_init_machine_status,
4274         bfin_optimize_loop): Likewise.
4275         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
4276         * config/cris/cris.c (cris_init_expanders): Likewise.
4277         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
4278         * config/darwin.c (machopic_indirection_eq,
4279         machopic_indirection_name, machopic_output_indirection): Likewise.
4280         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
4281         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
4282         frv_optimize_membar): Likewise.
4283         * config/i386/cygwin.h (mingw_scan,
4284         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
4285         * config/i386/cygwin1.c (mingw_scan): Likewise.
4286         * config/i386/i386.c (machopic_output_stub): Likewise.
4287         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
4288         i386_pe_unique_section): Likewise.
4289         * config/ia64/ia64.c (ia64_init_machine_status,
4290         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
4291         Likewise.
4292         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
4293         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
4294         * config/m68k/m68k.c (m68k_handle_option,
4295         m68k_sched_md_init_global): Likewise.
4296         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
4297         mcore_unique_section): Likewise.
4298         * config/mips/mips.c (mips_block_move_straight,
4299         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
4300         Likewise.
4301         * config/mmix/mmix.c (mmix_init_machine_status,
4302         mmix_encode_section_info): Likewise.
4303         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
4304         * config/rs6000/rs6000.c (rs6000_init_machine_status,
4305         print_operand_address, output_toc, redefine_groups,
4306         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
4307         * config/s390/s390.c (s390_init_machine_status): Likewise.
4308         * config/score/score.c (score_block_move_straight,
4309         score_block_move_loop_body): Likewise.
4310         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
4311         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4312         * emit-rtl.c (find_auto_inc): Likewise.
4313         * gcc.c (translate_options, process_command): Likewise.
4314         * reorg.c (dbr_schedule): Likewise.
4315         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
4316         * xcoffout.c (xcoffout_declare_function): Likewise.
4317
4318 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
4319
4320         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
4321         ipa-pta working again.
4322
4323 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
4324
4325         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
4326         genautomata.
4327
4328 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
4329
4330         * config.gcc (powerpc*-*-*): Add new core e500mc.
4331         * config/rs6000/e500mc.md: New file.
4332         * config/rs6000/rs6000.c (processor_costs): Add new costs for
4333         e500mc.
4334         (rs6000_override_options): Add e500mc case to
4335         processor_target_table. Altivec and Spe options not allowed
4336         with e500mc. Add isel instruction to e500mc by
4337         default. Initialize rs6000_cost for e500mc.
4338         (rs6000_issue_rate): Set issue rate for e500mc.
4339         * config/rs6000/rs6000.h (processor_type): Add
4340         PROCESSOR_PPCE500MC.
4341         (ASM_CPU_SPEC): Add e500mc.
4342         Set TARGET_ISEL to rs6000_isel.
4343         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
4344         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
4345         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
4346         Include e500mc.md.
4347         * doc/invoke.texi: Add e500mc to list of cpus.
4348
4349 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4350
4351         PR c/34867
4352         * c-lex.c (lex_charconst): Initialize unsignedp.
4353
4354 2008-06-27  Olivier Hainque  <hainque@adacore.com>
4355
4356         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
4357         documented assumptions.
4358
4359 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
4360
4361         * dwarf2out.c: Remove trailing white spaces.  Break long line
4362         in comments.
4363
4364 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
4365
4366         * libfuncs.h (LTI_synchronize): New libfunc_index.
4367         (synchronize_libfunc): Declare.
4368         * builtins.c (expand_builtin_synchronize): Consider using
4369         synchronize_libfunc before falling back on an asm blockage.
4370         * config/mips/mips.c: Include libfuncs.h
4371         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
4372
4373 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
4374
4375         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
4376         parameter.  Copy stack_reg to r11 where appropriate.
4377         (no_global_regs_above): Add gpr parameter.
4378         (rs6000_stack_info): Only add padding for SPE save area if we
4379         are saving SPE GPRs and CR.
4380         (saveres_routine_syms): New variable.
4381         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
4382         Define.
4383         (rs6000_savres_routine_sym): New function.
4384         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
4385         split out of...
4386         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
4387         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
4388         Tweak FPR out-of-line saving.
4389         (rs6000_make_savres_rtx): New function.
4390         (rs6000_use_multiple_p): New function.
4391         (rs6000_savres_strategy): New function.
4392         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
4393         out-of-line if appropriate.
4394         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
4395         if we are optimizing for size.
4396         (GP_SAVE_INLINE): Define.
4397         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
4398         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
4399         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
4400         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
4401         (*save_fpregs_<mode>): Add use of r11.
4402         (*restore_gpregs_<mode>): New insn.
4403         (*return_and_restore_gpregs_<mode>): New insn.
4404         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
4405         use r11.
4406         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
4407         (*restore_gpregs_spe): New insn.
4408         (*return_and_restore_gpregs_spe): New insn.
4409         * config/rs6000/predicates.md (save_world_operation): Fix check.
4410
4411 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
4412
4413         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
4414         this point, so assert that.
4415
4416 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
4417
4418         * cfganal.c: Include vec.h and vecprim.h.
4419         (compute_idf): Import from...
4420         * tree-into-ssa (compute_idf): ...here.
4421         * basic-block.h (compute_idf): Export.
4422
4423 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
4424
4425         * c-decl.c (merge_decls): Use !current_function_decl to check for
4426         extern declaration of C99 inline function being at file scope.
4427
4428 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
4429
4430         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
4431
4432 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4433
4434         * alias.c (record_alias_subset, init_alias_analysis): Fix
4435         -Wc++-compat and/or -Wcast-qual warnings.
4436         * attribs.c (lookup_attribute_spec): Likewise.
4437         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
4438         copy_bb, connect_traces,
4439         find_rarely_executed_basic_blocks_and_cr): Likewise.
4440         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
4441         note_btr_set, migrate_btr_defs): Likewise.
4442         * builtins.c (result_vector, expand_builtin_memcpy,
4443         expand_builtin_mempcpy_args, expand_builtin_strncpy,
4444         builtin_memset_read_str, expand_builtin_printf,
4445         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
4446         Likewise.
4447         * caller-save.c (mark_set_regs): Likewise.
4448         * calls.c (expand_call, emit_library_call_value_1): Likewise.
4449         * cgraph.c (cgraph_edge): Likewise.
4450         * combine.c (likely_spilled_retval_1): Likewise.
4451         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
4452         htab_counts_entry_del, get_coverage_counts): Likewise.
4453         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
4454         new_cselib_val): Likewise.
4455         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
4456         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
4457         Likewise.
4458         * df-core.c (df_compact_blocks): Likewise.
4459         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
4460         * df-scan.c (df_grow_reg_info, df_ref_create,
4461         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
4462         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
4463         df_record_entry_block_defs, df_record_exit_block_uses,
4464         df_bb_verify): Likewise.
4465         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
4466         DF_REF_EXTRACT_MODE_CONST): New.
4467         * dominance.c (get_immediate_dominator, get_dominated_by,
4468         nearest_common_dominator, root_of_dom_tree,
4469         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
4470         -Wc++-compat and/or -Wcast-qual warnings.
4471         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
4472         record_store, replace_read, check_mem_read_rtx, scan_insn,
4473         dse_step1, dse_record_singleton_alias_set): Likewise.
4474         * dwarf2asm.c (dw2_force_const_mem): Likewise.
4475
4476 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4477
4478         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
4479         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
4480         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
4481         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
4482         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
4483         add_ranges_num, add_ranges_by_labels, file_info_cmp,
4484         file_name_acquire, output_file_names, add_const_value_attribute,
4485         premark_used_types_helper, file_table_eq, file_table_hash,
4486         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
4487         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
4488         -Wcast-qual warnings.
4489         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
4490         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
4491         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
4492         gen_reg_rtx, start_sequence, init_emit): Likewise.
4493         * et-forest.c (et_new_occ, et_new_tree): Likewise.
4494         * except.c (init_eh_for_function, gen_eh_region,
4495         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
4496         arh_to_landing_pad, arh_to_label, add_action_record,
4497         add_call_site, switch_to_exception_section): Likewise.
4498         * expmed.c (synth_mult): Likewise.
4499         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
4500         store_expr): Likewise.
4501         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
4502         Likewise.
4503         * function.c (assign_stack_temp_for_type,
4504         allocate_struct_function, match_asm_constraints_1): Likewise.
4505         * gcov-io.c (gcov_allocate): Likewise.
4506         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
4507         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
4508         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
4509         record_one_set, insert_expr_in_table, insert_set_in_table,
4510         dump_hash_table, compute_hash_table_work, alloc_hash_table,
4511         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
4512         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
4513         -Wcast-qual warnings.
4514
4515 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4516
4517         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
4518         -Wcast-qual warnings.
4519         * gcc.c (process_command): Likewise.
4520         * genattrtab.c (oballoc): Use XOBNEW.
4521         (oballocvec): Define.
4522         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
4523         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
4524         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
4525         -Wc++-compat and/or -Wcast-qual warnings.
4526         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
4527         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
4528         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
4529         gen_presence_absence_set, gen_automaton, gen_regexp_el,
4530         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
4531         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
4532         add_excls, process_presence_absence_names,
4533         process_presence_absence_patterns, add_presence_absence,
4534         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
4535         get_free_state, add_arc, get_free_automata_list_el,
4536         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
4537         transform_3, cache_presence, create_ainsns, create_automata,
4538         create_state_ainsn_table, dfa_insn_code_enlarge,
4539         output_trans_func, output_min_issue_delay_func,
4540         output_dead_lock_func, output_reset_func,
4541         output_get_cpu_unit_code_func, output_dfa_start_func,
4542         expand_automata): Likewise.
4543         * genextract.c (gen_insn): Likewise.
4544         * gengtype-lex.l: Likewise.
4545         * gengtype.c (read_input_list, adjust_field_type,
4546         process_gc_options): Likewise.
4547         * genoutput.c (note_constraint): Likewise.
4548         * genpreds.c (mangle, add_constraint): Likewise.
4549         * genrecog.c (process_define_predicate, new_decision,
4550         add_to_sequence): Likewise.
4551         * gensupport.c (record_insn_name): Likewise.
4552
4553 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4554
4555         * config/i386/driver-i386.c (detect_caches_amd,
4556         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
4557         and/or -Wcast-qual warnings.
4558         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
4559         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
4560         gt_pch_save): Likewise.
4561         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
4562         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
4563         * global.c (compute_regsets): Likewise.
4564         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
4565         finish_graph_dump_file): Likewise.
4566         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
4567         unlink_bb_notes): Likewise.
4568         * integrate.c (get_hard_reg_initial_val): Likewise.
4569         * ipa-prop.c (ipa_push_func_to_list): Likewise.
4570         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
4571         * local-alloc.c (update_equiv_regs): Likewise.
4572         * loop-invariant.c (check_invariant_table_size,
4573         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
4574         Likewise.
4575         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
4576         altered_reg_used, mark_altered): Likewise.
4577         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
4578         insert_var_expansion_initialization,
4579         combine_var_copies_in_loop_exit, apply_opt_in_copies,
4580         release_var_copies): Likewise.
4581         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
4582         analyze_matrix_decl, add_allocation_site, analyze_transpose,
4583         analyze_accesses_for_phi_node, check_var_notmodified_p,
4584         check_allocation_function, find_sites_in_func,
4585         record_all_accesses_in_func, transform_access_sites,
4586         transform_allocation_sites): Likewise.
4587         * omp-low.c (new_omp_region, create_omp_child_function_name,
4588         check_omp_nesting_restrictions, check_combined_parallel,
4589         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
4590         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
4591         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
4592         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
4593         Likewise.
4594         * opts-common.c (prune_options): Likewise.
4595         * opts.c (add_input_filename, print_filtered_help,
4596         get_option_state): Likewise.
4597         * params.c (add_params): Likewise.
4598         * passes.c (set_pass_for_id, next_pass_1,
4599         do_per_function_toporder, pass_fini_dump_file): Likewise.
4600         * postreload.c (reload_cse_simplify_operands): Likewise.
4601         * predict.c (tree_predicted_by_p, tree_predict_edge,
4602         clear_bb_predictions, combine_predictions_for_bb): Likewise.
4603
4604 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4605
4606         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
4607         warnings.
4608         * recog.c (check_asm_operands, validate_change_1): Likewise.
4609         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
4610         subst_asm_stack_regs): Likewise.
4611         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
4612         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
4613         * regmove.c (reg_is_remote_constant_p): Likewise.
4614         * regrename.c (regrename_optimize, scan_rtx_reg,
4615         kill_clobbered_value, kill_set_value, kill_autoinc_value):
4616         Likewise.
4617         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
4618         regstat_compute_calls_crossed): Likewise.
4619         * reload1.c (init_reload, new_insn_chain,
4620         has_nonexceptional_receiver, reload, copy_reloads,
4621         calculate_needs_all_insns, init_elim_table): Likewise.
4622         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
4623         * rtl.c (shallow_copy_rtx_stat): Likewise.
4624         * rtlanal.c (parms_set): Likewise.
4625         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
4626         sbitmap_resize, sbitmap_vector_alloc): Likewise.
4627         * sched-ebb.c (earliest_block_with_similiar_load,
4628         add_deps_for_risky_insns): Likewise.
4629         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
4630         schedule_region): Likewise.
4631         * see.c (eq_descriptor_pre_extension,
4632         hash_descriptor_pre_extension, hash_del_pre_extension,
4633         eq_descriptor_properties, hash_descriptor_properties,
4634         hash_del_properties, see_seek_pre_extension_expr,
4635         see_initialize_data_structures, see_print_register_properties,
4636         see_print_pre_extension_expr, see_delete_merged_def_extension,
4637         see_delete_unmerged_def_extension, see_emit_use_extension,
4638         see_pre_delete_extension, see_map_extension, see_commit_changes,
4639         see_analyze_merged_def_local_prop,
4640         see_analyze_merged_def_local_prop,
4641         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
4642         see_set_prop_merged_def, see_set_prop_unmerged_def,
4643         see_set_prop_unmerged_use, see_print_one_extension,
4644         see_merge_one_use_extension, see_merge_one_def_extension,
4645         see_store_reference_and_extension, see_update_uses_relevancy,
4646         see_update_defs_relevancy): Likewise.
4647         * statistics.c (hash_statistics_hash, hash_statistics_eq,
4648         hash_statistics_free, curr_statistics_hash): Likewise.
4649         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
4650         expand_asm_operands, expand_return, case_bit_test_cmp,
4651         expand_case): Likewise.
4652         * stor-layout.c (start_record_layout): Likewise.
4653         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
4654         gt_pch_save_stringpool): Likewise.
4655         * tree-data-ref.c (hash_stmt_vertex_info,
4656         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
4657         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
4658
4659 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
4660
4661         PR target/36627
4662         * config/i386/i386.md : Change constraints of HImode and QImode
4663         immediate operands from "i" to "n".  Change SImode "ni" constraint to
4664         "i" and SImode "rmi" constraint to "g".  Remove all constraints
4665         from const0_operand and const1_operand predicated operands.
4666         (i): Change QImode and HImode attribute from "i" to "n".
4667         (*subqi_2): Change HImode operands to QImode.
4668         (*subqi_3): Ditto.
4669
4670 2008-06-25  Olivier Hainque  <hainque@adacore.com>
4671
4672         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
4673         sed substitutions.
4674
4675 2008-06-25  Richard Guenther  <rguenther@suse.de>
4676
4677         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
4678         not overflow the result type.
4679
4680 2008-06-25  Richard Guenther  <rguenther@suse.de>
4681
4682         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
4683         (vn_lookup): Likewise.
4684
4685 2008-06-25  Richard Guenther  <rguenther@suse.de>
4686
4687         PR tree-optimization/35518
4688         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
4689         * tree-sra.c (instantiate_element): Use fold_build3 to build
4690         BIT_FIELD_REFs.
4691         (try_instantiate_multiple_fields): Likewise.
4692
4693 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4694
4695         * config/rs6000/rs6000.md: Change all string instruction's clobber to
4696         be early clobbers.
4697
4698 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4699
4700         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
4701         use_backchain_to_restore_sp to true
4702         if the offset of the link register save area would go over the 32k - 1
4703         offset limit of the load
4704         instructions.
4705
4706 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
4707
4708         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
4709         anchor for the type-punning blurb.  Cross-reference "Structures
4710         unions enumerations and bit-fields implementation".  Provide a
4711         cast-through-pointer example.  Make final sentence self-contained.
4712         * doc/implement-c.texi (Structures unions enumerations and
4713         bit-fields implementation): Cross-reference the type-punning blurb
4714         in the -fstrict-aliasing documentation.
4715
4716 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4717
4718         PR middle-end/36594
4719         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
4720         the memory instead of the memory itself for the save area.
4721
4722 2008-06-24  Olivier Hainque  <hainque@adacore.com>
4723             Nicolas Roche  <roche@adacore.com>
4724
4725         * gengtype.c (srcdir_len): size_t instead of int.
4726         (get_file_realbasename): New function.  For F a filename, the real
4727         basename of F, with all the path components stripped.
4728         (get_file_srcdir_relative_path): New function.  For F a filename, the
4729         relative path to F from $(srcdir).
4730         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
4731         get_file_realbasename.  Adjust the head comment.
4732         (get_prefix_langdir_index): New function. For F a filename, return the
4733         lang_dir_names[] relative index of the language directory that is
4734         a prefix in F.
4735         (get_file_langdir): For F a filename, return the name of the language
4736         directory where F is located.
4737         (get_file_gtfilename): New function. The gt- output file name for an
4738         input filename F.
4739         (get_output_file_with_visibility): Replace in-line computations with
4740         uses of get_file_gtfilename and get_prefix_langdir_index.
4741         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
4742
4743 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
4744
4745         PR tree-optimization/36504
4746         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
4747         references without base address.
4748
4749 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
4750
4751         PR middle-end/36584
4752         * calls.c (expand_call): Increase alignment for recursive functions.
4753
4754 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
4755
4756         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
4757         (TARGET_FUNCTION_VALUE): New define.
4758         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
4759         * config/avr/avr.h (FUNCTION_VALUE): Remove.
4760
4761 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
4762
4763         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
4764         (fmod<mode>3): Ditto.
4765         (remainderxf3): Ditto.
4766         (remainder<mode>3): Ditto.
4767
4768 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
4769
4770         PR target/36533
4771         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
4772         REG is a hard register.
4773
4774         PR tree-optimization/36508
4775         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
4776         499, don't check it at all in release compilers.
4777
4778 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
4779
4780         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
4781         together with SSE_TARGET_MATH to disable insn pattern.
4782         (*fop_<MODEF:mode>_2_i387): Ditto.
4783         (*fop_<MODEF:mode>_3_i387): Ditto.
4784
4785 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
4786
4787         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
4788
4789 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4790
4791         PR middle-end/34906
4792         * gimplify.c (gimplify_asm_expr): Check the return code of
4793         parse_output_constraint call, set function return and is_inout
4794         value if it failed.
4795
4796 2008-06-22  Ian Lance Taylor  <iant@google.com>
4797
4798         * c-lex.c (narrowest_unsigned_type): Change itk to int.
4799         (narrowest_signed_type): Likewise.
4800         * c-typeck.c (c_common_type): Change local variable mclass to enum
4801         mode_class, twice.
4802         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
4803         tcc_comparison, not the tree code itself.
4804         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
4805         (c_expand_expr): Cast modifier to enum expand_modifier.
4806         * c-common.h (C_RID_CODE): Add casts.
4807         (C_SET_RID_CODE): Define.
4808         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
4809         (c_lex_one_token): Add cast to avoid warning.
4810         (c_parser_objc_type_name): Rename local typename to type_name.
4811         (check_no_duplicate_clause): Change code parameter to enum
4812         omp_clause_code.
4813         (c_parser_omp_var_list_parens): Change kind parameter to enum
4814         omp_clause_code.
4815         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
4816         c_parser_omp_list_var_parens.
4817         (c_parser_omp_threadprivate): Likewise.
4818         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
4819         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
4820         * c-format.c (NO_FMT): Define.
4821         (printf_length_specs): Use NO_FMT.
4822         (asm_fprintf_length_specs): Likewise.
4823         (gcc_diag_length_specs): Likewise.
4824         (scanf_length_specs): Likewise.
4825         (strfmon_length_specs): Likewise.
4826         (gcc_gfc_length_specs): Likewise.
4827         (printf_flag_specs): Change 0 to STD_C89.
4828         (asm_fprintf_flag_specs): Likewise.
4829         (gcc_diag_flag_specs): Likewise.
4830         (gcc_cxxdiag_flag_specs): Likewise.
4831         (scanf_flag_specs): Likewise.
4832         (strftime_flag_specs): Likewise.
4833         (strfmon_flag_specs): Likewise.
4834         (print_char_table): Likewise.
4835         (asm_fprintf_char_table): Likewise.
4836         (gcc_diag_char_table): Likewise.
4837         (gcc_tdiag_char_table): Likewise.
4838         (gcc_cdiag_char_table): Likewise.
4839         (gcc_cxxdiag_char_table): Likewise.
4840         (gcc_gfc_char_table): Likewise.
4841         (scan_char_table): Likewise.
4842         (time_char_table): Likewis.
4843         (monetary_char_table): Likewise.
4844         * c-format.h (BADLEN): Likewise.
4845
4846 2008-06-21  Ian Lance Taylor  <iant@google.com>
4847
4848         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
4849         Define END_OF_BASE_TREE_CODES around inclusion.
4850         * tree.c (tree_code_type): New global array.
4851         (tree_code_length, tree_code_name): Likewise.
4852         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
4853         $(lang_tree_files).
4854         (all-tree.def, s-alltree): New targets.
4855         (gencheck.h, s-gencheck): Remove.
4856         (tree.o): Depend upon all-tree.def.
4857         (build/gencheck.o): Remove gencheck.h dependency.
4858         (mostlyclean): Don't remove gencheck.h.
4859         * c-common.h (enum c_tree_code): Remove.
4860         * c-lang.c (tree_code_type): Remove.
4861         (tree_code_length, tree_code_name): Remove.
4862         * gencheck.c (tree_codes): Include all-tree.def, rather than
4863         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
4864         after it is used.
4865         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
4866         than tree.def.
4867         * cp/cp-tree.h (enum cplus_tree_code): Remove.
4868         (operator_name_info): Size to MAX_TREE_CODES.
4869         (assignment_operator_name_info): Likewise.
4870         * cp/cp-lang.c (tree_code_type): Remove.
4871         (tree_code_length, tree_code_name): Remove.
4872         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
4873         (assignment_operator_name_info): Likewise.
4874         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
4875         MAX_TREE_CODES.
4876         * cp/mangle.c (write_expression): Likewise.
4877         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
4878         * fortran/f95-lang.c (tree_code_type): Remove.
4879         (tree_code_length, tree_code_name): Remove.
4880         * java/java-tree.h (enum java_tree_code): Remove.
4881         * java/lang.c (tree_code_type): Remove.
4882         (tree_code_length, tree_code_name): Remove.
4883         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
4884         * objc/objc-act.h (enum objc_tree_code): Remove.
4885         * objc/objc-lang.c (tree_code_type): Remove.
4886         (tree_code_length, tree_code_name): Remove.
4887         * objcp/objcp-lang.c (tree_code_type): Remove.
4888         (tree_code_length, tree_code_name): Remove.
4889         * ada/ada-tree.h (enum gnat_tree_code): Remove.
4890         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
4891         * ada/misc.c (tree_code_type): Remove.
4892         (tree_code_length, tree_code_name): Remove.
4893
4894 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
4895
4896         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
4897         the grand_bitmap_obstack.
4898
4899 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4900
4901         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
4902         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
4903         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
4904         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
4905         move_stmt_r, new_label_mapper): Likewise.
4906         * tree-complex.c (cvc_lookup): Likewise.
4907         * tree-dfa.c (create_function_ann): Likewise.
4908         * tree-dump.c (dump_register): Likewise.
4909         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
4910         find_phi_replacement_condition): Likewise.
4911         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
4912         tree_function_versioning): Likewise.
4913         * tree-into-ssa.c (cmp_dfsnum): Likewise.
4914         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
4915         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
4916         get_nonlocal_debug_decl, convert_nonlocal_reference,
4917         convert_nonlocal_omp_clauses, get_local_debug_decl,
4918         convert_local_reference, convert_local_omp_clauses,
4919         convert_nl_goto_reference, convert_nl_goto_receiver,
4920         convert_tramp_reference, convert_call_expr): Likewise.
4921         * tree-outof-ssa.c (contains_tree_r): Likewise.
4922         * tree-parloops.c (reduction_phi, initialize_reductions,
4923         eliminate_local_variables_1, add_field_for_reduction,
4924         add_field_for_name, create_phi_for_local_result,
4925         create_call_for_reduction_1, create_loads_for_reductions,
4926         create_stores_for_reduction, create_loads_and_stores_for_name):
4927         Likewise.
4928         * tree-phinodes.c (allocate_phi_node): Likewise.
4929         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
4930         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
4931         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
4932         * tree-ssa-coalesce.c (compare_pairs): Likewise.
4933         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
4934         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
4935         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
4936         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
4937         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
4938         vn_nary_op_insert): Likewise.
4939         * tree-ssa.c (redirect_edge_var_map_add,
4940         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
4941         * tree-vectorizer.c (vectorize_loops): Likewise.
4942         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
4943         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
4944         tree_cons_stat, build1_stat, build_variant_type_copy,
4945         decl_init_priority_lookup, decl_fini_priority_lookup,
4946         decl_priority_info, decl_restrict_base_lookup,
4947         decl_restrict_base_insert, decl_debug_expr_lookup,
4948         decl_debug_expr_insert, decl_value_expr_lookup,
4949         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
4950         type_hash_add, get_file_function_name, tree_check_failed,
4951         tree_not_check_failed, tree_range_check_failed,
4952         omp_clause_range_check_failed, build_omp_clause,
4953         build_vl_exp_stat): Likewise.
4954         * value-prof.c (gimple_histogram_value,
4955         gimple_duplicate_stmt_histograms): Likewise.
4956         * var-tracking.c (attrs_list_insert, attrs_list_copy,
4957         unshare_variable, variable_union_info_cmp_pos, variable_union,
4958         dataflow_set_different_1, dataflow_set_different_2,
4959         vt_find_locations, variable_was_changed, set_variable_part,
4960         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
4961         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
4962         section_entry_hash, object_block_entry_eq,
4963         object_block_entry_hash, create_block_symbol,
4964         initialize_cold_section_name, default_function_rodata_section,
4965         strip_reg_name, set_user_assembler_name, const_desc_eq,
4966         build_constant_desc, output_constant_def, lookup_constant_def,
4967         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
4968         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
4969         default_internal_label): Likewise.
4970         * varray.c (varray_init, varray_grow): Likewise.
4971         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
4972
4973 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
4974
4975         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
4976         operators for "test" insn.  Macroize insn using SWI mode macro.
4977         (*jcc_fused_2): Ditto.
4978         (*jcc_fused_3): Macroize insn using SWI mode macro.
4979         (*jcc_fused_4): Ditto.
4980
4981 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
4982
4983         * tree-ssa-pre.c: Fix typo in comment.
4984         (init_antic, fini_antic): Add explicit funtions for
4985         initializing and deinitializing ANTIC and AVAIL sets.
4986         (create_expression_by_pieces): Fix typo in comment.
4987         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
4988         (execute_pre): Eventually dump details about ANTIC_IN.
4989
4990 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4991
4992         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
4993         * gcc.c (translate_options, init_spec, store_arg, read_specs,
4994         add_to_obstack, file_at_path, find_a_file, execute,
4995         add_preprocessor_option, add_assembler_option, add_linker_option,
4996         process_command, insert_wrapper, do_option_spec, do_self_spec,
4997         spec_path, do_spec_1, is_directory, main, used_arg,
4998         getenv_spec_function): Likewise.
4999         * tlink.c (symbol_hash_lookup, file_hash_lookup,
5000         demangled_hash_lookup, symbol_push, file_push, frob_extension):
5001         Likewise.
5002
5003 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
5004
5005         * doc/rtl.texi: Updated subreg section.
5006
5007 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
5008
5009         PR c++/36523
5010         * cgraphunit.c (cgraph_process_new_functions): Don't clear
5011         node->needed and node->reachable.
5012         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
5013         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
5014         (expand_task_call): Don't call expand_task_copyfn.
5015         (expand_task_copyfn): Renamed to...
5016         (finalize_task_copyfn): ... this.
5017
5018 2008-06-19  Jan Hubicka  <jh@suse.cz>
5019
5020         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
5021         clobbering framepointer.
5022
5023 2008-06-19  Jan Hubicka  <jh@suse.cz>
5024
5025         * tree-optimize.c (execute_early_local_optimizations): Set
5026         cgraph_state only at first invocation.
5027
5028 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5029
5030         * system.h (-Wc++-compat): Activate as a warning, no an error.
5031
5032 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
5033
5034         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
5035         instead of "#" in insn asm template.
5036         (*jcc_fused_2): Ditto.
5037
5038 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
5039
5040         * config/i386/i386.h (ix86_tune_indices)
5041         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
5042         (TARGET_FUSE_CMP_AND_BRANCH): New define.
5043         * config/i386/i386.md (*jcc_fused_1): New insn pattern
5044         (*jcc_fused_2): Ditto.
5045         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
5046         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
5047         (print operand): Handle 'E' and 'e' code.
5048
5049 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
5050
5051         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
5052         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
5053         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
5054
5055 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
5056
5057         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
5058         node->decl.
5059         (cgraph_expand_function): Use local copy of decl.
5060         (cgraph_expand_all_functions): Remove redundant initialization of
5061         order_pos.
5062         (cgraph_optimize): Reword internal_error message.
5063
5064 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
5065
5066         * arm-protos.h (arm_return_in_memory): Remove public
5067         arm_return_in_memory() prototype.
5068         * arm.c (arm_return_in_memory): Add static prototype, add target
5069         hook macro, change definition and comments.
5070         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
5071
5072 2008-06-19  Ben Elliston  <bje@au.ibm.com>
5073
5074         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
5075         real.c: Remove references to IEEE 754R.
5076         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
5077         * doc/libgcc.texi (Decimal float library routines): Likewise.
5078
5079 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5080
5081         * targhooks.h (struct gcc_target): New member unwind_word_mode.
5082         (default_unwind_word_mode): Add prototype.
5083         * targhooks.c (default_unwind_word_mode): New function.
5084         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
5085         instead of word_mode.
5086         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
5087         (TARGET_INITIALIZER): Use it.
5088
5089         * c-common.c (handle_mode_attribute): Support "unwind_word"
5090         mode attribute.
5091         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
5092
5093         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
5094         word_mode to access SjLj_Function_Context member "data".
5095         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
5096         conversion from targetm.eh_return_filter_mode () to
5097         targetm.unwind_word_mode () if they differ.
5098
5099         * builtin-types.def (BT_UNWINDWORD): New primitive type.
5100         (BT_FN_UNWINDWORD_PTR): New function type.
5101         (BT_FN_WORD_PTR): Remove.
5102         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
5103         * except.c (expand_builtin_extend_pointer): Convert pointer to
5104         targetm.unwind_word_mode () instead of word_mode.
5105
5106         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
5107         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
5108         (spu_unwind_word_mode): New function.
5109         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
5110         (TARGET_UNWIND_WORD_MODE): Define.
5111         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
5112
5113 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5114
5115         * config/spu/spu.c (reg_align): Remove.
5116         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
5117         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
5118         (spu_split_store): Likewise.
5119
5120 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
5121
5122         * gcc/tree-vn.c: Fix typo in comment.
5123
5124 2008-06-18  Jan Hubicka  <jh@suse.cz>
5125
5126         * cgraphunit.c (cgraph_optimize): Output debug info when doing
5127         toplevel reorder too.
5128
5129 2008-06-18  Jan Hubicka  <jh@suse.cz>
5130
5131         * c-opts.c (c_common_post_options): PCH is not compatible with
5132         no-unit-at-a-time.
5133         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
5134         -fno-toplevel-reorder by default now.
5135
5136 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5137
5138         PR documentation/30739
5139         * doc/install.texi (Prerequisites): Document dependency on awk.
5140
5141 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
5142             Ian Lance Taylor  <iant@google.com>
5143
5144         PR rtl-optimization/35604
5145         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
5146         only want to change jump destinations, not eventual label comparisons.
5147
5148 2008-06-16  Jan Hubicka  <jh@suse.cz>
5149
5150         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
5151         syntax errors.
5152         (cgraph_analyze_function): Likewise.
5153
5154 2008-06-16  Jan Hubicka  <jh@suse.cz>
5155
5156         * cgraph.h (cgraph_mark_if_needed): New function.
5157         * cgraphunit.c (cgraph_mark_if_needed): New function.
5158         * c-decl.c (duplicate_decl): Use it.
5159
5160 2008-06-16  Jan Hubicka  <jh@suse.cz>
5161
5162         * cgraph.c (cgraph_add_new_function): When in expansion state, do
5163         lowering.
5164
5165 2008-06-16  Jan Hubicka  <jh@suse.cz>
5166
5167         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
5168
5169 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
5170             Kazu Hirata  <kazu@codesourcery.com>
5171             Maxim Kuvyrkov  <maxim@codesourcery.com
5172
5173         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
5174         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
5175         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
5176         EXTRA_SPEC_FUNCTIONS.
5177         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
5178         (DRIVER_SELF_SPECS): Adjust.
5179         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
5180         * config/mips/st.h, config/mips/t-st: New.
5181         * config/mips/driver-native.c, config/mips/x-native: New.
5182         * doc/invoke.texi (MIPS): Document 'native' value for -march and
5183         -mtune options.
5184
5185 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
5186
5187         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
5188         from it.
5189         (ISA_HAS_FP_CONDMOVE): New macro.
5190         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
5191         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
5192         (ISA_HAS_NMADD3_NMSUB3): New macro.
5193         * config/mips/mips.c (mips_rtx_costs): Update.
5194         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
5195         compiling for ST Loongson 2E/2F.
5196         (madd<mode>): Rename to madd4<mode>.  Update.
5197         (madd3<mode>): New pattern.
5198         (msub<mode>): Rename to msub4<mode>.  Update.
5199         (msub3<mode>): New pattern.
5200         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
5201         (nmadd3<mode>): New pattern.
5202         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
5203         (nmadd3<mode>_fastmath): New pattern.
5204         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
5205         (nmsub3<mode>): New pattern.
5206         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
5207         (nmsub3<mode>_fastmath): New pattern.
5208         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
5209
5210 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
5211
5212         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
5213         (DF_REF_INSN_INFO): New.
5214         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
5215         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
5216         with a NULL DF_REF_INSN_INFO.
5217         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
5218         DF_INSN_SET.
5219         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
5220         DF_INSN_INFO_EQ_USES): New.
5221         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
5222         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
5223         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
5224         * df-core.c: Update comment for above changes.
5225         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
5226         DF_INSN_UID_* macros.
5227         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
5228         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
5229         insn rtx.  Update all callers.
5230         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
5231         df_ref_create_structure, df_insn_refs_collect): Likewise.
5232         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
5233         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
5234         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
5235         macros to access the insn refs.
5236         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
5237         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
5238         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
5239         for accessing the refs.
5240         (try_fwprop_subst): Likewise.
5241         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
5242         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
5243         for accessing the refs.
5244         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
5245         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
5246         to look at the insn refs.
5247         (record_uses): Likewise.
5248         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
5249         function anymore.
5250         (mark_artificial_uses): Don't mark_insn for artificial refs.
5251         (mark_reg_rependencies): Likewise.
5252
5253         * doc/rtl.texi: Remove documentation of ADDRESSOF.
5254
5255 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5256
5257         * configure: Regenerate.
5258
5259 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
5260
5261         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
5262         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5263         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5264
5265 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
5266
5267         * config/avr/avr.c (avr_mcu_t): Add attiny167.
5268         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5269         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5270
5271 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
5272
5273         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
5274         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5275         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5276
5277 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
5278
5279         * tree-ssa-sccvn.c: Fix format of comments.
5280
5281 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
5282
5283         * cgraph.c: Remove unneeded forward declarations of eq_node()
5284         and hash_node().
5285
5286 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
5287
5288         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
5289         REG_RETVAL notes.
5290         (see_update_relevancy): Likewise.
5291         * fwprop.c (try_fwprop_subst): Likewise.
5292         * rtlanal.c (noop_move_p): Likewise.
5293         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
5294         notes to non-existing libcall blocks.
5295         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
5296         Remove orig_set.
5297         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
5298         (dead_libcall_p): Remove.
5299         (delete_trivially_dead_insns): Don't use it.
5300         * web.c (union_defs): Remove comment about keeping nops.
5301         * gcse.c (hash_scan_insn): Don't take libcall pointers.
5302         (compute_hash_table_work): Don't track libcall notes.
5303         (do_local_cprop): Don't take libcall pointers.  Don't update
5304         libcall notes.
5305         (adjust_libcall_notes): Deleted.
5306         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
5307         ever have existed in the first place).
5308         (replace_store_insn): Don't try to remove libcall notes.
5309         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
5310         (resolve_reg_notes): Don't call them.
5311         (resolve_simple_move): Likewise.
5312         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
5313         Don't remove REG_RETVAL notes.
5314         * emit-rtl.c (try_split): Don't update libcall notes.
5315         (emit_copy_of_insn_after): Dito.
5316         * cselib.c (cselib_current_insn_in_libcall): Remove.
5317         (cselib_process_insn): Don't set/clear it.
5318         (new_elt_loc_list): Don't record it.
5319         (cselib_init): Don't initialize it.
5320         * cselib.c (struct elt_loc_list): Remove in_libcall field.
5321         * loop-invariant.c (find_invariant_insn): Don't look for libcall
5322         notes.
5323         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
5324         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
5325         (init_deps): Don't initialize it.
5326         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
5327         * combine.c (delete_noop_moves): Don't update libcall notes.
5328         (can_combine_p): Remove now pointless #if 0 block.
5329         (try_combine): Remove another obsolete #if 0 block.
5330         (distribute_notes): Don't distribute libcall notes.
5331         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
5332         * dce.c (libcall_dead_p): Remove.
5333         (delete_unmarked_insns): Don't handle libcall blocks.
5334         (preserve_libcall_for_dce): Remove.
5335         (prescan_insns_for_dce): Don't special-case libcall block insns.
5336         * reload1 (reload): Don't handle libcall notes.
5337         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
5338         documentation.
5339
5340 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
5341
5342         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
5343         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5344         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5345
5346 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
5347
5348         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
5349         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5350         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5351
5352 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5353
5354         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
5355
5356 2008-06-16  Ira Rosen  <irar@il.ibm.com>
5357
5358         PR tree-optimization/36493
5359         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
5360         the arguments list. Use VECTYPE to create vector pointer.
5361         (vectorizable_store): Fail if accesses through a pointer to vectype
5362         do not alias the original memory reference operands.
5363         Call vect_create_data_ref_ptr without the removed argument.
5364         (vectorizable_load): Likewise.
5365         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
5366         removed argument.
5367
5368 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
5369
5370         PR target/36336
5371         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
5372         reg_equiv_constant.
5373
5374 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5375
5376         * config/mips/loongson2ef.md: New file.
5377         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5378         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5379         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5380         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
5381         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
5382         and loongson_2f.
5383         (loongson2ef.md): New include.
5384         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
5385         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
5386         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
5387         (loongson_gt_<mode>, loongson_extract_halfword)
5388         (loongson_insert_halfword_0, loongson_insert_halfword_2)
5389         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
5390         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
5391         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
5392         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
5393         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
5394         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
5395         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
5396         (vec_interleave_low<mode>): Define type attribute.
5397         * config/mips/mips.c (mips_ls2): New static variable.
5398         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
5399         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
5400         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
5401         Implement target scheduling hooks.
5402         (mips_multipass_dfa_lookahead): Update to handle tuning for
5403         Loongson 2E/2F.
5404         (mips_sched_init): Initialize data for Loongson scheduling.
5405         (mips_ls2_variable_issue): New static function.
5406         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
5407         Add sanity check.
5408         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
5409         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
5410         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
5411         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
5412         Handle ST Loongson 2E/2F cores.
5413         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
5414
5415 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5416
5417         * omp-low.c (extract_omp_for_data): Fix comment typo.
5418         * c.opt: Fix typo.
5419
5420 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5421
5422         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
5423         FIXME note about gcc/config.guess.
5424         * doc/options.texi (Option file format): Remove non-ASCII bytes.
5425         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
5426         * doc/cppopts.texi: Likewise.
5427         * doc/extend.texi: Likewise.
5428         * doc/gcc.texi: Likewise.
5429         * doc/gccint.texi: Likewise.
5430         * doc/gcov.texi: Likewise.
5431         * doc/gty.texi: Likewise.
5432         * doc/hostconfig.texi: Likewise.
5433         * doc/install.texi: Likewise.
5434         * doc/invoke.texi: Likewise.
5435         * doc/loop.texi: Likewise.
5436         * doc/makefile.texi: Likewise.
5437         * doc/md.texi: Likewise.
5438         * doc/passes.texi: Likewise.
5439         * doc/tm.texi: Likewise.
5440         * doc/tree-ssa.texi: Likewise.
5441         * doc/trouble.texi: Likewise.
5442
5443 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
5444             Nathan Sidwell  <nathan@codesourcery.com>
5445             Maxim Kuvyrkov  <maxim@codesourcery.com>
5446             Richard Sandiford  <rdsandiford@googlemail.com>
5447
5448         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
5449         * config/mips/mips-protos.h (mips_expand_vector_init): New.
5450         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
5451         builtins.
5452         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
5453         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
5454         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
5455         V8QImode cases.
5456         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
5457         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
5458         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
5459         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
5460         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
5461         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
5462         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
5463         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
5464         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
5465         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
5466         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
5467         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
5468         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
5469         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
5470         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
5471         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
5472         (mips_builtins): Add Loongson builtins.
5473         (mips_loongson_2ef_bdesc): New.
5474         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
5475         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
5476         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
5477         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
5478         New.
5479         (mips_expand_vector_init): New.
5480         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
5481         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
5482         if appropriate.
5483         * config/mips/mips.md: Add unspec numbers for Loongson
5484         builtins.  Include loongson.md.
5485         (MOVE64): Include Loongson vector modes.
5486         (SPLITF): Include Loongson vector modes.
5487         (HALFMODE): Handle Loongson vector modes.
5488         * config/mips/loongson.md: New.
5489         * config/mips/loongson.h: New.
5490         * config.gcc: Add loongson.h header for mips*-*-* targets.
5491         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
5492
5493 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
5494
5495         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
5496         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
5497         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
5498         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
5499         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
5500         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
5501         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
5502         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
5503         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
5504         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
5505         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
5506         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
5507         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
5508         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
5509         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
5510         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
5511         Remove use_fixproto=yes.
5512         (ia64*-*-hpux*): Remove comment about using fixproto.
5513         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
5514
5515 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5516
5517         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
5518         library rebuilds.
5519         * configure: Regenerate.
5520
5521 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
5522
5523         PR middle-end/36520
5524         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
5525         before evaluating it.
5526
5527 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
5528
5529         PR c/36507
5530         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
5531         nested inline functions.
5532         (start_decl, start_function): Don't invert DECL_EXTERNAL
5533         for nested inline functions.
5534
5535 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
5536
5537         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
5538         splits that must be made for correctness.
5539
5540 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
5541
5542         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
5543         (AVAIL_NON_MIPS16): Likewise.
5544         (mips_builtin_description): Replace target_flags with a predicate.
5545         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
5546         (dspr2_32): New availability predicates.
5547         (MIPS_BUILTIN): New macro.
5548         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
5549         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
5550         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
5551         Replace the TARGET_FLAGS parameters with AVAIL parameters.
5552         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
5553         (mips_dsp_32only_bdesc): Merge into...
5554         (mips_builtins): ...this new array.
5555         (mips_bdesc_map, mips_bdesc_arrays): Delete.
5556         (mips_init_builtins): Update after above changes.
5557         (mips_expand_builtin_1): Merge into...
5558         (mips_expand_builtin): ...here and update after above changes.
5559
5560 2008-06-12  Paul Brook  <paul@codesourcery.com>
5561
5562         * longlong.h (__arm__): Define count_leading_zeros.
5563         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
5564         (clzsi2, clzdi2): New functions.
5565         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
5566         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
5567         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
5568         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
5569         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
5570         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
5571         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
5572         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
5573         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
5574         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
5575
5576 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
5577
5578         * config/m68k/m68k.c (m68k_tune_flags): New.
5579         (override_options): Compute m68k_tune_flags.
5580         (MULL_COST, MULW_COST): Update for various variants of CFV2.
5581         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
5582
5583 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5584
5585         PR middle-end/36506
5586         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
5587
5588 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
5589
5590         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
5591         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
5592
5593 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
5594
5595         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
5596         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
5597
5598 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5599
5600         PR middle-end/36506
5601         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
5602         reductions.
5603
5604 2008-06-12  Richard Guenther  <rguenther@suse.de>
5605
5606         PR tree-optimization/36345
5607         * tree-flow.h (struct ptr_info_def): Align escape_mask,
5608         add memory_tag_needed flag.
5609         (may_alias_p): Declare.
5610         * tree-ssa-alias.c (may_alias_p): Export.
5611         (set_initial_properties): Use memory_tag_needed flag.
5612         (update_reference_counts): Likewise.
5613         (reset_alias_info): Reset memory_tag_needed flag.
5614         (create_name_tags): Check memory_tag_needed flag.
5615         (dump_points_to_info_for): Dump it.
5616         * tree-ssa-structalias.c (struct variable_info): Remove
5617         directly_dereferenced flag.
5618         (new_var_info): Do not initialize it.
5619         (process_constraint_1): Do not set it.
5620         (update_alias_info): Set is_dereferenced flag.
5621         (set_uids_in_ptset): Use may_alias_p.
5622         (set_used_smts): Check memory_tag_needed flag.
5623         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
5624         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
5625         memory_tag_needed flag.
5626         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
5627         from broken design.
5628
5629 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
5630
5631         * config/i386/i386.c (ix86_compute_frame_layout): Disable
5632         red zone for w64 abi.
5633         (ix86_expand_prologue): Likewise.
5634         (ix86_force_to_memory): Likewise.
5635         (ix86_free_from_memory): Likewise.
5636
5637 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
5638
5639         PR target/36425
5640         * config/rs6000/rs6000.c (rs6000_override_options): Set
5641         rs6000_isel conditionally to the absence of comand line override.
5642         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
5643         Remove duplicate rs6000_isel setting.
5644         * config/rs6000/eabispe.h: Ditto.
5645
5646 2008-06-11  Richard Guenther  <rguenther@suse.de>
5647
5648         * alias.c (get_alias_set): Use the element alias-set for arrays.
5649         (record_component_aliases): For arrays and vectors do nothing.
5650         * c-common.c (strict_aliasing_warning): Handle the cases
5651         of alias set zero explicitly.
5652         * Makefile.in (dfp.o-warn): Add -Wno-error.
5653
5654 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
5655
5656         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
5657         tune_32 tune_64.
5658         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
5659         tune_32 tune_64 to supported_defaults.  Allow values not
5660         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
5661         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
5662         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
5663         with_cpu_64 to generic for 64-bit-supporting configurations, not
5664         with_cpu.  Remove FIXMEs.
5665         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
5666         --with-arch-64, --with-tune-32, --with-tune-64): Document.
5667         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
5668         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
5669         arch_32 and arch_64.
5670
5671 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
5672             Olivier Hainque  <hainque@adacore.com>
5673
5674         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
5675         Use DECL_SIZE_UNIT to retrieve the size of the field.
5676
5677 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
5678
5679         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
5680         with function calls after declarations.  Lay out
5681         neon_float_type_node before further use.
5682
5683 2008-06-11  Richard Guenther  <rguenther@suse.de>
5684
5685         * tree-flow.h (may_point_to_global_var): Declare.
5686         * tree-ssa-alias.c (may_point_to_global_var): New function.
5687         * tree-ssa-sink.c (is_hidden_global_store): Use it.
5688
5689 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
5690
5691         * configure.ac: Teach that fido supports .debug_line.
5692         * configure: Regenerate.
5693
5694 2008-06-10  Tom Tromey  <tromey@redhat.com>
5695
5696         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
5697         debug hook.
5698
5699 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
5700
5701         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
5702         (encode_decimal64, decode_decimal64, encode_decimal128,
5703         decode_decimal128): Reverse order of 32-bit parts of value if host
5704         and target endianness differ.
5705
5706 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
5707
5708         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
5709         Avoid division by 0.
5710         (tree_mod_pow2_value_transform): Likewise.
5711         (tree_ic_transform): Likewise.
5712         (tree_stringops_transform): Likewise.
5713         (tree_mod_subtract_transform): Likewise.
5714         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
5715         (copy_edges_for_bb): Likewise.
5716         (initialize_cfun): Likewise.
5717
5718 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
5719
5720         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
5721         nonmemory_operand. Add "N" operand constraint.
5722         (*btsi): Ditto.
5723         (*jcc_btdi_mask_rex64): New instruction and split pattern.
5724         (*jcc_btsi_mask): Ditto.
5725         (*jcc_btsi_mask_1): Ditto.
5726
5727 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
5728
5729         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
5730         TYPE_CANONICAL for copied element type.
5731
5732 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
5733
5734         PR target/36473
5735         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
5736         Add m_CORE2 and m_GENERIC.
5737         * config/i386/predicates.md (bt_comparison_operator): New predicate.
5738         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
5739         (*btsi): Ditto.
5740         (*jcc_btdi_rex64): New instruction and split pattern.
5741         (*jcc_btsi): Ditto.
5742         (*jcc_btsi_1): Ditto.
5743         (*btsq): Fix Intel asm dialect operand order.
5744         (*btrq): Ditto.
5745         (*btcq): Ditto.
5746
5747 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
5748
5749         PR middle-end/36447
5750         * simplify-rtx.c (simplify_subreg): Add check for shift count
5751         greater than size.
5752
5753 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
5754
5755         * doc/md.texi: Synchronize with later constraints.md change.
5756         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
5757         with a C implementation.
5758         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
5759         MFLO handling.
5760         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
5761         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
5762         when moving to and from MD_REGNUM.
5763         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
5764         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
5765         Handle byte and halfword moves.
5766         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
5767         separately.
5768         * config/mips/constraints.md (h): Turn into NO_REGS.
5769         (l, x): Update documentation.
5770         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
5771         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
5772         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
5773         (HILO): New mode iterator.
5774         (MOVE128): Add TI.
5775         (any_div): New code iterator.
5776         (u): Extend code attribute to div and udiv.
5777         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
5778         d_operand in the splitters.  Remove redundant CONST_INT checks.
5779         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
5780         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
5781         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
5782         accordingly, using normal moves instead of unspecs to move LO into
5783         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
5784         (<u>mulsidi3): Handle expansion in C code.
5785         (<u>mulsidi3_32bit_internal): Rename to...
5786         (<u>mulsidi3_32bit): ...this.
5787         (<u>mulsidi3_32bit_r4000): Fix insn separator.
5788         (*<u>mulsidi3_64bit): Rename to...
5789         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
5790         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
5791         to set LO and HI to the multiplication result.  Use a normal move
5792         for MFLO and an unspec for MFHI.
5793         (*<u>mulsidi3_64bit_parts): Replace with...
5794         (<u>mulsidi3_64bit_hilo): ...this new instruction.
5795         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
5796         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
5797         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
5798         instead of HI.  Split the instruction into a separate multiplication
5799         and MFHI if !TARGET_FIX_R4000.
5800         (<su>muldi3_highpart): Likewise.
5801         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
5802         and the "=h" clobber.
5803         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
5804         (<u>mulditi3): New expander.
5805         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
5806         (madsi): Remove "=h" clobber.
5807         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
5808         Force the modulus result to be a GPR and split the instruction into
5809         a division followed by an MFHI after reload.
5810         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
5811         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
5812         the MIPS16 HIGH define_split.
5813         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
5814         of acc<->gpr moves to "multi".
5815         (*movdi_64bit): Replace the single "x" alternative with
5816         alternatives for moving into and out of "a".
5817         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
5818         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
5819         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
5820         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
5821         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
5822         (movti): New expander.
5823         (*movti, *movti_mips16): New insns.
5824         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
5825         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
5826         (mthi<GPR:mode>_<HILO:mode>): Likewise.
5827         * config/mips/predicates.md (fpr_operand): Delete.
5828         (d_operand): New predicate.
5829
5830 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
5831
5832         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
5833         failure on some Bourne shells.
5834         (x86_64-*-*): Ditto.
5835
5836 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
5837
5838         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
5839
5840 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
5841
5842         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
5843         (sparc-sun-solaris2*): Likewise.
5844
5845 2008-06-09  Arnaud Charlet  <charlet@adacore.com
5846
5847         * doc/install.texi: Update requirements to build the Ada compiler.
5848
5849 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
5850
5851         * df-scan.c (struct df_scan_problem_data): Remove the
5852         mw_link_pool alloc pool.
5853         (df_scan_free_internal): Don't free it.
5854         (df_scan_alloc): Don't allocate it.
5855         * df.h (struct df_link): Update comment.
5856
5857 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
5858
5859         * except.h: Correct checks for when SJLJ exceptions must be used.
5860
5861 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5862
5863         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
5864         default.
5865
5866 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
5867
5868         PR tree-optimization/36218
5869         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
5870         configure for the build system.
5871         (BUILD_LDFLAGS): Define.
5872         * configure: Regenerate.
5873         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
5874
5875 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
5876
5877         PR target/36424
5878         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
5879         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
5880         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
5881
5882 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
5883
5884         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
5885
5886 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
5887
5888         * config.gcc (Obsolete configurations): Remove list of
5889         configurations.
5890         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
5891         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
5892         targets matched by those patterns.
5893         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
5894         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
5895         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
5896         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
5897         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5898         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
5899         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
5900         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
5901         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
5902         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
5903         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
5904         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
5905         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
5906         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
5907         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
5908         Make code for Solaris 7 and greater unconditional for Solaris.
5909         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
5910         Remove --with-* handling.
5911         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
5912         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
5913         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
5914         LINK_OS_WINDISS_SPEC): Remove.
5915         * config/rs6000/sysv4.opt (mwindiss): Remove.
5916         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
5917         * configure: Regenerate.
5918         * doc/cpp.texi: Don't mention BeOS.
5919         * doc/extend.texi (interrupt): Don't mention MS1.
5920         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
5921         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
5922         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
5923         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
5924         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
5925         Remove.
5926         * doc/invoke.texi (MT Options): Remove.
5927         (-mwindiss): Remove.
5928         (CRIS Options): Remove cris-axis-aout references.
5929         (HPPA Options): Don't mention hppa1.1-*-pro.
5930         * doc/md.texi: (MorphoTech family): Remove.
5931         * libgcc2.c: Don't handle UWIN.
5932         * config/alpha/t-unicosmk: Remove.
5933         * config/alpha/unicosmk.h: Remove.
5934         * config/arm/kaos-arm.h: Remove.
5935         * config/arm/kaos-strongarm.h: Remove.
5936         * config/arm/strongarm-coff.h: Remove.
5937         * config/arm/strongarm-elf.h: Remove.
5938         * config/arm/strongarm-pe.h: Remove.
5939         * config/arm/t-strongarm-pe: Remove.
5940         * config/arm/t-xscale-coff: Remove.
5941         * config/arm/t-xscale-elf: Remove.
5942         * config/arm/xscale-coff.h: Remove.
5943         * config/arm/xscale-elf.h: Remove.
5944         * config/chorus.h: Remove.
5945         * config/cris/aout.h: Remove.
5946         * config/cris/aout.opt: Remove.
5947         * config/cris/t-aout: Remove.
5948         * config/i386/beos-elf.h: Remove.
5949         * config/i386/kaos-i386.h: Remove.
5950         * config/i386/ptx4-i.h: Remove.
5951         * config/i386/sco5.h: Remove.
5952         * config/i386/sco5.opt: Remove.
5953         * config/i386/sysv4-cpp.h: Remove.
5954         * config/i386/sysv5.h: Remove.
5955         * config/i386/t-beos: Remove.
5956         * config/i386/t-sco5: Remove.
5957         * config/i386/t-uwin: Remove.
5958         * config/i386/uwin.asm: Remove.
5959         * config/i386/uwin.h: Remove.
5960         * config/kaos.h: Remove.
5961         * config/mips/windiss.h: Remove.
5962         * config/mt: Remove directory.
5963         * config/pa/pa-osf.h: Remove.
5964         * config/pa/pa-pro-end.h: Remove.
5965         * config/pa/t-pro: Remove.
5966         * config/ptx4.h: Remove.
5967         * config/rs6000/beos.h: Remove.
5968         * config/rs6000/kaos-ppc.h: Remove.
5969         * config/rs6000/t-beos: Remove.
5970         * config/rs6000/windiss.h: Remove.
5971         * config/sh/kaos-sh.h: Remove.
5972         * config/sol2-6.h: Remove.
5973         * config/sparc/sol26-sld.h: Remove.
5974         * config/sparc/sysv4-only.h: Remove.
5975         * config/vax/bsd.h: Remove.
5976         * config/vax/t-memfuncs: Remove.
5977         * config/vax/ultrix.h: Remove.
5978         * config/vax/vaxv.h: Remove.
5979         * config/windiss.h: Remove.
5980
5981 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
5982
5983         PR rtl-optimization/36438
5984         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
5985         for vector shifts with constant scalar shift operands.
5986
5987 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
5988
5989         * doc/invoke.texi: Document -march=xlr.
5990         * config/mips/xlr.md: New file.
5991         * config/mips/mips.md: Include it.
5992         (cpu): Add "xlr".
5993         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
5994         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
5995         (mips_rtx_cost_data): Likewise.
5996
5997 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
5998
5999         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
6000         PRE_INC and PRE_DEC cases.
6001
6002 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
6003
6004         PR rtl-optimization/36419
6005         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
6006         the emitting jump insn.
6007
6008         PR target/36362
6009         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
6010         is not bool, boolify the whole *expr_p and convert to the desired type.
6011
6012 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
6013
6014         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
6015         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
6016         Add omp_private_outer_ref hook, add another argument to
6017         omp_clause_default_ctor hook.
6018         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
6019         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
6020         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
6021         hook_tree_tree_tree_tree_null.
6022         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
6023         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
6024         * hooks.c (hook_tree_tree_tree_tree_null): New function.
6025         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
6026         * tree.def (OMP_TASK): New tree code.
6027         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
6028         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
6029         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
6030         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
6031         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
6032         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
6033         OMP_CLAUSE_COLLAPSE_EXPR): Define.
6034         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
6035         (OMP_DIRECTIVE_P): Add OMP_TASK.
6036         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
6037         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
6038         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
6039         and OMP_CLAUSE_UNTIED entries.
6040         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
6041         num_ops to 2.
6042         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
6043         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
6044         * tree-pretty-print.c (dump_omp_clause): Handle
6045         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
6046         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
6047         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
6048         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
6049         warning about unsigned iterators.  Change decl/init/cond/incr
6050         arguments to TREE_VECs, check arguments for all collapsed loops.
6051         (c_finish_omp_taskwait): New function.
6052         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
6053         ws_clauses.
6054         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
6055         default_function_array_conversion on init.  Add par_clauses argument.
6056         If decl is present in parallel's lastprivate clause, change it to
6057         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
6058         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
6059         collapse count in clauses.
6060         (c_parser_omp_for, c_parser_omp_parallel): Adjust
6061         c_parser_omp_for_loop callers.
6062         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
6063         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
6064         (c_parser_omp_clause_name): Handle collapse and untied clauses.
6065         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
6066         functions.
6067         (c_parser_omp_clause_schedule): Handle schedule(auto).
6068         Include correct location in the error message.
6069         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
6070         and PRAGMA_OMP_CLAUSE_UNTIED.
6071         (OMP_TASK_CLAUSE_MASK): Define.
6072         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
6073         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
6074         * tree-nested.c (convert_nonlocal_omp_clauses,
6075         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
6076         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
6077         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
6078         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
6079         OMP_CLAUSE_DECL.
6080         (conver_nonlocal_reference, convert_local_reference,
6081         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
6082         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
6083         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
6084         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
6085         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
6086         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
6087         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
6088         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
6089         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
6090         OMP_CLAUSE_UNTIED.
6091         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
6092         * c-common.h (c_finish_omp_taskwait): New prototype.
6093         * gimple-low.c (lower_stmt): Handle OMP_TASK.
6094         * tree-parloops.c (create_parallel_loop): Create 1 entry
6095         vectors for OMP_FOR_{INIT,COND,INCR}.
6096         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
6097         (make_edges): Handle OMP_TASK.
6098         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
6099         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
6100         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
6101         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
6102         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
6103         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
6104         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
6105         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
6106         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
6107         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
6108         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
6109         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
6110         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
6111         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
6112         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
6113         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
6114         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
6115         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
6116         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
6117         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
6118         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
6119         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
6120         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
6121         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
6122         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
6123         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
6124         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
6125         original iterator is present in lastprivate clause or if
6126         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
6127         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
6128         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
6129         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
6130         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
6131         if it is set, lookup var in outer contexts too.  Handle
6132         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
6133         to be implicitly determined firstprivate for task regions.
6134         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
6135         if it is set, lookup var in outer contexts too.  Set
6136         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
6137         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
6138         OMP_CLAUSE_UNTIED.  Take region_type as last argument
6139         instead of in_parallel and in_combined_parallel.
6140         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
6141         Adjust callers.
6142         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
6143         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
6144         (new_omp_context): Set default_kind to
6145         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
6146         (omp_region_type): New enum.
6147         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
6148         fields, add region_type.
6149         (new_omp_context): Take region_type as argument instead of is_parallel
6150         and is_combined_parallel.
6151         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
6152         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
6153         ctx->is_combined_parallel checks.
6154         (gimplify_omp_task): New function.
6155         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
6156         OMP_CLAUSE_UNTIED.
6157         * omp-low.c (extract_omp_for_data): Use schedule(static)
6158         for schedule(auto).  Handle pointer and unsigned iterators.
6159         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
6160         Add loops argument.  Extract data for collapsed OMP_FOR loops.
6161         (expand_parallel_call): Assert sched_kind isn't auto,
6162         map runtime schedule to index 3.
6163         (struct omp_for_data_loop): New type.
6164         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
6165         Add loop, loops, collapse and iter_type fields.
6166         (workshare_safe_to_combine_p): Disallow combined for if
6167         iter_type is unsigned long long.  Don't combine collapse > 1 loops
6168         unless all bounds and steps are constant.  Adjust extract_omp_for_data
6169         caller.
6170         (expand_omp_for_generic): Handle pointer, unsigned and long long
6171         iterators.  Handle collapsed OMP_FOR loops.  Adjust
6172         for struct omp_for_data changes.  If libgomp function doesn't return
6173         boolean_type_node, add comparison of the return value with 0.
6174         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
6175         pointer, unsigned and long long iterators.  Adjust for struct
6176         omp_for_data changes.
6177         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
6178         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
6179         unsigned long long.  Allocate loops array, pass it to
6180         extract_omp_for_data.  For collapse > 1 loops use always
6181         expand_omp_for_generic.
6182         (omp_context): Add sfield_map and srecord_type fields.
6183         (is_task_ctx, lookup_sfield): New functions.
6184         (use_pointer_for_field): Use is_task_ctx helper.  Change first
6185         argument's type from const_tree to tree.  Clarify comment.
6186         In OMP_TASK disallow copy-in/out sharing.
6187         (build_sender_ref): Call lookup_sfield instead of lookup_field.
6188         (install_var_field): Add mask argument.  Populate both record_type
6189         and srecord_type if needed.
6190         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
6191         in srecord_type.
6192         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
6193         and DECL_FIELD_OFFSET.
6194         (scan_sharing_clauses): Adjust install_var_field callers.  For
6195         firstprivate clauses on explicit tasks allocate the var by value in
6196         record_type unconditionally, rather than by reference.
6197         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
6198         Use is_taskreg_ctx instead of is_parallel_ctx.
6199         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
6200         (create_omp_child_function_name): Add task_copy argument, use
6201         *_omp_cpyfn* names if it is true.
6202         (create_omp_child_function): Add task_copy argument, if true create
6203         *_omp_cpyfn* helper function.
6204         (scan_omp_parallel): Adjust create_omp_child_function callers.
6205         Rename parallel_nesting_level to taskreg_nesting_level.
6206         (scan_omp_task): New function.
6207         (lower_rec_input_clauses): Don't run constructors for firstprivate
6208         explicit task vars which are initialized by *_omp_cpyfn*.
6209         Pass outer var ref to omp_clause_default_ctor hook if
6210         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
6211         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
6212         OMP_CLAUSE_REDUCTION_INIT.
6213         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
6214         avoid duplicate setting of fields.  Handle
6215         OMP_CLAUSE_PRIVATE_OUTER_REF.
6216         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
6217         copy-out if TREE_READONLY, only copy-in.
6218         (expand_task_copyfn): New function.
6219         (expand_task_call): New function.
6220         (struct omp_taskcopy_context): New type.
6221         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
6222         New functions.
6223         (lower_omp_parallel): Rename to...
6224         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
6225         Call create_task_copyfn if srecord_type is needed.  Adjust
6226         sender_decl type.
6227         (task_shared_vars): New variable.
6228         (check_omp_nesting_restrictions): Warn if work-sharing,
6229         barrier, master or ordered region is closely nested inside OMP_TASK.
6230         Add warnings for barrier if closely nested inside of work-sharing,
6231         ordered, or master region.
6232         (scan_omp_1): Call check_omp_nesting_restrictions even for
6233         GOMP_barrier calls.  Rename parallel_nesting_level to
6234         taskreg_nesting_level.  Handle OMP_TASK.
6235         (lower_lastprivate_clauses): Even if some lastprivate is found on a
6236         work-sharing construct, continue looking for them on parent parallel
6237         construct.
6238         (lower_omp_for_lastprivate): Add lastprivate clauses
6239         to the beginning of dlist rather than end.  Adjust for struct
6240         omp_for_data changes.
6241         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
6242         not after it.  Handle collapsed OMP_FOR loops, adjust for
6243         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
6244         (get_ws_args_for): Adjust extract_omp_for_data caller.
6245         (scan_omp_for): Handle collapsed OMP_FOR
6246         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
6247         (lower_omp_single_simple): If libgomp function doesn't return
6248         boolean_type_node, add comparison of the return value with 0.
6249         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
6250         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
6251         (parallel_nesting_level): Rename to...
6252         (taskreg_nesting_level): ... this.
6253         (is_taskreg_ctx): New function.
6254         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
6255         of is_parallel_ctx.
6256         (execute_lower_omp): Rename parallel_nesting_level to
6257         taskreg_nesting_level.
6258         (expand_omp_parallel): Rename to...
6259         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
6260         Call omp_task_call for OMP_TASK regions.
6261         (expand_omp): Adjust caller, handle OMP_TASK.
6262         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
6263
6264         * bitmap.c (bitmap_default_obstack_depth): New variable.
6265         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
6266         if argument is NULL and bitmap_default_obstack is already initialized.
6267         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
6268         at the end.
6269         * matrix-reorg.c (matrix_reorg): Likewise.
6270
6271 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
6272
6273         * config/i386/i386.md (*indirect_jump): Macroize using P
6274         mode iterator.  Remove !TARGET_64BIT from insn constraints.
6275         (*tablejump_1): Ditto.
6276         (*indirect_jump_rex64): Remove insn pattern.
6277         (*tablejump_1_rex64): Ditto.
6278         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
6279         and eh_return_si insn patterns.
6280
6281 2008-06-06  Richard Guenther  <rguenther@suse.de>
6282
6283         * tree-ssa-structalias.c (merge_smts_into): Remove.
6284         (find_what_p_points_to): Do not bother to compute the
6285         points-to set for pt_anything pointers.
6286         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
6287         for pt_anything pointers is ok.
6288
6289 2008-06-06  Jan Hubicka  <jh@suse.cz>
6290
6291         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
6292
6293 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6294
6295         * cgraph.c: Fix typos in comments.
6296         (cgraph_availability_names): Fix string typo.
6297         * fold-const.c: Fix typos in comments.
6298         (fold_binary): Fix typo in warning.
6299         * genautomata.c: Fix typos in comments.
6300         (check_presence_pattern_sets): Fix typo in local variable.
6301         (output_description): Fix typo in output.
6302         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
6303         * hwint.h: Likewise.
6304         * matrix-reorg.c (check_allocation_function): Likewise.
6305         * omega.c (smooth_weird_equations): Likewise.
6306         * auto-inc-dec.c: Fix typos in comments.
6307         * bb-reorder.c: Likewise.
6308         * builtins.c: Likewise.
6309         * c-common.c: Likewise.
6310         * c-cppbuiltin.c: Likewise.
6311         * c-parser.c: Likewise.
6312         * c-pretty-print.c: Likewise.
6313         * cfgcleanup.c: Likewise.
6314         * cfgexpand.c: Likewise.
6315         * cfghooks.c: Likewise.
6316         * cfglayout.c: Likewise.
6317         * cfgloopmanip.c: Likewise.
6318         * cgraphunit.c: Likewise.
6319         * coverage.c: Likewise.
6320         * dbxout.c: Likewise.
6321         * df-byte-scan.c: Likewise.
6322         * df-core.c: Likewise.
6323         * df-problems.c: Likewise.
6324         * df-scan.c: Likewise.
6325         * dfp.c: Likewise.
6326         * dominance.c: Likewise.
6327         * domwalk.c: Likewise.
6328         * dse.c: Likewise.
6329         * dwarf2out.c: Likewise.
6330         * emit-rtl.c: Likewise.
6331         * et-forest.c: Likewise.
6332         * function.c: Likewise.
6333         * function.h: Likewise.
6334         * gcc.c: Likewise.
6335         * gcov-io.c: Likewise.
6336         * gcov.c: Likewise.
6337         * gcse.c: Likewise.
6338         * genattrtab.c: Likewise.
6339         * ggc-page.c: Likewise.
6340         * gimplify.c: Likewise.
6341         * gthr-lynx.h: Likewise.
6342         * haifa-sched.c: Likewise.
6343         * ipa-cp.c: Likewise.
6344         * ipa-inline.c: Likewise.
6345         * ipa-prop.h: Likewise.
6346         * ipa-pure-const.c: Likewise.
6347         * ipa-struct-reorg.c: Likewise.
6348         * ipa-struct-reorg.h: Likewise.
6349         * ipa-type-escape.c: Likewise.
6350         * ipa.c: Likewise.
6351         * loop-doloop.c: Likewise.
6352         * mips-tfile.c: Likewise.
6353         * mkmap-flat.awk: Likewise.
6354         * mkmap-symver.awk: Likewise.
6355         * modulo-sched.c: Likewise.
6356         * omp-low.c: Likewise.
6357         * optabs.c: Likewise.
6358         * optabs.h: Likewise.
6359         * opts.c: Likewise.
6360         * passes.c: Likewise.
6361         * postreload-gcse.c: Likewise.
6362         * postreload.c: Likewise.
6363         * predict.c: Likewise.
6364         * pretty-print.h: Likewise.
6365         * profile.c: Likewise.
6366         * protoize.c: Likewise.
6367         * ra-conflict.c: Likewise.
6368         * real.c: Likewise.
6369         * recog.c: Likewise.
6370         * regclass.c: Likewise.
6371         * regs.h: Likewise.
6372         * reload.c: Likewise.
6373         * rtl-error.c: Likewise.
6374         * rtlanal.c: Likewise.
6375         * scan.h: Likewise.
6376         * sched-rgn.c: Likewise.
6377         * see.c: Likewise.
6378         * stmt.c: Likewise.
6379         * target.h: Likewise.
6380         * tree-dfa.c: Likewise.
6381         * tree-eh.c: Likewise.
6382         * tree-flow-inline.h: Likewise.
6383         * tree-inline.c: Likewise.
6384         * tree-into-ssa.c: Likewise.
6385         * tree-loop-distribution.c: Likewise.
6386         * tree-nested.c: Likewise.
6387         * tree-parloops.c: Likewise.
6388         * tree-pass.h: Likewise.
6389         * tree-pretty-print.c: Likewise.
6390         * tree-profile.c: Likewise.
6391         * tree-scalar-evolution.c: Likewise.
6392         * tree-sra.c: Likewise.
6393         * tree-ssa-alias-warnings.c: Likewise.
6394         * tree-ssa-ccp.c: Likewise.
6395         * tree-ssa-coalesce.c: Likewise.
6396         * tree-ssa-dom.c: Likewise.
6397         * tree-ssa-dse.c: Likewise.
6398         * tree-ssa-forwprop.c: Likewise.
6399         * tree-ssa-live.c: Likewise.
6400         * tree-ssa-live.h: Likewise.
6401         * tree-ssa-loop-im.c: Likewise.
6402         * tree-ssa-loop-ivopts.c: Likewise.
6403         * tree-ssa-loop-niter.c: Likewise.
6404         * tree-ssa-loop-prefetch.c: Likewise.
6405         * tree-ssa-phiopt.c: Likewise.
6406         * tree-ssa-phiprop.c: Likewise.
6407         * tree-ssa-sccvn.c: Likewise.
6408         * tree-ssa-ter.c: Likewise.
6409         * tree-ssa-threadupdate.c: Likewise.
6410         * tree-ssa.c: Likewise.
6411         * tree-vect-analyze.c: Likewise.
6412         * tree-vect-transform.c: Likewise.
6413         * tree-vectorizer.c: Likewise.
6414         * tree-vn.c: Likewise.
6415         * tree-vrp.c: Likewise.
6416         * tree.c: Likewise.
6417         * tree.def: Likewise.
6418         * tree.h: Likewise.
6419         * unwind-dw2-fde.c: Likewise.
6420         * unwind.inc: Likewise.
6421         * value-prof.c: Likewise.
6422         * vmsdbgout.c: Likewise.
6423
6424 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
6425
6426         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
6427         always place FP constants in the TOC for TARGET_POWERPC64.
6428         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
6429
6430 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
6431
6432         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
6433         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
6434         enable for TARGET_E500_DOUBLE.
6435         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
6436         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
6437         floating-point modes like integer modes for E500 double.
6438         (rs6000_legitimate_offset_address_p): Likewise.
6439         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
6440         addressing for DDmode for E500 double.
6441         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
6442         modes as using 64-bits of registers for E500 double.
6443         (spe_build_register_parallel): Do not handle DDmode or TDmode.
6444         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
6445         specially for E500 double.
6446         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
6447         TDmode for E500 double.
6448         (rs6000_gimplify_va_arg): Only handle SDmode in registers
6449         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
6450         (rs6000_split_multireg_move): Do not handle TDmode specially for
6451         E500 double.
6452         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
6453         using 64-bit registers for E500 double.
6454         (emit_frame_save): Do not handle DDmode specially for E500 double.
6455         (gen_frame_mem_offset): Likewise.
6456         (rs6000_function_value): Do not call spe_build_register_parallel
6457         for DDmode or TDmode.
6458         (rs6000_libcall_value): Likewise.
6459         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
6460         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
6461         for E500 double.
6462
6463 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6464
6465         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
6466         in comments.
6467
6468 2008-06-04  Junjie Gu <jgu@tensilica.com>
6469
6470         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
6471         comparison for frame pointers.
6472
6473 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
6474
6475         PR target/27386
6476         * config/avr/avr.h (PUSH_ROUNDING): Remove.
6477
6478 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
6479
6480         PR target/30243
6481         * builtins.c (expand_builtin_signbit): Don't take lowpart when
6482         register is already smaller or equal to required mode.
6483
6484 2008-06-04  Xinliang David Li  <davidxl@google.com>
6485
6486         * tree-call-cdce.c: New file.
6487         (cond_dead_built_in_calls): New static variable.
6488         (input_domain): New struct.
6489         (check_pow): New function.
6490         (check_builtin_call): Ditto.
6491         (check_target_format): Ditto.
6492         (is_call_dce_candidate): Ditto.
6493         (gen_one_condition): Ditto.
6494         (gen_conditions_for_domain): Ditto.
6495         (get_domain): Ditto.
6496         (gen_conditions_for_pow_cst_base): Ditto.
6497         (gen_conditions_for_pow_int_base): Ditto.
6498         (gen_conditions_for_pow): Ditto.
6499         (get_no_error_domain): Ditto.
6500         (gen_shrink_wrap_conditions): Ditto.
6501         (shrink_wrap_one_built_in_call): Ditto.
6502         (shink_wrap_conditional_dead_built_in_calls): Ditto.
6503         (tree_call_cdce): Ditto.
6504         (gate_call_cdce): Ditto.
6505         (pass_call_cdce): New gimple pass.
6506         * passes.c: (init_optimization_passes): New pass.
6507         * tree-pass.h: New pass declaration.
6508         * opts.c (decode_options): New flag setting.
6509         * common.opt: Add -ftree-builtin-call-dce flag.
6510         * Makefile.in: Add new source file.
6511         * tempvar.def: New tv_id.
6512         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
6513
6514 2008-06-04  Richard Guenther  <rguenther@suse.de>
6515
6516         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
6517         (is_call_clobbered): Always check var_ann->call_clobbered.
6518         (mark_call_clobbered): Always set var_ann->call_clobbered.
6519         (clear_call_clobbered): Always clear var_ann->call_clobbered.
6520         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
6521         (reset_alias_info): Clear call clobbering info on MTAGs and
6522         globals as well.
6523         (set_pt_anything): Set pt_global_mem.
6524         (create_tag_raw): Adjust comment.
6525         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
6526
6527 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
6528             Maxim Kuvyrkov  <maxim@codesourcery.com>
6529
6530         * config/m68k/m68k.opt (mxgot): New option.
6531         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
6532         (m68k_output_addr_const_extra): New.
6533         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
6534         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
6535         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
6536         * doc/invoke.texi (M680x0 Options): Document -mxgot.
6537
6538 2008-06-04  Richard Guenther  <rguenther@suse.de>
6539
6540         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
6541         negative or non-representable offsets.
6542
6543 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
6544
6545         * config/i386/i386.c (ix86_gen_leave): New.
6546         (ix86_gen_pop1): Likewise.
6547         (ix86_gen_add3): Likewise.
6548         (ix86_gen_sub3): Likewise.
6549         (ix86_gen_sub3_carry): Likewise.
6550         (ix86_gen_one_cmpl2): Likewise.
6551         (ix86_gen_monitor): Likewise.
6552         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
6553         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
6554         ix86_gen_one_cmpl2 and ix86_gen_monitor.
6555         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
6556         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
6557         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
6558         (ix86_expand_epilogue): Updated.
6559         (print_operand): Handle integer register operand for 'z'.
6560         (ix86_expand_strlensi_unroll_1): Likewise.
6561         (ix86_expand_strlen): Likewise.
6562         (ix86_expand_builtin): Likewise.
6563         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
6564         mov{q}/mov{l} and add{q}/add{l}.
6565
6566 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
6567
6568         * config/i386/i386.md (P): New mode iterator.
6569         (SFmode push_operand splitter): Macroize DImode and SImode pushes
6570         using P mode iterator.
6571         (DFmode push_operand splitter): Ditto.
6572         (XFmode push_operand splitter): Ditto.
6573         (DFmode float_extend SFmode push_operand splitter): Ditto.
6574         (XFmode float_extend SFmode push_operand splitter): Do not generate
6575         SImode pushes for 64bit target.  Macroize Dimode and SImode
6576         pushes using P mode iterator.
6577         (XFmode float_extend DFmode push_operand splitter): Ditto.
6578
6579 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
6580
6581         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
6582         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
6583         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
6584         return type to int.
6585         (ix86_call_abi_override): Remove check for call_used_regs.
6586
6587 2008-06-03  Richard Guenther  <rguenther@suse.de>
6588
6589         * tree-ssa-structalias.c (find_func_aliases): Add constraints
6590         for the lhs of calls if the return type contains pointers.
6591
6592 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
6593
6594         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
6595         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
6596         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
6597         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
6598         of cfun and DEFAULT_ABI to deceide abi mode.
6599         (DEFAULT_ABI): New.
6600         (REG_PARM_STACK_SPACE): Removed.
6601         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
6602         (STACK_BOUNDARY): Use default target to deceide stack boundary.
6603         * config/i386/i386-protos.h (ix86_cfun_abi): New.
6604         (ix86_function_abi): Likewise.
6605         (ix86_function_type_abi): Likewise.
6606         (ix86_call_abi_override): Likewise.
6607         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
6608         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
6609         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
6610         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
6611         specific defines.
6612         (X86_64_REGPARM_MAX): New.
6613         (X86_64_SSE_REGPARM_MAX): New.
6614         (X64_REGPARM_MAX): New.
6615         (X64_SSE_REGPARM_MAX): New.
6616         (X86_32_REGPARM_MAX): New.
6617         (X86_32_SSE_REGPARM_MAX): New.
6618         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
6619         (ix86_function_regparm): Handle user calling abi.
6620         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
6621         by DEFAULT_ABI versus SYSV_ABI check.
6622         (ix86_reg_parm_stack_space): New.
6623         (ix86_function_type_abi): New.
6624         (ix86_call_abi_override): New.
6625         (ix86_function_abi): New.
6626         (ix86_cfun_abi): New.
6627         (init_cumulative_args): Call abi specific initialization.
6628         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
6629         (function_arg_64): Extend SSE_REGPARM_MAX check.
6630         (function_arg (): Remove TARGET_64BIT_MS_ABI.
6631         (ix86_pass_by_reference): Likewise.
6632         (ix86_function_value_regno_p): Likewise.
6633         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
6634         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
6635         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
6636         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
6637         (setup_incoming_varargs_64): Adjust regparm for call abi.
6638         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
6639         (ix86_va_start): Likewise.
6640         (ix86_gimplify_va_arg): Likewise.
6641         (ix86_expand_prologue): Likewise.
6642         (output_pic_addr_const): Likewise.
6643         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
6644         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
6645         (x86_output_mi_thunk): Likewise.
6646         (x86_function_profiler): Likewise.
6647         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
6648         (SYSV_ABI, MS_ABI): New constants.
6649         (DEFAULT_ABI): New.
6650         (init_regs): Add prototype of function in regclass.c file.
6651         (OVERRIDE_ABI_FORMAT): New.
6652         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
6653         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
6654         (OUTGOING_REG_PARM_STACK_SPACE): New.
6655         (ix86_reg_parm_stack_space): New prototype.
6656         (CUMULATIVE_ARGS): Add call_abi member.
6657         (machine_function): Add call_abi member.
6658         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
6659         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
6660
6661 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
6662
6663         PR target/34879
6664         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
6665         (avr_builtin_setjmp_frame_value): New function.
6666         * config/avr/avr.md (nonlocal_goto_receiver): Define.
6667         (nonlocal_goto): Define.
6668
6669 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
6670
6671         * config/mips/mips.c (mips_emit_loadgp): Return early if
6672         there is nothing do to, otherwise emit a blockage if
6673         !TARGET_EXPLICIT_RELOCS || crtl->profile.
6674         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
6675
6676 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6677
6678         * configure.ac: Drop unneeded backslash ending up in config.in.
6679         * acinclude.m4: Likewise.
6680         * config.in: Regenerate.
6681
6682 2008-05-26  Jan Hubicka  <jh@suse.cz>
6683
6684         * predict.c (maybe_hot_frequency_p): Break out of...
6685         (maybe_hot_bb_p): ... here.
6686         (maybe_hot_edge_p): New.
6687         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
6688         * basic-block.h (maybe_hot_edge_p): Declare.
6689
6690 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
6691
6692         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
6693         (*cmpfp_<mode>_cc): Ditto.
6694         (*fp_jcc_8<mode>_387): Ditto.
6695         (*fop_<MODEF:mode>_2_i387): Ditto.
6696         (*fop_<MODEF:mode>_3_i387): Ditto.
6697         (*fop_xf_2_i387): Ditto.
6698         (*fop_xf_3_i387): Ditto.
6699
6700 2008-06-02  Tomas Bily  <tbily@suse.cz>
6701
6702         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
6703
6704 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6705
6706         * config/mips/mips.c (mips_valid_offset_p): New function.
6707         (mips_valid_lo_sum_p): Likewise.
6708         (mips_classify_address): Use them.
6709         (mips_force_address): New function.
6710         (mips_legitimize_address): Use it.
6711         * config/mips/mips.md (MOVE128): New mode iterator.
6712         (movtf): Require TARGET_64BIT.  Remove empty strings.
6713         (*movtf_internal): Rename to...
6714         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
6715         of "R" and use {,fp}{load,store} attributes instead of "multi".
6716         Use a separate define_split.
6717         (*movtf_mips16): New pattern.
6718
6719 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6720
6721         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
6722         * config/mips/mips.c (mips_expand_before_return): New function.
6723         (mips_expand_epilogue): Call it.
6724         * config/mips/mips.md (return): Turn into a define_expand.
6725         (*return): New insn.
6726
6727 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6728
6729         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
6730         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
6731         functions.  Do not emit uses and clobbers of CONCATs; individually
6732         use and clobber their operands.
6733         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
6734         gen_clobber, emit_use and gen_use.
6735         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
6736         (expand_builtin_return): Likewise.
6737         * cfgbuild.c (count_basic_blocks): Likewise.
6738         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6739         * explow.c (emit_stack_restore): Likewise.
6740         * expmed.c (extract_bit_field_1): Likewise.
6741         * expr.c (convert_move, emit_move_complex_parts): Likewise.
6742         (emit_move_multi_word, store_constructor): Likewise.
6743         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
6744         (thread_prologue_and_epilogue_insns): Likewise.
6745         * lower-subreg.c (resolve_simple_move): Likewise.
6746         * optabs.c (widen_operand, expand_binop): Likewise.
6747         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
6748         * reload.c (find_reloads): Likewise.
6749         * reload1.c (eliminate_regs_in_insn): Likewise.
6750         * stmt.c (expand_nl_goto_receiver): Likewise.
6751         * config/alpha/alpha.md (builtin_longjmp): Likewise.
6752         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
6753         * config/arm/arm.c (arm_load_pic_register): Likewise.
6754         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
6755         * config/arm/arm.md (untyped_return): Likewise.
6756         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
6757         * config/avr/avr.c (expand_prologue): Likewise.
6758         * config/bfin/bfin.c (do_unlink): Likewise.
6759         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
6760         * config/cris/cris.c (cris_expand_prologue): Likewise.
6761         * config/darwin.c (machopic_indirect_data_reference): Likewise.
6762         (machopic_legitimize_pic_address): Likewise.
6763         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
6764         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
6765         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
6766         (ix86_expand_convert_uns_didf_sse): Likewise.
6767         (ix86_expand_vector_init_general): Likewise.
6768         * config/ia64/ia64.md (eh_epilogue): Likewise.
6769         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
6770         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
6771         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
6772         (config/iq2000/iq2000.c): Likewise.
6773         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
6774         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6775         (builtin_longjmp): Likewise.
6776         * config/mn10300/mn10300.md (call, call_value): Likewise.
6777         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
6778         * config/pdp11/pdp11.md (abshi2): Likewise.
6779         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
6780         * config/s390/s390.c (s390_emit_prologue): Likewise.
6781         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
6782         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
6783         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
6784         * config/sh/sh.c (prepare_move_operands): Likewise.
6785         (output_stack_adjust, sh_expand_epilogue): Likewise.
6786         (sh_set_return_address, sh_expand_t_scc): Likewise.
6787         * config/sparc/sparc.c (load_pic_register): Likewise.
6788         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
6789         * config/spu/spu.c (spu_expand_epilogue): Likewise.
6790         * config/v850/v850.c (expand_epilogue): Likewise.
6791
6792 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
6793
6794         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
6795         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
6796         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
6797         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
6798         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
6799         stack pointer register.
6800         (output_movhi): Remove code for interrupt specific writing to the
6801         stack pointer register.
6802
6803 2008-05-31  Richard Guenther  <rguenther@suse.de>
6804
6805         PR tree-optimization/34244
6806         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
6807         (tree_expr_nonzero_warnv_p): Likewise.
6808         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
6809         ssa_name_nonnegative_p.
6810         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
6811         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
6812         not tree_expr_nonzero_warnv_p.
6813
6814         PR tree-optimization/36262
6815         Revert
6816         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
6817
6818         PR tree-optimization/34244
6819         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
6820         (record_numbers_of_iterations): New function.
6821         (execute_vrp): Cache the numbers of iterations of loops.
6822         * tree-scalar-evolution.c (scev_reset_except_niters):
6823         New function.
6824         (scev_reset): Use scev_reset_except_niters.
6825         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
6826
6827 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
6828
6829         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6830         __WORKAROUND_RETS when appropriate.
6831
6832 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
6833
6834         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
6835         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
6836         mode iterator.
6837         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
6838         *fop_df_comm_sse insn patterns using MODEF mode iterator.
6839         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
6840         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
6841         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
6842         *fop_df_1_mixed insn patterns using MODEF mode iterator.
6843         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
6844         *fop_df_1_sse insn patterns using MODEF mode iterator.
6845         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
6846         *fop_df_1_i387 insn patterns using MODEF mode iterator.
6847         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
6848         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
6849         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
6850         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
6851         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
6852         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
6853         (*fop_xf_4_i387): Use <MODE> for mode attribute.
6854         (*fop_xf_5_i387): Ditto.
6855         (*fop_xf_6_i387): Ditto.
6856
6857 2008-05-30  Richard Guenther  <rguenther@suse.de>
6858
6859         * builtins.c (build_string_literal): Avoid generating
6860         a non-gimple_val result.
6861
6862 2008-05-30  DJ Delorie  <dj@redhat.com>
6863
6864         * exec-tool.in: Use an environment variable (private) instead of a
6865         file (shared) as a semaphore, so as to not break parallel builds.
6866
6867 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
6868
6869         * optabs.c (maybe_encapsulate_block): Remove.
6870         (emit_libcall_block): Adjust accordingly.
6871         * optabs.h (maybe_encapsulate_block): Remove prototype.
6872
6873         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
6874         Don't use maybe_encapsulate_block.
6875
6876 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
6877
6878         * config/rs6000/rs6000.c (rs6000_legitimize_address,
6879         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
6880         rtx is a SYMBOL_REF before calling get_pool_constant.
6881
6882 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
6883
6884         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
6885
6886 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
6887
6888         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
6889         rather than OS names to choose INO_T_EQ definition.
6890         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
6891         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
6892
6893 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
6894
6895         PR target/36348
6896         * config/darwin-f.c: New.
6897         * config/t-darwin: Added rule to build darwin-f.o.
6898         * config.gcc: Defined new variable, fortran_target_objs.
6899         (*-*-darwin*): Set fortran_target_objs.
6900         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
6901         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
6902         * configure: Regenerated.
6903
6904 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6905
6906         PR target/35771
6907         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
6908         canonical type if needed.
6909
6910 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
6911
6912         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
6913
6914 2008-05-29  Richard Guenther  <rguenther@suse.de>
6915
6916         PR tree-optimization/36343
6917         PR tree-optimization/36346
6918         PR tree-optimization/36347
6919         * tree-flow.h (clobber_what_p_points_to): Declare.
6920         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
6921         pointed-to variable is dereferenced is irrelevant to whether
6922         the pointer can access the pointed-to variable.
6923         (clobber_what_p_points_to): New function.
6924         * tree-ssa-alias.c (set_initial_properties): Use it.
6925         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
6926         call clobber check for NMTs.
6927
6928 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
6929
6930         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
6931         for printing gcov_type.
6932
6933 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
6934
6935         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
6936         and the eh region information.
6937         * value-prof.c (gimple_move_stmt_histograms): New function.
6938         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
6939
6940 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
6941
6942         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
6943
6944 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
6945
6946         * value-prof.c (tree_ic_transform): Print counts.
6947         * tree-profile.c (tree_gen_ic_func_profiler):
6948         Clear __gcov_indreict_call_callee variable to avoid misattribution
6949         of the profile.
6950
6951 2008-05-28  Rafael Espindola  <espindola@google.com>
6952
6953         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
6954         invalid sharing.
6955
6956 2008-05-28  Richard Guenther  <rguenther@suse.de>
6957
6958         PR tree-optimization/36339
6959         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
6960         and clobbering code out of the loop.
6961
6962 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
6963
6964         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
6965         letters defined.
6966
6967         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
6968         s390_contiguous_bitmask_p, s390_symref_operand_p,
6969         s390_check_symref_alignment, s390_reload_larl_operand,
6970         s390_reload_symref_address): New functions.
6971         (s390_branch_condition_mnemonic): Support compare and branch
6972         instructions.
6973         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
6974         and 'W' constraints.
6975         (s390_secondary_reload): Add secondary reloads for unaligned
6976         symbol refs or symbol refs to floating point or QI/TI mode
6977         integer values.
6978         (legitimate_address_p): Accept symbol references as addresses.
6979         (s390_expand_insv): Use rotate and insert selected bits
6980         instruction for insv when building for z10.
6981         (print_operand_address): Handle symbol ref addresses.
6982         (print_operand): Output modifier 'c' added for signed byte values.
6983         (s390_encode_section_info): Mark symbol refs with
6984         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
6985
6986         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
6987         (length attribute): RRF, RRR have 4 byte length.
6988         (FPALL, INTALL): New mode iterators added.
6989         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
6990         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
6991         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
6992         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
6993         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
6994         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
6995         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
6996         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
6997         instructions.
6998         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
6999         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
7000         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
7001         reload<INTALL:mode><P:mode>_toreg_z10,
7002         reload<FPALL:mode><P:mode>_tomem_z10,
7003         reload<FPALL:mode><P:mode>_toreg_z10,
7004         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
7005         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
7006         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
7007         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
7008         definition.
7009         (movmem, clrmem, cmpmem): New splitters added.
7010
7011         * config/s390/predicates.md (larl_operand): Use
7012         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
7013         SYMBOL_REF_ALIGN1_P.
7014         (s390_signed_integer_comparison,
7015         s390_unsigned_integer_comparison): New predicates.
7016
7017         * config/s390/s390-protos.h (s390_check_symref_alignment,
7018         s390_contiguous_bitmask_p, s390_reload_larl_operand,
7019         s390_reload_symref_address,
7020         s390_compare_and_branch_condition_mask): Prototypes added.
7021
7022         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
7023         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
7024         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
7025
7026 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
7027
7028         * config/s390/s390.c (z10_cost): New cost function for z10.
7029         (s390_handle_arch_option, override_options): Support -march=z10 switch.
7030         (s390_issue_rate): Adjust issue rate for z10.
7031         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
7032         (processor_flags): Add PF_Z10.
7033         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
7034         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
7035         * gcc/config.gcc: Add z10.
7036
7037 2008-05-28  Richard Guenther  <rguenther@suse.de>
7038
7039         PR tree-optimization/36291
7040         * tree-flow. h (struct gimple_df): Remove var_anns member.
7041         * tree-flow-inline.h (gimple_var_anns): Remove.
7042         (var_ann): Simplify.
7043         * tree-dfa.c (create_var_ann): Simplify.
7044         (remove_referenced_var): Clear alias info from var_anns of globals.
7045         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
7046         (delete_tree_ssa): Clear alias info from var_anns of globals.
7047         Do not free var_anns.
7048         (var_ann_eq): Remove.
7049         (var_ann_hash): Likewise.
7050
7051 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
7052
7053         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
7054         and loongson2f entries.
7055         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
7056         * config/mips/mips.h (processor_type): Add Loongson-2E
7057         and Loongson-2F entries.
7058         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
7059         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
7060         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
7061         * doc/invoke.texi (MIPS Options): Document loongson2e
7062         and loongson2f processor names.
7063
7064 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
7065
7066         PR target/35767
7067         PR target/35771
7068         * config/i386/i386.c (ix86_function_arg_boundary): Use
7069         alignment of canonical type.
7070         (ix86_expand_vector_move): Check unaligned memory access for
7071         all SSE modes.
7072
7073 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
7074
7075         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
7076         Moved to the front of file.
7077
7078 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
7079             H.J. Lu  <hongjiu.lu@intel.com>
7080
7081         * dwarf2out.c (current_fde): New.
7082         (add_cfi): Use it.
7083         (lookup_cfa:): Likewise.
7084         (dwarf2out_end_epilogue): Likewise.
7085         (dwarf2out_note_section_used): Likewise.
7086
7087 2008-05-27  Michael Matz  <matz@suse.de>
7088
7089         PR c++/27975
7090         * c.opt (Wenum-compare): New warning option.
7091         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
7092
7093 2008-05-27  Michael Matz  <matz@suse.de>
7094
7095         PR middle-end/36326
7096         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
7097         non-BLKmode types.
7098         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
7099         into memory as tail calls.
7100
7101 2008-05-27  Richard Guenther  <rguenther@suse.de>
7102
7103         PR tree-optimization/36339
7104         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
7105         pointers cause all addressable variables to be call clobbered.
7106
7107 2008-05-27  Richard Guenther  <rguenther@suse.de>
7108
7109         PR tree-optimization/36245
7110         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
7111
7112 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
7113
7114         * config/s390/s390.md: Replace all occurences of the 'm'
7115         constraint with 'RT'.
7116
7117 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
7118
7119         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
7120         definitions added.
7121         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
7122         "*movdi_64".
7123         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
7124         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
7125         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
7126
7127 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
7128
7129         * reload.c: (find_reloads): Skip alternatives according to the
7130         "enabled" attribute. Constify the constraint variable.
7131         * recog.c (get_attr_enabled): Add default implementation.
7132         (extract_insn): Set the alternative_enabled_p array
7133         in the recog_data struct.
7134         (preprocess_constraints, constrain_operands): Skip
7135         alternatives according to the "enabled" attribute
7136         * recog.h (struct recog_data): New field alternative_enabled_p.
7137         (skip_alternative): New inline function.
7138         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
7139         (record_reg_classes): Skip alternative according to the
7140         "enabled" attribute.
7141
7142         * doc/md.texi: Add documention for the "enabled" attribute.
7143
7144 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
7145
7146         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
7147         * postreload.c (reload_cse_simplify_operands): Replace 'm'
7148         constraint with TARGET_MEM_CONSTRAINT.
7149         * recog.c (asm_operand_ok, preprocess_constraints,
7150         constrain_operands): Likewise.
7151         * regclass.c (record_reg_classes): Likewise.
7152         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
7153         * reload1.c (maybe_fix_stack_asms): Likewise.
7154         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7155         * recog.h: Adjust comment.
7156         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
7157         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
7158         * doc/md.texi: Add a note to description of 'm' constraint.
7159         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
7160
7161 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
7162
7163         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
7164         that the bitfield is of integral type before testing its precision.
7165
7166 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
7167             Sa Liu  <saliu@de.ibm.com>
7168
7169         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
7170         __modti3, __udivti3, __umodti3 and __udivmodti4.
7171         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
7172         that implement TImode mul and div functions.
7173         * config/spu/multi3.c: New. Implement __multi3.
7174         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
7175         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
7176         functions on SPU.
7177
7178 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
7179
7180         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
7181         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
7182         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
7183         tls_sysv_suffix): New mode and mode attribute iterators.
7184         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
7185         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
7186         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
7187         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
7188         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
7189         iterators.
7190
7191 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
7192
7193         PR tree-optimization/36329
7194         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
7195         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
7196         * cgraphbuild.c (initialize_inline_failed): Use the latter
7197         macro in lieu of the former.
7198         * ipa-inline.c (cgraph_mark_inline): Likewise.
7199         (cgraph_decide_inlining_of_small_function): Likewise.
7200         (cgraph_decide_inlining): Likewise.
7201         (cgraph_decide_inlining_incrementally): Likewise.
7202
7203 2008-05-26  Tristan Gingold  <gingold@adacore.com>
7204             Anatoly Sokolov  <aesok@post.ru>
7205
7206         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
7207         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
7208         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
7209         optimization for 'avr6' architecture.
7210
7211 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
7212
7213         PR target/34932
7214         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
7215
7216 2008-05-26  Richard Guenther  <rguenther@suse.de>
7217
7218         * tree-ssa-sccvn.c (expr_has_constants): Declare.
7219         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
7220
7221 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
7222
7223         PR middle-end/36253
7224         * caller-save.c (insert_restore): Verify alignment of spill space.
7225         (insert_save): Likewise.
7226         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
7227         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
7228         (STACK_SLOT_ALIGNMENT): Likewise.
7229         * function.c (LOCAL_ALIGNMENT): Removed.
7230         (get_stack_local_alignment): New.
7231         (assign_stack_local): Use it.  Set alignment on stack slot.
7232         (assign_stack_temp_for_type): Use get_stack_local_alignment.
7233         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
7234         (STACK_SLOT_ALIGNMENT): New.
7235         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
7236         stack slot in XFmode.
7237
7238         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
7239
7240 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
7241
7242         PR/36321
7243         * config/i386/i386.md (allocate_stack_worker_64): Make sure
7244         argument operand in rax isn't removed.
7245
7246 2008-05-26  Richard Guenther  <rguenther@suse.de>
7247
7248         PR middle-end/36300
7249         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
7250         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
7251
7252 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
7253
7254         PR bootstrap/36331
7255         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
7256
7257 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
7258
7259         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
7260         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
7261
7262 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
7263
7264         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
7265         build a trampoline if we don't want one.
7266         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
7267         return zero for nested functions if we don't want a trampoline.
7268
7269 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
7270
7271         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
7272
7273 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
7274
7275         PR fortran/18428
7276         * c.opt: Removed undocumented option '-lang-fortran'.
7277         * c-common.h: Removed global variable 'lang_fortran'.
7278         * c-opts.c (c_common_handle_option): Removed code to handle
7279         option '-lang-fortran'. Updated includes.
7280         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
7281         definition of '__GFORTRAN__'.
7282         (define__GNUC__): Reimplemented to use BASEVER and
7283         cpp_define_formatted.
7284         (builtin_define_with_value_n): Removed.
7285         * c-incpath.h: Renamed to ...
7286         * incpath.h: ... this.
7287         * c-incpath.c: Renamed to ...
7288         * incpath.c: ... this. Updated includes.
7289         * fix-header.c: Updated includes.
7290         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
7291         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
7292         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
7293
7294 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
7295
7296         * tree.h: Update the table of flags used on tree nodes.
7297         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
7298         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
7299         (FORCED_LABEL): Add access check.
7300         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
7301         (ASM_INPUT_P): Likewise.
7302         (ASM_VOLATILE_P): Likewise.
7303         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
7304         (OMP_SECTION_LAST): Access private_flag directly.
7305         (OMP_RETURN_NOWAIT): Likewise.
7306         (OMP_PARALLEL_COMBINED): Likewise.
7307         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
7308         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
7309         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
7310         deprecated_flag directly.
7311
7312 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
7313
7314         * final.c (frame_pointer_needed): Removed.
7315         * flags.h (frame_pointer_needed): Likewise.
7316
7317         * function.h (rtl_data): Add frame_pointer_needed.
7318         (frame_pointer_needed): New.
7319
7320 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
7321
7322         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
7323
7324 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
7325
7326         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
7327         SRC is a REG.
7328
7329 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
7330
7331         * c-common.c (strip_array_types): Move function to..
7332         * tree.c: ..here.
7333         (get_inner_array_type): Delete.
7334         * c-common.h (strip_array_types): Move declaration to..
7335         * tree.h: ..here.
7336         (get_inner_array_type): Delete.
7337         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
7338         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
7339         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
7340         * config/pa/pa.c (emit_move_sequence): Likewise.
7341
7342 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7343
7344         * config/i386/i386.md (*sse_prologue_save_insn): Set length
7345         attribute to 34.
7346
7347 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
7348
7349         * function.c: Include target hook for nonlocal_goto frame value.
7350
7351 2008-05-24  Richard Guenther  <rguenther@suse.de>
7352
7353         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
7354         variable can be only accessed through a pointer or a union.
7355
7356 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7357
7358         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
7359         * doc/extend.texi: Likewise.
7360
7361 2008-05-23  DJ Delorie  <dj@redhat.com>
7362
7363         * config/m32c/jump.md (untyped_call): Add.
7364
7365         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
7366         for A24 to PSImode.
7367         (m32c_address_cost): Detail costs for indirect offsets.
7368
7369 2008-05-23  Rafael Espindola  <espindola@google.com>
7370
7371         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
7372         if a node is a SUBREG.
7373         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
7374         is a SUBREG.
7375
7376 2008-05-23  Paul Brook  <paul@codesourcery.com>
7377             Carlos O'Donell  <carlos@codesourcery.com>
7378
7379         * doc/extend.texi: Clarify use of __attribute__((naked)).
7380         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
7381         * target.h (gcc_target): Add allocate_stack_slots_for_args.
7382         * function.c (use_register_for_decl): Use
7383         targetm.calls.allocate_stack_slots_for_args.
7384         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
7385         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
7386         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
7387
7388 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
7389
7390         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
7391
7392 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
7393
7394         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
7395         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
7396         is only rounded once.
7397
7398 2008-05-23  Richard Guenther  <rguenther@suse.de>
7399
7400         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
7401
7402 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
7403             Jakub Jelinek  <jakub@redhat.com>
7404
7405         PR target/36079
7406         * configure.ac: Handle --enable-cld.
7407         * configure: Regenerated.
7408         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
7409         * config/i386/i386.h (struct machine_function): Add needs_cld field.
7410         (ix86_current_function_needs_cld): New define.
7411         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
7412         (cld): New isns pattern.
7413         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
7414         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
7415         * config/i386/i386.opt (mcld): New option.
7416         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
7417         TARGET_CLD and ix86_current_function_needs_cld.
7418         (override_options): Use -mcld by default for 32-bit code if
7419         USE_IX86_CLD.
7420
7421         * doc/install.texi (Options specification): Document --enable-cld.
7422         * doc/invoke.texi (Machine Dependent Options)
7423         [i386 and x86-64 Options]: Add -mcld option.
7424         (Intel 386 and AMD x86-64 Options): Document -mcld option.
7425
7426 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
7427         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
7428         (return_in_memory_64): Likewise.
7429         (return_in_memory_ms_64): Likewise.
7430
7431 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7432
7433         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
7434         * builtins.c (fold_builtin_fpclassify): New.
7435         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
7436         * builtins.def (BUILT_IN_FPCLASSIFY): New.
7437         * c-common.c (handle_type_generic_attribute): Adjust to accept
7438         fixed arguments before an elipsis.
7439         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
7440         * doc/extend.texi: Document __builtin_fpclassify.
7441
7442 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
7443
7444         * omp-low.c (gate_expand_omp_ssa): Remove.
7445         (pass_expand_omp_ssa): Remove.
7446         (gate_expand_omp): Do not check for flag_openmp_ssa.
7447         * common.opt (-fopenmp-ssa): Remove.
7448         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
7449
7450 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
7451
7452         * config/sh/sh.opt (mfixed-range): New option.
7453         * config/sh/sh-protos.h (sh_fix_range): Declare.
7454         * config/sh/sh.c (sh_fix_range): New function.
7455         * config/sh/sh.h (sh_fixed_range_str): Declare.
7456         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
7457         is not empty.
7458         * doc/invoke.texi (SH Options): Document -mfixed-range.
7459
7460 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
7461
7462         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
7463         it before the redeclaration.
7464
7465 2008-05-22  Anatoly Sokolov <aesok@post.ru>
7466
7467         * config/avr/avr.c (get_sequence_length): Add new function.
7468         (expand_prologue, expand_epilogue): Remove duplicate code.
7469
7470 2008-05-22  Rafael Espindola  <espindola@google.com>
7471
7472         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
7473         sharing.
7474
7475 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7476
7477         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
7478         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
7479
7480         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
7481         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
7482         (vect_update_misalignment_for_peel): Likewise.
7483         (vector_alignment_reachable_p): Likewise.
7484         * tree-vect-transform.c (vectorizable_load): Likewise.
7485         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
7486         (get_vectype_for_scalar_type): Pass mode of scalar_type
7487         to UNITS_PER_SIMD_WORD.
7488
7489         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
7490         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
7491         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
7492         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
7493         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
7494
7495 2008-05-22  Ira Rosen  <irar@il.ibm.com>
7496
7497         PR tree-optimization/36293
7498         * tree-vect-transform.c (vect_transform_strided_load): Don't check
7499         if the first load must be skipped because of a gap.
7500
7501 2008-05-22  Richard Guenther  <rguenther@suse.de>
7502
7503         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
7504         more cases of offset disambiguation that is possible if
7505         strict-aliasing rules apply.
7506         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
7507         for basic offset and type-based disambiguation.
7508
7509 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7510
7511         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
7512         ix86_expand_vector_set on V16QImode for SSE4.1.
7513
7514 2008-05-21  Tom Tromey  <tromey@redhat.com>
7515
7516         * c.opt (Wimport): Mark as undocumented.
7517         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
7518         -Wno-import.
7519         (Warning Options): Likewise.
7520         * doc/cppopts.texi: Don't mention -Wimport.
7521
7522 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
7523
7524         PR tree-optimization/36287
7525         PR tree-optimization/36286
7526         * lambda-code.c (build_access_matrix): Do not use the loop->num
7527         for computing the number of induction variables: use the loop depth
7528         instead.
7529
7530 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
7531
7532         PR/36280
7533         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
7534         option -f(no-)leading-underscore.
7535
7536 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7537
7538         * config/i386/i386.c (ix86_expand_vector_init_general): Use
7539         GET_MODE_NUNITS (mode).
7540
7541 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
7542
7543         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
7544         (-mmulhw): Add 464 to description.
7545         (-mdlmzb): Likewise.
7546         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
7547         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
7548         464fp entries.
7549         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
7550         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
7551         * config/rs6000/rs6000.md: Update comments for 464.
7552
7553 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
7554
7555         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
7556
7557 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7558
7559         * config/i386/sse.md (vec_extractv4sf): Removed.
7560         (vec_extractv2df): Likewise.
7561         (vec_extractv2di): Likewise.
7562         (vec_extractv4si): Likewise.
7563         (vec_extractv8hi): Likewise.
7564         (vec_extractv16qi): Likewise.
7565         (vec_extract<mode>): New.
7566
7567 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7568
7569         * config/i386/sse.md (vec_setv4sf): Removed.
7570         (vec_setv2df): Likewise.
7571         (vec_setv2di): Likewise.
7572         (vec_setv4si): Likewise.
7573         (vec_setv8hi): Likewise.
7574         (vec_setv16qi): Likewise.
7575         (vec_set<mode>): New.
7576
7577 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7578
7579         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
7580         goto for vec_concat and vec_interleave.
7581
7582 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7583
7584         * config/i386/sse.md (vec_initv4sf): Removed.
7585         (vec_initv2df): Likewise.
7586         (vec_initv2di): Likewise.
7587         (vec_initv4si): Likewise.
7588         (vec_initv8hi): Likewise.
7589         (vec_initv16qi): Likewise.
7590         (vec_init<mode>): New.
7591
7592 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
7593
7594         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
7595
7596 2008-05-21  Tom Tromey  <tromey@redhat.com>
7597
7598         * ggc-zone.c (lookup_page_table_if_allocated): New function.
7599         (zone_find_object_offset): Likewise.
7600         (gt_ggc_m_S): Likewise.
7601         (highest_bit): Likewise.
7602         * ggc-page.c (gt_ggc_m_S): New function.
7603         * stringpool.c (string_stack): Remove.
7604         (init_stringpool): Update.
7605         (ggc_alloc_string): Use ggc_alloc.
7606         (maybe_delete_ident): New function.
7607         (ggc_purge_stringpool): Likewise.
7608         (gt_ggc_m_S): Remove.
7609         * ggc-common.c (ggc_protect_identifiers): New global.
7610         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
7611         ggc_protect_identifiers.
7612         * ggc.h (ggc_protect_identifiers): Declare.
7613         (gt_ggc_m_S): Update.
7614         (ggc_purge_stringpool): Declare.
7615         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
7616         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
7617         special case.
7618         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
7619
7620 2008-05-21  David S. Miller  <davem@davemloft.net>
7621
7622         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
7623         tmake_file.
7624
7625 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
7626
7627         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
7628         once finished.
7629
7630 2008-05-20  David Daney  <ddaney@avtrex.com>
7631
7632         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
7633         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
7634         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7635         UNSPEC_UPDATE_GOT_VERSION): Renumber.
7636         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
7637         (atomic_hiqi_op): New define_code_iterator.
7638         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
7639         mips_expand_compare_and_swap_12.
7640         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
7641         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
7642         (sync_<optab><mode>, sync_old_<optab><mode>,
7643         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
7644         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
7645         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
7646         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
7647         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
7648         (test_and_set_12): New insn.
7649         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
7650         sync_new_<optab><mode>, sync_old_nand<mode>,
7651         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
7652         clobber to operand 0 for SI and DI mode insns.
7653         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
7654         mips_gen_fn_4): New typedefs.
7655         (mips_gen_fn_ptrs): Define new union type.
7656         (mips_expand_compare_and_swap_12): Remove declaration.
7657         (mips_expand_atomic_qihi): Declare function.
7658         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
7659         (mips_expand_atomic_qihi): ... this.  Use new generator function
7660         parameter.
7661         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
7662         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
7663         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
7664         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
7665         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
7666         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
7667         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
7668         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
7669         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
7670         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
7671         New macros.
7672
7673 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
7674
7675         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
7676         the missing break.
7677
7678 2008-05-20  Anatoly Sokolov <aesok@post.ru>
7679
7680         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
7681         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
7682         (avr_attribute_table): Add 'OS_main' function attribute.
7683         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
7684         functions with 'OS_main' attribute.
7685
7686 2008-05-20  Richard Guenther  <rguenther@suse.de>
7687
7688         PR tree-optimization/35204
7689         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
7690         helper, split out from ...
7691         (DFS): ... here.  Make the DFS walk non-recursive.
7692
7693 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
7694             Jan Sjodin  <jan.sjodin@amd.com>
7695
7696         PR tree-optimization/36181
7697         * tree-parloops.c (loop_has_vector_phi_nodes): New.
7698         (parallelize_loops): Don't parallelize when the loop has vector
7699         phi nodes.
7700
7701 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
7702             Sebastian Pop  <sebastian.pop@amd.com>
7703
7704         * tree-loop-linear.c (gather_interchange_stats): Look in the access
7705         matrix, and never look at the tree representation of the memory
7706         accesses.
7707         (linear_transform_loops): Computes parameters and access matrices.
7708         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
7709         when fails.
7710         (access_matrix_get_index_for_parameter): New.
7711         * tree-data-ref.h (struct access_matrix): New.
7712         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
7713         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
7714         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
7715         am_vector_index_for_loop): New.
7716         (struct data_reference): Add field access_matrix.
7717         (DR_ACCESS_MATRIX): New.
7718         (compute_data_dependences_for_loop): Update declaration.
7719         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
7720         * lambda.h (lambda_vector_vec_p): Declared.
7721         * lambda-code.c: Depend on pointer-set.h.
7722         (lambda_collect_parameters_from_af, lambda_collect_parameters,
7723         av_for_af_base, av_for_af, build_access_matrix,
7724         lambda_compute_access_matrices): New.
7725         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
7726
7727 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
7728
7729         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
7730         $SOURCEDIR/include.
7731
7732 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
7733             Sebastian Pop  <sebastian.pop@amd.com>
7734
7735         PR tree-optimization/36206
7736         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
7737         FOLD_CONVERSIONS.
7738         (instantiate_scev_1): Rename flags to fold_conversions.
7739         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
7740         outeside instantiation_loop.
7741         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
7742         (evolution_function_is_affine_or_constant_p): Removed.
7743         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
7744         instantiate_scev.
7745         (analyze_siv_subscript): Pass in the loop nest number.
7746         Call evolution_function_is_affine_in_loop instead of
7747         evolution_function_is_affine_p.
7748         (analyze_overlapping_iterations): Pass in the loop nest number.
7749
7750 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
7751             Sebastian Pop  <sebastian.pop@amd.com>
7752
7753         PR tree-optimization/36206
7754         * tree-chrec.h (chrec_fold_op): New.
7755         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
7756         and other trees.
7757
7758 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
7759
7760         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
7761         (DIRS_EQ): New.
7762         (remove_duplicates): Do not set inode on non-inode systems.
7763         Use DIRS_EQ.
7764
7765 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
7766
7767         * config.gcc (tm_file): Update comments about relative pathnames.
7768
7769 2008-05-20  Richard Guenther  <rguenther@suse.de>
7770
7771         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
7772         * tree-ssa-sccvn.c (process_scc): Likewise.
7773         * tree-ssa-sink.c (execute_sink_code): Likewise.
7774         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
7775         * tree-vrp.c (process_assert_insertions): Likewise.
7776         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7777         (perform_tree_ssa_dce): Likewise.
7778         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
7779         (dump_dominator_optimization_stats): Likewise.
7780         * tree-vectorizer.c (vectorize_loops): Likewise.
7781
7782 2008-05-20  Richard Guenther  <rguenther@suse.de>
7783
7784         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
7785
7786 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
7787
7788         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
7789         (ix86_i386elf_return_in_memory): Likewise.
7790         (ix86_i386interix_return_in_memory): Likewise.
7791         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
7792         (SUBTARGET_RETURN_IN_MEMORY): New.
7793         * config/i386/i386elf.h: Likewise.
7794         * config/i386/ptx4-i.h: Likewise.
7795         * config/i386/sol2-10.h: Likewise.
7796         * config/i386/sysv4.h: Likewise.
7797         * config/i386/vx-common.h: Likewise.
7798         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
7799         * config/i386/i386.c (ix86_return_in_memory): Made static and
7800         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
7801         (ix86_i386elf_return_in_memory): Removed.
7802         (ix86_i386interix_return_in_memory): Removed.
7803         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
7804         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
7805
7806 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
7807
7808         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
7809
7810 2008-05-19  Xinliang David Li  <davidxl@google.com>
7811
7812         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
7813         * opts.c: Ditto.
7814         * common.opt: Ditto.
7815         * doc/invoke.texi: Ditto.
7816
7817 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
7818
7819         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
7820         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
7821
7822 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7823
7824         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
7825         sizes of operand array from 8/4 to 4/2.
7826         (ix86_expand_vector_init_general): Change size of operand array
7827         from 32 to 16.  Remove op0, op1 and half_mode.
7828
7829 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7830
7831         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
7832         (ix86_expand_vector_init_interleave): Likewise.
7833         (ix86_expand_vector_init_general): Use them.  Assert
7834         word_mode == SImode when n_words == 4.
7835
7836 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
7837
7838         * config/i386/i386.c (ix86_secondary_reload): New static function.
7839         (TARGET_SECONDARY_RELOAD): New define.
7840         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
7841         * config/i386/i386.md (reload_outqi): Remove.
7842
7843 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7844
7845         PR middle-end/35509
7846         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
7847         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
7848         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
7849         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
7850         (fold_builtin_1): Likewise.
7851         * builtins.def (BUILT_IN_ISINF_SIGN): New.
7852         c-common.c (check_builtin_function_arguments): Handle
7853         BUILT_IN_ISINF_SIGN.
7854         * doc/extend.texi: Document __builtin_isinf_sign.
7855         * fold-const.c (operand_equal_p): Handle COND_EXPR.
7856
7857 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
7858
7859         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
7860         EH cleanup at the end of the pass, search for those that have been
7861         turned into forwarder blocks and do the cleanup on their successor.
7862
7863 2008-05-18  Richard Guenther  <rguenther@suse.de>
7864
7865         * tree-cfg.c (verify_gimple_expr): Allow conversions from
7866         pointers to sizetype and vice versa.
7867
7868 2008-05-18 Xinliang David Li   <davidxl@google.com>
7869
7870         * gcc/tree-ssa-dce.c: Coding style fix.
7871         (check_pow): Documentation comment.
7872         (check_log): Documenation comment. Coding style fix.
7873         (is_unnecessary_except_errno_call): Ditto.
7874         (gen_conditions_for_pow): Ditto.
7875         (gen_conditions_for_log): Ditto.
7876         (gen_shrink_wrap_conditions): Ditto.
7877         (shrink_wrap_one_built_in_calls): Ditto.
7878         * gcc/doc/invoke.texi: Better documentation string.
7879         * ChangeLog: Fix wrong change log entries from
7880         May 17 checkin on function call DCE.
7881
7882 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
7883
7884         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
7885
7886 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
7887
7888         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
7889         * df-problems.c (simulation routines): Fixed block comment to
7890         properly say how to add forwards scanning functions.
7891
7892 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
7893
7894         * tree-inline.c (setup_one_parameter): Remove dead code.
7895
7896 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
7897
7898         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
7899         a BIT_AND_EXPR only for an INTEGER_TYPE.
7900
7901 2008-05-17 Xinliang David Li   <davidxl@google.com>
7902
7903         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
7904         (check_pow, check_log, is_unnecessary_except_errno_call): New
7905         functions to check for eliminating math functions that are pure
7906         except for setting errno.
7907         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
7908         general condition expressions for shrink-wrapping pow/log calls.
7909         (gen_shrink_wrap_conditions): Ditto.
7910         (shrink_wrap_one_built_in_call): Ditto.
7911         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
7912         (mark_operand_necessary): If debugging, output if OP is necessary.
7913         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
7914         unnecessary.
7915         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
7916         opt level >= 2.
7917         * gcc/common.opt: New user flag -ftree-builtin-dce.
7918         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
7919
7920 2008-05-16  David S. Miller  <davem@davemloft.net>
7921
7922         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
7923         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7924
7925 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
7926
7927         PR target/36246
7928         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
7929
7930 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7931
7932         * ifcvt.c (dead_or_predicable): Rename
7933         df_simulate_one_insn_backwards to df_simulate_one_insn.
7934         * recog.c (peephole2_optimize): Ditto.
7935         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
7936         Ditto.
7937         * df.h: Rename df_simulate_one_insn_backwards to
7938         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
7939         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
7940         scanning of defs and uses.
7941         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
7942         (df_simulate_one_insn_forwards): Removed.
7943
7944 2008-05-16  Doug Kwan  <dougkwan@google.com>
7945
7946         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
7947         QNaN & SNaN.
7948         (real_from_string): Handle NaNs and Inf as approriate.
7949
7950 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
7951
7952         * doc/gty.texi (Source Files Containing Type Information): Note
7953         that headers should appear first in the gtfiles list.
7954
7955 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7956
7957         * tree.def (COND_EXEC): Properly documented this code.
7958
7959 2008-05-16  Diego Novillo  <dnovillo@google.com>
7960
7961         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
7962         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
7963         the new field.
7964
7965 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7966
7967         * tree-ssa-dse (max_stmt_uid): Removed.
7968         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
7969         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
7970         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
7971         * function.h (cfun.last_stmt_uid): New field.
7972         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
7973         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
7974         New functions.
7975         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
7976         (create_stmt_ann): Initialize the ann->uid field.
7977         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
7978         with new calls.
7979         * tree-flow.h (renumber_gimple_stmt_uids): New function.
7980
7981 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
7982
7983         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
7984         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
7985         (init_empty_tree_cfg): Call it.
7986
7987 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7988
7989         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
7990         Update all users.
7991
7992 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7993
7994         * doc/invoke.text (-fdump-tree-*-verbose): New option.
7995         * tree-dump.c (dump_options): New verbose option.
7996         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
7997         Add verbose dump.
7998         * tree-pass.h (TDF_VERBOSE): New dump flag.
7999         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
8000         (tree-flow.h): Added include.
8001         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
8002
8003 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
8004
8005         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
8006
8007         From Jie Zhang  <jie.zhang@analog.com>
8008         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8009         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
8010         mcpu=bf561-none and mcpu=bf561-0.2.
8011         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8012         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
8013         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8014         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
8015         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
8016         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
8017         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
8018         option.
8019         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
8020         (cputype_selected): Remove.
8021         (bfin_handle_option): Don't use cputype_selected.
8022         (override_options): When no mcpu option, enable all workarounds.
8023         Don't use bfin_workarounds.
8024         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
8025         processor type.
8026         (DEFAULT_CPU_TYPE): Don't define.
8027
8028 2008-05-16  Richard Guenther  <rguenther@suse.de>
8029
8030         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
8031         on deletion of the last stmt.
8032
8033 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8034
8035         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
8036         V8HImode for SSE2 and V16QImode for SSE4.1.
8037
8038 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
8039
8040         * cgraph.h (compute_inline_parameters): Made public.
8041         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
8042         variable_generate_summary, function_write_summary,
8043         variable_write_summary, variable_read_summary.  Added generate_summary,
8044         write_summary, read_summary.
8045         * cgraphunit.c (cgraph_process_new_functions): Changed call from
8046         pass_ipa_inline.function_generate_summary, to
8047         compute_inline_parameters.
8048         * ipa-inline.c (compute_inline_parameters): Made public and added
8049         node parameter.
8050         (compute_inline_parameters_for_current): New function.
8051         (pass_inline_param): Now calls compute_inline_parameters_for_current.
8052         (inline_generate_summary): Removed parameter and made to loop over
8053         all cgraph nodes.
8054         (pass_ipa_inline): Updated for new IPA_PASS structure.
8055         * passes.c (execute_ipa_summary_passes): Now is called once per
8056         pass rather than once per node*pass.
8057
8058 2008-05-15  Anatoly Sokolov <aesok@post.ru>
8059
8060         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
8061         avr_have_mul_p, avr_asm_only_p): Remove variables.
8062         (avr_override_options): Remove initialization of removed variables.
8063         (avr_file_start):  Convert removed variables to fields of
8064         'struct base_arch_s *avr_current_arch'.
8065         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
8066         (AVR_HAVE_MUL): (Ditto.).
8067         (AVR_HAVE_MOVW): (Ditto.).
8068         (AVR_HAVE_LPMX): (Ditto.).
8069         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
8070         avr_asm_only_p): Remove declaration.
8071
8072 2008-05-15  Diego Novillo  <dnovillo@google.com>
8073
8074         * config/arm/arm.c (arm_return_in_memory): Fix return type.
8075         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
8076
8077 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
8078
8079         PR middle-end/36194
8080         * combine.c (check_conversion): Rename back to check_promoted_subreg.
8081         Don't call record_truncated_value from here.
8082         (record_truncated_value): Turn it into a for_each_rtx callback.
8083         (record_truncated_values): New function.
8084         (combine_instructions): Call note_uses with record_truncated_values.
8085         Change name of check_conversion to check_promoted_subreg.
8086
8087 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
8088
8089         * doc/sourcebuild.texi: Document support for torture tests.
8090
8091 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
8092
8093         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
8094         to alternative 4 of operand 2.
8095
8096 2008-05-15  Richard Guenther  <rguenther@suse.de>
8097
8098         * tree-pass.h (current_pass): Declare.
8099         (get_pass_for_id): Likewise.
8100         * passes.c (passes_by_id, passes_by_id_size): New globals.
8101         (set_pass_for_id): New function.
8102         (get_pass_for_id): Likewise.
8103         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
8104         (execute_function_todo): Flush per function statistics.
8105         * toplev.c (compile_file): Init statistics.
8106         (general_init): Do early statistics initialization.
8107         (finalize): Finish statistics.
8108         * statistics.h (statistics_early_init): Declare.
8109         (statistics_init): Likewise.
8110         (statistics_fini): Likewise.
8111         (statistics_fini_pass): Likewise.
8112         (statistics_counter_event): Likewise.
8113         (statistics_histogram_event): Likewise.
8114         * statistics.c: New file.
8115         * Makefile.in (OBJS-common): Add statistics.o.
8116         (statistics.o): Add dependencies.
8117         * doc/invoke.texi (-fdump-statistics): Document.
8118
8119         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
8120         (insert): Likewise.
8121         (execute_pre): Use statistics_counter_event.
8122         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
8123         (substitute_and_fold): Increment it.  Use statistics_counter_event.
8124
8125 2008-05-15  Diego Novillo  <dnovillo@google.com>
8126
8127         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
8128
8129         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
8130         * tree-ssa-alias.c (new_type_alias): Remove references to
8131         sub-variables from comment.
8132         * tree-ssa-operands.c (swap_tree_operands): Likewise.
8133
8134 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8135
8136         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
8137         attribute to 1 only for insertps alternative.
8138
8139 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
8140
8141         * config/bfin/bfin.md (loadbytes): New pattern.
8142         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
8143         (bfin_init_builtins): Initialize it.
8144         (bdesc_1arg): Add it.
8145
8146 2008-05-15  Sa Liu  <saliu@de.ibm.com>
8147
8148         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
8149         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
8150         * testsuite/lib/target-supports.exp: Add
8151         check_effective_target_fortran_integer_16.
8152
8153 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
8154
8155         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
8156         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
8157         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
8158         (TARGET_RETURN_IN_MEMORY): Define.
8159
8160 2008-05-15  Richard Guenther  <rguenther@suse.de>
8161
8162         PR middle-end/36244
8163         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
8164         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
8165         represent unmodifiable vars.
8166
8167 2008-05-15  Richard Guenther  <rguenther@suse.de>
8168
8169         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
8170         INDIRECT_REF and TARGET_MEM_REF.
8171         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
8172         TARGET_MEM_REF.
8173
8174 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
8175             H.J. Lu  <hongjiu.lu@intel.com>
8176
8177         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
8178         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
8179         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
8180         insn alternatives.  Add missing alternatives.
8181         (*vec_concatv2di_rex64_sse4_1): Likewise.
8182         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
8183         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
8184         Require TARGET_SSE.
8185
8186 2008-05-15  Richard Guenther  <rguenther@suse.de>
8187
8188         PR tree-optimization/36009
8189         PR tree-optimization/36204
8190         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
8191         (determine_invariantness_stmt): Record the loop a store is
8192         always executed in.
8193         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
8194         dependency.
8195
8196 2008-05-15  Richard Guenther  <rguenther@suse.de>
8197
8198         PR tree-optimization/34330
8199         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
8200         through the pointer will alias the SMT.
8201
8202 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
8203
8204         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
8205
8206 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8207
8208         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
8209
8210 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
8211             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
8212
8213         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
8214         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
8215         (vashl_optab): New optab for vector/vector shifts.
8216         (vashr_optab): Ditto.
8217         (vlshr_optab): Ditto.
8218         (vrotl_optab): Ditto.
8219         (vrotr_optab): Ditto.
8220         (optab_subtype): New enum for optab_for_tree_code call.
8221         (optab_for_tree_code): Add enum optab_subtype argument.
8222
8223         * optabs.c (optab_for_tree_code): Take an additional argument to
8224         distinguish between a vector shift by a scalar and vector shift by
8225         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
8226         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
8227         vector shift by a vector.
8228         (expand_widen_pattern_expr): Pass additional argument to
8229         optab_for_tree_code.
8230
8231         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
8232         vrotl_optab, vrotr_optab.
8233
8234         * expr.c (expand_expr_real_1): Update calls to
8235         optab_for_tree_code to distinguish between vector shifted by a
8236         scalar and vector shifted by a vector.
8237         * tree-vectorizer.c (supportable_widening_operation): Ditto.
8238         (supportable_narrowing_operation): Ditto.
8239         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
8240         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
8241         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
8242         (vect_create_epilog_for_reduction): Ditto.
8243         (vectorizable_reduction): Ditto.
8244         (vectorizable_operation): Ditto.
8245         (vect_strided_store_supported): Ditto.
8246         (vect_strided_load_supported): Ditto.
8247         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
8248         * expmed.c (expand_shift): Ditto.
8249
8250         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
8251         scalar type.
8252         (ashr@var{m}3): Ditto.
8253         (vashl@var{m}3): Document new vector/vector shift standard name.
8254         (vashr@var{m}3): Ditto.
8255         (vlshr@var{m}3): Ditto.
8256         (vrotl@var{m}3): Ditto.
8257         (vrotr@var{m}3): Ditto.
8258
8259         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
8260         (PPERM_INVERT): Ditto.
8261         (PPERM_REVERSE): Ditto.
8262         (PPERM_REV_INV): Ditto.
8263         (PPERM_ZERO): Ditto.
8264         (PPERM_ONES): Ditto.
8265         (PPERM_SIGN): Ditto.
8266         (PPERM_INV_SIGN): Ditto.
8267         (PPERM_SRC1): Ditto.
8268         (PPERM_SRC2): Ditto.
8269
8270         * config/i386/sse.md (mulv2di3): Add SSE5 support.
8271         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
8272         allows a memory operand to be the value being added, and split it
8273         to improve vectorization.
8274         (sse5_pmacsdqh_mem): Ditto.
8275         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
8276         (sse5_mulv2div2di3_high): Ditto.
8277         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
8278         (vec_pack_trunc_v4si): Ditto.
8279         (vec_pack_trunc_v2di): Ditto.
8280         (sse5_pcmov_<mode>): Remove code that tried to use use
8281         andps/andnps instead of pcmov.
8282         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
8283         pmacsdqh instructions.
8284         (vec_widen_smult_lo_v4si): Ditto.
8285
8286         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
8287         (PPERM_INVERT): Ditto.
8288         (PPERM_REVERSE): Ditto.
8289         (PPERM_REV_INV): Ditto.
8290         (PPERM_ZERO): Ditto.
8291         (PPERM_ONES): Ditto.
8292         (PPERM_SIGN): Ditto.
8293         (PPERM_INV_SIGN): Ditto.
8294         (PPERM_SRC1): Ditto.
8295         (PPERM_SRC2): Ditto.
8296         (ix86_expand_sse_movcc): Move the SSE5 test after the if
8297         true/false tests.
8298         (ix86_expand_int_vcond): If SSE5 generate all possible integer
8299         comparisons.
8300         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
8301         says ignore whether the last reference is a memory operand.
8302
8303 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
8304             Paolo Bonzini <bonzini at gnu dot org>
8305
8306         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
8307         shift patterns.
8308
8309         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
8310         (vlshr<mode>3): Rename from vlshr<mode>3.
8311         (vashr<mode>3): Rename from vashr<mode>3.
8312         (mulv4sf3): Change the names of vector shift patterns.
8313         (mulv4si3): Ditto.
8314         (negv4sf2): Ditt.
8315
8316         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
8317         shift insns.
8318
8319         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
8320         (SI_SHLHI): Ditto.
8321         (SI_SHL): Ditto.
8322         (SI_SHLI): Ditto.
8323         (SI_ROTH): Ditto.
8324         (SI_ROTHI): Ditto.
8325         (SI_ROT): Ditto.
8326         (SI_ROTI): Ditto.
8327         (SPU_RL_0): Ditto.
8328         (SPU_RL_1): Ditto.
8329         (SPU_RL_2): Ditto.
8330         (SPU_RL_3): Ditto.
8331         (SPU_RL_4): Ditto.
8332         (SPU_RL_5): Ditto.
8333         (SPU_RL_6): Ditto.
8334         (SPU_RL_7): Ditto.
8335         (SPU_SL_0): Ditto.
8336         (SPU_SL_1): Ditto.
8337         (SPU_SL_2): Ditto.
8338         (SPU_SL_3): Ditto.
8339         (SPU_SL_4): Ditto.
8340         (SPU_SL_5): Ditto.
8341         (SPU_SL_6): Ditto.
8342         (SPU_SL_7): Ditto.
8343
8344         * config/spu/spu.md (v): New iterator macro to add v for vector types.
8345         (floatunssidf2_internal): Change vector/vector shift names.
8346         (floatunsdidf2_internal): Ditto.
8347         (mulv8hi3): Ditto.
8348         (ashrdi3): Ditto.
8349         (ashrti3): Ditto.
8350         (cgt_df): Ditto.
8351         (cgt_v2df): Ditto.
8352         (dftsv): Ditto.
8353         (vashl<mode>3): Rename from ashl<mode>3.
8354         (vashr<mode>3): Rename from ashr<mode>3.
8355         (vlshr<mode>3): Rename from lshr<mode>3.
8356         (vrotl<mode>3): Rename from rotl<mode>3.
8357
8358 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
8359
8360         PR target/36224
8361         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
8362         multiply gives the wrong value when doing widening multiplies.
8363         (vec_widen_smult_lo_v4si): Ditto.
8364
8365 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
8366
8367         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
8368         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
8369         emit_library_call_value.
8370         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
8371         * tree.h (ECF_LIBCALL_BLOCK): Removed.
8372         * calls.c (initialize_argument_information, precompute_arguments,
8373         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
8374         (precompute_arguments): Removed flags parameter.
8375         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
8376
8377 2008-05-14  Richard Guenther  <rguenther@suse.de>
8378
8379         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
8380         Make sure to register the store if the use is a PHI_NODE.
8381
8382 2008-05-14  Olivier Hainque  <hainque@adacore.com>
8383
8384         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
8385         memory if the component is to be referenced in BLKmode according
8386         to get_inner_reference.
8387
8388 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
8389
8390         * calls.c (emit_library_call_value_1): Restore code clearing
8391         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
8392
8393 2008-05-14  Olivier Hainque  <hainque@adacore.com>
8394             Nicolas Roche  <roche@adacore.com>
8395
8396         * configure.ac: Add support for a "gcc_subdir" variable in
8397         config-lang.in, to denote a subdirectory where the language/GCC
8398         integration files are to be found.
8399         * configure: Regenerate.
8400
8401 2008-05-14  Ira Rosen  <irar@il.ibm.com>
8402
8403         PR tree-optimization/36098
8404         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
8405         value for the first load in the group in case of a gap.
8406         (vect_build_slp_tree): Check that there are no gaps in loads.
8407
8408 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
8409
8410         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
8411         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
8412         expand_copysign_bit, ): Change call to emit_no_conflict_block to
8413         emit_insn and remove unneeded code to construct extra args.
8414         (emit_no_conflict_block): Removed.
8415         * optabls.h: (emit_no_conflict_block): Removed.
8416         * cse.c (cse_extended_basic_block): Remove search for
8417         REG_NO_CONFLICT note.
8418         * global.c: Removed incorrect comment added in revision 117.
8419         * expr.c (convert_move): Change call to emit_no_conflict_block to
8420         emit_insn.
8421         * recog.c: Change comments so that they do not mention
8422         REG_NO_CONFLICT.
8423         * local_alloc.c (combine_regs): Removed last parameter.
8424         (no_conflict_p): Removed.
8425         (block_alloc): Removed note, no_conflict_combined_regno and set
8426         local vars. Removed all code to process REG_NO_CONFLICT blocks.
8427         (combine_regs): Removed already_dead and code to look for
8428         REG_NO_CONFLICT notes.
8429         * lower_subreg (remove_retval_note): Removed code to look for
8430         REG_NO_CONFLICT block.
8431         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
8432         (resolve_clobber): Remove code to process libcalls that have
8433         REG_NO_CONFLICT notes.
8434         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
8435         case.
8436         * combine.c (can_combine_p, distribute_notes):  Removed
8437         REG_NO_CONFLICT case.
8438         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
8439         to emit_insns.
8440         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
8441         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
8442         Ditto.
8443         * reg-notes.def (NO_CONFLICT): Removed.
8444
8445 2008-05-14  David S. Miller  <davem@davemloft.net>
8446
8447         * config/sparc/sparc.c (sparc_profile_hook): If
8448         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
8449         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
8450         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
8451
8452 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
8453
8454         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
8455
8456 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
8457
8458         PR target/36222
8459         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
8460         and op1 expansion before vector concat to have less live pseudos.
8461
8462 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8463
8464         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
8465         ix86_expand_vector_set if supported.
8466
8467 2008-05-13  Diego Novillo  <dnovillo@google.com>
8468             Kenneth Zadeck  <zadeck@naturalbridge.com>
8469
8470         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
8471
8472         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
8473         phinodes_print_statistics, init_ssanames, fini_ssanames,
8474         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
8475         release_ssa_name, release_defs, replace_ssa_name_symbol,
8476         ssanames_print_statistics): Move ...
8477         * tree-flow.h: ... here.
8478         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
8479         Use FN instead of cfun.
8480         (make_ssa_name_fn): Rename from make_ssa_name.
8481         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
8482         * tree-flow-inline.h (make_ssa_name): Move from
8483         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
8484         * omp-low.c (expand_omp_parallel):
8485         * tree-flow-inline.h (redirect_edge_var_map_result):
8486         * tree-ssa.c (init_tree_ssa): Add argument FN.
8487         Use it instead of cfun.  Update all users.
8488
8489 2008-05-13  Tom Tromey  <tromey@redhat.com>
8490
8491         PR preprocessor/22168:
8492         * doc/cpp.texi (Top): Update menu.
8493         (Alternatives to Wrapper #ifndef): New node.
8494         (Other Directives): Document deprecation.
8495         (Obsolete Features): Remove menu.
8496         (Assertions): Merge node into Obsolete Features.
8497         (Obsolete once-only headers): Move earlier; rename to Alternatives
8498         to Wrapper #ifndef.
8499         * doc/cppopts.texi: Update.
8500         * c.opt (Wdeprecated): Enable for C and ObjC.
8501         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
8502         (C++ Dialect Options): Move -Wno-deprecated from here to...
8503         (Warning Options): ... here.
8504
8505 2008-05-13  Richard Guenther  <rguenther@suse.de>
8506
8507         PR middle-end/36227
8508         * fold-const.c (fold_sign_changed_comparison): Do not allow
8509         changes in pointer-ness.
8510
8511 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8512
8513         PR target/24713
8514         * config/sh/sh.c (sh_expand_prologue): Don't clear
8515         RTX_FRAME_RELATED_P for push insns.
8516
8517 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
8518
8519         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
8520
8521 2008-05-12  Anatoly Sokolov <aesok@post.ru>
8522
8523         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
8524         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
8525         Use 'machine->is_leaf' instead of 'leaf_func_p'.
8526
8527 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
8528
8529         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
8530         (*vec_concatv4sf_sse): This.
8531         (*sse2_concatv2si): Renamed to ...
8532         (*vec_concatv2si_sse2): This.
8533         (*sse1_concatv2si): Renamed to ...
8534         (*vec_concatv2si_sse): This.
8535         (*vec_concatv2di_rex): Renamed to ...
8536         (*vec_concatv2di_rex64): This.
8537         (*vec_concatv2si_sse4_1): New.
8538         (*vec_concatv2di_rex64_sse4_1): Likewise.
8539
8540 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
8541
8542         PR rtl-optimization/36111
8543         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
8544         that was created for swappable operands.
8545
8546 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
8547
8548         PR ada/36001
8549         * Makefile.in: Substitute GNATMAKE and GNATBIND.
8550         * configure.ac: Add call to ACX_PROG_GNAT.
8551
8552 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
8553
8554         * optc-gen.awk: Fix comment typo.
8555
8556 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
8557
8558         * pretty-print.c (pp_integer_with_precision): Use
8559         HOST_LONG_LONG_FORMAT.
8560
8561 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
8562
8563         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
8564
8565 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8566
8567         * config/i386/i386.c (bdesc_ptest): Removed.
8568         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
8569         (bdesc_args): Add __builtin_ia32_ptestz128,
8570         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
8571         (ix86_init_mmx_sse_builtins): Updated.
8572         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
8573         (ix86_expand_builtin): Updated.
8574
8575 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
8576
8577         * tree-cfg.c (valid_fixed_convert_types_p): New function.
8578         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
8579
8580 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
8581
8582         * value-prof.c (interesting_stringop_to_profile): Do not
8583         return early for BUILT_IN_MEMPCPY.
8584
8585 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8586
8587         * calls.c (expand_call): Don't use callgraph to increase
8588         preferred_stack_boundary.
8589
8590         * cgraph.h (cgraph_rtl_info): Use unsigned on
8591         preferred_incoming_stack_boundary.
8592
8593         * final.c (rest_of_clean_state): Use unsigned on
8594         preferred_stack_boundary.
8595
8596 2008-05-09  Tom Tromey  <tromey@redhat.com>
8597
8598         PR preprocessor/22231:
8599         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
8600         proceeding.
8601
8602 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
8603
8604         PR tree-optimization/36129
8605         * tree-ssa-ccp.c: Include value-prof.h.
8606         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
8607         built-in function was folded to a constant.
8608         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
8609
8610 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
8611             Sebastian Pop  <sebastian.pop@amd.com>
8612
8613         * tree-scalar-evolution.c: Document instantiate_scev.
8614         (instantiate_parameters_1): Renamed instantiate_scev_1.
8615         Don't use the same loop for instantiation_loop and evolution_loop.
8616         (instantiate_scev): New.
8617         (instantiate_parameters): Moved...
8618         (resolve_mixers): Update call to instantiate_scev_1 to pass the
8619         same loop twice.  Maintains the semantics for this function.
8620         * tree-scalar-evolution.h (instantiate_scev): Declare.
8621         (instantiate_parameters): ...here.  Now static inline.
8622         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
8623         instead of resolve_mixers.
8624
8625 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
8626
8627         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
8628
8629 2008-05-09  Tomas Bily  <tbily@suse.cz>
8630
8631         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
8632         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
8633         * tree-ssa-structalias.c (get_constraint_for): Likewise.
8634         * c-common.c (c_common_truthvalue_conversion): Likewise.
8635         * tree-object-size.c (compute_object_offset): Likewise.
8636         * tree-inline.c (estimate_num_insns_1): Likewise.
8637         * varasm.c (const_hash_1, compare_constant, copy_constant)
8638         (compute_reloc_for_constant, output_addressed_constants)
8639         (initializer_constant_valid_p): Likewise.
8640         * c-omp.c (check_omp_for_incr_expr): Likewise.
8641         * gimplify.c (gimplify_expr): Likewise.
8642         * c-typeck.c (c_finish_return): Likewise.
8643         * tree-vectorizer.c (supportable_widening_operation)
8644         (supportable_narrowing_operation): Likewise.
8645         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
8646         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
8647         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
8648         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
8649         (descr_info_loc): Likewise.
8650         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8651         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
8652         (fold_unary): Likewise.
8653         * builtins.c (get_pointer_alignment): Likewise.
8654         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
8655         (instantiate_parameters_1): Likewise.
8656         * tree.c (expr_align, stabilize_reference): Likewise.
8657         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
8658         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
8659         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
8660         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8661         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
8662         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
8663         Likewise.
8664         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
8665         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
8666         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
8667         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
8668         (forward_propagate_comparison)
8669         (tree_ssa_forward_propagate_single_use_vars): Likewise.
8670         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
8671         * emit-rtl.c (component_ref_for_mem_expr)
8672         (set_mem_attributes_minus_bitpos): Likewise.
8673         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
8674         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
8675         Likewise.
8676         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
8677         (build_function_call, pointer_diff, build_compound_expr)
8678         (c_finish_return): Likewise.
8679         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
8680         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
8681         Likewise.
8682         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
8683         * expr.c (is_aligning_offset): Likewise.
8684         * tree-ssa-alias.c (is_escape_site): Likewise.
8685         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
8686         (check_all_va_list_escapes): Likewise.
8687         * tree-ssa-loop-ivopts.c (determine_base_object)
8688         (determine_common_wider_type): Likewise.
8689         * dojump.c (do_jump): Likewise.
8690         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
8691         * tree-gimple.c (is_gimple_cast): Likewise.
8692         * fold-const.c (decode_field_reference, )
8693         (fold_sign_changed_comparison, fold_unary, fold_comparison)
8694         (fold_binary): Likewise.
8695         * tree-ssa-alias-warnings.c (find_alias_site_helper)
8696         (already_warned_in_frontend_p): Likewise.
8697         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
8698         * tree.c (really_constant_p, get_unwidened): Likewise.
8699         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
8700         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
8701         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
8702         Likewise.
8703         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
8704         CONVERT_EXPR_P.
8705         (CONVERT_EXPR_P): Define.
8706         (CASE_CONVERT): Define.
8707
8708 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
8709
8710         PR middle-end/36117
8711         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
8712         (delete_unmarked_insns): When deleting a call, call
8713         delete_unreachable_blocks.
8714         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8715         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
8716
8717 2008-05-08  Richard Guenther  <rguenther@suse.de>
8718
8719         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
8720         (-ftree-salias): Likewise.
8721         (salias-max-implicit-fields): Remove param documentation.
8722         (salias-max-array-elements): Likewise.
8723         * tree-pass.h (pass_create_structure_vars): Remove.
8724         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8725         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8726         * tree-ssa-alias.c (create_structure_vars): Remove.
8727         (gate_structure_vars): Likewise.
8728         (pass_create_structure_vars): Likewise.
8729         (gate_build_alias): Likewise.
8730         (pass_build_alias): Adjust to run always and dump the function.
8731         * common.opt (ftree-salias): Hide.
8732         * passes.c (init_optimization_passes): Remove
8733         pass_create_structure_vars, adjust comment.
8734         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8735         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8736         * opts.c (decode_options): Do not set flag_tree_salias.
8737         (common_handle_option): Add OPT_ftree_salias to the backward
8738         compatibility section.
8739
8740 2008-05-08  Richard Guenther  <rguenther@suse.de>
8741
8742         * tree-flow-inline.h (var_can_have_subvars): Move ...
8743         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
8744         * tree-flow.h (var_can_have_subvars): Remove.
8745         (push_fields_onto_fieldstack): Remove.
8746         (sort_fieldstack): Likewise.
8747         (struct fieldoff): Move ...
8748         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
8749         alias_set and base_for_components fields.
8750         (sort_fieldstack): Make static.
8751         (push_fields_onto_fieldstack): Likewise.  Remove code that
8752         handles anything but RECORD_TYPEs.  Remove alias_set and
8753         base_for_components handling.
8754         (create_variable_info_for): Adjust.
8755
8756 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
8757
8758         * common.opt (Wframe-larger-than=): Shorten the help message
8759         to one line.
8760         * doc/invoke.texi (Wframe-larger-than=): Add more description.
8761
8762 2008-05-08  Rafael Espindola  <espindola@google.com>
8763
8764         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
8765         trap.
8766         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
8767         trap and that both operands are gimple values.
8768         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
8769         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
8770         is a fp operation.
8771
8772 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
8773
8774         * read-rtl.c (join_c_conditions): Return the first string if the
8775         two strings are equal.
8776
8777 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
8778
8779         * gensupport.h (pred_data): Add a "num_codes" field.
8780         (add_predicate_code): Declare.
8781         * gensupport.c (add_predicate_code): New function.
8782         (std_pred_table): Add an "allows_const_p" field.
8783         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
8784         Remove the (incomplete) list of such codes from the codes field.
8785         (init_predicate_table): Use add_predicate_code.  Add all
8786         RTX_CONST_OBJs if allows_const_p is true.
8787         * genrecog.c (process_define_predicate): Use add_predicate_code.
8788
8789 2008-05-08  David Daney  <ddaney@avtrex.com>
8790             Richard Sandiford  <rsandifo@nildram.co.uk>
8791
8792         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
8793         special case of constant zero operands.
8794         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
8795         old and new values.  Special case constant zero values.
8796         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
8797         fails.
8798         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
8799         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
8800
8801 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
8802
8803         PR target/36090
8804         * simplify-rtx.c (simplify_plus_minus): Create CONST of
8805         similar RTX_CONST_OBJ before CONST_INT.
8806
8807 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
8808
8809         * stmt.c (expand_stack_restore): Change sa mode if needed.
8810
8811 2008-05-08  Richard Guenther  <rguenther@suse.de>
8812
8813         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
8814         return type to bool.
8815         (ix86_sol10_return_in_memory): Likewise.
8816         (ix86_i386elf_return_in_memory): Likewise.
8817         (ix86_i386interix_return_in_memory): Likewise.
8818         * config/i386/i386.c (ix86_return_in_memory): Likewise.
8819         (ix86_sol10_return_in_memory): Likewise.
8820         (ix86_i386elf_return_in_memory): Likewise.
8821         (ix86_i386interix_return_in_memory): Likewise.
8822
8823 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
8824
8825         PR bootstrap/36180
8826         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
8827         fndecl argument.
8828         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
8829         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
8830         declared in front.
8831
8832 2008-05-08  Richard Guenther  <rguenther@suse.de>
8833
8834         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
8835         * tree-data-ref.h (struct dr_alias): Remove subvars field.
8836         (DR_SUBVARS): Remove.
8837         * tree-dfa.c (dump_subvars_for): Remove.
8838         (debug_subvars_for): Likewise.
8839         (dump_variable): Do not dump subvars.
8840         (remove_referenced_var): Do not remove subvars.
8841         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
8842         (lookup_subvars_for_var): Remove.
8843         (get_subvars_for_var): Likewise.
8844         (get_subvars_at): Likewise.
8845         (get_first_overlapping_subvar): Likewise.
8846         (overlap_subvar): Likewise.
8847         * tree-flow.h (subvar_t): Remove.
8848         (struct var_ann_d): Remove subvars field.
8849         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
8850         argument.  Remove special handling of SFTs.
8851         (compute_tag_properties): Likewise.
8852         (set_initial_properties): Likewise.
8853         (compute_call_clobbered): Likewise.
8854         (count_mem_refs): Likewise.
8855         (compute_memory_partitions): Likewise.
8856         (compute_flow_insensitive_aliasing): Likewise.
8857         (setup_pointers_and_addressables): Likewise.
8858         (new_type_alias): Likewise.
8859         (struct used_part): Remove.
8860         (used_portions): Likewise.
8861         (struct used_part_map): Likewise.
8862         (used_part_map_eq): Likewise.
8863         (used_part_map_hash): Likewise.
8864         (free_used_part_map): Likewise.
8865         (up_lookup): Likewise.
8866         (up_insert): Likewise.
8867         (get_or_create_used_part_for): Likewise.
8868         (create_sft): Likewise.
8869         (create_overlap_variables_for): Likewise.
8870         (find_used_portions): Likewise.
8871         (create_structure_vars): Likewise.
8872         * tree.def (STRUCT_FIELD_TAG): Remove.
8873         * tree.h (MTAG_P): Adjust.
8874         (struct tree_memory_tag): Remove base_for_components and
8875         unpartitionable flags.
8876         (struct tree_struct_field_tag): Remove.
8877         (SFT_PARENT_VAR): Likewise.
8878         (SFT_OFFSET): Likewise.
8879         (SFT_SIZE): Likewise.
8880         (SFT_NONADDRESSABLE_P): Likewise.
8881         (SFT_ALIAS_SET): Likewise.
8882         (SFT_UNPARTITIONABLE_P): Likewise.
8883         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
8884         (union tree_node): Remove sft field.
8885         * alias.c (get_alias_set): Remove special handling of SFTs.
8886         * print-tree.c (print_node): Remove handling of SFTs.
8887         * tree-dump.c (dequeue_and_dump): Likewise.
8888         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
8889         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
8890         * tree-predcom.c (set_alias_info): Do not set subvars.
8891         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
8892         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
8893         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
8894         (add_vars_for_offset): Remove.
8895         (add_virtual_operand): Remove special handling of SFTs.
8896         (add_call_clobber_ops): Likewise.
8897         (add_call_read_ops): Likewise.
8898         (get_asm_expr_operands): Likewise.
8899         (get_modify_stmt_operands): Likewise.
8900         (get_expr_operands): Likewise.
8901         (add_to_addressable_set): Likewise.
8902         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
8903         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8904         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
8905         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
8906         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
8907         (tree_node_structure): Likewise.
8908         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
8909         handling of SFTs.
8910         (find_what_p_points_to): Likewise.
8911
8912 2008-05-08  Sa Liu  <saliu@de.ibm.com>
8913
8914         * config/spu/spu.md: Fixed subti3 pattern.
8915
8916 2008-05-08  Richard Guenther  <rguenther@suse.de>
8917
8918         PR middle-end/36154
8919         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8920         sure to create a representative for trailing arrays for PTA.
8921
8922 2008-05-08  Richard Guenther  <rguenther@suse.de>
8923
8924         PR middle-end/36172
8925         * fold-const.c (operand_equal_p): Two objects which types
8926         differ in pointerness are not equal.
8927
8928 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
8929
8930         * calls.c (compute_argument_block_size): Add argument tree fndecl.
8931         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
8932         (emit_library_call_value_1): Add new variable fndecl initialized by
8933         NULL_TREE. It should be the decl type of orgfun, but this information
8934         seems not to be available here, so it uses the default calling abi.
8935         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
8936         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
8937         by TARGET_RETURN_IN_MEMORY.
8938         * config/i386/i386-interix.h: Likewise.
8939         * config/i386/i386.h: Likewise.
8940         * config/i386/i386elf.h: Likewise.
8941         * config/i386/ptx4-i.h: Likewise.
8942         * config/i386/sol2-10.h: Likewise.
8943         * config/i386/sysv4.h: Likewise.
8944         * config/i386/vx-common.h: Likewise.
8945         * config/cris/cris.h: Removed #if 0 clause.
8946         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
8947         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
8948         argument.
8949         (ix86_sol10_return_in_memory): Likewise.
8950         (ix86_i386elf_return_in_memory): New.
8951         (ix86_i386interix_return_in_memory): New.
8952         * config/mt/mt-protos.h (mt_return_in_memory): New.
8953         * config/mt/mt.c: Likewise.
8954         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8955         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
8956         * config/bfin/bfin.h: Likewise.
8957         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
8958         argument.
8959         * config/bfin/bfin.c: Likewise.
8960         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8961         * config/alpha/unicosmk.h: Likewise.
8962         * config/i386/cygming.h: Likewise.
8963         * config/iq2000/iq2000.h: Likewise.
8964         * config/mips/mips.h: Likewise.
8965         * config/mn10300/mn10300.h: Likewise.
8966         * config/rs6000/rs6000.h: Likewise.
8967         * config/score/score.h: Likewise.
8968         * config/spu/spu.h: Likewise.
8969         * config/v850/v850.h: Likewise.
8970         * defaults.h: Likewise.
8971         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
8972         * expr.c (emit_block_move): Adjust use of
8973         OUTGOING_REG_PARM_STACK_SPACE.
8974         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
8975         OUTGOING_REG_PARM_STACK_SPACE.
8976         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
8977
8978 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
8979
8980         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
8981         on OMP_RETURN for OMP_FOR.
8982
8983         PR debug/35896
8984         * dwarf2out.c (dw_expand_expr, common_check): Removed.
8985         (fortran_common): New function.
8986         (gen_variable_die): Call fortran_common instead of common_check,
8987         adjust for it returning tree instead of rtx.  Formatting.
8988
8989 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
8990
8991         PR rtl/7335
8992         PR rtl/33826
8993         * see.c (see_copy_insn): Copy new pure const attributes for new call.
8994         * c-decl.c (merge_decls): Ditto.
8995         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
8996         to RTL_CONST_OR_PURE_CALL_P.
8997         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
8998         Initialized DECL_LOOPING_CONST_PURE.
8999         (process_call_operands): Set tree_side_effects properly.
9000         * tree.h (TREE_READONLY_DECL_P): Removed.
9001         (DECL_IS_PURE): Renamed to DECL_PURE_P.
9002         (DECL_LOOPING_OR_CONST_P): New macro.
9003         (struct tree_function_decl): Added looping_const_or_pure_p.
9004         (ECF_*) Renumbered.
9005         (ECF_LOOPING_OR_CONST_P): New macro.
9006         * rtlanal.c (pure_const_p): Removed.
9007         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
9008         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
9009         to RTL_CONST_CALL_P.
9010         * ipa-pure-const.c (pure_const_state_e): Added looping field.
9011         (check_decl, check_tree, check_call, scan_function): Initialize
9012         looping.
9013         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
9014         (static_execute): Set looping true for recursive functions.
9015         Undo setting state to IPA_NEITHER for recursive functions.
9016         * cse.c (cse_insn):
9017         * ifcvt.c (noce_can_store_speculate_p): Changed
9018         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
9019         RTL_CONST_OR_PURE_CALL_P.
9020         * dse.c (scan_insn): Ditto.
9021         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
9022         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
9023         RTL_CONST_OR_PURE_CALL_P.
9024         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
9025         pure_call_p to RTL_CONST_CALL_P.
9026         * gimplify.c (gimplify_call_expr): Clear side effects for
9027         non-looping pure and constant calls.
9028         * calls.c (emit_call_1): Set rtl flags from ecf flags.
9029         (flags_from_decl_or_type): Set ecf flags from decl flags.
9030         (initialize_argument_information): Turn off
9031         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
9032         Change const to pure if callee_copies is true rather than just
9033         turning off const.
9034         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
9035         way of marking pure calls.
9036         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
9037         Remove hack that was supposed to fix pr7335 and remove old
9038         way of marking pure calls.
9039         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
9040         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
9041         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
9042         RTL_CONST_OR_PURE_CALL_P.
9043         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
9044         * loop-invariant.c (find_exits, find_invariant_bb): Changed
9045         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
9046         * sched-deps.c (schedule_analyze): Ditto.
9047         * rtl.h (struct rtx_def): Use call field, unchanging field, and
9048         return_val field of calls to represent pure and const function info.
9049         (CONST_OR_PURE_CALL_P): Deleted macro.
9050         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
9051         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
9052         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
9053         TREE_READONLY.
9054         * tree-optimize.c (execute_fixup_cfg): Added test for
9055         ECF_LOOPING_CONST_OR_PURE.
9056         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
9057         DECL_PURE_P.
9058         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
9059         effects for looping pure or const calls.
9060         (verify_gimple_expr): Added verification code.
9061         * config/alpha/alpha.c (alpha_legitimize_address,
9062         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
9063         RTL_CONST_CALL_P.
9064         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
9065         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
9066         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
9067         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
9068         RTL_CONST_OR_PURE_CALL_P.
9069         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
9070         and const calls to be deleted.
9071
9072 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
9073
9074         PR target/35714
9075         * config/i386/mmx.md (mmx_subv2sf3): New expander.
9076         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
9077         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
9078         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
9079         to handle nonimmediate operands.
9080         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
9081         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
9082         to handle nonimmediate operands.
9083         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
9084         (mmx_pmulhrwv4hi3): New expander.  Use
9085         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9086         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
9087         (sse2_umulv1siv1di3): New expander.  Use
9088         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9089         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
9090         (mmx_eq<mode>3): New expander.  Use
9091         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9092         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
9093         (mmx_uavgv8qi3): New expander.  Use
9094         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9095         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
9096         (mmx_uavgv4hi3): New expander.  Use
9097         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9098
9099         * config/i386/sse.md
9100         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
9101         to handle nonimmediate operands.
9102         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
9103         to handle nonimmediate operands.
9104         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
9105         to handle nonimmediate operands.
9106         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
9107         to handle nonimmediate operands.
9108         (sse2_unpckhpd_exp): New expander.  Use
9109         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9110         (sse2_unpcklpd_exp): New expander.  Use
9111         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9112         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
9113         to handle nonimmediate operands.
9114         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
9115         to handle nonimmediate operands.
9116         (*sse2_<plusminus_insn><mode>3): Rename from
9117         sse2_<plusminus_insn><mode>3 insn pattern.
9118         (sse2_<plusminus_insn><mode>3): New expander.  Use
9119         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9120         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
9121         (sse2_umulv2siv2di3): New expander.  Use
9122         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9123         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
9124         (sse4_1_mulv2siv2di3): New expander.  Use
9125         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9126         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
9127         (sse2_pmaddwd): New expander.  Use
9128         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9129         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
9130         (sse2_eq<mode>3): New expander.  Use
9131         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9132         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
9133         (sse4_1_eqv2di3): New expander.  Use
9134         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9135         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
9136         (sse2_uavgv16qi3): New expander.  Use
9137         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9138         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
9139         (sse2_uavgv16qi3): New expander.  Use
9140         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9141         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
9142         (sse2_uavgv8hi3): New expander.  Use
9143         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9144         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
9145         (ssse3_pmulhrswv8hi3): New expander.  Use
9146         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9147         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
9148         (ssse3_pmulhrswv4hi3): New expander.  Use
9149         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9150
9151         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
9152         (<sse>_vmmul<mode>3): Ditto.
9153         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
9154         (divv2df3): Ditto.
9155         (ssse3_pmaddubsw128): Use register_operand for operand 1.
9156         (ssse3_pmaddubsw): Ditto.
9157
9158         * config/i386/i386.c (struct_builtin_description)
9159         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
9160         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
9161         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
9162         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
9163         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
9164         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
9165         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
9166         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
9167         (ix86_fixup_binary_operands): Assert that src1
9168         and src2 must have the same mode when swapped.
9169         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
9170         and ix86_binary_operator_ok.  Do not force operands in registers
9171         when optimizing.
9172
9173 2008-05-07  Jan Hubicka  <jh@suse.cz>
9174
9175         * cgraph.c (dump_cgraph_node): Update.
9176         * cgraph.h (cgraph_local_info): Break out inline summary.
9177         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
9178         hook.
9179         * ipa-inline (inline_summary): New accestor function.
9180         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
9181         cgraph_decide_inlining, compute_inline_parameters): Update.
9182         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
9183
9184 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
9185
9186         Cleanup ColdFire scheduling support and add V4 pipeline model.
9187
9188         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
9189         (define_attr cpu): Add cfv4 value.
9190         (define_attr type, define_attr type1): Merge into a single 'type'
9191         attribute.  Update all uses.
9192         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
9193         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
9194         Update all uses.
9195         (define_attr opx_mem, define_attr opy_mem): Remove.
9196         (define_attr op_mem): Clean up, update comment.
9197         (define_attr size): Use specific values instead of general int.
9198         (define_attr guess, define_attr split): Remove.  Update all uses.
9199         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
9200         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
9201         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
9202         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
9203         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
9204         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
9205         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
9206         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
9207         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
9208         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
9209         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
9210         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
9211         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
9212         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
9213         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
9214         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
9215         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
9216         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
9217         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
9218         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
9219         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
9220         Update or set attributes.
9221         (stack_tie): New fake instruction.
9222
9223         * config/m68k/m68k.h (TUNE_CFV4): New macro.
9224         (m68k_sched_attr_size): Update declaration.
9225         (m68k_sched_attr_type2): Remove.
9226         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
9227         Declare new bypass predicates.
9228
9229         * config/m68k/m68k.c (m68k_sched_issue_rate,
9230         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
9231         implementations.
9232         (TARGET_SCHED_ISSUE_RATE,
9233         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
9234         (override_options): Handle scheduling for ColdFire V4 core.
9235         (m68k_expand_prologue): Emit stack_tie.
9236         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
9237         'OP_TYPE_FPN'.  Update all uses.
9238         (sched_guess_p): Remove.
9239         (sched_address_type): Handle symbolic addresses.
9240         (sched_get_operand): New static function.
9241         (sched_operand_type): Merge into sched_attr_op_type.
9242         (sched_attr_op_type): Handle FP registers, handle quick constants,
9243         update.
9244         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
9245         (m68k_sched_attr_size): Update.  Move logic to ...
9246         (sched_get_attr_size_int): New static function.
9247         (sched_get_opxy_mem_type): New static function.
9248         (m68k_sched_attr_op_mem): Update.
9249         (m68k_sched_attr_type2): Remove.
9250         (sched_cfv4_bypass_data): New static variable.
9251         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
9252         (m68k_sched_issue_rate): Implement scheduler hook.
9253         (struct _sched_ib: enabled_p): New field.
9254         (m68k_sched_variable_issue): Update.  Handle V4.
9255         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
9256         sched_dump_class_func_t, sched_dump_split_class,
9257         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
9258         sched_dump_dfa_class, m68k_sched_dump): Remove.
9259         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
9260         hook.
9261         (m68k_sched_init_global): Remove statisctics dumping, introduce
9262         sanity check that all instructions have pipeline reservations.  Handle
9263         ColdFire V4 core.
9264         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9265         Handle ColdFire V4 core.
9266         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
9267         New static functions.
9268         (m68k_sched_address_bypass_p): New bypass predicate.
9269         (sched_get_indexed_address_scale): New static function.
9270         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
9271
9272         * cf.md: Update comments.
9273         (define_attr type2): Remove.  Use 'type' attribute instead.
9274         Update all uses.
9275         (cf_ib): Rename to cfv123_ib.  Update all uses.
9276         (cf_oep): Rename to cfv123_oep.  Update all uses.
9277         (cf_chr): Rename to cfv123_chr.  Update all uses.
9278         (cf_mem): Rename to cfv123_mem.  Update all uses.
9279         (cf_mac): Move to more appropriate place.
9280         (cfv123_guess): New automaton and cpu_unit.
9281         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
9282         Update uses of 'size' attribute.  Handle before reload scheduling.
9283         (cfv123_guess): New dummy reservation for unhandled instructions.
9284         (cfv4_*): Pipeline description of ColdFire V4 core.
9285         (ignore): New reservation to handle 'ignore' type.
9286
9287 2008-05-07  Ian Lance Taylor  <iant@google.com>
9288
9289         PR middle-end/36013
9290         * gimplify.c (find_single_pointer_decl_1): Don't look through
9291         indirections.
9292         (find_single_pointer_decl): Adjust comments.
9293
9294 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
9295
9296         PR middle-end/36137
9297         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
9298         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
9299
9300         PR middle-end/36106
9301         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
9302         integral type rather than floating point, then VIEW_CONVERT_EXPR
9303         to the floating point type.
9304
9305 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
9306
9307         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
9308         TFmode op0 to register.
9309
9310 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
9311
9312         * c-decl.c (grokdeclarator): Comment typo.
9313
9314 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
9315
9316         * tree-flow.h: Remove prototype for computed_goto_p.
9317         * tree-cfg.c (computed_goto_p): Make static.
9318
9319 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
9320
9321         PR target/35657
9322         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
9323         (contains_aligned_value_p): This.  Handle _Decimal128.
9324         (ix86_function_arg_boundary): Only align _Decimal128 to its
9325         natural boundary and handle it properly.
9326
9327 2008-05-06  Martin Jambor  <mjambor@suse.cz>
9328
9329         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
9330         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
9331         (ipcp_method_set_orig_node): Removed.
9332         (ipcp_cval_get_cvalue_type): Removed.
9333         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
9334         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
9335         (ipcp_cval_set_cvalue_type): Removed.
9336         (ipcp_cval_get_cvalue): Removed.
9337         (ipcp_cval_set_cvalue): Removed.
9338         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
9339         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
9340         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
9341         (ipcp_cval_meet): Renamed to ipa_lattice_meet
9342         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
9343         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
9344         (ipcp_get_ith_lattice): Changed parameters.
9345         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
9346         (ipcp_lattice_from_jfunc): Changed parameters.
9347         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
9348         (ipcp_method_cval_print): Added temporary variable info.
9349         (ipcp_redirect): Removed already unused local variable caller.
9350         (ipcp_redirect): New temporary variable orig_callee_info
9351         (ipcp_redirect): Removed newly unused local variable callee.
9352         (ipcp_redirect): Removed (a bit confusing) local variable type.
9353         (ipcp_insert_stage): Added local variable info.
9354         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
9355         renamed too
9356         (ipcp_formal_create): Removed.
9357         (ipcp_method_cval_set): Removed.
9358         (ipcp_propagate_stage): Renamed lattice variables.
9359         (ipcp_method_cval_set_cvalue_type): Removed.
9360         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
9361         (ipcp_print_all_lattices): Changed printed strings to refer to
9362         lattices rather than cvals.
9363         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
9364         (ipcp_propagate_const): Changed formal parameters.
9365         (build_const_val): Changed formal parameters.
9366         (ipcp_insert_stage): Removed useless variable cvalue
9367         (build_const_val): Changed formal parameters.
9368         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
9369         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
9370         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
9371         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
9372         (ipcp_print_func_profile_counts): Changed string from "method" to
9373         "function"
9374         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
9375         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
9376         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
9377         (ipcp_structures_print): Renamed to ipcp_print_all_structures
9378         (ipcp_profile_print): Renamed to ipcp_print_profile_data
9379         (ipcp_lat_is_const): Changed parameters and made inline.
9380         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
9381         (ipcp_redirect): Renamed to ipcp_need_redirect_p
9382         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
9383         the predicate condition directly
9384         (ipcp_propagate_stage): Added local variable args. Removed local
9385         variable callee.  (Both are mere code simplifications.)
9386         (ipcp_method_dont_insert_const): Renamed to
9387         ipcp_node_not_modifiable_p.
9388         (ipcp_node_not_modifiable_p): Made inline.
9389         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
9390         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
9391         (ipcp_print_all_lattices): Removed variable cvalue
9392         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
9393         Updated comments.
9394
9395 2008-05-06  Olivier Hainque  <hainque@adacore.com>
9396
9397         * tree-sra.c (try_instantiate_multiple_fields): Early return
9398         if field has POINTER_TYPE.
9399
9400 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
9401
9402         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
9403         by using 'q' specifier for instruction.
9404         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
9405
9406 2008-05-06  Anatoly Sokolov <aesok@post.ru>
9407
9408         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
9409         Change mode of zero_extract from QImode to HImode.
9410         (sign bit tests peepholes): (Ditto.).
9411
9412 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
9413
9414         * config/i386/mmx.md: Remove double backslashes from asm templates.
9415         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
9416         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
9417         to handle nonimmediate operands.
9418         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
9419         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
9420         to handle nonimmediate operands.
9421         (*mmx_<code>v2sf3_finite): New insn pattern.
9422         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
9423         (mmx_<code>v2sf3): New expander.  Use
9424         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9425         (mmx_<plusminus_insn><mode>3): New expander.  Use
9426         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9427         (*mmx_<plusminus_insn><mode>3): New insn pattern.
9428         (mmx_add<mode>3): Removed.
9429         (mmx_ssadd<mode>3): Ditto.
9430         (mmx_usadd<mode>3): Ditto.
9431         (mmx_sub<mode>3): Ditto.
9432         (mmx_sssub<mode>3): Ditto.
9433         (mmx_ussub<mode>3): Ditto.
9434         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
9435         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
9436         to handle nonimmediate operands.
9437         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
9438         insn pattern.
9439         (mmx_smulv4hi3_highpart): New expander.  Use
9440         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9441         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
9442         insn pattern.
9443         (mmx_umulv4hi3_highpart): New expander.  Use
9444         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9445         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
9446         (mmx_<code>v4hi3): New expander.  Use
9447         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9448         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
9449         (mmx_<code>v8qi3): New expander.  Use
9450         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9451         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
9452         (mmx_<code><mode>3): New expander.  Use
9453         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9454
9455 2008-05-05  Jan Hubicka  <jh@suse.cz>
9456
9457         PR tree-optimization/36118
9458         * passes.c (pass_init_dump_file): Fix dump header.
9459
9460 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9461
9462         PR middle-end/36141
9463         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
9464         VCE for function decls.
9465
9466 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
9467
9468         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
9469
9470 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
9471
9472         * config/i386/i386.md (sat_plusminus): New.
9473         (plusminus_insn): Likewise.
9474         (plusminus_mnemonic): Likewise.
9475         (addsub): Removed.
9476         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
9477         (*<addsub><mode>3_cc_overflow): Renamed to ...
9478         (*<plusminus_insn><mode>3_cc_overflow): This.
9479         (*<addsub>si3_zext_cc_overflow): Renamed to ...
9480         (*<plusminus_insn>si3_zext_cc_overflow): This.
9481
9482         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
9483         (<plusminus_insn><mode>3): This.
9484         (*<addsub><mode>3): Renamed to ...
9485         (*<plusminus_insn><mode>3): This.
9486         (<sse>_vm<addsub><mode>3): Renamed to ...
9487         (<sse>_vm<plusminus_insn><mode>3): This.
9488         (sse3_h<addsub>v4sf3): Renamed to ...
9489         (sse3_h<plusminus_insn>v4sf3): This.
9490         (sse3_h<addsub>v2df3): Renamed to ...
9491         (sse3_h<plusminus_insn>v2df3): This.
9492         (<plusminus_insn><mode>3): New.
9493         (*<plusminus_insn><mode>3): Likewise.
9494         (sse2_<plusminus_insn><mode>3): Likewise.
9495         (add<mode>): Removed.
9496         (*add<mode>3): Likewise.
9497         (sse2_ssadd<mode>3): Likewise.
9498         (sse2_usadd<mode>3): Likewise.
9499         (sub<mode>3): Likewise.
9500         (*sub<mode>3): Likewise.
9501         (sse2_sssub<mode>3): Likewise.
9502         (sse2_ussub<mode>3): Likewise.
9503
9504 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
9505
9506         * gthr-single.h: Add in required interface elements as per gthr.h.
9507         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
9508         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
9509         Generalize UNUSED macro.
9510         (__gthread_once): Add.
9511         (__gthread_key_create): Add.
9512         (__gthread_key_delete): Add.
9513         (__gthread_getspecific): Add.
9514         (__gthread_setspecific): Add.
9515
9516 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
9517
9518         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
9519         the same size types for the indirect reference on the rhs, then
9520         create a VCE.
9521
9522 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
9523
9524         * config/i386/i386.md
9525         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
9526         one insn template instead of template series.
9527         (*xordi_1_rex64): Ditto.
9528         (*xordi_2_rex64): Ditto.
9529
9530 2008-05-05  Ira Rosen  <irar@il.ibm.com>
9531
9532         PR tree-optimization/36119
9533         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
9534         in case of SLP.
9535
9536 2008-06-04  Jan Hubicka  <jh@suse.cz>
9537
9538         tree-optimization/36100
9539         * tree-pass.h (pass_O0_always_inline): Declare.
9540         * ipa-inline.c (inline_transform): Remove dead code.
9541         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
9542         pass_O0_always_inline): New.
9543         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
9544
9545 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
9546
9547         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
9548         mnemonic in this_param move for TARGET_64BIT.
9549
9550 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
9551
9552         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
9553         (*strmovsi_rex_1): Ditto.
9554         (*strsetsi_1): Ditto.
9555         (*strsetsi_rex_1): Ditto.
9556
9557         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
9558         adddicc expanders using SWI mode iterator.
9559
9560 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9561
9562         PR target/36121
9563         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
9564         argument handling.
9565
9566 2008-05-04  David S. Miller  <davem@davemloft.net>
9567
9568         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
9569         (sparc*-*-linux*): Use linux.h in tm_file.
9570         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
9571         compiler defaulting to 32-bit.
9572         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
9573         no longer needed.
9574         * config/sparc/linux.h: Remove definitions now obtained
9575         properly from linux.h
9576         * config/sparc/linux64.h: Likewise.
9577         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
9578         don't want this setting for 32-bit builds in a biarch compiler.
9579         * doc/install.texi: Add sparc-linux to list of targets
9580         supporting --enable-targets=all.
9581
9582 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
9583
9584         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
9585
9586 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
9587
9588         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
9589         after V4SI_FTYPE_V8HI.
9590         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
9591         case V4SI_FTYPE_V2DF.
9592
9593 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
9594
9595         * doc/invoke.texi (max-flow-memory-locations): Removed.
9596         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
9597
9598 2008-05-03  Richard Guenther  <rguenther@suse.de>
9599
9600         PR middle-end/34973
9601         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
9602
9603 2008-05-02  David S. Miller  <davem@davemloft.net>
9604
9605         * config.gcc (need_64bit_hwint): Document libcpp dependency.
9606
9607 2008-05-02  Simon Baldwin <simonb@google.com>
9608
9609         PR bootstrap/36108
9610         * c-common.h (warn_array_subscript_range): Removed.
9611         * c-common.c (warn_array_subscript_range): Ditto.
9612         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
9613         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
9614
9615 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
9616
9617         * config/i386/i386.c (ix86_special_builtin_type): New.
9618         (bdesc_special_args): Likewise.
9619         (ix86_expand_special_args_builtin): Likewise.
9620         (ix86_init_mmx_sse_builtins): Updated.
9621         (ix86_expand_builtin): Updated.
9622         (ix86_expand_store_builtin): Removed.
9623         (ix86_expand_unop_builtin): Likewise.
9624
9625         * config/i386/mm3dnow.h (__v2sf): Moved to ...
9626         * config/i386/mmintrin.h (__v2sf): Here.
9627
9628         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
9629         const __v2sf.
9630         (_mm_loadl_pi): Likewise.
9631         (_mm_storeh_pi): Replace __v2si with __v2sf.
9632         (_mm_storel_pi): Likewise.
9633
9634         * doc/extend.texi: Correct __builtin_ia32_loadhps,
9635         __builtin_ia32_loadlps, __builtin_ia32_storehps,
9636         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
9637         __builtin_ia32_loadlpd.
9638
9639 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
9640
9641         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
9642         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
9643         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
9644         (ix86_init_mmx_sse_builtins): Updated.
9645         (ix86_expand_args_builtin): Likewise.
9646         (ix86_expand_builtin): Likewise.
9647         (ix86_expand_unop1_builtin): Renamed to ...
9648         (ix86_expand_unop_vec_merge_builtin): This.
9649
9650 2008-05-01  Jan Hubicka  <jh@suse.cz>
9651
9652         PR bootstrap/36100
9653         * ipa-inline.c (inline_generate_summary): Make static.
9654         (inline_transform): Do not call inlining at -O0; make static.
9655         * passes.c (execute_todo): Add sanity check.
9656         (execute_one_ipa_transform_pass): Execute proper flags.
9657
9658 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
9659
9660         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
9661         (DECL_NONADDRESSABLE_P): Likewise.
9662         * alias.c (record_component_aliases): Fix comment.
9663
9664 2008-05-01  Simon Baldwin <simonb@google.com>
9665
9666         * c-common.h (warn_array_subscript_range): New function.
9667         * c-common.c (warn_array_subscript_range): Ditto.
9668         * tree-vrp.c (check_array_ref): Corrected code to agree with
9669         comment, ignoring only arrays of size 0 or size 1.
9670         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
9671
9672 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
9673
9674         * config/i386/i386.c (ix86_builtin_type): Replace
9675         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
9676         (bdesc_args): Updated.
9677         (ix86_init_mmx_sse_builtins): Likewise.
9678         (ix86_expand_args_builtin): Likewise.
9679
9680         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
9681         with __v1di.
9682
9683         * doc/extend.texi: Correct __builtin_ia32_palignr.
9684
9685 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
9686
9687         PR target/36095
9688         * config/i386/i386.c (bdesc_crc32): Removed.
9689         (ix86_expand_crc32): Likewise.
9690         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
9691         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
9692         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
9693         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
9694         UINT_FTYPE_UINT_UCHAR.
9695         (bdesc_args): Updated. Add crc32 builtins.
9696         (ix86_init_mmx_sse_builtins): Updated.
9697         (ix86_expand_args_builtin): Updated to support subreg.
9698
9699         * doc/extend.texi: Correct __builtin_ia32_crc32di.
9700
9701 2008-05-01  Jan Hubicka  <jh@suse.cz>
9702
9703         * tree-pass.h (opt_pass): Add IPA_PASS.
9704         (varpool_node, cgraph_node): Forward declare.
9705         (ipa_opt_pass): Define.
9706         (pass_ipa_inline): Turn into ipa_opt_pass.
9707         (pass_apply_inline): Remove.
9708         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
9709         (apply_inline): Turn into ....
9710         (inline_transform): ... this one.
9711         (inline_generate_summary): New function.
9712         (pass_apply_inline): Remove.
9713         * function.h (ipa_opt_pass): Forward declare structure; typedef;
9714         vector.
9715         (struct function): Add ipa_transforms_to_apply.
9716         * passes.c (register_one_dump_file): Work on IPA_PASS.
9717         (init_optimization_passes): Remove pass_inline_parameters and
9718         pass_apply_inline.
9719         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
9720         (execute_one_pass) ... here; apply transforms when possible.
9721         (add_ipa_transform_pass, execute_ipa_summary_asses,
9722         execute_one_ipa_transform_pass): New.
9723         (execute_ipa_pass_list): Update for IPA_PASS type.
9724
9725 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
9726
9727         * config/i386/i386.c (ix86_builtin_type): Add
9728         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
9729         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
9730         (bdesc_args): Add SSE4a builtins.
9731         (ix86_init_mmx_sse_builtins): Updated.
9732         (ix86_expand_args_builtin): Likewise.
9733         (ix86_expand_builtin): Likewise.
9734
9735 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
9736
9737         * config/i386/i386.c (ix86_builtin_type): Add
9738         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
9739         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
9740         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
9741         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
9742         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
9743         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
9744         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
9745         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
9746         and DI_FTYPE_DI_DI_INT.
9747         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
9748         (ix86_init_mmx_sse_builtins): Updated.
9749         (ix86_expand_args_builtin): Likewise.
9750         (ix86_expand_builtin): Likewise.
9751         (ix86_expand_binop_imm_builtin): Removed.
9752
9753         * doc/extend.texi: Correct __builtin_ia32_palignr128.
9754
9755 2008-04-30  Richard Guenther  <rguenther@suse.de>
9756
9757         PR tree-optimization/32921
9758         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
9759
9760 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
9761
9762         * config/arm/arm.c (arm_unwind_emit): Use
9763         crtl->all_throwers_are_sibcalls instead of
9764         cfun->all_throwers_are_sibcalls.
9765         (arm_output_fn_unwind): Likewise.
9766         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
9767         instead of cfun->uses_pic_offset_table.
9768         (frv_expand_prologue): Likewise.
9769         (frv_frame_pointer_required): Likewise.
9770         (frv_expand_fdpic_call): Likewise.
9771         (frv_emit_movsi): Likewise.
9772         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
9773         cfun->returns_pcc_struct instead of
9774         current_function_returns_pcc_struct.
9775         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
9776         instead of cfun->calls_eh_return.
9777         (m32c_pushm_popm): Likewise.
9778         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
9779         "extern" declaration.
9780
9781 2008-04-30  Richard Guenther  <rguenther@suse.de>
9782
9783         PR tree-optimization/21636
9784         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
9785         constant address.
9786         (evaluate_stmt): Print the likely value.
9787         (ccp_visit_stmt): Avoid excessive vertical spacing.
9788
9789 2008-04-30  Rafael Espindola  <espindola@google.com>
9790
9791         * builtins.c (fold_call_expr): Return realret.
9792         * tree-ssa-threadedge.c
9793         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
9794         __builtin_object_size.
9795
9796 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
9797
9798         * gcc.c (wrapper_string): New variable.
9799         (insert_wrapper): New function.
9800         (execute): New option -wrapper.
9801         * doc/invoke.texi (Overall Options): New driver option -wrapper.
9802
9803 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
9804
9805         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
9806         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
9807         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
9808         from...
9809         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
9810         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
9811         config/rs6000/e500crtres64gprctr.asm,
9812         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
9813         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
9814         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
9815         config/rs6000/e500crtsav64gprctr.asm,
9816         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
9817         config/rs6000/e500crtsavg64gprctr.asm: New files.
9818         * config/rs6000/t-ppccomm: Add build rules for new files.
9819         (LIB2FUNCS_STATIC_EXTRA): Add new files.
9820         * config/rs6000/t-netbsd: Add build rules for new files.
9821         (LIB2FUNCS_STATIC_EXTRA): New variable.
9822         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
9823         (CRTSAVRES_DEFAULT_SPEC): Likewise.
9824         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
9825
9826 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
9827
9828         * config/i386/i386.c (ix86_builtin_type): Add
9829         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
9830         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
9831         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
9832         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
9833         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
9834         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
9835         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
9836         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
9837         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
9838         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
9839         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
9840         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
9841         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
9842         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
9843         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
9844         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
9845         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
9846         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
9847         V1DI_FTYPE_V2SI_V2SI.
9848         (bdesc_2arg): Moved to ...
9849         (bdesc_args): Here.
9850         (ix86_init_mmx_sse_builtins): Updated.
9851         (ix86_expand_args_builtin): Updated.  Take a pointer
9852         to const struct builtin_description.  Handle comparison
9853         builtin functions.
9854         (ix86_expand_sse_compare): Take a new argument for swapping operands.
9855         (ix86_expand_builtin): Updated.
9856
9857         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
9858         (ssse3_pmaddubsw128): This.
9859         (ssse3_pmaddubswv4hi3): Renamed to ...
9860         (ssse3_pmaddubsw): This.
9861
9862         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
9863         (__builtin_ia32_packssdw128): Likewise.
9864         (__builtin_ia32_packuswb128): Likewise.
9865         (__builtin_ia32_pmaddubsw): Likewise.
9866         (__builtin_ia32_pmaddubsw128): Likewise.
9867
9868 2008-04-30  Richard Guenther  <rguenther@suse.de>
9869
9870         PR tree-optimization/14847
9871         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
9872         (recognize_bits_test): Use it.
9873         (recognize_single_bit_test): Likewise.
9874
9875 2008-04-30  Martin Jambor  <mjambor@suse.cz>
9876
9877         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
9878         instead of setting number of formal parameters to zero.
9879         (ipcp_init_stage): Do not set the number of actual parameters to zero
9880         either.
9881         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
9882         which are called with variable number of arguments.
9883         (ipcp_insert_stage): Explicitely skipping all nodes which are
9884         called with variable number of arguments.
9885         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
9886         number of parameters.
9887
9888         * ipa-prop.h (struct ipa_node_params): Added flag
9889         called_with_var_arguments
9890         (ipa_set_param_count): Added.  Changed sole setter to use it.
9891         (ipa_get_param_count): Added.  All readers of param_count
9892         converted to use it instead.
9893         (ipa_set_called_with_variable_arg): Added.
9894         (ipa_is_called_with_var_arguments): Added.
9895         (ipa_get_ith_param): Added.  All readers of param_decls converted
9896         to use it instead.
9897         (ipa_set_cs_argument_count): Added, sole writer to argument_count
9898         changed to use it.
9899         (ipa_get_cs_argument_count): Added, all readers of argument_count
9900         changed to cal it.
9901         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
9902         to use it.
9903
9904         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
9905         (struct ipcp_lattice): Renamed cval_type to type
9906         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
9907
9908         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
9909         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
9910         (ipcp_insert_stage): Changed the type of variable cvalue to tree
9911         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
9912         (build_const_val): Changed the type of parameter cvalue to tree
9913         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
9914         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
9915
9916         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
9917         constant
9918
9919         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
9920         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
9921         (ipa_add_method): Renamed to ipa_push_func_to_list
9922         (ipa_remove_method): Renamed to ipa_pop_func_from_list
9923         (ipa_callsite_param_count): Removed.
9924         (ipa_callsite_param_count_set): Removed.
9925         (ipa_callsite_param): Removed.
9926         (ipa_callsite_callee): Removed.
9927         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
9928         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
9929         (ipa_method_formal_count): Removed.
9930         (ipa_method_formal_count_set): Removed.
9931         (ipa_method_get_tree): Removed.
9932         (ipa_method_tree_map_create): Removed.
9933         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
9934         (ipa_create_param_decls_array): Creates the array itself
9935         (ipa_create_param_decls_array): Temporary variable info instead of
9936         a few dereferences.
9937         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
9938         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
9939         (get_type): Removed.
9940         (ipa_jf_get_info_type): Removed.
9941         (ipa_node_create): Renamed to ipa_create_node_params
9942         (ipa_free): Renamed to ipa_free_all_node_params
9943         (ipa_nodes_create): Renamed to ipa_create_all_node_params
9944         (ipa_edges_create): Renamed to ipa_create_all_edge_args
9945         (ipa_edges_free): Renamed to ipa_free_all_edge_args
9946         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
9947         (ipa_free_all_node_params): Deallocation to jump_functions moved to
9948         ipa_free_all_edge_args
9949         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
9950         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
9951         (ipa_create_methodlist_node): Removed.
9952         (ipa_methodlist_method): Removed.
9953         (ipa_methodlist_method_set): Removed.
9954         (ipa_methodlist_next_method): Removed.
9955         (ipa_methodlist_next_method_set): Removed.
9956         (ipa_method_is_modified): Removed.
9957         (ipa_method_modify_create): Removed.
9958         (ipa_method_modify_init): Temporary variable info instead of a few
9959         dereferences.
9960         (ipa_detect_param_modifications): Temporary variable info instead of
9961         a few dereferences.
9962         (ipa_compute_jump_functions): Temporary variable info instead of
9963         a few dereferences.
9964         (ipa_method_modify_set): Removed.
9965         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
9966         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
9967         than craph_node as the first parameter.
9968         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
9969         (ipa_method_modify_init): Removed.
9970         (ipa_compute_jump_functions): Added a temp variable instead of
9971         repeatadly dereferencing the cgraph_edge.aux pointer
9972         (ipa_callsite_param_set_type): Removed.
9973         (ipa_compute_jump_functions): i renamed to index and moved to
9974         an inner block
9975         (ipa_callsite_param_set_info_type_formal): Removed.
9976         (ipa_callsite_param_set_info_type): Removed.
9977         (ipa_callsite_param_map_create): Removed.
9978         (ipa_callsite_tree): Removed.
9979         (ipa_callsite_caller): Removed.
9980         (ipa_pop_func_from_list): return_method removed to return_func
9981
9982         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
9983         prefixed all values with IPA_. Changed all users.
9984         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
9985         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
9986         and FORMAL_IPATYPE IPA_PASS_THROUGH.
9987         (union parameter_info): Renamed to jump_func_value.
9988         (union jump_func_value): Renamed value to constant
9989         (struct ipa_jump_func): Renamed info_type to value
9990         (struct ipa_node): Renamed to ipa_node_params
9991         (struct ipa_node_params): Renamed ipa_arg_num to param_count
9992         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
9993         (struct ipa_node_params): Renamed ipa_mod to modified_flags
9994         (struct ipa_edge): Renamed to ipa_edge_args
9995         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
9996         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
9997         (struct ipa_methodlist): Renamed to ipa_func_list
9998         (struct ipa_func_list): method_p renamed to node, next_method
9999         renamed to next
10000         (ipa_methodlist_p): Removed, switched all users to struct pointer
10001         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
10002
10003 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
10004
10005         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
10006         (rs6000_emit_epilogue): Use backchain to restore only when we
10007         have a large frame.  Make use of frame pointer to restore if we
10008         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
10009
10010 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
10011
10012         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
10013         Add mode to zero_extract.
10014         (sign bit tests peepholes): (Ditto.).
10015
10016 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
10017
10018         * config/i386/i386.c (ix86_builtins): Replace Prescott New
10019         Instructions in comments with SSE3.
10020         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
10021         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
10022         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
10023         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
10024         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
10025         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
10026         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
10027         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
10028         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
10029         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
10030         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
10031         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
10032         (bdesc_sse_args): Renamed to ...
10033         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
10034         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
10035         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
10036         IX86_BUILTIN_FABSQ.
10037         (bdesc_1arg): Moved to ...
10038         (bdesc_args): Here.
10039         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
10040         Instructions in comments with SSE3.
10041         (ix86_expand_sse_operands_builtin): Renamed to ...
10042         (ix86_expand_args_builtin): This.  Updated.
10043         (ix86_expand_unop1_builtin): Update comments.
10044         (ix86_expand_builtin): Updated.
10045
10046 2008-04-29  Richard Guenther  <rguenther@suse.de>
10047
10048         PR tree-optimization/36078
10049         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
10050         Update virtual SSA form after cleaning up the CFG.
10051
10052 2008-04-29  Richard Guenther  <rguenther@suse.de>
10053
10054         PR middle-end/15255
10055         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
10056
10057 2008-04-29  Richard Guenther  <rguenther@suse.de>
10058
10059         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
10060         (compute_may_aliases): Do not call finalize_ref_all_pointers.
10061         (compute_flow_insensitive_aliasing): Do not treat
10062         PTR_IS_REF_ALL pointers special.
10063         (get_smt_for): Likewise.
10064         (may_alias_p): Re-structure.
10065         (is_escape_site): A ref-all pointer conversion is not an escape site.
10066         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
10067         PTR_IS_REF_ALL pointers special.
10068         * tree-ssa-structalias.h (struct alias_info): Remove
10069         ref_all_symbol_mem_tag field.
10070         (PTR_IS_REF_ALL): Remove.
10071
10072 2008-04-29  Richard Guenther  <rguenther@suse.de>
10073
10074         PR middle-end/36077
10075         * fold-const.c (extract_muldiv_1): In combining division constants
10076         make sure to never overflow.
10077
10078 2008-04-29  Nick Clifton  <nickc@redhat.com>
10079
10080         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
10081
10082 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10083
10084         PR bootstrap/35169
10085         * optc-gen.awk: Work around HP-UX/IA awk bug.
10086
10087 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
10088
10089         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
10090         2008-04-25 commit.
10091
10092 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
10093
10094         PR target/36073
10095         * config/i386/i386.md
10096         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
10097         Change operand 1 predicate to nonimmediate_operand.
10098
10099 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
10100
10101         PR debug/36060
10102         * dwarf2out.c (struct die_struct): Mark as chain_circular through
10103         die_sub field.
10104         * gengtype.c (walk_type, write_func_for_structure): Handle
10105         chain_circular.
10106         * doc/gty.texi: Document chain_circular.
10107
10108 2008-04-28  Richard Guenther  <rguenther@suse.de>
10109
10110         PR tree-optimization/36066
10111         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
10112         SCEV and loop.
10113
10114 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
10115
10116         PR target/36064
10117         * config/i386/i386.md
10118         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
10119         Use match_scratch instead of match_operand for operands 3 and 4.
10120
10121 2008-04-27  Richard Guenther  <rguenther@suse.de>
10122
10123         PR tree-optimization/18754
10124         PR tree-optimization/34223
10125         * tree-pass.h (pass_complete_unrolli): Declare.
10126         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
10127         loop size before and after unconditionally of UL_NO_GROWTH in effect.
10128         Rewrite loop into loop closed SSA form if it is not already.
10129         (tree_unroll_loops_completely): Re-structure to iterate over
10130         innermost loops with intermediate CFG cleanups.
10131         Unroll outermost loops only if requested or the code does not grow
10132         doing so.
10133         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
10134         loops are available.
10135         (tree_vectorize): Instead do so here.
10136         (tree_complete_unroll): Also unroll outermost loops.
10137         (tree_complete_unroll_inner): New function.
10138         (gate_tree_complete_unroll_inner): Likewise.
10139         (pass_complete_unrolli): New pass.
10140         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
10141         uses outside of the loop.
10142         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
10143         form if it is available.
10144         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
10145         * passes.c (init_optimization_passes): Schedule complete inner
10146         loop unrolling pass before the first CCP pass after final inlining.
10147
10148 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
10149
10150         * targhooks.h (default_emutls_var_fields,
10151         default_emutls_var_init): Declare.
10152         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
10153         * target.h (struct gcc_target): Add struct emutls member.
10154         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
10155         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
10156         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
10157         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
10158         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
10159         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
10160         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
10161         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
10162         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
10163         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
10164         emit debug information.
10165         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
10166         * varasm.c: Include targhooks.h.
10167         (emutls_object_section, emutls_tmpl_section): New.
10168         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
10169         (EMUTLS_SEPARATOR): New.
10170         (prefix_name): New.
10171         (get_emutls_object_name): New.
10172         (default_emutls_var_fields): New, broken out of ...
10173         (get_emutls_object_type): ... here.  Adjust to use target hooks.
10174         (get_emutls_init_templ_addr): Adjust to use target hooks.
10175         (emutls_decl): Adjust to use target hooks.
10176         (emutls_finish): Likewise.
10177         (default_emutls_var_init): New, broken out of ...
10178         (assemble_variable): ... here.  Adjust to use target hooks.
10179         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
10180         SECCAT_EMUTLS_TMPL.
10181         * c-common.c (handle_section_attribute): Prevent overriding
10182         sections for emulated tls with special sections.
10183         * config/i386/i386.c (x86_64_elf_select_section): Add
10184         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
10185         (x86_64_elf_unique_section): Likewise.
10186         * config/vxworks.c: Include tree.h.
10187         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
10188         (vxworks_override_options): Set TLS scheme.
10189         * doc/tm.texi (Emulated TLS): New node.
10190
10191 2008-04-26  Simon Baldwin <simonb@google.com>
10192
10193         PR c/35652
10194         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
10195         with propagated string constants.
10196
10197 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
10198
10199         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
10200         constraint for operand 2 when operand 0 is memory operand.
10201         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
10202         operand 0 is memory operand.
10203         (fix_trunc<mode>_i387_with_temp): Ditto.
10204         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
10205         operand 2 when operand 1 is memory operand.
10206         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
10207         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
10208         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
10209         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
10210         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
10211         operands 2,3 and 4 when operand 1 is memory operand.
10212         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
10213         is memory operand.
10214         (fistdi2_floor_with_temp): Ditto.
10215         (fist<mode>2_floor_with_temp): Ditto.
10216         (fistdi2_ceil_with_temp): Ditto.
10217         (fist<mode>2_ceil_with_temp): Ditto.
10218         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
10219
10220 2008-04-26  David Daney  <ddaney@avtrex.com>
10221
10222         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
10223         unspec_volitile.
10224         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
10225         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
10226         UNSPEC_UPDATE_GOT_VERSION): Renumber.
10227         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
10228         (compare_and_swap_12): New insn.
10229         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
10230         * config/mips/mips.c (mips_force_binary): New function.
10231         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
10232         (mips_expand_compare_and_swap_12): New function.
10233         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
10234
10235 2008-04-25  Jan Hubicka  <jh@suse.cz>
10236
10237         PR testsuite/35843
10238         * cfgexpand.c (pass_expand): Turn into RTL pass.
10239         * passes.c (execute_one_pass): Do pass typechecking after execution.
10240         * tree-pass.h (pass_expand): Turn into RTL pass.
10241
10242         * function.h (struct rtl_data): Move here fields
10243         accesses_prior_frames, calls_eh_return, saves_all_registers,
10244         has_nonlocal_goto, has_asm_statement, is_thunk,
10245         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
10246         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
10247         arg_pointer_save_area_init from struct function; turn into bool.
10248         (struct function): Move
10249         calls_eh_return, saves_all_registers, has_nonlocal_goto,
10250         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
10251         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
10252         tail_call_emit, arg_pointer_save_area_init
10253         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
10254         (current_function_returns_struct, current_function_returns_pcc_struct,
10255         current_function_calls_setjmp, current_function_calls_alloca,
10256         current_function_accesses_prior_frames,
10257         current_function_calls_eh_return, current_function_is_thunk,
10258         current_function_stdarg, current_function_profile,
10259         current_function_limit_stack, current_function_uses_pic_offset_table,
10260         current_function_uses_const_pool, current_function_has_nonlocal_label,
10261         current_function_saves_all_registers,
10262         current_function_has_nonlocal_goto,
10263         current_function_has_asm_statement): Remove accesor macros.
10264         * ra-conflict.c (global_conflicts): Update.
10265         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
10266         (suitable_for_tail_call_opt_p): Update.
10267         * builtins.c (expand_builtin_return_addr): Update.
10268         (expand_builtin_setjmp_setup): Update.
10269         (expand_builtin_nonlocal_goto): Update.
10270         * final.c (final_start_function): Update.
10271         (profile_function): Update.
10272         (leaf_function_p): Update.
10273         (only_leaf_regs_used): Update.
10274         * df-scan.c (df_get_exit_block_use_set): Update.
10275         * dojump.c (clear_pending_stack_adjust): Update.
10276         * tree-stdarg.c (gate_optimize_stdarg): Update.
10277         * gimple-low.c (lower_function_body): Update.
10278         * global.c (compute_regsets): Update.
10279         (global_alloc): Update.
10280         * dwarf2out.c (dwarf2out_begin_prologue): Update.
10281         * expr.c (expand_assignment): Update.
10282         * dse.c (dse_step0): Update.
10283         (dse_step1): Update.
10284         * c-decl.c (store_parm_decls): Update.
10285         * local-alloc.c (combine_regs): Update.
10286         (find_free_reg): Update.
10287         * function.c (assign_parms_augmented_arg_list): Update.
10288         (assign_parm_find_data_types): Update.
10289         (assign_parms): Update.
10290         (allocate_struct_function): Update.
10291         (expand_function_start): Update.
10292         (expand_function_end): Update.
10293         (get_arg_pointer_save_area): Update.
10294         (thread_prologue_and_epilogue_insns): Update.
10295         (rest_of_match_asm_constraints): Update.
10296         * stor-layout.c (variable_size): Update.
10297         * gcse.c (gcse_main): Update.
10298         (bypass_jumps): Update.
10299         * gimplify.c (gimplify_function_tree): Update.
10300         * calls.c (emit_call_1): Update.
10301         (expand_call): Update.
10302         * bt-load.c (compute_defs_uses_and_gen): Update.
10303         * except.c (sjlj_assign_call_site_values): Update.
10304         (sjlj_emit_function_enter): Update.
10305         (can_throw_external): Update.
10306         (set_nothrow_function_flags): Update.
10307         (expand_builtin_unwind_init): Update.
10308         (expand_eh_return): Update.
10309         (convert_to_eh_region_ranges): Update.
10310         (output_function_exception_table): Update.
10311         * emit-rtl.c (gen_tmp_stack_mem): Update.
10312         * cfgexpand.c (expand_used_vars): Update.
10313         (tree_expand_cfg): Update.
10314         * cfgcleanup.c (rest_of_handle_jump): Update.
10315         * explow.c (allocate_dynamic_stack_space): Update.
10316         * varasm.c (assemble_start_function): Update.
10317         (force_const_mem): Update.
10318         (mark_constant_pool): Update.
10319         * tree-optimize.c (tree_rest_of_compilation): Update.
10320         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
10321         * tree-cfg.c (notice_special_calls): Update.
10322         (is_ctrl_altering_stmt): Update.
10323         (tree_can_make_abnormal_goto): Update.
10324         (tree_purge_dead_abnormal_call_edges): Update.
10325         * config/alpha/predicates.md: Update.
10326         * config/alpha/alpha.c (alpha_sa_mask): Update.
10327         (alpha_sa_size): Update.
10328         (alpha_does_function_need_gp): Update.
10329         (alpha_expand_prologue): Update.
10330         (alpha_start_function): Update.
10331         (alpha_output_function_end_prologue): Update.
10332         (alpha_expand_epilogue): Update.
10333         * config/frv/frv.c (frv_stack_info): Update.
10334         (frv_expand_epilogue): Update.
10335         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
10336         (s390_register_info): Update.
10337         (s390_frame_info): Update.
10338         (s390_init_frame_layout): Update.
10339         (s390_can_eliminate): Update.
10340         (save_gprs): Update.
10341         * config/spu/spu.c (spu_split_immediate): Update.
10342         (need_to_save_reg): Update.
10343         (spu_expand_prologue): Update.
10344         (spu_expand_epilogue): Update.
10345         * config/sparc/sparc.md: Update.
10346         * config/sparc/sparc.c (eligible_for_return_delay): Update.
10347         (sparc_tls_got): Update.
10348         (legitimize_pic_address): Update.
10349         (sparc_emit_call_insn): Update.
10350         (sparc_expand_prologue): Update.
10351         (output_return): Update.
10352         (print_operand): Update.
10353         (sparc_function_ok_for_sibcall): Update.
10354         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
10355         * config/m32r/m32r.md: Update.
10356         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
10357         (m32r_compute_frame_size): Update.
10358         (m32r_expand_prologue): Update.
10359         (m32r_expand_epilogue): Update.
10360         (m32r_legitimize_pic_address): Update.
10361         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
10362         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
10363         * config/i386/i386.c (ix86_frame_pointer_required): Update.
10364         (gen_push): Update.
10365         (ix86_save_reg): Update.
10366         (ix86_compute_frame_layout): Update.
10367         (ix86_expand_prologue): Update.
10368         (ix86_expand_epilogue): Update.
10369         * config/sh/sh.c (output_stack_adjust): Update.
10370         (calc_live_regs): Update.
10371         (sh5_schedule_saves): Update.
10372         (sh_expand_prologue): Update.
10373         (sh_expand_epilogue): Update.
10374         (sh_setup_incoming_varargs): Update.
10375         (sh_allocate_initial_value): Update.
10376         (sh_get_pr_initial_val): Update.
10377         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
10378         * config/sh/sh.md (label:): Update.
10379         * config/avr/avr.c (out_movhi_mr_r): Update.
10380         * config/crx/crx.h (enum): Update.
10381         * config/xtensa/xtensa.h (along): Update.
10382         * config/stormy16/stormy16.c Update.
10383         (xstormy16_compute_stack_layout): Update.
10384         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
10385         (fr30_expand_prologue): Update.
10386         * config/cris/cris.c (cris_conditional_register_usage): Update.
10387         (cris_reg_saved_in_regsave_area): Update.
10388         (cris_initial_frame_pointer_offset): Update.
10389         (cris_simple_epilogue): Update.
10390         (cris_expand_prologue): Update.
10391         (cris_expand_epilogue): Update.
10392         (cris_expand_pic_call_address): Update.
10393         (cris_asm_output_symbol_ref): Update.
10394         (cris_asm_output_label_ref): Update.
10395         * config/cris/cris.md Update.
10396         * config/iq2000/iq2000.c (compute_frame_size): Update.
10397         (iq2000_expand_epilogue): Update.
10398         * config/mt/mt.h (save_direction): Update.
10399         * config/mn10300/mn10300.c (mn10300_function_value): Update.
10400         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10401         (ia64_secondary_reload_class): Update.
10402         * config/m68k/m68k.c (m68k_save_reg): Update.
10403         (m68k_expand_prologue): Update.
10404         (m68k_expand_epilogue): Update.
10405         (legitimize_pic_address): Update.
10406         * config/rs6000/rs6000.c (rs6000_got_register): Update.
10407         (first_reg_to_save): Update.
10408         (first_altivec_reg_to_save): Update.
10409         (compute_vrsave_mask): Update.
10410         (compute_save_world_info): Update.
10411         (rs6000_stack_info): Update.
10412         (spe_func_has_64bit_regs_p): Update.
10413         (rs6000_ra_ever_killed): Update.
10414         (rs6000_emit_eh_reg_restore): Update.
10415         (rs6000_emit_allocate_stack): Update.
10416         (rs6000_emit_prologue): Update.
10417         (rs6000_emit_epilogue): Update.
10418         (rs6000_output_function_epilogue): Update.
10419         (output_profile_hook): Update.
10420         (rs6000_elf_declare_function_name): Update.
10421         * config/rs6000/rs6000.h (rs6000_args): Update.
10422         * config/rs6000/rs6000.md: Update.
10423         * config/mcore/mcore.c (mcore_expand_prolog): Update.
10424         * config/arc/arc.c (arc_output_function_epilogue): Update.
10425         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
10426         * config/darwin.c (machopic_function_base_name): Update.
10427         * config/score/score3.c (score3_compute_frame_size): Update.
10428         (rpush): Update.
10429         (rpop): Update.
10430         (score3_epilogue): Update.
10431         * config/score/score7.c (score7_compute_frame_size): Update.
10432         (score7_prologue): Update.
10433         (score7_epilogue): Update.
10434         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
10435         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
10436         * config/arm/arm.c (use_return_insn): Update.
10437         (require_pic_register): Update.
10438         (arm_load_pic_register): Update.
10439         (arm_compute_save_reg0_reg12_mask): Update.
10440         (arm_compute_save_reg_mask): Update.
10441         (thumb1_compute_save_reg_mask): Update.
10442         (output_return_instruction): Update.
10443         (arm_output_function_prologue): Update.
10444         (arm_output_epilogue): Update.
10445         (arm_get_frame_offsets): Update.
10446         (arm_expand_prologue): Update.
10447         (thumb_pushpop): Update.
10448         (thumb_exit): Update.
10449         (thumb1_expand_prologue): Update.
10450         (thumb1_expand_epilogue): Update.
10451         (arm_unwind_emit): Update.
10452         (arm_output_fn_unwind): Update.
10453         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
10454         * config/arm/arm.md: Update.
10455         * config/pa/pa.md: Update.
10456         * config/pa/pa.c (legitimize_pic_address): Update.
10457         (compute_frame_size): Update.
10458         (hppa_expand_prologue): Update.
10459         (hppa_expand_epilogue): Update.
10460         (borx_reg_operand): Update.
10461         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
10462         (HARD_REGNO_RENAME_OK): Update.
10463         * config/mips/mips.c (mips_global_pointer): Update.
10464         (mips_save_reg_p): Update.
10465         (mips_compute_frame_info): Update.
10466         (mips_frame_pointer_required): Update.
10467         (mips_expand_prologue): Update.
10468         (mips_expand_epilogue): Update.
10469         (mips_can_use_return_insn): Update.
10470         (mips_reorg_process_insns): Update.
10471         * config/v850/v850.c (compute_register_save_size): Update.
10472         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
10473         * config/mmix/mmix.c (along): Update.
10474         (mmix_expand_epilogue): Update.
10475         * config/bfin/bfin.c (legitimize_pic_address): Update.
10476         (must_save_p): Update.
10477         (stack_frame_needed_p): Update.
10478         (add_to_reg): Update.
10479         (bfin_expand_prologue): Update.
10480         * stmt.c (expand_asm_operands): Update.
10481         * reload1.c (reload): Update.
10482         (init_elim_table): Update.
10483
10484 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
10485
10486         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
10487
10488 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
10489
10490         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
10491         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
10492         (mov<mode>): Removed.
10493         (*movv4sf_internal): Likewise.
10494         (*movv2df_internal): Likewise.
10495
10496 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
10497
10498         * config.gcc (crx-*-elf): Remove deprecation.
10499
10500 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
10501
10502         * config/i386/cygming-crtend.c (register_frame_ctor): Register
10503         __gcc_deregister_frame with atexit.
10504         (deregister_frame_dtor): Remove.
10505
10506 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
10507             Nathan Sidwell  <nathan@codesourcery.com>
10508
10509         * config/rs6000/rs6000.opt (mspe): Remove Var property.
10510         (misel): Likewise.
10511         * config/rs6000/rs6000.h (rs6000_spe): Declare.
10512         (rs6000_isel): Likewise.
10513         * config/rs6000/rs6000.c (rs6000_spe): New variable.
10514         (rs6000_isel): New variable.
10515         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
10516
10517 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
10518
10519         PR c++/35758
10520         * c-common.c (handle_vector_size_attribute): Call
10521         lang_hooks.types.reconstruct_complex_type instead of
10522         reconstruct_complex_type.
10523         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
10524         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
10525         * langhooks.h (struct lang_hooks_for_types): Add
10526         reconstruct_complex_type hook.
10527         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
10528         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
10529
10530 2008-04-24  Richard Guenther  <rguenther@suse.de>
10531
10532         * c-common.h (check_builtin_function_arguments): Declare.
10533         * c-common.c (validate_nargs): New function.
10534         (check_builtin_function_arguments): Likewise.
10535         * c-typeck.c (build_function_call): Call
10536         check_builtin_function_arguments.
10537         * builtins.c (fold_builtin_classify): Remove error reporting code.
10538         (fold_builtin_unordered_cmp): Likewise.
10539         (fold_builtin_1): Likewise.
10540         (fold_builtin_n): Likewise.
10541
10542 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
10543
10544         PR tree-optimization/36008
10545         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
10546         the original op1, rather than delta by step.
10547
10548 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
10549             Sebastian Pop  <sebastian.pop@amd.com>
10550
10551         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
10552         eliminate_local_variables_stmt, eliminate_local_variables,
10553         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
10554         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
10555         of code delimited by two edges in the CFG.
10556         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
10557         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
10558         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
10559         the case of parallelisation of reductions.
10560         (expr_invariant_in_region_p): New.
10561
10562         * tree-flow.h (gather_blocks_in_sese_region): Declared.
10563         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
10564
10565 2008-04-24  Ira Rosen  <irar@il.ibm.com>
10566             Richard Guenther  <rguenther@suse.de>
10567
10568         PR tree-optimization/36034
10569         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
10570         incapable of dealing with loads with gaps.
10571
10572 2008-04-24  Rafael Espindola  <espindola@google.com>
10573
10574         * tree-flow.h (vrp_evaluate_conditional): Change signature.
10575         * tree-ssa-propagate.c (fold_predicate_in): Update call to
10576         vrp_evaluate_conditional.
10577         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
10578         (vrp_evaluate_conditional): Split the cond argument.
10579         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
10580         (simplify_stmt_for_jump_threading): Update call to
10581         vrp_evaluate_conditional.
10582
10583 2008-04-24  Ira Rosen  <irar@il.ibm.com>
10584
10585         PR tree-optimization/35982
10586         * tree-vect-analyze.c (vect_check_interleaving): Check that the
10587         interleaved data-refs are of the same type.
10588
10589 2008-04-24  Danny Smith  <dannysmith@users.net>
10590
10591         * c-format.c (check_format_info_main): Use strncmp rather than a
10592         magic prefix to handle multichar length specs.
10593         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
10594         Don't prefix "I64" and "I32" with '\0'.
10595
10596 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
10597
10598         PR target/36015
10599         * config/i386/i386.c (init_cumulative_args): Don't pass anything
10600         in registers for -m32 only if stdarg_p (fntype).
10601
10602 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
10603
10604         PR rtl-optimization/36006
10605         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
10606         temp to op0 in order to avoid invalid rtx sharing.
10607
10608 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
10609
10610         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
10611         check TREE_INVARIANT.
10612         * tree-gimple.c (is_gimple_address): New.
10613         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
10614         * tree-gimple.h (is_gimple_address): New.
10615         * tree.h (decl_address_invariant_p): New.
10616         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
10617         (build_string): Likewise.
10618         (decl_address_invariant_p): New, from is_gimple_invariant_address.
10619         (tree_invariant_p_1): Likewise.
10620         (save_expr): Use it.
10621         (tree_invariant_p): New.
10622         (skip_simple_arithmetic): Use it.
10623         (stabilize_reference_1): Use it.
10624         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
10625         simplify.
10626         (build1_stat): Drop code to compute TREE_INVARIANT.
10627         (build2_stat): Drop code to compute TREE_INVARIANT.
10628         (build3_stat): Drop code to compute TREE_INVARIANT.
10629         (build4_stat): Drop code to compute TREE_INVARIANT.
10630         (build5_stat): Drop code to compute TREE_INVARIANT.
10631         (build7_stat): Drop code to compute TREE_INVARIANT.
10632         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
10633         * tree.h (struct tree_base): Remove invariant_flag.
10634         (TREE_INVARIANT): Remove.
10635         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
10636         (fold_builtin_expect): Check TREE_CONSTANT.
10637         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
10638         * c-tree.h (c_expr_to_decl): Drop third parameter.
10639         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
10640         (build_c_cast): Don't set TREE_INVARIANT.
10641         (pop_init_level): Don't set TREE_INVARIANT.
10642         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
10643         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
10644         TREE_CONSTANT.
10645         (gimplify_init_constructor): Don't set TREE_INVARIANT.
10646         (gimplify_addr_expr): Adjust comment.
10647         * tree-mudflap.c (mf_build_string):
10648         * print-tree.c (print_node): Don't print TREE_INVARIANT.
10649         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
10650         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
10651         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
10652         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
10653         * langhooks.h (struct lang_hooks): Drop third parameter from
10654         expr_to_decl.
10655
10656 2008-04-23  Richard Guenther  <rguenther@suse.de>
10657
10658         PR tree-optimization/27799
10659         PR tree-optimization/32921
10660         PR tree-optimization/32624
10661         * tree-ssa-structalias.c (merge_smts_into): Only merge the
10662         SMTs aliases and the tag itself into the solution.
10663         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
10664         merge the points-to solution back into the SMT aliases.
10665         (may_alias_p): Use alias_set_subset_of instead of
10666         aliases_conflict_p.  A pointer which points to
10667         memory with alias set zero may access any variable.
10668
10669 2008-04-23  Richard Guenther  <rguenther@suse.de>
10670
10671         * alias.c (alias_set_subset_of): Correctly handle asking
10672         if zero is a subset of an alias set with zero child.
10673         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
10674         (compute_flow_insensitive_aliasing): Correctly walk all
10675         pointers.  Do not unnecessarily union sets.
10676
10677 2008-04-23  Richard Guenther  <rguenther@suse.de>
10678
10679         PR middle-end/36021
10680         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
10681
10682 2008-04-22  Tomas Bily  <tbily@suse.cz>
10683
10684         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
10685         unreachable case.
10686         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
10687         NON_LVALUE_EXPR.
10688         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10689         * tree-ssa-structalias.c (get_constraint_for): Likewise.
10690         * tree-inline.c (estimate_num_insns_1): Likewise.
10691         * varasm.c (const_hash_1, compare_constant, copy_constant)
10692         (compute_reloc_for_constant, output_addressed_constants): Likewise.
10693         * emit-rtl.c (component_ref_for_mem_expr)
10694         (set_mem_attributes_minus_bitpos): Likewise.
10695         * expr.c (highest_pow2_factor, expand_expr_real_1, )
10696         (is_aligning_offset): Likewise.
10697         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
10698         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
10699         * dojump.c (do_jump): Likewise.
10700         * builtins.c (get_pointer_alignment, get_memory_rtx)
10701         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
10702         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
10703
10704 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
10705
10706         PR rtl-optimization/36017
10707         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
10708         expanding the library call.
10709
10710 2008-04-22  Ian Lance Taylor  <iant@google.com>
10711
10712         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
10713         than size_in_bytes.
10714
10715 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
10716
10717         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
10718         of LR/CTR moves for Power6.
10719
10720 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
10721
10722         PR middle-end/36003
10723         * passes.c (init_optimization_passes): Remove
10724         pass_fast_rtl_byte_dce.
10725
10726 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
10727
10728         PR target/29096
10729         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
10730         builtin functions to generate faster code.
10731         (_mm_cvtpu16_ps): Ditto.
10732         (_mm_cvtpi32x2_ps): Ditto.
10733
10734 2008-04-22  Nick Clifton  <nickc@redhat.com>
10735
10736         * common.opt (ftree-loop-distribution): Add Optimization
10737         attribute.
10738
10739         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
10740         (frv_expand_builtin_va_start): Likewise.
10741
10742         * config/arm/arm.c (thumb_find_work_register): Fix location of
10743         argument register count.
10744
10745 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
10746
10747         Support scheduling for ColdFire V1 and V3 microarchitecture.
10748         Improve scheduling of multiplication instructions.
10749
10750         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
10751         (mac): New instruction attribute.
10752         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
10753         (m68k_sched_mac): New variable.
10754         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
10755         Handle cfv1 and cfv3.
10756         (max_insn_size): New static variable.
10757         (struct _sched_ib): New type.
10758         (sched_ib): New static variable.
10759         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
10760         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
10761         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
10762         Update.
10763         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
10764         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
10765         new variables.  Update.
10766         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
10767         Add modeling of cfv3 instruction buffer.  Update.
10768         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
10769         * config/m68k/m68k.h (TUNE_CFV3): New macro.
10770         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
10771         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
10772         a particular reservation applies to.
10773         (type2): Reorganize attribute values.  Rename alu to alu_reg,
10774         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
10775         to mul_l and mul_w.
10776         (cf_ib_*): Simplify description of instruction buffer.
10777         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
10778         (cf_mem): Split into cf_mem1 and cf_mem2.
10779         (cf_v2_move_??): Rename to cfv12_alu_??.
10780         (cf_v2_move_l_??): Rename to cfv12_omove_??.
10781         (cf_v2_mul_??): Remove reservations.
10782         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
10783         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
10784         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
10785         appropriate place.
10786         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
10787         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
10788         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
10789         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
10790         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
10791         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
10792         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
10793         expansions of the above reservations for instructions of sizes
10794         1, 2 and 3 words.
10795
10796 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
10797
10798         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
10799
10800 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
10801
10802         * coverage.c: Include tree-pass.h.
10803         (coverage_counter_alloc): Print da_file_name to the dump file.
10804
10805 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
10806
10807         * sbitmap.c (sbitmap_range_empty_p): New function.
10808         * sbitmap.h (sbitmap_range_empty_p): New function.
10809         * bitmap.h: Now includes obstack.h.
10810
10811 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
10812             Kenneth Zadeck  <zadeck@naturalbridge.com>
10813
10814         * dbgcnt.def (ra_byte_scan): Added.
10815         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
10816         when the last hit happens for a counter.
10817         * timevar.def (TV_DF_BYTE_LR): New variable.
10818         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
10819         * passes.c (pass_fast_rtl_byte_dce): New pass.
10820         * fwprop.c (update_df): Added mode to call df_ref_create.
10821         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10822         DF_REF_EXTRACT_OFFSET.
10823         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
10824         DF_BYTE_LR_OUT, df_byte_lr): New macro.
10825         (df_mm): New enum.
10826         (df_ref_extract): Added mode field.
10827         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
10828         DF_REF_EXTRACT_OFFSET.
10829         (DF_REF_EXTRACT_MODE): New macro.
10830         (df_byte_lr_bb_info): New structure.
10831         (df_print_byte_regset, df_compute_accessed_bytes,
10832         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
10833         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
10834         df_byte_lr_simulate_uses,
10835         df_byte_lr_simulate_artificial_refs_at_top,
10836         df_byte_lr_simulate_artificial_refs_at_end,
10837         df_compute_accessed_bytes): New function.
10838         (df_ref_create): Add parameter.
10839         (df_byte_lr_get_bb_info): New inline function.
10840         * df-scan.c (df_ref_record, df_uses_record,
10841         df_ref_create_structure): Added mode parameter.
10842         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
10843         df_defs_record, df_uses_record, df_get_conditional_uses,
10844         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
10845         df_entry_block_defs_collect, df_exit_block_uses_collect):
10846         Added mode parameter to calls to df_ref_record, df_uses_record,
10847         df_ref_create_structure.
10848         (df_ref_equal_p, df_ref_compare): Added test for modes.
10849         (df_ref_create_structure): Added code to set mode.  Renamed
10850         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10851         DF_REF_EXTRACT_OFFSET.
10852         * df-core.c (df_print_byte_regset): New function.
10853         * df-byte-scan.c: New file.
10854         * df-problems.c (df_rd_transfer_function): Removed unnecessary
10855         calls to BITMAP_FREE.
10856         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
10857         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
10858         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
10859         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
10860         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
10861         df_byte_lr_local_compute, df_byte_lr_init,
10862         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
10863         df_byte_lr_transfer_function, df_byte_lr_free,
10864         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
10865         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
10866         df_byte_lr_simulate_uses,
10867         df_byte_lr_simulate_artificial_refs_at_top,
10868         df_byte_lr_simulate_artificial_refs_at_end): New function.
10869         * dce.c (byte_dce_process_block): New function.
10870         (dce_process_block): au is now passed in rather than computed
10871         locally.  Changed loops that look at artificial defs to not look
10872         for conditional or partial ones, because there never are any.
10873         (fast_dce): Now is able to drive byte_dce_process_block or
10874         dce_process_block depending on the kind of dce being done.
10875         (rest_of_handle_fast_dce): Add parameter to fast_dce.
10876         (rest_of_handle_fast_byte_dce): New function.
10877         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
10878         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
10879
10880 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
10881
10882         PR fortran/35019
10883         * gcc.h: Added fortran options that take arguments to
10884         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
10885         macros.
10886
10887 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
10888
10889         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
10890         scalarization if on the LHS and not a full access.
10891
10892 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10893
10894         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
10895
10896 2008-04-18  Rafael Espindola  <espindola@google.com>
10897
10898         * tree-vrp.c (find_case_label_index): Fix the binary search.
10899         (find_case_label_range): New.
10900         (vrp_visit_switch_stmt): Use find_case_label_range.
10901         (simplify_switch_using_ranges): Use find_case_label_range.
10902
10903 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
10904
10905         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
10906         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
10907
10908 2008-04-18  Tom Tromey  <tromey@redhat.com>
10909
10910         PR libcpp/15500:
10911         * doc/cpp.texi (Implementation-defined behavior): Mention
10912         -finput-charset.
10913
10914 2008-04-18  Ian Lance Taylor  <iant@google.com>
10915
10916         * fold-const.c (pointer_may_wrap_p): New static function.
10917         (fold_comparison): Add another test for pointer overflow.  Use
10918         pointer_may_wrap_p to disable some false positives.
10919
10920 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
10921
10922         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
10923         (fname_as_string): Match updated cpp_interpret_string prototype.
10924         (fix_string_type): Support char16_t* and char32_t*.
10925         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
10926         derivative) nodes.  Register as builtin if C++0x.
10927         (c_parse_error): Support CPP_CHAR{16,32}.
10928         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
10929         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
10930         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
10931         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
10932         CTI_CHAR32_ARRAY_TYPE>: New elements.
10933         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
10934         char32_type_node, signed_char32_type_node, char16_array_type_node,
10935         char32_array_type_node): New defines.
10936         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
10937         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
10938         (lex_string): Support CPP_STRING{16,32}, match updated
10939         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
10940         (lex_charconst): Support CPP_CHAR{16,32}.
10941         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
10942         and CPP_STRING{16,32}.
10943
10944 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
10945
10946         PR bootstrap/35457
10947         * aclocal.m4: Regenerate.
10948         * configure: Regenerate.
10949
10950 2008-04-18  Jan Hubicka  <jh@suse.cz>
10951
10952         * except.c (dw2_size_of_call_site_table,
10953         sjlj_size_of_call_site_table): Use vector API for call_site_record.
10954
10955         * cgraphbuild.c (build_cgraph_edges): Update.
10956         * tree-pass.h: Update comment.
10957         * final.c (leaf_function_p): Update.
10958         (leaf_renumber_regs): Update.
10959         (rest_of_clean_state): Update.
10960         * omp-low.c (expand_omp_parallel): Update.
10961         * ipa-reference.c (analyze_function): Update.
10962         * reorg.c (find_end_label): Update.
10963         (optimize_skip): Update.
10964         (fill_simple_delay_slots): Update.
10965         (fill_simple_delay_slots): Update.
10966         (make_return_insns): Update.
10967         (dbr_schedule): Update.
10968         * gimple-low.c (record_vars_into): Update.
10969         * cfgbuild.c (make_edges): Update.
10970         * function.c (assign_stack_local): Update.
10971         (assign_parm_adjust_stack_rtl): Update.
10972         (locate_and_pad_parm): Update.
10973         (allocate_struct_function): Do not initialize stack_alignment_needed
10974         and preferred_stack_boundary here.
10975         (stack_protect_prologue): Update.
10976         (stack_protect_epilogue): Update.
10977         (expand_function_start): Initialize stack_alignment_needed,
10978         preferred_stack_boundary and max_jumptable_ents.
10979         (expand_function_end): Update.
10980         (free_after_compilation): Do not NULLify epilogue_delay_list.
10981         * function.h (struct rtl_data): Add stack_protect_guard,
10982         stack_alignment_needed,
10983         preferred_stack_boundary, epilogue_delay_list.
10984         (struct function): Remove value_histograms, stack_alignment_needed,
10985         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
10986         last_label_uid,
10987         unexpanded_var_list, stack_protect_guard.
10988         (current_function_epilogue_delay_list): Remove.
10989         * ipa-type-escape.c (analyze_function): Update.
10990         * gimplify.c (pop_gimplify_context): Update comment.
10991         * calls.c (expand_call): Update.
10992         (emit_library_call_value_1): Update.
10993         * except.c (set_nothrow_function_flags): Update.
10994         * cfgexpand.c (get_decl_align_unit): Update.
10995         (create_stack_guard): Update.
10996         (estimated_stack_frame_size): Update.
10997         (expand_used_vars): Update.
10998         (tree_expand_cfg): Free histogram earliers, init expansion variables.
10999         * explow.c (allocate_dynamic_stack_space): Update.
11000         * tree-ssa-live.c (remove_unused_locals): Update.
11001         * varasm.c (mark_constant_pool): Update.
11002         * tree-inline.c (remap_decls): Update.
11003         (initialize_cfun): Update.
11004         (declare_return_variable): Update.
11005         (inline_forbidden_p): Update.
11006         (expand_call_inline): Update.
11007         (declare_inline_vars): Update.
11008         (tree_function_versioning): Update.
11009         * tree-flow.h (value_histograms): New.
11010         (VALUE_HISTOGRAMS): New macro.
11011         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
11012         last_label_uid.
11013         * tree-cfg.c (set_bb_for_stmt): Update.
11014         (replace_by_duplicate_decl): Update.
11015         (move_block_to_fn): Update.
11016         (new_label_mapper): Update.
11017         (dump_function_to_file): Update.
11018         * ipa-struct-reorg.c (build_data_structure): Update.
11019         * cfgrtl.c (print_rtl_with_bb): Update.
11020         * reload1.c (reload): Update.
11021         (reload): Update.
11022         * config/i386/i386.c (setup_incoming_varargs_64,
11023         ix86_compute_frame_layout): Update.
11024         * config/arc/arc.c (arc_output_function_epilogue): Update.
11025
11026 2008-04-18  Marius Strobl <marius@FreeBSD.org>
11027
11028         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
11029         for FreeBSD as well.
11030         * gthr-posix95.h: Likewise.
11031
11032 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
11033
11034         PR rtl-optimization/35838
11035         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
11036         out the byte offset of the first subreg.
11037
11038 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
11039
11040         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
11041         to split_ti instead of three separate calls with single member arrays.
11042         (subti3 splitter): Ditto.
11043         (adddi3 splitter): Ditto with split_di.
11044         (subdi3 splitter): Ditto.
11045         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
11046         two separate calls with single member arrays.  Swap match_dup
11047         operands 1 and 2 to better fit into the array.
11048         (negdi2 splitter): Ditto with split_di.
11049         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
11050         two separate calls with single member arrays.  Swap match_dup operands
11051         6 and 7 to better fit into the array.
11052
11053 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
11054
11055         * config/i386/i386.c (sse_builtin_type): New.
11056         (bdesc_sse_args): Likewise.
11057         (bdesc_sse_3arg): Removed.
11058         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
11059         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
11060         IX86_BUILTIN_ROUNDPS.
11061         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
11062         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
11063         IX86_BUILTIN_ROUNDPS.
11064         (ix86_expand_sse_4_operands_builtin): Removed.
11065         (ix86_expand_sse_operands_builtin): New.
11066         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
11067         and CODE_FOR_sse4_1_roundps.
11068         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
11069         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
11070
11071 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
11072
11073         PR target/35907
11074         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
11075         regs before frame pop when needed.  If use_backchain_to_restore_sp
11076         then load backchain into a temp reg to restore vr and vrsave.  Add
11077         code to restore vr after frame pop if possible.
11078
11079 2008-04-17  Richard Guenther  <rguenther@suse.de>
11080
11081         * tree-vn.c (expressions_equal_p): Do not check type
11082         equality or compatibility before calling operand_equal_p.
11083         * fold-const.c (operand_equal_p): Check equivalence of
11084         integer constants before bailing out due to signedness or
11085         precision differences.
11086         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
11087         spurious differences in type qualification.  Ignore types
11088         for COMPONENT_REFs at all.
11089
11090 2008-04-17  Christian Bruel  <christian.bruel@st.com>
11091
11092         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
11093         msw_skip comparison.
11094
11095 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
11096
11097         PR c/35739
11098         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
11099         reg type.
11100
11101         PR tree-optimization/35899
11102         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
11103         rather than TREE_OPERAND.
11104
11105 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
11106
11107         PR target/35944
11108         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
11109         temporary registers.  Change operand predicate to general_operand.
11110         (remainderxf3): Ditto.
11111
11112 2008-04-16  Richard Guenther  <rguenther@suse.de>
11113
11114         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
11115         * tree-affine.c (aff_combination_expand): Look through some
11116         conversions.
11117
11118 2008-04-15  Doug Kwan  <dougkwan@google.com>
11119
11120         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
11121         for hex printing.
11122         * tree-pretty-print.c (dump_generic_node): Ditto.
11123         * final.c (output_addr_const): Ditto.
11124         * dwarf2out.c (output_cfi): Ditto.
11125         * c-pretty-print.c (pp_c_integer_constant): Ditto.
11126         * print-rtl.c (print_rtx): Ditto.
11127         * print-tree.c (print_node_brief, print_node): Ditto.
11128         * c-common.c (match_case_to_enum_1): Ditto.
11129         * sched-vis.c (print_value): Ditto.
11130         * config/i386/i386.c (print_operand): Cast to long unsigned int
11131         for hex printing.
11132
11133 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
11134         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
11135         MS Windows VirtualProtect function.
11136
11137 2008-04-15  Jan Hubicka  <jh@suse.cz>
11138
11139         * gengtype.c (write_root): Param_is argument is OK.
11140         * expr.c (expand_expr_real_1): Update call of get_exception_*.
11141         * function.h: Include varray.h
11142         (rtl_eh): New stucture based on except.c one.
11143         (call_site_record): New forward declaration and vector type.
11144         * calls.c (emit_call_1): Do not call
11145         note_current_region_may_contain_throw.
11146         * except.c (eh_status): Remove cur_region, try_region since they are
11147         unused.
11148         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
11149         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
11150         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
11151         Remove call_site_data_used, call_site_data_size.
11152         Turn call_site_record into vector in function.h.
11153         (note_current_region_may_contain_throw): Remove.
11154         (get_exception_pointer, get_exception_filter): Do not take struct
11155         function argument; update.
11156         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
11157         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
11158         build_post_landing_pads, dw2_build_landing_pads,
11159         sjlj_assign_call_site_values, sjlj_mark_call_sites,
11160         sjlj_emit_function_enter, sjlj_emit_function_enter,
11161         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
11162         sjlj_build_landing_pads, finish_eh_generation,
11163         remove_exception_handler_label, remove_eh_handler,
11164         maybe_remove_eh_handler, add_reachable_handler,
11165         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
11166         add_action_record, collect_one_action_chain, add_call_site,
11167         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
11168         sjlj_output_call_site_table, output_function_exception_table,
11169         * except.h (note_current_region_may_contain_throw): Remove
11170         (get_exception_pointer, get_exception_filter): Do not take struct
11171         function argument.
11172         * Makefile.in (GTFILES): Put varargs before struct function.
11173
11174 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
11175
11176         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
11177         punt for STRING_CST.
11178         (get_constraint_for): Deal with STRING_CST here instead.
11179
11180 2008-04-15  Richard Guenther  <rguenther@suse.de>
11181
11182         * tree-ssa-propagate.c (substitute_and_fold): Substitute
11183         statements in a basic-block with a backward walk.  Do not
11184         substitute into dead statements but instead remove those.
11185
11186 2008-04-15  Richard Guenther  <rguenther@suse.de>
11187
11188         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
11189         to zero, thus disable creation of SFTs.
11190
11191 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
11192
11193         * tree-predcom.c (suitable_reference_p): Return false if the
11194         reference can throw.
11195
11196 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
11197
11198         PR c/35751
11199         * c-decl.c (finish_decl): If extern or static var has variable
11200         size, set TREE_TYPE (decl) to error_mark_node.
11201
11202 2008-04-15  Rafael Espindola  <espindola@google.com>
11203
11204         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
11205         variable arg1.
11206
11207 2008-04-15  Richard Guenther  <rguenther@suse.de>
11208
11209         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
11210         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
11211         (visit_reference_op_load): Do walk vuse-vdef chains on
11212         vn_reference_lookup.
11213         (visit_reference_op_store): But do not here.
11214         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
11215         vn_reference_lookup.
11216         (vn_lookup_with_vuses): But do so here.
11217
11218 2008-04-14  Ian Lance Taylor  <iant@google.com>
11219
11220         * fold-const.c (fold_overflow_warning): Remove assertion.
11221
11222 2008-04-15  Ben Elliston  <bje@au.ibm.com>
11223
11224         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
11225         temp1 local variables.
11226
11227 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
11228
11229         PR target/35661
11230         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
11231         ".text.unlikely" section as executable.
11232
11233 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
11234
11235         * config/ia64/ia64.c (rtx_needs_barrier): Handle
11236         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
11237         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
11238         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
11239         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
11240         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
11241         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
11242
11243 2008-04-14  Ian Lance Taylor  <iant@google.com>
11244
11245         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
11246         * fold-const.c (fold_comparison): If appropriate, test
11247         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
11248         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
11249         reassociating a pointer type.
11250         * doc/invoke.texi (Optimize Options): Document that
11251         -fstrict-overflow applies to pointer wraparound.
11252
11253 2008-04-13  Jan Hubicka  <jh@suse.cz>
11254
11255         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
11256
11257 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
11258
11259         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
11260         we are going to "save the world".
11261
11262 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
11263
11264         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
11265         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
11266         operand 0 constraint, not "=".
11267
11268 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
11269
11270         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
11271
11272 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
11273
11274         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
11275         of size of positions_needed * CHAR_BIT.
11276
11277 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
11278
11279         PR middle-end/35897
11280         * dse.c (store_info): Change positions_needed to unsigned
11281         HOST_WIDE_INT.
11282         (lowpart_bitmask): New.
11283         (record_store): Cast to unsigned HOST_WIDE_INT for
11284         positions_needed.  Assert width <= size of positions_needed *
11285         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
11286         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
11287         lowpart_bitmask to set mask.
11288
11289 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
11290
11291         * config/bfin/constraints.md: New file.
11292         * config/bfin/bfin.md: Include it.
11293         (adddi3): Use satisfies_constraint functions instead of the old macros.
11294         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
11295         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
11296         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
11297         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
11298         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
11299         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
11300         EXTRA_CONSTRAINT): Delete.
11301         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
11302         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
11303         of the old macros.
11304         * config/bfin/bfin.c: Include "tm-constrs.h".
11305         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
11306         Use satisfies_constraint functions instead of the old macros.
11307         * doc/md.texi (Blackfin Constraints): Update file name reference.
11308
11309 2008-04-11  Richard Guenther  <rguenther@suse.de>
11310
11311         PR tree-optimization/35869
11312         * tree-vrp.c (execute_vrp): Move switch statement update after
11313         jump threading.  Schedule another cfg cleanup run.
11314
11315 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
11316
11317         PR c/35744
11318         * attribs.c (decl_attributes): Return early on errorneous node.
11319
11320 2008-04-10  Oleg Ryjkov  <olegr@google.com>
11321
11322         * tree.h (struct tree_base): Added a new flag default_def_flag.
11323         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
11324
11325 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
11326
11327         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
11328
11329 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11330
11331         PR target/35768
11332         * pa.md: Define mode iterator P.  Define mode attribute dwc.
11333         (dcacheflush): Update pattern to use iterator P and attribute dwc.
11334         (icacheflush): Likewise.
11335         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
11336         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
11337
11338 2008-04-11  Ben Elliston  <bje@au.ibm.com>
11339
11340         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
11341
11342 2008-04-10  Rafael Espindola  <espindola@google.com>
11343
11344         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
11345         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
11346         (extract_range_from_expr): The same.
11347
11348 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
11349
11350         * config/mips/mips.md (GPR2): New mode iterator.
11351         (seq): Add comment.
11352         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
11353         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
11354         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
11355         Rewrite these to take two modes, the mode of comparison and the
11356         mode of the destination.
11357         * config/mips/mips.c (mips_expand_scc): Instead of having
11358         paradoxical subreg as destination, expand "narrowing" scc if mode
11359         of comparison is SI and target is requested in DI mode.
11360         (mips_emit_int_order_test): Update comment.  Make mode of
11361         comparison match CMP0 rather than TARGET.  When creating inverse
11362         target use mode of TARGET.
11363
11364 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
11365
11366         * gcov-dump.c (tag_summary): Only print summaries for the first
11367         GCOV_COUNTERS_SUMMABLE counters.
11368
11369 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
11370
11371         * config/i386/i386.md (absneg): New code iterator.
11372         (absnegprefix): New code attribute.
11373         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
11374         patterns using absneg code iterator.
11375         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
11376         using absneg code iterator.
11377         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
11378         *neg<mode>2 patterns using absneg code iterator.
11379         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
11380         *negextendsfdf2 patterns using absneg code iterator.
11381         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
11382         *negextendsfxf2 patterns using absneg code iterator.
11383         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
11384         *negextendsfdf2 patterns using absneg code iterator.
11385         * config/i386/sse.md (<code><mode>2): Macroize expander from
11386         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
11387
11388 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
11389
11390         * config/s390/s390.h: Remove the remains of the recent search
11391         & replace action of current_function_outgoing_args_size.
11392
11393 2008-04-10  Ira Rosen  <irar@il.ibm.com>
11394
11395         PR tree-optimization/35821
11396         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
11397         NEW_STMT_LIST is not NULL.
11398
11399 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
11400
11401         PR libstdc++/35597
11402         * toplev.c (process_options): Remove -ffunction-sections debugging
11403         warning.
11404
11405 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
11406
11407         PR middle-end/PR28690
11408         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
11409         than gen_rtx_fmt_ee to perform more canonicalizations.
11410
11411 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11412
11413         PR driver/35665
11414         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
11415
11416 2008-04-09  Richard Guenther  <rguenther@suse.de>
11417
11418         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
11419         (dump_function_to_file): Dump function arguments with types.
11420
11421 2008-04-08  Richard Guenther  <rguenther@suse.de>
11422
11423         * fold-const.c (fold_widened_comparison): Do not allow
11424         sign-changes that change the result.
11425
11426 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
11427
11428         PR target/35839
11429         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
11430         kinds of indirect references.
11431
11432 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
11433
11434         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
11435         GNU Fortran language string.
11436
11437 2008-04-08  Rafael Espindola  <espindola@google.com>
11438
11439         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
11440         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
11441         * tree.h (tree_call_nonnegative_warnv_p): New.
11442
11443 2008-04-08  Jan Hubicka  <jh@suse.cz>
11444
11445         * function.c (free_after_compilation): Clear out regno_reg_rtx
11446         pointer.
11447
11448 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
11449
11450         Revert
11451         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
11452
11453         PR middle-end/PR28690
11454         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
11455         same precedence as REG_POINTER and MEM_POINTER operands.
11456
11457 2008-04-08  Richard Guenther  <rguenther@suse.de>
11458
11459         PR middle-end/35834
11460         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
11461         for adding index to base.
11462
11463 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
11464
11465         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
11466         (MINGW_ENABLE_EXECUTE_STACK): New.
11467         (IN_LIBGCC2): For libgcc include windows.h file for
11468         function declarations.
11469
11470 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
11471
11472         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
11473         and tem2 if tem1 is not a REG or MULT.
11474
11475 2008-04-08  Jan Hubicka  <jh@suse.cz>
11476
11477         * function.h (incomming_args): Break out of struct function.
11478         (function_subsections): Break out of struct function.
11479         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
11480         return_rtx and hard_reg_initial_vals from struct function.
11481         Kill inl_max_label_num.
11482         (current_function_pops_args, current_function_args_info,
11483         current_function_args_size, current_function_args_size,
11484         current_function_pretend_args_size,
11485         current_function_outgoing_args_size,
11486         current_function_internal_arg_pointer, current_function_return_rtx):
11487         Kill compatibility accestor macros.
11488         * builtins.c (expand_builtin_apply_args_1): Update.
11489         (expand_builtin_next_arg): Update.
11490         * df-scan.c (df_get_call_refs): Update.
11491         * dbxout.c (dbxout_function_end): Update.
11492         * dwarf2out.c (dwarf2out_switch_text_section): Update.
11493         (output_line_info): Update.
11494         (secname_for_decl): Update.
11495         (dwarf2out_var_location): Update.
11496         * function.c (free_after_compilation): Update.
11497         (assign_parm_find_stack_rtl): Update.
11498         (assign_parms): Update.
11499         (expand_dummy_function_end): Update.
11500         (expand_function_end): Update.
11501         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
11502         (expand_call): Update.
11503         (emit_library_call_value_1): Update.
11504         (store_one_arg): Update.
11505         * varasm.c (initialize_cold_section_name): Update.
11506         (unlikely_text_section): Update.
11507         (unlikely_text_section_p): Update.
11508         (assemble_start_function): Update.
11509         (assemble_end_function): Update.
11510         (default_section_type_flags): Update.
11511         (switch_to_section): Update.
11512         * integrate.c (set_decl_abstract_flags): Update.
11513         (get_hard_reg_initial_val): Update.
11514         (has_hard_reg_initial_val): Update.
11515         (allocate_initial_values): Update.
11516         * resource.c (init_resource_info): Update.
11517         * config/alpha/alpha.c (NUM_ARGS): Update.
11518         (direct_return): Update.
11519         (alpha_va_start): Update.
11520         (alpha_sa_size): Update.
11521         (alpha_initial_elimination_offset): Update.
11522         (alpha_expand_prologue): Update.
11523         (alpha_start_function): Update.
11524         (alpha_expand_epilogue): Update.
11525         (unicosmk_initial_elimination_offset):
11526         * config/alpha/alpha.md (call expander): Update.
11527         * config/s390/s390.c (s390_register_info): Update.
11528         (s390_register_info): Update.
11529         (s390_frame_info): Update.
11530         (s390_initial_elimination_offset): Update.
11531         (s390_build_builtin_va_list): Update.
11532         (s390_va_start): Update.
11533         * config/spu/spu.c (direct_return): Update.
11534         (spu_expand_prologue): Update.
11535         (spu_initial_elimination_offset): Update.
11536         (spu_build_builtin_va_list): Update.
11537         (spu_va_start): Update.
11538         * config/sparc/sparc.c (sparc_init_modes): Update.
11539         (sparc_compute_frame_size): Update.
11540         (function_value): Update.
11541         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
11542         * config/i386/i386.md (return expander): Update.
11543         * config/i386/i386.c (ix86_va_start): Update.
11544         (ix86_can_use_return_insn_p): Update.
11545         (ix86_compute_frame_layout): Update.
11546         (ix86_expand_epilogue): Update.
11547         * config/sh/sh.c (output_stack_adjust): Update.
11548         (calc_live_regs): Update.
11549         (sh_expand_prologue): Update.
11550         (sh_builtin_saveregs): Update.
11551         (sh_va_start): Update.
11552         (initial_elimination_offset): Update.
11553         (sh_allocate_initial_value): Update.
11554         (sh_function_ok_for_sibcall): Update.
11555         (sh_get_pr_initial_val): Update.
11556         * config/sh/sh.md (return expander): Update.
11557         * config/avr/avr.c (frame_pointer_required_p): UPdate.
11558         * config/crx/crx.c (crx_compute_frame): UPdate.
11559         (crx_initial_elimination_offset): UPdate.
11560         * config/xtensa/xtensa.c (compute_frame_size): Update
11561         (xtensa_builtin_saveregs): Update.
11562         (xtensa_va_start): Update.
11563         (order_regs_for_local_alloc): Update.
11564         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
11565         (xstormy16_expand_builtin_va_start): Update.
11566         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
11567         * config/m68hc11/m68hc11.md (return expanders): Update.
11568         * config/m68hc11/m68hc11.c (expand_prologue): Update.
11569         (expand_epilogue): Update.
11570         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
11571         (cris_simple_epilogue): Update.
11572         (cris_expand_prologue): Update.
11573         (cris_expand_epilogue): Update.
11574         * config/iq2000/iq2000.c (iq2000_va_start): Update.
11575         (compute_frame_size): Update.
11576         * config/mt/mt.c (mt_compute_frame_size): Update.
11577         * config/mn10300/mn10300.c (expand_prologue): Update.
11578         (expand_epilogue): Update.
11579         (initial_offset): Update.
11580         (mn10300_builtin_saveregs):
11581         * config/mn10300/mn10300.md (return expander): Update.
11582         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
11583         (ia64_initial_elimination_offset): Update.
11584         (ia64_initial_elimination_offset): Update.
11585         (ia64_expand_prologue): Update.
11586         * config/m68k/m68k.md (return expander): Update.
11587         * config/rs6000/rs6000.c (rs6000_va_start): Update.
11588         (rs6000_stack_info): Update.
11589         * config/mcore/mcore.c (layout_mcore_frame): Update.
11590         (mcore_expand_prolog): Update.
11591         * config/arc/arc.c (arc_compute_frame_size): Update.
11592         * config/score/score3.c (score3_compute_frame_size): Update.
11593         * config/score/score7.c (score7_compute_frame_size): Update.
11594         * config/arm/arm.c (use_return_insn): Update.
11595         (thumb_find_work_register): Update.
11596         (arm_compute_save_reg_mask): Update.
11597         (arm_output_function_prologue): Update.
11598         (arm_output_epilogue): Update.
11599         (arm_size_return_regs): Update.
11600         (arm_get_frame_offsets): Update.
11601         (arm_expand_prologue): Update.
11602         (thumb_exit): Update.
11603         (thumb_unexpanded_epilogue): Update.
11604         (thumb1_output_function_prologue): Update.
11605         * config/pa/pa.md (return expander): Update.
11606         * config/pa/pa.c (compute_frame_size): Update.
11607         (hppa_builtin_saveregs): Update.
11608         * config/mips/mips.c (mips_va_start): Update.
11609         (mips16_build_function_stub): Update.
11610         (mips_compute_frame_info): Update.
11611         (mips_restore_gp): Update.
11612         (mips_output_function_prologue): Update.
11613         (mips_expand_prologue): Update.
11614         * config/v850/v850.c (compute_frame_size): Update.
11615         (expand_prologue): * config/mmix/mmix.c (along): update.
11616         (mmix_initial_elimination_offset): update.
11617         (mmix_reorg): update.
11618         (mmix_use_simple_return): update.
11619         (mmix_expand_prologue): update.
11620         (mmix_expand_epilogue): Update.
11621         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
11622         (emit_link_insn): Update.
11623
11624 2008-04-08  Anatoly Sokolov <aesok@post.ru>
11625
11626         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
11627         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
11628         instructions.
11629         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
11630         atmega103 device.
11631
11632 2008-04-07  Jan Hubicka  <jh@suse.cz>
11633
11634         * function.h (rtl): Rename to x_rtl.
11635         (crtl): New define.
11636         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11637         frame_offset, stack_check_probe_note, arg_pointer_save_area,
11638         used_temp_slots avail_temp_slots, temp_slot_level,
11639         nonlocal_goto_handler_labels): Update accesstors.
11640         (rtl): New global variable.
11641         (struct function): Move some fileds to rtl_data.
11642         (get_arg_pointer_save_area): Update prototype.
11643         * builtins.c (expand_builtin_setjmp_receiver): Update call of
11644         get_arg_pointer_save_area.
11645         * expr.c (init_expr): Update
11646         * function.c (get_frame_size): Update
11647         (assign_stack_local): Update
11648         (expand_function_end): Update.
11649         (get_art_pointer_save_area): Update
11650         * function.h
11651         * emit-rtl.c (rtl): Declare.
11652         (regno_reg_rtx): Declare.
11653         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11654         Update.
11655         (gen_reg_rtx): Update.
11656         * varasm.c (n_deferred_constatns): Update accestor.
11657         (init_varasm_status): Do not allocate varasm_status.
11658         (force_const_mem, get_pool_size, output_constant_pool): Update.
11659         * stmt.c (force_label_rtx): Do not use x_ prefixes.
11660         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11661         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
11662         * sparc/sparc.h (INIT_EXPANDERS): Update.
11663         * ia64/ia64.h (INIT_EXPANDERS): Update.
11664
11665 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
11666
11667         * reload.c (push_secondary_reload): Add missing break to for loop.
11668
11669 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
11670
11671         PR middle-end/PR28690
11672         * rtlanal.c: Update copyright years.
11673         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
11674         as REG_POINTER and MEM_POINTER operands.
11675         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
11676         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
11677         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
11678         * gcse.c: Update copyright years.
11679         (pre_delete): Call gen_reg_rtx_and_attrs.
11680         (hoist_code): Likewise.
11681         (build_store_vectors): Likewise.
11682         (delete_store): Likewise.
11683         * loop-invariant.c (move_invariant_reg): Likewise.
11684         Update copyright years.
11685
11686 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
11687
11688         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
11689         control string instead of quoted.
11690
11691 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
11692
11693         * doc/rtl.texi: Rewrite of subreg section.
11694
11695 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
11696
11697         PR/35842
11698         * config/i386/i386.c (legitimize_pic_address): Add treating
11699         of dllimport SYM_REF's.
11700         (legitimize_dllimport_symbol): Add prototype.
11701
11702 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11703
11704         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
11705         reference in constructor with non self-referential type.
11706
11707 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11708
11709         Removal of Return with Depressed Stack Pointer support
11710         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
11711         (ECF_SP_DEPRESSED): Likewise.
11712         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
11713         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
11714         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11715         (expand_call): Do not test ECF_SP_DEPRESSED.
11716         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11717         * function.c (keep_stack_depressed): Delete.
11718         (handle_epilogue_set): Likewise.
11719         (update_epilogue_consts): Likewise.
11720         (emit_equiv_load): Likewise.
11721         (thread_prologue_and_epilogue_insns): Remove support for Return with
11722         Depressed Stack Pointer.
11723         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11724
11725 2008-04-06  Richard Guenther  <rguenther@suse.de>
11726
11727         PR tree-optimization/35400
11728         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
11729         information from SSA_NAMEs.
11730
11731 2008-04-06  Anatoly Sokolov <aesok@post.ru>
11732
11733         * config/avr/avr.h (avr_mega_p): Remove declaration.
11734         (AVR_MEGA): Remove macro.
11735         * config/avr/avr.c (avr_mega_p): Remove variable.
11736         (avr_override_options): Remove inicializion of avr_mega_p.
11737         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11738         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11739         (avr_jump_mode): (Ditto.).
11740         (avr_output_progmem_section_asm_op): (Ditto.).
11741         (avr_asm_init_sections): (Ditto.).
11742         (avr_asm_init_sections): (Ditto.).
11743         (avr_rtx_costs): (Ditto.).
11744         * config/avr/avr.md: (Ditto.).
11745         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
11746         '__AVR_MEGA__'.
11747
11748 2008-04-06  Richard Guenther  <rguenther@suse.de>
11749
11750         PR tree-optimization/35842
11751         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
11752         is_gimple_invariant_address.
11753
11754 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11755
11756         * gcc.c (default_compilers): Sync Fortran extensions list with
11757         that in fortran/lang-specs.h.
11758         * doc/invoke.texi: Likewise.
11759         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
11760         * dwarf2out.c (gen_compile_unit_die): Likewise.
11761
11762 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
11763
11764         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
11765
11766 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
11767
11768         PR target/12329
11769         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
11770         attribute is used for nested functions.
11771
11772 2008-04-05  Jan Hubicka  <jh@suse.cz>
11773
11774         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
11775
11776         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
11777         letter argument.
11778         (dump_files): Update.
11779         (enable_rtl_dump_file): Do not accept letter argument.
11780         * tree-pass.h (dump_file_info): Remove letter argument.
11781         * toplev.c (decode_d_option): Update -da handling.
11782         * toplev.h (enable_rtl_dump_file): Update prototype.
11783         * passes.c (register_one_dump_file): Do not accept IPA argument; work
11784         it out based on pass type.
11785         (register_dump_files_1): Likewise.
11786         (init_optimization_passes): Update register_one_dump_file calls.
11787         (execute_one_pass): Sanity check that IPA passes are called at IPA
11788         level and RTL passes at RTL level.
11789         (execute_pass_list): IPA pass can not be after or subpass of
11790         GIMPLE/RTL pass.
11791         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
11792         disallov RTL subpasses of IPA subpasses.
11793
11794 2008-04-05  Ben Elliston  <bje@au.ibm.com>
11795
11796         * tree-cfg.c (need_fake_edge_p): Return false for calls to
11797         builtins that return exactly once and do not throw. Cache call to
11798         call_expr_flags.
11799
11800 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
11801
11802         PR rtl-optimization/34916
11803         PR middle-end/35519
11804         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
11805         between instruction pairs.
11806
11807 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
11808
11809         * doc/invoke.texi: Document -mbitops for SH.
11810         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
11811         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
11812         * config/sh/sh.c (print_operand): Add %t operand code.
11813         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
11814         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
11815         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
11816         (extendqihi2): Likewise.
11817         (movqi_i): Likewise.
11818         (insv): Use bset, bclr and bst instructions for SH2A if possible.
11819         (extv): Use bld instruction for SH2A if possible.
11820         (extzv): Likewise.
11821         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
11822         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
11823         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
11824         (bset.b, bclr.b): Define peepholes.
11825         * config/sh/sh.opt (mbitops): New option.
11826
11827 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
11828
11829         PR target/35620
11830         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
11831         and view convert expression.
11832
11833 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
11834
11835         PR target/35364
11836         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
11837
11838 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
11839
11840         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
11841
11842         * config/i386/cpuid.h (bit_AES): New.
11843         (bit_PCLMUL): Likewise.
11844
11845         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
11846         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
11847         SSE2 if AES or PCLMUL is enabled.
11848         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
11849         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11850         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
11851         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
11852         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
11853         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
11854         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11855         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
11856         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
11857         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
11858         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
11859         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
11860         __builtin_ia32_aeskeygenassist128 and
11861         __builtin_ia32_pclmulqdq128.
11862         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
11863         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
11864         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
11865
11866         * config/i386/i386.h (TARGET_AES): New.
11867         (TARGET_PCLMUL): Likewise.
11868         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
11869
11870         * config/i386/i386.md (UNSPEC_AESENC): New.
11871         (UNSPEC_AESENCLAST): Likewise.
11872         (UNSPEC_AESDEC): Likewise.
11873         (UNSPEC_AESDECLAST): Likewise.
11874         (UNSPEC_AESIMC): Likewise.
11875         (UNSPEC_AESKEYGENASSIST): Likewise.
11876         (UNSPEC_PCLMUL): Likewise.
11877
11878         * config/i386/i386.opt (maes): New.
11879         (mpclmul): Likewise.
11880
11881         * config/i386/sse.md (aesenc): New pattern.
11882         (aesenclast): Likewise.
11883         (aesdec): Likewise.
11884         (aesdeclast): Likewise.
11885         (aesimc): Likewise.
11886         (aeskeygenassist): Likewise.
11887         (pclmulqdq): Likewise.
11888
11889         * config/i386/wmmintrin.h: New.
11890
11891         * doc/extend.texi: Document AES and PCLMUL built-in function.
11892
11893         * doc/invoke.texi: Document -maes and -mpclmul.
11894
11895 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
11896
11897         * function.c (free_after_parsing): Replace with
11898         cxx_push_function_context from C++ front-end.
11899         (allocate_struct_function): Don't call langhook.
11900         * langhooks.h (struct lang_hooks_for_functions): Delete.
11901         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
11902         member "function".
11903         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
11904         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
11905         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
11906         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
11907         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
11908         remove LANG_HOOKS_FUNCTION_INITIALIZER.
11909         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
11910
11911         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
11912         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
11913
11914 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
11915
11916         PR c/35440
11917         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
11918         for all types.
11919
11920 2008-04-04  Richard Guenther  <rguenther@suse.de>
11921
11922         PR middle-end/35823
11923         * fold-const.c (optimize_minmax_comparison): Use the correct
11924         type for the constant in the simplified comparison.
11925
11926 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
11927
11928         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
11929         Pass L2 size as "--param l2-cache-size" to the compiler.
11930         (decode_l2_cache): New function to decode L2 cache parameters using
11931         0x8000006 extended cpuid function.
11932         (detect_caches_amd): Determine parameters of L2 cache using
11933         decode_l2_caches function.
11934         (decode_caches_intel): Decode L2 cache parameters.
11935         (detect_caches_intel): Determine L2 cache parameters using
11936         decode_caches_intel and decode_l2_caches functions.
11937
11938 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
11939
11940         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
11941         secondary input reload for subword loads from the constant pool.
11942
11943 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
11944
11945         PR target/35713
11946         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
11947           constants of the appropriate size for runtime calculations.
11948
11949         PR c/35712
11950         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
11951           decimal-float literal constant zero.
11952
11953 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
11954
11955         PR c/35738
11956         * c-parser.c (c_parser_omp_atomic): Call
11957         default_function_array_conversion on the RHS.
11958
11959         PR middle-end/35818
11960         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
11961         call is_variable_sized if decl has incomplete type.
11962
11963 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
11964
11965         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
11966
11967 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
11968
11969         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
11970         iterators.
11971         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
11972         (sgt<u>): Merge sgt and sgtu into new expander.
11973         (sgt, sgtu): Remove expanders.
11974         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
11975         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
11976         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
11977         *sgtu_<mode>_mips16 into new pattern.
11978         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
11979         (sge<u>): Merge sge and sgeu into new expander.
11980         (sge, sgeu): Remove expanders.
11981         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
11982         new pattern.
11983         (*sge_<mode>, second *sge_<mode>): Remove patterns.
11984         (slt<u>): Merge slt and sltu into new expander.
11985         (slt, sltu): Remove expanders.
11986         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
11987         (*slt_<mode>, *sltu_<mode>): Remove patterns.
11988         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
11989         *sltu_<mode>_mips16 into new pattern.
11990         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
11991         (sle<u>): Merge sle and sleu into new expander.
11992         (sle, sleu): Remove expanders.
11993         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
11994         (*sle_<mode>, *sleu_<mode>): Remove patterns.
11995         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
11996         *sleu_<mode>_mips16 into new pattern.
11997         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
11998
11999 2008-04-03  Jan Hubicka  <jh@suse.cz>
12000
12001         PR tree-optimization/35795
12002         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
12003         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12004         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12005         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12006         * score/score3.c (score3_output_mi_thunk): Likewise.
12007         * score/score7.c (score7_output_mi_thunk): Likewise.
12008         * mips/mips.c (mips_output_mi_thunk): Likewise.
12009
12010 2008-04-03  Richard Guenther  <rguenther@suse.de>
12011
12012         * tree-vrp.c (extract_range_from_unary_expr): Handle all
12013         conversions.  Simplify code.
12014
12015 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
12016
12017         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
12018
12019 2008-04-03  Tom Tromey  <tromey@redhat.com>
12020             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12021
12022         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
12023         * config/bfin/t-bfin-linux (generated_files): Add
12024         linux-sysroot-suffix.h.
12025         * doc/install.texi (Prerequisites): Require make 3.80.
12026         * doc/sourcebuild.texi (Front End Directory): Document new
12027         variable.
12028         * Makefile.in (generated_files): New variable.
12029         (ALL_HOST_OBJS): New variable.
12030         ($(ALL_HOST_OBJS)): New target.
12031
12032 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
12033
12034         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
12035         (remap_block): Call id->transform_lang_insert_block instead
12036         of langhook.
12037         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
12038         Set id.transform_lang_insert_block to NULL.
12039         (clone_body): Move to cp/optimize.c
12040         * tree-inline.h (struct copy_body_data): Change
12041         transform_lang_insert_block to function pointer.
12042         (copy_generic_body, copy_decl_no_change): Export.
12043         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
12044         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
12045         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
12046
12047         * c-tree.h (insert_block): Kill.
12048         * c-decl.c (insert_block): Kill.
12049
12050 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
12051
12052         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12053         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
12054         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
12055         argument.
12056         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
12057         argument, call {push,pop}_function_context from here.
12058         * c-parser.c: Use c_{push,pop}_function_context.
12059
12060         * function.c (push_function_context_to): Move meat ...
12061         (push_function_context): ... here.  Simplify.
12062         * function.c (pop_function_context_from): Move meat ...
12063         (pop_function_context): ... here.  Simplify.
12064         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
12065         leave_nested).
12066         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12067         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
12068         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
12069         * tree.h (push_function_context_to, pop_function_context_from): Remove.
12070
12071 2008-04-03  Ben Elliston  <bje@au.ibm.com>
12072
12073         * expmed.c (extract_force_align_mem_bit_field): Remove.
12074
12075 2008-04-03  Richard Guenther  <rguenther@suse.de>
12076
12077         PR middle-end/35800
12078         * expr.h (try_casesi): Adjust prototype.
12079         * expr.c (try_casesi): Take fallback label as extra parameter.
12080         Use that for gen_casesi if default_label is NULL.
12081         * stmt.c (expand_case): Pass fallback label to try_casesi,
12082         make sure to fill gaps with a fallback label if default_label
12083         is not present.
12084
12085 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
12086
12087         PR target/35801
12088         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
12089
12090 2008-04-03  Ben Elliston  <bje@au.ibm.com>
12091
12092         * expmed.c (extract_split_bit_field): Remove if (0) code.
12093         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
12094         (do_ds_constraint): Likewise.
12095
12096 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
12097
12098         * doc/cppopts.texi (-dU): Document.
12099         * c-common.h (flag_dump_macros): Update comment.
12100         * c-opts.c (handle_OPT_d): Handle -dU.
12101         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
12102         dump_queued_macros, cb_used_define, cb_used_undef): New.
12103         (init_pp_output): Handle -dU.
12104         (cb_line_change): Call dump_queued_macros.
12105         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
12106
12107 2008-04-02  Anatoly Sokolov <aesok@post.ru>
12108
12109         * config/avr/predicates.md (io_address_operand): New predicate.
12110         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
12111         * config/avr/avr.c (avr_io_address_p): Remove function.
12112         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
12113         'avr_io_address_p' function.
12114         (out_movhi_r_mr): (Ditto.).
12115         (out_movqi_mr_r): (Ditto.).
12116         (out_movhi_mr_r): (Ditto.).
12117         (avr_address_cost): (Ditto.).
12118
12119 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
12120
12121         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
12122         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
12123         in 32bit mode when XMM registers are available to avoid store
12124         forwarding stalls.
12125         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
12126         corresponding post-reload splitters.
12127
12128 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
12129
12130         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
12131         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
12132         __builtin_ia32_roundss.
12133         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
12134         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
12135         __builtin_ia32_roundss.
12136         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
12137         IX86_BUILTIN_SHUFPD here.
12138
12139 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
12140
12141         * config/i386/i386.md (plogic): New.
12142         (plogicprefix): Likewise.
12143
12144         * config/i386/mmx.md (mmx_<code><mode>3): New.
12145         (mmx_and<mode>3): Removed.
12146         (mmx_ior<mode>3): Likewise.
12147         (mmx_xor<mode>3): Likewise.
12148
12149         * config/i386/sse.md (<code><mode>3): New.
12150         (*<code><mode>3): Likewise.
12151         (*<code><mode>3): Likewise.
12152         (<code><mode>3): Likewise.
12153         (*sse_<code><mode>3): Likewise.
12154         (*sse2_<code><mode>3): Likewise.
12155         (<code>tf3): Likewise.
12156         (*<code>tf3): Likewise.
12157         (and<mode>3): Likewise.
12158         (*and<mode>3): Likewise.
12159         (ior<mode>3): Removed.
12160         (*ior<mode>3): Likewise.
12161         (xor<mode>3): Likewise.
12162         (*xor<mode>3): Likewise.
12163         (*and<mode>3): Likewise.
12164         (*ior<mode>3): Likewise.
12165         (*xor<mode>3): Likewise.
12166         (and<mode>3): Likewise.
12167         (*sse_and<mode>3): Likewise.
12168         (*sse2_and<mode>3): Likewise.
12169         (andtf3): Likewise.
12170         (*andtf3): Likewise.
12171         (ior<mode>3): Likewise.
12172         (*sse_ior<mode>3): Likewise.
12173         (*sse2_ior<mode>3): Likewise.
12174         (iortf3): Likewise.
12175         (*iortf3): Likewise.
12176         (xor<mode>3): Likewise.
12177         (*sse_xor<mode>3): Likewise.
12178         (*sse2_xor<mode>3): Likewise.
12179         (xortf3): Likewise.
12180         (*xortf3): Likewise.
12181
12182 2008-04-02  Richard Guenther  <rguenther@suse.de>
12183
12184         PR tree-optimization/14495
12185         PR tree-optimization/34793
12186         * tree-vrp.c (struct switch_update): New structure.
12187         (to_remove_edges, to_update_switch_stmts): New VECs.
12188         (simplify_switch_using_ranges): New function.  Remove not taken
12189         case labels and edges.
12190         (simplify_stmt_using_ranges): Call it.
12191         (identify_jump_threads): Mark edges we have queued for removal
12192         so we don't thread them.
12193         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
12194         case label vector.
12195         * tree-cfg.c (group_case_labels): Deal with missing default label.
12196         (tree_verify_flow_info): Allow missing default label.
12197         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
12198         (emit_case_nodes): Likewise.
12199         (expand_case): Do not rely on the default label to be present.
12200         * expr.c (try_casesi): Deal with NULL default_label.
12201         (do_tablejump): Likewise.
12202
12203 2008-04-02  Richard Guenther  <rguenther@suse.de>
12204
12205         PR tree-optimization/14495
12206         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
12207         SWITCH_EXPR here ...
12208         (vrp_visit_switch_stmt): ... but here (new function).
12209         (find_case_label_index): New helper function.
12210         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
12211
12212 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
12213
12214         * fwprop.c: Fix ISO-C99ism.
12215
12216 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
12217
12218         PR bootstrap/35752
12219         * Makefile.in (objdir): Set it here.
12220         * configure.ac: Not here.  Find dynamic linker characteristics.
12221         * exec-tool.in: Use them.
12222         * aclocal.m4: Regenerate.
12223         * configure: Regenerate.
12224
12225 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
12226
12227         * expr.c (expand_var): Delete it.
12228         * expr.h (expand_var): Delete prototype.
12229         * function.c (expand_function_start): Use expand_decl instead.
12230         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
12231         langhook.
12232
12233 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
12234
12235         PR rtl-optimization/35542
12236         * fwprop.c (forward_propagate_and_simplify): Replace
12237         loc_reg_mentioned_in_p with reg_mentioned_p.
12238
12239 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
12240
12241         PR rtl-optimization/35281
12242         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
12243         (propagate_rtx_1): Handle PR_HANDLE_MEM.
12244         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
12245         (varying_mem_p): Move above propagate_rtx.
12246         (all_uses_available_at): Do not check MEMs.
12247
12248 2008-04-02  Rafael Espindola  <espindola@google.com>
12249
12250         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
12251         (register_edge_assert_for_2): Split the cond argument.
12252         (register_edge_assert_for_1): Adjust for the change in
12253         register_edge_assert_for_2.
12254         (register_edge_assert_for): Split the cond argument.
12255         (find_switch_asserts): Adjust for the change in
12256         register_edge_assert_for.
12257
12258 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
12259
12260         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
12261         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
12262         offsets for 64-bit mingw.
12263         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
12264         abi for x86_64-pc-mingw.
12265
12266 2008-04-02  Richard Guenther  <rguenther@suse.de>
12267
12268         * tree-vrp.c (extract_range_from_assert): Make sure to not
12269         produce range min/max with TREE_OVERFOW set.
12270         If merging a anti-range and a range keep the anti-range if
12271         the range covers all values of the type.
12272         (register_edge_assert_for_2): Only allow sign-changing
12273         conversions in detecting canonical range checks.  Also
12274         register an assert for the unsigned name if useful.
12275
12276         PR tree-optimization/35787
12277         * tree-vrp.c (vrp_val_max): New function.
12278         (vrp_val_min): Likewise.
12279         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
12280         (vrp_val_is_min): Likewise.
12281         (supports_overflow_infinity): Use vrp_val_{min,max}.
12282         (negative_overflow_infinity): Likewise.
12283         (positive_overflow_infinity): Likewise.
12284         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
12285         (is_positive_overflow_infinity): Likewise.
12286         (is_overflow_infinity): Likewise.
12287         (avoid_overflow_infinity): Use vrp_val_{min,max} and
12288         vrp_val_is_{min,max}.
12289         (set_and_canonicalize_value_range): Canonicalize anti-ranges
12290         to ranges if possible.  Avoid empty ranges.
12291
12292 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12293
12294         PR middle-end/35705
12295         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
12296         the expression is a function address.
12297
12298 2008-04-01  George Helffrich  <george@gcc.gnu.org>
12299
12300         PR fortran/35154, fortran/23057
12301         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
12302         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
12303         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
12304         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
12305         in common.
12306         (dbxout_syms): Check for COMMON-based symbol and wrap in
12307         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
12308         in bracket for efficiency.
12309
12310         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
12311         using DW_TAG_common_block + member offset.
12312         (add_pubname_string): New function.
12313         (dw_expand_expr): New function to find block name and offset for
12314         COMMON var.
12315         (common_check): New function to check whether symbol in Fortran COMMON.
12316         (gen_variable_die): If COMMON, use DW_TAG_common_block.
12317
12318 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
12319
12320         PR c/35436
12321         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
12322
12323 2008-04-02  Ben Elliston  <bje@au.ibm.com>
12324
12325         * config/v850/v850.md (casesi): Remove if (0) code.
12326         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12327         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
12328
12329 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
12330
12331         * config/i386/i386.md (rex64suffix): New mode attribute.
12332         (floathi<mode>2): Disable expander for SSE math.
12333         (*floathi<mode>2_1): New insn insn_and_split pattern.
12334         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
12335         corresponding post-reload splitters.
12336         (*floathi<mode>2_i387): New macroized insn pattern.
12337         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
12338         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
12339         insn_and_split pattern.
12340         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
12341         New macroized instruction patterns and corresponding post-reload
12342         splitters.
12343         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
12344         and corresponding post-reload splitters.
12345         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
12346         New macroized instruction patterns.
12347         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
12348         macroized instruction patterns and corresponding post-reload splitters.
12349         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
12350         corresponding post-reload splitters.
12351         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
12352         New macroized instruction patterns.
12353         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
12354         corresponding post-reload splitters.
12355         (*floatsi<mode>2_i387): New macroized instruction patterns.
12356
12357 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
12358
12359         * config/i386/i386.md (smaxmin): New.
12360         (umaxmin): Likewise.
12361         (maxminiprefix): Likewise.
12362         (maxminfprefix): Likewise.
12363         (<code><mode>3): Likewise.
12364         (smin<mode>3): Removed.
12365         (smax<mode>3): Likewise.
12366
12367         * config/i386/mmx.md (mmx_<code>v2sf3): New.
12368         (mmx_<code>v4hi3): Likewise.
12369         (mmx_<code>v8qi3): Likewise.
12370         (mmx_smaxv2sf3): Removed.
12371         (mmx_sminv2sf3): Likewise.
12372         (mmx_umaxv8qi3): Likewise.
12373         (mmx_smaxv4hi3): Likewise.
12374         (mmx_uminv8qi3): Likewise.
12375         (mmx_sminv4hi3): Likewise.
12376
12377         * config/i386/sse.md (<addsub><mode>3): New.
12378         (*<addsub><mode>3): Likewise.
12379         (<sse>_vm<addsub><mode>3): Likewise.
12380         (<maxmin><mode>3): Likewise.
12381         (*<maxmin><mode>3_finite): Likewise.
12382         (*<maxmin><mode>3): Likewise.
12383         (<sse>_vm<maxmin><mode>3): Likewise.
12384         (sse3_h<addsub>v4sf3): Likewise.
12385         (sse3_h<addsub>v2df3): Likewise.
12386         (<maxmin>v16qi3): Likewise.
12387         (*<maxmin>v16qi3): Likewise.
12388         (<maxmin>v8hi3): Likewise.
12389         (*<maxmin>v8hi3): Likewise.
12390         (*sse4_1_<maxmin><mode>3): Likewise.
12391         (*sse4_1_<maxmin><mode>3): Likewise.
12392         (add<mode>3): Removed.
12393         (*add<mode>3): Likewise.
12394         (<sse>_vmadd<mode>3): Likewise.
12395         (sub<mode>3): Likewise.
12396         (*sub<mode>3): Likewise.
12397         (<sse>_vmsub<mode>3): Likewise.
12398         (smin<mode>3): Likewise.
12399         (*smin<mode>3_finite): Likewise.
12400         (*smin<mode>3): Likewise.
12401         (<sse>_vmsmin<mode>3): Likewise.
12402         (smax<mode>3): Likewise.
12403         (*smax<mode>3_finite): Likewise.
12404         (*smax<mode>3): Likewise.
12405         (<sse>_vmsmax<mode>3): Likewise.
12406         (sse3_haddv4sf3): Likewise.
12407         (sse3_haddv2df3): Likewise.
12408         (sse3_hsubv4sf3): Likewise.
12409         (sse3_hsubv2df3): Likewise.
12410         (umaxv16qi3): Likewise.
12411         (*umaxv16qi3): Likewise.
12412         (smaxv8hi3): Likewise.
12413         (*smaxv8hi3): Likewise.
12414         (*sse4_1_smax<mode>3): Likewise.
12415         (*sse4_1_umax<mode>3): Likewise.
12416         (uminv16qi3): Likewise.
12417         (*uminv16qi3): Likewise.
12418         (sminv8hi3): Likewise.
12419         (*sminv8hi3): Likewise.
12420         (*sse4_1_smin<mode>3): Likewise.
12421         (*sse4_1_umin<mode>3): Likewise.
12422
12423 2008-04-01  Rafael Espindola  <espindola@google.com>
12424
12425         * tree-cfg.c (verify_expr): remove in_phi.
12426         (verify_stmt): Don't call walk_tree with verify_expr. Use
12427         is_gimple_min_invariant instead of is_gimple_val.
12428
12429 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
12430
12431         * doc/include/gpl_v3.texi: Update for manpage generation.
12432         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
12433         gpl.texi.
12434         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
12435         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
12436         gpl_v3.texi instead of gpl.texi.
12437         (gpl.pod): New.
12438
12439 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
12440
12441         PR pch/13675
12442         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
12443
12444 2008-04-01  Rafael Espindola  <espindola@google.com>
12445
12446         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
12447         (extract_code_and_val_from_cond): Use
12448         extract_code_and_val_from_cond_with_ops.
12449
12450 2008-04-01  Jan Hubicka  <jh@suse.cz>
12451
12452         * function.c (free_after_compilation): Free epilogue_delay_list.
12453         (prepare_function_start): Assert that previous compilation was freed.
12454
12455 2008-04-01  Jan Hubicka  <jh@suse.cz>
12456             Jim Wilson  <wilson@tuliptree.org>
12457             Andreas Tobler <andreast@gcc.gnu.org>
12458
12459         PR middle-end/35781
12460         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
12461         rtl.emit instead cfun->emit.
12462         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
12463         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
12464
12465 2008-04-01  Ben Elliston  <bje@au.ibm.com>
12466
12467         * doc/c-tree.texi (Function Basics): Fix grammatical error.
12468
12469 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
12470
12471         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
12472         New options
12473         (fprofile-use): Add var flag_profile_use
12474         * coverage.c (coverage_begin_output): Do not open a gcno file for
12475         output only if -ftest-coverage is set.
12476         Do not add getpwd() to gcda file path.
12477         (build_gcov_info): Check the new flag
12478         flag_profile_datafile_relative_path.
12479         (coverage_init): Use profile_data_prefix.
12480         Read profile counter only if flag_profile_use is set.
12481         * opts.c (common_handle_option): New option fprofile-use=,
12482         fprofile-dir=, fprofile-generate=.
12483         * toplev.c (profile_data_prefix): New variable definition.
12484         * toplev.h (profile_data_prefix): New declaration.
12485         * doc/invoke.tex (Option Summary, Optimization Options):
12486         Add new options.
12487
12488 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
12489
12490         * varasm.c (output_constant_pool_1): In LABEL_REF check,
12491         use tmp consistently.
12492
12493         PR target/35695
12494         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
12495         * config/ia64/ia64.c (rtx_needs_barrier): Handle
12496         UNSPEC_FR_RECIP_APPROX_RES.
12497         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
12498
12499 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
12500
12501         PR c/35750
12502         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
12503
12504 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12505
12506         PR middle-end/30186
12507         * fold-const.c (fold_indirect_ref_1): Support accessing non first
12508         element of the vector via a pointer.
12509
12510 2008-03-31  Ian Lance Taylor  <iant@google.com>
12511
12512         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
12513
12514 2008-03-31  Jan Hubicka  <jh@suse.cz>
12515
12516         * builtins.c (expand_builtin_setjmp_receiver): Update call of
12517         get_arg_pointer_save_area.
12518         * expr.c (init_expr): Just clear out rtl.expr.
12519         * function.c (free_after_compilation): Clear out whole RTL structure.
12520         (get_func_frame_size): Merge into ...
12521         (get_frame_size): ... this one.
12522         (assign_stack_local_1): Merge into ...
12523         (assign_stack_local): ... this one.
12524         (expand_function_end): Update call of get_arg_pointer_save_area.
12525         (get_art_pointer_save_area): Remove cfun argument.
12526         * function.h (emit_status): regno_pointer_align does not need length
12527         attribute. Move x_regno_reg_rtx to ...
12528         (regno_reg_rtx): ... new global array.
12529         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
12530         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
12531         apply_args_value, forced_labels, stack_pointer_delta):
12532         Update accestors.
12533         (struct varasm_status): Move here from varasm.c
12534         (struct rtl_data): New. Move here some fields from struct function.
12535         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
12536         frame_offset, stack_check_probe_note, arg_pointer_save_area,
12537         used_temp_slots avail_temp_slots, temp_slot_level,
12538         nonlocal_goto_handler_labels): Update accesstors.
12539         (rtl): New global variable.
12540         (struct function): Move some fileds to rtl_data.
12541         (get_arg_pointer_save_area): Update prototype.
12542         * emit-rtl.c (rtl): Declare.
12543         (regno_reg_rtx): Declare.
12544         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
12545         Update.
12546         (gen_reg_rtx): Update.
12547         (init_virtual_regs): Do not tate emit_status argument.
12548         (init_emit): Do not allocate emit.
12549         * varasm.c (varasm_statuc): Move to function.h.
12550         (n_deferred_constatns): Update accestor.
12551         (init_varasm_status): Do not allocate varasm_status.
12552         (force_const_mem, get_pool_size, output_constant_pool): Update.
12553         * stmt.c (force_label_rtx): Do not use x_ prefixes.
12554         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
12555
12556 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
12557
12558         PR rtl-optimization/35729
12559         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
12560         references.
12561
12562 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
12563
12564         PR target/32000
12565         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
12566         load/store if memory is unaligned.
12567         (*movti_rex64): Likewise.
12568
12569         * config/i386/predicates.md (misaligned_operand): New.
12570
12571 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
12572
12573         PR tree-opt/35431
12574         * tree-ssa-phiopt.c (conditional_replacement): Return early for
12575         complex types.
12576
12577 2008-03-31  Jan Beulich  <jbeulich@novell.com>
12578
12579         * config/ia64/constraints.md: Add 'j' constraint.
12580         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
12581         (movdi_internal): Likewise.
12582
12583 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
12584
12585         PR c/35748
12586         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
12587
12588 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
12589
12590         PR target/35757
12591         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
12592         proper error message for the third argument on blendpd and
12593         blendps.
12594
12595         * config/i386/sse.md (blendbits): New.
12596         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
12597
12598 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
12599
12600         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
12601
12602 2008-03-30  Richard Guenther  <rguenther@suse.de>
12603
12604         PR middle-end/31023
12605         * fold-const.c (fold_sign_changed_comparison): Do leave
12606         conversions to base-types alone.
12607
12608 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12609
12610         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
12611         the link register if one altivec register is be saved.
12612
12613 2008-03-30  Ben Elliston  <bje@au.ibm.com>
12614
12615         * final.c (final_scan_insn): Remove if (0) code.
12616
12617 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
12618
12619         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
12620
12621 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
12622
12623         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
12624         of V4SFmode to ix86_binary_operator_ok.
12625
12626 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
12627
12628         * config/i386/i386.c (override_options): Initialize
12629         ix86_veclib_handler to ix86_veclibabi_svml when
12630         -mveclibabi=svml is used.
12631         (ix86_veclibabi_svml): New function for SVML ABI style
12632         vectorization support.
12633         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
12634
12635 2008-03-28  Rafael Espindola  <espindola@google.com>
12636
12637         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
12638         (tree_binary_nonnegative_warnv_p): Make it public.
12639         (tree_single_nonnegative_warnv_p): Make it public.
12640         (tree_invalid_nonnegative_warnv_p): Make it public.
12641         (tree_unary_nonzero_warnv_p): Make it public.
12642         (tree_binary_nonzero_warnv_p): Make it public
12643         (tree_single_nonzero_warnv_p): Make it public.
12644         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
12645         (extract_range_from_binary_expr): Split the expr argument.
12646         (extract_range_from_unary_expr): Split the expr argument.
12647         (extract_range_from_comparison): Split the expr argument.
12648         (extract_range_from_expr): Use the new aux functions.
12649         (vrp_evaluate_conditional_warnv): Use
12650         vrp_evaluate_conditional_warnv_with_ops.
12651         * tree.h (tree_unary_nonzero_warnv_p): Declare.
12652         (tree_binary_nonzero_warnv_p): Declare.
12653         (tree_single_nonzero_warnv_p): Declare.
12654         (tree_expr_nonzero_warnv_p): Declare.
12655         (tree_unary_nonnegative_warnv_p): Declare.
12656         (tree_binary_nonnegative_warnv_p): Declare.
12657         (tree_single_nonnegative_warnv_p): Declare.
12658         (tree_invalid_nonnegative_warnv_p): Declare.
12659
12660 2008-03-28  Richard Guenther  <rguenther@suse.de>
12661
12662         PR tree-optimization/30317
12663         PR tree-optimization/30911
12664         PR tree-optimization/34793
12665         * tree-vrp.c (set_and_canonicalize_value_range): New function.
12666         (struct assert_locus_d): New member EXPR.
12667         (register_new_assert_for): Add EXPR parameter to support
12668         ASSERT_EXPR <name, expr OP limit>.
12669         (register_edge_assert_for_1): Adjust callers.
12670         (find_assert_locations): Likewise.
12671         (process_assert_insertions_for): Build condition from expression.
12672         (extract_range_from_assert): Handle ASSERT_EXPRs
12673         of the form ASSERT_EXPR <name, expr OP limit>.
12674         (register_edge_assert_for_2): New helper registering
12675         asserts for comparisons.  Recognize range tests of the form
12676         (unsigned)i - CST1 OP CST2.
12677         (register_edge_assert_for_1): Use it.
12678         (register_edge_assert_for): Likewise.
12679         (needs_overflow_infinity): Integer sub-types
12680         do not need overflow infinities.
12681         (vrp_val_is_max): The extreme values of integer sub-types
12682         are those of the base type.
12683         (vrp_val_is_min): Likewise.
12684         * tree.def (ASSERT_EXPR): Document extra allowed conditional
12685         expressions.
12686
12687 2008-03-28  Nick Clifton  <nickc@redhat.com>
12688
12689         PR target/31110
12690         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
12691         Return GENERAL_REGS for stack adjustment reloads.
12692
12693 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12694
12695         PR target/31334
12696         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
12697         const_vector when all the vectors are constant.
12698
12699 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
12700
12701         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
12702         comparisons.
12703         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
12704         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
12705         (scc_sf): New.
12706         (s<code>_sf): Use new scc_sf attribute for opcode names.
12707
12708 2008-03-27  Tom Tromey  <tromey@redhat.com>
12709
12710         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
12711         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
12712         config/spu/t-spu-elf, config/i386/t-interix,
12713         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
12714         config/i386/x-darwin, config/i386/x-mingw32,
12715         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
12716         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
12717         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
12718         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
12719         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
12720         config/rs6000/x-darwin, config/rs6000/t-rs6000,
12721         config/score/t-score-elf, config/arm/t-strongarm-pe,
12722         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
12723         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
12724         Revert automatic dependency patch.
12725
12726 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12727
12728         PR target/35657
12729         * config/i386/i386.c (ix86_function_arg_boundary): Align
12730         decimal floating point to its natural boundary.
12731
12732 2008-03-27  Richard Guenther  <rguenther@suse.de>
12733
12734         PR middle-end/35716
12735         * fold-const.c (fold_comparison): Restrict distinct decl
12736         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
12737         solely rely on operand_equal_p.
12738
12739 2008-03-27  Richard Guenther  <rguenther@suse.de>
12740
12741         PR c/32511
12742         * c-common.c (handle_weak_attribute): Reject combination of
12743         weak and inline.
12744
12745 2008-03-27  Richard Guenther  <rguenther@suse.de>
12746
12747         PR tree-optimization/32810
12748         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
12749         conversions from DECL_INITIAL.
12750         (fold_const_aggregate_ref): Likewise from constructor elements.
12751
12752 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
12753
12754         * tree-affine.h (aff_combination_expand): Declare.
12755         (get_inner_reference_aff): Likewise.
12756         * tree-affine.c (aff_combination_expand): Split out from
12757         tree_to_aff_combination_expand.
12758         (get_inner_reference_aff): New function.
12759         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
12760         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
12761         (struct lim_aux_data): sm_done field removed.
12762         (mem_ref_loc_p, mem_ref_locs_p): New types.
12763         (struct mem_ref): Added id, stored, accesses_in_loop,
12764         indep_loop, dep_loop, indep_ref, dep_ref fields.
12765         Removed is_stored, locs and next fields.
12766         (memory_accesses): New variable.
12767         (movement_possibility): Do not allow moving statements
12768         that store to memory.
12769         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
12770         New functions.
12771         (determine_max_movement): For statements with memory references,
12772         find the outermost loop in that the reference is independent.
12773         (move_computations_stmt): Mark the virtual operands for renaming.
12774         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
12775         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
12776         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
12777         add_vop_ref_mapping, create_vop_ref_mapping_loop,
12778         create_vop_ref_mapping, analyze_memory_references,
12779         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
12780         get_all_locs_in_loop, ref_always_accessed_p,
12781         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
12782         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
12783         store_motion_loop, store_motion): New functions.
12784         (struct vop_to_refs_elt): New type.
12785         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
12786         memref_hash, memref_eq, hoist_memory_references): Rewritten.
12787         (schedule_sm): Replaced by...
12788         (execute_sm): ... this.
12789         (determine_lsm_ref, hoist_memory_references,
12790         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
12791         find_more_ref_vops, free_mem_ref, free_mem_refs,
12792         determine_lsm_loop, determine_lsm): Removed.
12793         (tree_ssa_lim_finalize): Free data structures used by store motion.
12794         (tree_ssa_lim): Call analyze_memory_references.  Use
12795         store_motion instead of determine_lsm.
12796
12797 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
12798
12799         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
12800         rename tmake_file to m68hc11/t-m68hc11.
12801         (mcore): Set inhibit_libc to true.
12802         * config.host (alpha*-dec-*vms*): Set extra_programs.
12803         (interix3*): Don't use host_xmake_file.
12804         * configure.ac: Let config.gcc override inhibit_libc.
12805         * configure: Regenerate.
12806
12807         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
12808         * config/t-openbsd-thread: Remove commented out lines.
12809
12810         * config/x-interix: Remove.
12811
12812         * config/m68hc11/t-m68hc11-gas: Rename to...
12813         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
12814
12815         * config/mcore/t-mcore: Remove T_CFLAGS.
12816         * config/mcore/t-mcore-pe: Likewise.
12817
12818 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
12819
12820         * configure.ac: Replace custom __GNU_SOURCE test with
12821         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
12822         * aclocal.m4: Regenerate.
12823         * configure: Regenerate.
12824         * config.in: Regenerate.
12825
12826 2008-03-27  Richard Guenther  <rguenther@suse.de>
12827
12828         * fold-const.c (target.h): Include.
12829         (fold_comparison): Fold comparison of addresses of decls
12830         that bind locally or of constants.  Consolidate address folding code.
12831         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
12832         results from fold_binary_to_constant.
12833         (compare_values_warnv): Likewise.
12834
12835 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
12836
12837         PR middle-end/35429
12838         * fold-const.c (fold_truthop): Check for integeral types when folding
12839         a == 0 && b == 0 and a != 0 || b != 0 .
12840
12841 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
12842
12843         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
12844
12845 2008-03-26  Andreas Schwab  <schwab@suse.de>
12846
12847         * doc/invoke.texi: Fix use of @item vs. @itemx.
12848
12849 2008-03-26  Tom Tromey  <tromey@redhat.com>
12850
12851         * Makefile.in (build/gensupport.o, build/print-rtl.o,
12852         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
12853         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
12854         build/gencodes.o, build/genconditions.o, build/genconfig.o,
12855         build/genconstants.o, build/genemit.o, build/genextract.o,
12856         build/genflags.o, build/genmddeps.o, build/genopinit.o,
12857         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
12858         options.h.
12859
12860 2008-03-26  Richard Guenther  <rguenther@suse.de>
12861
12862         Revert
12863         2008-03-26  Richard Guenther  <rguenther@suse.de>
12864
12865         * fold-const.c (target.h): Include.
12866         (fold_comparison): Fold comparison of addresses of two decls
12867         that bind locally.  Consolidate address folding code.
12868
12869 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12870
12871         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
12872         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
12873         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
12874         dconstsqrt2, dconstthird, dconste and/or dconst10.
12875         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
12876         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
12877         dconstsqrt2, dconste): Delete.
12878         (init_emit_once): Likewise.  Simplify initializing dconstm1.
12879         Constify variable.
12880         * real.c (get_real_const): New.
12881         * real.h (dconst3, dconst10, dconstm2, dconstthird,
12882         dconstsqrt2, dconste): Delete.
12883         (real_value_const, get_real_const): New.
12884
12885 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
12886
12887         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
12888
12889         * config/i386/i386.c (ix86_function_arg_boundary): Check
12890         BIGGEST_ALIGNMENT instead of 128.
12891         (setup_incoming_varargs_64): Likewise.
12892
12893 2008-03-26  Tom Tromey  <tromey@redhat.com>
12894
12895         * Makefile.in (DEPFILES): Add missing '/'.
12896
12897 2008-03-26  Richard Guenther  <rguenther@suse.de>
12898
12899         * fold-const.c (target.h): Include.
12900         (fold_comparison): Fold comparison of addresses of two decls
12901         that bind locally.  Consolidate address folding code.
12902
12903 2008-03-26  Nick Clifton  <nickc@redhat.com>
12904
12905         PR target/31232
12906         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
12907         not allow INT+INT as a legitimate addressing mode.
12908
12909 2008-03-26  Richard Guenther  <rguenther@suse.de>
12910
12911         * tree-flow.h (widen_bitfield): Remove declaration.
12912         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
12913         (widen_bitfield): Remove function.
12914         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
12915         code.
12916
12917 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12918
12919         PR target/31558
12920         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
12921         error_mark_node's.
12922
12923 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
12924
12925         PR rtl-optimization/35232
12926         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
12927         (forget_old_reloads_1, forget_marked_reloads): Don't clear
12928         reg_reloaded_call_part_clobbered here.
12929         (reload_regs_reach_end_p): New function.
12930         (reload_reg_rtx_for_input): New variable.
12931         (reload_reg_rtx_for_output): Likewise.
12932         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
12933         when reassigning a pseudo register.  Load reloadreg from
12934         reload_reg_rtx_for_input, moving the mode and register
12935         calculation to...
12936         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
12937         instead of the original when deciding whether an input reload
12938         would be a no-op or whether an output reload can be deleted.
12939         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
12940         when setting up new_spill_reg_store.  Load it from
12941         reload_reg_rtx_for_output, moving the mode and register
12942         calculation to...
12943         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
12944         instead of the original when deciding whether an output reload
12945         would be a no-op.  Do the same when modifying insn notes.
12946         Use rtx_equal_p instead of == to compare the registers.
12947         (inherit_piecemeal_p): Take a mode and two register numbers
12948         as argument.
12949         (emit_reload_insns): Clear new_spill_reg_store for every hard
12950         register in the reload register.  Remove spill registers
12951         from reg_reloaded_valid before considering whether to record
12952         inheritance information for them.  Use reload_reg_rtx_for_output
12953         instead of reg_rtx when recording output reloads.  Use
12954         reload_reg_rtx_for_input instead of reg_rtx when recording
12955         input reloads.  Set or clear reg_reloaded_call_part_clobbered
12956         at the same time as setting reg_reloaded_valid.
12957         (delete_output_reload): Add a new_reload_reg parameter and use it
12958         instead of rld[j].reg_rtx.
12959         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
12960         calls accordingly.
12961
12962 2008-03-25  Tom Tromey  <tromey@redhat.com>
12963
12964         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
12965         (build/genattr.o): Likewise.
12966         (build/genattrtab.o): Likewise.
12967         (build/gencodes.o): Likewise.
12968         (build/genconfig.o): Likewise.
12969         (build/genconstants.o): Likewise.
12970         (build/genemit.o): Likewise.
12971         (build/genextract.o): Likewise.
12972         (build/genflags.o): Likewise.
12973
12974 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
12975
12976         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
12977         instead of size_int for integer types.
12978         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
12979         to match type of MINUS_EXPR.
12980
12981 2008-03-25  Tom Tromey  <tromey@redhat.com>
12982
12983         * configure: Rebuilt.
12984         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
12985         Makefile.
12986
12987 2008-03-25  Tom Tromey  <tromey@redhat.com>
12988
12989         * config/x-solaris (host-solaris.o): Update.
12990         * config/x-linux (host-linux.o): Update.
12991         * config/x-hpux (host-hpux.o): Update.
12992         * config/x-darwin (host-darwin.o): Update.
12993         * config/v850/t-v850e (v850-c.o): Update.
12994         * config/v850/t-v850 (v850-c.o): Update.
12995         * config/t-vxworks (vxworks.o): Update.
12996         * config/t-sol2 (sol2-c.o, sol2.o): Update.
12997         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
12998         * config/spu/t-spu-elf (spu-c.o): Update.
12999         (spu.o): Remove.
13000         * config/sh/t-symbian (sh-c.o): Update.
13001         (symbian.o): Update.
13002         * config/sh/t-sh (sh-c.o): Update.
13003         * config/score/t-score-elf (score7.o, score3.o): Update.
13004         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
13005         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
13006         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
13007         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
13008         (rs6000.o): Remove.
13009         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
13010         * config/m32c/t-m32c (m32c-pragma.o): Update.
13011         * config/ia64/t-ia64 (ia64-c.o): Update.
13012         * config/i386/x-mingw32 (host-mingw32.o): Update.
13013         * config/i386/x-i386 (driver-i386.o): Update.
13014         * config/i386/x-darwin (host-i386-darwin.o): Update.
13015         * config/i386/x-cygwin (host-cygwin.o): Update.
13016         * config/i386/t-nwld (nwld.o): Update.
13017         * config/i386/t-netware (netware.o): Update.
13018         * config/i386/t-interix (winnt.o): Update.
13019         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
13020         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
13021         msformat-c.o): Update.
13022         * config/bfin/t-bfin-linux (generated_files): Add
13023         linux-sysroot-suffix.h.
13024         * config/arm/t-wince-pe (pe.o): Update.
13025         * config/arm/t-strongarm-pe (pe.o): Update.
13026         * config/arm/t-pe (pe.o): Update.
13027         * config/arm/t-arm (arm-c.o): Update.
13028         * doc/install.texi (Prerequisites): Require make 3.80.
13029         * Makefile.in: Remove .o targets.
13030         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
13031         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
13032         (simple_generated_h, simple_generated_c): Move earlier.
13033         (generated_files): New variable.
13034         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
13035         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
13036         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
13037         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
13038         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
13039         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
13040         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
13041         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
13042         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
13043         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
13044         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
13045         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
13046         (.c.o): Remove.
13047         (COMPILE.base, COMPILE): New variables.
13048         (%.o): New pattern rule.
13049         (ALL_HOST_OBJS): New variable.
13050         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
13051         (dummy-checksum.o, cc1-checksum.o): Remove.
13052         (DRIVER_SHLIB): New variable.
13053         (DRIVER_DEFINES): Use it.
13054         (gencondmd.c): Move out of build/.
13055         (s-conditions): Update.
13056         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
13057         (ALL_BUILD_OBJS): Likewise.
13058         (build/%.o): Use BUILDCOMPILE.
13059         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
13060         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
13061         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
13062         build/gencheck.o, build/gencodes.o, build/genconditions.o,
13063         build/genconfig.o, build/genconstants.o, build/genemit.o,
13064         build/genextract.o, build/genflags.o, build/genmddeps.o,
13065         build/genopinit.o, build/genoutput.o, build/genpeep.o,
13066         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
13067         build/gen-protos.o, build/scan.o, build/fix-header.o,
13068         build/scan-decls.o): Simplify.
13069         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
13070         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
13071         prefix.o, toplev.o): Reduce to variable setting.
13072         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
13073         ($(out_object_file), gcc-options.o): New targets.
13074         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
13075         * configure: Rebuilt.
13076         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
13077         * doc/sourcebuild.texi (Front End Directory): Document new variable.
13078
13079 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
13080
13081         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
13082         complain when we hit an error, return ERROR_MARK_NODE.
13083
13084 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
13085
13086         * config/sh/constraints.md (Pso, Psz): New constraints.
13087         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
13088         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
13089
13090 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
13091
13092         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
13093         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
13094
13095 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
13096
13097         * config/sh/sh.md (prefetch): Add condition for SH2A target.
13098         (prefetch_sh2a): New.
13099
13100 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
13101             Naveen.H.S  <naveen.hs@kpitcummins.com>
13102
13103         * config/sh/constraints.md (I28): New constraint.
13104         * config/sh/sh.c (broken_move): Add support for movi20s.
13105         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
13106
13107 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
13108             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
13109             Naveen.H.S  <naveen.hs@kpitcummins.com>
13110
13111         * config/sh/sh.c (SH_ATTRIBUTES): Define.
13112         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
13113         (print_operand): Handle resbank in %@ operand code.
13114         (sh_encode_section_info): New.
13115         (push_regs): Add conditions for resbank.
13116         (sh_expand_epilogue): Likewise.
13117         (sh_insert_attributes): Likewise.
13118         (sh_attribute_table): Likewise.
13119         (sh_handle_resbank_handler_attribute): New.
13120         (sh2a_handle_function_vector_handler_attribute): New.
13121         (sh2a_is_function_vector_call): New.
13122         (sh2a_get_function_vector_number): New.
13123         (sh2a_function_vector_p): New.
13124         (sh_cfun_resbank_handler_p): New.
13125         * config/sh/sh.md (calli): Emit jsr/n if possible.
13126         (calli_tbr_rel): New.
13127         (calli_pcrel): Emit jsr/n if possible.
13128         (return_i): Emit rts/n if possible.
13129         (call_valuei_tbr_rel): New.
13130         (call_valuei_pcrel): Add condition for SH2A target.
13131         (call_value): Likewise.
13132         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
13133         (sh2a_get_function_vector_number): Likewise.
13134         (sh2a_is_function_vector_call): Likewise.
13135         * doc/extend.texi: Document TBR relative addressing of SH2A.
13136         (resbank): Add description for SH2A.
13137
13138 2008-03-24  Richard Guenther  <rguenther@suse.de>
13139
13140         PR c/22371
13141         * gimplify.c (gimplify_modify_expr): For frontend type-correct
13142         pointer assignments change conversions according to middle-end rules.
13143         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
13144         * configure.ac: Include type checking in yes.
13145         * configure: Regenerate.
13146
13147 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13148
13149         * diagnostic.c (diagnostic_count_diagnostic): Delete.
13150         (diagnostic_report_diagnostic): Update. Handle ICEs here.
13151
13152 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
13153
13154         * gthr-vxworks.h (UNUSED): Define.
13155
13156 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
13157
13158         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
13159
13160 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
13161
13162         * doc/extend.texi (Function Attributes): Add missing comma in the
13163         example of the "alloc_size" attribute.
13164
13165 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
13166
13167         Revert:
13168         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13169
13170         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13171         32bit host.
13172
13173         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
13174
13175         PR target/35496
13176         * stor-layout.c (update_alignment_for_field): Set minimum alignment
13177         of the underlying type of a MS bitfield layout to the natural
13178         alignment of the type.
13179
13180         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
13181
13182         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
13183         to their natural alignment to avoid store forwarding stalls.
13184
13185 2008-03-22  Richard Guenther  <rguenther@suse.de>
13186
13187         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
13188         For PHI nodes verify the address is invariant.
13189         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
13190         (get_symbol_constant_value): Use is_gimple_min_invariant.
13191         (maybe_fold_stmt_indirect): Likewise.
13192
13193 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
13194
13195         PR rtl-optimization/33927
13196         * Makefile.in (dse.o): Depend on $(TM_P_H).
13197         * expr.h (extract_low_bits): Declare.
13198         * expmed.c (extract_low_bits): New function.
13199         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
13200         * dse.c: Include tm_p.h.
13201         (find_shift_sequence): Remove the read_reg argument and return the
13202         read value.  Emit the instructions instead of returning them.
13203         Iterate on new_mode rather than calculating it each time.
13204         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
13205         source to NEW_MODE and extract_low_bits to convert the shifted
13206         value to READ_MODE.
13207         (replace_read): Allow the load and store to have different mode
13208         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
13209         or extraction instructions before trying the replacement.  Update
13210         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
13211
13212 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
13213
13214         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
13215         to their natural alignment to avoid store forwarding stalls.
13216
13217 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13218
13219         PR target/27946
13220         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
13221         encouraging but not allowing gprs for input;
13222         change the input constraint to !f#r.
13223         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
13224         gprs for output;
13225         change the output constraint to !f#r.
13226
13227 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
13228
13229         PR target/13958
13230         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
13231         corresponding post-reload splitters.
13232         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
13233         when x87 FP math is selected.
13234         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
13235         New function prototype.
13236         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
13237         unreachable function to ease macroization of insn patterns.
13238
13239 2008-03-21  Martin Jambor  <mjambor@suse.cz>
13240
13241         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
13242         reference dumps if ddr is NULL or dependence is unknown.
13243
13244 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13245
13246         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
13247         unsigned extension into account.
13248         (ATOMIC_COMPARE_AND_SWAP): Likewise.
13249         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
13250         Do computations on a scratch register.
13251
13252 2008-03-21  Richard Guenther  <rguenther@suse.de>
13253
13254         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
13255         Use is_gimple_min_invariant instead of TREE_INVARIANT.
13256         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
13257         * tree-ssa-dom.c (record_equality): Likewise.
13258         * tree-inline.c (copy_body_r): Likewise.
13259         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
13260         TREE_INVARIANT.
13261
13262 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13263
13264         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
13265         as 'delete_unused' argument.
13266
13267 2008-03-20  Richard Guenther  <rguenther@suse.de>
13268
13269         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
13270         special casing of constant qualifiers.
13271         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
13272         care about them in general.
13273         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
13274         regardless of their type.
13275         (fold_stmt_r): Forcefully fold *& if we end up with that.
13276
13277 2008-03-20  Paul Brook  <paul@codesourcery.com>
13278
13279         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
13280         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
13281         linker flags.
13282         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
13283         definition.
13284         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
13285         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
13286
13287 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
13288
13289         * common.opt (Wmudflap): New option.
13290         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
13291         (mx_register_decls): Likewise.
13292         (mudflap_finish_file): Likewise.
13293         * doc/invoke.texi: Document -Wno-mudflap.
13294
13295 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
13296
13297         * c-format.c (replace_format_name_to_system_name): New.
13298         (cmp_attribs): New.
13299         (convert_format_name_to_system_name): New.
13300         (decode_format_attr): Add use of convert_format_name_to_system_name.
13301         (format_types_orig): Add gnu_ prefix to names.
13302         (check_format_info_main): Special treating of \0 escaped names for
13303         supporting multi-character format specifiers as I32, I64.
13304         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
13305         (gnu_target_overrides_format_attributes): New.
13306         * c-format.h: Add structure target_ovr_attr to hold
13307         system specific formatter names.
13308         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
13309         msformat-c.o file to c_target_objs and cxx_target_objs.
13310         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
13311         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
13312         (TARGET_N_FORMAT_TYPES): New.
13313         * config/i386/msformat-c.c: New.
13314         * config/i386/t-cygming: Add build rule for msformat-c.o.
13315         * doc/extend.texi: Add new format names gnu_* and ms_* and
13316         further details.
13317         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
13318
13319 2008-03-20  Ira Rosen  <irar@il.ibm.com>
13320
13321         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
13322         optimizations turned on under -O3.
13323         (ftree-vectorize): Add that the flag is turned on with -O3.
13324
13325 2008-03-20  Ben Elliston  <bje@au.ibm.com>
13326
13327         * regmove.c (try_auto_increment): Fix spelling error in comment.
13328         * final.c (final_scan_insn): Likewise.
13329
13330 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
13331
13332         PR target/14552
13333         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
13334         allocator preferences for "y" and "r" class registers.
13335         ("*mov<mode>_internal"): Ditto.
13336         ("*movv2sf_internal_rex64"): Ditto.
13337         ("*movv2sf_internal"): Ditto.
13338
13339 2008-03-19  Michael Matz  <matz@suse.de>
13340
13341         PR middle-end/35616
13342         * calls.c (expand_call): Check overlap of arguments with call
13343         address for sibcalls.
13344
13345 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
13346
13347         PR target/35496
13348         * stor-layout.c (update_alignment_for_field): Set minimum alignment
13349         of the underlying type of a MS bitfield layout to the natural
13350         alignment of the type.
13351
13352 2008-03-19  Jan Hubicka  <jh@suse.cz>
13353
13354         PR other/35094
13355         * toplev.c (decode_d_option): Handle all CPP flags.
13356         * tree-vrp.c: Update tree_pass descriptors.
13357         * regrename.c: Update tree_pass descriptors.
13358         * fwprop.c: Update tree_pass descriptors.
13359         * doc/invoke.texi: Remove documentation of dropped -d? flags.
13360         * tree-into-ssa.c: Update tree_pass descriptors.
13361         * tree-dump.c: Update tree_pass descriptors.
13362         * tree-complex.c: Update tree_pass descriptors.
13363         * tree-dump.h: Update tree_pass descriptors.
13364         * see.c: Update tree_pass descriptors.
13365         * cgraphbuild.c: Update tree_pass descriptors.
13366         * tracer.c: Update tree_pass descriptors.
13367         * tree-loop-distribution.c: Update tree_pass descriptors.
13368         * cgraph.c: Update tree_pass descriptors.
13369         * postreload-gcse.c: Update tree_pass descriptors.
13370         * postreload.c: Update tree_pass descriptors.
13371         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
13372         * tree-tailcall.c: Update tree_pass descriptors.
13373         * tree-pass.h (tree_opt_pass): Rename to ...
13374         (opt_pass) ... this one; add "type" field and remove letter field.
13375         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
13376         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
13377         all_lowering_passes): Update declaration.
13378         * ipa-cp.c: Update tree_pass descriptors.
13379         * final.c: Update tree_pass descriptors.
13380         * omp-low.c: Update tree_pass descriptors.
13381         * tree-ssa-dse.c: Update tree_pass descriptors.
13382         * ipa-reference.c: Update tree_pass descriptors.
13383         * tree-ssa-uncprop.c: Update tree_pass descriptors.
13384         * auto-inc-dec.c: Update tree_pass descriptors.
13385         * reorg.c: Update tree_pass descriptors.
13386         * cgraphunit.c: Update tree_pass descriptors.
13387         * tree-ssa-copyrename.c: Update tree_pass descriptors.
13388         * tree-ssa-ccp.c: Update tree_pass descriptors.
13389         * df-core.c: Update tree_pass descriptors.
13390         * mode-switching.c: Update tree_pass descriptors.
13391         * tree-nomudflap.c: Update tree_pass descriptors.
13392         * modulo-sched.c: Update tree_pass descriptors.
13393         * ipa-pure-const.c: Update tree_pass descriptors.
13394         * cse.c: Update tree_pass descriptors.
13395         * web.c: Update tree_pass descriptors.
13396         * tree-stdarg.c: Update tree_pass descriptors.
13397         * tree-ssa-math-opts.c: Update tree_pass descriptors.
13398         * tree-ssa-dom.c: Update tree_pass descriptors.
13399         * tree-nrv.c: Update tree_pass descriptors.
13400         * tree-ssa-alias.c: Update tree_pass descriptors.
13401         * loop-init.c: Update tree_pass descriptors.
13402         * gimple-low.c: Update tree_pass descriptors.
13403         * ipa-inline.c: Update tree_pass descriptors.
13404         * tree-ssa-sink.c: Update tree_pass descriptors.
13405         * global.c: Update tree_pass descriptors.
13406         * ifcvt.c: Update tree_pass descriptors.
13407         * jump.c: Update tree_pass descriptors.
13408         * predict.c: Update tree_pass descriptors.
13409         * tree-ssa-loop.c: Update tree_pass descriptors.
13410         * recog.c: Update tree_pass descriptors.
13411         * dse.c: Update tree_pass descriptors.
13412         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
13413         * tree-eh.c: Update tree_pass descriptors.
13414         * regmove.c: Update tree_pass descriptors.
13415         * local-alloc.c
13416         * function.c: Update tree_pass descriptors.
13417         * tree-vectorizer.c: Update tree_pass descriptors.
13418         * gcse.c: Update tree_pass descriptors.
13419         * ipa-type-escape.c: Update tree_pass descriptors.
13420         * tree-if-conv.c: Update tree_pass descriptors.
13421         * init-regs.c: Update tree_pass descriptors.
13422         * ipa.c: Update tree_pass descriptors.
13423         * tree-ssa-phiopt.c: Update tree_pass descriptors.
13424         * rtl-factoring.c: Update tree_pass descriptors.
13425         * lower-subreg.c: Update tree_pass descriptors.
13426         * bt-load.c: Update tree_pass descriptors.
13427         * tree-dfa.c: Update tree_pass descriptors.
13428         * except.c: Update tree_pass descriptors.
13429         * emit-rtl.c: Update tree_pass descriptors.
13430         * cfgexpand.c: Update tree_pass descriptors.
13431         * tree-cfgcleanup.c: Update tree_pass descriptors.
13432         * cfgcleanup.c: Update tree_pass descriptors.
13433         * tree-ssa-pre.c: Update tree_pass descriptors.
13434         * tree-sra.c: Update tree_pass descriptors.
13435         * tree-mudflap.c: Update tree_pass descriptors.
13436         * tree-ssa-copy.c: Update tree_pass descriptors.
13437         * cfglayout.c: Update tree_pass descriptors.
13438         * tree-ssa-forwprop.c: Update tree_pass descriptors.
13439         * tree-ssa-dce.c: Update tree_pass descriptors.
13440         * tree-ssa.c: Update tree_pass descriptors.
13441         * regclass.c: Update tree_pass descriptors.
13442         * integrate.c: Update tree_pass descriptors.
13443         * tree-optimize.c: Update tree_pass descriptors.
13444         * tree-ssa-phiprop.c: Update tree_pass descriptors.
13445         * tree-object-size.c: Update tree_pass descriptors.
13446         * combine.c: Update tree_pass descriptors.
13447         * tree-outof-ssa.c: Update tree_pass descriptors.
13448         * bb-reorder.c: Update tree_pass descriptors.
13449         * stack-ptr-mod.c: Update tree_pass descriptors.
13450         * var-tracking.c: Update tree_pass descriptors.
13451         * tree-profile.c: Update tree_pass descriptors.
13452         * tree-vect-generic.c: Update tree_pass descriptors.
13453         * reg-stack.c: Update tree_pass descriptors.
13454         * sched-rgn.c: Update tree_pass descriptors.
13455         * tree-ssa-structalias.c: Update tree_pass descriptors.
13456         * tree-cfg.c: Update tree_pass descriptors.
13457         * passes.c (current_pass): Update declaration.
13458         (finish_optimization_passes): Update.
13459         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
13460         (register_one_dump_file, register_dump_files_1, next_pass_1):
13461         Update arguments.
13462         (init_optimization_passes): Update handling of new types.
13463         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
13464         * ipa-struct-reorg.c: Update tree_pass descriptors.
13465         * tree-ssa-reassoc.c: Update tree_pass descriptors.
13466         * combine-stack-adj.c: Update tree_pass descriptors.
13467         * cfgrtl.c: Update tree_pass descriptors.
13468         * dce.c: Update tree_pass descriptors.
13469         * tree-ssanames.c: Update tree_pass descriptors.
13470
13471 2008-03-19  Richard Guenther  <rguenther@suse.de>
13472
13473         PR middle-end/35609
13474         * tree-ssa.c (walk_data): New structure.
13475         (warn_uninitialized_var): If not always_executed warn with "maybe"
13476         instead of "is".
13477         (execute_early_warn_uninitialized): Compute post-dominators.
13478         Initialize always_executed before processing each basic block.
13479
13480 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
13481
13482         PR target/35504
13483         * config/i386/i386.c (x86_this_parameter): Calculate correct location
13484         of "this" pointer when "regparm = N" or "fastcall" is in effect.
13485
13486 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13487
13488         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
13489
13490 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
13491
13492         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
13493         is true.
13494         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
13495         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
13496         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
13497         target after ignore has been set, and move there also the commputation
13498         of subtarget and original_target.
13499         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
13500         (LANG_HOOKS_INITIALIZER): Remove it.
13501         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
13502
13503 2008-03-18  Richard Guenther  <rguenther@suse.de>
13504
13505         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
13506         found an expression with constants, note that in the VN for the lhs.
13507         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
13508         fold them to constants if possible.  Run cleanup_cfg if done so.
13509         (execute_pre): Return todo.
13510         (do_pre): Likewise.
13511         (execute_fre): Likewise.
13512         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
13513         of constants.
13514         (get_prop_source_stmt): Look through pointer conversions.
13515
13516 2008-03-18  Jan Hubicka  <jh@suse.cz>
13517
13518         * tree-pretty-print.c: Include predict.h.
13519         (dump_generic_node): Dump predictor.
13520         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
13521         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
13522         * gimple-low.c (lower_stmt): Likewise.
13523         * expr.c (expand_expr_real): Likewise.
13524         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
13525         them.
13526         (build_predict_expr, build_predict_expr): New.
13527         * predict.h (predictor_name, build_predict_expr): Update.
13528         * c-typeck.c (c_finish_bc_stmt): Add prediction.
13529         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
13530         * predict.def (PRED_CONTINUE): Update hitrate.
13531         * tree.def (PREDICT_EXPR): Define.
13532         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
13533         do not handle BIND_EXPR.
13534         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
13535         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
13536         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
13537         operands.
13538
13539 2008-03-18  Michael Matz  <matz@suse.de>
13540
13541         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
13542
13543 2008-03-18  Richard Guenther  <rguenther@suse.de>
13544
13545         * tree-gimple.h (is_gimple_invariant_address): Declare.
13546         (is_gimple_constant): Likewise.
13547         * tree-gimple.c (is_gimple_constant): New function.
13548         (is_gimple_invariant_address): Likewise.
13549         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
13550         and is_gimple_invariant_address.
13551         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
13552         previous change.
13553         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
13554         an addressable base.
13555
13556 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
13557
13558         PR middle-end/35611
13559         * gimplify.c (gimplify_expr): Gimplify second operand of
13560         OMP_ATOMIC_LOAD.
13561
13562 2008-03-17  Richard Guenther  <rguenther@suse.de>
13563
13564         PR tree-optimization/19637
13565         * fold-const.c (fold_unary): Remove restrictions of removing
13566         intermediate pointer-conversions (P2)(P1)P0.
13567         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
13568         conversion to void pointer.
13569         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
13570
13571 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
13572
13573         PR debug/31510
13574         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
13575         emulated thread local variables.
13576
13577 2008-03-16  Richard Guenther  <rguenther@suse.de>
13578
13579         PR middle-end/35607
13580         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
13581         expand TREE_INVARIANT operations that are not gimple invariant.
13582
13583 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
13584
13585         * doc/extend.texi (Alignment): Say that the ABI controls
13586         the __alignof__ for non-strict-alignment targets rather
13587         than being a recommendation.
13588
13589 2008-03-15  Paul Brook  <paul@codesourcery.com>
13590
13591         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
13592         annotations.
13593         (arm_output_fn_unwind): Mark functions that can not be unwound.
13594
13595 2008-03-15  Paul Brook  <paul@codesourcery.com>
13596
13597         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
13598         extension instructions.
13599
13600 2008-03-15  Richard Guenther  <rguenther@suse.de>
13601
13602         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
13603         and fold constant aggregate refs.
13604         (fold_const_aggregate_ref): Handle string constants
13605         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
13606         (evaluate_stmt): Simplify now that ccp_fold folds constant
13607         aggregate refs.
13608
13609 2008-03-15  Paul Brook  <paul@codesourcery.com>
13610
13611         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
13612         (extzv): Use gen_extzv_t2.
13613         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
13614
13615 2008-03-15  Richard Guenther  <rguenther@suse.de>
13616
13617         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
13618         (fold_const_aggregate_ref): Likewise.
13619         (get_value): Return NULL if we don't have any values.
13620         (ccp_finalize): Set const_val to NULL after freeing it.
13621         * tree-flow.h (get_symbol_constant_value): Declare.
13622         (fold_const_aggregate_ref): Likewise.
13623         * tree-ssa-sccvn.c (try_to_simplify): Use them.
13624
13625 2008-03-15  Richard Guenther  <rguenther@suse.de>
13626
13627         PR middle-end/35593
13628         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
13629         to not produce negative array indices if not allowed.  Add
13630         parameter to indicate that.
13631         (maybe_fold_offset_to_component_ref): Allow negative array
13632         indices only for the first member of a structure.
13633         (maybe_fold_offset_to_reference): Allow negative array indices.
13634         (maybe_fold_stmt_addition): Likewise.
13635
13636 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
13637             Anatoly Sokolov <aesok@post.ru>
13638
13639         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
13640         (avr_arch): Add ARCH_AVR6.
13641         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
13642         (initial_elimination_offset): Initialize and use 'avr_pc_size'
13643         instead of fixed value 2.
13644         (print_operand_address): Use gs() asm specifier instead of pm().
13645         (avr_assemble_integer): (Ditto.).
13646         (avr_output_addr_vec_elt): (Ditto.).
13647         (print_operand): Handle "!" code.
13648         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
13649         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
13650         (AVR_HAVE_EIJMP_EICALL): Define.
13651         (AVR_3_BYTE_PC): Redefine.
13652         (AVR_2_BYTE_PC): (Ditto.).
13653         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
13654         (LINK_SPEC): Add atmega2560 and atmega2561.
13655         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
13656         (crtm2561.o).
13657         * config/avr/avr.md (call_insn): Use eicall instead of icall
13658         for 3 byte PC devices.
13659         (call_value_insn): (Ditto.).
13660         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
13661         (indirect_jump): Use only for for 2 byte PC devices.
13662         (*tablejump): (Ditto.).
13663         (*indirect_jump_avr6): Add insn.
13664         (*tablejump_rjmp): Don't use for 3 byte PC devices.
13665         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
13666         instead of ijmp for 3 byte PC devices.
13667         (__tablejump2__): (Ditto.).
13668         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
13669         (MULITLIB_DIRNAMES): (Ditto.).
13670         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
13671
13672 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
13673
13674         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
13675         "sse2_umulsidi3".  Use V1DI mode for operand 0.
13676         ("mmx_psadbw"): Use V1DI mode for operand 0.
13677         * config/i386/i386-modes.def (V1SI): New vector mode.
13678         * config/i386/i386.c (struct builtin_description)
13679         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
13680         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
13681         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
13682         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
13683         v1di_ftype_v8qi_v8qi type.
13684         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
13685
13686         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
13687         __builtin_ia32_pmuludq]: Fix the mode of return value.
13688
13689 2008-03-15  Richard Guenther  <rguenther@suse.de>
13690
13691         PR middle-end/35595
13692         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
13693         being a PHI_NODE.
13694
13695 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
13696
13697         * doc/invoke.texi (Option Summary, Xtensa Options): Document
13698         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
13699         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
13700         unless TARGET_SERIALIZE_VOLATILE is enabled.
13701         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
13702         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
13703         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
13704
13705 2008-03-14  Richard Guenther  <rguenther@suse.de>
13706
13707         PR tree-optimization/34172
13708         * tree-flow.h (refs_may_alias_p): Declare.
13709         (get_single_def_stmt): Likewise.
13710         (get_single_def_stmt_from_phi): Likewise.
13711         (get_single_def_stmt_with_phi): Likewise.
13712         * tree-dfa.c (refs_may_alias_p): New function.
13713         (get_single_def_stmt): Likewise.
13714         (get_single_def_stmt_from_phi): Likewise.
13715         (get_single_def_stmt_with_phi): Likewise.
13716         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
13717         (vn_reference_lookup_1): New helper function.
13718         (vn_reference_lookup): Walk the virtual use-def chain to
13719         continue searching for a match if the def does not alias the
13720         reference we are looking for.
13721
13722 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
13723
13724         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
13725         archive and Perzl.  Update The Written Word listing.
13726
13727 2008-03-14  Richard Guenther  <rguenther@suse.de>
13728
13729         PR tree-optimization/34043
13730         PR tree-optimization/33989
13731         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
13732         when doing FRE.
13733         (bitmap_find_leader): Use extra argument to verify dominance
13734         relationship inside a basic-block.
13735         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
13736         (find_leader_in_sets): Adjust.
13737         (create_component_ref_by_pieces): Take extra argument for
13738         dominance check, handle lookup failures.
13739         (find_or_generate_expression): Likewise.
13740         (create_expression_by_pieces): Likewise.
13741         (insert_into_preds_of_block): Adjust.
13742         (create_value_expr_from): If asked for, verify all operands
13743         are in the blocks AVAIL_OUT set.
13744         (make_values_for_stmt): Check for SSA_NAMEs that are life
13745         over an abnormal edge.
13746         (compute_avail): Remove such check.
13747         (do_SCCVN_insertion): New function.
13748         (eliminate): If we do not find a leader suitable for replacement
13749         insert a replacement expression from SCCVN if available.
13750         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
13751         (struct vn_ssa_aux): Add needs_insertion flag.
13752         * tree-ssa-sccvn.c (may_insert): New global flag.
13753         (copy_reference_ops_from_ref): Value-number union member access
13754         based on its size, not type and member if insertion is allowed.
13755         (visit_reference_op_load): For a weak match from union type
13756         punning lookup a view-converted value and insert a SSA_NAME
13757         for that value if that is not found.
13758         (visit_use): Make dumps shorter.  Do not disallow value numbering
13759         SSA_NAMEs that are life over an abnormal edge to constants.
13760         (free_scc_vn): Release inserted SSA_NAMEs.
13761         (run_scc_vn): New flag to specify whether insertion is allowed.
13762         Process SSA_NAMEs in forward order.
13763         * tree-ssa-loop-im.c (for_each_index): Handle invariant
13764         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
13765         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
13766         pointer type to/from integral types that do not change the
13767         precision to regular conversions.
13768
13769 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
13770
13771         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13772         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13773         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
13774         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
13775         input arguments and the mode of return value.  Built-in functions
13776         that operate on whole 64-bit MMX register now use V1DI mode.
13777
13778 2008-03-13  Alon Dayan  <alond@il.ibm.com>
13779             Olga Golovanevsky  <olga@il.ibm.com>
13780
13781         PR tree-optimization/35041
13782         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
13783         to locate the right position in a statement.
13784
13785 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
13786
13787         PR target/34000
13788         PR target/35553
13789         * config/i386/xmmintrin.h:  Change all static inline functions to
13790         extern inline and add __gnu_inline__ attribute.
13791         * config/i386/bmintrin.h: Ditto.
13792         * config/i386/smmintrin.h: Ditto.
13793         * config/i386/tmmintrin.h: Ditto.
13794         * config/i386/mmintrin-common.h: Ditto.
13795         * config/i386/ammintrin.h: Ditto.
13796         * config/i386/emmintrin.h: Ditto.
13797         * config/i386/pmmintrin.h: Ditto.
13798         * config/i386/mmintrin.h: Ditto.
13799         * config/i386/mm3dnow.h: Ditto.
13800
13801 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
13802
13803         PR middle-end/35185
13804         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
13805         (lower_omp_2): New function.
13806         (lower_omp_1, lower_omp): Rewritten.
13807
13808 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
13809
13810         PR 35054
13811         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
13812         with the phrase "Microsoft Windows compilers".
13813         (Push/Pop Macro Pragmas): New subsection. Document
13814         #pragma push_macro and pragma pop_macro.
13815
13816 2008-03-12  Paul Brook  <paul@codesourcery.com>
13817
13818         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
13819
13820 2008-03-12  Paul Brook  <paul@codesourcery.com>
13821
13822         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
13823         (thumb2_alusi3_short): Exclude PLUS and MINUS.
13824         (thumb2_addsi_shortim): Rename ...
13825         (thumb2_addsi_short): ... to this.  Allow register operands.
13826         (thumb2_subsi_short): New pattern.
13827         (thumb2_one_cmplsi2_short,
13828         thumb2_negsi2_short): New patterns and peepholes.
13829
13830 2008-03-12  Paul Brook  <paul@codesourcery.com>
13831
13832         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
13833
13834 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
13835
13836         * config/i386/i386.md (int_cond): New code iterator.
13837         (fp_cond): Ditto.
13838         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
13839         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
13840         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
13841         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
13842         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
13843         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
13844         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
13845         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
13846
13847 2008-03-12  Paul Brook  <paul@codesourcery.com>
13848
13849         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
13850         instead of {arm,thumb}_compute_save_reg_mask.
13851         (output_return_instruction): Ditto.
13852         (thumb_unexpanded_epilogue): Ditto.
13853         (thumb1_expand_prologue): Ditto.
13854         (thumb1_output_function_prologue): Ditto.
13855         (arm_set_return_address): Ditto.
13856         (thumb_set_return_address): Ditto.
13857         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
13858         regs to achieve stack alignment.
13859         (thumb1_compute_save_reg_mask): Fix compiler warning.
13860         (arm_output_epilogue): Use offsets->saved_regs_mask.
13861         Adjust stack pointer by poping call clobered registers.
13862         (arm_expand_prologue): Use offsets->saved_regs_mask.
13863         Adjust stack pointer by pushing extra registers.
13864         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
13865
13866 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
13867
13868         PR tree-opt/35422
13869         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
13870         conversion to the operands of a multiplication.
13871
13872 2008-03-12  Richard Guenther  <rguenther@suse.de>
13873
13874         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
13875         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
13876         * timevar.def (TV_TREE_PHIPROP): Add.
13877         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
13878         pass description.  Use TV_TREE_PHIPROP.
13879         * tree-ssa-forwprop.c: Remove phiprop code.
13880
13881 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
13882
13883         PR middle-end/35549
13884         * omp-low.c (maybe_lookup_decl): Constify first argument.
13885         (use_pointer_for_field): Change last argument from bool to
13886         omp_context *.  Disallow shared copy-in/out in nested
13887         parallel if decl is shared in outer parallel too.
13888         (build_outer_var_ref, scan_sharing_clauses,
13889         lower_rec_input_clauses, lower_copyprivate_clauses,
13890         lower_send_clauses, lower_send_shared_vars): Adjust callers.
13891
13892 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
13893             Ira Rosen  <irar@il.ibm.com>
13894
13895         * tree-vectorizer.c (free_stmt_vec_info): New function.
13896         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
13897         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
13898         * tree-vectorizer.h (free_stmt_vec_info): Declare.
13899         * tree-vect-transform.c (vectorizable_conversion): Free
13900         vec_oprnds0 if it was allocated.
13901         (vect_permute_store_chain): Remove unused VECs.
13902         (vectorizable_store): Free VECs that are allocated in the..
13903         function.
13904         (vect_transform_strided_load, vectorizable_load): Likewise.
13905         (vect_remove_stores): Simplify the code.
13906         (vect_transform_loop): Move code to vect_remove_stores().
13907         Call vect_remove_stores() and free_stmt_vec_info().
13908
13909 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13910
13911         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
13912         TARGET_HPUX.  Revise comment.
13913         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
13914         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
13915         Use sr4 variant of `be' instruction when not generating PIC code.
13916         (attr_length_call): Adjust for above change.
13917
13918 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13919
13920         * ipa-reference.c (static_execute): Remove module_statics_const and
13921         associated setting code.
13922
13923 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
13924
13925         PR target/35540
13926         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
13927         predicate for operand 1.
13928         (paritysi2_cmp): Use register_operand predicate for operand 2.
13929         Use earlyclobber modifier for operand 1.  Remove support for
13930         memory operands.
13931         (paritydi2_cmp): Use register_operand predicate for operand 3.
13932         Use earlyclobber modifier for operand 1.  Remove support for
13933         memory operands.
13934
13935 2008-03-11  Paul Brook  <paul@codesourcery.com>
13936             Vladimir Prus  <vladimir@codesourcery.com>
13937
13938         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
13939         (arm_compute_save_reg0_reg12_mask): Always
13940         check if register 11 must be saved.  Always safe hard frame pointer
13941         when frame_pointer_needeed.
13942         (arm_compute_save_reg_mask): Save IP and PC
13943         only with apcs frames.
13944         (arm_output_epilogue): Adjust Thumb2 codepath to
13945         be also invoked and work for ARM non-apcs frames.
13946         (arm_expand_prologue): Don't bother saving IP
13947         for non-apcs frame, since it's not clobbered by
13948         prologue code.  Implement non-apcs frame
13949         layout.
13950
13951 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
13952
13953         PR rtl-optimization/35281
13954         * expr.c (convert_move): Use a new pseudo for the intermediate
13955         from_mode->word_mode result.
13956
13957 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
13958
13959         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
13960         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
13961         * toplev.c (compile_file): Don't call it.
13962
13963 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
13964
13965         PR middle-end/35526
13966         * expr.c (store_expr): Call emit_block_move if the mode
13967         of "temp" RTX is BLKmode.
13968
13969 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13970             Richard Guenther  <rguenther@suse.de>
13971
13972         PR tree-optimization/31358
13973         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
13974         the step with a NULL_TREE.
13975         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
13976         to sizetype if type is a pointer type.
13977         (add_candidate_1): Don't convert the base and step to
13978         the generic type if the orginal type is a pointer type.
13979         (add_iv_value_candidates): Use sizetype for the step
13980         if type is a pointer type.
13981         (cand_value_at): Likewise.
13982         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
13983         for pointer types.
13984         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
13985         Don't convert the tem affine to the type.
13986         (add_elt_to_tree): Use sizetype for the step if a pointer.
13987         Use POINTER_PLUS_EXPR for pointers.
13988         (aff_combination_to_tree): Use sizetype for the step if a
13989         pointer.
13990
13991 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
13992
13993         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
13994         Remove commutativity hint.
13995
13996 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
13997
13998         PR c/35438
13999         PR c/35439
14000         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
14001         errorneous type.  Check that v is a VAR_DECL.
14002
14003         PR middle-end/35099
14004         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
14005
14006 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
14007
14008         PR tree-optimization/35494
14009         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
14010         may be overriden at link and run time.
14011
14012 2008-03-10  Richard Guenther  <rguenther@suse.de>
14013
14014         PR tree-optimization/34677
14015         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
14016         (poolify_tree): Likewise.
14017         (modify_expr_template): Likewise.
14018         (poolify_modify_stmt): Likewise.
14019         (insert_fake_stores): Handle all component-ref style stores
14020         in addition to INDIRECT_REF.  Also handle complex types.
14021         Do not poolify the inserted load.
14022         (realify_fake_stores): Do not rebuild the tree but only
14023         make it a SSA_NAME copy.
14024         (init_pre): Remove initialzation of modify_expr_template.
14025         Do not allocate modify_expr_node_pool.
14026         (fini_pre): Do not free modify_expr_node_pool.
14027
14028 2008-03-10  Paul Brook  <paul@codesourcery.com>
14029
14030         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
14031         to avoid conflicts.
14032
14033 2008-03-10  Paul Brook  <paul@codesourcery.com>
14034             Mark Shinwell  <shinwell@codesourcery.com>
14035
14036         * config/arm/cortex-r4.md: New.
14037         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
14038         insn attributes.
14039         * config/arm/arm.md: Include cortex-r4.md.
14040         (insn): Add smmls, sdiv and udiv values.
14041         (generic_sched): Don't use generic scheduling for Cortex-R4.
14042         (arm_issue_rate): New function.
14043         (TARGET_SCHED_ISSUE_RATE): Define.
14044
14045 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
14046
14047         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
14048
14049 2008-03-10  Richard Guenther  <rguenther@suse.de>
14050
14051         * tree-ssa-pre.c (get_sccvn_value): Simplify.
14052         (compute_avail): Do not add stmt uses to AVAIL_OUT.
14053
14054 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
14055
14056         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
14057         Set default to true.
14058
14059 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14060
14061         * c.opt (Wsynth): Deprecate.
14062         * doc/invoke.texi (Option Summary, Warning Options): Document
14063         -Wno-format-contains-nul.
14064
14065 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
14066
14067         PR target/35496
14068         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
14069         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
14070
14071 2008-03-09  Ira Rosen  <irar@il.ibm.com>
14072
14073         * config/rs6000/rs6000.c (builtin_description): Rename vector
14074         left shift operations.
14075         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
14076         (altivec_vsl<VI_char>): Rename to ...
14077         (ashl<mode>3): ... new name.
14078         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
14079         gen_ashlv4si3.
14080         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
14081
14082 2008-03-08  Richard Guenther  <rguenther@suse.de>
14083
14084         * coverage.h (tree_coverage_counter_addr): Declare.
14085         * coverage.c (tree_coverage_counter_addr): New function.
14086         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
14087         before using again.
14088         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
14089         (tree_gen_one_value_profiler): Likewise.
14090         (tree_gen_ic_profiler): Likewise.
14091         (tree_gen_average_profiler): Likewise.
14092         (tree_gen_ior_profiler): Likewise.
14093
14094 2008-03-08  Richard Guenther  <rguenther@suse.de>
14095
14096         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
14097         (vn_binary_op_insert): Likewise.
14098         (vn_unary_op_lookup): Likewise.
14099         (vn_unary_op_insert): Likewise.
14100         (vn_nary_op_lookup): Declare.
14101         (vn_nary_op_insert): Likewise.
14102         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
14103         and binary hashes, use a single obstack for unary_op_pool
14104         and binary_op_pool.
14105         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
14106         a single struct vn_nary_op_s.  Store tree code length and
14107         a variable number of operands.
14108         (struct vn_reference_op_struct): Remove unused op2.
14109         (vn_reference_op_eq): Do not compare op2.
14110         (vn_reference_op_compute_hash): Do not compute hash of op2.
14111         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
14112         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
14113         with vn_nary_op_compute_hash.
14114         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
14115         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
14116         vn_nary_op_lookup.
14117         (vn_unary_op_insert, vn_binary_op_insert): Replace with
14118         vn_nary_op_insert.
14119         (visit_unary_op): Call nary functions.
14120         (visit_binary_op): Likewise.
14121         (process_scc): Adjust for struct vn_tables_s changes.
14122         (allocate_vn_table): Likewise.
14123         (free_vn_table): Likewise.
14124         * tree-vn.c (vn_add): Call nary functions.
14125         (vn_lookup): Likewise.
14126
14127 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
14128
14129         PR target/35498
14130         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
14131         wdst back after sync_compare_and_swapqhi_internal.
14132
14133 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
14134
14135         PR target/22152
14136         * config/i386/i386-modes.def (V1DI): New vector mode.
14137         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
14138         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
14139         (MMXMODE248): Ditto.
14140         (MMXMODE): Add V1DI mode.
14141         (mmxvecsize): Change DI mode to V1DI mode.
14142         ("mov<mode>): Use MMXMODEI8 mode iterator.
14143         ("*mov<mode>_internal_rex64"): Ditto.
14144         ("*mov<mode>_internal"): Ditto.
14145         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
14146         ("mmx_sub<mode>3"): Ditto.
14147         ("mmx_adddi3"): Remove insn pattern.
14148         ("mmx_subdi3"): Ditto.
14149         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
14150         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
14151         ("mmx_ashl<mode>3"): Ditto.
14152         ("mmx_lshrdi3"): Remove insn pattern.
14153         ("mmx_ashldi3"): Ditto.
14154         * config/i386/i386.c (classify_argument): Handle V1DImode.
14155         (function_arg_advance_32): Ditto.
14156         (function_arg_32): Ditto.
14157         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
14158         mmx_addv1di3 insn pattern.
14159         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
14160         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
14161         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
14162         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
14163         Remove definitions of built-in functions.
14164         (V1DI_type_node): New node.
14165         (v1di_ftype_v1di_int): Ditto.
14166         (v1di_ftype_v1di_v1di): Ditto.
14167         (v2si_ftype_v2si_si): Ditto.
14168         (v4hi_ftype_v4hi_di): Remove node.
14169         (v2si_ftype_v2si_di): Ditto.
14170         (ix86_init_mmx_sse_builtins): Handle V1DImode.
14171         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
14172         Redefine builtins using def_builtin_const with *_ftype_*_int node.
14173         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
14174         Add new builtins using def_builtin_const.
14175         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
14176         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
14177         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
14178         * config/i386/mmintrin.h (__v1di): New typedef.
14179         (_mm_add_si64): Cast arguments to __v1di type.
14180         (_mm_sub_si64): Ditto.
14181         (_mm_sll_pi16): Cast __count to __v4hi type.
14182         (_mm_sll_pi32): Cast __count to __v2si type.
14183         (_mm_sll_si64): Cast arguments to __v1di type.
14184         (_mm_srl_pi16): Cast __count to __v4hi type.
14185         (_mm_srl_pi32): Cast __count to __v2si type.
14186         (_mm_srl_si64): Cast arguments to __v1di type.
14187         (_mm_sra_pi16): Cast __count to __v4hi type.
14188         (_mm_sra_pi32): Cast __count to __v2si type.
14189         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
14190         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
14191         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
14192         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
14193         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
14194         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
14195         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
14196         (_mm_srai_pi32): Use __builtin_ia32_psradi.
14197         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
14198         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
14199         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
14200         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
14201
14202 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
14203
14204         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
14205
14206 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
14207
14208         PR target/35373
14209         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
14210         reg+const addressing for Altivec modes.  Don't generate reg+reg
14211         addressing for TFmode or TDmode quantities.
14212
14213 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
14214
14215         * c-common.c (vector_types_convertible_p): Call langhook
14216         instead of comptypes.
14217
14218 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14219
14220         PR tree-opt/35402
14221         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
14222         integral and scalar float variables which have a
14223         NULL DECL_INITIAL.
14224
14225 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
14226
14227         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
14228         dwarf_register_span hook when emitting unwind information for
14229         register-to-memory saves.
14230         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
14231         (rs6000_frame_related): Remove call to spe_synthesize_frame.
14232
14233 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
14234
14235         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
14236         for the same VAR_DECL.
14237
14238 2008-03-06  Tom Tromey  <tromey@redhat.com>
14239
14240         * treelang: Delete.
14241         * doc/standards.texi (Standards): Don't mention treelang.
14242         * doc/invoke.texi (Overall Options): Don't mention treelang.
14243         * doc/install.texi (Prerequisites): Don't mention bison or
14244         treelang.
14245         (Configuration): Don't mention treelang.
14246         (Building): Likewise.
14247         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
14248
14249 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
14250
14251         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
14252         word-extractions out of a multi-word object.
14253
14254 2008-03-06  Richard Guenther  <rguenther@suse.de>
14255
14256         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
14257         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
14258         result type and precision.
14259         * expr.c (get_inner_reference): Set unsignedp based on the result
14260         type of BIT_FIELD_REF.
14261         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
14262         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
14263         (try_instantiate_multiple_fields): Likewise.  Use the correct type
14264         for BIT_FIELD_REF.
14265         (sra_build_assignment): Likewise.
14266         (sra_build_elt_assignment): Likewise.
14267         (sra_explode_bitfield_assignment): Likewise.
14268         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
14269         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
14270         set BIT_FIELD_REF_UNSIGNED.
14271         (vectorizable_load): Likewise.
14272
14273 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
14274
14275         * cse.c (cse_extended_basic_block): Invalidate artificial defs
14276         at bb start.
14277
14278 2008-03-06  Richard Guenther  <rguenther@suse.de>
14279
14280         * alias.c (struct alias_set_entry): Move has_zero_child field
14281         to pack with alias_set.
14282
14283 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
14284
14285         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14286         32bit host.
14287
14288 2008-03-05  Ian Lance Taylor  <iant@google.com>
14289
14290         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
14291
14292 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
14293
14294         * fwprop.c (update_df): Support width and offset parameters of
14295         df_ref_create.
14296         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
14297         global_conflicts): Change DF_REF_EXTRACT to either
14298         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
14299         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
14300         * df-scan.c (df_ref_record, df_defs_record,
14301         df_ref_create_structure, df_def_record_1, df_uses_record,
14302         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
14303         df_bb_refs_collect, df_entry_block_defs_collect,
14304         df_exit_block_uses_collect): Support new width and offset fields.
14305         (ref_extract_pool): New storage pool.
14306         (df_free_ref): New function.
14307         (df_reg_chain_unlink, df_free_collection_rec,
14308         df_sort_and_compress_refs): Call df_free_ref.
14309         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
14310         of df_ref_extract.
14311         (df_ref_create_structure): Allocate df_ref_extract if offset and
14312         width fields are used.
14313         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
14314         (df_uses_record): Get offset and width from ZERO_EXTRACT
14315         and SIGN_EXTRACT.
14316         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
14317         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
14318         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
14319         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
14320         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
14321         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
14322         (df_ref_extract): New structure.
14323         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
14324         (df_ref_create): Add width and offset parameters.
14325
14326 2008-03-05  Richard Guenther  <rguenther@suse.de>
14327
14328         * tree-ssa-structalias.c (get_constraint_for_component_ref):
14329         Use ranges_overlap_p.
14330         (offset_overlaps_with_access): Rename
14331         to ranges_overlap_p and move ...
14332         * tree-flow-inline.h (ranges_overlap_p): ... here.
14333
14334         * tree.h (get_inner_reference, handled_component_p): Update
14335         comments.
14336
14337         * tree.h (record_component_aliases, get_alias_set,
14338         alias_sets_conflict_p, alias_sets_must_conflict_p,
14339         objects_must_conflict_p): Move declarations ...
14340         * alias.h (record_component_aliases, get_alias_set,
14341         alias_sets_conflict_p, alias_sets_must_conflict_p,
14342         objects_must_conflict_p): ... here.
14343         Include coretypes.h.
14344         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
14345
14346 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
14347
14348         * cfg.c: Include tree-flow.h.
14349         (remove_edge_raw): Call redirect_edge_var_map_clear.
14350         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
14351         * tree-flow-inline.h (redirect_edge_var_map_def): New.
14352         (redirect_edge_var_map_result): New.
14353         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
14354         PENDING_STMT use with redirect_edge_var_map_*.
14355         * tree-ssa.c (edge_var_maps): New definition.
14356         (redirect_edge_var_map_add): New.
14357         (redirect_edge_var_map_clear): New.
14358         (redirect_edge_var_map_dup): New.
14359         (redirect_edge_var_map_vector): New.
14360         (redirect_edge_var_map_destroy): New.
14361         (ssa_redirect_edge): Replace PENDING_STMT use with
14362         redirect_edge_var_map_*.
14363         (flush_pending_stmts): Same.
14364         (delete_tree_ssa): Destroy edge var map.
14365         * tree-flow.h (struct _edge_var_map): New.
14366         Define edge_var_map vector type.
14367         Declare redirect_edge_var_map_* prototypes.
14368         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
14369         * tree-cfg.c (reinstall_phi_args): Replace
14370         PENDING_STMT use with redirect_edge_var_map_*.
14371
14372 2008-03-05  Richard Guenther  <rguenther@suse.de>
14373
14374         PR tree-optimization/35472
14375         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
14376         whose single use_stmt has a overlapping set of loaded and
14377         stored symbols as that use_stmt might be a noop assignment then.
14378
14379 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
14380
14381         * gthr-rtems.h: Implement __gthread_mutex_destroy.
14382
14383 2008-03-05  Richard Guenther  <rguenther@suse.de>
14384
14385         PR c++/35336
14386         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
14387         should be constants.
14388         * tree-cfg.c (verify_expr): Verify it.
14389         * fold-const.c (fold_truthop): Remove code generating
14390         BIT_FIELD_REFs of structure bases.
14391         (fold_binary): Likewise.
14392         (fold_ternary): Position and size of BIT_FIELD_REFs are
14393         always host integers.
14394         (make_bit_field_ref): Remove.
14395         (optimize_bit_field_compare): Remove.
14396         (all_ones_mask_p): Remove.
14397
14398 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
14399
14400         PR gcc/33009
14401         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
14402         (split_block_and_df_analyze): New. Split basic block and rebuild
14403         dataflow.
14404         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
14405         SPLIT_BLOCK.
14406         (split_pattern_seq): Likewise.
14407         (erase_matching_seqs): Likewise.
14408         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
14409
14410 2008-03-04  Geoff Keating  <geoffk@apple.com>
14411
14412         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
14413         declaration and code.
14414         (tree_invalid_nonnegative_warnv_p): Likewise.
14415
14416 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
14417
14418         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
14419         examples.  Truncate option-names then causing overfull hbox.
14420
14421 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14422
14423         PR target/35222
14424         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
14425         on hpux10.
14426         * configure: Rebuilt.
14427
14428 2008-03-04  Rafael Espindola  <espindola@google.com>
14429
14430         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
14431         (tree_unary_nonnegative_warnv_p): New.
14432         (tree_binary_nonnegative_warnv_p): New.
14433         (tree_single_nonnegative_warnv_p): New.
14434         (tree_invalid_nonnegative_warnv_p): New.
14435         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
14436
14437 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14438
14439         PR 28322
14440         * opts.c (handle_option): Postpone 'unknown option' errors only for
14441         warning options.
14442
14443 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
14444
14445         PR target/35453
14446         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
14447         (_SIDD_XXX): This.
14448
14449 2008-03-04  Rafael Espindola  <espindola@google.com>
14450
14451         * fold-const.c (tree_unary_nonzero_warnv_p): New.
14452         (tree_binary_nonzero_warnv_p): New.
14453         (tree_single_nonzero_warnv_p): New.
14454         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
14455
14456 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
14457
14458         PR middle-end/35456
14459         * fold-const.c (fold_cond_expr_with_comparison): Prevent
14460         transformations for modes that have signed zeros.
14461         * ifcvt.c (noce_try_abs): Ditto.
14462
14463 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
14464
14465         * config/i386/i386.c (override_options): Force
14466         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
14467
14468 2008-03-04  Jan Hubicka  <jh@suse.cz>
14469
14470         PR c++/35262
14471         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
14472         in last commit.
14473
14474 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
14475
14476         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
14477         label to probe the stack.
14478
14479 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
14480
14481         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
14482         (__gthr_win32_mutex_destroy): Declare.
14483         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
14484         __gthr_win32_mutex_destroy.
14485         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
14486
14487 2008-03-03  Jan Hubicka  <jh@suse.cz>
14488
14489         PR c++/35262
14490         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
14491         aggressive on inlining cold calls.
14492
14493 2008-03-03  Richard Guenther  <rguenther@suse.de>
14494
14495         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
14496         struct copies into the expression table.
14497         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
14498         (try_to_simplify): Likewise.
14499         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
14500         integral and pointer arguments which do not change the
14501         precision to NOP_EXPRs.
14502         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
14503         VIEW_CONVERT_EXPR case.
14504
14505 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
14506
14507         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
14508         defined in a loop at depth 0 is invariant.
14509         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
14510         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
14511         be called at loop depth 0.
14512
14513 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
14514
14515         PR driver/35420
14516         * gcc.c (process_command): Update copyright notice dates.
14517         * gcov.c (print_version): Likewise.
14518         * gcov-dump.c (print_version): Likewise.
14519         * mips-tfile.c (main): Likewise.
14520         * mips-tdump.c (main): Likewise.
14521
14522 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14523
14524         PR 24924
14525         * c-common.c (flag_permissive): Delete.
14526         (constant_expression_warnings): Check flags first.
14527         (constant_expression_error): New.
14528         * c-common.h (flag_permissive): Delete.
14529         (constant_expression_error): Declare.
14530         * flags.h (flag_permissive): Declare. Update description.
14531         * diagnostic.c (pedwarn): Update.
14532         (permerror): New.
14533         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
14534         (permissive_error_kind): New.
14535         * toplev.c (flag_permissive): Define. Update description.
14536         * toplev.h (permissive_error_kind): Declare.
14537         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
14538         (pedwarn_c90): Use pedantic_warning_kind.
14539         * c-opts.c (c_common_post_options): flag_permissive does not affect
14540         flag_pedantic_errors.
14541
14542 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
14543
14544         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
14545         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
14546         __absvsi2, __absvDI2): Use unsigned arithmetic.
14547
14548 2008-03-02  Andi Kleen  <ak@suse.de>
14549             Richard Guenther  <rguenther@suse.de>
14550
14551         * struct-equiv.c: Remove file.
14552         * cfg_cleanup.c (condjump_equiv_p): Remove.
14553         * Makefile.in (OBJS-common): Remove struct-equiv.o.
14554         (struct-equiv.o): Remove rule.
14555         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
14556         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
14557         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
14558
14559 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
14560
14561         * ifcvt.c (noce_process_if_block): Try to handle only the then
14562         block if the else block exists but isn't suitable.
14563
14564 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
14565
14566         PR gcc/35063
14567         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
14568         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
14569         regression from previous patch.
14570
14571 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
14572
14573         PR gcc/35063
14574         * gthr.h: Add __gthread_mutex_destroy as a function that must be
14575         implemented.
14576         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
14577         * gthr-single.h (__gthread_mutex_destroy): Likewise.
14578         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
14579         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
14580         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
14581         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
14582         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
14583         (__gthread_mutex_destroy_function): Rename to
14584         __gthread_mutex_destroy.
14585         * gthr-dce.h (__gthread_mutex_destroy): Call
14586         pthread_mutex_destroy.
14587         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
14588         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
14589         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
14590
14591 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
14592
14593         * df-scan.c (df_ref_chain_change_bb): Simplify.
14594         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
14595         set_block_for_insn if there's any change.
14596         * df.h ((df_insn_change_bb): Fix prototype.
14597         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
14598         df_insn_change_bb, don't call set_block_for_insn.
14599         * emit-rtl.c (reorder_insns): Likewise.
14600         * haifa-sched.c (move_insn): Likewise.
14601
14602 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
14603
14604         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
14605
14606 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
14607
14608         * tree-flow-inline.h (next_readonly_imm_use): Return
14609         NULL_USE_OPERAND_P after the end.
14610
14611 2008-03-01  Richard Guenther  <rguenther@suse.de>
14612
14613         PR tree-optimization/35411
14614         * tree-sra.c (sra_build_assignment): Split conversion to
14615         final type to a separate statement if we are not assigning
14616         to a register.
14617
14618 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
14619
14620         * fold-const.c (fold_convertible_p): Correct the logic to follow
14621         that in fold_convert().
14622
14623 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
14624
14625         PR c++/35315
14626         * tree-inline.c (build_duplicate_type): When we make a
14627         duplicate type, make it unique in the canonical types system.
14628
14629 2008-02-29  Tom Tromey  <tromey@redhat.com>
14630
14631         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
14632         input_file_stack_history, input_file_stack_restored): Remove.
14633         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
14634         * input.h (struct file_stack): Remove.
14635         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
14636         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
14637         Likewise.
14638         * diagnostic.h (struct diagnostic_context) <last_module>: Change
14639         type.
14640         (diagnostic_last_module_changed): Add 'map' argument.
14641         (diagnostic_set_last_function): Likewise.
14642         * diagnostic.c (undiagnostic_report_current_module): Iterate using
14643         line map, not input_file_stack.
14644         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
14645
14646 2008-02-29  Paul Brook  <paul@codesourcery.com>
14647
14648         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
14649
14650 2008-02-29  Paul Brook  <paul@codesourcery.com>
14651
14652         * config/arm/ieee754-df.S (muldf3): Use RET macros.
14653
14654 2008-02-29  Richard Guenther  <rguenther@suse.de>
14655
14656         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
14657         vn_lookup_or_add.
14658         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
14659         value for comparing for a store match.
14660         (simplify_unary_expression): Do nothing for SSA_NAMEs.
14661         (try_to_simplify): Do not do a full-blown reference lookup.
14662
14663 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
14664
14665         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
14666         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
14667
14668         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
14669
14670 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
14671
14672         * tree-loop-linear.c (try_interchange_loops): Compare memory access
14673         strides against cache sizes.
14674
14675 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
14676
14677         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
14678         constant to fpul.
14679
14680 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
14681
14682         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
14683         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
14684         is smaller than the original promoted value.
14685         (simplify_subreg): If OP is a SUBREG, try to preserve its
14686         SUBREG_PROMOTED_VAR_P information.
14687
14688 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
14689
14690         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
14691         (VN_INFO_GET): Allocate new objects on the obstack.
14692         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
14693         for rpo_numbers_temp, for consistency.
14694         (free_scc_vn): Free the obstack.
14695
14696 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
14697
14698         * doc/invoke.texi: Document -ftree-loop-distribution.
14699         * tree-loop-distribution.c: New.
14700         * tree-pass.h (pass_loop_distribution): New.
14701         * graphds.h (struct graph): Add htab_t indices.
14702         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
14703         * tree-vectorizer.c (rename_variables_in_loop): Extern.
14704         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
14705         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
14706         * tree-data-ref.c (debug_data_dependence_relations): New.
14707         (dump_data_dependence_relation): Also print data references.
14708         (free_data_ref): Extern.
14709         (same_access_functions): Moved...
14710         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
14711         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14712         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
14713         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
14714         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
14715         (stmts_from_loop): Skip LABEL_EXPR.
14716         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
14717         New.
14718         (build_rdg): Initialize rdg->indices htab.
14719         (free_rdg, stores_from_loop, ref_base_address,
14720         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
14721         have_similar_memory_accesses_1, ref_base_address_1,
14722         remove_similar_memory_refs): New.
14723         * tree-data-ref.h: Depend on tree-chrec.h.
14724         (debug_data_dependence_relations, free_data_ref): Declared.
14725         (same_access_functions): ... here.
14726         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
14727         New.
14728         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
14729         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
14730         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
14731         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14732         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
14733         rdg_vertex_for_stmt): Declared.
14734         (struct rdg_edge): Add level.
14735         (RDGE_LEVEL): New.
14736         (free_rdg, stores_from_loop, remove_similar_memory_refs,
14737         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
14738         Declared.
14739         (rdg_has_similar_memory_accesses): New.
14740         * tree-vect-analyze.c: Remove unused static decls.
14741         * lambda.h (dependence_level): New.
14742         * common.opt (ftree-loop-distribution): New.
14743         * tree-flow.h (mark_virtual_ops_in_bb,
14744         slpeel_tree_duplicate_loop_to_edge_cfg,
14745         rename_variables_in_loop): Declared.
14746         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
14747         (OBJS-common): Add tree-loop-distribution.o.
14748         (tree-loop-distribution.o): New rule.
14749         * tree-cfg.c (mark_virtual_ops_in_bb): New.
14750         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
14751         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
14752
14753 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
14754
14755         PR target/33963
14756         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
14757         other than structures and unions.
14758
14759 2008-02-28  Richard Guenther  <rguenther@suse.de>
14760
14761         Revert:
14762         2008-02-26  Richard Guenther  <rguenther@suse.de>
14763
14764         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14765         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14766         (lookup_decl_from_uid): Declare.
14767         (remove_decl_from_map): Likewise.
14768         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14769         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14770         (decl_for_uid_map): New global hashtable mapping DECL_UID
14771         to the decl tree.
14772         (init_ttree): Allocate it.
14773         (insert_decl_to_uid_decl_map): New helper function.
14774         (make_node_stat): Insert new decls into the map.
14775         (copy_node_stat): Likewise.
14776         (lookup_decl_from_uid): New function.
14777         (remove_decl_from_map): Likewise.
14778         (print_decl_for_uid_map_statistics): New helper.
14779         (dump_tree_statistics): Call it.
14780
14781         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14782         (referenced_var_iterator): Adjust.
14783         (FOR_EACH_REFERENCED_VAR): Adjust.
14784         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14785         (num_referenced_vars): Adjust.
14786         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14787         (first_referenced_var): Remove.
14788         (end_referenced_vars_p): Likewise.
14789         (next_referenced_var): Likewise.
14790         (referenced_var_iterator_set): New helper function.
14791         * tree-dfa.c (referenced_var_lookup): Adjust.
14792         (referenced_var_check_and_insert): Likewise.
14793         (remove_referenced_var): Likewise.
14794         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14795         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14796         (verify_call_clobbering): Likewise.
14797         (verify_memory_partitions): Likewise.
14798         (init_tree_ssa): Allocate bitmap instead of hashtable for
14799         referenced_vars.
14800         (delete_tree_ssa): Adjust.
14801         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14802         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14803         (compute_tag_properties): Likewise.
14804         (set_initial_properties): Likewise.
14805         (find_partition_for): Likewise.
14806         (update_reference_counts): Likewise.
14807         (dump_may_aliases_for): Likewise.
14808         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14809         (add_call_clobber_ops): Likewise.
14810         (add_call_read_ops): Likewise.
14811         (get_asm_expr_operands): Likewise.
14812         * tree-into-ssa.c (dump_decl_set): Likewise.
14813         (update_ssa): Likewise.
14814         * tree-sra.c (scan_function): Likewise.
14815         (decide_instantiations): Likewise.
14816         (scalarize_parms): Likewise.
14817         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14818         (dsa_named_for): Likewise.
14819         * tree-ssa-structalias.c (update_alias_info): Likewise.
14820         (merge_smts_into): Likewise.
14821
14822 2008-02-27  David Daney  <ddaney@avtrex.com>
14823
14824         PR target/34409
14825         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
14826         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
14827         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
14828         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
14829         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
14830
14831 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
14832
14833         PR target/25477
14834         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
14835         (BUILT_IN_NEXTTOWARD): Remove.
14836         (BUILT_IN_NEXTTOWARDF): Ditto.
14837         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
14838         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
14839
14840 2008-02-27  Tom Tromey  <tromey@redhat.com>
14841
14842         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
14843         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
14844
14845 2008-02-27  Jan Beulich  <jbeulich@novell.com>
14846
14847         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
14848         update the respective field on newdecl.
14849
14850 2008-02-27  Revital Eres  <eres@il.ibm.com>
14851
14852         PR rtl-optimization/34999
14853         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
14854         crossing edges that ends with a call insn.
14855         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
14856         call insn and clear the EDGE_CROSSING flag of the crossing edge
14857         when fixing fallthru edges.
14858
14859 2008-02-27  Richard Guenther  <rguenther@suse.de>
14860
14861         PR middle-end/35390
14862         * fold-const.c (fold_unary): Return the correct argument,
14863         converted to the result type.
14864
14865 2008-02-27  Richard Guenther  <rguenther@suse.de>
14866
14867         PR middle-end/34971
14868         * expr.c (expand_expr_real_1): Assert on rotates that operate
14869         on partial modes.
14870         * fold-const.c (fold_binary): Use the types precision, not the
14871         bitsize of the mode if folding rotate expressions.  Build rotates
14872         only for full modes.
14873
14874 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
14875
14876         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
14877         and CPP_PRAGMA_EOL.
14878         * c-pragma.c (pragma_ns_name): New typedef.
14879         (registered_pp_pragmas): New variable.
14880         (c_pp_lookup_pragma): New function.
14881         (c_register_pragma_1): If flag_preprocess_only, do nothing
14882         for non-expanded pragmas, for expanded ones push pragma's
14883         namespace and name into registered_pp_pragmas vector.
14884         (c_invoke_pragma_handler): Register OpenMP pragmas even when
14885         flag_preprocess_only, don't register GCC pch_preprocess
14886         pragma if flag_preprocess_only.
14887         * c-opts.c (c_common_init): Call init_pragma even if
14888         flag_preprocess_only.
14889         * c-pragma.c (c_pp_lookup_pragma): New prototype.
14890         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
14891         cpp_register_pragma if flag_preprocess_only.
14892
14893 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14894
14895         PR c/28800
14896         * c-parser.c (c_parser_translation_unit): Warn for empty
14897         translation unit, not empty source file.
14898
14899 2008-02-26  Paul Brook  <paul@codesourcery.com>
14900
14901         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
14902         operand for Thumb-2.
14903         * config/arm/arm.h (reg_class): Add CORE_REGS.
14904         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
14905         (BASE_REG_CLASS): Use CORE_REGS.
14906         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
14907         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
14908         (REGNO_OK_FOR_INDEX_P): Exclude SP.
14909         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
14910         ARM_REGNO_OK_FOR_INDEX_P.
14911         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
14912         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
14913         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
14914         (ldm/stm peepholes): Ditto.
14915         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
14916         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
14917         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
14918         * config/arm/constraints.md: Enable "k" constraint on ARM.
14919
14920 2008-02-27  Ben Elliston  <bje@au.ibm.com>
14921
14922         * config/rs6000/rs6000.c: Annotate cache line size field in all
14923         instances of struct processor_costs.
14924
14925 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
14926
14927         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
14928         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
14929         jump_bypass): New counters.
14930         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
14931         * dce.c (gate_ud_dce): Same.
14932         (gate_fast_dce): Same.
14933         * dse.c (gate_dse1): New function.
14934         (gate_dse2): New function.
14935         (gate_dse): Merge results of new gate functions.
14936         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
14937         (gate_handle_jump_bypass): Add dbg_cnt.
14938         (gate_handle_gcse): Add dbg_cnt.
14939         * ifcvt.c (gate_handle_if_conversion): Same.
14940         (gate_handle_if_after_combine): Same.
14941         (gate_handle_if_after_reload): Same.
14942         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
14943
14944 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
14945
14946         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
14947         line sizes.
14948         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
14949
14950 2008-02-26  Jason Merrill  <jason@redhat.com>
14951
14952         PR c++/35315
14953         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
14954         alone if it's the naming decl for the type's main variant.
14955
14956 2008-02-26  Tom Tromey  <tromey@redhat.com>
14957
14958         * system.h (USE_MAPPED_LOCATION): Poison.
14959         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
14960         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
14961         (make_goto_expr_edges): Likewise.
14962         (remove_bb): Likewise.
14963         (execute_warn_function_return): Likewise.
14964         * basic-block.h (struct edge_def) <goto_locus>: Change type to
14965         location_t.
14966         * c-common.c (fname_decl): Remove old location code.
14967         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
14968         location code.
14969         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
14970         variant.
14971         (ASM_INPUT_SOURCE_LOCATION): Likewise.
14972         (gen_rtx_ASM_INPUT): Likewise.
14973         (gen_rtx_ASM_INPUT_loc): Likewise.
14974         (get_rtx_asm_OPERANDS): Remove.
14975         * cfglayout.c (insn_locators_alloc): Remove old location code.
14976         (set_curr_insn_source_location): Likewise.
14977         (curr_insn_locator): Likewise.
14978         * print-tree.c (print_node): Remove old location code.
14979         * tree-mudflap.c (mf_varname_tree): Remove old location code.
14980         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
14981         * cfgexpand.c (expand_gimple_cond_expr): Don't use
14982         location_from_locus.
14983         (construct_exit_block): Remove old location code.
14984         * emit-rtl.c (force_next_line_note): Remove old location code.
14985         * profile.c (branch_prob): Remove old location code.
14986         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
14987         LOC_LINE): Remove old-location variants.
14988         * langhooks.c (lhd_print_error_function): Remove old location
14989         code.
14990         * configure, config.in: Rebuilt.
14991         * configure.ac (--enable-mapped-location): Remove.
14992         * c-decl.c (c_init_decl_processing): Remove old location code.
14993         (finish_function): Likewise.
14994         * recog.c (decode_asm_operands): Remove old location code.
14995         * c-pch.c (c_common_read_pch): Remove old location code.
14996         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
14997         variants.
14998         * gimple-low.c (lower_function_body): Remove old location code.
14999         * toplev.c (unknown_location): Remove.
15000         (push_srcloc): Remove old-location variant.
15001         (process_options): Remove old location code.
15002         (lang_dependent_init): Likewise.
15003         * input.h (UNKNOWN_LOCATION): Move definition.
15004         (location_t): Undeprecate.
15005         (source_locus): Remove.
15006         (location_from_locus): Remove.
15007         (struct location_s): Remove.
15008         Remove all old-location code.
15009         (input_line, input_filename): Remove.
15010         * final.c (final_scan_insn): Remove old location code.
15011         * diagnostic.c (diagnostic_build_prefix): Remove
15012         USE_MAPPED_LOCATION test.
15013         * tree.h (gimple_stmt) <locus>: Now a location_t.
15014         (tree_exp) <locus>: Likewise.
15015         (DECL_IS_BUILTIN): Remove old-location variant.
15016         (annotate_with_file_line, annotate_with_locus): Likewise.
15017         (expr_locus, set_expr_locus): Update.
15018         * tree.c (build1_stat): Remove old location code.
15019         (last_annotated_node): Remove.
15020         (annotate_with_file_line): Remove old-location variant.
15021         (annotate_with_locus): Likewise.
15022         (expr_location): Remove old location code.
15023         (set_expr_location): Likewise.
15024         (expr_has_location): Likewise.
15025         (expr_locus): Likewise.
15026         (set_expr_locus): Likewise.
15027         (expr_filename): Don't use location_from_locus.
15028         (expr_lineno): Likewise.
15029         * rtl-error.c (location_for_asm): Remove old location code.
15030         * c-lex.c (cb_line_change): Remove old location code.
15031         (fe_file_change): Likewise.
15032         (cb_def_pragma): Likewise.
15033         (c_lex_with_flags): Likewise.
15034         * gengtype.c (do_typedef): Don't special-case location types.
15035         (define_location_structures): Remove.
15036         (main): Don't call define_location_structures.
15037         * tree-pretty-print.c (dump_implicit_edges): Remove old location
15038         code.
15039
15040 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15041
15042         PR 26264
15043         * builtins.def (BUILT_IN_STDARG_START): Remove.
15044         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
15045         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
15046         * tree-inline.c (inline_forbidden_p_1): Likewise.
15047
15048 2008-02-26  Richard Guenther  <rguenther@suse.de>
15049
15050         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
15051         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
15052         (lookup_decl_from_uid): Declare.
15053         (remove_decl_from_map): Likewise.
15054         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
15055         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
15056         (decl_for_uid_map): New global hashtable mapping DECL_UID
15057         to the decl tree.
15058         (init_ttree): Allocate it.
15059         (insert_decl_to_uid_decl_map): New helper function.
15060         (make_node_stat): Insert new decls into the map.
15061         (copy_node_stat): Likewise.
15062         (lookup_decl_from_uid): New function.
15063         (remove_decl_from_map): Likewise.
15064         (print_decl_for_uid_map_statistics): New helper.
15065         (dump_tree_statistics): Call it.
15066
15067         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
15068         (referenced_var_iterator): Adjust.
15069         (FOR_EACH_REFERENCED_VAR): Adjust.
15070         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
15071         (num_referenced_vars): Adjust.
15072         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
15073         (first_referenced_var): Remove.
15074         (end_referenced_vars_p): Likewise.
15075         (next_referenced_var): Likewise.
15076         (referenced_var_iterator_set): New helper function.
15077         * tree-dfa.c (referenced_var_lookup): Adjust.
15078         (referenced_var_check_and_insert): Likewise.
15079         (remove_referenced_var): Likewise.
15080         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
15081         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15082         (verify_call_clobbering): Likewise.
15083         (verify_memory_partitions): Likewise.
15084         (init_tree_ssa): Allocate bitmap instead of hashtable for
15085         referenced_vars.
15086         (delete_tree_ssa): Adjust.
15087         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
15088         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15089         (compute_tag_properties): Likewise.
15090         (set_initial_properties): Likewise.
15091         (find_partition_for): Likewise.
15092         (update_reference_counts): Likewise.
15093         (dump_may_aliases_for): Likewise.
15094         * tree-ssa-operands.c (add_virtual_operand): Likewise.
15095         (add_call_clobber_ops): Likewise.
15096         (add_call_read_ops): Likewise.
15097         (get_asm_expr_operands): Likewise.
15098         * tree-into-ssa.c (dump_decl_set): Likewise.
15099         (update_ssa): Likewise.
15100         * tree-sra.c (scan_function): Likewise.
15101         (decide_instantiations): Likewise.
15102         (scalarize_parms): Likewise.
15103         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
15104         (dsa_named_for): Likewise.
15105         * tree-ssa-structalias.c (update_alias_info): Likewise.
15106         (merge_smts_into): Likewise.
15107
15108 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15109
15110         PR 34351
15111         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
15112         * c-opts.c (c_common_handle_option): Wall enables
15113         Wvolatile-register-var.
15114         * common.opt: Move Wvolatile-register-var to...
15115         * c.opt: ...here.
15116
15117 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15118
15119         * common.opt (Wlarger-than=): New.
15120         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
15121         -Wlarger-than=.
15122         * opts.c (common_handle_option): Handle -Wlarger-than=.
15123         * optc-gen.awk: Likewise.
15124         * opth-gen.awk: Likewise.
15125         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
15126         * tree-optimize.c (tree_rest_of_compilation): Likewise.
15127
15128 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15129
15130         * c-common.c (match_case_to_enum_1): Add appropriate
15131         OPT_W* parameter to warning.
15132         (c_do_switch_warnings): Likewise.
15133         * c-typeck.c (warning_init): Add one more parameter following
15134         'warning' function.
15135         (push_init_level): Update call to warning_init.
15136         (pop_init_level): Likewise.
15137         (add_pending_init): Likewise.
15138         (output_init_element: Likewise.
15139
15140 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15141
15142         PR 28322
15143         * toplev.c (toplev_main): If there are warnings or error, print
15144         errors for ignored options.
15145         * opts.c (ignored_options): New static variable.
15146         (postpone_unknown_option_error): New.
15147         (print_ignored_options): New.
15148         (handle_option): Postpone errors for unknown -Wno-* options.
15149         * opts.h (print_ignored_options): Declare.
15150
15151 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
15152
15153         * config/mips/mips.md (loadgp_blockage, blockage): Change type
15154         to "ghost".
15155
15156 2008-02-25  Richard Guenther  <rguenther@suse.de>
15157
15158         Revert:
15159         2008-02-25  Richard Guenther  <rguenther@suse.de>
15160
15161         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
15162         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
15163         (lookup_decl_from_uid): Declare.
15164         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
15165         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
15166         (decl_for_uid_map): New global hashtable mapping DECL_UID
15167         to the decl tree.
15168         (init_ttree): Allocate it.
15169         (insert_decl_to_uid_decl_map): New helper function.
15170         (make_node_stat): Insert new decls into the map.
15171         (copy_node_stat): Likewise.
15172         (lookup_decl_from_uid): New function.
15173         (print_decl_for_uid_map_statistics): New helper.
15174         (dump_tree_statistics): Call it.
15175
15176         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
15177         (referenced_var_iterator): Adjust.
15178         (FOR_EACH_REFERENCED_VAR): Adjust.
15179         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
15180         (num_referenced_vars): Adjust.
15181         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
15182         (first_referenced_var): Remove.
15183         (end_referenced_vars_p): Likewise.
15184         (next_referenced_var): Likewise.
15185         (referenced_var_iterator_set): New helper function.
15186         * tree-dfa.c (referenced_var_lookup): Adjust.
15187         (referenced_var_check_and_insert): Likewise.
15188         (remove_referenced_var): Likewise.
15189         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
15190         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15191         (verify_call_clobbering): Likewise.
15192         (verify_memory_partitions): Likewise.
15193         (init_tree_ssa): Allocate bitmap instead of hashtable for
15194         referenced_vars.
15195         (delete_tree_ssa): Adjust.
15196         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
15197         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15198         (compute_tag_properties): Likewise.
15199         (set_initial_properties): Likewise.
15200         (find_partition_for): Likewise.
15201         (update_reference_counts): Likewise.
15202         (dump_may_aliases_for): Likewise.
15203         * tree-ssa-operands.c (add_virtual_operand): Likewise.
15204         (add_call_clobber_ops): Likewise.
15205         (add_call_read_ops): Likewise.
15206         (get_asm_expr_operands): Likewise.
15207         * tree-into-ssa.c (dump_decl_set): Likewise.
15208         (update_ssa): Likewise.
15209         * tree-sra.c (scan_function): Likewise.
15210         (decide_instantiations): Likewise.
15211         (scalarize_parms): Likewise.
15212         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
15213         (dsa_named_for): Likewise.
15214         * tree-ssa-structalias.c (update_alias_info): Likewise.
15215         (merge_smts_into): Likewise.
15216
15217 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
15218
15219         PR fortran/29549
15220         * doc/invoke.texi (-fcx-limited-range): Document new option.
15221         * toplev.c (process_options): Handle -fcx-fortran-rules.
15222         * common.opt: Add documentation for -fcx-fortran-rules.
15223
15224 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
15225
15226         PR c/35162
15227         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
15228         actual behaviour and C99.
15229
15230 2008-02-26  Ben Elliston  <bje@au.ibm.com>
15231
15232         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
15233         (ASM_CPU_POWER6_SPEC): Likewise.
15234         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
15235         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
15236         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
15237
15238 2008-02-25  Richard Guenther  <rguenther@suse.de>
15239
15240         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
15241         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
15242         (lookup_decl_from_uid): Declare.
15243         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
15244         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
15245         (decl_for_uid_map): New global hashtable mapping DECL_UID
15246         to the decl tree.
15247         (init_ttree): Allocate it.
15248         (insert_decl_to_uid_decl_map): New helper function.
15249         (make_node_stat): Insert new decls into the map.
15250         (copy_node_stat): Likewise.
15251         (lookup_decl_from_uid): New function.
15252         (print_decl_for_uid_map_statistics): New helper.
15253         (dump_tree_statistics): Call it.
15254
15255         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
15256         (referenced_var_iterator): Adjust.
15257         (FOR_EACH_REFERENCED_VAR): Adjust.
15258         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
15259         (num_referenced_vars): Adjust.
15260         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
15261         (first_referenced_var): Remove.
15262         (end_referenced_vars_p): Likewise.
15263         (next_referenced_var): Likewise.
15264         (referenced_var_iterator_set): New helper function.
15265         * tree-dfa.c (referenced_var_lookup): Adjust.
15266         (referenced_var_check_and_insert): Likewise.
15267         (remove_referenced_var): Likewise.
15268         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
15269         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15270         (verify_call_clobbering): Likewise.
15271         (verify_memory_partitions): Likewise.
15272         (init_tree_ssa): Allocate bitmap instead of hashtable for
15273         referenced_vars.
15274         (delete_tree_ssa): Adjust.
15275         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
15276         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15277         (compute_tag_properties): Likewise.
15278         (set_initial_properties): Likewise.
15279         (find_partition_for): Likewise.
15280         (update_reference_counts): Likewise.
15281         (dump_may_aliases_for): Likewise.
15282         * tree-ssa-operands.c (add_virtual_operand): Likewise.
15283         (add_call_clobber_ops): Likewise.
15284         (add_call_read_ops): Likewise.
15285         (get_asm_expr_operands): Likewise.
15286         * tree-into-ssa.c (dump_decl_set): Likewise.
15287         (update_ssa): Likewise.
15288         * tree-sra.c (scan_function): Likewise.
15289         (decide_instantiations): Likewise.
15290         (scalarize_parms): Likewise.
15291         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
15292         (dsa_named_for): Likewise.
15293         * tree-ssa-structalias.c (update_alias_info): Likewise.
15294         (merge_smts_into): Likewise.
15295
15296 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
15297
15298         PR target/35258
15299         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
15300         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
15301         * alias.h (nonoverlapping_memrefs_p): Likewise.
15302
15303 2008-02-25  Jan Beulich  <jbeulich@novell.com>
15304
15305         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
15306         * config/i386/netware-libgcc.exp: Add __bswap?i2,
15307         __emultls_get_address, __emultls_register_common,
15308         __floatundi?f, and _Unwind_GetIPInfo.
15309         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
15310         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
15311         (gen_regparm_prefix): Likewise.
15312         (i386_nlm_encode_section_info): Sync with
15313         config/i386/winnt.c:i386_pe_encode_section_info().
15314         (i386_nlm_maybe_mangle_decl_assembler_name): New.
15315         i386_nlm_mangle_decl_assembler_name): New.
15316         (netware_override_options): New.
15317         * config/i386/netware.h (netware_override_options): Declare.
15318         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
15319         (i386_nlm_mangle_decl_assembler_name): Declare.
15320         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
15321
15322 2008-02-25  Ben Elliston  <bje@au.ibm.com>
15323
15324         PR other/32948
15325         * c-decl.c (grokdeclarator): Remove unused local variables
15326         `typedef_type' and `type_as_written'.
15327         * bb-reorder.c
15328         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
15329         unused local variable `has_hot_blocks'.
15330         (fix_crossing_conditional_branches): Remove unused local variable
15331         `prev_bb'.
15332
15333 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
15334
15335         PR middle-end/19984
15336         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
15337         using DEF_C99_BUILTIN.
15338         (BUILT_IN_NANF): Ditto.
15339         (BUILT_IN_NANL): Ditto.
15340
15341 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
15342             Revital Eres  <eres@il.ibm.com>
15343
15344         * modulo-sched.c (calculate_must_precede_follow): Address TODO
15345         regarding the order of two dependent insns in the same row.
15346
15347 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
15348
15349         * stor-layout.c (layout_decl): Do not bump the alignment of a
15350         bit-field to more than byte alignment if it is packed.
15351
15352 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
15353
15354         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
15355         e300c2 and e300c3.
15356
15357 2008-02-24  Diego Novillo  <dnovillo@google.com>
15358
15359         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
15360
15361         PR 33738
15362         * tree-vrp.c (vrp_evaluate_conditional): With
15363         -Wtype-limits, emit a warning when comparing against a
15364         constant outside the natural range of OP0's type.
15365         * c.opt (Wtype-limits): Move ...
15366         * common.opt (Wtype-limits): ... here.
15367
15368 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
15369
15370         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
15371         * config/rs6000/e300c2c3.md: New file.
15372         * config/rs6000/rs6000.c (processor_costs): Add new costs for
15373         e300c2 and e300c3.
15374         (rs6000_override_options): Add e300c2 and e300c3 cases to
15375         processor_target_table. Do not allow usage of Altivec or Spe
15376         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
15377         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
15378         * config/rs6000/rs6000.h (processor_type): Add
15379         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
15380         (ASM_CPU_SPEC): Add e300c2 and e300c3.
15381         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
15382         and ppce300c3. Include e300c2c3.md.
15383
15384 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
15385
15386         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
15387         instead of TARGET_STRICT_ALIGN.
15388
15389 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
15390
15391         * explow.c (memory_address): Assert that the generated address is
15392         valid.
15393
15394 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15395
15396         PR target/25477
15397         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
15398         * config/darwin-ppc-ldouble-patch.def: New file.
15399         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
15400         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
15401         SUBTARGET_INIT_BUILTINS if defined.
15402         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
15403         New functions.
15404
15405 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15406
15407         PR rtl-opt/33512
15408         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
15409         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
15410
15411 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15412
15413         PR pch/35027
15414         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
15415         file" warning condtional on -Winvalid-PCH.
15416
15417 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
15418
15419         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
15420
15421 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
15422
15423         PR target/22076
15424         PR target/34256
15425         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
15426         prevent reload from using MMX registers.
15427         (*mov<mode>_internal): Ditto.
15428         (*movv2sf_internal_rex64): Ditto.
15429         (*movv2sf_internal): Ditto.
15430
15431 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15432
15433         PR documentation/31569
15434         * doc/install.texi2html: Use makeinfo --no-number-sections.
15435
15436 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
15437
15438         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
15439         ensure that we can address an entire entity > 8 bytes.  Don't
15440         generate reg+reg addressing for such data.
15441
15442 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
15443
15444         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
15445         strings when optimizing for size, unless the target cares about
15446         alignment.
15447
15448 2008-02-22  Tom Tromey  <tromey@redhat.com>
15449
15450         * regclass.c (current_pass): Remove declaration.
15451
15452 2008-02-22  Anatoly Sokolov <aesok@post.ru>
15453
15454         * config/avr/libgcc.S (__RAMPZ__): Define.
15455         (__do_copy_data): Add for devices with 128KB code memory.
15456
15457 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
15458
15459         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
15460         Use spe_abi.
15461         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
15462
15463 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
15464
15465         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
15466         GENNONACR_REGS.
15467
15468 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15469
15470         PR c/19999
15471         * c-typeck.c (build_binary_op): Warn about floating point
15472         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
15473
15474 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
15475
15476         PR target/34526
15477         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
15478         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
15479         add vrsave.
15480         (rs6000_override_options): Set altivec_abi as default, not override,
15481         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
15482         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
15483         is used; use new member spe_abi.
15484         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
15485         spe_abi and altivec_abi.
15486
15487 2008-02-22  Tomas Bily  <tbily@suse.cz>
15488
15489         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
15490
15491 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15492
15493         PR bootstrap/35273
15494         * config.build (build_file_translate): Set to `CMD //c' only if
15495         it works.
15496         * Makefile.in (build_file_translate): Improve comment.
15497
15498 2008-02-21  Jan Hubicka  <jh@suse.cz>
15499
15500         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
15501         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
15502         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
15503
15504 2008-02-21  Michael Matz  <matz@suse.de>
15505
15506         PR target/35264
15507         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
15508
15509 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
15510
15511         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
15512         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
15513         as insn constraint.
15514         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
15515         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
15516         SSE_VEC_FLOAT_MODE_P as insn constraint.
15517         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
15518         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
15519         sse4a_movntdf using MODEF mode iterator.
15520         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
15521         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
15522         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
15523         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
15524         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
15525         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
15526         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
15527
15528 2008-02-21  Richard Guenther  <rguenther@suse.de>
15529
15530         * tree.def (PAREN_EXPR): New tree code.
15531         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
15532         and PAREN_EXPR.
15533         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
15534         * expr.c (expand_expr_real_1): Likewise.
15535         * tree-inline.c (estimate_num_insns_1): Likewise.
15536         * tree-complex.c (expand_complex_move): Likewise.
15537         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
15538         as plain x.
15539
15540 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
15541
15542         PR target/35225
15543         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
15544
15545 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
15546
15547         PR target/35190
15548         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
15549
15550         * config/sh/sh.c (find_barrier): Don't go past
15551         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
15552
15553 2008-02-20  DJ Delorie  <dj@redhat.com>
15554
15555         * config/h8300/h8300.md (insv): Force source operand to be a register.
15556
15557         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
15558         as a jump, not as a plain insn.
15559
15560 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
15561
15562         * doc/invoke.texi (Warning Options): Add new option
15563         -Wframe-larger-than=.
15564         (-Wframe-larger-than): Document.
15565
15566         * flags.h (warn_frame_larger_than, frame_larger_than_size):
15567         Add declarations for new option variables.
15568
15569         * final.c (final_start_function): Check the frame size
15570         before emission and issue a Wframe-larger-than warning.
15571
15572         * opts.c (warn_frame_larger_than, frame_larger_than_size):
15573         Add definitions for new option variables.
15574         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
15575
15576         * common.opt (Wframe-larger-than=): New option.
15577
15578 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
15579
15580         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
15581         (<sse>_div<mode>3): Ditto.
15582         (<sse>_vmdiv<mode>3): Ditto.
15583         (<sse>_vmsqrt<mode>2): Ditto.
15584         (*smax<mode>3): Ditto.
15585         (sse5_frcz<mode>2): Ditto.
15586         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
15587         as insn constraint.
15588
15589 2008-02-20  Richard Guenther  <rguenther@suse.de>
15590
15591         PR middle-end/35265
15592         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
15593         be happy with INTEGRAL_TYPE_P.
15594
15595 2008-02-20  Richard Guenther  <rguenther@suse.de>
15596
15597         * fold-const.c (split_tree): Associate floatig-point expressions
15598         if flag_associative_math is set.
15599
15600 2008-02-20  Richard Guenther  <rguenther@suse.de>
15601
15602         * tree.h (fold_real_zero_addition_p): Declare.
15603         * fold-const.c (fold_real_zero_addition_p): Export.
15604         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
15605         floating-point operations with zero and one.
15606
15607 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
15608
15609         * doc/install.texi: Correct references to CFLAGS, replacing them
15610         with BOOT_CFLAGS.  Document flags used during bootstrap for
15611         target libraries.
15612
15613 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
15614
15615         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
15616         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
15617         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
15618         insn constraint.
15619         (smin<mode>3): Ditto from similar patterns.
15620         (smax<mode>3): Ditto.
15621         (*ieee_smin<mode>3): Ditto.
15622         (*ieee_smax<mode>3): Ditto.
15623         * config/i386/sse.md (sse): New mode attribute.
15624         (mov<mode>): Macroize expander from movv4sf and movv2df using
15625         SSEMODEF2P mode iterator.
15626         (<sse>_movnt<mode>): Ditto from similar patterns. Use
15627         SSE_VEC_FLOAT_MODE_P as insn constraint.
15628         (storent<mode>): Ditto.
15629         (storent<mode>): Macroize expander from storentsf and storentdf using
15630         MODEF mode iterator.
15631         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
15632         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
15633         (abs<mode>2): Ditto from similar patterns.
15634         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
15635         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
15636         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
15637         (<sse>_vmsqrt<mode>2): Ditto.
15638         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
15639         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
15640         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
15641         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
15642         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
15643         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
15644         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
15645         insn constraint.
15646         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
15647         iterator and SSE_FLOAT_MODE_P as insn constraint.
15648         (<sse>_ucomi): Ditto from similar patterns.
15649         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
15650         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
15651         SSE_VEC_FLOAT_MODE_P as insn constraint.
15652         (vcond<mode>): Ditto from similar patterns.
15653         (and<mode>3, *and<mode>3): Ditto.
15654         (<sse>_nand<mode>3): Ditto.
15655         (ior<mode>3, *ior<mode>3): Ditto.
15656         (xor<mode>3, *xor<mode>3): Ditto.
15657         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
15658         iterator and SSE_FLOAT_MODE_P as insn constraint.
15659         (*nand<mode>3): Ditto from similar patterns.
15660         (*ior<mode>3): Ditto.
15661         (*xor<mode>3): Ditto.
15662
15663 2008-02-20  Ira Rosen  <irar@il.ibm.com>
15664
15665         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
15666         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
15667         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
15668
15669 2008-02-19  Jan Hubicka  <jh@suse.cz>
15670
15671         * predict.c (tree_bb_level_predictions): Remove variable next
15672         mistakely introduced by previous commit.
15673
15674 2008-02-19  Jan Hubicka  <jh@suse.cz>
15675
15676         * predict.c (predict_paths_leading_to): Rewrite.
15677         (predict_paths_for_bb): New.
15678         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
15679
15680 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15681
15682         PR bootstrap/35218
15683         * Makefile.in (build_file_translate): New.
15684         (gcc-vers.texi): Use it for translating $(abs_srcdir).
15685         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
15686         * configure.ac (build_file_translate): Substitute it.
15687         * configure: Regenerate.
15688
15689 2008-02-19  Jan Hubicka  <jh@suse.cz>
15690
15691         PR rtl-optimization/34408
15692         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
15693         invalid sharing.
15694
15695 2008-02-19  Jan Hubicka  <jh@suse.cz>
15696
15697         PR middle-end/28779
15698         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
15699         call_expr.
15700
15701 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
15702
15703         PR Ada/35186
15704         * config/i386/i386-modes.def: Revert the last DI alignment
15705         change until Ada people can look into it.
15706
15707 2008-02-19  Nick Clifton  <nickc@redhat.com>
15708
15709         * opts.c (print_specific_help): Fix typo in --help text.
15710
15711 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
15712
15713         PR target/35239
15714         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
15715         32-bit inline asm without asm alternatives for host GCC < 3.0.
15716
15717 2008-02-19  Richard Guenther  <rguenther@suse.de>
15718
15719         PR tree-optimization/34989
15720         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
15721         Allow propagation to INDIRECT_REF if we can simplify only.
15722
15723 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15724
15725         * c-common.c (warn_for_collisions_1): Use appropriate option when
15726         warning.
15727
15728 2008-02-19  Nick Clifton  <nickc@redhat.com>
15729
15730         PR other/31349
15731         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
15732         (handle_options): Fix indentation.
15733         (print_filtered_help): If no language-specific options were
15734         displayed tell the user how to list all the options supported by
15735         the language's front-end.
15736         (print_specific_help): Fix indentation and remove duplicate line.
15737         (common_handle_option): Handle the -v option.
15738         For --help enable the display of undocumented options if the -v
15739         switch has been included on the command line.
15740         For --help= check for overlaps in the arguments between the option
15741         classes and the language names and issue a warning when they
15742         cannot be disambiguated.
15743         * c.opt (v): Pass on to the common option handler.
15744
15745 2008-02-19  Revital Eres  <eres@il.ibm.com>
15746
15747         * modulo-sched.c (sms_schedule): Change dump message when
15748         create_ddg function fails.
15749         (try_scheduling_node_in_cycle): Rename row to cycle.
15750         (print_partial_schedule): Rename CYCLE to ROW.
15751
15752 2008-02-19  Christian Bruel  <christian.bruel@st.com>
15753             Zdenek Dvorak  <ook@ucw.cz>
15754
15755         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
15756
15757 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
15758
15759         PR target/33555
15760         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
15761         (*x86_movdicc_0_m1_se): Ditto.
15762
15763 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
15764
15765         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
15766         (CMPtype): Define as __gcc_CMPtype.
15767         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
15768         (CMPtype): Define as __gcc_CMPtype.
15769
15770 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
15771
15772         Support valgrind 3.3 for --enable-checking=valgrind.
15773         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
15774         here.
15775         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
15776         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
15777         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
15778         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
15779         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
15780         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
15781         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
15782         respectively.
15783         * ggc-zone.c: Similar.
15784         * ggc-page.c: Similar.
15785
15786 2008-02-19  Paul Brook  <paul@codesourcery.com>
15787
15788         PR target/35071
15789         * config/arm/ieee754-df.S: Fix do_it typo.
15790         * config/arm/ieee754-sf.S: Fix do_it typo.
15791
15792 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
15793
15794         PR target/35189
15795         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
15796         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
15797         (OPTION_MASK_ISA_SSE_SET): Likewise.
15798         (OPTION_MASK_ISA_SSE2_SET): Likewise.
15799         (OPTION_MASK_ISA_SSE3_SET): Likewise.
15800         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
15801         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
15802         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
15803         (OPTION_MASK_ISA_SSE4_SET): Likewise.
15804         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
15805         (OPTION_MASK_ISA_SSE5_SET): Likewise.
15806         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
15807         (OPTION_MASK_ISA_MMX_UNSET): Updated.
15808         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
15809         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
15810         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
15811         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
15812         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
15813         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
15814         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
15815         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
15816         (OPTION_MASK_ISA_SSE4): Removed.
15817         (ix86_handle_option): Turn on bits in ix86_isa_flags and
15818         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
15819         (override_options): Don't turn on implied SSE/MMX bits in
15820         ix86_isa_flags.
15821
15822 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
15823
15824         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
15825         32bit host.
15826
15827 2008-02-18  Joey Ye  <joey.ye@intel.com>
15828
15829         PR middle-end/34921
15830         * tree-nested.c (insert_field_into_struct): Set type alignment
15831         to field alignment if the former is less than the latter.
15832
15833 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
15834
15835         * BASE-VER: Set to 4.4.0.
15836
15837 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15838
15839         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
15840         * doc/cfg.texi: Likewise.
15841         * doc/extend.texi: Likewise.
15842         * doc/gty.texi: Likewise.
15843         * doc/invoke.texi: Likewise.
15844         * doc/loop.texi: Likewise.
15845         * doc/md.texi: Likewise.
15846         * doc/passes.texi: Likewise.
15847         * doc/rtl.texi: Likewise.
15848         * doc/sourcebuild.texi: Likewise.
15849         * doc/tm.texi: Likewise.
15850         * doc/tree-ssa.texi: Likewise.
15851
15852 2008-02-17  Richard Guenther  <rguenther@suse.de>
15853
15854         PR middle-end/35227
15855         * tree-complex.c (init_parameter_lattice_values): Handle parameters
15856         without default definition.
15857
15858 2008-02-17  Richard Guenther  <rguenther@suse.de>
15859
15860         PR tree-optimization/35231
15861         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
15862         if A | B != 1.
15863
15864 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
15865
15866         Revert:
15867         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15868         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15869         libgcc_cmp_return mode.
15870
15871 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15872
15873         PR c/28368
15874         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
15875
15876 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
15877
15878         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
15879         multilibs.
15880
15881 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15882
15883         * doc/c-tree.texi: Use `@.' where appropriate.
15884         * doc/extend.texi: Likewise.
15885         * doc/install.texi: Likewise.
15886         * doc/invoke.texi: Likewise.
15887         * doc/loop.texi: Likewise.
15888         * doc/makefile.texi: Likewise.
15889         * doc/md.texi: Likewise.
15890         * doc/passes.texi: Likewise.
15891         * doc/standards.texi: Likewise.
15892         * doc/tm.texi: Likewise.
15893
15894 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
15895
15896         PR middle-end/35196
15897         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
15898         in entry_bb.
15899         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
15900         rather than in entry_bb.
15901
15902 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15903
15904         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15905         libgcc_cmp_return mode.
15906
15907 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
15908
15909         PR middle-end/35130
15910         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
15911         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
15912
15913 2008-02-15  Richard Guenther  <rguenther@suse.de>
15914             Zdenek Dvorak  <ook@ucw.cz>
15915
15916         PR tree-optimization/35164
15917         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
15918         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
15919         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
15920         Only propagate addresses which do not have abnormal SSA_NAMEs
15921         in their operands.
15922
15923 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
15924
15925         PR target/35088
15926         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
15927
15928 2008-02-15  Jan Hubicka  <jh@suse.cz>
15929
15930         PR middle-end/35149
15931         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
15932
15933 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15934
15935         PR middle-end/34621
15936         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
15937         when calculating alignment_pad.
15938
15939 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15940
15941         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
15942         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
15943         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
15944         and STACK_BOUNDARY define.
15945
15946 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
15947
15948         PR preprocessor/35061
15949         * c-pragma.c (handle_pragma_pop_macro): Check that
15950         pushed_macro_table has been allocated.
15951
15952 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
15953
15954         PR middle-end/35136
15955         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
15956         (force_gimple_operand): Likewise.
15957         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
15958         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
15959         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
15960         (find_interesting_uses_address): Check addressability and alignment
15961         of the base expression only after substituting bases of IVs into it.
15962
15963 2008-02-14  Michael Matz  <matz@suse.de>
15964
15965         PR target/34930
15966         * function.c (instantiate_virtual_regs_in_insn): Reload address
15967         before falling back to reloading the whole operand.
15968
15969 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
15970
15971         * config/s390/s390.c (s390_mainpool_start): Emit the pool
15972         before the first section switch note.
15973
15974 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15975
15976         * doc/bugreport.texi: Update copyright years.
15977         * doc/c-tree.texi: Likewise.
15978         * doc/cfg.texi: Likewise.
15979         * doc/cpp.texi: Likewise.
15980         * doc/cppinternals.texi: Likewise.
15981         * doc/fragments.texi: Likewise.
15982         * doc/frontends.texi: Likewise.
15983         * doc/gcc.texi: Likewise.
15984         * doc/gty.texi: Likewise.
15985         * doc/hostconfig.texi: Likewise.
15986         * doc/implement-c.texi: Likewise.
15987         * doc/libgcc.texi: Likewise.
15988         * doc/loop.texi: Likewise.
15989         * doc/makefile.texi: Likewise.
15990         * doc/options.texi: Likewise.
15991         * doc/passes.texi: Likewise.
15992         * doc/rtl.texi: Likewise.
15993         * doc/sourcebuild.texi: Likewise.
15994         * doc/standards.texi: Likewise.
15995         * doc/tree-ssa.texi: Likewise.
15996         * doc/trouble.texi: Likewise.
15997
15998         * doc/extend.texi: Use @: or add comma where appropriate.
15999         * doc/invoke.texi: Likewise.
16000         * doc/tm.texi: Likewise.
16001
16002 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
16003
16004         PR target/34393
16005         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
16006         to a reg.
16007
16008 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
16009
16010         * doc/md.texi (clz, ctz): Add reference.
16011         * doc/rtl.texi (clz, ctz): Likewise.
16012
16013 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16014
16015         PR other/35148
16016         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
16017         srcdir.
16018
16019 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
16020
16021         * config/s390/s390.c (struct constant_pool): New field
16022         emit_pool_after added.
16023         (s390_mainpool_start): Set the emit_pool_after flag according
16024         to the section switch notes.
16025         (s390_mainpool_finish): Consider emit_pool_after when emitting
16026         the literal pool at the end of the function.
16027         (s390_chunkify_start): Force literal pool splits at section
16028         switch notes.
16029
16030 2008-02-13  Michael Matz  <matz@suse.de>
16031
16032         PR debug/35065
16033         * var-tracking.c (clobber_variable_part): Correctly traverse the
16034         list.
16035
16036 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16037
16038         PR 29673
16039         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
16040         Add -fdump-ipa-inline.
16041         * tree-dump.c (dump_files): Remove tree-inlined dump.
16042         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
16043
16044 2008-02-12  Richard Guenther  <rguenther@suse.de>
16045
16046         PR tree-optimization/35171
16047         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
16048         default defs.
16049
16050 2008-02-12  Richard Guenther  <rguenther@suse.de>
16051
16052         PR middle-end/35163
16053         * fold-const.c (fold_widened_comparison): Use get_unwidened in
16054         value-preserving mode.  Disallow final truncation.
16055
16056 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
16057
16058         PR middle-end/35136
16059         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
16060         code from here to...
16061         (force_gimple_operand): ...here.
16062
16063 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
16064
16065         PR c++/35144
16066         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
16067         non-compatible pointers.
16068         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
16069         different FIELD_DECLs, try harder by comparing field offsets, sizes
16070         and types.
16071
16072         PR inline-asm/35160
16073         * function.c (match_asm_constraints_1): Don't replace the same input
16074         multiple times.
16075
16076 2008-02-12  Anatoly Sokolov <aesok@post.ru>
16077
16078         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
16079         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
16080         (expand_epilogue): Restore RAMPZ register.
16081         * config/avr/avr.md (RAMPZ_ADDR): New constant.
16082
16083 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
16084
16085         * config/i386/cygwin.asm: (__alloca): Correct calling
16086         convention and alignment.
16087         (__chkstk): Force 8 byte stack alignment.
16088
16089 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
16090             Richard Guenther  <rguenther@suse.de>
16091
16092         PR tree-optimization/33992
16093         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
16094         the zero we compare against.
16095
16096 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
16097
16098         PR libfortran/35063
16099         * gthr-win32.h (__gthread_mutex_destroy_function): New function
16100         to CloseHandle after unlocking to prevent accumulation of handle
16101         count.
16102
16103 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16104
16105         PR middle_end/34150
16106         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
16107         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
16108         and update LABEL_NUSES during and after reload.
16109
16110 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
16111
16112         PR middle-end/34627
16113         * combine.c (simplify_if_then_else): Make sure the comparison is
16114         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
16115
16116 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
16117
16118         PR bootstrap/35051
16119         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
16120         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
16121         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
16122         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
16123         * tree.h (get_type_static_bounds): Likewise.
16124
16125 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16126
16127         * doc/invoke.texi (Option Summary, C++ Dialect Options)
16128         (Objective-C and Objective-C++ Dialect Options, Warning Options):
16129         Make -Wfoo language annotations match what the compiler outputs.
16130
16131 2008-02-08  Sa Liu  <saliu@de.ibm.com>
16132
16133         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
16134         intrinsics spu_convts, spu_convtu, spu_convtf.
16135
16136 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
16137
16138         * doc/extend.texi (Function Attributes) <noinline>: Mention
16139         asm ("") as method to keep calls.
16140
16141 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16142
16143         PR other/32754
16144         * doc/options.texi (Options): Replace references to opts.sh with
16145         optc-gen.awk.
16146         * opts-common.c: Likewise.
16147         * optc-gen.awk: Likewise.
16148
16149 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
16150
16151         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
16152
16153 2008-02-07  Richard Henderson  <rth@redhat.com>
16154
16155         PR rtl-opt/33410
16156         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
16157         EXPR_LIST for the REG_EQUAL instead of a comparison with a
16158         funny mode.
16159
16160 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
16161
16162         PR tree-optimization/35085
16163         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
16164         for operand entry oe2 in addition to operand entry oe3 in order to
16165         expose more opportunities for vectorizer sum reduction.
16166
16167 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16168
16169         PR other/35107
16170         * Makefile.in (LIBS): Remove $(GMPLIBS).
16171         (cc1-dummy, cc1): Add $(GMPLIBS).
16172
16173 2008-02-06  Jan Hubicka  <jh@suse.cz>
16174
16175         PR target/23322
16176         * i386.md (moddf_integer): Do not produce partial memory stalls for
16177         targets where it hurts.
16178
16179 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
16180
16181         PR target/35083
16182         * optabs.c (expand_float): Do not check for decimal modes when
16183         expanding unsigned integer through signed conversion.
16184
16185 2008-02-06  Nick Clifton  <nickc@redhat.com>
16186
16187         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
16188         inside the clobber with a match_operand and duplicated operand
16189         number in the constraint.
16190         (ineqbranchsi): Delete redundant comment.
16191
16192 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
16193
16194         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
16195         builtin_define ("__USE_INIT_FINI__").
16196         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
16197         -msx multilibs.
16198         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
16199
16200 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16201
16202         PR documentation/30330
16203         * doc/invoke.texi (C++ Dialect Options)
16204         (Objective-C and Objective-C++ Dialect Options, Warning Options):
16205         For each warning option -Wfoo that allows -Wno-foo, ensure both
16206         -Wfoo and -Wno-foo are listed in the option index.  Fix index
16207         entry of -Wswitch-default, index -Wnormalized= including the
16208         `=', and -Wlarger-than-@var{len} including @var{len}.
16209
16210 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
16211
16212         * config/i386/i386.md (floatunssisf2): Use
16213         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
16214         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
16215         Macroize expander using MODEF mode iterator.
16216
16217 2008-02-05  Diego Novillo  <dnovillo@google.com>
16218
16219         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
16220
16221         PR 33738
16222         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
16223
16224 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16225
16226         PR other/35070
16227         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
16228
16229 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
16230
16231         PR target/35084
16232         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
16233         to indicate if a message should be generated.
16234         (init_cumulative_args): Updated.
16235         (function_value_32): Likewise.
16236
16237 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
16238
16239         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
16240
16241 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
16242
16243         PR target/35083
16244         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
16245         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
16246
16247 2008-02-04  Diego Novillo  <dnovillo@google.com>
16248
16249         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
16250
16251         PR 33738
16252         * tree-vrp.c (vrp_evaluate_conditional): With
16253         -Wtype-limits, emit a warning when comparing against a
16254         constant outside the natural range of OP0's type.
16255
16256 2008-02-04  Richard Guenther  <rguenther@suse.de>
16257
16258         PR middle-end/33631
16259         * expr.c (count_type_elements): Give for unions instead of
16260         guessing.
16261
16262 2008-02-04  Richard Guenther  <rguenther@suse.de>
16263
16264         PR middle-end/35043
16265         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
16266         to TYPE_DOMAINs base type instead of using bitsizetype here.
16267
16268 2008-02-03  Jason Merrill  <jason@redhat.com>
16269
16270         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
16271
16272 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16273
16274         PR other/29972
16275         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
16276         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
16277         (RS/6000 and PowerPC Options): Fix typos and markup.
16278         * doc/passes.texi (Tree-SSA passes): Likewise.
16279
16280 2008-02-02  Michael Matz  <matz@suse.de>
16281
16282         PR target/35045
16283         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
16284         from record_last_reg_set_info.
16285         (record_last_reg_set_info): Take an RTX argument, iterate over all
16286         constituent hardregs.
16287         (record_last_set_info, record_opr_changes): Change calls to
16288         new signature or to record_last_reg_set_info_regno.
16289
16290 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
16291
16292         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
16293
16294 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
16295
16296         PR rtl-optimization/34773
16297         * reg-notes.def (EQUAL): Mention significance of combination of
16298         REG_EQUAL and REG_RETVAL.
16299         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
16300         insn that has a REG_RETVAL.
16301
16302 2008-02-01  Roger Sayle  <roger@eyesopen.com>
16303
16304         PR bootstrap/33781
16305         * configure.ac (--enable-fixed-point): Disable unless explicitly
16306         requested on IRIX.
16307         * configure: Regenerate.
16308
16309 2008-02-01  Richard Guenther  <rguenther@suse.de>
16310
16311         PR other/35042
16312         * invoke.texi (-finline-limit): Remove no longer true parts
16313         of the documentation.  Note that there is no default value.
16314
16315 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
16316             Mark Mitchell  <mark@codesourcery.com>
16317             Ben Elliston  <bje@au.ibm.com>
16318
16319         PR c/29326
16320         * doc/extend.texi (Other Builtins): Document.
16321
16322 2008-01-31  Tom Browder <tom.browder@gmail.com>
16323
16324         * doc/c-tree.texi (Types): Fix grammar.
16325         (Expression trees): Ditto.
16326         * doc/passes.texi (Tree-SSA passes): Ditto.
16327
16328         * doc/configterms.texi (Configure Terms): Fix typo.
16329         * doc/cpp.texi (Common Predefined Macros): Ditto.
16330         * doc/md.texi (Machine Constraints): Ditto.
16331
16332         * doc/makefile.texi (Makefile): Add comma.
16333
16334 2008-01-31  Tom Browder  <tom.browder@gmail.com>
16335             Gerald Pfeifer  <gerald@pfeifer.com>
16336
16337         * doc/sourcebuild.texi (Front End): Remove references to CVS
16338         and CVSROOT/modules.
16339         (Texinfo Manuals): Replace reference to CVS by one to SVN.
16340         (Back End): Remove reference to CVS.
16341
16342 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
16343
16344         PR target/34900
16345         * config/mips/mips.c (gen_load_const_gp): New function, taking a
16346         comment from...
16347         (mips16_gp_pseudo_reg): ...here.
16348         * config/mips/mips.md (load_const_gp): Replace with...
16349         (load_const_gp_<mode>): ...this :P-based insn.
16350
16351 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16352
16353         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
16354         options. Minor fixes.
16355         (-std): Move reference to standards closer to where language
16356         standards are first mentioned.
16357
16358 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
16359
16360         PR rtl-optimization/34995
16361         * reload.c (alternative_allows_const_pool_ref): Take an rtx
16362         parameter and return a bool.  If the rtx parameter is nonnull,
16363         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
16364         (find_reloads): Update call accordingly.  Pass the new operand
16365         if it needed no address reloads, otherwise pass null.
16366
16367 2008-01-30  Richard Henderson  <rth@redhat.com>
16368
16369         PR c/34993
16370         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
16371         for unbounded arrays.
16372
16373 2008-01-30  Silvius Rus  <rus@google.com>
16374
16375         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
16376
16377 2008-01-30  Jan Hubicka  <jh@suse.cz>
16378
16379         PR target/34982
16380         * i386.c (init_cumulative_args): Use real function declaration when
16381         calling locally.
16382
16383 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
16384
16385         PR rtl-optimization/34998
16386         * global.c (build_insn_chain): Treat non-subreg_lowpart
16387         SUBREGs of pseudos as clobbering all the words covered by the
16388         SUBREG, not just all the bytes.
16389         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
16390         original df_ref rather than an extract parameter.
16391         (global_conflicts): Update call accordingly.
16392
16393 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
16394
16395         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
16396         the overflow check to make it easier to read.
16397         (__fixtfdi): Change the type of the ll member in union
16398         long_double to UDItype_x.
16399
16400 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
16401
16402         PR middle-end/34969
16403         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
16404         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
16405         * tree-inline.c (fold_marked_statements): Call
16406         cgraph_update_edges_for_call_stmt if folding a call statement.
16407         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
16408         debug_generic_stmt calls, reset it back afterwards.
16409
16410         PR c/35017
16411         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
16412         static decls.
16413         * c-typeck.c (build_external_ref): Don't pedwarn about
16414         static vars in current function's scope.
16415
16416 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
16417
16418         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
16419
16420 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
16421
16422         PR c/35002
16423         * ipa-struct-reorg.c: Fix spelling.
16424         * params.def: Ditto.
16425
16426 2008-01-29  Richard Guenther  <rguenther@suse.de>
16427
16428         PR middle-end/35006
16429         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
16430         field.
16431         * tree-inline.c (remap_type): Increment remapping_type_depth
16432         around remapping types.
16433         (copy_body_r): Only add referenced variables if they are referenced
16434         from code, not types.
16435
16436 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
16437
16438         PR c++/34055
16439         PR c++/34103
16440         PR c++/34219
16441         PR c++/34606
16442         PR c++/34753
16443         PR c++/34754
16444         PR c++/34755
16445         PR c++/34919
16446         PR c++/34961
16447         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
16448         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
16449
16450 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
16451
16452         PR target/34412
16453         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
16454         pointer for tiny stack.
16455
16456 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
16457
16458         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
16459
16460 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
16461
16462         * config/vx-common.h: Fix typo in comment.
16463
16464 2008-01-28  Ian Lance Taylor  <iant@google.com>
16465
16466         PR c++/34862
16467         PR c++/33407
16468         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16469         coalesce pointers if they have different DECL_NO_TBAA_P values.
16470         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
16471         between variables with different DECL_NO_TBAA_P values.
16472
16473 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
16474
16475         PR 31535
16476         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
16477         are not legitimate small data references on SPE targets.
16478
16479 2008-01-28  David Daney  <ddaney@avtrex.com>
16480
16481         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
16482
16483 2008-01-28  David Daney  <ddaney@avtrex.com>
16484
16485         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
16486
16487 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
16488
16489         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
16490         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
16491         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
16492         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
16493         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
16494         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
16495         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
16496         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
16497
16498 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
16499
16500         * basic-block.h (condjump_equiv_p): Fix comment.
16501
16502 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
16503
16504         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
16505         print_generic_stmt_indented): Fix comment.
16506
16507 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
16508
16509         * configure.ac (__stack_chk_fail): Add detecion for availability
16510         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
16511         * configure: Regenerate.
16512
16513 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
16514
16515         PR middle-end/34688
16516         * final.c (output_addr_const): Handle TRUNCATE.
16517
16518 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
16519
16520         PR target/34711
16521         * tree-ssa-loop-ivopts.c (comp_cost): New type.
16522         (zero_cost, infinite_cost): New constants.
16523         (struct cost_pair): Change type of cost to comp_cost.
16524         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
16525         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
16526         New functions.
16527         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
16528         split_address_cost, ptr_difference_cost, difference_cost,
16529         get_computation_cost_at, get_computation_cost,
16530         determine_use_iv_cost_generic, determine_use_iv_cost_address,
16531         determine_use_iv_cost_condition, determine_use_iv_costs,
16532         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
16533         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
16534         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
16535         Change type of cost to comp_cost.
16536         (determine_iv_cost): Increase cost of non-original ivs, instead
16537         of decreasing the cost of original ones.
16538         (get_address_cost): Indicate the complexity of the addressing mode
16539         in comp_cost.
16540         (try_add_cand_for): Prefer using ivs not specific to some object.
16541         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
16542
16543 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
16544             Janis Johnson  <janis187@us.ibm.com>
16545
16546         PR target/34814
16547         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
16548         (TARGET_INSTANTIATE_DECLS): Likewise.
16549         * target.h (expand_to_rtl_hook): New target hook.
16550         (instantiate_decls): Likewise.
16551         * function.c (instantiate_decl): Make non-static.  Rename to...
16552         (instantiate_decl_rtl): ... this.
16553         (instantiate_expr): Use instantiate_decl_rtl.
16554         (instantiate_decls_1): Likewise.
16555         (instantiate_decls): Likewise.
16556         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
16557         * function.h (instantiate_decl_rtl): Add prototype.
16558         * cfgexpand.c (target.h): New include.
16559         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
16560         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
16561         (TARGET_INSTANTIATE_DECLS): Likewise.
16562         (TARGET_INITIALIZER): New target hooks added.
16563         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
16564         New prototype.
16565         * config/rs6000/rs6000.c (tree-flow.h): New include.
16566         (machine_function): Add sdmode_stack_slot field.
16567         (rs6000_alloc_sdmode_stack_slot): New function.
16568         (rs6000_instantiate_decls): Likewise.
16569         (rs6000_secondary_memory_needed_rtx): Likewise.
16570         (rs6000_check_sdmode): Likewise.
16571         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
16572         (TARGET_INSTANTIATE_DECLS): Likewise.
16573         (rs6000_hard_regno_mode_ok): Allow SDmode.
16574         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
16575         (rs6000_emit_move): Handle SDmode.
16576         (function_arg_advance): Likewise.
16577         (function_arg): Likewise.
16578         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
16579         SDmode var args for 32-bit compiles.
16580         (rs6000_secondary_reload_class): Handle SDmode.
16581         (rs6000_output_function_epilogue): Likewise.
16582         (rs6000_function_value): Simplify if statement.
16583         (rs6000_libcall_value): Likewise.
16584         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
16585         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
16586         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
16587         (movsd_hardfloat): New define_insn.
16588         (movsd_softfloat): Likewise.
16589         (movsd_store): Likewise.
16590         (movsd_load): Likewise.
16591         (extendsddd2): Likewise.
16592         (extendsdtd2): Likewise.
16593         (truncddsd2): Likewise.
16594         (movdd_hardfloat64): Fixup comment.
16595         (UNSPEC_MOVSD_LOAD): New constant.
16596         (UNSPEC_MOVSD_STORE): Likewise.
16597
16598 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
16599
16600         PR c++/34965
16601         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
16602         TRUTH_XOR_EXPR.
16603         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
16604         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
16605         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
16606         and TRUTH_XOR_EXPR.
16607
16608 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
16609
16610         PR target/34794
16611         * config.gcc: Separate AIX 5.3 from AIX 6.1.
16612         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16613         __LONGDOUBLE128 too.
16614         * config/rs6000/aix61.h: New file.
16615
16616 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
16617
16618         PR rtl-optimization/34959
16619         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
16620         popcount and parity rtxes the same mode as their operand.
16621         Truncate or extend the result to the return value's mode
16622         if necessary.
16623
16624 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
16625
16626         PR target/34981
16627         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
16628         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
16629         to GOT_VERSION_REGNUM.
16630         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
16631         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
16632         * config/mips/mips.c (mips_emit_call_insn): New function.
16633         (mips_call_tls_get_addr): Call mips_expand_call directly.
16634         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
16635         emit_call_insn.
16636         (mips16_build_call_stub): Likewise.  Return the call insn or null.
16637         (mips_expand_call): Update the call to mips16_build_call_stub
16638         accordingly and a remove redundant condition.  Assert that MIPS16
16639         stubs do not use lazy binding.  Use mips_emit_call_insn and return
16640         the call insn.
16641         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
16642         TARGET_USE_GOT.
16643         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
16644         (mips_avoid_hazard): Remove hazard_set handling.
16645         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
16646         (UNSPEC_RESTORE_GP): ...this.
16647         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
16648         (FAKE_CALL_REGNO): Rename to...
16649         (GOT_VERSION_REGNUM): ...this.
16650         (type): Add "ghost" value.  Add an associated insn reservation.
16651         (hazard_set): Remove.
16652         (exception_receiver): Rename to...
16653         (restore_gp): ...this and update the unspec identifier accordingly.
16654         (exception_receiver, nonlocal_got_receiver): New expanders.
16655         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
16656         FAKE_CALL_REGNO.  Remove hazard_set attribute.
16657         (set_got_version, update_got_version): New patterns.
16658
16659 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
16660
16661         PR target/34970
16662         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
16663
16664 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
16665
16666         PR other/31955
16667         * doc/install.texi2html: Generate gcc-vers.texi.
16668
16669 2008-01-25  DJ Delorie  <dj@redhat.com>
16670
16671         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
16672
16673 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
16674
16675         * config/c4x: Remove directory.
16676         * config.gcc (crx-*, mt-*): Mark obsolete.
16677         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
16678         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
16679         sh-*-rtemscoff*): Remove cases.
16680         * defaults.h (C4X_FLOAT_FORMAT): Remove.
16681         * real.c (encode_c4x_single, decode_c4x_single,
16682         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
16683         c4x_extended_format): Remove.
16684         * real.h (c4x_single_format, c4x_extended_format): Remove.
16685         * doc/extend.texi (interrupt, naked): Remove mention of attributes
16686         on C4x.
16687         (Pragmas): Remove comment about c4x pragmas.
16688         * doc/install.texi (c4x): Remove target-specific instructions.
16689         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
16690         * doc/md.texi (Machine Constraints): Remove C4x documentation.
16691         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
16692         refer to C4x source files as examples.
16693         (C4X_FLOAT_FORMAT): Remove documentation.
16694
16695 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
16696
16697         * config/bfin/bfin.c (override_options): Reorder tests so that
16698         flag_pic gets enabled for -msep-data.
16699
16700 2008-01-25  Richard Guenther  <rguenther@suse.de>
16701
16702         PR middle-end/32244
16703         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
16704         to its bitfield precision if required.
16705
16706 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
16707
16708         PR middle-end/33880
16709         * tree-nested.c (walk_omp_for): New function.
16710         (convert_nonlocal_reference, convert_local_reference): Call
16711         walk_omp_for on OMP_FOR.
16712         (convert_call_expr): Call walk_body on OMP_FOR's
16713         OMP_FOR_PRE_INIT_BODY.
16714
16715 2008-01-25  Richard Guenther  <rguenther@suse.de>
16716
16717         PR tree-optimization/34966
16718         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
16719         default defs and PHI_NODEs we have to insert after the
16720         defining statement.
16721
16722 2008-01-24  Nick Clifton  <nickc@redhat.com>
16723
16724         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
16725         Provide a default definition.
16726         (LIBGCC2_UNITS_PER_WORD): Likewise.
16727
16728         * config/stormy16/stormy16.c: Include df.h for the prototype
16729         for df_regs_ever_live_p.
16730         (xstormy16_expand_builtin_va_start): Convert the stack offset
16731         into a component_ref and then use POINTER_PLUS_EXPR to add it
16732         to the incoming_virtual_args_rtx.
16733         (xstormy16_gimplify_va_arg_expr): Rename to
16734         xstormy16_gimplify_va_arg_expr.
16735         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
16736         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
16737         xstormy16_gimplify_va_arg_expr.
16738         Fix up some formatting issues.
16739
16740         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
16741         Move to predicates.md.
16742         (xs_hi_general_operand): Likewise.
16743         (xs_hi_nonmemory_operand): Likewise.
16744         * config/stormy16/predicates.md:
16745         (xstormy16_carry_plus_operand): New predicate.
16746         (xs_hi_general_operand): New predicate.
16747         (xs_hi_nonmemory_operand): New predicate.
16748         * config/stormy16/stormy16-protos.h:
16749         (xstormy16_carry_plus_operand): Delete prototype.
16750         (xs_hi_general_operand): Likewise.
16751         (xs_hi_nonmemory_operand): Likewise.
16752
16753         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
16754         modifiers as they are no longer needed and they can trigger
16755         reload spill failures.
16756
16757         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
16758         with a match_operand in order to help reload.
16759
16760         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
16761         constraint with 'e' for the 8th alternative as this version of
16762         the mov.w instruction only accepts the lower 8 registers.
16763
16764 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
16765
16766         PR target/34856
16767         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
16768         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
16769         vector elements.
16770
16771 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
16772
16773         PR middle-end/33333
16774         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
16775
16776 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
16777
16778         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
16779         New functions.
16780         (remove_structure): Update allocations list before removing structure.
16781
16782 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
16783
16784         * ipa-struct-reorg.c (is_safe_cond_expr,
16785         create_new_stmts_for_cond_expr): Use integer_zerop function,
16786         that recognize not only zero-pointer, but zero-integer too.
16787
16788 2008-01-25  Ben Elliston  <bje@au.ibm.com>
16789
16790         PR other/22232
16791         * fixproto: Escape "." in sed expression that strips leading "./".
16792
16793 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
16794
16795         PR driver/34904
16796         * gcc.c (SWITCH_OK): Removed.
16797         (SWITCH_LIVE): Changed to bit.
16798         (SWITCH_FALSE): Likewise.
16799         (SWITCH_IGNORE): Likewise.
16800         (switchstr): Change live_cond to unsigned int.
16801         (process_command): Replace SWITCH_OK with 0.
16802         (do_self_spec): Likewise.
16803         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
16804         (give_switch): Likewise.
16805         (used_arg): Likewise.
16806         (do_spec_1): Set the SWITCH_IGNORE bit.
16807         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
16808         bits.  Set the SWITCH_LIVE bit.
16809
16810 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
16811
16812         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
16813
16814 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
16815
16816         PR tree-optimization/34472
16817         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
16818         parameter to a "bool *" and set *DATA to false if there is
16819         an unsafe access.  Do not delete the structure here.
16820         (check_cond_exprs): Delete it here instead.
16821         (check_cond_exprs, exclude_cold_structs): Do not increase
16822         I when removing a structure.
16823
16824 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
16825
16826         PR target/34856
16827         * config/i386/i386.c (ix86_expand_vector_init): Consider only
16828         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
16829
16830 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
16831
16832         PR middle-end/34934
16833         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
16834         a fixed vector for stack.
16835
16836 2008-01-24  Ben Elliston  <bje@au.ibm.com>
16837
16838         PR c++/25701
16839         * doc/gcc.texi (Software development): Add a direntry for g++.
16840
16841 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
16842
16843         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
16844         stale and straggling -fforce-addr comments above.
16845
16846         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
16847         define.
16848         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
16849         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
16850
16851 2008-01-23  Michael Matz  <matz@suse.de>
16852
16853         PR debug/34895
16854         * dwarf2out.c (force_type_die): Use modified_type_die instead of
16855         gen_type_die.
16856
16857 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
16858
16859         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
16860         malloc result type.
16861
16862 2008-01-23 Anatoly Sokolov <aesok@post.ru>
16863
16864         * config/avr/avr.c (avr_current_arch): New variable.
16865         (avr_arch_types): Add 'avr31' and 'avr51' entries.
16866         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
16867         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
16868         (avr_override_options): Init 'avr_current_arch'.
16869         (base_arch_s): Move from here...
16870         * config/avr/avr.h (base_arch_s): ... here. Add new members
16871         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
16872         'mega' to 'have_jmp_call'.
16873         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
16874         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
16875         macros.
16876         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
16877         architectures.
16878         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16879         MULTILIB_MATCHES): Ditto.
16880
16881 2008-01-23  Richard Guenther  <rguenther@suse.de>
16882
16883         PR middle-end/31529
16884         * cgraphunit.c (cgraph_reset_node): Always mark the node
16885         not reachable if it is not queued already.
16886
16887 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
16888
16889         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
16890         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
16891         (cputype_selected): New static variable.
16892         (bfin_handle_option): Set it if -mcpu is used.
16893         (override_option): Select default set of workarounds if no cpu type
16894         selected on the command line.
16895         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
16896
16897         From  Michael Frysinger  <michael.frysinger@analog.com>
16898         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
16899         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
16900
16901         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
16902         for bf547, bf523, bf524, and bf526.
16903         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
16904         bf526.
16905         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16906         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
16907         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
16908         __ADSPBF547__ and __ADSPBF54x__ for bf547.
16909         * doc/invoke.texi (Blackfin Options): Document that
16910         -mcpu now accept bf547, bf523, bf524, and bf526.
16911
16912 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
16913
16914         PR rtl-optimization/34628
16915         * combine.c (try_combine): Stop and undo after the first combination
16916         if an autoincrement side-effect on the first insn has effectively
16917         been lost.
16918
16919 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
16920
16921         PR target/34529
16922         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
16923         Offset addresses are not valid for Altivec or paired float modes.
16924
16925 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
16926
16927         PR c++/34607
16928         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
16929         if DECL_INITIAL (decl) is error_mark_node.
16930
16931         PR c++/34914
16932         * c-common.c (handle_vector_size_attribute): Only allow
16933         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
16934         the same way as pointer, array etc. types.
16935         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
16936
16937         PR c++/34917
16938         * tree.c (build_type_attribute_qual_variant): Call
16939         build_qualified_type if attributes are equal, but quals are not.
16940
16941 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16942
16943         PR 32102
16944         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
16945         * flags.h (warn_strict_aliasing): Remove.
16946         (warn_strict_overflow): Remove.
16947         * opts.c (warn_strict_aliasing): Remove.
16948         (warn_strict_overflow): Remove.
16949         * c-opts.c (c_common_handle_option): -Wall only sets
16950         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
16951         (c_common_post_options): Give default values to -Wstrict-aliasing
16952         and -Wstrict-overflow if they are uninitialized.
16953         * common.opt (Wstrict-aliasing): Specify Var and Init.
16954         (Wstrict-overflow): Likewise.
16955
16956 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
16957
16958         PR rtl-optimization/26854
16959         PR rtl-optimization/34400
16960         PR rtl-optimization/34884
16961         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
16962         DF_RD->gen.
16963         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
16964         (df_rd_bb_info.expanded_lr_out): Deleted
16965         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
16966         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
16967         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16968         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16969         Removed code to allocate, initialize or free expanded_lr_out.
16970         (df_rd_bb_local_compute_process_def): Restructured to make more
16971         understandable.
16972         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
16973         sets if the sets are being trimmed.
16974
16975 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
16976
16977         PR bootstrap/32287
16978         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
16979         (as_vers): Likewise.
16980         * configure: Regenerated.
16981
16982 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16983
16984         PR middle-end/33092
16985         * tree-pass.h (pass_build_alias): New pass.
16986         * tree-ssa-alias.c (gate_build_alias): New.
16987         (pass_build_alias): New.
16988         * passes.c (init_optimization_passes): Add pass_build_alias after
16989         pass_create_structure_vars.
16990
16991 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
16992
16993         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
16994         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
16995         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
16996         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
16997         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
16998         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
16999         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
17000         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
17001         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
17002         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
17003         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
17004         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
17005         * config/s390/s390.md (FP_ALL): New mode iterator.
17006         (_d): New mode attribute.
17007         ("*signbit<mode>2>"): Changed mode of first operand.
17008         ("isinf<mode>2"): Changed mode of first operand.
17009         ("*TDC_insn"): Adaptation for DFP modes.
17010
17011 2008-01-22  Ben Elliston  <bje@au.ibm.com>
17012
17013         * tree.c (check_qualified_type): Improve function description.
17014
17015 2008-01-21  Jason Merrill  <jason@redhat.com>
17016
17017         PR c++/34196
17018         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
17019         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
17020         if it is set.
17021
17022 2008-01-21  DJ Delorie  <dj@redhat.com>
17023
17024         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
17025         return zero.
17026
17027 2008-01-21  Richard Guenther  <rguenther@suse.de>
17028
17029         PR middle-end/34856
17030         * tree-cfg.c (verify_expr): Allow all invariant expressions
17031         instead of just constant class ones as reference argument.
17032         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
17033         like any other constant.
17034         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17035
17036 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
17037
17038         * regmove.c (fixup_match_1): Update call crossed frequencies.
17039
17040 2008-01-21  Richard Guenther  <rguenther@suse.de>
17041
17042         PR c/34885
17043         * tree-inline.c (setup_one_parameter): Deal with mismatched
17044         types using a VIEW_CONVERT_EXPR.
17045
17046 2008-01-21  Alon Dayan  <alond@il.ibm.com>
17047             Olga Golovanevsky  <olga@il.ibm.com>
17048
17049         PR tree-optimization/34701
17050         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
17051         when the structure size is not a power of 2.
17052
17053 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
17054
17055         * doc/install.texi: Add doc for --enable-checking=df.
17056
17057 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
17058
17059         PR rtl-optimization/34808
17060         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
17061
17062 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
17063
17064         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
17065         input.
17066
17067 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
17068
17069         PR rtl-optimization/26854
17070         PR rtl-optimization/34400
17071         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
17072         DF_RD->gen.
17073         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
17074         (df_rd_bb_info.expanded_lr_out): New.
17075         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
17076         * loop_iv.c (iv_analysis_loop_init): Ditto.
17077         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
17078         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
17079         Added code to allocate, initialize or free expanded_lr_out.
17080         (df_rd_bb_local_compute_process_def): Restructured to make
17081         more understandable.
17082         (df_rd_confluence_n): Add code to do nothing with fake edges and
17083         code to no apply invalidate_by_call sets if the sets are being trimmed.
17084         (df_lr_local_finalize): Renamed to df_lr_finalize.
17085         (df_live_local_finalize): Renamed to df_live_finalize.
17086
17087 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
17088
17089         PR target/34831
17090         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
17091         deciding whether to use reciprocal instructions.
17092
17093 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
17094
17095         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
17096         dwarf2out_note_section_used if cold_text_section is NULL.
17097
17098 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
17099
17100         PR gcov-profile/34610
17101         * tree-cfg.c (make_edges): Mark both outgoing edges from
17102         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
17103         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
17104         from OMP_FOR and OMP_CONTINUE outgoing edges.
17105
17106         * tree-profile.c (tree_profiling): Return early if
17107         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
17108         at the end.
17109         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
17110         from cfun to child_cfun.
17111         * function.h (struct function): Add after_tree_profile bit.
17112
17113 2008-01-19 Anatoly Sokolov <aesok@post.ru>
17114
17115         * config/avr/avr.S (_exit): Disable interrupt.
17116
17117 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
17118             Steven Bosscher  <stevenb.gcc@gmail.com>
17119
17120         PR rtl-optimization/26854
17121         PR rtl-optimization/34400
17122         * df-problems.c (df_live_scratch): New scratch bitmap.
17123         (df_live_alloc): Allocate df_live_scratch when doing df_live.
17124         (df_live_reset): Clear the proper bitmaps.
17125         (df_live_bb_local_compute): Only process the artificial defs once
17126         since the order is not important.
17127         (df_live_init): Init the df_live sets only with the variables
17128         found live by df_lr.
17129         (df_live_transfer_function): Use the df_lr sets to prune the
17130         df_live sets as they are being computed.
17131         (df_live_free): Free df_live_scratch.
17132
17133 2008-01-18  Ian Lance Taylor  <iant@google.com>
17134
17135         * common.opt: Add fmerge-debug-strings.
17136         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
17137         flag_merge_debug_strings rather than flag_merge_constants.
17138         * doc/invoke.texi (Option Summary): Mention
17139         -fmerge-debug-strings.
17140         (Debugging Options): Document -fmerge-debug-strings.
17141
17142 2008-01-18  Ian Lance Taylor  <iant@google.com>
17143
17144         PR c++/33407
17145         * tree.h (DECL_IS_OPERATOR_NEW): Define.
17146         (struct tree_function_decl): Add new field operator_new_flag.
17147         * tree-inline.c (expand_call_inline): When inlining a call to
17148         operator new, force the return value to go into a variable, and
17149         set DECL_NO_TBAA_P on that variable.
17150         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
17151
17152 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
17153
17154         PR debug/34484
17155         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
17156         DWARF2_DEBUGGING_INFO.
17157         (dwarf2out_note_section_used): Ditto.  Add prototype.
17158         (have_multiple_function_sections, text_section_used,
17159         cold_text_section_used, *cold_text_sections): Move declarations
17160         before their uses.
17161
17162 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
17163
17164         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
17165         field and add signal_ra.
17166         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
17167         assignments to frame state pc.  Move end of stack check after
17168         MD_FALLBACK_FRAME_STATE_FOR.
17169         (uw_update_context_1): Use frame state signal_regs if set, instead
17170         of checking signal_frame flag.
17171         (uw_update_context): Use frame state signal_ra if set.
17172         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
17173         * config/xtensa/linux-unwind.h: New file.
17174
17175 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
17176
17177         * modulo-sched.c (get_sched_window): Fix comment typo.
17178
17179 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
17180
17181         PR tree-optimization/34648
17182         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
17183
17184 2008-01-17  Anatoly Sokolov <aesok@post.ru>
17185
17186         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
17187         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
17188
17189 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
17190
17191         PR rtl-optimization/34400
17192         * df-core.c (df_worklist_dataflow_overeager,
17193         df_worklist_dataflow_doublequeue): New functions.
17194         (df_worklist_dataflow): Two different worklist solvers.
17195         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
17196         New param.
17197
17198 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
17199
17200         PR testsuite/34821
17201         * doc/invoke.texi: Document the dependence on pthread for fopenmp
17202         and ftree-parallelize-loops.
17203
17204 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
17205
17206         PR rtl-optimization/34826
17207         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
17208
17209 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
17210
17211         * global.c (find_reg): Mark the eh regs as used if necessary.
17212         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
17213         * ra.h (struct allocno): no_eh_reg field added.  Changed
17214         no_stack_reg type to bitfield.
17215
17216 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
17217
17218         * tree.c (substitute_in_expr): Add missing 'break'.
17219
17220 2008-01-17  Richard Guenther  <rguenther@suse.de>
17221
17222         PR tree-optimization/34825
17223         * tree-ssa-math-opts.c (is_division_by): Do not recognize
17224         x / x as division to handle.
17225
17226 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17227
17228         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
17229         "-pthread" is specified.
17230         * pa-hpux11.h (LIB_SPEC): Likewise.
17231
17232 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
17233             Peter Bergner  <bergner@vnet.ibm.com>
17234
17235         PR rtl-optimization/33796
17236         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
17237
17238 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17239
17240         PR libgfortran/34699
17241         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
17242         static links.
17243         * pa-hpux10.h (LINK_SPEC): Likewise.
17244         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
17245
17246 2008-01-16  Richard Guenther  <rguenther@suse.de>
17247
17248         PR middle-end/32628
17249         * fold-const.c (fold_convert_const_int_from_int): Do not
17250         set overflow if that occured only because of a sign extension
17251         change when converting from/to a sizetype with the same
17252         precision and signedness.
17253
17254 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
17255
17256         PR debug/34249
17257         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
17258         location address to the correct place.  Update copyright year.
17259
17260 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
17261
17262         * lambda-code.c (lambda_transform_legal_p): Handle the case of
17263         no dependences in the dependence_relations vector.
17264
17265 2008-01-16  Jan Hubicka  <jh@suse.cz>
17266
17267         PR rtl-optimization/31396
17268         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
17269         * cfg.c (dump_reg_info): Print it.
17270         * regs.h (struct reg_info_t): add freq_calls_crossed.
17271         (REG_FREQ_CALLS_CROSSED): New macro.
17272         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
17273         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
17274         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
17275         regmove_optimize): Update call crossed frequencies.
17276         * local-alloc.c (struct qty): Add freq_calls_crossed.
17277         (alloc_qty): Copute freq_calls_crossed.
17278         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
17279         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
17280         * ra.h (struct allocno): Add freq_calls_crossed.
17281
17282 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
17283
17284         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
17285         libgomp when compiling with ftree-parallelize-loops.
17286         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
17287
17288 2008-01-16  Richard Guenther  <rguenther@suse.de>
17289
17290         PR tree-optimization/34769
17291         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
17292         * tree.c (int_cst_value): Instead make this function more
17293         permissive in what it accepts as valid input.  Document this
17294         function always sign-extends the value.
17295
17296 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
17297             Richard Guenther  <rguenther@suse.de>
17298
17299         PR c/34668
17300         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
17301         (gimple_fold_indirect_ref_rhs): ... this.
17302         (gimple_fold_indirect_ref): New function with foldings
17303         that preserve lvalueness.
17304         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
17305         * tree-flow.h (gimple_fold_indirect_ref): Declare.
17306         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
17307         to fold an INDIRECT_REF, fall back to the old use of
17308         fold_indirect_ref_1.
17309
17310 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
17311
17312         * tree-data-ref.c (subscript_dependence_tester_1): Call
17313         free_conflict_function.
17314         (compute_self_dependence): Same.
17315
17316 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
17317
17318         PR debug/34249
17319         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
17320         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
17321         function global.
17322         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
17323         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
17324         for DWARF2_UNWIND_INFO targets.
17325
17326 2008-01-16  Richard Guenther  <rguenther@suse.de>
17327
17328         PR c/34768
17329         * c-typeck.c (common_pointer_type): Do not merge inconsistent
17330         type qualifiers for function types.
17331
17332 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
17333
17334         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
17335         loop_iterator li from previous commit.
17336
17337 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
17338
17339         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
17340
17341 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
17342
17343         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
17344         (parallelize_loops): Don't parallelize irreducible components.
17345
17346 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17347
17348         PR c++/24924
17349         * c-opts (c_common_post_options): Do not enable CPP
17350         flag_pedantic_errors by default.
17351
17352 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
17353
17354         PR rtl-optimization/31944
17355         * cse.c (remove_pseudo_from_table): New function.
17356         (merge_equiv_classes): Use above function to remove pseudo-registers.
17357         (invalidate): Likewise.
17358
17359 2008-01-13  Richard Guenther  <rguenther@suse.de>
17360
17361         PR middle-end/34601
17362         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
17363         instead of TYPE_MODE to deal with calls from expand_one_error_var.
17364
17365 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
17366
17367         * gcse.c (cprop_jump): Call validate_unshare_change instead of
17368         validate_change to unshare the source of the PC set.
17369
17370 2008-01-12  Jan Hubicka  <jh@suse.cz>
17371
17372         PR middle-end/32135
17373         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
17374         references above array bounds.  This might trigger bounds checks for
17375         pointers to arrays.
17376
17377 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
17378
17379         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
17380         new_replaceable_dependencies.
17381
17382 2008-01-12  Doug Kwan  <dougkwan@google.com>
17383
17384         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
17385         instead of OPT_Wreturn_type in warning due to ignored return type
17386         qualifiers.
17387         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
17388         options included in -Wextra.
17389         * c.opt: New option -Wignored_qualifiers.
17390         * doc/invoke.texi (Warning Options, -Wextra): Add new option
17391         -Wignore_qualifiers.
17392         (-Wignored-qualifiers): Document.
17393         (-Wreturn-type): Remove description of functionality now handled
17394         by -Wignored-qualifiers.
17395
17396 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
17397
17398         PR ada/33788
17399         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
17400         NOP_EXPR if it is between integral types with the same precision.
17401
17402 2008-01-12  Jan Hubicka  <jh@suse.cz>
17403
17404         PR other/28023
17405         * invoke.texi (max-inline-recursive-depth): Fix default value.
17406
17407 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
17408
17409         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
17410         correct type.
17411
17412 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
17413
17414         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
17415
17416 2008-01-11  James E. Wilson  <wilson@specifix.com>
17417
17418         PR target/26015
17419         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
17420
17421 2008-01-11  Anatoly Sokolov <aesok@post.ru>
17422
17423         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
17424         save/restore frame pointer register and don't use 'call-prologues'
17425         optimization in function with "OS_task" attribute.
17426
17427 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
17428
17429         PR middle-end/31309
17430         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
17431         when copying to memory.
17432
17433 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
17434
17435         PR rtl-optimization/30905
17436         * cfgcleanup.c: Include dce.h
17437         (crossjumps_occured): New global variable.
17438         (try_crossjump_bb): Exit loop after finding a fallthru edge.
17439         If something changed, set crossjumps_occured to true.
17440         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
17441         Don't add/remove fake edges to exit here...
17442         (cleanup_cfg): ...but do it here, when crossjumping.
17443         Run a fast DCE when successful crossjumps occured in the latest
17444         iteration of try_optimize_cfg.
17445
17446 2008-01-11  Richard Guenther  <rguenther@suse.de>
17447
17448         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
17449         (struct vn_unary_op_s): Likewise.
17450         (vn_reference_insert): Free old reference on hash collision.
17451
17452 2008-01-10  Raksit Ashok  <raksit@google.com>
17453
17454         PR rtl-optimization/27971
17455         * combine.c (find_split_point): Split PLUS expressions which are
17456         inside a MEM rtx, and whose first operand is complex.
17457
17458 2008-01-10  DJ Delorie  <dj@redhat.com>
17459
17460         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
17461         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
17462         (m32c_hard_regno_ok): Call the underlying function.
17463
17464 2008-01-10  Richard Guenther  <rguenther@suse.de>
17465
17466         PR middle-end/34683
17467         * tree-cfg.c (tree_merge_blocks): Do not go through the
17468         full-blown folding and stmt updating path if we just deal
17469         with virtual operands.
17470         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
17471         test for abnormal SSA_NAMEs.
17472
17473 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
17474
17475         PR middle-end/34641
17476         * reload.c (push_reload): Add assertions.  All constants from
17477         reg_equiv_constant should have been used for replacing the respective
17478         pseudo earlier.
17479         (find_reloads_address): Invoke find_reloads_address_part for
17480         constant taken from the reg_equiv_constant array.
17481
17482 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
17483
17484         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
17485         field (valnum) the first in the struct.  Replace bools with
17486         unit bit fields.
17487
17488 2008-01-10  Richard Guenther  <rguenther@suse.de>
17489
17490         PR tree-optimization/34651
17491         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
17492         types and ordering for masking and converting.
17493
17494 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
17495
17496         PR tree-optimization/34017
17497         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
17498         also for PHI_NODE expressions.
17499
17500 2008-01-09  Jan Hubicka  <jh@suse.cz>
17501
17502         PR tree-optimization/34708
17503         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
17504         based on number of case labels.
17505         (init_inline_once): Remove switch_cost.
17506         * tree-inline.h (eni_weights_d): Remove switch_cost.
17507
17508 2008-01-09  Richard Guenther  <rguenther@suse.de>
17509         Andrew Pinski  <andrew_pinski@playstation.sony.com>
17510
17511         PR middle-end/30132
17512         * gimplify.c (gimplify_cond_expr): Do not create an addressable
17513         temporary if an rvalue is ok or an lvalue is not required.
17514
17515 2008-01-09  Richard Guenther  <rguenther@suse.de>
17516
17517         PR middle-end/34458
17518         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
17519         adjust return type.
17520
17521 2008-01-09  Richard Guenther  <rguenther@suse.de>
17522
17523         PR middle-end/34679
17524         * tree.c (host_integerp): Check for sizetype only if the
17525         type is an integer type.
17526
17527 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
17528
17529         PR debug/26364
17530         * opts.c (decode_options): Disable inlining of functions called
17531         once if not in unit-at-a-time mode.
17532
17533 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
17534
17535         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
17536
17537 2008-01-08  Richard Guenther  <rguenther@suse.de>
17538
17539         PR middle-end/31863
17540         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
17541         out early if the result will be unused.
17542
17543 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
17544
17545         PR target/34709
17546         Revert:
17547
17548         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
17549         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
17550         for TARGET_RECIP.
17551
17552 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
17553
17554         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
17555         for vectorization tuned.
17556
17557 2008-01-08  Richard Guenther  <rguenther@suse.de>
17558
17559         PR tree-optimization/34683
17560         * tree-ssa-operands.c (operand_build_cmp): Export.
17561         * tree-ssa-operands.h (operand_build_cmp): Declare.
17562         * tree-vn.c (vuses_compare): Remove.
17563         (sort_vuses): Use operand_build_cmp.
17564         (sort_vuses_heap): Likewise.
17565         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
17566         to re-use old VEC if available.  Do not sort already sorted VUSEs.
17567         (vdefs_to_vec): Do not sort already sorted VDEFs.
17568
17569 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
17570
17571         PR middle-end/34694
17572         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
17573
17574 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
17575
17576         PR target/34702
17577         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
17578         limitations of reciprocal sequences on x86 targets.
17579
17580 2008-01-08  Richard Guenther  <rguenther@suse.de>
17581
17582         PR tree-optimization/34683
17583         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
17584
17585 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
17586
17587         PR target/34622
17588         * config/darwin.c (darwin_mergeable_string_section): Don't use
17589         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
17590
17591 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
17592
17593         PR target/34682
17594         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
17595         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
17596         predicates of op0 and op1 to register_operand.
17597         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
17598         expander using X87MODEF mode iterator.  Change predicates of
17599         op0 and op1 to register_operand.
17600         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
17601         corresponding patterns and macroize using MODEF macro.  Change
17602         predicates of op0 and op1 to register_operand and remove
17603         "m" constraint. Disparage "r" alternative with "!".
17604         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
17605         macroize using X87MODEF macro.  Change predicates of op0 and op1
17606         to register_operand and remove "m" constraint.  Disparage "r"
17607         alternative with "!".
17608         (absneg splitter with memory operands): Remove.
17609         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
17610         patterns and macroize using X87MODEF mode iterator.
17611         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
17612         Change predicate of op1 to register_operand.
17613         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
17614         for memory operands.
17615
17616 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
17617
17618         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
17619
17620 2008-01-07  Richard Guenther  <rguenther@suse.de>
17621
17622         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
17623         fields.
17624
17625 2008-01-07  Richard Guenther  <rguenther@suse.de>
17626
17627         PR tree-optimization/34683
17628         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
17629         VOPs of the needed size to save memory.  Use VEC_quick_push
17630         to save compile-time.
17631         (vdefs_to_vec): Likewise.
17632
17633 2008-01-07  Sa Liu  <saliu@de.ibm.com>
17634
17635         * config/spu/spu.md (divdf3): Genetate inline code for double
17636         division.  The implementation doesn't handle INF or NAN, therefore it
17637         only applies when -ffinite-math-only is given.
17638
17639 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
17640
17641         PR libstdc++/34680
17642         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
17643         * doc/cpp.texi ([Common Predefined Macros]): Document.
17644
17645 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
17646
17647         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
17648         order to use commutative addition instead of subtraction.
17649
17650 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17651             Mircea Namolaru  <namolaru@il.ibm.com>
17652             Vladimir Yanovsky  <yanov@il.ibm.com>
17653             Revital Eres  <eres@il.ibm.com>
17654
17655         PR tree-optimization/34263
17656         * tree-outof-ssa.c (process_single_block_loop_latch,
17657         contains_tree_r): New functions.
17658         (analyze_edges_for_bb): Call process_single_block_loop_latch
17659         function to empty single-basic-block latch block if possible.
17660
17661 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
17662
17663         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
17664         for TARGET_RECIP.
17665         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
17666
17667 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
17668
17669         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
17670
17671 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
17672
17673         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
17674
17675 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
17676
17677         PR tree-optimization/34618
17678         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
17679         flag from T.
17680
17681 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
17682
17683         PR target/34673
17684         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
17685         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
17686         Update copyright year.
17687
17688         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
17689         Update copyright year.
17690         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
17691         using NR fixup.
17692
17693 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
17694
17695         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
17696         edge does not point to current bb before changing need_assert.
17697
17698 2008-01-04  Richard Guenther  <rguenther@suse.de>
17699
17700         PR middle-end/34029
17701         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
17702         for verifying purposes if they are is_gimple_min_invariant.
17703
17704 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
17705
17706         PR tree-optimization/34448
17707         PR tree-optimization/34465
17708         * gimplify.c (gimplify_init_constructor): Add new parameter
17709         notify_temp_creation.  Use it.
17710         (gimplify_modify_expr_rhs): Take volatiles into account when
17711         optimizing constructors.
17712         Do not optimize constructors if gimplify_init_constructor will dump to
17713         memory.
17714         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
17715         * gcc.c-torture/compile/pr34448.c: New.
17716
17717 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
17718
17719         PR gcov-profile/34609
17720         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
17721         return_slot if result is TREE_ADDRESSABLE.
17722
17723 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
17724
17725         * config/mips/mips.md (sqrt_condition): Tweak comment.
17726         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
17727
17728 2008-01-03  Tom Tromey  <tromey@redhat.com>
17729
17730         PR c/34457
17731         * c-common.c (c_type_hash): Handle VLAs.
17732
17733 2008-01-03  Jan Hubicka  <jh@suse.cz>
17734
17735         PR tree-optimization/31081
17736         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
17737         0 when inlining and not inlining to first basic block.
17738         (remap_decl): When var is initialized to 0, don't set default_def.
17739         (expand_call_inline): Set entry_bb.
17740         * tree-inline.h (copy_body_data): Add entry_bb.
17741
17742 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
17743
17744         PR c++/34619
17745         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
17746         before returning.
17747
17748         PR tree-optimization/29484
17749         * tree-inline.c (inline_forbidden_p_2): New function.
17750         (inline_forbidden_p): Disallow inlining if some static var
17751         has an address of a local LABEL_DECL in its initializer.
17752         * doc/extend.texi (Labels as Values): Document &&foo behaviour
17753         vs. inlining.
17754
17755 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
17756
17757         PR tree-optimization/34635
17758         * tree-data-ref.c (add_other_self_distances): Make sure that the
17759         evolution step is constant.
17760
17761 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
17762
17763         PR middle-end/34608
17764         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
17765
17766 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
17767
17768         * tree-sra.c (scalarize_init): Insert the generate_element_init
17769         statements after the generate_element_zero statements.
17770
17771 2008-01-02  Richard Guenther  <rguenther@suse.de>
17772
17773         PR middle-end/34093
17774         PR middle-end/31976
17775         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
17776         for very large number of operands instead of ICEing.
17777
17778 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
17779
17780         PR target/34013
17781         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
17782         while stack probing.
17783
17784 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
17785
17786         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
17787         in C++0x mode.
17788
17789 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
17790
17791         PR libmudflap/26442
17792         * tree-mudflap.c (mx_register_decls): Guard warning by
17793         !DECL_ARTIFICIAL check.
17794
17795 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
17796
17797         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
17798         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
17799         sse5_perm<mode>): Fix constraints.