OSDN Git Service

2008-08-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2
3         PR middle-end/20644
4         * tree-ssa.c (struct walk_data): Add new flag
5         warn_possibly_uninitialized.
6         (warn_uninitialized_var): Use it.
7         (warn_uninitialized_vars): New.
8         (execute_early_warn_uninitialized): Call it.
9         (execute_late_warn_uninitialized): Likewise.
10
11 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12
13         PR middle-end/36238
14         * reload1.c (gen_reload): Guard calls to get_secondary_mem
15         for memory subregs.
16
17 2008-08-09  Jan Hubicka  <jh@suse.cz>
18
19         PR target/37055
20         * optabs.c (maybe_emit_unop_insn): Remove produced code if
21         expansion failed.
22         (expand_fix): Be prepared for expansion to fail.
23         (expand_sfix_optab): Remove instructions if expansion failed.
24
25 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
26
27         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
28         avr31 architecture.
29         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
30         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
31
32 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
33
34         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
35         mips/t-libgcc-mips16 to tmake_file.
36         * config/mips/mips-protos.h (mips_call_type): New enum.
37         (mips_pic_base_register, mips_got_load): Declare.
38         (mips_restore_gp): Take an rtx argument.
39         (mips_use_pic_fn_addr_reg_p): Declare.
40         (mips_expand_call): Replace the sibcall_p argument with
41         a mips_call_type argument.  Add a lazy_p parameter.
42         (mips_split_call): Declare.
43         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
44         (MIPS16_PIC_TEMP): Likewise.
45         (reg_class): Delete M16_NA_REGS.
46         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
47         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
48         (mips_split_hi_p): Declare.
49         * config/mips/mips.c (mips_split_hi_p): New array.
50         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
51         (mips_got_symbol_type_p): New function.
52         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
53         (mips16_stub_function_p): New function.
54         (mips16_local_function_p): Likewise.
55         (mips_use_pic_fn_addr_reg_p): Likewise.
56         (mips_cannot_force_const_mem): Return false for HIGHs.
57         Extend CONST_INT and symbolic handling to MIPS16, using
58         mips_symbol_insns to check that the base symbol type is a
59         legitimate constant.  Reject GOT-based constants if
60         TARGET_MIPS16_PCREL_LOADS.
61         (mips_const_insns): Check targetm.cannot_force_const_mem when
62         decomposing a symbolic base and a large offset.
63         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
64         When calling a function that needs $25 from MIPS16 code,
65         move the target address into $25 separately and add a USE
66         to the call insn.
67         (mips16_gp_pseudo_reg): Insert the initializer immediately
68         before the first real insn.
69         (mips_pic_base_register, mips_got_load): New functions.
70         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
71         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
72         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
73         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
74         (mips_call_tls_get_addr): Update the call to mips_expand_call,
75         also passing NULL_RTX rather than const0_rtx as the aux argument.
76         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
77         instead of TARGET_EXPLICIT_RELOCS.
78         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
79         (mips_load_call_address): Replace the sibcall_p argument with
80         a mips_call_type argument.  Use mips_got_load.
81         (mips16_local_alias): New structure.
82         (mips16_local_aliases): New variable.
83         (mips16_local_aliases_hash): New function.
84         (mips16_local_aliases_eq): Likewise.
85         (mips16_local_alias): Likewise.
86         (mips16_stub_function): Likewise.
87         (mips16_build_function_stub): Create a local alias for the target
88         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
89         .cpload directive and an R_MIPS_NONE relocation for the target
90         function, then load the alias rather than the function itself.
91         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
92         (mips16_copy_fpr_return_value): Use mips16_stub_function and
93         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
94         (mips16_build_call_stub): Replace the FN parameter with an
95         FN_PTR parameter.  Force the address into a register if it
96         isn't a call_insn_operand; don't rely on the caller to do this.
97         If a call to a locally-defined and locally-binding MIPS16
98         function must be made indirectly, redirect the call to the
99         function's local alias.  Use mips16_stub_function_p,
100         mips16_stub_function, mips_expand_call and use_reg.
101         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
102         Use explicit %hi and %lo accesses where possible.
103         Use MIPS_CALL to generate the correct code form of a
104         jal instruction.  Add clobbers of $18 instead of uses.
105         Update the call to mips_emit_call_insn.
106         (mips_expand_call): Replace the SIBCALL_P argument with a
107         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
108         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
109         allowing it to modify the call address.  Update the calls to
110         mips_load_call_address and mips_emit_call_insn.
111         (mips_split_call): New function.
112         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
113         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
114         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
115         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
116         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
117         if TARGET_MIPS16.
118         (mips_cprestore_slot): New function.
119         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
120         and use mips_cprestore_slot.
121         (mips_output_function_prologue): Handle TARGET_MIPS16 for
122         LOADGP_OLDABI.
123         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
124         then use a copygp_mips16 instruction to set up $28.
125         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
126         (mips16_lay_out_constants): Call split_all_insns_noflow.
127         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
128         false if TARGET_MIPS16.
129         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
130         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
131         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
132         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
133         MIPS16 code.  Allow MIPS16 o32 PIC.
134         (mips_override_options): Allow MIPS16 o32 PIC.
135         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
136         after reload if TARGET_USE_GOT.
137         (UNSPEC_COPYGP): New constant.
138         (length): Use a default length of 8 for MIPS16 GOT loads.
139         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
140         (*got_page<mode>): Check mips_split_hi_p.
141         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
142         (unspec_got<mode>, unspec_call<mode>): New expanders.
143         (load_got<mode>, load_call<mode>): Remove the length attributes.
144         Use a got attribute instead of a type attribute.
145         (copygp_mips16): New insn.
146         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
147         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
148         (sibcall, sibcall_value, call, call_value): Update the calls
149         to mips_expand_call.
150         (call_internal, call_value_internal): Use mips_split_call.
151         (call_value_multiple_internal): Likewise.
152         (call_split): Move after call_internal (the insn it is split from).
153         (call_internal_direct, call_value_internal_direct): Turn into
154         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
155         (call_direct_split, call_value_direct_split): New patterns.
156         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
157         and use M16_REGS instead of M16_NA_REGS.
158         * config/mips/predicates.md (const_call_insn_operand): Replace
159         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
160         mips_use_pic_fn_addr_reg_p check.
161         (move_operand): Reject HIGHs if mips_split_hi_p.
162         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
163         (__mips16_floatunsisf): Inline __mips16_floatsisf.
164         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
165         * config/mips/libgcc-mips16.ver: New file.
166         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
167         $(srcdir)/config/mips/libgcc-mips16.ver.
168
169 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
170
171         * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
172         (mips_unspec_address, mips_unspec_offset_high): Likewise.
173         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
174         (mips16_cfun_returns_in_fpr_p): Likewise.
175
176 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
177
178         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
179         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
180         rather than 4 to PC.
181
182 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
183
184         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
185         (FUNCTION_PROFILER): Save the static chain pointer into $2
186         beforehand and restore it aftewards.
187         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
188         address directly into $25 and call the function through $25;
189         do not clobber $3.  Pad the DImode version to cover the space
190         left by the deleted $25 <- $3 move.
191         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
192         the removal of the $25 <- $3 move.
193         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
194         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
195
196 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
197             Daniel Jacobowitz  <dan@codesourcery.com>
198
199         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
200         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
201         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
202         * config/mips/mips.c (mips_start_function_definition): New function.
203         (mips_end_function_definition): Likewise.
204         (mips_output_function_prologue): Use mips_start_function_definition.
205         (mips_output_function_epilogue): Use mips_end_function_definition.
206         (build_mips16_function_stub): Use mips_start_function_definition
207         and mips_end_function_definition.
208         (build_mips16_call_stub): Likewise.
209
210 2008-08-09  Richard Guenther  <rguenther@suse.de>
211
212         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
213         * gimple.h (gimple_call_fn): Adjust comment.
214         (gimple_call_set_fndecl): New function.
215         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
216         longer having bare FUNCTION_DECL operand.
217         (gimple_call_return_type): Likewise.
218         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
219
220         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
221         (gimple_mod_pow2): Likewise.
222         (gimple_mod_subtract): Likewise.
223         (gimple_ic): Likewise.
224         (gimple_stringop_fixed_value): Likewise.
225         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
226         longer having bare FUNCTION_DECL operand.
227         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
228         * omp-low.c (optimize_omp_library_calls): Likewise.
229         * cgraphunit.c (update_call_expr): Likewise.
230         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
231         (execute_convert_to_rsqrt): Likewise.
232         * cfgexpand.c (gimple_to_tree): Simplify.
233         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
234         bare FUNCTION_DECL operand.
235         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
236         (convert_gimple_call): Use gimple_call_fndecl.
237         * c-common.c (c_warn_unused_result): Likewise.
238
239 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
240
241         PR c/17880
242         * c-typeck.c (digest_init): Call verify_sequence_points from here.
243         (c_finish_return): Likewise.
244         (c_start_case): Likewise.
245         * c-common.c (warn_for_collisions_1): Use explicit location in
246         warning.
247         * c-parser.c (c_parser_condition): New. Call
248         verify_sequence_points.
249         (c_parser_paren_condition): Call c_parser_condition.
250         (c_parser_for_statement): Call c_parser_condition.
251
252 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
253
254         PR 36901
255         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.  
256         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
257         Moved from diagnostic.h
258         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
259         DK_PERMERROR.
260         (emit_diagnostic): New.
261         (warning0, pedwarn0): Delete.
262         (warning, warning_at, pedwarn, permerror): Return bool.  
263         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
264         Moved to diagnostic.c.
265         (struct diagnostic_context): Use correct type for
266         classify_diagnostic.
267         (diagnostic_report_diagnostic): Update declaration.
268         (emit_diagnostic): Declare.
269         * errors.c (warning): Return bool.  
270         * errors.h (warning): Update declaration.
271         * toplev.h (warning0, pedwarn0): Delete.
272         (warning, warning_at, pedwarn, permerror): Return bool.
273         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
274         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
275         inform. Update all calls.
276         (diagnose_mismatched_decls): Check return value of warning/pedwarn
277         before giving informative note.
278         (implicit_decl_warning): Likewise.  
279         * c-typeck.c (build_function_call): Likewise.  
280         * tree-sssa.c (warn_uninit): Likewise.  
281         * builtins.c (gimplify_va_arg_expr): Likewise.
282
283 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
284
285         PR 7651
286         * doc/invoke.texi (-Wextra): Move warning from here...
287         (-Wuninitialized): ... to here.
288         
289 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
290
291         PR 28875
292         * flags.h (set_Wunused): Delete
293         * toplev.c (process_options): Handle Wunused flags here.
294         * opts.c (maybe_warn_unused_parameter): Delete.
295         (common_handle_option): Replace set_Wunused by warn_unused.
296         (set_Wextra): Do not handle Wunused-parameter here.
297         (set_Wunused): Delete.
298         * c-opts.c (c_common_handle_option): Replace set_Wunused by
299         warn_unused.
300         * common.opt (Wunused): Add Var and Init.
301         (Wunused-function): Likewise.
302         (Wunused-label): Likewise.
303         (Wunused-parameter): Likewise.
304         (Wunused-value): Likewise.
305         (Wunused-variable): Likewise.
306         
307 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
308
309         * doc/invoke.texi: Add cpu_type power7.
310         * config.in (HAVE_AS_VSX): New.
311         * config.gcc: Add cpu_type power7.
312         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
313         VSX instructions.
314         * configure: Regenerate.
315         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
316         power5.
317         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
318         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
319         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
320
321 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
322
323         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
324         type to vectorize.builtin_conversion.
325         (vectorizable_conversion): Likewise.
326         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
327         integral type as input.
328         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
329         FIX_TRUNC_EXPR.
330         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
331         and ALTIVEC_BUILTIN_VCTSXS.
332         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
333         formatting. 
334
335 2008-08-08  Richard Guenther  <rguenther@suse.de>
336
337         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
338         (surely_varying_stmt_p): Calls are varying only if they are
339         non-builtin and not indirect or have no result.
340         (ccp_fold): Re-instantiate code before the tuples merge.
341
342 2008-08-08  Richard Guenther  <rguenther@suse.de>
343
344         PR tree-optimization/37056
345         * gimple.h (gimple_assign_rhs_class): New helper function.
346         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
347         unary operations properly.
348
349 2008-08-07  Jan Hubicka  <jh@suse.cz>
350
351         * i386.h (ix86_size_cost): Declare.
352         (ix86_cur_cost): New function macro.
353         * i386.md (peepholes expanding size and splitters): Predicate by
354         optimize_insn_for_speed_p.
355         (peepholes reduce size and splitters): Predicate by
356         optimize_insn_for_size_p.
357         * i386.c (ix86_size_cost): Rename from ...
358         (size_cost): This one.
359         (override_options): Update.
360         (decide_alg): Likewise.
361         (ix86_expand_clear): Use RTL profile.
362         (ix86_pad_returns): Use RTL profile.
363
364 2008-08-07  Jan Hubicka  <jh@suse.cz>
365
366         * recog.c (split_all_insns): Set RTL profile
367         (peephole2_optimize): Likewise.
368         * function.c (thread_prologue_and_epilogue_insns): Likewise.
369         * combine.c (combine_instructions): Likewise.
370
371 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
372
373         * c-common.c (c_common_reswords): Also warn about keyword "bool".
374
375 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
376         
377         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming value
378         in a6 after the set_frame_ptr insn.
379         
380 2008-08-07  Richard Henderson  <rth@redhat.com>
381
382         PR debug/37033
383         * gcc.c (cpp_options): Pass along -g*.
384
385 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
386
387         * config/arm/arm.c (output_move_neon): Update comment describing
388         big-endian vector layout.
389         (arm_assemble_integer): Do not handle big-endian NEON vectors
390         specially.
391         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
392         neon_vget_lane<mode>_sext_internal,
393         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
394         element indices for big-endian.
395
396 2008-08-07  Richard Henderson  <rth@redhat.com>
397
398         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
399         * configure, config.in: Rebuild.
400         * debug.h (dwarf2out_do_cfi_asm): Declare.
401         * c-cppbuiltin.c (c_cpp_builtins): Use it.
402         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
403         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
404         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
405
406 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
407
408         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
409         movv2si_internal): Combine into mov<mode>_internal.
410         (movv2si_internal_2): Remove.
411
412 2008-08-07  Jan Hubicka  <jh@suse.cz>
413
414         PR target/37048
415         * i386.md (single stringop patterns): Enable unconditionally. 
416
417 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
418
419         PR target/36992
420         * config/i386/emmintrin.h (_mm_move_epi64): Use
421         __builtin_ia32_movq128.
422
423         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
424         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
425
426         * config/i386/sse.md (sse2_movq128): New.
427
428         * doc/extend.texi: Document __builtin_ia32_movq128.
429
430 2008-08-07  Richard Guenther  <rguenther@suse.de>
431
432         PR middle-end/37042
433         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
434         pointers can access anything.
435
436 2008-08-06  Jan Hubicka  <jh@suse.cz>
437
438         * optabs.c (emit_unop_insn): Break out to ...
439         (maybe_emit_unop_insn): ... this one.
440         (expand_sfix_optab): Use maybe variant.
441         * optabs.h (maybe_emit_unop_insn): Declare.
442
443         * i386.md (mov0 patterns): Enable by default.
444         (FP conversion expanders): Disable expansion of code expanding
445         sequences when instruction should be optimized for size.
446         (single strinop patterns): Enable when optimizing for size.
447         (string expanders): Disable expanding of code expanding sequences
448         when optimizning instruction for size.
449         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
450         per BB basis.
451         (ix86_fp_comparison_sahf_cost): Likewise.
452         (ix86_expand_branch): Likewise.
453         (ix86_expand_ashl_const): Likewise.
454         (ix86_split_ashl): Likewise.
455         (ix86_expand_strlen): Likewise.
456         (ix86_emit_fp_unordered_jump): Likewie.
457
458 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
459
460         * c-common.c: Fix typo.
461         (c_common_reswords): Activate more C++ keyword warnings.
462
463         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
464
465 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
466        
467         PR 26785
468         * diagnostic.c (permerror_at): New.
469         * toplev.h (permerror_at): Declare.
470         
471 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
472             Ira Rosen  <irar@il.ibm.com>
473
474         * tree-vect-transform.c (vect_model_simple_cost): Return
475         immediately if stmt is pure SLP.
476         (vect_model_store_cost): Ditto.
477         (vect_model_load_cost): Ditto.
478         (vectorizable_store): Remove PURE_SLP check before call
479         to vect_model_store_cost.
480         (vect_model_store_cost): When checking whether stmt describe
481         strided access, add a check that it is not slp_node.
482
483 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
484
485         PR 8715
486         * c-common.c (warn_for_sign_compare): New. Handle separately the
487         case that 'constant' is zero.
488         * c-typeck.c (build_binary_op): Move code to c-common.c
489         
490 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
491
492         * config/alpha/alpha.c (alpha_preferred_reload_class,
493         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
494         alpha_output_mi_thunk_osf): Avoid C++ keywords.
495         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
496         * config/arm/arm.md: Likewise.
497         * config/avr/avr-protos.h (preferred_reload_class,
498         test_hard_reg_class, avr_simplify_comparison_p,
499         out_shift_with_cnt, class_max_nregs): Likewise.
500         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
501         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
502         preferred_reload_class, test_hard_reg_class): Likewise.
503         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
504         bfin_memory_move_cost, bfin_secondary_reload,
505         bfin_output_mi_thunk): Likewise.
506         * config/crx/crx.c (crx_secondary_reload_class,
507         crx_memory_move_cost): Likewise.
508         * config/frv/frv-protos.h (frv_secondary_reload_class,
509         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
510         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
511         frv_secondary_reload_class, frv_class_likely_spilled_p,
512         frv_class_max_nregs): Likewise.
513         * config/h8300/h8300.c (h8300_classify_operand,
514         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
515         Likewise.
516         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
517         * config/ia64/ia64.c (ia64_preferred_reload_class,
518         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
519         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
520         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
521         Likewise.
522         * config/m68hc11/m68hc11.c (preferred_reload_class,
523         m68hc11_memory_move_cost): Likewise.
524         * config/mcore/mcore.c (mcore_secondary_reload_class,
525         mcore_reload_class): Likewise.
526         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
527         mips_class_max_nregs, mips_cannot_change_mode_class,
528         mips_preferred_reload_class, mips_secondary_reload_class,
529         mips_output_mi_thunk): Likewise.
530         * config/mmix/mmix.c (mmix_preferred_reload_class,
531         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
532         Likewise.
533         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
534         Likewise.
535         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
536         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
537         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
538         * config/rs6000/rs6000.c (paired_expand_vector_init,
539         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
540         compare_section_name, rs6000_memory_move_cost): Likewise.
541         * config/s390/s390.c (s390_emit_compare_and_swap,
542         s390_preferred_reload_class, s390_secondary_reload,
543         legitimize_pic_address, legitimize_tls_address,
544         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
545         s390_class_max_nregs): Likewise.
546         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
547         * config/s390/s390.md: Likewise.
548         * config/score/score-protos.h (score_secondary_reload_class,
549         score_preferred_reload_class): Likewise.
550         * config/score/score.c (score_preferred_reload_class,
551         score_secondary_reload_class): Likewise.
552         * config/score/score3.c (score3_output_mi_thunk,
553         score3_preferred_reload_class, score3_secondary_reload_class,
554         score3_hard_regno_mode_ok): Likewise.
555         * config/score/score3.h (score3_preferred_reload_class,
556         score3_secondary_reload_class): Likewise.
557         * config/score/score7.c (score7_output_mi_thunk,
558         score7_preferred_reload_class, score7_secondary_reload_class,
559         score7_hard_regno_mode_ok): Likewise.
560         * config/score/score7.h (score7_preferred_reload_class,
561         score7_secondary_reload_class): Likewise.
562         * config/sh/sh.c (prepare_move_operands, output_far_jump,
563         output_branchy_insn, add_constant, gen_block_redirect,
564         sh_insn_length_adjustment, sh_cannot_change_mode_class,
565         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
566         Likewise.
567         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
568         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
569         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
570         xstormy16_preferred_reload_class): Likewise.
571         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
572         xtensa_expand_atomic, override_options,
573         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
574         Likewise.
575         * reorg.c (try_merge_delay_insns): Likewise.
576         * tree.c (merge_dllimport_decl_attributes): Likewise.
577
578         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
579
580 2008-08-06  Michael Matz  <matz@suse.de>
581
582         * Makefile.in (write_entries_to_file): Quote words.
583         * gengtype.c: (read_input_line): Skip over leading white-space.
584
585 2008-08-06  Marc Gauthier  <marc@tensilica.com>
586
587         * config.gcc: Match more processor names for Xtensa.
588         * configure.ac: Likewise.
589         * doc/install.texi (Specific): Likewise.
590         * configure: Regenerate.
591
592 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
593
594         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
595         * calls.c (avoid_likely_spilled_reg): Likewise.
596         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
597         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
598         * config/i386/i386.c (ix86_expand_special_args_builtin,
599         ix86_secondary_reload): Likewise.
600         * except.c (struct eh_region, gen_eh_region_catch,
601         remove_unreachable_regions, duplicate_eh_regions,
602         assign_filter_values, build_post_landing_pads,
603         sjlj_find_directly_reachable_regions, remove_eh_handler,
604         reachable_next_level, foreach_reachable_handler,
605         can_throw_internal_1, can_throw_external_1,
606         collect_one_action_chain): Likewise.
607         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
608         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
609         * function.c (update_temp_slot_address, instantiate_new_reg,
610         instantiate_virtual_regs_in_rtx,
611         instantiate_virtual_regs_in_insn): Likewise.
612         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
613         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
614         gimplify_cleanup_point_expr): Likewise.
615         * ipa-cp.c (ipcp_lattice_changed): Likewise.
616         * passes.c (next_pass_1): Likewise.
617         * print-tree.c (print_node_brief, print_node): Likewise.
618         * profile.c (branch_prob): Likewise.
619         * tree-dump.c (dump_register): Likewise.
620         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
621         Likewise.
622         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
623         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
624         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
625         copy_arguments_for_versioning, copy_static_chain): Likewise.
626         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
627         add_new_name_mapping, register_new_name_mapping): Likewise.
628         * tree-mudflap.c (mf_xform_derefs): Likewise.
629         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
630         get_init_expr, combine_chains): Likewise.
631         * tree-pretty-print.c (dump_generic_node): Likewise.
632         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
633         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
634         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
635         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
636
637 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
638
639         PR middle-end/37010
640         * calls.c (expand_call): Use the biggest preferred stack
641         boundary.
642
643 2008-08-06  Michael Matz  <matz@suse.de>
644
645         PR target/36613
646         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
647         for reused reload, instead of overwriting them.
648
649 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
650
651         PR middle-end/37009
652         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
653         for incoming stack boundary.
654
655         * function.c (assign_parm_find_entry_rtl): Update
656         parm_stack_boundary.
657
658         * function.h (rtl_data): Add parm_stack_boundary.
659
660         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
661         parm_stack_boundary for incoming stack boundary.
662
663 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
664
665         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
666         for unrepresentable subregs or treat them as equal to other regs
667         or subregs with the same register number.
668
669 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
670
671         PR middle-end/35432
672         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
673         if want_value.
674
675 2008-08-06  Jan Hubicka  <jh@suse.cz>
676
677         * predict.c (maybe_hot_frequency_p): When profile is absent, all
678         frequencies might be hot.
679
680 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
681
682         * reload.c (find_reloads): Force constants into literal pool
683         also if they are wrapped in a SUBREG.
684
685 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
686
687         PR target/35659
688         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
689         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
690         Don't allow predicated instructions for data speculation.
691         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
692         declaration.
693
694 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
695
696         * haifa-sched.c (extend_global): Split to extend_global_data and
697         extend_region_data.  Update all uses.
698         (extend_all): Rename to extend_block_data.
699
700 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
701
702         * sched-rgn.c (new_ready): Check if instruction can be
703         speculatively scheduled before attempting speculation.
704         (debug_rgn_dependencies): Remove wrongful assert.
705
706 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
707
708         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
709         
710 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
711         
712         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
713         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
714         va_size, and type_size.
715         
716 2008-08-04  Jason Merrill  <jason@redhat.com>
717
718         PR c++/37016
719         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
720         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
721
722 2008-08-05  Richard Henderson  <rth@redhat.com>
723
724         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
725         * configure: Rebuild.
726
727 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
728
729         PR tree-opt/37024
730         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
731         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
732         is a conversion.
733
734 2008-08-05  Richard Henderson  <rth@redhat.com>
735
736         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
737         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
738         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
739         * common.opt (fdwarf2-cfi-asm): New.
740         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
741         * config.in, configure: Rebuild.
742         * dwarf2asm.c (dw2_asm_output_data_raw): New.
743         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
744         (dw2_force_const_mem): Externalize.
745         * dwarf2asm.h: Update.
746         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
747         generate a real label.
748         (output_cfi_directive): New.
749         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
750         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
751         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
752         and .cfi_lsda.
753         (dwarf2out_end_epilogue): Emit .cfi_endproc.
754         (output_loc_operands_raw, output_loc_sequence_raw): New.
755         (output_cfa_loc_raw): New.
756         
757 2008-08-05  Paul Brook  <paul@codesourcery.com>
758
759         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
760         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
761         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
762         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
763         * config/arm/arm.h (TARGET_VFPD32): Define.
764         (TARGET_VFP3): Use TARGET_VFPD32.
765         (fputype): Add FPUTYPE_VFP3D16.
766         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
767         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
768         * config/arm/arm-cores.def: Add cortex-r4f.
769         * config/arm/arm-tune.md: Regenerate.
770
771 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
772
773         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
774         Reword some comments throughout the file.
775
776         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
777         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
778         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
779         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
780
781         (MFC_START_ENABLE): Remove PPU-only define.
782         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
783         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
784
785         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
786         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
787         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
788         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
789         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
790         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
791         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
792
793         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
794         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
795         (mfc_sdcrt, mfc_sdcrtst): Likewise.
796         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
797
798         (spu_read_machine_status): Fix typo.
799
800 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
801
802         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
803         SUBREG of multi-word hard register.
804         * config/spu/spu.c (valid_subreg): Likewise.
805         (adjust_operand): Handle SUBREGs of multi-word hard registers.
806
807 2008-08-04  Richard Guenther  <rguenther@suse.de>
808
809         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
810         the candidate with the stripped base if that base is different
811         from the original base even for offset zero.
812
813 2008-08-04  Richard Guenther  <rguenther@suse.de>
814
815         PR middle-end/36691
816         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
817         check for no_overflow.
818
819 2008-08-04  Richard Guenther  <rguenther@suse.de>
820
821         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
822
823 2008-08-04  Paul Brook  <paul@codesourcery.com>
824
825         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
826         (arm_order_regs_for_local_alloc): New function.
827         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
828         prototype.
829         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
830
831 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
832
833         PR target/37012
834         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
835         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
836         (ix86_expand_epilogue): Likewise.
837
838 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
839
840         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
841         in comments.
842
843 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
844
845         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
846         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
847         (*movv2sf_internal_rex64): Ditto.
848
849 2008-08-03  Jan Hubicka  <jh@suse.cz>
850
851         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
852         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
853         * expmed.c (expand_smod_pow2): Likewise.
854
855 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
856
857         PR target/36992
858         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
859         alternative 0 of operand 1.
860         (*vec_concatv2di_rex64_sse): Ditto.
861         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
862         of operand 1.
863         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
864         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
865         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
866         (*movv2sf_internal_rex64): Ditto.
867
868 2008-08-02  Richard Guenther  <rguenther@suse.de>
869
870         PR target/35252
871         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
872         (ssedoublesizemode): New mode attribute.
873         (sse_shufps): Call gen_sse_shufps_v4sf.
874         (sse_shufps_1): Macroize.
875         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
876         (sse2_shufpd_1): Macroize.
877         (vec_extract_odd, vec_extract_even): New expanders.
878         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
879         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
880         * i386.c (ix86_expand_vector_init_one_nonzero): Call
881         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
882         (ix86_expand_vector_set): Likewise.
883         (ix86_expand_reduc_v4sf): Likewise.
884
885 2008-08-01  Doug Kwan  <dougkwan@google.com>
886
887         * matrix-reorg.c: Re-enable all code.
888         (struct malloc_call_data): Change CALL_STMT to gimple type.
889         (collect_data_for_malloc_call): Tuplify.
890         (struct access_site_info): Change STMT to gimple type.
891         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
892         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
893         (struct free_info): Change STMT to gimple type.
894         (struct matrix_access_phi_node):  Change PHI to gimple type.
895         (get_inner_of_cast_expr): Remove.
896         (may_flatten_matrices_1): Tuplify.
897         (may_flatten_matrices): Ditto.
898         (mark_min_matrix_escape_level): Ditto.
899         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
900         (ssa_accessed_in_call_rhs): New
901         (ssa_accessed_in_assign_rhs): New
902         (record_access_alloc_site_info): Tuplify.
903         (add_allocation_site): Ditto.
904         (analyze_matrix_allocation_site): Ditto.
905         (analyze_transpose): Ditto.
906         (get_index_from_offset): Ditto.
907         (update_type_size): Ditto.
908         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
909         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
910         (analyze_accesses_for_phi_node): Tuplify.
911         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
912         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
913         (analyze_matrix_accesses): Tuplify.
914         (check_var_data): New call-back type for check_var_notmodified_p.
915         (check_var_notmodified_p): Tuplify and use call-back struct to
916         return statement found.
917         (can_calculate_expr_before_stmt): Factor out statement related code
918         into ...
919         (can_calculate_stmt_before_stmt): New.
920         (check_allocation_function): Tuplify.
921         (find_sites_in_func): Ditto.
922         (record_all_accesses_in_func): Ditto.
923         (transform_access_sites): Ditto.
924         (transform_allocation_sites): Ditto.
925         (matrix_reorg): Re-enable.
926         (gate_matrix_reorg): Re-enable.
927
928 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
929
930         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
931         for labels for which it hasn't been set yet.  If it has been set,
932         stop walking insns and continue with next worklist item.
933         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
934         if the only BARRIER is at the very end of a function.
935
936 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
937
938         * cfgexpand.c (expand_stack_alignment): Assert that
939         stack_realign_drap and drap_rtx must match.
940
941         * function.c (instantiate_new_reg): If DRAP is used to realign
942         stack, replace virtual_incoming_args_rtx with internal arg
943         pointer.
944
945 2008-08-01  Richard Guenther  <rguenther@suse.de>
946
947         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
948         loop information only if we initialized it.
949         (execute_pre): Call fini_pre with in_fre.
950         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
951         if we do not unroll because we hit max-completely-peeled-insns.
952         Use our estimation for consistency, do allow shrinking.
953
954 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
955
956         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
957         with MIN_STACK_BOUNDARY.
958         (ix86_update_stack_boundary): Likewise.
959         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
960         STACK_BOUNDARY.
961
962         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
963         (MIN_STACK_BOUNDARY): This.
964
965 2008-08-01  Richard Guenther  <rguenther@suse.de>
966
967         PR middle-end/36997
968         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
969
970 2008-08-01  Richard Guenther  <rguenther@suse.de>
971
972         PR tree-optimization/36988
973         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
974         do not matter if that doesn't change volatile qualification.
975
976 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
977
978         * configure.ac: Do not generate libada-mk.  Do not subst
979         host_cc_for_libada.
980         * libada-mk.in: Remove.
981         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
982         * configure: Regenerate.
983
984 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
985
986         * tree-pass.h: Added comment about not dumping passes with name
987         starting with star in struct opt_pass.
988         * passes.c (register_dump_files_1): Don't do dump for a pass with
989         name starting with star.
990         * doc/passes.texi (Pass manager): Mention pass names and special
991         meaning of star prefix to avoid dump.
992
993 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
994
995         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
996         to MIPS64r2.
997         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
998         (ISA_MIPS64R2): New macro.
999         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
1000         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
1001         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
1002         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
1003         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
1004         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
1005         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
1006         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
1007         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
1008         Move up to keep list alphabetically sorted.
1009         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
1010         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
1011         processor.
1012         * doc/invoke.texi (MIPS Options): Add -mips64r2.
1013         (-march=@var{arch}): Add mips64r2.
1014
1015 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1016
1017         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
1018
1019 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
1020
1021         * expr.c (expand_assignment): Check for complete type.
1022
1023 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1024
1025         PR debug/36977
1026         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
1027
1028         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
1029         for stack alignment.
1030
1031         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
1032
1033 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
1034
1035         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
1036         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
1037
1038 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
1039
1040         PR rtl-optimization/36419
1041         * dwarf2out.c (barrier_args_size): New variable.
1042         (compute_barrier_args_size, compute_barrier_args_size_1): New
1043         functions.
1044         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
1045         if not called yet in the current function, use barrier_args_size
1046         array to find the new args_size value.
1047         (dwarf2out_frame_debug): Free and clear barrier_args_size.
1048
1049 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1050
1051         PR debug/36980
1052         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
1053         rule 19.
1054
1055 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1056
1057         PR debug/36976
1058         * dwarf2out.c (dwarf2out_args_size_adjust): New.
1059         (dwarf2out_stack_adjust): Use it.
1060         (dwarf2out_frame_debug_expr): Likewise.
1061
1062 2008-07-31  Richard Guenther  <rguenther@suse.de>
1063
1064         PR tree-optimization/36978
1065         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
1066         the generated condition.
1067
1068 2008-07-31  Richard Guenther  <rguenther@suse.de>
1069
1070         * passes.c (init_optimization_passes): Always call
1071         pass_early_warn_uninitialized.
1072         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
1073         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
1074         * doc/passes.texi (Warn for uninitialized variables): Adjust.
1075
1076 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
1077
1078         PR c/36970
1079         * builtins.c (maybe_emit_free_warning): New function.
1080         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
1081         maybe_emit_free_warning for BUILT_IN_FREE.
1082
1083         PR debug/36278
1084         * dwarf2out.c (get_context_die): New function.
1085         (force_decl_die, force_type_die): Use it.
1086         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
1087         returns NULL, force generation of DW_TAG_typedef and put that into
1088         DW_AT_import.
1089
1090         PR preprocessor/36649
1091         * c-pch.c (c_common_read_pch): Save and restore
1092         line_table->trace_includes across PCH restore.
1093
1094 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
1095
1096         PR ada/36554
1097         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
1098
1099 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
1100
1101         PR 36974
1102         * final.c (call_from_call_insn): Handle COND_EXEC.
1103
1104 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
1105
1106         * builtins.c (std_gimplify_va_arg_expr): Replace
1107         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
1108         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1109
1110 2008-07-30  Joey Ye  <joey.ye@intel.com>
1111             H.J. Lu  <hongjiu.lu@intel.com>
1112
1113         * builtins.c (expand_builtin_setjmp_receiver): Replace
1114         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
1115         (expand_builtin_apply_args_1): Likewise.
1116         (expand_builtin_longjmp): Need DRAP for stack alignment.
1117         (expand_builtin_apply): Likewise.
1118
1119         * caller-save.c (setup_save_areas): Call assign_stack_local_1
1120         instead of assign_stack_local to allow alignment reduction.
1121
1122         * calls.c (emit_call_1): Need DRAP for stack alignment if
1123         return pops.
1124         (expand_call): Replace virtual_incoming_args_rtx with
1125         crtl->args.internal_arg_pointer.
1126         * stmt.c (expand_nl_goto_receiver): Likewise.
1127
1128         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
1129         alignment and store to stack_alignment_estimated and
1130         max_used_stack_slot_alignment.
1131         (expand_one_var): Likewise.
1132         (expand_stack_alignment): New function.
1133         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
1134         and stack_alignment_estimated fields in rtl_data.  Call
1135         expand_stack_alignment at end.
1136
1137         * defaults.h (INCOMING_STACK_BOUNDARY): New.
1138         (MAX_STACK_ALIGNMENT): Likewise.
1139         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
1140         (SUPPORTS_STACK_ALIGNMENT): Likewise.
1141
1142         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
1143         stack alignment when generating virtual registers.
1144
1145         * function.c (assign_stack_local): Renamed to ...
1146         (assign_stack_local_1): This.  Add a parameter to indicate
1147         if it is OK to reduce alignment.
1148         (assign_stack_local): Use it.
1149         (instantiate_new_reg): Instantiate virtual incoming args rtx
1150         to vDRAP if stack realignment and DRAP is needed.
1151         (assign_parms): Collect parameter/return type alignment and
1152         contribute to stack_alignment_estimated.
1153         (locate_and_pad_parm): Likewise.
1154         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
1155         with crtl->args.internal_arg_pointer.
1156
1157         * function.h (rtl_data): Add new field drap_reg,
1158         max_used_stack_slot_alignment, stack_alignment_estimated,
1159         stack_realign_needed, need_drap, stack_realign_processed and
1160         stack_realign_finalized.
1161         (stack_realign_fp): New macro.
1162         (stack_realign_drap): Likewise.
1163
1164         * global.c (compute_regsets): Frame pointer is needed when
1165         stack is realigned.  Can eliminate frame pointer when stack is
1166         realigned and dynamic realigned argument pointer isn't used.
1167
1168         * reload1.c (update_eliminables):  Frame pointer is needed
1169         when stack is realigned.
1170         (init_elim_table): Can eliminate frame pointer when stack is
1171         realigned and dynamic realigned argument pointer isn't used.
1172
1173         * rtl.h (assign_stack_local_1): Declare new funtion.
1174
1175         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
1176         (TARGET_GET_DRAP_RTX): Likewise.
1177         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
1178         TARGET_GET_DRAP_RTX.
1179
1180         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
1181
1182         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
1183         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
1184
1185 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
1186             H.J. Lu  <hongjiu.lu@intel.com>
1187
1188         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
1189         vdrap_reg, stack_realign and drap_reg_saved.
1190         (add_cfi): Don't allow redefining CFA when DRAP is used.
1191         (reg_save): Handle stack alignment.
1192         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
1193         alignment.  Don't generate DWARF information for (set fp sp)
1194         when DRAP is used.
1195         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
1196         to INVALID_REGNUM.
1197         (int_loc_descriptor): Move prototype forward.  Also define if
1198         DWARF2_UNWIND_INFO is true.
1199         (output_cfa_loc): Handle DW_CFA_expression.
1200         (build_cfa_aligned_loc): New.
1201         (based_loc_descr): Update assert for stack realign.  For local
1202         variables, use sp+offset when stack is aligned without drap and
1203         fp+offset when stack is aligned with drap.  For arguments, use
1204         cfa+offset when drap is used to align stack.
1205
1206 2008-07-30  Joey Ye  <joey.ye@intel.com>
1207             H.J. Lu  <hongjiu.lu@intel.com>
1208
1209         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
1210         Break long line.
1211         (ix86_gen_andsp): New.
1212         (ix86_user_incoming_stack_boundary): Likewise.
1213         (ix86_default_incoming_stack_boundary): Likewise.
1214         (ix86_incoming_stack_boundary): Likewise.
1215         (ix86_can_eliminate): Likewise.
1216         (find_drap_reg): Likewise.
1217         (ix86_update_stack_boundary): Likewise.
1218         (ix86_get_drap_rtx): Likewise.
1219         (ix86_finalize_stack_realign_flags): Likewise.
1220         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
1221         (TARGET_GET_DRAP_RTX): Likewise.
1222         (override_options): Overide option value for new options.
1223         (ix86_function_ok_for_sibcall): Remove check for
1224         force_align_arg_pointer.
1225         (ix86_handle_cconv_attribute): Likewise.
1226         (ix86_function_regparm): Likewise.
1227         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
1228         (ix86_va_start): Replace virtual_incoming_args_rtx with
1229         crtl->args.internal_arg_pointer.
1230         (ix86_select_alt_pic_regnum): Check DRAP register.
1231         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
1232         (ix86_compute_frame_layout): Compute frame layout wrt stack
1233         realignment.
1234         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
1235         (ix86_expand_prologue): Decide if stack realignment is needed
1236         and generate prologue code accordingly.
1237         (ix86_expand_epilogue): Generate epilogue code wrt stack
1238         realignment is really needed or not.
1239         
1240         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
1241         (ABI_STACK_BOUNDARY): Likewise.
1242         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
1243         (STACK_REALIGN_DEFAULT): Likewise.
1244         (INCOMING_STACK_BOUNDARY): Likewise.
1245         (MAX_STACK_ALIGNMENT): Likewise.
1246         (ix86_incoming_stack_boundary): Likewise.
1247         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
1248         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
1249         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
1250         (machine_function): Remove force_align_arg_pointer.
1251
1252         * config/i386/i386.md (BX_REG): New.
1253         (R13_REG): Likewise.
1254
1255         * config/i386/i386.opt (mforce_drap): New.
1256         (mincoming-stack-boundary): Likewise.
1257         (mstackrealign): Add Init(-1).
1258
1259         * config/i386/i386-protos.h (ix86_can_eliminate): New
1260
1261 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
1262
1263         * doc/extend.texi: Update force_align_arg_pointer.
1264
1265         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
1266         -mstackrealign.
1267
1268         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
1269         (INCOMING_STACK_BOUNDARY): Likewise.
1270         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
1271         (TARGET_GET_DRAP_RTX): Likewise.
1272
1273 2008-07-30  Andreas Schwab  <schwab@suse.de>
1274
1275         PR rtl-optimization/36929
1276         * dse.c (replace_inc_dec): Use emit_insn_before instead of
1277         add_insn_before and fix argument order.
1278         (replace_inc_dec_mem): Handle NULL rtx.
1279
1280 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
1281
1282         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
1283         function.
1284         (arm_compute_initial_elimination_offset): Use it.
1285         (arm_compute_save_reg_mask): Include static chain save slot when
1286         calculating alignment.
1287         (arm_get_frame_offsets): Ditto.
1288         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
1289         that we can use to decrement the stack when the stack decrement
1290         could be too big for an immediate value in a single insn.
1291         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
1292
1293 2008-07-30  Richard Guenther  <rguenther@suse.de>
1294
1295         PR tree-optimization/36967
1296         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
1297         Release defs of statements we remove.
1298
1299 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
1300
1301         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
1302         instead of NULL_RTVEC.
1303
1304 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
1305
1306         PR target/35866
1307
1308         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
1309         vector modes.
1310
1311 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
1312
1313         * final.c (call_from_call_insn): New.
1314         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
1315
1316 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
1317
1318         * configure.ac: Substitute ADA_CFLAGS.
1319         * configure: Regenerate.
1320         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
1321         * Makefile.in: Remove mention of X_* variables.
1322         * config/pa/x-ada-hpux10: Remove.
1323         * config/pa/x-ada: Remove.
1324
1325         * doc/fragments.texi: Update.
1326
1327 2008-07-30  Olivier Hainque  <hainque@adacore.com>
1328
1329         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
1330         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
1331         __dso_handle explicitly here.
1332
1333 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1334
1335         PR 34389
1336         * c-typeck.c (build_binary_op): Encapsulate code into...
1337         * c-common.c (shorten_binary_op): ...this new function.
1338         (conversion_warning): Use the new function. Handle non-negative
1339         constant in bitwise-and.
1340         * c-common.h (shorten_binary_op): Declare.
1341
1342 2008-07-30  Olivier Hainque  <hainque@adacore.com>
1343
1344         * scan.c (make_sstring_space): Add explicit conversions of
1345         allocator's return value.
1346         * fix-header.c (recognized_function): Likewise.
1347
1348 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1349
1350         * doc/cpp.texi: Update to GFDL 1.2.
1351         * doc/gcc.texi: Do not list GPL as Invariant Section.
1352         * doc/gccint.texi: Likewise.  Update copyright years.
1353         * doc/install.texi: Update copyright years.
1354
1355 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
1356
1357         PR target/36955
1358         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
1359         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
1360
1361 2008-07-29  Jan Hubicka  <jh@suse.cz>
1362
1363         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
1364         (grokdeclarator): Likewise.
1365         * langhooks.c (lhd_warn_unused_global_decl): Use
1366         DECL_DECLARED_INLINE_P.
1367         * print-tree.c (print_node): Remove DECL_INLINE check.
1368
1369 2008-07-29  Richard Guenther  <rguenther@suse.de>
1370
1371         PR tree-optimization/36945
1372         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
1373         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
1374         Record invariant addresses un-decomposed.
1375         (copy_reference_ops_from_call): Record reference call
1376         arguments properly.  Simplify.
1377         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
1378         helper split out from ...
1379         (create_component_ref_by_pieces): ... here.  Simplify.
1380         Prepare for recursive invocation for call arguments.
1381         (create_expression_by_pieces): Adjust call to
1382         create_component_ref_by_pieces.
1383         (compute_avail): Process operand 2 of reference ops.
1384
1385 2008-07-29  Richard Guenther  <rguenther@suse.de>
1386
1387         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
1388
1389 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
1390
1391         * c-format.c (check_format_types): Revert unwanted checkin.
1392
1393 2008-07-29  Jan Hubicka  <jh@suse.cz>
1394
1395         * flags.h (flag_really_no_inline): Remove.
1396         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
1397         * toplev.c (flag_really_no_inline): Remove.
1398         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
1399         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
1400         (cgraph_decide_inlining_incrementally): Likewise.
1401         (compute_inline_parameters): Likewise.
1402         * opts.c (decode_options): Simplify.
1403         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
1404         * common.opt (finline): Initialize to 1.
1405         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
1406
1407 2008-07-29  Jan Hubicka  <jh@suse.cz>
1408
1409         * predict.c (always_optimize_for_size_p): New function.
1410         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
1411         optimize_edge_for_size_p, optimize_edge_for_speed_p,
1412         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
1413         functions.
1414         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
1415         * function.c (prepare_function_start): Set default profile.
1416         * function.h (rtl_data): Add maybe_hot_insn_p.
1417         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
1418         (construct_exit_block): Likewise.
1419         (tree_expand_cfg): Likewise.
1420         * basic-block.h
1421         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
1422         optimize_edge_for_size_p, optimize_edge_for_speed_p,
1423         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
1424         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
1425         Declare.
1426
1427 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1428
1429         PR 34985
1430         * c-decl.c (merge_decls): Merge USED flags.
1431
1432 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1433
1434         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
1435         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
1436         next_stack, lab_false and lab_over trees.
1437
1438 2008-07-28  Richard Guenther  <rguenther@suse.de>
1439
1440         PR tree-optimization/36957
1441         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
1442         (useless_type_conversion_p): Remove.
1443         (types_compatible_p): Remove.
1444         * gimple.h (tree_ssa_useless_type_conversion): Declare.
1445         (useless_type_conversion_p): Declare.
1446         (types_compatible_p): Declare.
1447         (gimple_expr_type): Return the base type only if it is
1448         trivially convertible to the subtype.
1449
1450 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
1451
1452         * configure.ac: Use the m4_do macro to concatenate the warnings into
1453         one string in ACX_PROG_CC_WARNING_OPTS,
1454         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
1455         * configure: Regenerate.
1456
1457 2008-07-28  Richard Guenther  <rguenther@suse.de>
1458
1459         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
1460         (insert_fake_stores): Remove.
1461         (realify_fake_stores): Likewise.
1462         (execute_pre): Remove dead code.
1463         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
1464         (find_func_aliases): Deal with it here instead.
1465         Re-enable gcc_unreachable call.
1466
1467 2008-07-28  Richard Guenther  <rguenther@suse.de>
1468
1469         Merge from gimple-tuples-branch.
1470
1471         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
1472         * gimple.def: New file.
1473         * gsstruct.def: Likewise.
1474         * gimple-iterator.c: Likewise.
1475         * gimple-pretty-print.c: Likewise.
1476         * tree-gimple.c: Removed.  Merged into ...
1477         * gimple.c: ... here.  New file.
1478         * tree-gimple.h: Removed.  Merged into ...
1479         * gimple.h: ... here.  New file.
1480
1481         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
1482         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
1483         --enable-checking=gimple flag.
1484         * config.in: Likewise.
1485         * configure: Regenerated.
1486
1487         * tree-ssa-operands.h: Tuplified.
1488         * tree-vrp.c: Likewise.
1489         * tree-loop-linear.c: Likewise.
1490         * tree-into-ssa.c: Likewise.
1491         * tree-ssa-loop-im.c: Likewise.
1492         * tree-dump.c: Likewise.
1493         * tree-complex.c: Likewise.
1494         * cgraphbuild.c: Likewise.
1495         * tree-ssa-threadupdate.c: Likewise.
1496         * tree-ssa-loop-niter.c: Likewise.
1497         * tree-pretty-print.c: Likewise.
1498         * tracer.c: Likewise.
1499         * gengtype.c: Likewise.
1500         * tree-loop-distribution.c: Likewise.
1501         * tree-ssa-loop-unswitch.c: Likewise.
1502         * cgraph.c: Likewise.
1503         * cgraph.h: Likewise.
1504         * tree-ssa-loop-manip.c: Likewise.
1505         * value-prof.c: Likewise.
1506         * tree-ssa-loop-ch.c: Likewise.
1507         * tree-tailcall.c: Likewise.
1508         * value-prof.h: Likewise.
1509         * tree.c: Likewise.
1510         * tree.h: Likewise.
1511         * tree-pass.h: Likewise.
1512         * ipa-cp.c: Likewise.
1513         * tree-scalar-evolution.c: Likewise.
1514         * tree-scalar-evolution.h: Likewise.
1515         * target.h: Likewise.
1516         * lambda-mat.c: Likewise.
1517         * tree-phinodes.c: Likewise.
1518         * diagnostic.h: Likewise.
1519         * builtins.c: Likewise.
1520         * tree-ssa-alias-warnings.c: Likewise.
1521         * cfghooks.c: Likewise.
1522         * fold-const.c: Likewise.
1523         * cfghooks.h: Likewise.
1524         * omp-low.c: Likewise.
1525         * tree-ssa-dse.c: Likewise.
1526         * ipa-reference.c: Likewise.
1527         * tree-ssa-uncprop.c: Likewise.
1528         * toplev.c: Likewise.
1529         * tree-gimple.c: Likewise.
1530         * tree-gimple.h: Likewise.
1531         * tree-chrec.c: Likewise.
1532         * tree-chrec.h: Likewise.
1533         * tree-ssa-sccvn.c: Likewise.
1534         * tree-ssa-sccvn.h: Likewise.
1535         * cgraphunit.c: Likewise.
1536         * tree-ssa-copyrename.c: Likewise.
1537         * tree-ssa-ccp.c: Likewise.
1538         * tree-ssa-loop-ivopts.c: Likewise.
1539         * tree-nomudflap.c: Likewise.
1540         * tree-call-cdce.c: Likewise.
1541         * ipa-pure-const.c: Likewise.
1542         * c-format.c: Likewise.
1543         * tree-stdarg.c: Likewise.
1544         * tree-ssa-math-opts.c: Likewise.
1545         * tree-ssa-dom.c: Likewise.
1546         * tree-nrv.c: Likewise.
1547         * tree-ssa-propagate.c: Likewise.
1548         * ipa-utils.c: Likewise.
1549         * tree-ssa-propagate.h: Likewise.
1550         * tree-ssa-alias.c: Likewise.
1551         * gimple-low.c: Likewise.
1552         * tree-ssa-sink.c: Likewise.
1553         * ipa-inline.c: Likewise.
1554         * c-semantics.c: Likewise.
1555         * dwarf2out.c: Likewise.
1556         * expr.c: Likewise.
1557         * tree-ssa-loop-ivcanon.c: Likewise.
1558         * predict.c: Likewise.
1559         * tree-ssa-loop.c: Likewise.
1560         * tree-parloops.c: Likewise.
1561         * tree-ssa-address.c: Likewise.
1562         * tree-ssa-ifcombine.c: Likewise.
1563         * matrix-reorg.c: Likewise.
1564         * c-decl.c: Likewise.
1565         * tree-eh.c: Likewise.
1566         * c-pretty-print.c: Likewise.
1567         * lambda-trans.c: Likewise.
1568         * function.c: Likewise.
1569         * langhooks.c: Likewise.
1570         * ebitmap.h: Likewise.
1571         * tree-vectorizer.c: Likewise.
1572         * function.h: Likewise.
1573         * langhooks.h: Likewise.
1574         * tree-vectorizer.h: Likewise.
1575         * ipa-type-escape.c: Likewise.
1576         * ipa-type-escape.h: Likewise.
1577         * domwalk.c: Likewise.
1578         * tree-if-conv.c: Likewise.
1579         * profile.c: Likewise.
1580         * domwalk.h: Likewise.
1581         * tree-data-ref.c: Likewise.
1582         * tree-data-ref.h: Likewise.
1583         * tree-flow-inline.h: Likewise.
1584         * tree-affine.c: Likewise.
1585         * tree-vect-analyze.c: Likewise.
1586         * c-typeck.c: Likewise.
1587         * gimplify.c: Likewise.
1588         * coretypes.h: Likewise.
1589         * tree-ssa-phiopt.c: Likewise.
1590         * calls.c: Likewise.
1591         * tree-ssa-coalesce.c: Likewise.
1592         * tree.def: Likewise.
1593         * tree-dfa.c: Likewise.
1594         * except.c: Likewise.
1595         * except.h: Likewise.
1596         * cfgexpand.c: Likewise.
1597         * tree-cfgcleanup.c: Likewise.
1598         * tree-ssa-pre.c: Likewise.
1599         * tree-ssa-live.c: Likewise.
1600         * tree-sra.c: Likewise.
1601         * tree-ssa-live.h: Likewise.
1602         * tree-predcom.c: Likewise.
1603         * lambda.h: Likewise.
1604         * tree-mudflap.c: Likewise.
1605         * ipa-prop.c: Likewise.
1606         * print-tree.c: Likewise.
1607         * tree-ssa-copy.c: Likewise.
1608         * ipa-prop.h: Likewise.
1609         * tree-ssa-forwprop.c: Likewise.
1610         * ggc-page.c: Likewise.
1611         * c-omp.c: Likewise.
1612         * tree-ssa-dce.c: Likewise.
1613         * tree-vect-patterns.c: Likewise.
1614         * tree-ssa-ter.c: Likewise.
1615         * tree-nested.c: Likewise.
1616         * tree-ssa.c: Likewise.
1617         * lambda-code.c: Likewise.
1618         * tree-ssa-loop-prefetch.c: Likewise.
1619         * tree-inline.c: Likewise.
1620         * tree-inline.h: Likewise.
1621         * tree-iterator.c: Likewise.
1622         * tree-optimize.c: Likewise.
1623         * tree-ssa-phiprop.c: Likewise.
1624         * tree-vect-transform.c: Likewise.
1625         * tree-object-size.c: Likewise.
1626         * tree-outof-ssa.c: Likewise.
1627         * cfgloop.c: Likewise.
1628         * system.h: Likewise.
1629         * tree-profile.c: Likewise.
1630         * cfgloop.h: Likewise.
1631         * c-gimplify.c: Likewise.
1632         * c-common.c: Likewise.
1633         * tree-vect-generic.c: Likewise.
1634         * tree-flow.h: Likewise.
1635         * c-common.h: Likewise.
1636         * basic-block.h: Likewise.
1637         * tree-ssa-structalias.c: Likewise.
1638         * tree-switch-conversion.c: Likewise.
1639         * tree-ssa-structalias.h: Likewise.
1640         * tree-cfg.c: Likewise.
1641         * passes.c: Likewise.
1642         * ipa-struct-reorg.c: Likewise.
1643         * ipa-struct-reorg.h: Likewise.
1644         * tree-ssa-reassoc.c: Likewise.
1645         * cfgrtl.c: Likewise.
1646         * varpool.c: Likewise.
1647         * stmt.c: Likewise.
1648         * tree-ssanames.c: Likewise.
1649         * tree-ssa-threadedge.c: Likewise.
1650         * langhooks-def.h: Likewise.
1651         * tree-ssa-operands.c: Likewise.
1652         * config/alpha/alpha.c: Likewise.
1653         * config/frv/frv.c: Likewise.
1654         * config/s390/s390.c: Likewise.
1655         * config/m32c/m32c.c: Likewise.
1656         * config/m32c/m32c-protos.h: Likewise.
1657         * config/spu/spu.c: Likewise.
1658         * config/sparc/sparc.c: Likewise.
1659         * config/i386/i386.c: Likewise.
1660         * config/sh/sh.c: Likewise.
1661         * config/xtensa/xtensa.c: Likewise.
1662         * config/stormy16/stormy16.c: Likewise.
1663         * config/ia64/ia64.c: Likewise.
1664         * config/rs6000/rs6000.c: Likewise.
1665         * config/pa/pa.c: Likewise.
1666         * config/mips/mips.c: Likewise.
1667
1668 2008-07-28  Simon Baldwin  <simonb@google.com>
1669
1670         * c-pragma.c (handle_pragma_message): New function.
1671         (init_pragma): Register handle_pragma_message.
1672         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
1673         documentation.
1674
1675 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
1676
1677         PR tree-optimization/35252
1678         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
1679         REALPART_EXPR to be considered as same load operation.
1680
1681 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
1682
1683         PR tree-optimization/36830
1684         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
1685         (expressions_equal_p): Return false if only one operand is null.
1686
1687 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
1688
1689         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
1690         version requirements.
1691
1692 2008-07-26  Olivier Hainque  <hainque@adacore.com>
1693
1694         * collect2.c (symkind): New enum.  Symbol kinds we care about.
1695         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
1696         code and head comment accordingly.
1697         (scan_prog_file): Use symkind names instead of bare integers.
1698
1699 2008-07-25  Jan Hubicka  <jh@suse.cz>
1700
1701         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
1702         DECL_INLINE.
1703         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
1704         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
1705         * dojump.c (clear_pending_stack_adjust): Likewise.
1706         * print-tree.c (print_node): Ignore DECL_INLINE.
1707         * tree-inline.c (inlinable_function_p): Likewise.
1708
1709 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
1710
1711         * doc/extend.texi (hot attribute): Document that the hot attribute
1712         turns on -O3 for some ports.
1713         (cold attribute): Document that the cold attribute turns on -Os
1714         for some ports
1715
1716         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
1717         reflect function specific option support.
1718
1719         * target.h (struct target_option_hooks): Add fields to say whether
1720         the cold attribute implies -Os and the hot attribute implies -O3.
1721
1722         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
1723         By default, do not turn on -Os for cold functions.
1724         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
1725         not turn on -O3 for hot functions.
1726
1727         * c-common.c (handle_hot_attribute): Use target hook to determine
1728         if hot functions should enable -O3.
1729         (handle_cold_attribute): Use target hook to determine if cold
1730         functions should enable -Os.
1731
1732         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
1733         (override_options): Move disable scheduling to
1734         optimization_options.
1735         (optimization_options): Disable scheduling here, not
1736         override_options.
1737         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1738         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1739
1740         * config/ia64/ia64.c (ia64_override_options): Move setting
1741         scheduling flags to ia64_optimization_options.
1742         (ia64_optimization_options): Disable scheduling options here, and
1743         not in ia64_override_options.
1744         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1745         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1746
1747 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
1748
1749         PR target/36936
1750         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
1751
1752 2008-07-25  Martin Jambor  <mjambor@suse.cz>
1753
1754         PR tree-optimization/36926
1755         * ipa-prop.c (ipa_analyze_call_uses): Call
1756         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
1757
1758 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
1759
1760         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
1761         movv2si_internal): Add mem = reg alternative.
1762
1763 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
1764
1765         PR bootstrap/36918
1766         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
1767         DEFAULT_PCC_STRUCT_RETURN to 127.
1768
1769 2008-07-24  Jan Hubicka  <jh@suse.cz>
1770
1771         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
1772         (build_cgraph_edges): Likewise.
1773         * cgraph.c (cgraph_node): Do not update assembler hash.
1774         (cgraph_remove_node): Drop non-unit-at-a-time code.
1775         * tree-pass.h (pass_O0_always_inline): Remove.
1776         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
1777         * toplev.c (process_options): Flag unit-at-a-time does not imply
1778         no section anchors.
1779         * cgraphunit.c: Update comments.
1780         (decide_is_function_needed): Drop non-unit-at-a-time mode.
1781         (cgraph_assemble_pending_functions): Remove.
1782         (cgraph_reset_node): Drop non-unit-at-a-time code.
1783         (cgraph_finalize_function): Likewise.
1784         (cgraph_analyze_function): Likewise.
1785         (cgraph_finalize_compilation_unit): Likewise.
1786         (cgraph_expand_function): Likewise.
1787         (cgraph_optimize): Likesise.
1788         (save_inline_function_body): Likewise.
1789         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
1790         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
1791         * ipa-inline.c: Update comments.
1792         (enum inlining_mode): remove INLINE_SPEED.
1793         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
1794         (cgraph_mark_inline_edge): Likewise.
1795         (try_inline): Likewise.
1796         (cgraph_decide_inlining_incrementally): Likewise.
1797         (cgraph_gate_inlining): Remove.
1798         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
1799         (cgraph_gate_early_inlining): Likewise.
1800         (gate_inline_passes): Remove.
1801         (pass_inline_parameters, pass_ipa_inline): Remove gates.
1802         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
1803         pass_O0_always_inline): Remove.
1804         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
1805         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
1806         * opts.c (no_unit_at_a_time_default): Remove.
1807         (decode_options): Remove flag_unit_at_a_time reset and warning.
1808         * opts.h (no_unit_at_a_time_default): Remove.
1809         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
1810         early in GNU dialect.
1811         (merge_decls): Update comment; drop unit-at-a-time check.
1812         (finish_decl): Likewise.
1813         (grok_declaration): Remove flag_inline_trees code.
1814         (finish_functions): Return on function returning non-void on all
1815         statics.
1816         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
1817         * cfgexpand.c (expand_one_static_var): Remove.
1818         (expand_one_var): Remove expand_one_static_var call.
1819         (expand_used_vars_for_block): Remove flag_unit_a_time check.
1820         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
1821         and flag_unit_at_a-time compatibility checks.
1822         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
1823         * tree-inline.c (flag_inline_trees): Remove.
1824         (inlinable_function_p): Don't check it.
1825         (expand_call_inline): Remove non-unit-at-a-time code.
1826         * tree-inline.h (flag_inline_trees): Remove.
1827         * tree-optimize.c (execute_early_local_optimizations): Remove
1828         unit-at-a-time checks.
1829         (tree_rest_of_compilation): Likewise.
1830         * combine.c (setup_incoming_promotions): Likewise.
1831         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
1832         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
1833         * passes.c (pass_inline_parameters): Update comments; remove
1834         O0_alwaysinline pass.
1835         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
1836         (execute_one_pass): Likewise.
1837         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
1838         (ix86_function_sseregparm): Likewise.
1839         * arm.c (arm_function_in_section_p): Likewise.
1840         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
1841         * varpool.c: Update comments.
1842         (decide_is_variable_needed): Remove unit-at-a-time checks.
1843         (varpool_finalize_decl): Likewise.
1844
1845 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
1846
1847         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
1848         to 2 instead of -1.
1849         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
1850
1851 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
1852
1853         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
1854         imp symbol extension.
1855
1856         2008-07-23  Ian Lance Taylor  <iant@google.com>
1857
1858         * tree-vrp.c (infer_value_range): Ignore asm statements when
1859         looking for memory accesses for -fdelete-null-pointer-checks.
1860
1861 2008-07-24  Ben Elliston  <bje@au.ibm.com>
1862
1863         * config/spu/spu-c.c (__vector_keyword): New variable.
1864         (vector_keyword): Likewise.
1865         (spu_categorize_keyword): New function.
1866         (spu_macro_to_expand): Likewise.
1867         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
1868         compiling an ISO C dialect.
1869
1870 2008-07-24  Ben Elliston  <bje@au.ibm.com>
1871
1872         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
1873         conventional usage.
1874
1875 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1876
1877         * configure: Regenerate.
1878         * configure.ac: Require texinfo 4.7.
1879         * doc/install.texi: Document texinfo 4.7 requirement.
1880
1881 2008-07-23  Martin Jambor  <mjambor@suse.cz>
1882
1883         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
1884         rather than for DECL_SAVED_TREE.
1885         * ipa-prop.c: Include diagnostic.h.
1886         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
1887         thoroughly.
1888         (ipa_detect_param_modifications): Function rewritten from scratch.
1889         (ipa_compute_jump_functions): Changed accesses to modification flags.
1890         (ipa_free_node_params_substructures): Update flags destruction.
1891         (ipa_node_duplication_hook): Update flags duplication.
1892         (ipa_print_all_params_modified): Updated flag access.
1893         * ipa-prop.h (struct ipa_param_flags): New structure.
1894         (struct ipa_node_params): New field modification_analysis_done,
1895         modified_flags changed into param_flags.
1896         (ipa_is_ith_param_modified): Changed to use new flags.
1897         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
1898
1899         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
1900         ipa-cp.c and split into two functions.
1901         (ipa_print_node_jump_functions): New function.
1902         (compute_scalar_jump_functions): New function.
1903         (type_like_member_ptr_p): New function.
1904         (compute_pass_through_member_ptrs): New function.
1905         (fill_member_ptr_cst_jump_function): New function.
1906         (determine_cst_member_ptr): New function.
1907         (compute_cst_member_ptr_arguments): New function.
1908         (ipa_compute_jump_functions): Complete rewrite.
1909         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
1910         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
1911         (struct ipa_member_ptr_cst): New structure.
1912         (union jump_func_value): New field member_cst.
1913         * ipa-cp.c (ipcp_lat_is_insertable): New function.
1914         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
1915         jump function types.
1916         (ipcp_print_all_lattices): Slight fprintf rearrangement.
1917         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
1918         instead of ipcp_print_all_jump_functions.
1919         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
1920         only for replacable scalars.
1921
1922         * doc/invoke.texi (Optimize options): Add description of
1923         -findirect-inlining.
1924         * common.opt (flag_indirect_inlining): New flag.
1925         * opts.c (decode_options): Set flag_indirect_inlining when
1926         optimize >= 3.
1927
1928         * ipa-inline.c: Include ipa-prop.h.
1929         (inline_indirect_intraprocedural_analysis): New function.
1930         (inline_generate_summary): Allocate parameter and argument info
1931         structures, call inline_indirect_intraprocedural_analysis on each
1932         node when doing indirect inlining and deallocate indirect inlining
1933         data structures in the end.
1934         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
1935         (free_all_ipa_structures_after_iinln): New function.
1936         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
1937         done.
1938         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
1939
1940         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
1941         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1942         of computing the frequency separately.
1943         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1944         of computing the frequency separately.
1945         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
1946         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
1947         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
1948         (ipa_get_stmt_member_ptr_load_param): New function.
1949         (ipa_is_ssa_with_stmt_def): New function.
1950         (ipa_note_param_call): New function.
1951         (ipa_analyze_call_uses): New function.
1952         (ipa_analyze_stmt_uses): New function.
1953         (ipa_analyze_params_uses): New function.
1954         (ipa_free_node_params_substructures): Also free the param_calls linked
1955         list.
1956         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
1957         (ipa_print_node_param_flags): New function.
1958         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
1959         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
1960         * ipa-prop.h (struct ipa_param_flags): New field called.
1961         (struct ipa_param_call_note): New structure.
1962         (struct ipa_node_params): New fields param_calls and
1963         uses_analysis_done.
1964         (ipa_is_ith_param_called): New function.
1965         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1966         ipa_analyze_params_uses and dump parameter flags.
1967
1968         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
1969         ipa_propagate_indirect_call_infos if performing indirect inlining,
1970         pass a new parameter new_edges to it.
1971         (add_new_edges_to_heap): New fucntion.
1972         (cgraph_decide_inlining_of_small_functions): New vector
1973         new_indirect_edges for newly found indirect edges , call
1974         ipa_propagate_indirect_call_infos after inlining.
1975         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
1976         inlining if performing indirect inlining.  Call
1977         free_all_ipa_structures_after_iinln when doing so too.
1978         (inline_generate_summary): Do not call
1979         free_all_ipa_structures_after_iinln here.
1980         * ipa-prop.c (update_jump_functions_after_inlining): New function.
1981         (print_edge_addition_message): New function.
1982         (update_call_notes_after_inlining): New function.
1983         (propagate_info_to_inlined_callees): New function.
1984         (ipa_propagate_indirect_call_infos): New function.
1985         * ipa-prop.h: Include cgraph.h
1986         (struct ipa_param_call_note): Fields reordered, new field processed.
1987         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
1988         flag indirect_call.
1989         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
1990         rediscovered call statements.
1991         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
1992         (dump_cgraph_node): Dump also the indirect_call flag.
1993         (cgraph_clone_edge): Copy also the indirect_call flag.
1994         * tree-inline.c (copy_bb): Do not check for fndecls from call
1995         expressions, check for edge availability when moving clones.
1996         (get_indirect_callee_fndecl): New function.
1997         (expand_call_inline): If callee declaration is not apprent from
1998         the statement, try calling get_indirect_callee_fndecl.  Do not
1999         issue warnings or call sorry when not inlinings an indirect edge.
2000         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
2001
2002         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
2003         bit more frandly to matching.
2004         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
2005         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
2006         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
2007
2008 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
2009
2010         PR 36907
2011         * opth-gen.awk: Suppress function specific features when building
2012         target libraries.
2013         * optc-gen.awk: Ditto.
2014
2015 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2016
2017         PR 35058
2018         * diagnostic.c (pedwarn): Add opt parameter.
2019         (pedwarn0): New.
2020         * c-tree.h (pedwarn_init): Add opt parameter.
2021         (pedwarn_c90): Likewise.
2022         (pedwarn_c99): Likewise.
2023         * c-errors.c (pedwarn_c99): Likewise.
2024         (pedwarn_c90): Likewise.
2025         * toplev.h (pedwarn): Update declaration.
2026         (pedwarn0): Declare.
2027         * c-lex.c: All calls to pedwarn changed.
2028         * builtins.c: All calls to pedwarn changed.
2029         * toplev.c: All calls to pedwarn changed.
2030         * c-decl.c: All calls to pedwarn changed.
2031         * c-typeck.c: All calls to pedwarn changed.
2032         * c-common.c: All calls to pedwarn changed.
2033         * c-parser.c: All calls to pedwarn changed.
2034
2035 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
2036             Karthik Kumar  <karthikkumar@gmail.com>
2037
2038         * attribs.c (file scope): Include c-common.h.
2039         (decl_attributes): Add support for #pragma GCC optimize and
2040         #pragma GCC option.
2041
2042         * targhooks.c (default_can_inline_p): New function that is the
2043         default for the TARGET_CAN_INLINE_P target hook.
2044
2045         * targhooks.h (default_can_inline_p): Add declaration.
2046
2047         * tree.c (cl_optimization_node): New static tree for building
2048         OPTIMIZATION_NODE tree.
2049         (cl_target_option_node): New static tree for building
2050         TARGET_OPTION_NODE tree.
2051         (cl_option_hash_table): New hash table for hashing
2052         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
2053         (cl_option_hash_hash): New function to provide the hash value for
2054         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
2055         (cl_option_hash_eq): New function to provide an equality test for
2056         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
2057         (tree_code_size): Add support for OPTIMIZATION_NODE and
2058         TARGET_OPTION_NODE trees.
2059         (tree_code_structure): Add support for OPTIMIZATION_NODE and
2060         TARGET_OPTION_NODE trees.
2061         (build_optimization_node): Build a tree that has all of the
2062         current optimization options.
2063         (build_target_option_node): Build a tree that has the target
2064         options that might be changed on a per function basis.
2065
2066         * tree.h (file scope): Include options.h.
2067         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
2068         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
2069         (TREE_OPTIMIZATION): Ditto.
2070         (TREE_TARGET_SPECIFIC): Ditto.
2071         (struct tree_function_decl): Add fields for remembering the
2072         current optimization options and target specific options.
2073         (struct tree_optimization_option): New tree variant that remembers
2074         the optimization options.
2075         (struct tree_target_option): New tree variant that remembers the
2076         target specific flags that might change for compiling a particular
2077         function.
2078         (union tree_node): Include tree_optimization_option and
2079         tree_target_option fields.
2080         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
2081         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
2082         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
2083         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
2084         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
2085         optimization and target options.
2086         (optimization_default_node): New macro to refer to global_trees
2087         field.
2088         (optimization_current_node): Ditto.
2089         (optimization_cold_node): Ditto.
2090         (optimization_hot_node): Ditto.
2091         (target_option_default_node): Ditto.
2092         (target_option_current_node): Ditto.
2093         (current_option_pragma): Ditto.
2094         (current_optimize_pragma): Ditto.
2095
2096         * target.h (struct gcc_target): Add valid_option_attribute_p,
2097         target_option_save, target_option_restore, target_option_print,
2098         target_option_pragma_parse, and can_inline_p hooks.
2099
2100         * toplev.h (parse_optimize_options): Add declaration.
2101         (fast_math_flags_struct_set_p): Ditto.
2102
2103         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
2104         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
2105         optimize is used.
2106
2107         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
2108         tree_can_inline_p hook to see if one function can inline another.
2109         (cgraph_decide_inlining): Ditto.
2110         (cgraph_decide_inlining_incrementally): Ditto.
2111
2112         * opts.c (decode_options): Add support for running multiple times
2113         to allow functions with different target or optimization options
2114         than was specified on the command line.
2115         (fast_math_flags_struct_set_p): New function that is similar to
2116         fast_math_flags_set_p, except it uses the values in the
2117         cl_optimization structure instead of global variables.
2118
2119         * optc-gen.awk: Add support for TargetSave to allow a back end to
2120         declare new fields that need to be saved when using function
2121         specific options.  Include flags.h and target.h in the options.c
2122         source.  Add support for Save to indicate which options can be set
2123         for individual functions.  Generate cl_optimize_save,
2124         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
2125         cl_target_option_restore, cl_target_option_print functions to
2126         allow functions to use different optimization or target options.
2127
2128         * opt-functions.awk (var_type_struct): Return the type used for
2129         storing the field in a structure.
2130
2131         * opth-gen.awk: Add support for TargetSave to allow a back end to
2132         declare new fields that need to be saved when using function
2133         specific options.  Add support for Save to indicate which options
2134         can be set for individual functions.  Only generate one extern for
2135         Mask fields.  Generate cl_optimization and cl_target_option
2136         structures to remember optimization and target options.
2137
2138         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
2139         collecting new tree nodes.
2140         (TS_TARGET_OPTION): Ditto.
2141
2142         * c-decl.c (merge_decls): Merge function specific target and
2143         optimization options.
2144
2145         * function.c (invoke_set_current_function_hook): If the function
2146         uses different optimization options, change the global variables
2147         to reflect this.
2148
2149         * coretypes.h (struct cl_optimization): Add forward reference.
2150         (struct cl_target_option): Ditto.
2151
2152         * c-pragma.c (option_stack): New static vector to remember the
2153         current #pragma GCC option stack.
2154         (handle_pragma_option): New function to support #pragma GCC option
2155         to change target options.
2156         (optimize_stack): New static vector to remember the current
2157         #pragma GCC optimize stack.
2158         (handle_pragma_optimize): New function to support #pragma GCC
2159         optimize to change optimization options.
2160         (init_pragma): Add support for #pragma GCC optimize and #pragma
2161         GCC option.
2162
2163         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
2164         optimization options.
2165         (TARGET_OPTION_NODE): New tree code for remembering certain target
2166         options.
2167
2168         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
2169         TARGET_OPTION_NODE trees.
2170
2171         * common.opt (-O): Add Optimization flag.
2172         (-Os): Ditto.
2173         (-fmath-errno): Ditto.
2174         (-falign-functions): Add UInteger flag to make sure flag gets full
2175         int in cl_optimization structure.
2176         (-falign-jumps): Ditto.
2177         (-falign-labels): Ditto.
2178         (-falign-loops): Ditto.
2179         (-fsched-stalled-insns): Ditto.
2180         (-fsched-stalled-insns-dep): Ditto.
2181
2182         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
2183         definition.
2184         (TARGET_OPTION_SAVE): Ditto.
2185         (TARGET_OPTION_RESTORE): Ditto.
2186         (TARGET_OPTION_PRINT): Ditto.
2187         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
2188         (TARGET_CAN_INLINE_P): Ditto.
2189         (TARGET_INITIALIZER): Add new hooks.
2190
2191         * tree-inline.c (tree_can_inline_p): New function to determine
2192         whether one function can inline another.  Check if the functions
2193         use compatible optimization options, and also call the backend
2194         can_inline_p hook.
2195
2196         * tree-inline.h (tree_can_inline_p): Add declaration.
2197
2198         * c-common.c (c_common_attribute): Add support for option and
2199         optimize attributes.
2200         (handle_option_attribute): Add support for the option attribute to
2201         allow the user to specify different target options for compiling a
2202         specific function.
2203         (handle_optimize_attribute): Add support for the optimize
2204         attribute to allow the user to specify different optimization
2205         options for compiling a specific function.
2206         (handle_hot_attribute): Turn on -O3 optimization for this one
2207         function if it isn't the default optimization level.
2208         (handle_cold_attribute): Turn on -Os optimization for this one
2209         function if it insn't the default optimization.
2210         (const_char_p): New const char * typedef.
2211         (optimize_args): New static vector to remember the optimization
2212         arguments.
2213         (parse_optimize_options): New function to set up the optimization
2214         arguments from either the optimize attribute or #pragma GCC optimize.
2215
2216         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
2217         (builtin_define_std): Ditto.
2218
2219         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
2220         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
2221         (x86_64-*-*): Ditto.
2222
2223         * Makefile.in (TREE_H): Add options.h.
2224         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
2225
2226         * doc/extend.texi (option attribute): Document new attribute.
2227         (optimize attribute): Ditto.
2228         (hot attribute): Document hot attribute sets -O3.
2229         (cold attribute): Document cold attribute sets -Os.
2230         (#pragma GCC option): Document new pragma.
2231         (#pragma GCC optimize): Ditto.
2232
2233         * doc/options.texi (TargetSave): Document TargetSave syntax.
2234         (UInteger): Document UInteger must be used for certain flags.
2235         (Save): Document Save option to create target specific options
2236         that can be saved/restored on a function specific context.
2237
2238         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
2239         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
2240
2241         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
2242         (TARGET_OPTION_SAVE): Ditto.
2243         (TARGET_OPTION_RESTORE): Ditto.
2244         (TARGET_OPTION_PRINT): Ditto.
2245         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
2246         (TARGET_CAN_INLINE_P): Ditto.
2247
2248         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
2249         -mfpmath=sse,387.
2250         (-mfpmath=both): Ditto.
2251
2252 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
2253             Karthik Kumar  <karthikkumar@gmail.com>
2254
2255         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
2256         (TARGET_POPCNT): Ditto.
2257         (TARGET_SAHF): Ditto.
2258         (TARGET_AES): Ditto.
2259         (TARGET_PCLMUL): Ditto.
2260         (TARGET_CMPXCHG16B): Ditto.
2261         (TARGET_RECIP): Move switch into target_flags.
2262         (TARGET_FUSED_MADD): Ditto.
2263         (ix86_arch_features): Make an unsigned char type.
2264         (ix86_tune_features): Ditto.
2265         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
2266         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
2267         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
2268
2269         * config/i386/i386.opt (arch): New TargetSave field to define
2270         fields that need to be saved for function specific option support.
2271         (tune): Ditto.
2272         (fpmath): Ditto.
2273         (branch_cost): Ditto.
2274         (ix86_isa_flags_explicit): Ditto.
2275         (tune_defaulted): Ditto.
2276         (arch_specified): Ditto.
2277         (-m128-long-double): Add Save flag to save option for target
2278         specific option support.
2279         (-m80387): Ditto.
2280         (-maccumulate-outgoing-args): Ditto.
2281         (-malign-double): Ditto.
2282         (-malign-stringops): Ditto.
2283         (-mfancy-math-387): Ditto.
2284         (-mhard-float): Ditto.
2285         (-mieee-fp): Ditto.
2286         (-minline-all-stringops): Ditto.
2287         (-minline-stringops-dynamically): Ditto.
2288         (-mms-bitfields): Ditto.
2289         (-mno-align-stringops): Ditto.
2290         (-mno-fancy-math-387): Ditto.
2291         (-mno-push-args): Ditto.
2292         (-mno-red-zone): Ditto.
2293         (-mpush-args): Ditto.
2294         (-mred-zone): Ditto.
2295         (-mrtd): Ditto.
2296         (-msseregparm): Ditto.
2297         (-mstack-arg-probe): Ditto.
2298         (-m32): Ditto.
2299         (-m64): Ditto.
2300         (-mmmx): Ditto.
2301         (-m3dnow): Ditto.
2302         (-m3dnowa): Ditto.
2303         (-msse): Ditto.
2304         (-msse2): Ditto.
2305         (-msse3): Ditto.
2306         (-msse4.1): Ditto.
2307         (-msse4.2): Ditto.
2308         (-msse4): Ditto.
2309         (-mno-sse4): Ditto.
2310         (-msse4a): Ditto.
2311         (-msse5): Ditto.
2312         (-mrecip): Move flag into target_flags.
2313         (-mcld): Ditto.
2314         (-mno-fused-madd): Ditto.
2315         (-mfused-madd): Ditto.
2316         (-mabm): Move flag into ix86_isa_flags.
2317         (-mcx16): Ditto.
2318         (-mpopcnt): Ditto.
2319         (-msahf): Ditto.
2320         (-maes): Ditto.
2321         (-mpclmul): Ditto.
2322
2323         * config/i386/i386-c.c: New file for #pragma support.
2324         (ix86_target_macros_internal): New function to #define or #undef
2325         target macros based when the user uses the #pragma GCC option to
2326         change target options.
2327         (ix86_pragma_option_parse): New function to add #pragma GCC option
2328         support.
2329         (ix86_target_macros): Move defining the target macros here from
2330         TARGET_CPU_CPP_BUILTINS in i386.h.
2331         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
2332         defined, initialize any subtarget #pragmas.
2333
2334         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
2335         REGISTER_TARGET_PRAGMAS.
2336
2337         * config/i386/t-i386: New file for x86 dependencies.
2338         (i386.o): Make dependencies mirror the include files used.
2339         (i386-c.o): New file, add dependencies.
2340
2341         * config/i386/i386-protos.h (override_options): Add bool argument.
2342         (ix86_valid_option_attribute_tree): Add declaration.
2343         (ix86_target_macros): Ditto.
2344         (ix86_register_macros): Ditto.
2345
2346         * config/i386/i386.c (ix86_tune_features): Move initialization of
2347         the target masks to initial_ix86_tune_features to allow functions
2348         to have different target options.  Make type unsigned char,
2349         instead of unsigned int.
2350         (initial_ix86_tune_features): New static vector to hold processor
2351         masks for the tune variables.
2352         (ix86_arch_features): Move initialization of the target masks to
2353         initial_ix86_arch_features to allow functions to have different
2354         target options.  Make type unsigned char, instead of unsigned int.
2355         (initial_ix86_arch_features): New static vector to hold processor
2356         masks for the arch variables.
2357         (enum ix86_function_specific_strings): New enum to describe the
2358         string options used for attribute((option(...))).
2359         (ix86_target_string): New function to return a string that
2360         describes the target options.
2361         (ix86_debug_options): New function to print the current options in
2362         the debugger.
2363         (ix86_function_specific_save): New function hook to save the
2364         function specific global variables in the cl_target_option structure.
2365         (ix86_function_specific_restore): New function hook to restore the
2366         function specific variables from the cl_target_option structure to
2367         the global variables.
2368         (ix86_function_specific_print): New function hook to print the
2369         target specific options in the cl_target_option structure.
2370         (ix86_valid_option_attribute_p): New function hook to validate
2371         attribute((option(...))) arguments.
2372         (ix86_valid_option_attribute_tree): New function that is common
2373         code between attribute((option(...))) and #pragma GCC option
2374         support that parses the options and returns a tree holding the options.
2375         (ix86_valid_option_attribute_inner_p): New helper function for
2376         ix86_valid_option_attribute_tree.
2377         (ix86_can_inline_p): New function hook to decide if one function
2378         can inline another on a target specific basis.
2379         (ix86_set_current_function); New function hook to switch target
2380         options if the user used attribute((option(...))) or #pragma GCC
2381         option.
2382         (ix86_tune_defaulted): Move to static file scope from
2383         override_options.
2384         (ix86_arch_specified): Ditto.
2385         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
2386         ix86_isa_flags.
2387         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
2388         (OPTION_MASK_ISA_ABM_SET): Ditto.
2389         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
2390         (OPTION_MASK_ISA_CX16_SET): Ditto.
2391         (OPTION_MASK_ISA_SAHF_SET): Ditto.
2392         (OPTION_MASK_ISA_AES_UNSET): Ditto.
2393         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
2394         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
2395         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
2396         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
2397         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
2398         (struct ptt): Move to static file scope from override_options.
2399         (processor_target_table): Ditto.
2400         (cpu_names): Ditto.
2401         (ix86_handle_option): Add support for options that are now isa options.
2402         (override_options): Add support for declaring functions that
2403         support different target options than were specified on the
2404         command line.  Move struct ptt, processor_target_table, cpu_names,
2405         ix86_tune_defaulted, ix86_arch_specified to static file scope.
2406         Add bool argument.  Fix up error messages so the appropriate error
2407         is given for either command line or attribute.
2408         (ix86_previous_fndecl): New static to remember previous function
2409         declaration to see if we need to change target options.
2410         (ix86_builtins_isa): New array to record the ISA of each builtin
2411         function.
2412         (def_builtin): Always create the builtin function, even if the
2413         current ISA doesn't support it.
2414         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
2415         tests for those builtins.
2416         (ix86_init_builtins): Remove TARGET_MMX test for calling
2417         ix86_init_mmx_sse_builtins.
2418         (ix86_expand_builtin): If the current ISA doesn't support a given
2419         builtin, signal an error.
2420         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
2421         (TARGET_SET_CURRENT_FUNCTION): Ditto.
2422         (TARGET_OPTION_SAVE): Ditto.
2423         (TARGET_OPTION_RESTORE): Ditto.
2424         (TARGET_OPTION_PRINT): Ditto.
2425         (TARGET_CAN_INLINE_P): Ditto.
2426
2427 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
2428
2429         * c-typeck.c (build_external_ref): Don't call assemble_external.
2430         * final.c (output_operand): Call assemble_external.
2431
2432 2008-07-21  DJ Delorie  <dj@redhat.com>
2433
2434         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
2435         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
2436
2437 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2438
2439         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
2440         original insn and splitter contents into ...
2441         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
2442         flag_unsafe_math_optimizations.  Add dummy scratch register.
2443         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
2444         !flag_unsafe_math_optimizations.  Returns number with next
2445         highest magnitude if this is still less or equal to the true
2446         quotient in magnitude.
2447
2448 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
2449
2450         * Makefile.in: Replace toplev.h with TOPLEV_H.
2451         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
2452         * c-lex.c (fe_file_change): Don't set in_system_header.
2453         * c-parser.c (c_token): Remove in_system_header.
2454         (c_lex_one_token): Don't set in_system_header.
2455         (c_parser_set_source_position_from_token): Don't set in_system_header.
2456         * diagnostic.c (diagnostic_report_diagnostic): Use location from
2457         diagnostic_info.
2458         (warning_at): New.
2459         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
2460         * flags.h (in_system_header): Remove.
2461         * function.c (saved_in_system_header): Remove.
2462         (push_cfun): Don't set in_system_header.
2463         (pop_cfun): Don't set in_system_header.
2464         (push_struct_function): Don't set in_system_header.
2465         * input.h (expanded_location): Add sysp.
2466         (in_system_header_at): New.
2467         (in_system_header): New.
2468         * toplev.c (in_system_header): Remove.
2469         * toplev.h: Include input.h
2470         (warning_at): New.
2471         * tree-cfg.c (execute_warn_function_return): Call warning_at.
2472         * tree-ssa.c (warn_uninit): Call warning_at.
2473         (warn_uninitialized_var): Update calls to warn_uninit.
2474         (warn_uninitialized_phi): Update calls to warn_uninit.
2475         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
2476         (expand_location): Initialize xloc.sysp.
2477         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
2478         (tree_decl_with_vis): Remove in_system_header_flag.
2479
2480 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
2481
2482         PR target/36822
2483         * recog.c (asm_operand_ok): Change the order of the extra
2484         memory constraint checks.
2485
2486 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2487
2488         PR tree-opt/36879
2489         * tree-switch-conversion.c (build_one_array): Call
2490         varpool_mark_needed_node and varpool_finalize_decl
2491         instead of assemble_variable.
2492
2493 2008-07-19  Jan Hubicka  <jh@suse.cz>
2494
2495         * cgraph.c (cgraph_add_new_function): Do early local passes.
2496         * tree-nrv.c (gate_pass_return_slot): New gate.
2497         (pass_nrv): Add the gate.
2498         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
2499         functions.
2500         (coalesce_ssa_name): Coalesce SSA names.
2501         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
2502         not optimizing so unused user vars remains visible.
2503         * common.opt (flag_tree_ter): Always enable by default.
2504         * tree-ssa-ter.c: Include flags.h
2505         (is_replaceable_p): Check that locations match; when aliasing is missing
2506         be conservative about loads.
2507         * tree-optimize.c (gate_init_datastructures): Remove.
2508         (pass_init_datastructures): New.
2509         * passes.c: Reorder passes so we always go into SSA.
2510
2511 2008-07-19  Jan Hubicka  <jh@suse.cz>
2512
2513         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
2514         * doc/invoke.texi (--combine): Likewise.
2515         (-finline-functions-called-once): Update levels when enabled.
2516         (-funit-at-a-time): Document new behaviour.
2517         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
2518         -fno-section-anchors when disabled explicitly.
2519         (inline params): They are not ignored now.
2520         (precompiled headers): Remove unit-at-a-time as being incompatible.
2521         * opts.c (decode_options): Handle unit-at-a-time as alias;
2522         imply -fno-section-anchors when toplevel reorder is disabled
2523         explicitly.
2524         * common.opt (ftoplevel-reorder): Set default value to 2.
2525         (funit-at-a-time): Set default value to 1.
2526         * config/rs6000/rs6000.c (optimization_options): Set section anchors
2527         to 2.
2528
2529 2008-07-19  Jan Hubicka  <jh@suse.cz>
2530
2531         * builtins.c (expand_builtin_int_roundingfn,
2532         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
2533         it is not useful.
2534
2535 2008-07-19  Richard Guenther  <rguenther@suse.de>
2536
2537         PR bootstrap/36864
2538         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
2539         * tree-ssa-sccvn.c (get_constant_value_id): New function.
2540         * tree-ssa-pre.c (get_expr_value_id): For newly created
2541         constant value-ids make sure to add the expression to its
2542         expression-set.
2543
2544 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
2545
2546         PR middle-end/36877
2547         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
2548         return value of the builtin is ignored.
2549
2550 2008-07-19  Olivier Hainque  <hainque@adacore.com>
2551
2552         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
2553         bits, a C conformant malloc implementation has to provide.
2554         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
2555
2556 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
2557
2558         PR target/36780
2559         PR target/36827
2560         * reload.c (find_reloads_subreg_address): Only reload address if
2561         reloaded == 0, not for reloaded != 1.
2562
2563         Revert:
2564         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
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         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2570         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
2571         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
2572
2573 2008-07-19  Olivier Hainque  <hainque@adacore.com>
2574
2575         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
2576         argument, saying whether nested array are to be collapsed
2577         into a single array type DIE with multiple subscripts.
2578         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
2579         issues, centralize the nested array types collapsing control and
2580         disable the transformation for Ada.
2581
2582 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
2583
2584         PR target/36786
2585         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
2586         x86_64_shift_adj.
2587         (x86_64_shift_adj_2): New expander.
2588         (x86_64_shift_adj_3): Ditto.
2589         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
2590         to split TImode operands.
2591         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
2592         (ix86_split_lshr): Ditto.
2593
2594 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
2595
2596         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
2597         and __CHAR32_TYPE__.
2598         * c-typeck.c (digest_init): Support char16_t and char32_t.
2599         (set_nonincremental_init_from_string): Idem.
2600
2601 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2602
2603         PR middle-end/36859
2604         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
2605         PREFERRED_STACK_BOUNDARY.
2606         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2607
2608 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2609
2610         PR middle-end/36858
2611         * function.c (locate_and_pad_parm): Cap boundary earlier.
2612
2613 2008-07-17  Julian Brown  <julian@codesourcery.com>
2614
2615         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
2616         no-op for targets which don't use DLLs.
2617
2618 2008-07-17  Martin Jambor  <mjambor@suse.cz>
2619
2620         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
2621         that nodes are relevant by examining the node->analyzed flag.
2622         (ipcp_init_stage): Check which nodes are relevant, assert that the
2623         relevant ones are also required.
2624         (ipcp_propagate_stage): Check on the side arrays are properly
2625         allocated.
2626         (ipcp_print_all_jump_functions): Make sure not to touch any node
2627         that is not analyzed or an edge that does not have a corresponding
2628         entry in the on-the-side vectors.
2629         (ipcp_function_scale_print): Likewise.
2630         (ipcp_update_callgraph): Check that the node is relevant.
2631         (ipcp_insert_stage): Check that the node is relevant.  Check there is
2632         an info for every node and edge.
2633         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
2634         (ipa_print_all_tree_maps): Likewise and a new variable info.
2635         (ipa_print_all_params_modified): Likewise.
2636         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
2637
2638 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
2639
2640         PR target/25343
2641         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
2642
2643 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
2644
2645         PR rtl-optimization/36753
2646         * fwprop.c (use_killed_between): Don't shortcut
2647         single-definition global registers.
2648
2649 2008-07-16  Jan Hubicka  <jh@suse.cz>
2650
2651         * cgraph.h (varpool_empty_needed_queue): Declare.
2652         * cgraphunit.c (output_in_order): Mark all variables as needed;
2653         empty the queue.
2654         * varpool.c (varpool_assemble_node): Update debug queue.
2655         (varpool_assemble_pending_decls): Don't do it here.
2656         (varpool_empty_needed_queue):  New function.
2657
2658 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2659
2660         * recog.c (peephole2_optimize): Fix formatting.
2661
2662 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2663
2664         * c-pch.c (get_ident): Avoid C++ keywords.
2665         * combine-stack-adj.c (single_set_for_csa): Likewise.
2666         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
2667         output_asm_insn): Likewise.
2668         * reload.c (push_secondary_reload, find_reusable_reload,
2669         push_reload, combine_reloads, find_reloads,
2670         debug_reload_to_stream): Likewise.
2671         * reload.h (struct reload): Likewise.
2672         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
2673         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
2674         emit_output_reload_insns): Likewise.
2675         * targhooks.c (default_secondary_reload): Likewise.
2676         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
2677
2678 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2679
2680         * recog.c (validate_change_1, validate_change,
2681         validate_unshare_change, validate_replace_rtx_1, struct
2682         funny_match, constrain_operands, peephole2_optimize): Avoid C++
2683         keywords.
2684         * reload.c (push_secondary_reload, secondary_reload_class,
2685         scratch_reload_class, find_valid_class, find_reusable_reload,
2686         push_reload, find_dummy_reload, find_reloads_address_1,
2687         find_reloads_address_part, find_equiv_reg): Likewise.
2688         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
2689         choose_reload_regs): Likewise.
2690         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
2691         Likewise.
2692         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
2693         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
2694         * sched-rgn.c (concat_INSN_LIST): Likewise.
2695         * stor-layout.c (mode_for_size, mode_for_size_tree,
2696         smallest_mode_for_size): Likewise.
2697
2698 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2699
2700         * cfg.c (dump_reg_info): Avoid C++ keywords.
2701         * dwarf2asm.c (dw2_force_const_mem,
2702         dw2_asm_output_encoded_addr_rtx): Likewise.
2703         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
2704         * expmed.c (expand_shift): Likewise.
2705         * global.c (find_reg): Likewise.
2706         * graph.c (draw_edge): Likewise.
2707         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
2708         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
2709         widen_clz, widen_bswap, expand_parity, expand_unop,
2710         emit_cmp_and_jump_insn_1): Likewise.
2711         * postreload.c (reload_cse_simplify_operands): Likewise.
2712         * ra.h (add_neighbor): Likewise.
2713         * reg-stack.c (remove_regno_note, change_stack): Likewise.
2714         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
2715         record_reg_classes, copy_cost, record_address_regs,
2716         invalid_mode_change_p): Likewise.
2717         * regrename.c (regrename_optimize, scan_rtx_reg,
2718         dump_def_use_chain, find_oldest_value_reg,
2719         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
2720
2721 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
2722
2723         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
2724         MASK_POWERPC64 for power4 in previous commit.
2725
2726 2008-07-16  Olivier Hainque  <hainque@adacore.com>
2727
2728         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
2729         instead of bare conversion to cast const-ness away.
2730
2731 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
2732
2733         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
2734         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
2735         * config/xtensa/xtensa.c (xtensa_function_value): New function.
2736         (TARGET_FUNCTION_VALUE): Define.
2737
2738 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
2739
2740         * config/rs6000/rs6000.c (processor_target_table): Add
2741         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
2742
2743 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
2744
2745         PR target/36827
2746         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
2747         (m32c_legitimate_address_p): Handle "++rii" addresses created by
2748         m32c_legitimize_reload_address.
2749
2750 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
2751
2752         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
2753         DECL_IN_SYSTEM_HEADER in sync.
2754
2755 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
2756
2757         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
2758         * tree-ssa-pre.c (pre_expr_eq): Ditto
2759         (get_constant_for_value_id): Take a type as an argument.
2760         (fully_constant_expression): Pass in type.
2761         (find_or_generate_expression): Short circuit constant case.
2762         (create_expression_by_pieces): Remove special casing of
2763         pointer_plus.
2764         (do_regular_insertion): Short circuit constant case.
2765         (do_partial_partial_insertion): Ditto.
2766
2767 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2768
2769         PR target/36782
2770         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
2771
2772 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
2773
2774         * config/xtensa/libgcc-xtensa.ver: New file.
2775         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
2776
2777 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2778
2779         * df-problems.c (df_set_note): Avoid C++ keywords.
2780         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
2781         * dse.c (record_store, remove_useless_values): Likewise.
2782         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
2783         gen_reg_rtx_offset, operand_subword, change_address_1,
2784         change_address, adjust_address_1, offset_address,
2785         widen_memory_access, emit_copy_of_insn_after): Likewise.
2786         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
2787         * fwprop.c (should_replace_address, propagate_rtx_1,
2788         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
2789         Likewise.
2790         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
2791         gcse_emit_move_after, update_ld_motion_stores): Likewise.
2792         * lcm.c (compute_insert_delete, pre_edge_lcm,
2793         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
2794         * lower-subreg.c (resolve_reg_notes): Likewise.
2795         * mode-switching.c (optimize_mode_switching): Likewise.
2796
2797 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2798
2799         * bt-load.c (add_btr_def, migrate_btr_def,
2800         branch_target_load_optimize): Avoid C++ keywords.
2801         * caller-save.c (insert_restore, insert_save, insert_one_insn):
2802         Likewise.
2803         * combine.c (subst, simplify_set, make_extraction,
2804         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
2805         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
2806         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
2807
2808 2008-07-15  Richard Guenther  <rguenther@suse.de>
2809
2810         PR middle-end/36369
2811         * c-common.c (strict_aliasing_warning): Do not warn for
2812         TYPE_REF_CAN_ALIAS_ALL pointers.
2813         (c_common_get_alias_set): may_alias types are not special.
2814         * tree.c (build_pointer_type_for_mode): Look up the may_alias
2815         attribute and set can_ref_all accordingly.
2816         (build_reference_type_for_mode): Likewise.
2817         * doc/extend.texi (may_alias): Clarify.
2818
2819 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2820
2821         PR target/36780
2822         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
2823         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
2824
2825 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2826
2827         PR target/31568
2828         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
2829         gcc_assert, instead call output_operand_lossage.
2830
2831 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
2832
2833         * builtins.c (std_canonical_va_list): Treat structure based
2834         va_list types.
2835
2836 2008-07-15  Ben Elliston  <bje@au.ibm.com>
2837
2838         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
2839
2840 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
2841
2842         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
2843         is set.
2844
2845 2008-07-14  Jan Hubicka  <jh@suse.cz>
2846
2847         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
2848         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
2849         fix predicates and constraints.
2850         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
2851         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
2852
2853 2008-07-14  Doug Kwan  <dougkwan@google.com>
2854
2855         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
2856         additional option file arm/eabi.opt.
2857         * config/arm/eabi.h (File): New configuration file for EABI targets.
2858         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
2859         SUBSUBTARGET_EXTRA_SPECS.
2860         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
2861         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
2862         from STARTFILE_SPEC so that it can be referenced in an override.
2863         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
2864         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
2865         can be referenced in an override.
2866         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
2867         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
2868         so that it can be referenced in an override.
2869         (LINK_SPEC): Use BPABI_LINK_SPEC.
2870         * config/arm/eabi.opt (File): New.
2871
2872 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2873
2874         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
2875         (FIXED_VALUE_H): New variable.
2876         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
2877         input.h, fixed-value.h.
2878         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
2879         (BASIC_BLOCK_H): Use $(BITMAP_H).
2880         (FUNCTION_H): Add varray.h.
2881         (IPA_REFERENCE_H): Use $(BITMAP_H).
2882         (CGRAPH_H): Add $(BASIC_BLOCK_H).
2883         (DF_H): Use $(BITMAP_H).
2884         (GGC_H): Add statistics.h.
2885         (INSN_ADDR_H): New.
2886         (INSN_ATTR_H): Use it.
2887         (SYSTEM_H): Add safe-ctype.h, filenames.h.
2888         (INPUT_H): New.
2889         (SYMTAB_H): Add $(OBSTACK_H).
2890         (CPP_INTERNAL_H): New.
2891         (TREE_DUMP_H): Add tree-pass.h.
2892         (TREE_FLOW_H): Use $(BITMAP_H)
2893         (PRETTY_PRINT_H): Use $(INPUT_H).
2894         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
2895         (GSTAB_H): New.
2896         (BITMAP_H): New.
2897         (many object files): Fix lots of header dependencies throughout.
2898
2899 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2900
2901         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
2902         New macros.
2903         (s-gtyp-input): Use them to write tmp-gi.list.
2904         (echo_to_gi.list): Remove.
2905
2906 2008-07-14  Richard Guenther  <rguenther@suse.de>
2907
2908         * tree-ssa-sccvn.c (pre_info): Remove.
2909         (switch_to_PRE_table): Likewise.
2910         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
2911         (set_hashtable_value_ids): Do not create value-ids for the
2912         optimistic tables.
2913         (run_scc_vn): Remove double test.  Remove bogus special-case
2914         in value-number printing.
2915         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
2916         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
2917         SSA_NAME_VALUE.
2918         * tree-flow-inline.h (get_value_handle): Remove.
2919         * tree-flow.h (get_value_handle): Remove.
2920
2921 2008-07-14  Martin Jambor  <mjambor@suse.cz>
2922
2923         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
2924         in which we generate arithmetics is not a subrange.
2925
2926 2008-07-14  Martin Jambor  <mjambor@suse.cz>
2927
2928         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
2929
2930 2008-07-14  Richard Guenther  <rguenther@suse.de>
2931
2932         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
2933
2934 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
2935
2936         PR target/36745
2937         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
2938         reload for symbol refs moved to r0 with -fPIC.
2939         (legitimize_pic_address): Use the target register as temporary
2940         reg if possible.
2941         (emit_symbolic_move): Adjust comment.
2942         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
2943         New expanders.
2944
2945 2008-07-14  Ben Elliston  <bje@au.ibm.com>
2946
2947         * c-common.h (C_CPP_HASHNODE): New macro.
2948         * coretypes.h (struct cpp_token): Forward declare.
2949         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2950         the context-sensitive keyword method.
2951         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
2952         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
2953         expand_bool_pixel): New.
2954         (altivec_categorize_keyword): New function.
2955         (init_vector_keywords): New function.
2956         (rs6000_macro_to_expand): Likewise.
2957         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
2958         compiling an ISO C dialect.
2959
2960 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
2961
2962         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
2963         (create_expression_by_pieces): Fix typo.
2964         (do_regular_insertion): Use debug counter here too.
2965
2966 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
2967
2968         PR target/35492.
2969         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
2970         CONST_OK_FOR_LETTER_P.  All port-local users changed.
2971         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
2972         implement Kp matching power-of-two.
2973         (CONSTRAINT_LEN): Define to match.
2974         * config/cris/cris.md: Replace all use of constraint K with Kc.
2975         ("*btst*): Use Kp for operand 0 of last alternative.
2976
2977 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2978
2979         PR testsuite/36440
2980         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
2981         and quad formats.
2982
2983 2008-07-13  Jan Hubicka  <jh@suse.cz>
2984
2985         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
2986         to be mangled too.
2987
2988 2008-07-13  Richard Guenther  <rguenther@suse.de>
2989
2990         PR middle-end/36811
2991         * langhooks.c (lhd_print_error_function): Deal with recursive
2992         BLOCK trees.
2993
2994 2008-07-12  Jan Hubicka  <jh@suse.cz>
2995
2996         * cgraph.c (assembler_name_hash): New static var.
2997         (hash_node_by_assembler_name, eq_assembler_name): New.
2998         (cgraph_node_for_asm): Use hashtable.
2999         (cgraph_remove_node): Maintain hashtable.
3000         (change_decl_assembler_name): Sanity check that names are not changing
3001         after aliasing was processed.
3002         * cgraph.h (varpoon_node): Add next GGC marker.
3003         * tree.c (decl_assembler_name_equal): Constify.
3004         (decl_assembler_name_hash): New.
3005         * tree.h (decl_assembler_name_equal): Constify.
3006         (decl_assembler_name_hash): Update.
3007
3008 2008-07-12  David Daney  <ddaney@avtrex.com>
3009
3010         * config/mips/driver-native.c (host_detect_local_cpu): Handle
3011         sb1 and r5000 cpus.
3012
3013 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3014
3015         * doc/md.texi: Document the MIPS "v" constraint.
3016         * config/mips/mips.h (reg_class): Revert last change.
3017         (REG_CLASS_NAMES): Likewise.
3018         (REG_CLASS_CONTENTS): Likewise.
3019         * config/mips/mips.c (mips_regno_to_class): Likewise.
3020         * config/mips/constraints.md (v): Likewise, but add documentation.
3021         Add a comment to say that this constraint should not be used in
3022         gcc code.
3023
3024 2008-07-11  DJ Delorie  <dj@redhat.com>
3025
3026         * config/h8300/h8300.md (length): Fix branch offset limit.
3027
3028 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
3029
3030         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
3031         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
3032         (avr_hard_regno_scratch_ok): New function.
3033         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
3034         * config/avr/avr.md (all peepholes that request a scratch register):
3035         Remove avr_peep2_scratch_safe use.
3036
3037 2008-07-11  Tom Tromey  <tromey@redhat.com>
3038             Ian Lance Taylor  <iant@google.com>
3039
3040         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
3041         (struct c_common_resword): Define.
3042         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
3043         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
3044         (c_common_reswords, num_c_common_reswords): Declare.
3045         * c-common.c (c_common_reswords): New global const array.
3046         (num_c_common_reswords): New const int.
3047         * c-parser.c (struct resword, reswords): Don't define.
3048         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
3049         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
3050         than reswords.  If warning about C++ keywords, give them a special
3051         RID code.
3052         (c_lex_one_token): Warn about C++ keywords.  Call
3053         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
3054         (c_parser_external_declaration): Look for RID_xxx rather than
3055         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
3056         (c_parser_statement_after_labels): Likewise.
3057         (c_parser_objc_class_instance_variables): Likewise.
3058         (c_parser_objc_class_declaration): Likewise.
3059         (c_parser_objc_try_catch_statement): Likewise.
3060         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
3061         (declspecs_add_type): Likewise.
3062
3063 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
3064
3065         * ggc-page.c (alloc_page):
3066         Substituting xmalloc, xcalloc with
3067         XNEWVEC and XCNEWVAR macros which add the
3068         needed casts.
3069
3070 2008-07-11  Richard Guenther  <rguenther@suse.de>
3071
3072         PR tree-optimization/36765
3073         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
3074         aliases from HEAP vars to SMTs.
3075
3076 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3077
3078         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
3079         * configure.ac (loose_warn): Move -Wc++-compat from here...
3080         (strict_warn): ...to here.
3081         * configure: Regenerate.
3082
3083 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
3084
3085         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
3086         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
3087         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
3088         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
3089         excluding more specific h8300-*-* and sh-*-* targets.
3090
3091 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
3092
3093         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
3094         (eliminate): Ditto.
3095         (execute_pre): Call loop_optimizer_finalize in early exit.
3096
3097 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
3098
3099         PR middle-end/36790
3100         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
3101         uids in the bitmap, not just VAR_DECL uids.
3102
3103         PR rtl-optimization/36419
3104         * combine-stack-adj.c (adjust_frame_related_expr): New function.
3105         (combine_stack_adjustments_for_block): Call it if needed.  Delete
3106         correct insn.
3107         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
3108         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
3109         prologue sp adjustment.
3110
3111 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
3112
3113         PR other/28322
3114         * opts.c (print_ignored_options): Report postponed diagnostics for
3115         unknown -Wno-* options as warnings, not errors.
3116         (postpone_unknown_option_error): Renamed to...
3117         (postpone_unknown_option_warning): ... this.
3118
3119 2008-07-09  Doug Kwan  <dougkwan@google.com>
3120
3121         Revert:
3122         2008-07-08  Doug Kwan  <dougkwan@google.com>
3123
3124         * config/arm/arm.opt (mandroid): New option.
3125         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
3126         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
3127         (CC1_SPEC): Same.
3128         (CC1PLUS_SPEC): Same.
3129         (LIB_SPEC): Same.
3130         (STARTFILE_SPEC): Same.
3131         (ENDFILE_SPEC): Same.
3132         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
3133         used.
3134
3135 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
3136
3137         PR target/35802
3138         * config/mips/mips.h (reg_class): Remove V1_REG.
3139         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
3140         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
3141         instead of V1_REGS.
3142         (mips_get_tp): New function.
3143         (mips_legitimize_tls_address): Use it.
3144         * config/mips/constraints.md (v): Delete.
3145         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
3146         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
3147         After reload, split into a move and ...
3148         (*tls_get_tp_<mode>_split): ...this new instruction.
3149
3150 2008-07-09  David Daney  <ddaney@avtrex.com>
3151
3152         * config/mips/driver-native.c: Include coretypes.h and tm.h.
3153
3154 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
3155
3156         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
3157         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
3158         Add c argument.
3159         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
3160         htab_delete should be called.  Don't free c.
3161         (lookup_tmp_var): Create temp_htab lazily.
3162         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
3163         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
3164         callers.
3165         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
3166         lower_omp_ordered, lower_omp_critical, lower_omp_for,
3167         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
3168         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
3169         * tree-sra.c (generate_element_init): Likewise.
3170         * tree-mudflap.c (execute_mudflap_function_ops,
3171         execute_mudflap_function_decls): Likewise.
3172         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
3173         * tree-gimple.h (struct gimplify_ctx): New type.
3174         (push_gimplify_context): Adjust prototype.
3175
3176 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
3177
3178         * tree-ssa-pre.c (phi_translate_1): Update placement of
3179         add_to_value calls.
3180
3181 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
3182
3183         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
3184         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
3185         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
3186         * targhooks.c (default_hard_regno_scratch_ok): New function.
3187         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
3188         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
3189         * recog.c:  Include "target.h".
3190         (peep2_find_free_register): Add check for global regs. Add target
3191         specific check.
3192         * Makefile.in (recog.o): Depend on target.h.
3193
3194 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
3195
3196         * config/sh/sh.c (sh_canonical_va_list_type): New.
3197         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
3198
3199 2008-07-09  Raksit Ashok <raksit@google.com>
3200
3201         * doc/invoke.texi (Option Summary): Mention new option
3202         -Wdisallowed-function-list=...
3203         (Warning Options): Document -Wdisallowed-function-list=...
3204         * common.opt (Wdisallowed-function-list=): New flag.
3205         * flags.h (warn_disallowed_functions): External definition of new
3206         boolean warning flag.
3207         (warn_if_disallowed_function_p): Declare new function.
3208         * opts.c (warning_disallowed_functions): New static variable.
3209         (warn_disallowed_functions): New boolean warning flag.
3210         (warn_if_disallowed_function_p): New function.
3211         (add_comma_separated_to_vector): Rename
3212         add_instrument_functions_exclude_list to this.
3213         (common_handle_option): Handle new option. Rename calls to
3214         add_instrument_functions_exclude_list into calls to
3215         add_comma_separated_to_vector.
3216         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
3217         based on flag warn_disallowed_functions.
3218
3219 2008-07-09  Christian Bruel  <christian.bruel@st.com>
3220
3221         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
3222          instead of get_attr_length.
3223
3224 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3225
3226         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
3227         keywords.
3228         * genemit.c (gen_insn): Likewise.
3229         * gengtype.c (note_def_vec): Likewise.
3230         * gengtype.h (note_def_vec): Likewise.
3231         * genoutput.c (struct data, output_insn_data, process_template,
3232         gen_expand, gen_split, note_constraint): Likewise.
3233         * genrecog.c (new_decision, add_to_sequence, factor_tests,
3234         make_insn_sequence): Likewise.
3235         * gensupport.c (record_insn_name): Likewise.
3236
3237 2008-07-08  Doug Kwan  <dougkwan@google.com>
3238
3239         * config/arm/arm.opt (mandroid): New option.
3240         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
3241         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
3242         (CC1_SPEC): Same.
3243         (CC1PLUS_SPEC): Same.
3244         (LIB_SPEC): Same.
3245         (STARTFILE_SPEC): Same.
3246         (ENDFILE_SPEC): Same.
3247         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
3248         used.
3249
3250 2008-07-08  Raksit Ashok  <raksit@google.com>
3251
3252         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
3253         (set_storage_via_setmem): Fix expected_align parameter.
3254         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
3255         missing from the list.
3256         * doc/md.texi (movmem): Explicitly state that expected alignment is
3257         to be expressed in bytes.
3258         (setmem): Explicitly state that expected alignment is to be expressed
3259         in bytes.
3260
3261 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
3262
3263         * reload.c (find_reloads_subreg_address): Do not require validity
3264         of address in original mode before reloading address.
3265
3266 2008-07-07  Tianwei Sheng  <tianweis@google.com>
3267
3268         * df-core.c (df_remove_problem): Adjust the access to avoid out of
3269         bounds array access.
3270
3271 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
3272
3273         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
3274
3275 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
3276
3277         Fix PR tree-optimization/23455
3278         Fix PR tree-optimization/35286
3279         Fix PR tree-optimization/35287
3280         * Makefile.in (OBJS-common): Remove tree-vn.o.
3281         (tree-vn.o): Remove.
3282         * dbgcnt.def: Add treepre_insert debug counter.
3283         * gcc/tree-flow.h (add_to_value): Updated for other changes.
3284         (debug_value_expressions): Ditto.
3285         (print_value_expressions): Ditto.
3286         * tree-pretty-print.c (dump_generic_node): Updated for
3287         VALUE_HANDLE removal.
3288         * tree-ssa-dom.c (record_equality): Ditto.
3289         (cprop_operand): Ditto.
3290         (lookup_avail_expr): Ditto.
3291         * tree-ssa-threadedge.c
3292         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
3293         (simplify_control_stmt_condition): Ditto.
3294         * tree.c (tree_code_size): Ditto.
3295         (tree_node_structure): Ditto.
3296         (iterative_hash_expr): Ditto.
3297         * tree.def: Ditto.
3298         * tree.h (VALUE_HANDLE_ID): Ditto.
3299         (VALUE_HANDLE_EXPR_SET): Ditto.
3300         (struct tree_value_handle): Ditto.
3301         (union tree_node): Ditto.
3302         * treestruct.def: Ditto.
3303         * tree-vn.c: Removed.
3304         * tree-ssa-pre.c: Rewritten entirely.
3305         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
3306         (constant_value_ids): Ditto.
3307         (vn_nary_op_t): Moved to header.
3308         (vn_phi_t): Ditto.
3309         (vn_reference_op_t): Ditto
3310         (vn_reference_t): Ditto.
3311         (next_value_id): New variable.
3312         (VN_INFO): Add an assert.
3313         (vn_constant_eq): New function.
3314         (vn_constant_hash): Ditto.
3315         (get_or_alloc_constant_value_id): Ditto.
3316         (value_id_constant_p): Ditto.
3317         (vn_reference_compute_hash): De-staticify.
3318         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
3319         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
3320         (valueize_refs): Update opcode if it changes from ssa name to constant.
3321         (vn_reference_lookup_1): Add new argument.
3322         (vn_reference_lookup):  Ditto.
3323         (vn_reference_lookup_pieces): New function.
3324         (vn_reference_insert): Add return type. Modify to deal with value ids.
3325         (vn_reference_insert_pieces):  New function.
3326         (vn_nary_op_compute_hash): De-staticify.
3327         (vn_nary_op_eq): Ditto.
3328         (vn_nary_op_lookup_pieces): New function.
3329         (vn_nary_op_lookup): Add new argument.
3330         (vn_nary_op_insert_pieces): New function.
3331         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
3332         (vn_phi_insert): Ditto.
3333         (visit_unary_op): Update for callee changes.
3334         (visit_binary_op): Ditto.
3335         (visit_reference_op_load): Ditto.
3336         (visit_reference_op_store): Ditto.
3337         (init_scc_vn): Init next_value_id, constant_to_value_id and
3338         constant_value_ids.
3339         (free_scc_vn): Free them.
3340         (set_hashtable_value_ids): New function.
3341         (run_scc_vn): Use it.
3342         (get_max_value_id): New function.
3343         (get_next_value_id): Ditto.
3344         (expressions_equal_p): Moved from tree-vn.c
3345         (sort_vuses): Ditto.
3346         (sort_vuses_heap): Ditto.
3347         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
3348         above).
3349         * tree.c (iterative_hash_hashval_t): Made non-static
3350         * tree.h (iterative_hash_hashval_t): Declare it.
3351
3352 2008-07-08  Martin Jambor  <mjambor@suse.cz>
3353
3354         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
3355         instead of ipa_create_node_params.
3356         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
3357         ipa_check_create_edge_args, free them with
3358         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
3359
3360         * ipa-prop.c: Include flags.h and tree-inline.h.
3361         (ipa_node_params_vector): New variable.
3362         (ipa_edge_args_vector): New variable.
3363         (edge_removal_hook_holder): New variable.
3364         (node_removal_hook_holder): New variable.
3365         (edge_duplication_hook_holder): New variable.
3366         (node_duplication_hook_holder): New variable.
3367         (ipa_detect_param_modifications): Check for presence of modified flags.
3368         (ipa_compute_jump_functions): Check for presence of jump functions.
3369         (ipa_free_edge_args_substructures): New function.
3370         (ipa_create_node_params): Removed.
3371         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
3372         (ipa_free_node_params_substructures): New function.
3373         (ipa_free_all_node_params): Changed to deallocate the on-the-side
3374         vector.
3375         (ipa_edge_removal_hook): New function.
3376         (ipa_node_removal_hook): New function.
3377         (duplicate_array): New function.
3378         (ipa_edge_duplication_hook): New function.
3379         (ipa_node_duplication_hook): New function.
3380         (ipa_register_cgraph_hooks): New function.
3381         (ipa_unregister_cgraph_hooks): New function.
3382         (free_all_ipa_structures_after_ipa_cp): New function.
3383
3384         * ipa-prop.h: Include vec.h.
3385         (ipa_node_params_t): New typedef with vector types for it.
3386         (ipa_edge_args_t):  New typedef with vector types for it.
3387         (IPA_NODE_REF): Changed to access an on-the-side vector.
3388         (IPA_EDGE_REF): Changed to access an on-the-side vector.
3389         (ipa_check_create_node_params): New function.
3390         (ipa_check_create_edge_args): New function.
3391
3392         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
3393         all users.
3394
3395 2008-07-07  Tom Tromey  <tromey@redhat.com>
3396
3397         * configure, config.in: Rebuilt.
3398         * configure.ac: Don't check for scandir or alphasort.
3399
3400 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
3401
3402         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
3403         types immediately after creating them.
3404
3405 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
3406
3407         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
3408
3409 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
3410
3411         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
3412         dump_constraint_graph.
3413         (dump_constraint_edge): New function.
3414         (dump_constraint_graph): New function.
3415         (debug_constraint_graph): New function.
3416         (dump_constraint): Removed useless comparison.
3417         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
3418         (dump_constraint_graph): Declare.
3419         (debug_constraint_graph): Declare.
3420         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
3421
3422 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
3423
3424         * config/i386/i386.c (is_va_list_char_pointer): New.
3425         (ix86_va_start): Replace compare with ms_va_list_type_node
3426         by is_va_list_char_pointer.
3427         (ix86_gimplify_va_arg): Likewise.
3428
3429 2008-07-07  Martin Jambor  <mjambor@suse.cz>
3430
3431         * cgraph.c (cgraph_edge_max_uid): New variable.
3432         (struct cgraph_edge_hook_list): New type.
3433         (struct cgraph_node_hook_list): New type.
3434         (struct cgraph_2edge_hook_list): New type.
3435         (struct cgraph_2node_hook_list): New type.
3436         (first_cgraph_edge_removal_hook): New variable.
3437         (first_cgraph_node_removal_hook): New variable.
3438         (first_cgraph_edge_duplicated_hook): New variable.
3439         (first_cgraph_node_duplicated_hook): New variable.
3440         (cgraph_add_edge_removal_hook): New function.
3441         (cgraph_remove_edge_removal_hook): New function.
3442         (cgraph_call_edge_removal_hooks):  New function.
3443         (cgraph_add_node_removal_hook):  New function.
3444         (cgraph_remove_node_removal_hook):  New function.
3445         (cgraph_call_node_removal_hooks):  New function.
3446         (cgraph_add_edge_duplication_hook):  New function.
3447         (cgraph_remove_edge_duplication_hook):  New function.
3448         (cgraph_call_edge_duplication_hooks):  New function.
3449         (cgraph_add_node_duplication_hook):  New function.
3450         (cgraph_remove_node_duplication_hook):  New function.
3451         (cgraph_call_node_duplication_hooks):  New function.
3452         (cgraph_create_edge): Assign to edge uid.
3453         (cgraph_remove_edge): Call edge removal hooks.
3454         (cgraph_node_remove_callees): Call edge removal hooks.
3455         (cgraph_node_remove_callers): Call edge removal hooks.
3456         (cgraph_remove_node): Call node removal hooks.
3457         (cgraph_clone_edge): Call edge duplication hooks.
3458         (cgraph_clone_node): Call node duplication hooks.
3459
3460         * cgraph.h (cgraph_edge): New field uid.
3461         (cgraph_edge_hook): New type.
3462         (cgraph_node_hook): New type.
3463         (cgraph_2edge_hook): New type.
3464         (cgraph_2node_hook): New type.
3465
3466 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
3467
3468         * config.in: Regenerate.
3469
3470 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
3471
3472         * gcc.c (print_sysroot): New.
3473         (option_map, display_help, process_command): Handle the
3474         -print-sysroot option.
3475         (main): Print the sysroot if requested.
3476         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
3477
3478 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3479
3480         PR target/34780
3481         * unwind-pe.h (size_of_encoded_value): add attribute unused.
3482
3483 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
3484
3485         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
3486         (assign_parm_setup_block_p): Also check mode of entry_parm.
3487
3488 2008-07-07  Richard Guenther  <rguenther@suse.de>
3489
3490         * tree-ssa-structalias.h (set_used_smts): Remove.
3491         * tree-ssa-structalias.c (used_smts): Likewise.
3492         (set_used_smts): Likewise.
3493         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
3494         call to set_used_smts.
3495
3496 2008-07-07  Richard Guenther  <rguenther@suse.de>
3497
3498         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
3499         (new_var_info): Set it to false.
3500         (solution_set_add): Correctly handle pointers outside a var and
3501         inside a field.
3502         (type_safe): Treat variables with is_full_var properly.
3503         (do_sd_constraint): Likewise.
3504         (do_ds_constraint): Likewise.
3505         (process_constraint): Remove zeroing offset for !use_field_sensitive.
3506         (get_constraint_for_ptr_offset): New function.
3507         (get_constraint_for_component_ref): For addresses at least include
3508         the last field of the variable.  Handle is_full_vars properly.
3509         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
3510         (handle_ptr_arith): Remove.
3511         (find_func_aliases): Simplify assignment handling.
3512         (create_function_info_for): For parameter and result varinfos set
3513         is_full_var flag.
3514         (create_variable_info_for): Set is_full_var flag whenever we
3515         just created a single varinfo for a decl.
3516         (init_alias_vars): Initialize use_field_sensitive from
3517         max-fields-for-field-sensitive parameter.
3518
3519 2008-07-07  Richard Guenther  <rguenther@suse.de>
3520
3521         PR tree-optimization/36713
3522         * tree-flow-inline.h (is_call_used): New function.
3523         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
3524         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
3525         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
3526
3527 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
3528
3529         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
3530
3531 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
3532
3533         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
3534
3535 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
3536             Nathan Sidwell  <nathan@codesourcery.com>
3537
3538         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
3539         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
3540         tmake_file.
3541         * config/m68k/t-linux: New.
3542         * doc/install.texi: Document m68k-*-linux is now multilibbed by
3543         default.
3544
3545 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
3546
3547         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
3548         * config/m68k/m68k-devices.def: Remove multilibs that only differ
3549         by MAC/EMAC.
3550
3551 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3552
3553         * gcc.c (execute): Fix -Wc++-compat warning.
3554
3555 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
3556
3557         PR target/36720
3558         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
3559         constant for little endian.
3560
3561 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
3562
3563         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
3564         mips_base_mips16 instead of TARGET_MIPS16.
3565         (mips_base_mips16): Declare.
3566         * config/mips/mips.c (mips_base_mips16): Make global.
3567         (was_mips16_p): Remove GTY marker.
3568         (was_mips16_pch_p): New variable.
3569         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
3570         (mips_override_options): Force to non-MIPS16 mode initially.
3571         Do not complain about MIPS16 PIC incompatibilities here.
3572         Only allow -mgpopt if -mexplicit-relocs is in force for
3573         non-MIPS16 code.
3574
3575 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
3576
3577         * configure.ac: Check for caddr_t, define to char * if not defined.
3578         * configure: Regenerate.
3579         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
3580         (mmap_gt_pch_use_address): Likewise.
3581         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
3582
3583 2008-07-06  Richard Guenther  <rguenther@suse.de>
3584
3585         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
3586         (new_var_info): Deal with it.
3587         (solution_set_add): Likewise.
3588         (bitpos_of_field): Make signed, fix.
3589         (struct fieldoff): Remove type and decl fields.  Make size field
3590         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
3591         flags.
3592         (fieldoff_compare): Deal with it.
3593         (push_fields_onto_fieldstack): Remove has_union argument, glob
3594         adjacent non-pointer fields together.
3595         (create_function_info_for): Do not set has_union.
3596         (create_variable_info_for): Simplify.
3597
3598 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
3599
3600         * config.gcc (extra_headers): Add cross-stdarg.h for target
3601         x86_64-*-* and i?86-*-*.
3602         * config/i386/cross-stdarg.h: New.
3603         * builtins.c (std_fn_abi_va_list): New.
3604         (std_canonical_va_list_type): New.
3605         (stabilize_va_list): Replace va_list_type_node use by
3606         mtarget.canonical_va_list_type.
3607         (gimplify_va_arg_expr): Likewise.
3608         (expand_builtin_va_copy): Replace va_list_type_node use by
3609         mtarget.fn_abi_va_list.
3610         * tree-sra.c (is_va_list_type): New helper.
3611         (decl_can_be_decomposed_p): Replace
3612         va_list_type_node use by is_va_list_type.
3613         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
3614         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3615         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
3616         * config/i386/i386-protos.h (ix86_get_valist_type): New.
3617         (ix86_enum_va_list): New.
3618         * config/i386/i386.c (sysv_va_list_type_node): New.
3619         (ms_va_list_type_node): New.
3620         (ix86_function_type_abi): Remove sorry.
3621         (ix86_build_builtin_va_list_abi): New.
3622         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
3623         for 64-bit targets.
3624         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
3625         (ix86_init_builtins_va_builtins_abi): New.
3626         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
3627         for 64-bit targets.
3628         (ix86_handle_abi_attribute): New.
3629         (attribute_spec): Add sysv_abi and ms_abi.
3630         (ix86_fn_abi_va_list): New.
3631         (ix86_canonical_va_list_type): New.
3632         (ix86_enum_va_list): New.
3633         (TARGET_FN_ABI_VA_LIST): New.
3634         (TARGET_CANONICAL_VA_LIST_TYPE): New.
3635         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
3636         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
3637         (TARGET_CANONICAL_VA_LIST_TYPE): New.
3638         (TARGET_ENUM_VA_LIST): New.
3639         * expr.h (std_fn_abi_va_list): New.
3640         (std_canonical_va_list_type): New.
3641         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
3642         (TARGET_CANONICAL_VA_LIST_TYPE): New.
3643         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
3644         TARGET_CANONICAL_VA_LIST_TYPE.
3645         * target.h (struct gcc_target): Add fn_abi_va_list hook
3646         and canonical_va_list_type hook.
3647
3648 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3649
3650         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
3651         integral and pointer types.
3652
3653 2008-07-04  Roger Sayle  <roger@eyesopen.com>
3654
3655         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
3656         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
3657
3658 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
3659
3660         PR target/36684
3661         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
3662
3663 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
3664
3665         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
3666         build_gimple_modify_stmt.
3667         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
3668         gimple operand.  Use fold_build* instead of build*.
3669
3670 2008-07-04  Richard Guenther  <rguenther@suse.de>
3671
3672         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
3673         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
3674         properly to compute the reachability set if we do field-sensitive PTA.
3675         * invoke.texi (max-fields-for-field-sensitive): Document default.
3676         * opts.c (decode_options): Set max-fields-for-field-sensitive to
3677         100 for optimize >= 2.
3678
3679 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3680
3681         * ggc-zone.c (lookup_page_table_if_allocated,
3682         set_page_table_entry, zone_find_object_size, alloc_small_page,
3683         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
3684         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
3685         -Wc++-compat and/or -Wcast-qual warnings.
3686
3687 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
3688
3689         PR target/36634
3690         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
3691         pic_offset_table_rtx to be marked as used here.
3692         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
3693         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
3694         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
3695         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
3696         !TARGET_SECURE_PLT.
3697
3698 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3699
3700         * alloc-pool.c (hash_descriptor, eq_descriptor,
3701         alloc_pool_descriptor): Fix -Wc++-compat warnings.
3702         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
3703         Likewise.
3704         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
3705         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
3706         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
3707         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
3708         Likewise.
3709
3710 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
3711
3712         * tree-flow.h (loop_only_exit_p): Declare.
3713         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
3714         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
3715         the number of iterations if it is constant.  Otherwise, if this is the
3716         only possible exit of the loop, use the conservative estimate on the
3717         number of iterations of the entire loop if available.
3718
3719 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
3720
3721         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
3722         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
3723         Add synchronization functions.
3724         * config/sync.c: New file.
3725         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
3726         (LIBGCC_SYNC_CFLAGS): Likewise.
3727
3728 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
3729
3730         PR target/36710
3731         * config/i386/i386.md (mode): Add TF to "mode" attribute.
3732         (*pushtf_sse): New insn pattern.
3733         (pushtf splitters): New splitters.
3734
3735 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
3736
3737         PR middle-end/35736
3738         * predict.c (build_predict_expr): Use void_type_node for the tree
3739         type, instead of NULL_TREE.
3740
3741 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3742
3743         * config/i386/i386.c (contains_aligned_value_p): Return true
3744         for TCmode.
3745         (ix86_data_alignment): Align TCmode to 128bits.
3746         (ix86_local_alignment): Likewise.
3747
3748 2008-07-03  Andrew Haley  <aph@redhat.com>
3749
3750         PR bootstrap/33304
3751         * vec.h (VEC_TA): New.
3752         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
3753         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
3754         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
3755         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
3756         (C_COMMON_FIXED_TYPES): Remove first arg.
3757         (C_COMMON_FIXED_MODE_TYPES): Likewise.
3758         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
3759         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
3760         not to use empty macro arguments.
3761
3762 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
3763
3764         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
3765         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
3766         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
3767         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
3768         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
3769         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
3770         config/ia64/crtn.asm, config/m68hc11/larith.asm,
3771         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
3772         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
3773         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
3774         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
3775         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
3776         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
3777         config/rs6000/e500crtres64gpr.asm,
3778         config/rs6000/e500crtres64gprctr.asm,
3779         config/rs6000/e500crtrest32gpr.asm,
3780         config/rs6000/e500crtrest64gpr.asm,
3781         config/rs6000/e500crtresx32gpr.asm,
3782         config/rs6000/e500crtresx64gpr.asm,
3783         config/rs6000/e500crtsav32gpr.asm,
3784         config/rs6000/e500crtsav64gpr.asm,
3785         config/rs6000/e500crtsav64gprctr.asm,
3786         config/rs6000/e500crtsavg32gpr.asm,
3787         config/rs6000/e500crtsavg64gpr.asm,
3788         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
3789         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
3790         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
3791         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
3792         config/sparc/sol2-cn.asm: Remove .file directives.
3793
3794 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
3795
3796         * resource.c (mark_referenced_resources): Look inside
3797         UNSPEC_VOLATILEs and ASM_INPUTs.
3798
3799 2008-07-02  Ian Lance Taylor  <iant@google.com>
3800
3801         * rtlanal.c (add_reg_note): New function.
3802         * rtl.h (add_reg_note): Declare.
3803         * auto-inc-dec.c (attempt_change): Use add_reg_note.
3804         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
3805         * builtins.c (expand_builtin_longjmp): Likewise.
3806         (expand_builtin_nonlocal_goto): Likewise.
3807         * calls.c (emit_call_1, expand_call): Likewise.
3808         * cfgexpand.c (add_reg_br_prob_note): Likewise.
3809         * cfglayout.c (fixup_reorder_chain): Likewise.
3810         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3811         (commit_one_edge_insertion): Likewise.
3812         * combine.c (move_deaths, distribute_notes): Likewise.
3813         * df-problems.c (df_set_note): Likewise.
3814         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
3815         (set_unique_reg_note): Likewise.
3816         (emit_copy_of_insn_after): Likewise.
3817         * expr.c (expand_expr_real): Likewise.
3818         * gcse.c (add_label_notes): Likewise.
3819         * haifa-sched.c (create_check_block_twin): Likewise.
3820         * jump.c (mark_jump_label_1): Likewise.
3821         * loop-doloop.c (add_test, doloop_modify): Likewise.
3822         * loop-unswitch.c (compare_and_jump_seq): Likewise.
3823         * lower-subreg.c (move_eh_region_note): Likewise.
3824         * optabs.c (emit_libcall_block): Likewise.
3825         * predict.c (predict_insn): Likewise.
3826         (combine_predictions_for_insn): Likewise.
3827         * recog.c (peephole2_optimize): Likewise.
3828         * regmove.c (try_auto_increment): Likewise.
3829         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
3830         * reload.c (find_reloads): Likewise.
3831         * reload1.c (fixup_eh_region_note): Likewise.
3832         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
3833         * reorg.c (delete_prior_computation): Likewise.
3834         (delete_computation, dbr_schedule): Likewise.
3835         * config/pa/pa.c (legitimize_pic_address): Likewise.
3836         * config/sh/sh.c (sh_reorg): Likewise.
3837
3838 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
3839
3840         PR target/36669
3841         * config/libgcc-glibc.ver: Add %exclude.
3842         * config/m32r/libgcc-glibc.ver: Likwise.
3843         * config/s390/libgcc-glibc.ver: Likwise.
3844         * config/sh/libgcc-glibc.ver: Likwise.
3845         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
3846
3847         * config/i386/libgcc-glibc.ver: New.
3848
3849         * config/i386/libgcc-x86_64-glibc.ver: Removed.
3850
3851 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
3852
3853         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
3854         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
3855         i[34567]86-*-linux*, x86_64-*-linux*.  Add
3856         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
3857         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
3858         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
3859         i[34567]86-*-linux*, x86_64-*-linux*.
3860
3861         * libgcc-std.ver: Add empty GCC_4.4.0.
3862
3863         * mkmap-symver.awk: Support multiple versions per symbol.
3864
3865         * config/i386/i386.c (ix86_init_builtins): Always define
3866         __builtin_fabsq and __builtin_copysignq with fallbacks.
3867         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
3868         and __builtin_copysignq if SSE2 isn't available.
3869
3870         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
3871         (LIBGCC2_TF_CEXT): Likwise.
3872         (TF_SIZE): Likwise.
3873
3874         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
3875
3876         * config/i386/sfp-machine.h: Moved to libgcc.
3877
3878         * config/i386/sfp-machine.h: New.
3879         * config/i386/t-linux: Likwise.
3880
3881         * config/i386/t-darwin: Remove softfp_wrap_start and
3882         softfp_wrap_end.
3883         * config/i386/t-darwin64: Likewise.
3884
3885         * config/i386/t-fprules-softfp64: Renamed to ...
3886         * config/i386/t-fprules-softfp: This.
3887
3888         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
3889         and softfp_wrap_end.
3890
3891 2008-07-02  Jason Merrill  <jason@redhat.com>
3892
3893         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
3894
3895         * tree.c (ctor_to_list): New fn.
3896         * tree.h: Declare it.
3897         (CONSTRUCTOR_ELT): New macro.
3898         (CONSTRUCTOR_NELTS): New macro.
3899
3900 2008-07-02  Richard Guenther  <rguenther@suse.de>
3901
3902         * tree-ssa-structalias.c (struct variable_info): Reorder
3903         to fill padding on 64bit hosts.  Make collapsed_to an int.
3904         (get_varinfo_fc): Deal with that.
3905         (new_var_info): Likewise.
3906         (collapse_rest_of_var): Likewise.
3907
3908 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
3909
3910         * doc/install.texi (--enable-java-home): Document.
3911         (--enable-aot-compile-rpm): Likewise.
3912         (--with-arch-directory): Likewise.
3913         (--with-os-directory): Likewise.
3914         (--with-origin-name): Likewise.
3915         (--with-arch-suffix): Likewise.
3916         (--with-jvm-root-dir): Likewise.
3917         (--with-jvm-jar-dir): Likewise.
3918         (--with-python-dir): Likewise.
3919
3920 2008-07-02  Richard Guenther  <rguenther@suse.de>
3921
3922         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
3923         from decls explicitly.  Merge operand checking from tuples.
3924
3925 2008-07-02  Martin Jambor  <mjambor@suse.cz>
3926
3927         * tree-switch-conversion.c: Included timevar.h which I forgot before.
3928
3929 2008-07-02  Martin Jambor  <mjambor@suse.cz>
3930
3931         * tree-switch-conversion.c: Included timevar.h
3932         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
3933
3934         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
3935
3936 2008-07-02  Martin Jambor  <mjambor@suse.cz>
3937
3938         * tree-switch-conversion.c: Corrected various comments and
3939         whitespace issues
3940         (build_constructors): Fixed minor formatting mistakes.
3941
3942         * invoke.texi (Optimize Options): Corrected the
3943         switch-conversion-max-branch-ratio parameter.
3944
3945 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
3946
3947         * final.c (asm_insn_count): Return zero for an empty asm body.
3948
3949 2008-07-02  Richard Guenther  <rguenther@suse.de>
3950
3951         * bitmap.h (bitmap_set_bit): Return bool.
3952         (bitmap_clear_bit): Likewise.
3953         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
3954         write to the bitmap if it would.
3955         (bitmap_clear_bit): Likewise.
3956         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
3957         bitmap_set_bit return value.
3958         (add_pred_graph_edge): Likewise.
3959         (add_graph_edge): Likewise.
3960         (do_sd_constraint): Likewise.
3961         (do_ds_constraint): Likewise.
3962
3963 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3964
3965         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
3966         Fix -Wc++-compat and/or -Wcast-qual warnings.
3967         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
3968         gen_regparm_prefix): Likewise.
3969         * vmsdbgout.c (write_modbeg, lookup_filename,
3970         vmsdbgout_source_line, vmsdbgout_init): Likewise.
3971
3972 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
3973
3974         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
3975         defaults.h definition apply.
3976
3977 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
3978
3979         * function.c (assign_parm_remove_parallels): New.
3980         (assign_parm_setup_block_p): Do not return true for non-BLKmode
3981         PARALLELs.
3982         (assign_parm_setup_block): Do not handle them.
3983         (assign_parm_setup_reg, assign_parm_setup_stack): Call
3984         assign_parm_remove_parallels.
3985
3986 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
3987
3988         * c-typeck.c (convert_for_assignment): Use
3989         vector_targets_convertible_p.
3990         * c-common.c (vector_targets_convertible_p): New.
3991         * c-common.h (vector_targets_convertible_p): New prototype.
3992         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
3993         opaque_p_V2SI_type_node.
3994
3995 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
3996
3997         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
3998         RFmode constants.
3999
4000 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
4001
4002         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
4003         TFmode constants via two element DImode vector for hosts with
4004         HOST_BITS_PER_WIDE_INT < 64.
4005         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
4006         also for HOST_BITS_PER_WIDE_INT < 64.
4007
4008 2008-07-01  Richard Guenther  <rguenther@suse.de>
4009
4010         PR tree-optimization/36666
4011         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
4012         (get_constraint_exp_from_ssa_var): Split into ...
4013         (get_constraint_exp_for_temp): ... this ...
4014         (get_constraint_for_ssa_var): ... and that.
4015         Return constraint expressions for all touched sub-fields
4016         if the results address is not taken.
4017         (process_constraint): Remove assertion that aggregate
4018         assignments do not happen at this place.
4019         (get_constraint_for_component_ref): Add address_p argument.
4020         Return constraint expressions for all touched sub-fields
4021         if the results address is not taken.
4022         (do_deref): Use get_constraint_exp_for_temp.
4023         (get_constraint_for_1): Rename from ...
4024         (get_constraint_for): ... this.  Add the old function as wrapper.
4025         (do_structure_copy): Use get_constraint_for_1.
4026
4027 2008-07-01  Martin Jambor  <mjambor@suse.cz>
4028
4029         * Makefile.in (tree-switch-conversion.o): Add.
4030         (OBJS-common): Add tree-swtch-conversion.o.
4031         * passes.c (init_optimization_passes): Add pass_convert_switch.
4032         * tree-pass.h: (pass_convert_switch): Add.
4033         * tree-switch-conversion.c: New file.
4034         * gcc.dg/tree-ssa/cswtch.c: New testcase.
4035         * common.opt (ftree-cswtch): New option.
4036         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
4037         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
4038         * opts.c (decode_options): Set flag_tree_switch_conversion when
4039         optimization level is >= 2.
4040         * doc/invoke.texi (Optimize Options): Added description of
4041         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
4042
4043 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4044
4045         * config/darwin-driver.c (darwin_default_min_version): Fix
4046         -Wc++-compat warnings.
4047
4048 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
4049
4050         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
4051         of operand 0.
4052
4053 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
4054
4055         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
4056
4057 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
4058
4059         PR rtl-optimization/34744
4060         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
4061         (df_scan_free_internal): Free data structures not
4062         allocated in storage pools.
4063         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
4064         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
4065         df_scan_free_mws_vec.
4066         * dse.c (dse_step6): Free offset_map_p and offset_map_n
4067         unconditionally.
4068
4069 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
4070
4071         * config/i386/i386.c (contains_aligned_value_p): Return true
4072         for __float128.
4073         (ix86_function_arg_boundary): Return its natural boundary
4074         for __float128.
4075         (return_in_memory_32): Don't check TDmode.
4076         (ix86_split_to_parts): Support splitting into 4 parts and
4077         support TFmode for 32bit target.
4078         (ix86_split_long_move): Support splitting into 4 parts.
4079         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
4080         for SSE2.
4081         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
4082         (ix86_init_builtins): Here.
4083         (ix86_scalar_mode_supported_p): Always return true for TFmode.
4084         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
4085         'q' and 'w', respectively.
4086
4087         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
4088         TARGET_64BIT.
4089         (movtf_internal): Likewise.
4090         (<code>tf2): Likewise.
4091         (*absnegtf2_sse): Likewise.
4092         (copysign<mode>3): Likewise.
4093         (copysign<mode>3_const): Likewise.
4094         (copysign<mode>3_var): Likewise.
4095         (define_split UNSPEC_COPYSIGN): Likewise.
4096         * config/i386/sse.md (*nandtf3): Likewise.
4097         (<code>tf3): Likewise.
4098         (*<code>tf3): Likewise.
4099
4100 2008-06-30  Joey Ye  <joey.ye@intel.com>
4101             H.J. Lu  <hongjiu.lu@intel.com>
4102
4103         * global.c (compute_regsets): Set frame_pointer_needed here.
4104         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
4105
4106 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
4107
4108         * doc/install.texi (specific): Expand Windows build notes.
4109
4110 2008-06-30  Ira Rosen  <irar@il.ibm.com>
4111
4112         PR tree-optimization/36648
4113         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
4114         number of prolog iterations by step. Fix the comment.
4115
4116 2008-06-30  Richard Guenther  <rguenther@suse.de>
4117
4118         PR middle-end/36671
4119         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
4120         handle calls from ECF_MALLOC functions.
4121         (handle_pure_call): ECF_MALLOC functions do not return
4122         call-used memory.
4123         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
4124
4125 2008-06-29  Andreas Schwab  <schwab@suse.de>
4126
4127         * config/m68k/m68k.c (print_operand): Always print a float
4128         constant in hex.
4129         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
4130         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
4131         Remove macros.
4132
4133         * config/rs6000/x-linux64: Remove never used file.
4134
4135 2008-06-29  Richard Guenther  <rguenther@suse.de>
4136
4137         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
4138         prototype.
4139         (struct alias_info): Move ...
4140         * tree-ssa-alias.c: ... here.
4141         (update_alias_info): Declare.
4142         (compute_may_aliases): Call it.
4143         (update_alias_info): New function.
4144         * tree-ssa-structalias.c (update_alias_info): Move ...
4145         * tree-ssa-alias.c (update_alias_info_1): ... here.
4146         * tree-ssa-structalias.c (process_constraint_1): Remove
4147         unused from_call argument.  Rename to ...
4148         (process_constraint): ... this.  Delete old wrapper.
4149         (make_constraint_to): Adjust callers.
4150         (handle_const_call): Likewise.
4151         (handle_pure_call): Likewise.
4152         (init_base_vars): Likewise.
4153         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
4154         (find_func_aliases): We don't need structure copies for
4155         complex types.
4156         (make_constraint_from_anything): Remove.
4157         (create_variable_info_for): For globals make constraints
4158         from escaped, not from anything.
4159         (compute_points_to_sets): Do not call update_alias_info.
4160         (ipa_pta_execute): Use make_constraint_from.
4161
4162 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4163
4164         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
4165         (bitmap.o-warn, dominance.o-warn): New.
4166         * configure.ac (cxx_compat_warn): Delete.
4167         (loose_warn): Add -Wcast-qual and -Wc++-compat.
4168         * system.h: Remove #pragma diagnostic for -Wcast-qual and
4169         -Wc++-compat.
4170         * configure: Regenerate.
4171
4172         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
4173         warnings.
4174
4175 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4176
4177         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
4178         * df-scan.c (df_notes_rescan): Likewise.
4179         * ggc-page.c (set_page_table_entry): Likewise.
4180         * intl.c (gcc_gettext_width): Likewise.
4181         * varasm.c (get_unnamed_section, get_noswitch_section,
4182         get_section): Likewise.
4183
4184 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
4185
4186         * regrename.c (build_def_use): Don't copy RTX.
4187
4188 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
4189
4190         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
4191         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
4192         punctuation.  Use @ref instead of @xref.
4193         (Function Names): Remove stray @display/@end display.
4194         (C++ Attributes): Use @ref instead of @xref.
4195         (Deprecated Features): Fix punctuation around @xref.
4196         (Backwards Compatibility): Likewise.
4197         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
4198
4199 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
4200
4201         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
4202         constants for E500 double.
4203
4204 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4205
4206         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
4207         element type of const_vector.
4208
4209 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
4210
4211         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
4212         Remove FLAGS_REG clobber from expander pattern.
4213         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
4214         (anddi3, andsi3, andhi3, andqi3): Ditto.
4215         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
4216         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
4217         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
4218         (ashlsi3, ashlhi3, ashlqi3): Ditto.
4219         (ashrsi3, ashrhi3, ashrqi3): Ditto.
4220         (lshrsi3, lshrhi3, lshrqi3): Ditto.
4221         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
4222         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
4223
4224 2008-06-28  Richard Guenther  <rguenther@suse.de>
4225
4226         * tree-ssa-structalias.c (callused_id, var_callused,
4227         callused_tree): Add.
4228         (handle_pure_call): New function.
4229         (find_func_aliases): Call it.
4230         (find_what_p_points_to): Handle the call-used set.
4231         (clobber_what_escaped): Likewise.
4232         (compute_call_used_vars): New function.
4233         (init_base_vars): Init the call-used variable.
4234         (do_sd_constraint): Do not propagate the solution from CALLUSED
4235         but use CALLUSED as a placeholder.
4236         (solve_graph): Likewise.
4237         * tree-flow-inline.h (gimple_call_used_vars): New function.
4238         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
4239         (compute_call_used_vars): Declare.
4240         * tree-ssa-alias.c (set_initial_properties): Call
4241         compute_call_used_vars.
4242         (reset_alias_info): Clear call-used variables.
4243         (add_call_clobber_ops): Assert we are not called for const/pure
4244         functions.  Remove handling of them.
4245         (add_call_read_ops): Handle pure functions by adding the
4246         call-used set of variables as VUSEs.
4247         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
4248         (delete_tree_ssa): Free it.
4249         * tree-dfa.c (remove_referenced_var): Clear the var from the
4250         call-used bitmap.
4251
4252 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
4253
4254         * tree.c (build_varargs_function_type_list): New.
4255         (build_function_type_list_1): New.
4256         (build_function_type_list): Use build_function_type_list_1.
4257         * tree.h (build_varargs_function_type_list): New.
4258
4259 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4260
4261         PR target/34856
4262         * config/spu/spu.c (spu_builtin_splats): Do not generate
4263         invalid CONST_VECTOR expressions.
4264         (spu_expand_vector_init): Likewise.
4265
4266 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
4267
4268         * optabs.c (libfunc_decls): New variable.
4269         (libfunc_decl_hash, libfunc_decl_eq): New functions.
4270         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
4271         for the same function twice.
4272
4273 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
4274
4275         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
4276         ix86_expand_binary_operator directly.
4277         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
4278         for operand 2.
4279         (*ashrti3_1): Ditto.
4280         (*lshrti3_1): Ditto.
4281         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
4282         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
4283         using only one splitter.  Conditionaly execute splitter before or
4284         after peephole2 pass.
4285         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
4286         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
4287         Use only one alternative in asm template.
4288         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
4289         in asm template.
4290         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
4291         "J" operand constraint for operand 2.
4292         (*ashldi3_cconly_rex64): Ditto.
4293         (*ashrdi3_cmp_rex64): Ditto.
4294         (*ashrdi3_cconly_rex64): Ditto.
4295         (*lshrdi3_cmp_rex64): Ditto.
4296         (*lshrdi3_cconly_rex64): Ditto.
4297         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
4298         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
4299         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
4300         gen_x86_shrd_1.
4301
4302 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
4303
4304         * gimplify.c (omp_is_private): Don't return true if decl is not
4305         already private on #pragma omp for or #pragma omp parallel for.
4306
4307         PR debug/36617
4308         * tree-cfg.c (struct move_stmt_d): Replace block field with
4309         orig_block and new_block fields.
4310         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
4311         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
4312         (move_block_to_fn): Replace vars_map and new_label_map arguments
4313         with struct move_stmt_d pointer.
4314         (replace_block_vars_by_duplicates): New function.
4315         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
4316         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
4317         all subblocks of ORIG_BLOCK to the new function.  Call
4318         replace_block_vars_by_duplicates.
4319         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
4320         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
4321         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
4322         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
4323         (expand_omp): Temporarily set input_location to the location of
4324         region's controlling stmt.
4325         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
4326         BIND_EXPR, push ctx->block_vars and gimplification vars into
4327         the BIND_EXPR and its block's BLOCK_VARS instead of directly
4328         into dest function.
4329         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
4330         there are any BLOCK_VARS.
4331         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
4332         OMP_PARALLEL or OMP_TASK stmt.
4333         (lower_omp): Save and restore input_location around the lower_omp_1
4334         call.
4335
4336 2008-06-27  Richard Guenther  <rguenther@suse.de>
4337
4338         PR tree-optimization/36400
4339         PR tree-optimization/36373
4340         PR tree-optimization/36344
4341         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
4342         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
4343         (update_alias_info): Remove call clobbering code.
4344         (make_constraint_to): New helper function.
4345         (make_escape_constraint): Likewise.
4346         (handle_rhs_call): Use it on all pointer containing arguments.
4347         Also mark the static chain escaped.
4348         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
4349         instead of ANYTHING.
4350         (make_constraint_from): New helper split out from ...
4351         (make_constraint_from_anything): ... here.
4352         (find_func_aliases): Add constraints for escape sites.
4353         (intra_create_variable_infos): Make constraints from NONLOCAL
4354         for parameters.
4355         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
4356         as ANYTHING.
4357         (clobber_what_p_points_to): Remove.
4358         (clobber_what_escaped): New function.
4359         (init_base_vars): Init NONLOCAL and ESCAPED.
4360         (do_sd_constraint): Do not propagate the solution from ESCAPED
4361         but use ESCAPED as a placeholder.
4362         (solve_graph): Likewise.
4363         * tree-flow.h (clobber_what_p_points_to): Remove.
4364         (clobber_what_escaped): Declare.
4365         * tree-ssa-alias.c (set_initial_properties): Call it.
4366         Remove code clobbering escaped pointers.
4367
4368 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
4369
4370         * function.c (allocate_struct_function): Only allocate a unique
4371         funcdef_no if the decl is nonzero.
4372
4373 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
4374
4375         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
4376         * config/mips/mips.c (mips_split_const_insns): New function.
4377         * config/mips/mips.md (move_type): New attribute.
4378         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
4379         (dword_mode): New attribute.
4380         (type): Avoid long line.  Map "move_type"s to "type"s,
4381         choosing "multi" for doubleword moves if appropriate.
4382         Swap MTC/MFC comments to match their declaration order.
4383         (extended_mips16): Default to "yes" if "move_type" is "sll0",
4384         "type" is "branch" or "jal" is "direct".
4385         (length): Handle "extended_mips16" first.  Make the default
4386         "0" for "ghost" instructions.  Set the length from "move_type".
4387         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
4388         of "type", with "sll0" for the register alternative.  Remove the
4389         "extended_mips16" attribute.
4390         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
4391         of "type", with "shift_shift" for the register alternative.
4392         Remove the "length" attribute.
4393         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
4394         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
4395         of "type", with "andi" for the register alternative.
4396         (*zero_extendqihi2): Likewise.
4397         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
4398         of "andi" instead of a "type" of "arith".
4399         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
4400         instead of "type".
4401         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
4402         (mov_<store>r, *mov<mode>_ra): Likewise.
4403         (extendsidi2): Use "move_type" instead of "type", with "move"
4404         for the register alternative.
4405         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
4406         of "type", with "signext" for the register alternative.
4407         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
4408         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
4409         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
4410         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
4411         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
4412         (unnamed branch insn): Likewise.
4413         (*movdi_gp32_fp64): Fold into...
4414         (*movdi_32bit): ...here.
4415         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
4416         (*movdf_hardfloat): ...this new pattern.
4417         (*movdf_softfloat): Remove redundant FPR alternatives.
4418         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
4419         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
4420         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
4421         the "move" attribute.
4422         (*movdi_32bit): Use "move_type" instead of "type" and remove the
4423         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
4424         and "store" for COP loads and stores.
4425         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
4426         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
4427         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
4428         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
4429         (*movtf_mips16, *movv2sf): Likewise.
4430         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
4431         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
4432         (mfhc1<mode>): Use "move_type" instead of "move".
4433         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
4434         (loadgp_blockage): Remove the "length" attribute.
4435         (blockage, set_got_version, update_got_version): Likewise.
4436         (call_internal): Remove the "extended_mips16" attribute.
4437         (call_value_internal, call_value_multiple_internal): Likewise.
4438         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
4439         instead of "move".
4440         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
4441         the "length" attribute.
4442
4443 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4444
4445         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
4446         -Wcast-qual warnings.
4447         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
4448         handle_pragma_pop_macro): Likewise.
4449         * collect2.c (resolve_lib_name): Likewise.
4450         * config/arc/arc.c (arc_init): Likewise.
4451         * config/arm/arm.c (neon_builtin_compare,
4452         locate_neon_builtin_icode): Likewise.
4453         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
4454         * config/bfin/bfin.c (bfin_init_machine_status,
4455         bfin_optimize_loop): Likewise.
4456         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
4457         * config/cris/cris.c (cris_init_expanders): Likewise.
4458         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
4459         * config/darwin.c (machopic_indirection_eq,
4460         machopic_indirection_name, machopic_output_indirection): Likewise.
4461         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
4462         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
4463         frv_optimize_membar): Likewise.
4464         * config/i386/cygwin.h (mingw_scan,
4465         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
4466         * config/i386/cygwin1.c (mingw_scan): Likewise.
4467         * config/i386/i386.c (machopic_output_stub): Likewise.
4468         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
4469         i386_pe_unique_section): Likewise.
4470         * config/ia64/ia64.c (ia64_init_machine_status,
4471         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
4472         Likewise.
4473         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
4474         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
4475         * config/m68k/m68k.c (m68k_handle_option,
4476         m68k_sched_md_init_global): Likewise.
4477         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
4478         mcore_unique_section): Likewise.
4479         * config/mips/mips.c (mips_block_move_straight,
4480         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
4481         Likewise.
4482         * config/mmix/mmix.c (mmix_init_machine_status,
4483         mmix_encode_section_info): Likewise.
4484         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
4485         * config/rs6000/rs6000.c (rs6000_init_machine_status,
4486         print_operand_address, output_toc, redefine_groups,
4487         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
4488         * config/s390/s390.c (s390_init_machine_status): Likewise.
4489         * config/score/score.c (score_block_move_straight,
4490         score_block_move_loop_body): Likewise.
4491         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
4492         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4493         * emit-rtl.c (find_auto_inc): Likewise.
4494         * gcc.c (translate_options, process_command): Likewise.
4495         * reorg.c (dbr_schedule): Likewise.
4496         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
4497         * xcoffout.c (xcoffout_declare_function): Likewise.
4498
4499 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
4500
4501         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
4502         ipa-pta working again.
4503
4504 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
4505
4506         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
4507         genautomata.
4508
4509 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
4510
4511         * config.gcc (powerpc*-*-*): Add new core e500mc.
4512         * config/rs6000/e500mc.md: New file.
4513         * config/rs6000/rs6000.c (processor_costs): Add new costs for
4514         e500mc.
4515         (rs6000_override_options): Add e500mc case to
4516         processor_target_table. Altivec and Spe options not allowed
4517         with e500mc. Add isel instruction to e500mc by
4518         default. Initialize rs6000_cost for e500mc.
4519         (rs6000_issue_rate): Set issue rate for e500mc.
4520         * config/rs6000/rs6000.h (processor_type): Add
4521         PROCESSOR_PPCE500MC.
4522         (ASM_CPU_SPEC): Add e500mc.
4523         Set TARGET_ISEL to rs6000_isel.
4524         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
4525         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
4526         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
4527         Include e500mc.md.
4528         * doc/invoke.texi: Add e500mc to list of cpus.
4529
4530 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4531
4532         PR c/34867
4533         * c-lex.c (lex_charconst): Initialize unsignedp.
4534
4535 2008-06-27  Olivier Hainque  <hainque@adacore.com>
4536
4537         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
4538         documented assumptions.
4539
4540 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
4541
4542         * dwarf2out.c: Remove trailing white spaces.  Break long line
4543         in comments.
4544
4545 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
4546
4547         * libfuncs.h (LTI_synchronize): New libfunc_index.
4548         (synchronize_libfunc): Declare.
4549         * builtins.c (expand_builtin_synchronize): Consider using
4550         synchronize_libfunc before falling back on an asm blockage.
4551         * config/mips/mips.c: Include libfuncs.h
4552         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
4553
4554 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
4555
4556         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
4557         parameter.  Copy stack_reg to r11 where appropriate.
4558         (no_global_regs_above): Add gpr parameter.
4559         (rs6000_stack_info): Only add padding for SPE save area if we
4560         are saving SPE GPRs and CR.
4561         (saveres_routine_syms): New variable.
4562         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
4563         Define.
4564         (rs6000_savres_routine_sym): New function.
4565         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
4566         split out of...
4567         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
4568         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
4569         Tweak FPR out-of-line saving.
4570         (rs6000_make_savres_rtx): New function.
4571         (rs6000_use_multiple_p): New function.
4572         (rs6000_savres_strategy): New function.
4573         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
4574         out-of-line if appropriate.
4575         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
4576         if we are optimizing for size.
4577         (GP_SAVE_INLINE): Define.
4578         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
4579         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
4580         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
4581         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
4582         (*save_fpregs_<mode>): Add use of r11.
4583         (*restore_gpregs_<mode>): New insn.
4584         (*return_and_restore_gpregs_<mode>): New insn.
4585         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
4586         use r11.
4587         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
4588         (*restore_gpregs_spe): New insn.
4589         (*return_and_restore_gpregs_spe): New insn.
4590         * config/rs6000/predicates.md (save_world_operation): Fix check.
4591
4592 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
4593
4594         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
4595         this point, so assert that.
4596
4597 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
4598
4599         * cfganal.c: Include vec.h and vecprim.h.
4600         (compute_idf): Import from...
4601         * tree-into-ssa (compute_idf): ...here.
4602         * basic-block.h (compute_idf): Export.
4603
4604 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
4605
4606         * c-decl.c (merge_decls): Use !current_function_decl to check for
4607         extern declaration of C99 inline function being at file scope.
4608
4609 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
4610
4611         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
4612
4613 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4614
4615         * alias.c (record_alias_subset, init_alias_analysis): Fix
4616         -Wc++-compat and/or -Wcast-qual warnings.
4617         * attribs.c (lookup_attribute_spec): Likewise.
4618         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
4619         copy_bb, connect_traces,
4620         find_rarely_executed_basic_blocks_and_cr): Likewise.
4621         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
4622         note_btr_set, migrate_btr_defs): Likewise.
4623         * builtins.c (result_vector, expand_builtin_memcpy,
4624         expand_builtin_mempcpy_args, expand_builtin_strncpy,
4625         builtin_memset_read_str, expand_builtin_printf,
4626         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
4627         Likewise.
4628         * caller-save.c (mark_set_regs): Likewise.
4629         * calls.c (expand_call, emit_library_call_value_1): Likewise.
4630         * cgraph.c (cgraph_edge): Likewise.
4631         * combine.c (likely_spilled_retval_1): Likewise.
4632         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
4633         htab_counts_entry_del, get_coverage_counts): Likewise.
4634         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
4635         new_cselib_val): Likewise.
4636         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
4637         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
4638         Likewise.
4639         * df-core.c (df_compact_blocks): Likewise.
4640         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
4641         * df-scan.c (df_grow_reg_info, df_ref_create,
4642         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
4643         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
4644         df_record_entry_block_defs, df_record_exit_block_uses,
4645         df_bb_verify): Likewise.
4646         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
4647         DF_REF_EXTRACT_MODE_CONST): New.
4648         * dominance.c (get_immediate_dominator, get_dominated_by,
4649         nearest_common_dominator, root_of_dom_tree,
4650         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
4651         -Wc++-compat and/or -Wcast-qual warnings.
4652         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
4653         record_store, replace_read, check_mem_read_rtx, scan_insn,
4654         dse_step1, dse_record_singleton_alias_set): Likewise.
4655         * dwarf2asm.c (dw2_force_const_mem): Likewise.
4656
4657 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4658
4659         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
4660         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
4661         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
4662         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
4663         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
4664         add_ranges_num, add_ranges_by_labels, file_info_cmp,
4665         file_name_acquire, output_file_names, add_const_value_attribute,
4666         premark_used_types_helper, file_table_eq, file_table_hash,
4667         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
4668         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
4669         -Wcast-qual warnings.
4670         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
4671         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
4672         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
4673         gen_reg_rtx, start_sequence, init_emit): Likewise.
4674         * et-forest.c (et_new_occ, et_new_tree): Likewise.
4675         * except.c (init_eh_for_function, gen_eh_region,
4676         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
4677         arh_to_landing_pad, arh_to_label, add_action_record,
4678         add_call_site, switch_to_exception_section): Likewise.
4679         * expmed.c (synth_mult): Likewise.
4680         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
4681         store_expr): Likewise.
4682         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
4683         Likewise.
4684         * function.c (assign_stack_temp_for_type,
4685         allocate_struct_function, match_asm_constraints_1): Likewise.
4686         * gcov-io.c (gcov_allocate): Likewise.
4687         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
4688         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
4689         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
4690         record_one_set, insert_expr_in_table, insert_set_in_table,
4691         dump_hash_table, compute_hash_table_work, alloc_hash_table,
4692         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
4693         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
4694         -Wcast-qual warnings.
4695
4696 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4697
4698         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
4699         -Wcast-qual warnings.
4700         * gcc.c (process_command): Likewise.
4701         * genattrtab.c (oballoc): Use XOBNEW.
4702         (oballocvec): Define.
4703         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
4704         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
4705         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
4706         -Wc++-compat and/or -Wcast-qual warnings.
4707         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
4708         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
4709         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
4710         gen_presence_absence_set, gen_automaton, gen_regexp_el,
4711         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
4712         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
4713         add_excls, process_presence_absence_names,
4714         process_presence_absence_patterns, add_presence_absence,
4715         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
4716         get_free_state, add_arc, get_free_automata_list_el,
4717         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
4718         transform_3, cache_presence, create_ainsns, create_automata,
4719         create_state_ainsn_table, dfa_insn_code_enlarge,
4720         output_trans_func, output_min_issue_delay_func,
4721         output_dead_lock_func, output_reset_func,
4722         output_get_cpu_unit_code_func, output_dfa_start_func,
4723         expand_automata): Likewise.
4724         * genextract.c (gen_insn): Likewise.
4725         * gengtype-lex.l: Likewise.
4726         * gengtype.c (read_input_list, adjust_field_type,
4727         process_gc_options): Likewise.
4728         * genoutput.c (note_constraint): Likewise.
4729         * genpreds.c (mangle, add_constraint): Likewise.
4730         * genrecog.c (process_define_predicate, new_decision,
4731         add_to_sequence): Likewise.
4732         * gensupport.c (record_insn_name): Likewise.
4733
4734 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4735
4736         * config/i386/driver-i386.c (detect_caches_amd,
4737         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
4738         and/or -Wcast-qual warnings.
4739         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
4740         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
4741         gt_pch_save): Likewise.
4742         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
4743         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
4744         * global.c (compute_regsets): Likewise.
4745         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
4746         finish_graph_dump_file): Likewise.
4747         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
4748         unlink_bb_notes): Likewise.
4749         * integrate.c (get_hard_reg_initial_val): Likewise.
4750         * ipa-prop.c (ipa_push_func_to_list): Likewise.
4751         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
4752         * local-alloc.c (update_equiv_regs): Likewise.
4753         * loop-invariant.c (check_invariant_table_size,
4754         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
4755         Likewise.
4756         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
4757         altered_reg_used, mark_altered): Likewise.
4758         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
4759         insert_var_expansion_initialization,
4760         combine_var_copies_in_loop_exit, apply_opt_in_copies,
4761         release_var_copies): Likewise.
4762         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
4763         analyze_matrix_decl, add_allocation_site, analyze_transpose,
4764         analyze_accesses_for_phi_node, check_var_notmodified_p,
4765         check_allocation_function, find_sites_in_func,
4766         record_all_accesses_in_func, transform_access_sites,
4767         transform_allocation_sites): Likewise.
4768         * omp-low.c (new_omp_region, create_omp_child_function_name,
4769         check_omp_nesting_restrictions, check_combined_parallel,
4770         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
4771         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
4772         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
4773         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
4774         Likewise.
4775         * opts-common.c (prune_options): Likewise.
4776         * opts.c (add_input_filename, print_filtered_help,
4777         get_option_state): Likewise.
4778         * params.c (add_params): Likewise.
4779         * passes.c (set_pass_for_id, next_pass_1,
4780         do_per_function_toporder, pass_fini_dump_file): Likewise.
4781         * postreload.c (reload_cse_simplify_operands): Likewise.
4782         * predict.c (tree_predicted_by_p, tree_predict_edge,
4783         clear_bb_predictions, combine_predictions_for_bb): Likewise.
4784
4785 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4786
4787         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
4788         warnings.
4789         * recog.c (check_asm_operands, validate_change_1): Likewise.
4790         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
4791         subst_asm_stack_regs): Likewise.
4792         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
4793         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
4794         * regmove.c (reg_is_remote_constant_p): Likewise.
4795         * regrename.c (regrename_optimize, scan_rtx_reg,
4796         kill_clobbered_value, kill_set_value, kill_autoinc_value):
4797         Likewise.
4798         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
4799         regstat_compute_calls_crossed): Likewise.
4800         * reload1.c (init_reload, new_insn_chain,
4801         has_nonexceptional_receiver, reload, copy_reloads,
4802         calculate_needs_all_insns, init_elim_table): Likewise.
4803         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
4804         * rtl.c (shallow_copy_rtx_stat): Likewise.
4805         * rtlanal.c (parms_set): Likewise.
4806         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
4807         sbitmap_resize, sbitmap_vector_alloc): Likewise.
4808         * sched-ebb.c (earliest_block_with_similiar_load,
4809         add_deps_for_risky_insns): Likewise.
4810         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
4811         schedule_region): Likewise.
4812         * see.c (eq_descriptor_pre_extension,
4813         hash_descriptor_pre_extension, hash_del_pre_extension,
4814         eq_descriptor_properties, hash_descriptor_properties,
4815         hash_del_properties, see_seek_pre_extension_expr,
4816         see_initialize_data_structures, see_print_register_properties,
4817         see_print_pre_extension_expr, see_delete_merged_def_extension,
4818         see_delete_unmerged_def_extension, see_emit_use_extension,
4819         see_pre_delete_extension, see_map_extension, see_commit_changes,
4820         see_analyze_merged_def_local_prop,
4821         see_analyze_merged_def_local_prop,
4822         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
4823         see_set_prop_merged_def, see_set_prop_unmerged_def,
4824         see_set_prop_unmerged_use, see_print_one_extension,
4825         see_merge_one_use_extension, see_merge_one_def_extension,
4826         see_store_reference_and_extension, see_update_uses_relevancy,
4827         see_update_defs_relevancy): Likewise.
4828         * statistics.c (hash_statistics_hash, hash_statistics_eq,
4829         hash_statistics_free, curr_statistics_hash): Likewise.
4830         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
4831         expand_asm_operands, expand_return, case_bit_test_cmp,
4832         expand_case): Likewise.
4833         * stor-layout.c (start_record_layout): Likewise.
4834         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
4835         gt_pch_save_stringpool): Likewise.
4836         * tree-data-ref.c (hash_stmt_vertex_info,
4837         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
4838         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
4839
4840 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
4841
4842         PR target/36627
4843         * config/i386/i386.md : Change constraints of HImode and QImode
4844         immediate operands from "i" to "n".  Change SImode "ni" constraint to
4845         "i" and SImode "rmi" constraint to "g".  Remove all constraints
4846         from const0_operand and const1_operand predicated operands.
4847         (i): Change QImode and HImode attribute from "i" to "n".
4848         (*subqi_2): Change HImode operands to QImode.
4849         (*subqi_3): Ditto.
4850
4851 2008-06-25  Olivier Hainque  <hainque@adacore.com>
4852
4853         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
4854         sed substitutions.
4855
4856 2008-06-25  Richard Guenther  <rguenther@suse.de>
4857
4858         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
4859         not overflow the result type.
4860
4861 2008-06-25  Richard Guenther  <rguenther@suse.de>
4862
4863         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
4864         (vn_lookup): Likewise.
4865
4866 2008-06-25  Richard Guenther  <rguenther@suse.de>
4867
4868         PR tree-optimization/35518
4869         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
4870         * tree-sra.c (instantiate_element): Use fold_build3 to build
4871         BIT_FIELD_REFs.
4872         (try_instantiate_multiple_fields): Likewise.
4873
4874 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4875
4876         * config/rs6000/rs6000.md: Change all string instruction's clobber to
4877         be early clobbers.
4878
4879 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4880
4881         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
4882         use_backchain_to_restore_sp to true
4883         if the offset of the link register save area would go over the 32k - 1
4884         offset limit of the load
4885         instructions.
4886
4887 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
4888
4889         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
4890         anchor for the type-punning blurb.  Cross-reference "Structures
4891         unions enumerations and bit-fields implementation".  Provide a
4892         cast-through-pointer example.  Make final sentence self-contained.
4893         * doc/implement-c.texi (Structures unions enumerations and
4894         bit-fields implementation): Cross-reference the type-punning blurb
4895         in the -fstrict-aliasing documentation.
4896
4897 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4898
4899         PR middle-end/36594
4900         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
4901         the memory instead of the memory itself for the save area.
4902
4903 2008-06-24  Olivier Hainque  <hainque@adacore.com>
4904             Nicolas Roche  <roche@adacore.com>
4905
4906         * gengtype.c (srcdir_len): size_t instead of int.
4907         (get_file_realbasename): New function.  For F a filename, the real
4908         basename of F, with all the path components stripped.
4909         (get_file_srcdir_relative_path): New function.  For F a filename, the
4910         relative path to F from $(srcdir).
4911         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
4912         get_file_realbasename.  Adjust the head comment.
4913         (get_prefix_langdir_index): New function. For F a filename, return the
4914         lang_dir_names[] relative index of the language directory that is
4915         a prefix in F.
4916         (get_file_langdir): For F a filename, return the name of the language
4917         directory where F is located.
4918         (get_file_gtfilename): New function. The gt- output file name for an
4919         input filename F.
4920         (get_output_file_with_visibility): Replace in-line computations with
4921         uses of get_file_gtfilename and get_prefix_langdir_index.
4922         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
4923
4924 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
4925
4926         PR tree-optimization/36504
4927         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
4928         references without base address.
4929
4930 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
4931
4932         PR middle-end/36584
4933         * calls.c (expand_call): Increase alignment for recursive functions.
4934
4935 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
4936
4937         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
4938         (TARGET_FUNCTION_VALUE): New define.
4939         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
4940         * config/avr/avr.h (FUNCTION_VALUE): Remove.
4941
4942 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
4943
4944         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
4945         (fmod<mode>3): Ditto.
4946         (remainderxf3): Ditto.
4947         (remainder<mode>3): Ditto.
4948
4949 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
4950
4951         PR target/36533
4952         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
4953         REG is a hard register.
4954
4955         PR tree-optimization/36508
4956         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
4957         499, don't check it at all in release compilers.
4958
4959 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
4960
4961         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
4962         together with SSE_TARGET_MATH to disable insn pattern.
4963         (*fop_<MODEF:mode>_2_i387): Ditto.
4964         (*fop_<MODEF:mode>_3_i387): Ditto.
4965
4966 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
4967
4968         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
4969
4970 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4971
4972         PR middle-end/34906
4973         * gimplify.c (gimplify_asm_expr): Check the return code of
4974         parse_output_constraint call, set function return and is_inout
4975         value if it failed.
4976
4977 2008-06-22  Ian Lance Taylor  <iant@google.com>
4978
4979         * c-lex.c (narrowest_unsigned_type): Change itk to int.
4980         (narrowest_signed_type): Likewise.
4981         * c-typeck.c (c_common_type): Change local variable mclass to enum
4982         mode_class, twice.
4983         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
4984         tcc_comparison, not the tree code itself.
4985         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
4986         (c_expand_expr): Cast modifier to enum expand_modifier.
4987         * c-common.h (C_RID_CODE): Add casts.
4988         (C_SET_RID_CODE): Define.
4989         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
4990         (c_lex_one_token): Add cast to avoid warning.
4991         (c_parser_objc_type_name): Rename local typename to type_name.
4992         (check_no_duplicate_clause): Change code parameter to enum
4993         omp_clause_code.
4994         (c_parser_omp_var_list_parens): Change kind parameter to enum
4995         omp_clause_code.
4996         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
4997         c_parser_omp_list_var_parens.
4998         (c_parser_omp_threadprivate): Likewise.
4999         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
5000         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
5001         * c-format.c (NO_FMT): Define.
5002         (printf_length_specs): Use NO_FMT.
5003         (asm_fprintf_length_specs): Likewise.
5004         (gcc_diag_length_specs): Likewise.
5005         (scanf_length_specs): Likewise.
5006         (strfmon_length_specs): Likewise.
5007         (gcc_gfc_length_specs): Likewise.
5008         (printf_flag_specs): Change 0 to STD_C89.
5009         (asm_fprintf_flag_specs): Likewise.
5010         (gcc_diag_flag_specs): Likewise.
5011         (gcc_cxxdiag_flag_specs): Likewise.
5012         (scanf_flag_specs): Likewise.
5013         (strftime_flag_specs): Likewise.
5014         (strfmon_flag_specs): Likewise.
5015         (print_char_table): Likewise.
5016         (asm_fprintf_char_table): Likewise.
5017         (gcc_diag_char_table): Likewise.
5018         (gcc_tdiag_char_table): Likewise.
5019         (gcc_cdiag_char_table): Likewise.
5020         (gcc_cxxdiag_char_table): Likewise.
5021         (gcc_gfc_char_table): Likewise.
5022         (scan_char_table): Likewise.
5023         (time_char_table): Likewis.
5024         (monetary_char_table): Likewise.
5025         * c-format.h (BADLEN): Likewise.
5026
5027 2008-06-21  Ian Lance Taylor  <iant@google.com>
5028
5029         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
5030         Define END_OF_BASE_TREE_CODES around inclusion.
5031         * tree.c (tree_code_type): New global array.
5032         (tree_code_length, tree_code_name): Likewise.
5033         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
5034         $(lang_tree_files).
5035         (all-tree.def, s-alltree): New targets.
5036         (gencheck.h, s-gencheck): Remove.
5037         (tree.o): Depend upon all-tree.def.
5038         (build/gencheck.o): Remove gencheck.h dependency.
5039         (mostlyclean): Don't remove gencheck.h.
5040         * c-common.h (enum c_tree_code): Remove.
5041         * c-lang.c (tree_code_type): Remove.
5042         (tree_code_length, tree_code_name): Remove.
5043         * gencheck.c (tree_codes): Include all-tree.def, rather than
5044         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
5045         after it is used.
5046         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
5047         than tree.def.
5048         * cp/cp-tree.h (enum cplus_tree_code): Remove.
5049         (operator_name_info): Size to MAX_TREE_CODES.
5050         (assignment_operator_name_info): Likewise.
5051         * cp/cp-lang.c (tree_code_type): Remove.
5052         (tree_code_length, tree_code_name): Remove.
5053         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
5054         (assignment_operator_name_info): Likewise.
5055         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
5056         MAX_TREE_CODES.
5057         * cp/mangle.c (write_expression): Likewise.
5058         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
5059         * fortran/f95-lang.c (tree_code_type): Remove.
5060         (tree_code_length, tree_code_name): Remove.
5061         * java/java-tree.h (enum java_tree_code): Remove.
5062         * java/lang.c (tree_code_type): Remove.
5063         (tree_code_length, tree_code_name): Remove.
5064         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
5065         * objc/objc-act.h (enum objc_tree_code): Remove.
5066         * objc/objc-lang.c (tree_code_type): Remove.
5067         (tree_code_length, tree_code_name): Remove.
5068         * objcp/objcp-lang.c (tree_code_type): Remove.
5069         (tree_code_length, tree_code_name): Remove.
5070         * ada/ada-tree.h (enum gnat_tree_code): Remove.
5071         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
5072         * ada/misc.c (tree_code_type): Remove.
5073         (tree_code_length, tree_code_name): Remove.
5074
5075 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
5076
5077         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
5078         the grand_bitmap_obstack.
5079
5080 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5081
5082         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
5083         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
5084         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
5085         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
5086         move_stmt_r, new_label_mapper): Likewise.
5087         * tree-complex.c (cvc_lookup): Likewise.
5088         * tree-dfa.c (create_function_ann): Likewise.
5089         * tree-dump.c (dump_register): Likewise.
5090         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
5091         find_phi_replacement_condition): Likewise.
5092         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
5093         tree_function_versioning): Likewise.
5094         * tree-into-ssa.c (cmp_dfsnum): Likewise.
5095         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
5096         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
5097         get_nonlocal_debug_decl, convert_nonlocal_reference,
5098         convert_nonlocal_omp_clauses, get_local_debug_decl,
5099         convert_local_reference, convert_local_omp_clauses,
5100         convert_nl_goto_reference, convert_nl_goto_receiver,
5101         convert_tramp_reference, convert_call_expr): Likewise.
5102         * tree-outof-ssa.c (contains_tree_r): Likewise.
5103         * tree-parloops.c (reduction_phi, initialize_reductions,
5104         eliminate_local_variables_1, add_field_for_reduction,
5105         add_field_for_name, create_phi_for_local_result,
5106         create_call_for_reduction_1, create_loads_for_reductions,
5107         create_stores_for_reduction, create_loads_and_stores_for_name):
5108         Likewise.
5109         * tree-phinodes.c (allocate_phi_node): Likewise.
5110         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
5111         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
5112         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
5113         * tree-ssa-coalesce.c (compare_pairs): Likewise.
5114         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
5115         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
5116         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
5117         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
5118         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
5119         vn_nary_op_insert): Likewise.
5120         * tree-ssa.c (redirect_edge_var_map_add,
5121         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
5122         * tree-vectorizer.c (vectorize_loops): Likewise.
5123         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
5124         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
5125         tree_cons_stat, build1_stat, build_variant_type_copy,
5126         decl_init_priority_lookup, decl_fini_priority_lookup,
5127         decl_priority_info, decl_restrict_base_lookup,
5128         decl_restrict_base_insert, decl_debug_expr_lookup,
5129         decl_debug_expr_insert, decl_value_expr_lookup,
5130         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
5131         type_hash_add, get_file_function_name, tree_check_failed,
5132         tree_not_check_failed, tree_range_check_failed,
5133         omp_clause_range_check_failed, build_omp_clause,
5134         build_vl_exp_stat): Likewise.
5135         * value-prof.c (gimple_histogram_value,
5136         gimple_duplicate_stmt_histograms): Likewise.
5137         * var-tracking.c (attrs_list_insert, attrs_list_copy,
5138         unshare_variable, variable_union_info_cmp_pos, variable_union,
5139         dataflow_set_different_1, dataflow_set_different_2,
5140         vt_find_locations, variable_was_changed, set_variable_part,
5141         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
5142         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
5143         section_entry_hash, object_block_entry_eq,
5144         object_block_entry_hash, create_block_symbol,
5145         initialize_cold_section_name, default_function_rodata_section,
5146         strip_reg_name, set_user_assembler_name, const_desc_eq,
5147         build_constant_desc, output_constant_def, lookup_constant_def,
5148         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
5149         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
5150         default_internal_label): Likewise.
5151         * varray.c (varray_init, varray_grow): Likewise.
5152         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
5153
5154 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
5155
5156         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
5157         operators for "test" insn.  Macroize insn using SWI mode macro.
5158         (*jcc_fused_2): Ditto.
5159         (*jcc_fused_3): Macroize insn using SWI mode macro.
5160         (*jcc_fused_4): Ditto.
5161
5162 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
5163
5164         * tree-ssa-pre.c: Fix typo in comment.
5165         (init_antic, fini_antic): Add explicit funtions for
5166         initializing and deinitializing ANTIC and AVAIL sets.
5167         (create_expression_by_pieces): Fix typo in comment.
5168         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
5169         (execute_pre): Eventually dump details about ANTIC_IN.
5170
5171 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5172
5173         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
5174         * gcc.c (translate_options, init_spec, store_arg, read_specs,
5175         add_to_obstack, file_at_path, find_a_file, execute,
5176         add_preprocessor_option, add_assembler_option, add_linker_option,
5177         process_command, insert_wrapper, do_option_spec, do_self_spec,
5178         spec_path, do_spec_1, is_directory, main, used_arg,
5179         getenv_spec_function): Likewise.
5180         * tlink.c (symbol_hash_lookup, file_hash_lookup,
5181         demangled_hash_lookup, symbol_push, file_push, frob_extension):
5182         Likewise.
5183
5184 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
5185
5186         * doc/rtl.texi: Updated subreg section.
5187
5188 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
5189
5190         PR c++/36523
5191         * cgraphunit.c (cgraph_process_new_functions): Don't clear
5192         node->needed and node->reachable.
5193         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
5194         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
5195         (expand_task_call): Don't call expand_task_copyfn.
5196         (expand_task_copyfn): Renamed to...
5197         (finalize_task_copyfn): ... this.
5198
5199 2008-06-19  Jan Hubicka  <jh@suse.cz>
5200
5201         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
5202         clobbering framepointer.
5203
5204 2008-06-19  Jan Hubicka  <jh@suse.cz>
5205
5206         * tree-optimize.c (execute_early_local_optimizations): Set
5207         cgraph_state only at first invocation.
5208
5209 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5210
5211         * system.h (-Wc++-compat): Activate as a warning, no an error.
5212
5213 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
5214
5215         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
5216         instead of "#" in insn asm template.
5217         (*jcc_fused_2): Ditto.
5218
5219 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
5220
5221         * config/i386/i386.h (ix86_tune_indices)
5222         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
5223         (TARGET_FUSE_CMP_AND_BRANCH): New define.
5224         * config/i386/i386.md (*jcc_fused_1): New insn pattern
5225         (*jcc_fused_2): Ditto.
5226         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
5227         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
5228         (print operand): Handle 'E' and 'e' code.
5229
5230 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
5231
5232         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
5233         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
5234         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
5235
5236 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
5237
5238         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
5239         node->decl.
5240         (cgraph_expand_function): Use local copy of decl.
5241         (cgraph_expand_all_functions): Remove redundant initialization of
5242         order_pos.
5243         (cgraph_optimize): Reword internal_error message.
5244
5245 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
5246
5247         * arm-protos.h (arm_return_in_memory): Remove public
5248         arm_return_in_memory() prototype.
5249         * arm.c (arm_return_in_memory): Add static prototype, add target
5250         hook macro, change definition and comments.
5251         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
5252
5253 2008-06-19  Ben Elliston  <bje@au.ibm.com>
5254
5255         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
5256         real.c: Remove references to IEEE 754R.
5257         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
5258         * doc/libgcc.texi (Decimal float library routines): Likewise.
5259
5260 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5261
5262         * targhooks.h (struct gcc_target): New member unwind_word_mode.
5263         (default_unwind_word_mode): Add prototype.
5264         * targhooks.c (default_unwind_word_mode): New function.
5265         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
5266         instead of word_mode.
5267         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
5268         (TARGET_INITIALIZER): Use it.
5269
5270         * c-common.c (handle_mode_attribute): Support "unwind_word"
5271         mode attribute.
5272         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
5273
5274         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
5275         word_mode to access SjLj_Function_Context member "data".
5276         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
5277         conversion from targetm.eh_return_filter_mode () to
5278         targetm.unwind_word_mode () if they differ.
5279
5280         * builtin-types.def (BT_UNWINDWORD): New primitive type.
5281         (BT_FN_UNWINDWORD_PTR): New function type.
5282         (BT_FN_WORD_PTR): Remove.
5283         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
5284         * except.c (expand_builtin_extend_pointer): Convert pointer to
5285         targetm.unwind_word_mode () instead of word_mode.
5286
5287         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
5288         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
5289         (spu_unwind_word_mode): New function.
5290         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
5291         (TARGET_UNWIND_WORD_MODE): Define.
5292         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
5293
5294 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5295
5296         * config/spu/spu.c (reg_align): Remove.
5297         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
5298         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
5299         (spu_split_store): Likewise.
5300
5301 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
5302
5303         * gcc/tree-vn.c: Fix typo in comment.
5304
5305 2008-06-18  Jan Hubicka  <jh@suse.cz>
5306
5307         * cgraphunit.c (cgraph_optimize): Output debug info when doing
5308         toplevel reorder too.
5309
5310 2008-06-18  Jan Hubicka  <jh@suse.cz>
5311
5312         * c-opts.c (c_common_post_options): PCH is not compatible with
5313         no-unit-at-a-time.
5314         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
5315         -fno-toplevel-reorder by default now.
5316
5317 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5318
5319         PR documentation/30739
5320         * doc/install.texi (Prerequisites): Document dependency on awk.
5321
5322 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
5323             Ian Lance Taylor  <iant@google.com>
5324
5325         PR rtl-optimization/35604
5326         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
5327         only want to change jump destinations, not eventual label comparisons.
5328
5329 2008-06-16  Jan Hubicka  <jh@suse.cz>
5330
5331         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
5332         syntax errors.
5333         (cgraph_analyze_function): Likewise.
5334
5335 2008-06-16  Jan Hubicka  <jh@suse.cz>
5336
5337         * cgraph.h (cgraph_mark_if_needed): New function.
5338         * cgraphunit.c (cgraph_mark_if_needed): New function.
5339         * c-decl.c (duplicate_decl): Use it.
5340
5341 2008-06-16  Jan Hubicka  <jh@suse.cz>
5342
5343         * cgraph.c (cgraph_add_new_function): When in expansion state, do
5344         lowering.
5345
5346 2008-06-16  Jan Hubicka  <jh@suse.cz>
5347
5348         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
5349
5350 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
5351             Kazu Hirata  <kazu@codesourcery.com>
5352             Maxim Kuvyrkov  <maxim@codesourcery.com
5353
5354         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
5355         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
5356         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
5357         EXTRA_SPEC_FUNCTIONS.
5358         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
5359         (DRIVER_SELF_SPECS): Adjust.
5360         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
5361         * config/mips/st.h, config/mips/t-st: New.
5362         * config/mips/driver-native.c, config/mips/x-native: New.
5363         * doc/invoke.texi (MIPS): Document 'native' value for -march and
5364         -mtune options.
5365
5366 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
5367
5368         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
5369         from it.
5370         (ISA_HAS_FP_CONDMOVE): New macro.
5371         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
5372         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
5373         (ISA_HAS_NMADD3_NMSUB3): New macro.
5374         * config/mips/mips.c (mips_rtx_costs): Update.
5375         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
5376         compiling for ST Loongson 2E/2F.
5377         (madd<mode>): Rename to madd4<mode>.  Update.
5378         (madd3<mode>): New pattern.
5379         (msub<mode>): Rename to msub4<mode>.  Update.
5380         (msub3<mode>): New pattern.
5381         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
5382         (nmadd3<mode>): New pattern.
5383         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
5384         (nmadd3<mode>_fastmath): New pattern.
5385         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
5386         (nmsub3<mode>): New pattern.
5387         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
5388         (nmsub3<mode>_fastmath): New pattern.
5389         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
5390
5391 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
5392
5393         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
5394         (DF_REF_INSN_INFO): New.
5395         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
5396         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
5397         with a NULL DF_REF_INSN_INFO.
5398         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
5399         DF_INSN_SET.
5400         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
5401         DF_INSN_INFO_EQ_USES): New.
5402         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
5403         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
5404         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
5405         * df-core.c: Update comment for above changes.
5406         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
5407         DF_INSN_UID_* macros.
5408         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
5409         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
5410         insn rtx.  Update all callers.
5411         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
5412         df_ref_create_structure, df_insn_refs_collect): Likewise.
5413         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
5414         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
5415         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
5416         macros to access the insn refs.
5417         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
5418         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
5419         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
5420         for accessing the refs.
5421         (try_fwprop_subst): Likewise.
5422         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
5423         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
5424         for accessing the refs.
5425         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
5426         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
5427         to look at the insn refs.
5428         (record_uses): Likewise.
5429         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
5430         function anymore.
5431         (mark_artificial_uses): Don't mark_insn for artificial refs.
5432         (mark_reg_rependencies): Likewise.
5433
5434         * doc/rtl.texi: Remove documentation of ADDRESSOF.
5435
5436 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5437
5438         * configure: Regenerate.
5439
5440 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
5441
5442         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
5443         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5444         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5445
5446 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
5447
5448         * config/avr/avr.c (avr_mcu_t): Add attiny167.
5449         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5450         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5451
5452 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
5453
5454         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
5455         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5456         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5457
5458 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
5459
5460         * tree-ssa-sccvn.c: Fix format of comments.
5461
5462 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
5463
5464         * cgraph.c: Remove unneeded forward declarations of eq_node()
5465         and hash_node().
5466
5467 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
5468
5469         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
5470         REG_RETVAL notes.
5471         (see_update_relevancy): Likewise.
5472         * fwprop.c (try_fwprop_subst): Likewise.
5473         * rtlanal.c (noop_move_p): Likewise.
5474         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
5475         notes to non-existing libcall blocks.
5476         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
5477         Remove orig_set.
5478         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
5479         (dead_libcall_p): Remove.
5480         (delete_trivially_dead_insns): Don't use it.
5481         * web.c (union_defs): Remove comment about keeping nops.
5482         * gcse.c (hash_scan_insn): Don't take libcall pointers.
5483         (compute_hash_table_work): Don't track libcall notes.
5484         (do_local_cprop): Don't take libcall pointers.  Don't update
5485         libcall notes.
5486         (adjust_libcall_notes): Deleted.
5487         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
5488         ever have existed in the first place).
5489         (replace_store_insn): Don't try to remove libcall notes.
5490         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
5491         (resolve_reg_notes): Don't call them.
5492         (resolve_simple_move): Likewise.
5493         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
5494         Don't remove REG_RETVAL notes.
5495         * emit-rtl.c (try_split): Don't update libcall notes.
5496         (emit_copy_of_insn_after): Dito.
5497         * cselib.c (cselib_current_insn_in_libcall): Remove.
5498         (cselib_process_insn): Don't set/clear it.
5499         (new_elt_loc_list): Don't record it.
5500         (cselib_init): Don't initialize it.
5501         * cselib.c (struct elt_loc_list): Remove in_libcall field.
5502         * loop-invariant.c (find_invariant_insn): Don't look for libcall
5503         notes.
5504         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
5505         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
5506         (init_deps): Don't initialize it.
5507         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
5508         * combine.c (delete_noop_moves): Don't update libcall notes.
5509         (can_combine_p): Remove now pointless #if 0 block.
5510         (try_combine): Remove another obsolete #if 0 block.
5511         (distribute_notes): Don't distribute libcall notes.
5512         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
5513         * dce.c (libcall_dead_p): Remove.
5514         (delete_unmarked_insns): Don't handle libcall blocks.
5515         (preserve_libcall_for_dce): Remove.
5516         (prescan_insns_for_dce): Don't special-case libcall block insns.
5517         * reload1 (reload): Don't handle libcall notes.
5518         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
5519         documentation.
5520
5521 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
5522
5523         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
5524         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5525         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5526
5527 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
5528
5529         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
5530         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5531         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5532
5533 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5534
5535         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
5536
5537 2008-06-16  Ira Rosen  <irar@il.ibm.com>
5538
5539         PR tree-optimization/36493
5540         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
5541         the arguments list. Use VECTYPE to create vector pointer.
5542         (vectorizable_store): Fail if accesses through a pointer to vectype
5543         do not alias the original memory reference operands.
5544         Call vect_create_data_ref_ptr without the removed argument.
5545         (vectorizable_load): Likewise.
5546         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
5547         removed argument.
5548
5549 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
5550
5551         PR target/36336
5552         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
5553         reg_equiv_constant.
5554
5555 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5556
5557         * config/mips/loongson2ef.md: New file.
5558         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5559         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5560         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5561         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
5562         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
5563         and loongson_2f.
5564         (loongson2ef.md): New include.
5565         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
5566         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
5567         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
5568         (loongson_gt_<mode>, loongson_extract_halfword)
5569         (loongson_insert_halfword_0, loongson_insert_halfword_2)
5570         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
5571         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
5572         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
5573         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
5574         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
5575         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
5576         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
5577         (vec_interleave_low<mode>): Define type attribute.
5578         * config/mips/mips.c (mips_ls2): New static variable.
5579         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
5580         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
5581         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
5582         Implement target scheduling hooks.
5583         (mips_multipass_dfa_lookahead): Update to handle tuning for
5584         Loongson 2E/2F.
5585         (mips_sched_init): Initialize data for Loongson scheduling.
5586         (mips_ls2_variable_issue): New static function.
5587         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
5588         Add sanity check.
5589         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
5590         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
5591         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
5592         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
5593         Handle ST Loongson 2E/2F cores.
5594         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
5595
5596 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5597
5598         * omp-low.c (extract_omp_for_data): Fix comment typo.
5599         * c.opt: Fix typo.
5600
5601 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5602
5603         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
5604         FIXME note about gcc/config.guess.
5605         * doc/options.texi (Option file format): Remove non-ASCII bytes.
5606         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
5607         * doc/cppopts.texi: Likewise.
5608         * doc/extend.texi: Likewise.
5609         * doc/gcc.texi: Likewise.
5610         * doc/gccint.texi: Likewise.
5611         * doc/gcov.texi: Likewise.
5612         * doc/gty.texi: Likewise.
5613         * doc/hostconfig.texi: Likewise.
5614         * doc/install.texi: Likewise.
5615         * doc/invoke.texi: Likewise.
5616         * doc/loop.texi: Likewise.
5617         * doc/makefile.texi: Likewise.
5618         * doc/md.texi: Likewise.
5619         * doc/passes.texi: Likewise.
5620         * doc/tm.texi: Likewise.
5621         * doc/tree-ssa.texi: Likewise.
5622         * doc/trouble.texi: Likewise.
5623
5624 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
5625             Nathan Sidwell  <nathan@codesourcery.com>
5626             Maxim Kuvyrkov  <maxim@codesourcery.com>
5627             Richard Sandiford  <rdsandiford@googlemail.com>
5628
5629         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
5630         * config/mips/mips-protos.h (mips_expand_vector_init): New.
5631         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
5632         builtins.
5633         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
5634         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
5635         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
5636         V8QImode cases.
5637         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
5638         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
5639         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
5640         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
5641         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
5642         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
5643         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
5644         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
5645         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
5646         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
5647         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
5648         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
5649         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
5650         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
5651         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
5652         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
5653         (mips_builtins): Add Loongson builtins.
5654         (mips_loongson_2ef_bdesc): New.
5655         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
5656         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
5657         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
5658         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
5659         New.
5660         (mips_expand_vector_init): New.
5661         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
5662         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
5663         if appropriate.
5664         * config/mips/mips.md: Add unspec numbers for Loongson
5665         builtins.  Include loongson.md.
5666         (MOVE64): Include Loongson vector modes.
5667         (SPLITF): Include Loongson vector modes.
5668         (HALFMODE): Handle Loongson vector modes.
5669         * config/mips/loongson.md: New.
5670         * config/mips/loongson.h: New.
5671         * config.gcc: Add loongson.h header for mips*-*-* targets.
5672         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
5673
5674 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
5675
5676         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
5677         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
5678         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
5679         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
5680         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
5681         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
5682         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
5683         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
5684         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
5685         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
5686         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
5687         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
5688         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
5689         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
5690         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
5691         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
5692         Remove use_fixproto=yes.
5693         (ia64*-*-hpux*): Remove comment about using fixproto.
5694         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
5695
5696 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5697
5698         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
5699         library rebuilds.
5700         * configure: Regenerate.
5701
5702 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
5703
5704         PR middle-end/36520
5705         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
5706         before evaluating it.
5707
5708 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
5709
5710         PR c/36507
5711         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
5712         nested inline functions.
5713         (start_decl, start_function): Don't invert DECL_EXTERNAL
5714         for nested inline functions.
5715
5716 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
5717
5718         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
5719         splits that must be made for correctness.
5720
5721 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
5722
5723         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
5724         (AVAIL_NON_MIPS16): Likewise.
5725         (mips_builtin_description): Replace target_flags with a predicate.
5726         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
5727         (dspr2_32): New availability predicates.
5728         (MIPS_BUILTIN): New macro.
5729         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
5730         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
5731         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
5732         Replace the TARGET_FLAGS parameters with AVAIL parameters.
5733         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
5734         (mips_dsp_32only_bdesc): Merge into...
5735         (mips_builtins): ...this new array.
5736         (mips_bdesc_map, mips_bdesc_arrays): Delete.
5737         (mips_init_builtins): Update after above changes.
5738         (mips_expand_builtin_1): Merge into...
5739         (mips_expand_builtin): ...here and update after above changes.
5740
5741 2008-06-12  Paul Brook  <paul@codesourcery.com>
5742
5743         * longlong.h (__arm__): Define count_leading_zeros.
5744         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
5745         (clzsi2, clzdi2): New functions.
5746         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
5747         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
5748         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
5749         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
5750         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
5751         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
5752         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
5753         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
5754         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
5755         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
5756
5757 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
5758
5759         * config/m68k/m68k.c (m68k_tune_flags): New.
5760         (override_options): Compute m68k_tune_flags.
5761         (MULL_COST, MULW_COST): Update for various variants of CFV2.
5762         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
5763
5764 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5765
5766         PR middle-end/36506
5767         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
5768
5769 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
5770
5771         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
5772         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
5773
5774 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
5775
5776         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
5777         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
5778
5779 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5780
5781         PR middle-end/36506
5782         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
5783         reductions.
5784
5785 2008-06-12  Richard Guenther  <rguenther@suse.de>
5786
5787         PR tree-optimization/36345
5788         * tree-flow.h (struct ptr_info_def): Align escape_mask,
5789         add memory_tag_needed flag.
5790         (may_alias_p): Declare.
5791         * tree-ssa-alias.c (may_alias_p): Export.
5792         (set_initial_properties): Use memory_tag_needed flag.
5793         (update_reference_counts): Likewise.
5794         (reset_alias_info): Reset memory_tag_needed flag.
5795         (create_name_tags): Check memory_tag_needed flag.
5796         (dump_points_to_info_for): Dump it.
5797         * tree-ssa-structalias.c (struct variable_info): Remove
5798         directly_dereferenced flag.
5799         (new_var_info): Do not initialize it.
5800         (process_constraint_1): Do not set it.
5801         (update_alias_info): Set is_dereferenced flag.
5802         (set_uids_in_ptset): Use may_alias_p.
5803         (set_used_smts): Check memory_tag_needed flag.
5804         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
5805         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
5806         memory_tag_needed flag.
5807         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
5808         from broken design.
5809
5810 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
5811
5812         * config/i386/i386.c (ix86_compute_frame_layout): Disable
5813         red zone for w64 abi.
5814         (ix86_expand_prologue): Likewise.
5815         (ix86_force_to_memory): Likewise.
5816         (ix86_free_from_memory): Likewise.
5817
5818 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
5819
5820         PR target/36425
5821         * config/rs6000/rs6000.c (rs6000_override_options): Set
5822         rs6000_isel conditionally to the absence of comand line override.
5823         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
5824         Remove duplicate rs6000_isel setting.
5825         * config/rs6000/eabispe.h: Ditto.
5826
5827 2008-06-11  Richard Guenther  <rguenther@suse.de>
5828
5829         * alias.c (get_alias_set): Use the element alias-set for arrays.
5830         (record_component_aliases): For arrays and vectors do nothing.
5831         * c-common.c (strict_aliasing_warning): Handle the cases
5832         of alias set zero explicitly.
5833         * Makefile.in (dfp.o-warn): Add -Wno-error.
5834
5835 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
5836
5837         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
5838         tune_32 tune_64.
5839         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
5840         tune_32 tune_64 to supported_defaults.  Allow values not
5841         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
5842         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
5843         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
5844         with_cpu_64 to generic for 64-bit-supporting configurations, not
5845         with_cpu.  Remove FIXMEs.
5846         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
5847         --with-arch-64, --with-tune-32, --with-tune-64): Document.
5848         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
5849         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
5850         arch_32 and arch_64.
5851
5852 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
5853             Olivier Hainque  <hainque@adacore.com>
5854
5855         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
5856         Use DECL_SIZE_UNIT to retrieve the size of the field.
5857
5858 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
5859
5860         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
5861         with function calls after declarations.  Lay out
5862         neon_float_type_node before further use.
5863
5864 2008-06-11  Richard Guenther  <rguenther@suse.de>
5865
5866         * tree-flow.h (may_point_to_global_var): Declare.
5867         * tree-ssa-alias.c (may_point_to_global_var): New function.
5868         * tree-ssa-sink.c (is_hidden_global_store): Use it.
5869
5870 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
5871
5872         * configure.ac: Teach that fido supports .debug_line.
5873         * configure: Regenerate.
5874
5875 2008-06-10  Tom Tromey  <tromey@redhat.com>
5876
5877         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
5878         debug hook.
5879
5880 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
5881
5882         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
5883         (encode_decimal64, decode_decimal64, encode_decimal128,
5884         decode_decimal128): Reverse order of 32-bit parts of value if host
5885         and target endianness differ.
5886
5887 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
5888
5889         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
5890         Avoid division by 0.
5891         (tree_mod_pow2_value_transform): Likewise.
5892         (tree_ic_transform): Likewise.
5893         (tree_stringops_transform): Likewise.
5894         (tree_mod_subtract_transform): Likewise.
5895         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
5896         (copy_edges_for_bb): Likewise.
5897         (initialize_cfun): Likewise.
5898
5899 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
5900
5901         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
5902         nonmemory_operand. Add "N" operand constraint.
5903         (*btsi): Ditto.
5904         (*jcc_btdi_mask_rex64): New instruction and split pattern.
5905         (*jcc_btsi_mask): Ditto.
5906         (*jcc_btsi_mask_1): Ditto.
5907
5908 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
5909
5910         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
5911         TYPE_CANONICAL for copied element type.
5912
5913 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
5914
5915         PR target/36473
5916         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
5917         Add m_CORE2 and m_GENERIC.
5918         * config/i386/predicates.md (bt_comparison_operator): New predicate.
5919         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
5920         (*btsi): Ditto.
5921         (*jcc_btdi_rex64): New instruction and split pattern.
5922         (*jcc_btsi): Ditto.
5923         (*jcc_btsi_1): Ditto.
5924         (*btsq): Fix Intel asm dialect operand order.
5925         (*btrq): Ditto.
5926         (*btcq): Ditto.
5927
5928 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
5929
5930         PR middle-end/36447
5931         * simplify-rtx.c (simplify_subreg): Add check for shift count
5932         greater than size.
5933
5934 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
5935
5936         * doc/md.texi: Synchronize with later constraints.md change.
5937         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
5938         with a C implementation.
5939         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
5940         MFLO handling.
5941         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
5942         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
5943         when moving to and from MD_REGNUM.
5944         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
5945         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
5946         Handle byte and halfword moves.
5947         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
5948         separately.
5949         * config/mips/constraints.md (h): Turn into NO_REGS.
5950         (l, x): Update documentation.
5951         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
5952         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
5953         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
5954         (HILO): New mode iterator.
5955         (MOVE128): Add TI.
5956         (any_div): New code iterator.
5957         (u): Extend code attribute to div and udiv.
5958         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
5959         d_operand in the splitters.  Remove redundant CONST_INT checks.
5960         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
5961         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
5962         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
5963         accordingly, using normal moves instead of unspecs to move LO into
5964         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
5965         (<u>mulsidi3): Handle expansion in C code.
5966         (<u>mulsidi3_32bit_internal): Rename to...
5967         (<u>mulsidi3_32bit): ...this.
5968         (<u>mulsidi3_32bit_r4000): Fix insn separator.
5969         (*<u>mulsidi3_64bit): Rename to...
5970         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
5971         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
5972         to set LO and HI to the multiplication result.  Use a normal move
5973         for MFLO and an unspec for MFHI.
5974         (*<u>mulsidi3_64bit_parts): Replace with...
5975         (<u>mulsidi3_64bit_hilo): ...this new instruction.
5976         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
5977         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
5978         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
5979         instead of HI.  Split the instruction into a separate multiplication
5980         and MFHI if !TARGET_FIX_R4000.
5981         (<su>muldi3_highpart): Likewise.
5982         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
5983         and the "=h" clobber.
5984         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
5985         (<u>mulditi3): New expander.
5986         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
5987         (madsi): Remove "=h" clobber.
5988         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
5989         Force the modulus result to be a GPR and split the instruction into
5990         a division followed by an MFHI after reload.
5991         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
5992         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
5993         the MIPS16 HIGH define_split.
5994         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
5995         of acc<->gpr moves to "multi".
5996         (*movdi_64bit): Replace the single "x" alternative with
5997         alternatives for moving into and out of "a".
5998         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
5999         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
6000         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
6001         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
6002         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
6003         (movti): New expander.
6004         (*movti, *movti_mips16): New insns.
6005         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
6006         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
6007         (mthi<GPR:mode>_<HILO:mode>): Likewise.
6008         * config/mips/predicates.md (fpr_operand): Delete.
6009         (d_operand): New predicate.
6010
6011 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
6012
6013         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
6014         failure on some Bourne shells.
6015         (x86_64-*-*): Ditto.
6016
6017 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
6018
6019         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
6020
6021 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
6022
6023         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
6024         (sparc-sun-solaris2*): Likewise.
6025
6026 2008-06-09  Arnaud Charlet  <charlet@adacore.com
6027
6028         * doc/install.texi: Update requirements to build the Ada compiler.
6029
6030 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
6031
6032         * df-scan.c (struct df_scan_problem_data): Remove the
6033         mw_link_pool alloc pool.
6034         (df_scan_free_internal): Don't free it.
6035         (df_scan_alloc): Don't allocate it.
6036         * df.h (struct df_link): Update comment.
6037
6038 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
6039
6040         * except.h: Correct checks for when SJLJ exceptions must be used.
6041
6042 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6043
6044         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
6045         default.
6046
6047 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
6048
6049         PR tree-optimization/36218
6050         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
6051         configure for the build system.
6052         (BUILD_LDFLAGS): Define.
6053         * configure: Regenerate.
6054         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
6055
6056 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
6057
6058         PR target/36424
6059         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
6060         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
6061         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
6062
6063 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
6064
6065         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
6066
6067 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
6068
6069         * config.gcc (Obsolete configurations): Remove list of
6070         configurations.
6071         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
6072         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
6073         targets matched by those patterns.
6074         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
6075         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
6076         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
6077         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
6078         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
6079         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
6080         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
6081         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
6082         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
6083         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
6084         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
6085         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
6086         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
6087         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
6088         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
6089         Make code for Solaris 7 and greater unconditional for Solaris.
6090         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
6091         Remove --with-* handling.
6092         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
6093         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
6094         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
6095         LINK_OS_WINDISS_SPEC): Remove.
6096         * config/rs6000/sysv4.opt (mwindiss): Remove.
6097         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
6098         * configure: Regenerate.
6099         * doc/cpp.texi: Don't mention BeOS.
6100         * doc/extend.texi (interrupt): Don't mention MS1.
6101         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
6102         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
6103         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
6104         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
6105         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
6106         Remove.
6107         * doc/invoke.texi (MT Options): Remove.
6108         (-mwindiss): Remove.
6109         (CRIS Options): Remove cris-axis-aout references.
6110         (HPPA Options): Don't mention hppa1.1-*-pro.
6111         * doc/md.texi: (MorphoTech family): Remove.
6112         * libgcc2.c: Don't handle UWIN.
6113         * config/alpha/t-unicosmk: Remove.
6114         * config/alpha/unicosmk.h: Remove.
6115         * config/arm/kaos-arm.h: Remove.
6116         * config/arm/kaos-strongarm.h: Remove.
6117         * config/arm/strongarm-coff.h: Remove.
6118         * config/arm/strongarm-elf.h: Remove.
6119         * config/arm/strongarm-pe.h: Remove.
6120         * config/arm/t-strongarm-pe: Remove.
6121         * config/arm/t-xscale-coff: Remove.
6122         * config/arm/t-xscale-elf: Remove.
6123         * config/arm/xscale-coff.h: Remove.
6124         * config/arm/xscale-elf.h: Remove.
6125         * config/chorus.h: Remove.
6126         * config/cris/aout.h: Remove.
6127         * config/cris/aout.opt: Remove.
6128         * config/cris/t-aout: Remove.
6129         * config/i386/beos-elf.h: Remove.
6130         * config/i386/kaos-i386.h: Remove.
6131         * config/i386/ptx4-i.h: Remove.
6132         * config/i386/sco5.h: Remove.
6133         * config/i386/sco5.opt: Remove.
6134         * config/i386/sysv4-cpp.h: Remove.
6135         * config/i386/sysv5.h: Remove.
6136         * config/i386/t-beos: Remove.
6137         * config/i386/t-sco5: Remove.
6138         * config/i386/t-uwin: Remove.
6139         * config/i386/uwin.asm: Remove.
6140         * config/i386/uwin.h: Remove.
6141         * config/kaos.h: Remove.
6142         * config/mips/windiss.h: Remove.
6143         * config/mt: Remove directory.
6144         * config/pa/pa-osf.h: Remove.
6145         * config/pa/pa-pro-end.h: Remove.
6146         * config/pa/t-pro: Remove.
6147         * config/ptx4.h: Remove.
6148         * config/rs6000/beos.h: Remove.
6149         * config/rs6000/kaos-ppc.h: Remove.
6150         * config/rs6000/t-beos: Remove.
6151         * config/rs6000/windiss.h: Remove.
6152         * config/sh/kaos-sh.h: Remove.
6153         * config/sol2-6.h: Remove.
6154         * config/sparc/sol26-sld.h: Remove.
6155         * config/sparc/sysv4-only.h: Remove.
6156         * config/vax/bsd.h: Remove.
6157         * config/vax/t-memfuncs: Remove.
6158         * config/vax/ultrix.h: Remove.
6159         * config/vax/vaxv.h: Remove.
6160         * config/windiss.h: Remove.
6161
6162 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
6163
6164         PR rtl-optimization/36438
6165         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
6166         for vector shifts with constant scalar shift operands.
6167
6168 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
6169
6170         * doc/invoke.texi: Document -march=xlr.
6171         * config/mips/xlr.md: New file.
6172         * config/mips/mips.md: Include it.
6173         (cpu): Add "xlr".
6174         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
6175         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
6176         (mips_rtx_cost_data): Likewise.
6177
6178 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
6179
6180         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
6181         PRE_INC and PRE_DEC cases.
6182
6183 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
6184
6185         PR rtl-optimization/36419
6186         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
6187         the emitting jump insn.
6188
6189         PR target/36362
6190         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
6191         is not bool, boolify the whole *expr_p and convert to the desired type.
6192
6193 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
6194
6195         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
6196         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
6197         Add omp_private_outer_ref hook, add another argument to
6198         omp_clause_default_ctor hook.
6199         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
6200         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
6201         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
6202         hook_tree_tree_tree_tree_null.
6203         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
6204         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
6205         * hooks.c (hook_tree_tree_tree_tree_null): New function.
6206         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
6207         * tree.def (OMP_TASK): New tree code.
6208         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
6209         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
6210         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
6211         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
6212         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
6213         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
6214         OMP_CLAUSE_COLLAPSE_EXPR): Define.
6215         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
6216         (OMP_DIRECTIVE_P): Add OMP_TASK.
6217         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
6218         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
6219         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
6220         and OMP_CLAUSE_UNTIED entries.
6221         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
6222         num_ops to 2.
6223         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
6224         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
6225         * tree-pretty-print.c (dump_omp_clause): Handle
6226         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
6227         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
6228         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
6229         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
6230         warning about unsigned iterators.  Change decl/init/cond/incr
6231         arguments to TREE_VECs, check arguments for all collapsed loops.
6232         (c_finish_omp_taskwait): New function.
6233         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
6234         ws_clauses.
6235         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
6236         default_function_array_conversion on init.  Add par_clauses argument.
6237         If decl is present in parallel's lastprivate clause, change it to
6238         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
6239         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
6240         collapse count in clauses.
6241         (c_parser_omp_for, c_parser_omp_parallel): Adjust
6242         c_parser_omp_for_loop callers.
6243         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
6244         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
6245         (c_parser_omp_clause_name): Handle collapse and untied clauses.
6246         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
6247         functions.
6248         (c_parser_omp_clause_schedule): Handle schedule(auto).
6249         Include correct location in the error message.
6250         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
6251         and PRAGMA_OMP_CLAUSE_UNTIED.
6252         (OMP_TASK_CLAUSE_MASK): Define.
6253         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
6254         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
6255         * tree-nested.c (convert_nonlocal_omp_clauses,
6256         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
6257         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
6258         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
6259         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
6260         OMP_CLAUSE_DECL.
6261         (conver_nonlocal_reference, convert_local_reference,
6262         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
6263         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
6264         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
6265         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
6266         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
6267         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
6268         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
6269         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
6270         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
6271         OMP_CLAUSE_UNTIED.
6272         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
6273         * c-common.h (c_finish_omp_taskwait): New prototype.
6274         * gimple-low.c (lower_stmt): Handle OMP_TASK.
6275         * tree-parloops.c (create_parallel_loop): Create 1 entry
6276         vectors for OMP_FOR_{INIT,COND,INCR}.
6277         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
6278         (make_edges): Handle OMP_TASK.
6279         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
6280         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
6281         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
6282         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
6283         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
6284         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
6285         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
6286         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
6287         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
6288         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
6289         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
6290         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
6291         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
6292         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
6293         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
6294         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
6295         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
6296         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
6297         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
6298         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
6299         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
6300         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
6301         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
6302         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
6303         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
6304         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
6305         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
6306         original iterator is present in lastprivate clause or if
6307         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
6308         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
6309         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
6310         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
6311         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
6312         if it is set, lookup var in outer contexts too.  Handle
6313         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
6314         to be implicitly determined firstprivate for task regions.
6315         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
6316         if it is set, lookup var in outer contexts too.  Set
6317         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
6318         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
6319         OMP_CLAUSE_UNTIED.  Take region_type as last argument
6320         instead of in_parallel and in_combined_parallel.
6321         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
6322         Adjust callers.
6323         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
6324         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
6325         (new_omp_context): Set default_kind to
6326         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
6327         (omp_region_type): New enum.
6328         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
6329         fields, add region_type.
6330         (new_omp_context): Take region_type as argument instead of is_parallel
6331         and is_combined_parallel.
6332         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
6333         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
6334         ctx->is_combined_parallel checks.
6335         (gimplify_omp_task): New function.
6336         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
6337         OMP_CLAUSE_UNTIED.
6338         * omp-low.c (extract_omp_for_data): Use schedule(static)
6339         for schedule(auto).  Handle pointer and unsigned iterators.
6340         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
6341         Add loops argument.  Extract data for collapsed OMP_FOR loops.
6342         (expand_parallel_call): Assert sched_kind isn't auto,
6343         map runtime schedule to index 3.
6344         (struct omp_for_data_loop): New type.
6345         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
6346         Add loop, loops, collapse and iter_type fields.
6347         (workshare_safe_to_combine_p): Disallow combined for if
6348         iter_type is unsigned long long.  Don't combine collapse > 1 loops
6349         unless all bounds and steps are constant.  Adjust extract_omp_for_data
6350         caller.
6351         (expand_omp_for_generic): Handle pointer, unsigned and long long
6352         iterators.  Handle collapsed OMP_FOR loops.  Adjust
6353         for struct omp_for_data changes.  If libgomp function doesn't return
6354         boolean_type_node, add comparison of the return value with 0.
6355         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
6356         pointer, unsigned and long long iterators.  Adjust for struct
6357         omp_for_data changes.
6358         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
6359         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
6360         unsigned long long.  Allocate loops array, pass it to
6361         extract_omp_for_data.  For collapse > 1 loops use always
6362         expand_omp_for_generic.
6363         (omp_context): Add sfield_map and srecord_type fields.
6364         (is_task_ctx, lookup_sfield): New functions.
6365         (use_pointer_for_field): Use is_task_ctx helper.  Change first
6366         argument's type from const_tree to tree.  Clarify comment.
6367         In OMP_TASK disallow copy-in/out sharing.
6368         (build_sender_ref): Call lookup_sfield instead of lookup_field.
6369         (install_var_field): Add mask argument.  Populate both record_type
6370         and srecord_type if needed.
6371         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
6372         in srecord_type.
6373         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
6374         and DECL_FIELD_OFFSET.
6375         (scan_sharing_clauses): Adjust install_var_field callers.  For
6376         firstprivate clauses on explicit tasks allocate the var by value in
6377         record_type unconditionally, rather than by reference.
6378         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
6379         Use is_taskreg_ctx instead of is_parallel_ctx.
6380         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
6381         (create_omp_child_function_name): Add task_copy argument, use
6382         *_omp_cpyfn* names if it is true.
6383         (create_omp_child_function): Add task_copy argument, if true create
6384         *_omp_cpyfn* helper function.
6385         (scan_omp_parallel): Adjust create_omp_child_function callers.
6386         Rename parallel_nesting_level to taskreg_nesting_level.
6387         (scan_omp_task): New function.
6388         (lower_rec_input_clauses): Don't run constructors for firstprivate
6389         explicit task vars which are initialized by *_omp_cpyfn*.
6390         Pass outer var ref to omp_clause_default_ctor hook if
6391         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
6392         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
6393         OMP_CLAUSE_REDUCTION_INIT.
6394         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
6395         avoid duplicate setting of fields.  Handle
6396         OMP_CLAUSE_PRIVATE_OUTER_REF.
6397         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
6398         copy-out if TREE_READONLY, only copy-in.
6399         (expand_task_copyfn): New function.
6400         (expand_task_call): New function.
6401         (struct omp_taskcopy_context): New type.
6402         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
6403         New functions.
6404         (lower_omp_parallel): Rename to...
6405         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
6406         Call create_task_copyfn if srecord_type is needed.  Adjust
6407         sender_decl type.
6408         (task_shared_vars): New variable.
6409         (check_omp_nesting_restrictions): Warn if work-sharing,
6410         barrier, master or ordered region is closely nested inside OMP_TASK.
6411         Add warnings for barrier if closely nested inside of work-sharing,
6412         ordered, or master region.
6413         (scan_omp_1): Call check_omp_nesting_restrictions even for
6414         GOMP_barrier calls.  Rename parallel_nesting_level to
6415         taskreg_nesting_level.  Handle OMP_TASK.
6416         (lower_lastprivate_clauses): Even if some lastprivate is found on a
6417         work-sharing construct, continue looking for them on parent parallel
6418         construct.
6419         (lower_omp_for_lastprivate): Add lastprivate clauses
6420         to the beginning of dlist rather than end.  Adjust for struct
6421         omp_for_data changes.
6422         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
6423         not after it.  Handle collapsed OMP_FOR loops, adjust for
6424         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
6425         (get_ws_args_for): Adjust extract_omp_for_data caller.
6426         (scan_omp_for): Handle collapsed OMP_FOR
6427         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
6428         (lower_omp_single_simple): If libgomp function doesn't return
6429         boolean_type_node, add comparison of the return value with 0.
6430         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
6431         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
6432         (parallel_nesting_level): Rename to...
6433         (taskreg_nesting_level): ... this.
6434         (is_taskreg_ctx): New function.
6435         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
6436         of is_parallel_ctx.
6437         (execute_lower_omp): Rename parallel_nesting_level to
6438         taskreg_nesting_level.
6439         (expand_omp_parallel): Rename to...
6440         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
6441         Call omp_task_call for OMP_TASK regions.
6442         (expand_omp): Adjust caller, handle OMP_TASK.
6443         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
6444
6445         * bitmap.c (bitmap_default_obstack_depth): New variable.
6446         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
6447         if argument is NULL and bitmap_default_obstack is already initialized.
6448         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
6449         at the end.
6450         * matrix-reorg.c (matrix_reorg): Likewise.
6451
6452 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
6453
6454         * config/i386/i386.md (*indirect_jump): Macroize using P
6455         mode iterator.  Remove !TARGET_64BIT from insn constraints.
6456         (*tablejump_1): Ditto.
6457         (*indirect_jump_rex64): Remove insn pattern.
6458         (*tablejump_1_rex64): Ditto.
6459         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
6460         and eh_return_si insn patterns.
6461
6462 2008-06-06  Richard Guenther  <rguenther@suse.de>
6463
6464         * tree-ssa-structalias.c (merge_smts_into): Remove.
6465         (find_what_p_points_to): Do not bother to compute the
6466         points-to set for pt_anything pointers.
6467         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
6468         for pt_anything pointers is ok.
6469
6470 2008-06-06  Jan Hubicka  <jh@suse.cz>
6471
6472         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
6473
6474 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6475
6476         * cgraph.c: Fix typos in comments.
6477         (cgraph_availability_names): Fix string typo.
6478         * fold-const.c: Fix typos in comments.
6479         (fold_binary): Fix typo in warning.
6480         * genautomata.c: Fix typos in comments.
6481         (check_presence_pattern_sets): Fix typo in local variable.
6482         (output_description): Fix typo in output.
6483         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
6484         * hwint.h: Likewise.
6485         * matrix-reorg.c (check_allocation_function): Likewise.
6486         * omega.c (smooth_weird_equations): Likewise.
6487         * auto-inc-dec.c: Fix typos in comments.
6488         * bb-reorder.c: Likewise.
6489         * builtins.c: Likewise.
6490         * c-common.c: Likewise.
6491         * c-cppbuiltin.c: Likewise.
6492         * c-parser.c: Likewise.
6493         * c-pretty-print.c: Likewise.
6494         * cfgcleanup.c: Likewise.
6495         * cfgexpand.c: Likewise.
6496         * cfghooks.c: Likewise.
6497         * cfglayout.c: Likewise.
6498         * cfgloopmanip.c: Likewise.
6499         * cgraphunit.c: Likewise.
6500         * coverage.c: Likewise.
6501         * dbxout.c: Likewise.
6502         * df-byte-scan.c: Likewise.
6503         * df-core.c: Likewise.
6504         * df-problems.c: Likewise.
6505         * df-scan.c: Likewise.
6506         * dfp.c: Likewise.
6507         * dominance.c: Likewise.
6508         * domwalk.c: Likewise.
6509         * dse.c: Likewise.
6510         * dwarf2out.c: Likewise.
6511         * emit-rtl.c: Likewise.
6512         * et-forest.c: Likewise.
6513         * function.c: Likewise.
6514         * function.h: Likewise.
6515         * gcc.c: Likewise.
6516         * gcov-io.c: Likewise.
6517         * gcov.c: Likewise.
6518         * gcse.c: Likewise.
6519         * genattrtab.c: Likewise.
6520         * ggc-page.c: Likewise.
6521         * gimplify.c: Likewise.
6522         * gthr-lynx.h: Likewise.
6523         * haifa-sched.c: Likewise.
6524         * ipa-cp.c: Likewise.
6525         * ipa-inline.c: Likewise.
6526         * ipa-prop.h: Likewise.
6527         * ipa-pure-const.c: Likewise.
6528         * ipa-struct-reorg.c: Likewise.
6529         * ipa-struct-reorg.h: Likewise.
6530         * ipa-type-escape.c: Likewise.
6531         * ipa.c: Likewise.
6532         * loop-doloop.c: Likewise.
6533         * mips-tfile.c: Likewise.
6534         * mkmap-flat.awk: Likewise.
6535         * mkmap-symver.awk: Likewise.
6536         * modulo-sched.c: Likewise.
6537         * omp-low.c: Likewise.
6538         * optabs.c: Likewise.
6539         * optabs.h: Likewise.
6540         * opts.c: Likewise.
6541         * passes.c: Likewise.
6542         * postreload-gcse.c: Likewise.
6543         * postreload.c: Likewise.
6544         * predict.c: Likewise.
6545         * pretty-print.h: Likewise.
6546         * profile.c: Likewise.
6547         * protoize.c: Likewise.
6548         * ra-conflict.c: Likewise.
6549         * real.c: Likewise.
6550         * recog.c: Likewise.
6551         * regclass.c: Likewise.
6552         * regs.h: Likewise.
6553         * reload.c: Likewise.
6554         * rtl-error.c: Likewise.
6555         * rtlanal.c: Likewise.
6556         * scan.h: Likewise.
6557         * sched-rgn.c: Likewise.
6558         * see.c: Likewise.
6559         * stmt.c: Likewise.
6560         * target.h: Likewise.
6561         * tree-dfa.c: Likewise.
6562         * tree-eh.c: Likewise.
6563         * tree-flow-inline.h: Likewise.
6564         * tree-inline.c: Likewise.
6565         * tree-into-ssa.c: Likewise.
6566         * tree-loop-distribution.c: Likewise.
6567         * tree-nested.c: Likewise.
6568         * tree-parloops.c: Likewise.
6569         * tree-pass.h: Likewise.
6570         * tree-pretty-print.c: Likewise.
6571         * tree-profile.c: Likewise.
6572         * tree-scalar-evolution.c: Likewise.
6573         * tree-sra.c: Likewise.
6574         * tree-ssa-alias-warnings.c: Likewise.
6575         * tree-ssa-ccp.c: Likewise.
6576         * tree-ssa-coalesce.c: Likewise.
6577         * tree-ssa-dom.c: Likewise.
6578         * tree-ssa-dse.c: Likewise.
6579         * tree-ssa-forwprop.c: Likewise.
6580         * tree-ssa-live.c: Likewise.
6581         * tree-ssa-live.h: Likewise.
6582         * tree-ssa-loop-im.c: Likewise.
6583         * tree-ssa-loop-ivopts.c: Likewise.
6584         * tree-ssa-loop-niter.c: Likewise.
6585         * tree-ssa-loop-prefetch.c: Likewise.
6586         * tree-ssa-phiopt.c: Likewise.
6587         * tree-ssa-phiprop.c: Likewise.
6588         * tree-ssa-sccvn.c: Likewise.
6589         * tree-ssa-ter.c: Likewise.
6590         * tree-ssa-threadupdate.c: Likewise.
6591         * tree-ssa.c: Likewise.
6592         * tree-vect-analyze.c: Likewise.
6593         * tree-vect-transform.c: Likewise.
6594         * tree-vectorizer.c: Likewise.
6595         * tree-vn.c: Likewise.
6596         * tree-vrp.c: Likewise.
6597         * tree.c: Likewise.
6598         * tree.def: Likewise.
6599         * tree.h: Likewise.
6600         * unwind-dw2-fde.c: Likewise.
6601         * unwind.inc: Likewise.
6602         * value-prof.c: Likewise.
6603         * vmsdbgout.c: Likewise.
6604
6605 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
6606
6607         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
6608         always place FP constants in the TOC for TARGET_POWERPC64.
6609         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
6610
6611 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
6612
6613         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
6614         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
6615         enable for TARGET_E500_DOUBLE.
6616         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
6617         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
6618         floating-point modes like integer modes for E500 double.
6619         (rs6000_legitimate_offset_address_p): Likewise.
6620         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
6621         addressing for DDmode for E500 double.
6622         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
6623         modes as using 64-bits of registers for E500 double.
6624         (spe_build_register_parallel): Do not handle DDmode or TDmode.
6625         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
6626         specially for E500 double.
6627         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
6628         TDmode for E500 double.
6629         (rs6000_gimplify_va_arg): Only handle SDmode in registers
6630         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
6631         (rs6000_split_multireg_move): Do not handle TDmode specially for
6632         E500 double.
6633         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
6634         using 64-bit registers for E500 double.
6635         (emit_frame_save): Do not handle DDmode specially for E500 double.
6636         (gen_frame_mem_offset): Likewise.
6637         (rs6000_function_value): Do not call spe_build_register_parallel
6638         for DDmode or TDmode.
6639         (rs6000_libcall_value): Likewise.
6640         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
6641         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
6642         for E500 double.
6643
6644 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6645
6646         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
6647         in comments.
6648
6649 2008-06-04  Junjie Gu <jgu@tensilica.com>
6650
6651         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
6652         comparison for frame pointers.
6653
6654 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
6655
6656         PR target/27386
6657         * config/avr/avr.h (PUSH_ROUNDING): Remove.
6658
6659 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
6660
6661         PR target/30243
6662         * builtins.c (expand_builtin_signbit): Don't take lowpart when
6663         register is already smaller or equal to required mode.
6664
6665 2008-06-04  Xinliang David Li  <davidxl@google.com>
6666
6667         * tree-call-cdce.c: New file.
6668         (cond_dead_built_in_calls): New static variable.
6669         (input_domain): New struct.
6670         (check_pow): New function.
6671         (check_builtin_call): Ditto.
6672         (check_target_format): Ditto.
6673         (is_call_dce_candidate): Ditto.
6674         (gen_one_condition): Ditto.
6675         (gen_conditions_for_domain): Ditto.
6676         (get_domain): Ditto.
6677         (gen_conditions_for_pow_cst_base): Ditto.
6678         (gen_conditions_for_pow_int_base): Ditto.
6679         (gen_conditions_for_pow): Ditto.
6680         (get_no_error_domain): Ditto.
6681         (gen_shrink_wrap_conditions): Ditto.
6682         (shrink_wrap_one_built_in_call): Ditto.
6683         (shink_wrap_conditional_dead_built_in_calls): Ditto.
6684         (tree_call_cdce): Ditto.
6685         (gate_call_cdce): Ditto.
6686         (pass_call_cdce): New gimple pass.
6687         * passes.c: (init_optimization_passes): New pass.
6688         * tree-pass.h: New pass declaration.
6689         * opts.c (decode_options): New flag setting.
6690         * common.opt: Add -ftree-builtin-call-dce flag.
6691         * Makefile.in: Add new source file.
6692         * tempvar.def: New tv_id.
6693         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
6694
6695 2008-06-04  Richard Guenther  <rguenther@suse.de>
6696
6697         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
6698         (is_call_clobbered): Always check var_ann->call_clobbered.
6699         (mark_call_clobbered): Always set var_ann->call_clobbered.
6700         (clear_call_clobbered): Always clear var_ann->call_clobbered.
6701         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
6702         (reset_alias_info): Clear call clobbering info on MTAGs and
6703         globals as well.
6704         (set_pt_anything): Set pt_global_mem.
6705         (create_tag_raw): Adjust comment.
6706         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
6707
6708 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
6709             Maxim Kuvyrkov  <maxim@codesourcery.com>
6710
6711         * config/m68k/m68k.opt (mxgot): New option.
6712         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
6713         (m68k_output_addr_const_extra): New.
6714         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
6715         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
6716         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
6717         * doc/invoke.texi (M680x0 Options): Document -mxgot.
6718
6719 2008-06-04  Richard Guenther  <rguenther@suse.de>
6720
6721         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
6722         negative or non-representable offsets.
6723
6724 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
6725
6726         * config/i386/i386.c (ix86_gen_leave): New.
6727         (ix86_gen_pop1): Likewise.
6728         (ix86_gen_add3): Likewise.
6729         (ix86_gen_sub3): Likewise.
6730         (ix86_gen_sub3_carry): Likewise.
6731         (ix86_gen_one_cmpl2): Likewise.
6732         (ix86_gen_monitor): Likewise.
6733         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
6734         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
6735         ix86_gen_one_cmpl2 and ix86_gen_monitor.
6736         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
6737         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
6738         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
6739         (ix86_expand_epilogue): Updated.
6740         (print_operand): Handle integer register operand for 'z'.
6741         (ix86_expand_strlensi_unroll_1): Likewise.
6742         (ix86_expand_strlen): Likewise.
6743         (ix86_expand_builtin): Likewise.
6744         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
6745         mov{q}/mov{l} and add{q}/add{l}.
6746
6747 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
6748
6749         * config/i386/i386.md (P): New mode iterator.
6750         (SFmode push_operand splitter): Macroize DImode and SImode pushes
6751         using P mode iterator.
6752         (DFmode push_operand splitter): Ditto.
6753         (XFmode push_operand splitter): Ditto.
6754         (DFmode float_extend SFmode push_operand splitter): Ditto.
6755         (XFmode float_extend SFmode push_operand splitter): Do not generate
6756         SImode pushes for 64bit target.  Macroize Dimode and SImode
6757         pushes using P mode iterator.
6758         (XFmode float_extend DFmode push_operand splitter): Ditto.
6759
6760 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
6761
6762         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
6763         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
6764         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
6765         return type to int.
6766         (ix86_call_abi_override): Remove check for call_used_regs.
6767
6768 2008-06-03  Richard Guenther  <rguenther@suse.de>
6769
6770         * tree-ssa-structalias.c (find_func_aliases): Add constraints
6771         for the lhs of calls if the return type contains pointers.
6772
6773 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
6774
6775         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
6776         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
6777         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
6778         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
6779         of cfun and DEFAULT_ABI to deceide abi mode.
6780         (DEFAULT_ABI): New.
6781         (REG_PARM_STACK_SPACE): Removed.
6782         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
6783         (STACK_BOUNDARY): Use default target to deceide stack boundary.
6784         * config/i386/i386-protos.h (ix86_cfun_abi): New.
6785         (ix86_function_abi): Likewise.
6786         (ix86_function_type_abi): Likewise.
6787         (ix86_call_abi_override): Likewise.
6788         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
6789         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
6790         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
6791         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
6792         specific defines.
6793         (X86_64_REGPARM_MAX): New.
6794         (X86_64_SSE_REGPARM_MAX): New.
6795         (X64_REGPARM_MAX): New.
6796         (X64_SSE_REGPARM_MAX): New.
6797         (X86_32_REGPARM_MAX): New.
6798         (X86_32_SSE_REGPARM_MAX): New.
6799         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
6800         (ix86_function_regparm): Handle user calling abi.
6801         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
6802         by DEFAULT_ABI versus SYSV_ABI check.
6803         (ix86_reg_parm_stack_space): New.
6804         (ix86_function_type_abi): New.
6805         (ix86_call_abi_override): New.
6806         (ix86_function_abi): New.
6807         (ix86_cfun_abi): New.
6808         (init_cumulative_args): Call abi specific initialization.
6809         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
6810         (function_arg_64): Extend SSE_REGPARM_MAX check.
6811         (function_arg (): Remove TARGET_64BIT_MS_ABI.
6812         (ix86_pass_by_reference): Likewise.
6813         (ix86_function_value_regno_p): Likewise.
6814         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
6815         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
6816         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
6817         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
6818         (setup_incoming_varargs_64): Adjust regparm for call abi.
6819         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
6820         (ix86_va_start): Likewise.
6821         (ix86_gimplify_va_arg): Likewise.
6822         (ix86_expand_prologue): Likewise.
6823         (output_pic_addr_const): Likewise.
6824         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
6825         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
6826         (x86_output_mi_thunk): Likewise.
6827         (x86_function_profiler): Likewise.
6828         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
6829         (SYSV_ABI, MS_ABI): New constants.
6830         (DEFAULT_ABI): New.
6831         (init_regs): Add prototype of function in regclass.c file.
6832         (OVERRIDE_ABI_FORMAT): New.
6833         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
6834         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
6835         (OUTGOING_REG_PARM_STACK_SPACE): New.
6836         (ix86_reg_parm_stack_space): New prototype.
6837         (CUMULATIVE_ARGS): Add call_abi member.
6838         (machine_function): Add call_abi member.
6839         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
6840         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
6841
6842 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
6843
6844         PR target/34879
6845         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
6846         (avr_builtin_setjmp_frame_value): New function.
6847         * config/avr/avr.md (nonlocal_goto_receiver): Define.
6848         (nonlocal_goto): Define.
6849
6850 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
6851
6852         * config/mips/mips.c (mips_emit_loadgp): Return early if
6853         there is nothing do to, otherwise emit a blockage if
6854         !TARGET_EXPLICIT_RELOCS || crtl->profile.
6855         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
6856
6857 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6858
6859         * configure.ac: Drop unneeded backslash ending up in config.in.
6860         * acinclude.m4: Likewise.
6861         * config.in: Regenerate.
6862
6863 2008-05-26  Jan Hubicka  <jh@suse.cz>
6864
6865         * predict.c (maybe_hot_frequency_p): Break out of...
6866         (maybe_hot_bb_p): ... here.
6867         (maybe_hot_edge_p): New.
6868         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
6869         * basic-block.h (maybe_hot_edge_p): Declare.
6870
6871 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
6872
6873         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
6874         (*cmpfp_<mode>_cc): Ditto.
6875         (*fp_jcc_8<mode>_387): Ditto.
6876         (*fop_<MODEF:mode>_2_i387): Ditto.
6877         (*fop_<MODEF:mode>_3_i387): Ditto.
6878         (*fop_xf_2_i387): Ditto.
6879         (*fop_xf_3_i387): Ditto.
6880
6881 2008-06-02  Tomas Bily  <tbily@suse.cz>
6882
6883         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
6884
6885 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6886
6887         * config/mips/mips.c (mips_valid_offset_p): New function.
6888         (mips_valid_lo_sum_p): Likewise.
6889         (mips_classify_address): Use them.
6890         (mips_force_address): New function.
6891         (mips_legitimize_address): Use it.
6892         * config/mips/mips.md (MOVE128): New mode iterator.
6893         (movtf): Require TARGET_64BIT.  Remove empty strings.
6894         (*movtf_internal): Rename to...
6895         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
6896         of "R" and use {,fp}{load,store} attributes instead of "multi".
6897         Use a separate define_split.
6898         (*movtf_mips16): New pattern.
6899
6900 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6901
6902         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
6903         * config/mips/mips.c (mips_expand_before_return): New function.
6904         (mips_expand_epilogue): Call it.
6905         * config/mips/mips.md (return): Turn into a define_expand.
6906         (*return): New insn.
6907
6908 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6909
6910         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
6911         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
6912         functions.  Do not emit uses and clobbers of CONCATs; individually
6913         use and clobber their operands.
6914         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
6915         gen_clobber, emit_use and gen_use.
6916         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
6917         (expand_builtin_return): Likewise.
6918         * cfgbuild.c (count_basic_blocks): Likewise.
6919         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6920         * explow.c (emit_stack_restore): Likewise.
6921         * expmed.c (extract_bit_field_1): Likewise.
6922         * expr.c (convert_move, emit_move_complex_parts): Likewise.
6923         (emit_move_multi_word, store_constructor): Likewise.
6924         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
6925         (thread_prologue_and_epilogue_insns): Likewise.
6926         * lower-subreg.c (resolve_simple_move): Likewise.
6927         * optabs.c (widen_operand, expand_binop): Likewise.
6928         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
6929         * reload.c (find_reloads): Likewise.
6930         * reload1.c (eliminate_regs_in_insn): Likewise.
6931         * stmt.c (expand_nl_goto_receiver): Likewise.
6932         * config/alpha/alpha.md (builtin_longjmp): Likewise.
6933         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
6934         * config/arm/arm.c (arm_load_pic_register): Likewise.
6935         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
6936         * config/arm/arm.md (untyped_return): Likewise.
6937         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
6938         * config/avr/avr.c (expand_prologue): Likewise.
6939         * config/bfin/bfin.c (do_unlink): Likewise.
6940         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
6941         * config/cris/cris.c (cris_expand_prologue): Likewise.
6942         * config/darwin.c (machopic_indirect_data_reference): Likewise.
6943         (machopic_legitimize_pic_address): Likewise.
6944         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
6945         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
6946         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
6947         (ix86_expand_convert_uns_didf_sse): Likewise.
6948         (ix86_expand_vector_init_general): Likewise.
6949         * config/ia64/ia64.md (eh_epilogue): Likewise.
6950         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
6951         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
6952         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
6953         (config/iq2000/iq2000.c): Likewise.
6954         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
6955         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6956         (builtin_longjmp): Likewise.
6957         * config/mn10300/mn10300.md (call, call_value): Likewise.
6958         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
6959         * config/pdp11/pdp11.md (abshi2): Likewise.
6960         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
6961         * config/s390/s390.c (s390_emit_prologue): Likewise.
6962         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
6963         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
6964         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
6965         * config/sh/sh.c (prepare_move_operands): Likewise.
6966         (output_stack_adjust, sh_expand_epilogue): Likewise.
6967         (sh_set_return_address, sh_expand_t_scc): Likewise.
6968         * config/sparc/sparc.c (load_pic_register): Likewise.
6969         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
6970         * config/spu/spu.c (spu_expand_epilogue): Likewise.
6971         * config/v850/v850.c (expand_epilogue): Likewise.
6972
6973 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
6974
6975         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
6976         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
6977         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
6978         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
6979         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
6980         stack pointer register.
6981         (output_movhi): Remove code for interrupt specific writing to the
6982         stack pointer register.
6983
6984 2008-05-31  Richard Guenther  <rguenther@suse.de>
6985
6986         PR tree-optimization/34244
6987         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
6988         (tree_expr_nonzero_warnv_p): Likewise.
6989         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
6990         ssa_name_nonnegative_p.
6991         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
6992         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
6993         not tree_expr_nonzero_warnv_p.
6994
6995         PR tree-optimization/36262
6996         Revert
6997         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
6998
6999         PR tree-optimization/34244
7000         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
7001         (record_numbers_of_iterations): New function.
7002         (execute_vrp): Cache the numbers of iterations of loops.
7003         * tree-scalar-evolution.c (scev_reset_except_niters):
7004         New function.
7005         (scev_reset): Use scev_reset_except_niters.
7006         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
7007
7008 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
7009
7010         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
7011         __WORKAROUND_RETS when appropriate.
7012
7013 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
7014
7015         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
7016         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
7017         mode iterator.
7018         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
7019         *fop_df_comm_sse insn patterns using MODEF mode iterator.
7020         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
7021         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
7022         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
7023         *fop_df_1_mixed insn patterns using MODEF mode iterator.
7024         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
7025         *fop_df_1_sse insn patterns using MODEF mode iterator.
7026         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
7027         *fop_df_1_i387 insn patterns using MODEF mode iterator.
7028         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
7029         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
7030         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
7031         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
7032         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
7033         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
7034         (*fop_xf_4_i387): Use <MODE> for mode attribute.
7035         (*fop_xf_5_i387): Ditto.
7036         (*fop_xf_6_i387): Ditto.
7037
7038 2008-05-30  Richard Guenther  <rguenther@suse.de>
7039
7040         * builtins.c (build_string_literal): Avoid generating
7041         a non-gimple_val result.
7042
7043 2008-05-30  DJ Delorie  <dj@redhat.com>
7044
7045         * exec-tool.in: Use an environment variable (private) instead of a
7046         file (shared) as a semaphore, so as to not break parallel builds.
7047
7048 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
7049
7050         * optabs.c (maybe_encapsulate_block): Remove.
7051         (emit_libcall_block): Adjust accordingly.
7052         * optabs.h (maybe_encapsulate_block): Remove prototype.
7053
7054         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
7055         Don't use maybe_encapsulate_block.
7056
7057 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
7058
7059         * config/rs6000/rs6000.c (rs6000_legitimize_address,
7060         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
7061         rtx is a SYMBOL_REF before calling get_pool_constant.
7062
7063 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
7064
7065         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
7066
7067 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
7068
7069         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
7070         rather than OS names to choose INO_T_EQ definition.
7071         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
7072         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
7073
7074 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
7075
7076         PR target/36348
7077         * config/darwin-f.c: New.
7078         * config/t-darwin: Added rule to build darwin-f.o.
7079         * config.gcc: Defined new variable, fortran_target_objs.
7080         (*-*-darwin*): Set fortran_target_objs.
7081         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
7082         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
7083         * configure: Regenerated.
7084
7085 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
7086
7087         PR target/35771
7088         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
7089         canonical type if needed.
7090
7091 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
7092
7093         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
7094
7095 2008-05-29  Richard Guenther  <rguenther@suse.de>
7096
7097         PR tree-optimization/36343
7098         PR tree-optimization/36346
7099         PR tree-optimization/36347
7100         * tree-flow.h (clobber_what_p_points_to): Declare.
7101         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
7102         pointed-to variable is dereferenced is irrelevant to whether
7103         the pointer can access the pointed-to variable.
7104         (clobber_what_p_points_to): New function.
7105         * tree-ssa-alias.c (set_initial_properties): Use it.
7106         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
7107         call clobber check for NMTs.
7108
7109 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
7110
7111         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
7112         for printing gcov_type.
7113
7114 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
7115
7116         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
7117         and the eh region information.
7118         * value-prof.c (gimple_move_stmt_histograms): New function.
7119         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
7120
7121 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
7122
7123         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
7124
7125 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
7126
7127         * value-prof.c (tree_ic_transform): Print counts.
7128         * tree-profile.c (tree_gen_ic_func_profiler):
7129         Clear __gcov_indreict_call_callee variable to avoid misattribution
7130         of the profile.
7131
7132 2008-05-28  Rafael Espindola  <espindola@google.com>
7133
7134         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
7135         invalid sharing.
7136
7137 2008-05-28  Richard Guenther  <rguenther@suse.de>
7138
7139         PR tree-optimization/36339
7140         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
7141         and clobbering code out of the loop.
7142
7143 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
7144
7145         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
7146         letters defined.
7147
7148         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
7149         s390_contiguous_bitmask_p, s390_symref_operand_p,
7150         s390_check_symref_alignment, s390_reload_larl_operand,
7151         s390_reload_symref_address): New functions.
7152         (s390_branch_condition_mnemonic): Support compare and branch
7153         instructions.
7154         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
7155         and 'W' constraints.
7156         (s390_secondary_reload): Add secondary reloads for unaligned
7157         symbol refs or symbol refs to floating point or QI/TI mode
7158         integer values.
7159         (legitimate_address_p): Accept symbol references as addresses.
7160         (s390_expand_insv): Use rotate and insert selected bits
7161         instruction for insv when building for z10.
7162         (print_operand_address): Handle symbol ref addresses.
7163         (print_operand): Output modifier 'c' added for signed byte values.
7164         (s390_encode_section_info): Mark symbol refs with
7165         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
7166
7167         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
7168         (length attribute): RRF, RRR have 4 byte length.
7169         (FPALL, INTALL): New mode iterators added.
7170         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
7171         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
7172         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
7173         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
7174         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
7175         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
7176         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
7177         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
7178         instructions.
7179         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
7180         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
7181         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
7182         reload<INTALL:mode><P:mode>_toreg_z10,
7183         reload<FPALL:mode><P:mode>_tomem_z10,
7184         reload<FPALL:mode><P:mode>_toreg_z10,
7185         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
7186         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
7187         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
7188         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
7189         definition.
7190         (movmem, clrmem, cmpmem): New splitters added.
7191
7192         * config/s390/predicates.md (larl_operand): Use
7193         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
7194         SYMBOL_REF_ALIGN1_P.
7195         (s390_signed_integer_comparison,
7196         s390_unsigned_integer_comparison): New predicates.
7197
7198         * config/s390/s390-protos.h (s390_check_symref_alignment,
7199         s390_contiguous_bitmask_p, s390_reload_larl_operand,
7200         s390_reload_symref_address,
7201         s390_compare_and_branch_condition_mask): Prototypes added.
7202
7203         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
7204         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
7205         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
7206
7207 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
7208
7209         * config/s390/s390.c (z10_cost): New cost function for z10.
7210         (s390_handle_arch_option, override_options): Support -march=z10 switch.
7211         (s390_issue_rate): Adjust issue rate for z10.
7212         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
7213         (processor_flags): Add PF_Z10.
7214         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
7215         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
7216         * gcc/config.gcc: Add z10.
7217
7218 2008-05-28  Richard Guenther  <rguenther@suse.de>
7219
7220         PR tree-optimization/36291
7221         * tree-flow. h (struct gimple_df): Remove var_anns member.
7222         * tree-flow-inline.h (gimple_var_anns): Remove.
7223         (var_ann): Simplify.
7224         * tree-dfa.c (create_var_ann): Simplify.
7225         (remove_referenced_var): Clear alias info from var_anns of globals.
7226         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
7227         (delete_tree_ssa): Clear alias info from var_anns of globals.
7228         Do not free var_anns.
7229         (var_ann_eq): Remove.
7230         (var_ann_hash): Likewise.
7231
7232 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
7233
7234         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
7235         and loongson2f entries.
7236         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
7237         * config/mips/mips.h (processor_type): Add Loongson-2E
7238         and Loongson-2F entries.
7239         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
7240         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
7241         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
7242         * doc/invoke.texi (MIPS Options): Document loongson2e
7243         and loongson2f processor names.
7244
7245 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
7246
7247         PR target/35767
7248         PR target/35771
7249         * config/i386/i386.c (ix86_function_arg_boundary): Use
7250         alignment of canonical type.
7251         (ix86_expand_vector_move): Check unaligned memory access for
7252         all SSE modes.
7253
7254 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
7255
7256         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
7257         Moved to the front of file.
7258
7259 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
7260             H.J. Lu  <hongjiu.lu@intel.com>
7261
7262         * dwarf2out.c (current_fde): New.
7263         (add_cfi): Use it.
7264         (lookup_cfa:): Likewise.
7265         (dwarf2out_end_epilogue): Likewise.
7266         (dwarf2out_note_section_used): Likewise.
7267
7268 2008-05-27  Michael Matz  <matz@suse.de>
7269
7270         PR c++/27975
7271         * c.opt (Wenum-compare): New warning option.
7272         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
7273
7274 2008-05-27  Michael Matz  <matz@suse.de>
7275
7276         PR middle-end/36326
7277         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
7278         non-BLKmode types.
7279         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
7280         into memory as tail calls.
7281
7282 2008-05-27  Richard Guenther  <rguenther@suse.de>
7283
7284         PR tree-optimization/36339
7285         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
7286         pointers cause all addressable variables to be call clobbered.
7287
7288 2008-05-27  Richard Guenther  <rguenther@suse.de>
7289
7290         PR tree-optimization/36245
7291         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
7292
7293 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
7294
7295         * config/s390/s390.md: Replace all occurences of the 'm'
7296         constraint with 'RT'.
7297
7298 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
7299
7300         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
7301         definitions added.
7302         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
7303         "*movdi_64".
7304         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
7305         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
7306         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
7307
7308 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
7309
7310         * reload.c: (find_reloads): Skip alternatives according to the
7311         "enabled" attribute. Constify the constraint variable.
7312         * recog.c (get_attr_enabled): Add default implementation.
7313         (extract_insn): Set the alternative_enabled_p array
7314         in the recog_data struct.
7315         (preprocess_constraints, constrain_operands): Skip
7316         alternatives according to the "enabled" attribute
7317         * recog.h (struct recog_data): New field alternative_enabled_p.
7318         (skip_alternative): New inline function.
7319         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
7320         (record_reg_classes): Skip alternative according to the
7321         "enabled" attribute.
7322
7323         * doc/md.texi: Add documention for the "enabled" attribute.
7324
7325 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
7326
7327         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
7328         * postreload.c (reload_cse_simplify_operands): Replace 'm'
7329         constraint with TARGET_MEM_CONSTRAINT.
7330         * recog.c (asm_operand_ok, preprocess_constraints,
7331         constrain_operands): Likewise.
7332         * regclass.c (record_reg_classes): Likewise.
7333         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
7334         * reload1.c (maybe_fix_stack_asms): Likewise.
7335         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
7336         * recog.h: Adjust comment.
7337         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
7338         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
7339         * doc/md.texi: Add a note to description of 'm' constraint.
7340         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
7341
7342 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
7343
7344         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
7345         that the bitfield is of integral type before testing its precision.
7346
7347 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
7348             Sa Liu  <saliu@de.ibm.com>
7349
7350         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
7351         __modti3, __udivti3, __umodti3 and __udivmodti4.
7352         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
7353         that implement TImode mul and div functions.
7354         * config/spu/multi3.c: New. Implement __multi3.
7355         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
7356         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
7357         functions on SPU.
7358
7359 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
7360
7361         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
7362         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
7363         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
7364         tls_sysv_suffix): New mode and mode attribute iterators.
7365         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
7366         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
7367         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
7368         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
7369         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
7370         iterators.
7371
7372 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
7373
7374         PR tree-optimization/36329
7375         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
7376         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
7377         * cgraphbuild.c (initialize_inline_failed): Use the latter
7378         macro in lieu of the former.
7379         * ipa-inline.c (cgraph_mark_inline): Likewise.
7380         (cgraph_decide_inlining_of_small_function): Likewise.
7381         (cgraph_decide_inlining): Likewise.
7382         (cgraph_decide_inlining_incrementally): Likewise.
7383
7384 2008-05-26  Tristan Gingold  <gingold@adacore.com>
7385             Anatoly Sokolov  <aesok@post.ru>
7386
7387         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
7388         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
7389         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
7390         optimization for 'avr6' architecture.
7391
7392 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
7393
7394         PR target/34932
7395         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
7396
7397 2008-05-26  Richard Guenther  <rguenther@suse.de>
7398
7399         * tree-ssa-sccvn.c (expr_has_constants): Declare.
7400         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
7401
7402 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
7403
7404         PR middle-end/36253
7405         * caller-save.c (insert_restore): Verify alignment of spill space.
7406         (insert_save): Likewise.
7407         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
7408         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
7409         (STACK_SLOT_ALIGNMENT): Likewise.
7410         * function.c (LOCAL_ALIGNMENT): Removed.
7411         (get_stack_local_alignment): New.
7412         (assign_stack_local): Use it.  Set alignment on stack slot.
7413         (assign_stack_temp_for_type): Use get_stack_local_alignment.
7414         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
7415         (STACK_SLOT_ALIGNMENT): New.
7416         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
7417         stack slot in XFmode.
7418
7419         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
7420
7421 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
7422
7423         PR/36321
7424         * config/i386/i386.md (allocate_stack_worker_64): Make sure
7425         argument operand in rax isn't removed.
7426
7427 2008-05-26  Richard Guenther  <rguenther@suse.de>
7428
7429         PR middle-end/36300
7430         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
7431         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
7432
7433 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
7434
7435         PR bootstrap/36331
7436         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
7437
7438 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
7439
7440         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
7441         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
7442
7443 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
7444
7445         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
7446         build a trampoline if we don't want one.
7447         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
7448         return zero for nested functions if we don't want a trampoline.
7449
7450 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
7451
7452         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
7453
7454 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
7455
7456         PR fortran/18428
7457         * c.opt: Removed undocumented option '-lang-fortran'.
7458         * c-common.h: Removed global variable 'lang_fortran'.
7459         * c-opts.c (c_common_handle_option): Removed code to handle
7460         option '-lang-fortran'. Updated includes.
7461         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
7462         definition of '__GFORTRAN__'.
7463         (define__GNUC__): Reimplemented to use BASEVER and
7464         cpp_define_formatted.
7465         (builtin_define_with_value_n): Removed.
7466         * c-incpath.h: Renamed to ...
7467         * incpath.h: ... this.
7468         * c-incpath.c: Renamed to ...
7469         * incpath.c: ... this. Updated includes.
7470         * fix-header.c: Updated includes.
7471         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
7472         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
7473         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
7474
7475 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
7476
7477         * tree.h: Update the table of flags used on tree nodes.
7478         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
7479         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
7480         (FORCED_LABEL): Add access check.
7481         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
7482         (ASM_INPUT_P): Likewise.
7483         (ASM_VOLATILE_P): Likewise.
7484         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
7485         (OMP_SECTION_LAST): Access private_flag directly.
7486         (OMP_RETURN_NOWAIT): Likewise.
7487         (OMP_PARALLEL_COMBINED): Likewise.
7488         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
7489         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
7490         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
7491         deprecated_flag directly.
7492
7493 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
7494
7495         * final.c (frame_pointer_needed): Removed.
7496         * flags.h (frame_pointer_needed): Likewise.
7497
7498         * function.h (rtl_data): Add frame_pointer_needed.
7499         (frame_pointer_needed): New.
7500
7501 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
7502
7503         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
7504
7505 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
7506
7507         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
7508         SRC is a REG.
7509
7510 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
7511
7512         * c-common.c (strip_array_types): Move function to..
7513         * tree.c: ..here.
7514         (get_inner_array_type): Delete.
7515         * c-common.h (strip_array_types): Move declaration to..
7516         * tree.h: ..here.
7517         (get_inner_array_type): Delete.
7518         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
7519         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
7520         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
7521         * config/pa/pa.c (emit_move_sequence): Likewise.
7522
7523 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7524
7525         * config/i386/i386.md (*sse_prologue_save_insn): Set length
7526         attribute to 34.
7527
7528 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
7529
7530         * function.c: Include target hook for nonlocal_goto frame value.
7531
7532 2008-05-24  Richard Guenther  <rguenther@suse.de>
7533
7534         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
7535         variable can be only accessed through a pointer or a union.
7536
7537 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7538
7539         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
7540         * doc/extend.texi: Likewise.
7541
7542 2008-05-23  DJ Delorie  <dj@redhat.com>
7543
7544         * config/m32c/jump.md (untyped_call): Add.
7545
7546         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
7547         for A24 to PSImode.
7548         (m32c_address_cost): Detail costs for indirect offsets.
7549
7550 2008-05-23  Rafael Espindola  <espindola@google.com>
7551
7552         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
7553         if a node is a SUBREG.
7554         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
7555         is a SUBREG.
7556
7557 2008-05-23  Paul Brook  <paul@codesourcery.com>
7558             Carlos O'Donell  <carlos@codesourcery.com>
7559
7560         * doc/extend.texi: Clarify use of __attribute__((naked)).
7561         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
7562         * target.h (gcc_target): Add allocate_stack_slots_for_args.
7563         * function.c (use_register_for_decl): Use
7564         targetm.calls.allocate_stack_slots_for_args.
7565         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
7566         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
7567         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
7568
7569 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
7570
7571         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
7572
7573 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
7574
7575         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
7576         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
7577         is only rounded once.
7578
7579 2008-05-23  Richard Guenther  <rguenther@suse.de>
7580
7581         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
7582
7583 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
7584             Jakub Jelinek  <jakub@redhat.com>
7585
7586         PR target/36079
7587         * configure.ac: Handle --enable-cld.
7588         * configure: Regenerated.
7589         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
7590         * config/i386/i386.h (struct machine_function): Add needs_cld field.
7591         (ix86_current_function_needs_cld): New define.
7592         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
7593         (cld): New isns pattern.
7594         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
7595         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
7596         * config/i386/i386.opt (mcld): New option.
7597         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
7598         TARGET_CLD and ix86_current_function_needs_cld.
7599         (override_options): Use -mcld by default for 32-bit code if
7600         USE_IX86_CLD.
7601
7602         * doc/install.texi (Options specification): Document --enable-cld.
7603         * doc/invoke.texi (Machine Dependent Options)
7604         [i386 and x86-64 Options]: Add -mcld option.
7605         (Intel 386 and AMD x86-64 Options): Document -mcld option.
7606
7607 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
7608         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
7609         (return_in_memory_64): Likewise.
7610         (return_in_memory_ms_64): Likewise.
7611
7612 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7613
7614         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
7615         * builtins.c (fold_builtin_fpclassify): New.
7616         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
7617         * builtins.def (BUILT_IN_FPCLASSIFY): New.
7618         * c-common.c (handle_type_generic_attribute): Adjust to accept
7619         fixed arguments before an elipsis.
7620         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
7621         * doc/extend.texi: Document __builtin_fpclassify.
7622
7623 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
7624
7625         * omp-low.c (gate_expand_omp_ssa): Remove.
7626         (pass_expand_omp_ssa): Remove.
7627         (gate_expand_omp): Do not check for flag_openmp_ssa.
7628         * common.opt (-fopenmp-ssa): Remove.
7629         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
7630
7631 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
7632
7633         * config/sh/sh.opt (mfixed-range): New option.
7634         * config/sh/sh-protos.h (sh_fix_range): Declare.
7635         * config/sh/sh.c (sh_fix_range): New function.
7636         * config/sh/sh.h (sh_fixed_range_str): Declare.
7637         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
7638         is not empty.
7639         * doc/invoke.texi (SH Options): Document -mfixed-range.
7640
7641 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
7642
7643         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
7644         it before the redeclaration.
7645
7646 2008-05-22  Anatoly Sokolov <aesok@post.ru>
7647
7648         * config/avr/avr.c (get_sequence_length): Add new function.
7649         (expand_prologue, expand_epilogue): Remove duplicate code.
7650
7651 2008-05-22  Rafael Espindola  <espindola@google.com>
7652
7653         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
7654         sharing.
7655
7656 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7657
7658         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
7659         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
7660
7661         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
7662         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
7663         (vect_update_misalignment_for_peel): Likewise.
7664         (vector_alignment_reachable_p): Likewise.
7665         * tree-vect-transform.c (vectorizable_load): Likewise.
7666         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
7667         (get_vectype_for_scalar_type): Pass mode of scalar_type
7668         to UNITS_PER_SIMD_WORD.
7669
7670         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
7671         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
7672         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
7673         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
7674         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
7675
7676 2008-05-22  Ira Rosen  <irar@il.ibm.com>
7677
7678         PR tree-optimization/36293
7679         * tree-vect-transform.c (vect_transform_strided_load): Don't check
7680         if the first load must be skipped because of a gap.
7681
7682 2008-05-22  Richard Guenther  <rguenther@suse.de>
7683
7684         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
7685         more cases of offset disambiguation that is possible if
7686         strict-aliasing rules apply.
7687         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
7688         for basic offset and type-based disambiguation.
7689
7690 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7691
7692         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
7693         ix86_expand_vector_set on V16QImode for SSE4.1.
7694
7695 2008-05-21  Tom Tromey  <tromey@redhat.com>
7696
7697         * c.opt (Wimport): Mark as undocumented.
7698         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
7699         -Wno-import.
7700         (Warning Options): Likewise.
7701         * doc/cppopts.texi: Don't mention -Wimport.
7702
7703 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
7704
7705         PR tree-optimization/36287
7706         PR tree-optimization/36286
7707         * lambda-code.c (build_access_matrix): Do not use the loop->num
7708         for computing the number of induction variables: use the loop depth
7709         instead.
7710
7711 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
7712
7713         PR/36280
7714         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
7715         option -f(no-)leading-underscore.
7716
7717 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7718
7719         * config/i386/i386.c (ix86_expand_vector_init_general): Use
7720         GET_MODE_NUNITS (mode).
7721
7722 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
7723
7724         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
7725         (-mmulhw): Add 464 to description.
7726         (-mdlmzb): Likewise.
7727         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
7728         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
7729         464fp entries.
7730         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
7731         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
7732         * config/rs6000/rs6000.md: Update comments for 464.
7733
7734 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
7735
7736         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
7737
7738 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7739
7740         * config/i386/sse.md (vec_extractv4sf): Removed.
7741         (vec_extractv2df): Likewise.
7742         (vec_extractv2di): Likewise.
7743         (vec_extractv4si): Likewise.
7744         (vec_extractv8hi): Likewise.
7745         (vec_extractv16qi): Likewise.
7746         (vec_extract<mode>): New.
7747
7748 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7749
7750         * config/i386/sse.md (vec_setv4sf): Removed.
7751         (vec_setv2df): Likewise.
7752         (vec_setv2di): Likewise.
7753         (vec_setv4si): Likewise.
7754         (vec_setv8hi): Likewise.
7755         (vec_setv16qi): Likewise.
7756         (vec_set<mode>): New.
7757
7758 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7759
7760         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
7761         goto for vec_concat and vec_interleave.
7762
7763 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7764
7765         * config/i386/sse.md (vec_initv4sf): Removed.
7766         (vec_initv2df): Likewise.
7767         (vec_initv2di): Likewise.
7768         (vec_initv4si): Likewise.
7769         (vec_initv8hi): Likewise.
7770         (vec_initv16qi): Likewise.
7771         (vec_init<mode>): New.
7772
7773 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
7774
7775         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
7776
7777 2008-05-21  Tom Tromey  <tromey@redhat.com>
7778
7779         * ggc-zone.c (lookup_page_table_if_allocated): New function.
7780         (zone_find_object_offset): Likewise.
7781         (gt_ggc_m_S): Likewise.
7782         (highest_bit): Likewise.
7783         * ggc-page.c (gt_ggc_m_S): New function.
7784         * stringpool.c (string_stack): Remove.
7785         (init_stringpool): Update.
7786         (ggc_alloc_string): Use ggc_alloc.
7787         (maybe_delete_ident): New function.
7788         (ggc_purge_stringpool): Likewise.
7789         (gt_ggc_m_S): Remove.
7790         * ggc-common.c (ggc_protect_identifiers): New global.
7791         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
7792         ggc_protect_identifiers.
7793         * ggc.h (ggc_protect_identifiers): Declare.
7794         (gt_ggc_m_S): Update.
7795         (ggc_purge_stringpool): Declare.
7796         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
7797         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
7798         special case.
7799         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
7800
7801 2008-05-21  David S. Miller  <davem@davemloft.net>
7802
7803         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
7804         tmake_file.
7805
7806 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
7807
7808         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
7809         once finished.
7810
7811 2008-05-20  David Daney  <ddaney@avtrex.com>
7812
7813         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
7814         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
7815         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7816         UNSPEC_UPDATE_GOT_VERSION): Renumber.
7817         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
7818         (atomic_hiqi_op): New define_code_iterator.
7819         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
7820         mips_expand_compare_and_swap_12.
7821         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
7822         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
7823         (sync_<optab><mode>, sync_old_<optab><mode>,
7824         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
7825         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
7826         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
7827         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
7828         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
7829         (test_and_set_12): New insn.
7830         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
7831         sync_new_<optab><mode>, sync_old_nand<mode>,
7832         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
7833         clobber to operand 0 for SI and DI mode insns.
7834         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
7835         mips_gen_fn_4): New typedefs.
7836         (mips_gen_fn_ptrs): Define new union type.
7837         (mips_expand_compare_and_swap_12): Remove declaration.
7838         (mips_expand_atomic_qihi): Declare function.
7839         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
7840         (mips_expand_atomic_qihi): ... this.  Use new generator function
7841         parameter.
7842         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
7843         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
7844         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
7845         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
7846         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
7847         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
7848         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
7849         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
7850         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
7851         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
7852         New macros.
7853
7854 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
7855
7856         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
7857         the missing break.
7858
7859 2008-05-20  Anatoly Sokolov <aesok@post.ru>
7860
7861         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
7862         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
7863         (avr_attribute_table): Add 'OS_main' function attribute.
7864         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
7865         functions with 'OS_main' attribute.
7866
7867 2008-05-20  Richard Guenther  <rguenther@suse.de>
7868
7869         PR tree-optimization/35204
7870         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
7871         helper, split out from ...
7872         (DFS): ... here.  Make the DFS walk non-recursive.
7873
7874 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
7875             Jan Sjodin  <jan.sjodin@amd.com>
7876
7877         PR tree-optimization/36181
7878         * tree-parloops.c (loop_has_vector_phi_nodes): New.
7879         (parallelize_loops): Don't parallelize when the loop has vector
7880         phi nodes.
7881
7882 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
7883             Sebastian Pop  <sebastian.pop@amd.com>
7884
7885         * tree-loop-linear.c (gather_interchange_stats): Look in the access
7886         matrix, and never look at the tree representation of the memory
7887         accesses.
7888         (linear_transform_loops): Computes parameters and access matrices.
7889         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
7890         when fails.
7891         (access_matrix_get_index_for_parameter): New.
7892         * tree-data-ref.h (struct access_matrix): New.
7893         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
7894         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
7895         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
7896         am_vector_index_for_loop): New.
7897         (struct data_reference): Add field access_matrix.
7898         (DR_ACCESS_MATRIX): New.
7899         (compute_data_dependences_for_loop): Update declaration.
7900         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
7901         * lambda.h (lambda_vector_vec_p): Declared.
7902         * lambda-code.c: Depend on pointer-set.h.
7903         (lambda_collect_parameters_from_af, lambda_collect_parameters,
7904         av_for_af_base, av_for_af, build_access_matrix,
7905         lambda_compute_access_matrices): New.
7906         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
7907
7908 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
7909
7910         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
7911         $SOURCEDIR/include.
7912
7913 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
7914             Sebastian Pop  <sebastian.pop@amd.com>
7915
7916         PR tree-optimization/36206
7917         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
7918         FOLD_CONVERSIONS.
7919         (instantiate_scev_1): Rename flags to fold_conversions.
7920         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
7921         outeside instantiation_loop.
7922         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
7923         (evolution_function_is_affine_or_constant_p): Removed.
7924         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
7925         instantiate_scev.
7926         (analyze_siv_subscript): Pass in the loop nest number.
7927         Call evolution_function_is_affine_in_loop instead of
7928         evolution_function_is_affine_p.
7929         (analyze_overlapping_iterations): Pass in the loop nest number.
7930
7931 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
7932             Sebastian Pop  <sebastian.pop@amd.com>
7933
7934         PR tree-optimization/36206
7935         * tree-chrec.h (chrec_fold_op): New.
7936         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
7937         and other trees.
7938
7939 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
7940
7941         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
7942         (DIRS_EQ): New.
7943         (remove_duplicates): Do not set inode on non-inode systems.
7944         Use DIRS_EQ.
7945
7946 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
7947
7948         * config.gcc (tm_file): Update comments about relative pathnames.
7949
7950 2008-05-20  Richard Guenther  <rguenther@suse.de>
7951
7952         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
7953         * tree-ssa-sccvn.c (process_scc): Likewise.
7954         * tree-ssa-sink.c (execute_sink_code): Likewise.
7955         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
7956         * tree-vrp.c (process_assert_insertions): Likewise.
7957         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7958         (perform_tree_ssa_dce): Likewise.
7959         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
7960         (dump_dominator_optimization_stats): Likewise.
7961         * tree-vectorizer.c (vectorize_loops): Likewise.
7962
7963 2008-05-20  Richard Guenther  <rguenther@suse.de>
7964
7965         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
7966
7967 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
7968
7969         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
7970         (ix86_i386elf_return_in_memory): Likewise.
7971         (ix86_i386interix_return_in_memory): Likewise.
7972         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
7973         (SUBTARGET_RETURN_IN_MEMORY): New.
7974         * config/i386/i386elf.h: Likewise.
7975         * config/i386/ptx4-i.h: Likewise.
7976         * config/i386/sol2-10.h: Likewise.
7977         * config/i386/sysv4.h: Likewise.
7978         * config/i386/vx-common.h: Likewise.
7979         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
7980         * config/i386/i386.c (ix86_return_in_memory): Made static and
7981         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
7982         (ix86_i386elf_return_in_memory): Removed.
7983         (ix86_i386interix_return_in_memory): Removed.
7984         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
7985         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
7986
7987 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
7988
7989         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
7990
7991 2008-05-19  Xinliang David Li  <davidxl@google.com>
7992
7993         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
7994         * opts.c: Ditto.
7995         * common.opt: Ditto.
7996         * doc/invoke.texi: Ditto.
7997
7998 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
7999
8000         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
8001         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
8002
8003 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8004
8005         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
8006         sizes of operand array from 8/4 to 4/2.
8007         (ix86_expand_vector_init_general): Change size of operand array
8008         from 32 to 16.  Remove op0, op1 and half_mode.
8009
8010 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8011
8012         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
8013         (ix86_expand_vector_init_interleave): Likewise.
8014         (ix86_expand_vector_init_general): Use them.  Assert
8015         word_mode == SImode when n_words == 4.
8016
8017 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
8018
8019         * config/i386/i386.c (ix86_secondary_reload): New static function.
8020         (TARGET_SECONDARY_RELOAD): New define.
8021         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
8022         * config/i386/i386.md (reload_outqi): Remove.
8023
8024 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8025
8026         PR middle-end/35509
8027         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
8028         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
8029         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
8030         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
8031         (fold_builtin_1): Likewise.
8032         * builtins.def (BUILT_IN_ISINF_SIGN): New.
8033         c-common.c (check_builtin_function_arguments): Handle
8034         BUILT_IN_ISINF_SIGN.
8035         * doc/extend.texi: Document __builtin_isinf_sign.
8036         * fold-const.c (operand_equal_p): Handle COND_EXPR.
8037
8038 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
8039
8040         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
8041         EH cleanup at the end of the pass, search for those that have been
8042         turned into forwarder blocks and do the cleanup on their successor.
8043
8044 2008-05-18  Richard Guenther  <rguenther@suse.de>
8045
8046         * tree-cfg.c (verify_gimple_expr): Allow conversions from
8047         pointers to sizetype and vice versa.
8048
8049 2008-05-18 Xinliang David Li   <davidxl@google.com>
8050
8051         * gcc/tree-ssa-dce.c: Coding style fix.
8052         (check_pow): Documentation comment.
8053         (check_log): Documenation comment. Coding style fix.
8054         (is_unnecessary_except_errno_call): Ditto.
8055         (gen_conditions_for_pow): Ditto.
8056         (gen_conditions_for_log): Ditto.
8057         (gen_shrink_wrap_conditions): Ditto.
8058         (shrink_wrap_one_built_in_calls): Ditto.
8059         * gcc/doc/invoke.texi: Better documentation string.
8060         * ChangeLog: Fix wrong change log entries from
8061         May 17 checkin on function call DCE.
8062
8063 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
8064
8065         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
8066
8067 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
8068
8069         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
8070         * df-problems.c (simulation routines): Fixed block comment to
8071         properly say how to add forwards scanning functions.
8072
8073 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
8074
8075         * tree-inline.c (setup_one_parameter): Remove dead code.
8076
8077 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
8078
8079         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
8080         a BIT_AND_EXPR only for an INTEGER_TYPE.
8081
8082 2008-05-17 Xinliang David Li   <davidxl@google.com>
8083
8084         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
8085         (check_pow, check_log, is_unnecessary_except_errno_call): New
8086         functions to check for eliminating math functions that are pure
8087         except for setting errno.
8088         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
8089         general condition expressions for shrink-wrapping pow/log calls.
8090         (gen_shrink_wrap_conditions): Ditto.
8091         (shrink_wrap_one_built_in_call): Ditto.
8092         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
8093         (mark_operand_necessary): If debugging, output if OP is necessary.
8094         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
8095         unnecessary.
8096         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
8097         opt level >= 2.
8098         * gcc/common.opt: New user flag -ftree-builtin-dce.
8099         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
8100
8101 2008-05-16  David S. Miller  <davem@davemloft.net>
8102
8103         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
8104         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
8105
8106 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
8107
8108         PR target/36246
8109         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
8110
8111 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
8112
8113         * ifcvt.c (dead_or_predicable): Rename
8114         df_simulate_one_insn_backwards to df_simulate_one_insn.
8115         * recog.c (peephole2_optimize): Ditto.
8116         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
8117         Ditto.
8118         * df.h: Rename df_simulate_one_insn_backwards to
8119         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
8120         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
8121         scanning of defs and uses.
8122         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
8123         (df_simulate_one_insn_forwards): Removed.
8124
8125 2008-05-16  Doug Kwan  <dougkwan@google.com>
8126
8127         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
8128         QNaN & SNaN.
8129         (real_from_string): Handle NaNs and Inf as approriate.
8130
8131 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
8132
8133         * doc/gty.texi (Source Files Containing Type Information): Note
8134         that headers should appear first in the gtfiles list.
8135
8136 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
8137
8138         * tree.def (COND_EXEC): Properly documented this code.
8139
8140 2008-05-16  Diego Novillo  <dnovillo@google.com>
8141
8142         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
8143         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
8144         the new field.
8145
8146 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
8147
8148         * tree-ssa-dse (max_stmt_uid): Removed.
8149         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
8150         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
8151         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
8152         * function.h (cfun.last_stmt_uid): New field.
8153         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
8154         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
8155         New functions.
8156         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
8157         (create_stmt_ann): Initialize the ann->uid field.
8158         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
8159         with new calls.
8160         * tree-flow.h (renumber_gimple_stmt_uids): New function.
8161
8162 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
8163
8164         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
8165         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
8166         (init_empty_tree_cfg): Call it.
8167
8168 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
8169
8170         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
8171         Update all users.
8172
8173 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
8174
8175         * doc/invoke.text (-fdump-tree-*-verbose): New option.
8176         * tree-dump.c (dump_options): New verbose option.
8177         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
8178         Add verbose dump.
8179         * tree-pass.h (TDF_VERBOSE): New dump flag.
8180         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
8181         (tree-flow.h): Added include.
8182         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
8183
8184 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
8185
8186         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
8187
8188         From Jie Zhang  <jie.zhang@analog.com>
8189         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8190         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
8191         mcpu=bf561-none and mcpu=bf561-0.2.
8192         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8193         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
8194         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8195         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
8196         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
8197         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
8198         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
8199         option.
8200         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
8201         (cputype_selected): Remove.
8202         (bfin_handle_option): Don't use cputype_selected.
8203         (override_options): When no mcpu option, enable all workarounds.
8204         Don't use bfin_workarounds.
8205         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
8206         processor type.
8207         (DEFAULT_CPU_TYPE): Don't define.
8208
8209 2008-05-16  Richard Guenther  <rguenther@suse.de>
8210
8211         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
8212         on deletion of the last stmt.
8213
8214 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8215
8216         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
8217         V8HImode for SSE2 and V16QImode for SSE4.1.
8218
8219 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
8220
8221         * cgraph.h (compute_inline_parameters): Made public.
8222         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
8223         variable_generate_summary, function_write_summary,
8224         variable_write_summary, variable_read_summary.  Added generate_summary,
8225         write_summary, read_summary.
8226         * cgraphunit.c (cgraph_process_new_functions): Changed call from
8227         pass_ipa_inline.function_generate_summary, to
8228         compute_inline_parameters.
8229         * ipa-inline.c (compute_inline_parameters): Made public and added
8230         node parameter.
8231         (compute_inline_parameters_for_current): New function.
8232         (pass_inline_param): Now calls compute_inline_parameters_for_current.
8233         (inline_generate_summary): Removed parameter and made to loop over
8234         all cgraph nodes.
8235         (pass_ipa_inline): Updated for new IPA_PASS structure.
8236         * passes.c (execute_ipa_summary_passes): Now is called once per
8237         pass rather than once per node*pass.
8238
8239 2008-05-15  Anatoly Sokolov <aesok@post.ru>
8240
8241         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
8242         avr_have_mul_p, avr_asm_only_p): Remove variables.
8243         (avr_override_options): Remove initialization of removed variables.
8244         (avr_file_start):  Convert removed variables to fields of
8245         'struct base_arch_s *avr_current_arch'.
8246         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
8247         (AVR_HAVE_MUL): (Ditto.).
8248         (AVR_HAVE_MOVW): (Ditto.).
8249         (AVR_HAVE_LPMX): (Ditto.).
8250         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
8251         avr_asm_only_p): Remove declaration.
8252
8253 2008-05-15  Diego Novillo  <dnovillo@google.com>
8254
8255         * config/arm/arm.c (arm_return_in_memory): Fix return type.
8256         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
8257
8258 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
8259
8260         PR middle-end/36194
8261         * combine.c (check_conversion): Rename back to check_promoted_subreg.
8262         Don't call record_truncated_value from here.
8263         (record_truncated_value): Turn it into a for_each_rtx callback.
8264         (record_truncated_values): New function.
8265         (combine_instructions): Call note_uses with record_truncated_values.
8266         Change name of check_conversion to check_promoted_subreg.
8267
8268 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
8269
8270         * doc/sourcebuild.texi: Document support for torture tests.
8271
8272 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
8273
8274         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
8275         to alternative 4 of operand 2.
8276
8277 2008-05-15  Richard Guenther  <rguenther@suse.de>
8278
8279         * tree-pass.h (current_pass): Declare.
8280         (get_pass_for_id): Likewise.
8281         * passes.c (passes_by_id, passes_by_id_size): New globals.
8282         (set_pass_for_id): New function.
8283         (get_pass_for_id): Likewise.
8284         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
8285         (execute_function_todo): Flush per function statistics.
8286         * toplev.c (compile_file): Init statistics.
8287         (general_init): Do early statistics initialization.
8288         (finalize): Finish statistics.
8289         * statistics.h (statistics_early_init): Declare.
8290         (statistics_init): Likewise.
8291         (statistics_fini): Likewise.
8292         (statistics_fini_pass): Likewise.
8293         (statistics_counter_event): Likewise.
8294         (statistics_histogram_event): Likewise.
8295         * statistics.c: New file.
8296         * Makefile.in (OBJS-common): Add statistics.o.
8297         (statistics.o): Add dependencies.
8298         * doc/invoke.texi (-fdump-statistics): Document.
8299
8300         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
8301         (insert): Likewise.
8302         (execute_pre): Use statistics_counter_event.
8303         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
8304         (substitute_and_fold): Increment it.  Use statistics_counter_event.
8305
8306 2008-05-15  Diego Novillo  <dnovillo@google.com>
8307
8308         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
8309
8310         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
8311         * tree-ssa-alias.c (new_type_alias): Remove references to
8312         sub-variables from comment.
8313         * tree-ssa-operands.c (swap_tree_operands): Likewise.
8314
8315 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8316
8317         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
8318         attribute to 1 only for insertps alternative.
8319
8320 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
8321
8322         * config/bfin/bfin.md (loadbytes): New pattern.
8323         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
8324         (bfin_init_builtins): Initialize it.
8325         (bdesc_1arg): Add it.
8326
8327 2008-05-15  Sa Liu  <saliu@de.ibm.com>
8328
8329         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
8330         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
8331         * testsuite/lib/target-supports.exp: Add
8332         check_effective_target_fortran_integer_16.
8333
8334 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
8335
8336         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
8337         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
8338         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
8339         (TARGET_RETURN_IN_MEMORY): Define.
8340
8341 2008-05-15  Richard Guenther  <rguenther@suse.de>
8342
8343         PR middle-end/36244
8344         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
8345         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
8346         represent unmodifiable vars.
8347
8348 2008-05-15  Richard Guenther  <rguenther@suse.de>
8349
8350         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
8351         INDIRECT_REF and TARGET_MEM_REF.
8352         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
8353         TARGET_MEM_REF.
8354
8355 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
8356             H.J. Lu  <hongjiu.lu@intel.com>
8357
8358         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
8359         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
8360         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
8361         insn alternatives.  Add missing alternatives.
8362         (*vec_concatv2di_rex64_sse4_1): Likewise.
8363         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
8364         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
8365         Require TARGET_SSE.
8366
8367 2008-05-15  Richard Guenther  <rguenther@suse.de>
8368
8369         PR tree-optimization/36009
8370         PR tree-optimization/36204
8371         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
8372         (determine_invariantness_stmt): Record the loop a store is
8373         always executed in.
8374         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
8375         dependency.
8376
8377 2008-05-15  Richard Guenther  <rguenther@suse.de>
8378
8379         PR tree-optimization/34330
8380         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
8381         through the pointer will alias the SMT.
8382
8383 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
8384
8385         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
8386
8387 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8388
8389         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
8390
8391 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
8392             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
8393
8394         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
8395         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
8396         (vashl_optab): New optab for vector/vector shifts.
8397         (vashr_optab): Ditto.
8398         (vlshr_optab): Ditto.
8399         (vrotl_optab): Ditto.
8400         (vrotr_optab): Ditto.
8401         (optab_subtype): New enum for optab_for_tree_code call.
8402         (optab_for_tree_code): Add enum optab_subtype argument.
8403
8404         * optabs.c (optab_for_tree_code): Take an additional argument to
8405         distinguish between a vector shift by a scalar and vector shift by
8406         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
8407         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
8408         vector shift by a vector.
8409         (expand_widen_pattern_expr): Pass additional argument to
8410         optab_for_tree_code.
8411
8412         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
8413         vrotl_optab, vrotr_optab.
8414
8415         * expr.c (expand_expr_real_1): Update calls to
8416         optab_for_tree_code to distinguish between vector shifted by a
8417         scalar and vector shifted by a vector.
8418         * tree-vectorizer.c (supportable_widening_operation): Ditto.
8419         (supportable_narrowing_operation): Ditto.
8420         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
8421         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
8422         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
8423         (vect_create_epilog_for_reduction): Ditto.
8424         (vectorizable_reduction): Ditto.
8425         (vectorizable_operation): Ditto.
8426         (vect_strided_store_supported): Ditto.
8427         (vect_strided_load_supported): Ditto.
8428         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
8429         * expmed.c (expand_shift): Ditto.
8430
8431         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
8432         scalar type.
8433         (ashr@var{m}3): Ditto.
8434         (vashl@var{m}3): Document new vector/vector shift standard name.
8435         (vashr@var{m}3): Ditto.
8436         (vlshr@var{m}3): Ditto.
8437         (vrotl@var{m}3): Ditto.
8438         (vrotr@var{m}3): Ditto.
8439
8440         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
8441         (PPERM_INVERT): Ditto.
8442         (PPERM_REVERSE): Ditto.
8443         (PPERM_REV_INV): Ditto.
8444         (PPERM_ZERO): Ditto.
8445         (PPERM_ONES): Ditto.
8446         (PPERM_SIGN): Ditto.
8447         (PPERM_INV_SIGN): Ditto.
8448         (PPERM_SRC1): Ditto.
8449         (PPERM_SRC2): Ditto.
8450
8451         * config/i386/sse.md (mulv2di3): Add SSE5 support.
8452         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
8453         allows a memory operand to be the value being added, and split it
8454         to improve vectorization.
8455         (sse5_pmacsdqh_mem): Ditto.
8456         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
8457         (sse5_mulv2div2di3_high): Ditto.
8458         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
8459         (vec_pack_trunc_v4si): Ditto.
8460         (vec_pack_trunc_v2di): Ditto.
8461         (sse5_pcmov_<mode>): Remove code that tried to use use
8462         andps/andnps instead of pcmov.
8463         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
8464         pmacsdqh instructions.
8465         (vec_widen_smult_lo_v4si): Ditto.
8466
8467         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
8468         (PPERM_INVERT): Ditto.
8469         (PPERM_REVERSE): Ditto.
8470         (PPERM_REV_INV): Ditto.
8471         (PPERM_ZERO): Ditto.
8472         (PPERM_ONES): Ditto.
8473         (PPERM_SIGN): Ditto.
8474         (PPERM_INV_SIGN): Ditto.
8475         (PPERM_SRC1): Ditto.
8476         (PPERM_SRC2): Ditto.
8477         (ix86_expand_sse_movcc): Move the SSE5 test after the if
8478         true/false tests.
8479         (ix86_expand_int_vcond): If SSE5 generate all possible integer
8480         comparisons.
8481         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
8482         says ignore whether the last reference is a memory operand.
8483
8484 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
8485             Paolo Bonzini <bonzini at gnu dot org>
8486
8487         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
8488         shift patterns.
8489
8490         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
8491         (vlshr<mode>3): Rename from vlshr<mode>3.
8492         (vashr<mode>3): Rename from vashr<mode>3.
8493         (mulv4sf3): Change the names of vector shift patterns.
8494         (mulv4si3): Ditto.
8495         (negv4sf2): Ditt.
8496
8497         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
8498         shift insns.
8499
8500         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
8501         (SI_SHLHI): Ditto.
8502         (SI_SHL): Ditto.
8503         (SI_SHLI): Ditto.
8504         (SI_ROTH): Ditto.
8505         (SI_ROTHI): Ditto.
8506         (SI_ROT): Ditto.
8507         (SI_ROTI): Ditto.
8508         (SPU_RL_0): Ditto.
8509         (SPU_RL_1): Ditto.
8510         (SPU_RL_2): Ditto.
8511         (SPU_RL_3): Ditto.
8512         (SPU_RL_4): Ditto.
8513         (SPU_RL_5): Ditto.
8514         (SPU_RL_6): Ditto.
8515         (SPU_RL_7): Ditto.
8516         (SPU_SL_0): Ditto.
8517         (SPU_SL_1): Ditto.
8518         (SPU_SL_2): Ditto.
8519         (SPU_SL_3): Ditto.
8520         (SPU_SL_4): Ditto.
8521         (SPU_SL_5): Ditto.
8522         (SPU_SL_6): Ditto.
8523         (SPU_SL_7): Ditto.
8524
8525         * config/spu/spu.md (v): New iterator macro to add v for vector types.
8526         (floatunssidf2_internal): Change vector/vector shift names.
8527         (floatunsdidf2_internal): Ditto.
8528         (mulv8hi3): Ditto.
8529         (ashrdi3): Ditto.
8530         (ashrti3): Ditto.
8531         (cgt_df): Ditto.
8532         (cgt_v2df): Ditto.
8533         (dftsv): Ditto.
8534         (vashl<mode>3): Rename from ashl<mode>3.
8535         (vashr<mode>3): Rename from ashr<mode>3.
8536         (vlshr<mode>3): Rename from lshr<mode>3.
8537         (vrotl<mode>3): Rename from rotl<mode>3.
8538
8539 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
8540
8541         PR target/36224
8542         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
8543         multiply gives the wrong value when doing widening multiplies.
8544         (vec_widen_smult_lo_v4si): Ditto.
8545
8546 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
8547
8548         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
8549         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
8550         emit_library_call_value.
8551         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
8552         * tree.h (ECF_LIBCALL_BLOCK): Removed.
8553         * calls.c (initialize_argument_information, precompute_arguments,
8554         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
8555         (precompute_arguments): Removed flags parameter.
8556         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
8557
8558 2008-05-14  Richard Guenther  <rguenther@suse.de>
8559
8560         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
8561         Make sure to register the store if the use is a PHI_NODE.
8562
8563 2008-05-14  Olivier Hainque  <hainque@adacore.com>
8564
8565         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
8566         memory if the component is to be referenced in BLKmode according
8567         to get_inner_reference.
8568
8569 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
8570
8571         * calls.c (emit_library_call_value_1): Restore code clearing
8572         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
8573
8574 2008-05-14  Olivier Hainque  <hainque@adacore.com>
8575             Nicolas Roche  <roche@adacore.com>
8576
8577         * configure.ac: Add support for a "gcc_subdir" variable in
8578         config-lang.in, to denote a subdirectory where the language/GCC
8579         integration files are to be found.
8580         * configure: Regenerate.
8581
8582 2008-05-14  Ira Rosen  <irar@il.ibm.com>
8583
8584         PR tree-optimization/36098
8585         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
8586         value for the first load in the group in case of a gap.
8587         (vect_build_slp_tree): Check that there are no gaps in loads.
8588
8589 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
8590
8591         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
8592         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
8593         expand_copysign_bit, ): Change call to emit_no_conflict_block to
8594         emit_insn and remove unneeded code to construct extra args.
8595         (emit_no_conflict_block): Removed.
8596         * optabls.h: (emit_no_conflict_block): Removed.
8597         * cse.c (cse_extended_basic_block): Remove search for
8598         REG_NO_CONFLICT note.
8599         * global.c: Removed incorrect comment added in revision 117.
8600         * expr.c (convert_move): Change call to emit_no_conflict_block to
8601         emit_insn.
8602         * recog.c: Change comments so that they do not mention
8603         REG_NO_CONFLICT.
8604         * local_alloc.c (combine_regs): Removed last parameter.
8605         (no_conflict_p): Removed.
8606         (block_alloc): Removed note, no_conflict_combined_regno and set
8607         local vars. Removed all code to process REG_NO_CONFLICT blocks.
8608         (combine_regs): Removed already_dead and code to look for
8609         REG_NO_CONFLICT notes.
8610         * lower_subreg (remove_retval_note): Removed code to look for
8611         REG_NO_CONFLICT block.
8612         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
8613         (resolve_clobber): Remove code to process libcalls that have
8614         REG_NO_CONFLICT notes.
8615         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
8616         case.
8617         * combine.c (can_combine_p, distribute_notes):  Removed
8618         REG_NO_CONFLICT case.
8619         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
8620         to emit_insns.
8621         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
8622         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
8623         Ditto.
8624         * reg-notes.def (NO_CONFLICT): Removed.
8625
8626 2008-05-14  David S. Miller  <davem@davemloft.net>
8627
8628         * config/sparc/sparc.c (sparc_profile_hook): If
8629         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
8630         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
8631         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
8632
8633 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
8634
8635         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
8636
8637 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
8638
8639         PR target/36222
8640         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
8641         and op1 expansion before vector concat to have less live pseudos.
8642
8643 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
8644
8645         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
8646         ix86_expand_vector_set if supported.
8647
8648 2008-05-13  Diego Novillo  <dnovillo@google.com>
8649             Kenneth Zadeck  <zadeck@naturalbridge.com>
8650
8651         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
8652
8653         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
8654         phinodes_print_statistics, init_ssanames, fini_ssanames,
8655         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
8656         release_ssa_name, release_defs, replace_ssa_name_symbol,
8657         ssanames_print_statistics): Move ...
8658         * tree-flow.h: ... here.
8659         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
8660         Use FN instead of cfun.
8661         (make_ssa_name_fn): Rename from make_ssa_name.
8662         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
8663         * tree-flow-inline.h (make_ssa_name): Move from
8664         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
8665         * omp-low.c (expand_omp_parallel):
8666         * tree-flow-inline.h (redirect_edge_var_map_result):
8667         * tree-ssa.c (init_tree_ssa): Add argument FN.
8668         Use it instead of cfun.  Update all users.
8669
8670 2008-05-13  Tom Tromey  <tromey@redhat.com>
8671
8672         PR preprocessor/22168:
8673         * doc/cpp.texi (Top): Update menu.
8674         (Alternatives to Wrapper #ifndef): New node.
8675         (Other Directives): Document deprecation.
8676         (Obsolete Features): Remove menu.
8677         (Assertions): Merge node into Obsolete Features.
8678         (Obsolete once-only headers): Move earlier; rename to Alternatives
8679         to Wrapper #ifndef.
8680         * doc/cppopts.texi: Update.
8681         * c.opt (Wdeprecated): Enable for C and ObjC.
8682         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
8683         (C++ Dialect Options): Move -Wno-deprecated from here to...
8684         (Warning Options): ... here.
8685
8686 2008-05-13  Richard Guenther  <rguenther@suse.de>
8687
8688         PR middle-end/36227
8689         * fold-const.c (fold_sign_changed_comparison): Do not allow
8690         changes in pointer-ness.
8691
8692 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
8693
8694         PR target/24713
8695         * config/sh/sh.c (sh_expand_prologue): Don't clear
8696         RTX_FRAME_RELATED_P for push insns.
8697
8698 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
8699
8700         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
8701
8702 2008-05-12  Anatoly Sokolov <aesok@post.ru>
8703
8704         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
8705         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
8706         Use 'machine->is_leaf' instead of 'leaf_func_p'.
8707
8708 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
8709
8710         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
8711         (*vec_concatv4sf_sse): This.
8712         (*sse2_concatv2si): Renamed to ...
8713         (*vec_concatv2si_sse2): This.
8714         (*sse1_concatv2si): Renamed to ...
8715         (*vec_concatv2si_sse): This.
8716         (*vec_concatv2di_rex): Renamed to ...
8717         (*vec_concatv2di_rex64): This.
8718         (*vec_concatv2si_sse4_1): New.
8719         (*vec_concatv2di_rex64_sse4_1): Likewise.
8720
8721 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
8722
8723         PR rtl-optimization/36111
8724         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
8725         that was created for swappable operands.
8726
8727 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
8728
8729         PR ada/36001
8730         * Makefile.in: Substitute GNATMAKE and GNATBIND.
8731         * configure.ac: Add call to ACX_PROG_GNAT.
8732
8733 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
8734
8735         * optc-gen.awk: Fix comment typo.
8736
8737 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
8738
8739         * pretty-print.c (pp_integer_with_precision): Use
8740         HOST_LONG_LONG_FORMAT.
8741
8742 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
8743
8744         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
8745
8746 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8747
8748         * config/i386/i386.c (bdesc_ptest): Removed.
8749         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
8750         (bdesc_args): Add __builtin_ia32_ptestz128,
8751         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
8752         (ix86_init_mmx_sse_builtins): Updated.
8753         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
8754         (ix86_expand_builtin): Updated.
8755
8756 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
8757
8758         * tree-cfg.c (valid_fixed_convert_types_p): New function.
8759         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
8760
8761 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
8762
8763         * value-prof.c (interesting_stringop_to_profile): Do not
8764         return early for BUILT_IN_MEMPCPY.
8765
8766 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8767
8768         * calls.c (expand_call): Don't use callgraph to increase
8769         preferred_stack_boundary.
8770
8771         * cgraph.h (cgraph_rtl_info): Use unsigned on
8772         preferred_incoming_stack_boundary.
8773
8774         * final.c (rest_of_clean_state): Use unsigned on
8775         preferred_stack_boundary.
8776
8777 2008-05-09  Tom Tromey  <tromey@redhat.com>
8778
8779         PR preprocessor/22231:
8780         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
8781         proceeding.
8782
8783 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
8784
8785         PR tree-optimization/36129
8786         * tree-ssa-ccp.c: Include value-prof.h.
8787         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
8788         built-in function was folded to a constant.
8789         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
8790
8791 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
8792             Sebastian Pop  <sebastian.pop@amd.com>
8793
8794         * tree-scalar-evolution.c: Document instantiate_scev.
8795         (instantiate_parameters_1): Renamed instantiate_scev_1.
8796         Don't use the same loop for instantiation_loop and evolution_loop.
8797         (instantiate_scev): New.
8798         (instantiate_parameters): Moved...
8799         (resolve_mixers): Update call to instantiate_scev_1 to pass the
8800         same loop twice.  Maintains the semantics for this function.
8801         * tree-scalar-evolution.h (instantiate_scev): Declare.
8802         (instantiate_parameters): ...here.  Now static inline.
8803         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
8804         instead of resolve_mixers.
8805
8806 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
8807
8808         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
8809
8810 2008-05-09  Tomas Bily  <tbily@suse.cz>
8811
8812         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
8813         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
8814         * tree-ssa-structalias.c (get_constraint_for): Likewise.
8815         * c-common.c (c_common_truthvalue_conversion): Likewise.
8816         * tree-object-size.c (compute_object_offset): Likewise.
8817         * tree-inline.c (estimate_num_insns_1): Likewise.
8818         * varasm.c (const_hash_1, compare_constant, copy_constant)
8819         (compute_reloc_for_constant, output_addressed_constants)
8820         (initializer_constant_valid_p): Likewise.
8821         * c-omp.c (check_omp_for_incr_expr): Likewise.
8822         * gimplify.c (gimplify_expr): Likewise.
8823         * c-typeck.c (c_finish_return): Likewise.
8824         * tree-vectorizer.c (supportable_widening_operation)
8825         (supportable_narrowing_operation): Likewise.
8826         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
8827         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
8828         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
8829         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
8830         (descr_info_loc): Likewise.
8831         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8832         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
8833         (fold_unary): Likewise.
8834         * builtins.c (get_pointer_alignment): Likewise.
8835         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
8836         (instantiate_parameters_1): Likewise.
8837         * tree.c (expr_align, stabilize_reference): Likewise.
8838         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
8839         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
8840         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
8841         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8842         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
8843         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
8844         Likewise.
8845         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
8846         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
8847         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
8848         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
8849         (forward_propagate_comparison)
8850         (tree_ssa_forward_propagate_single_use_vars): Likewise.
8851         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
8852         * emit-rtl.c (component_ref_for_mem_expr)
8853         (set_mem_attributes_minus_bitpos): Likewise.
8854         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
8855         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
8856         Likewise.
8857         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
8858         (build_function_call, pointer_diff, build_compound_expr)
8859         (c_finish_return): Likewise.
8860         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
8861         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
8862         Likewise.
8863         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
8864         * expr.c (is_aligning_offset): Likewise.
8865         * tree-ssa-alias.c (is_escape_site): Likewise.
8866         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
8867         (check_all_va_list_escapes): Likewise.
8868         * tree-ssa-loop-ivopts.c (determine_base_object)
8869         (determine_common_wider_type): Likewise.
8870         * dojump.c (do_jump): Likewise.
8871         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
8872         * tree-gimple.c (is_gimple_cast): Likewise.
8873         * fold-const.c (decode_field_reference, )
8874         (fold_sign_changed_comparison, fold_unary, fold_comparison)
8875         (fold_binary): Likewise.
8876         * tree-ssa-alias-warnings.c (find_alias_site_helper)
8877         (already_warned_in_frontend_p): Likewise.
8878         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
8879         * tree.c (really_constant_p, get_unwidened): Likewise.
8880         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
8881         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
8882         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
8883         Likewise.
8884         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
8885         CONVERT_EXPR_P.
8886         (CONVERT_EXPR_P): Define.
8887         (CASE_CONVERT): Define.
8888
8889 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
8890
8891         PR middle-end/36117
8892         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
8893         (delete_unmarked_insns): When deleting a call, call
8894         delete_unreachable_blocks.
8895         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8896         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
8897
8898 2008-05-08  Richard Guenther  <rguenther@suse.de>
8899
8900         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
8901         (-ftree-salias): Likewise.
8902         (salias-max-implicit-fields): Remove param documentation.
8903         (salias-max-array-elements): Likewise.
8904         * tree-pass.h (pass_create_structure_vars): Remove.
8905         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8906         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8907         * tree-ssa-alias.c (create_structure_vars): Remove.
8908         (gate_structure_vars): Likewise.
8909         (pass_create_structure_vars): Likewise.
8910         (gate_build_alias): Likewise.
8911         (pass_build_alias): Adjust to run always and dump the function.
8912         * common.opt (ftree-salias): Hide.
8913         * passes.c (init_optimization_passes): Remove
8914         pass_create_structure_vars, adjust comment.
8915         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8916         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8917         * opts.c (decode_options): Do not set flag_tree_salias.
8918         (common_handle_option): Add OPT_ftree_salias to the backward
8919         compatibility section.
8920
8921 2008-05-08  Richard Guenther  <rguenther@suse.de>
8922
8923         * tree-flow-inline.h (var_can_have_subvars): Move ...
8924         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
8925         * tree-flow.h (var_can_have_subvars): Remove.
8926         (push_fields_onto_fieldstack): Remove.
8927         (sort_fieldstack): Likewise.
8928         (struct fieldoff): Move ...
8929         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
8930         alias_set and base_for_components fields.
8931         (sort_fieldstack): Make static.
8932         (push_fields_onto_fieldstack): Likewise.  Remove code that
8933         handles anything but RECORD_TYPEs.  Remove alias_set and
8934         base_for_components handling.
8935         (create_variable_info_for): Adjust.
8936
8937 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
8938
8939         * common.opt (Wframe-larger-than=): Shorten the help message
8940         to one line.
8941         * doc/invoke.texi (Wframe-larger-than=): Add more description.
8942
8943 2008-05-08  Rafael Espindola  <espindola@google.com>
8944
8945         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
8946         trap.
8947         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
8948         trap and that both operands are gimple values.
8949         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
8950         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
8951         is a fp operation.
8952
8953 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
8954
8955         * read-rtl.c (join_c_conditions): Return the first string if the
8956         two strings are equal.
8957
8958 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
8959
8960         * gensupport.h (pred_data): Add a "num_codes" field.
8961         (add_predicate_code): Declare.
8962         * gensupport.c (add_predicate_code): New function.
8963         (std_pred_table): Add an "allows_const_p" field.
8964         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
8965         Remove the (incomplete) list of such codes from the codes field.
8966         (init_predicate_table): Use add_predicate_code.  Add all
8967         RTX_CONST_OBJs if allows_const_p is true.
8968         * genrecog.c (process_define_predicate): Use add_predicate_code.
8969
8970 2008-05-08  David Daney  <ddaney@avtrex.com>
8971             Richard Sandiford  <rsandifo@nildram.co.uk>
8972
8973         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
8974         special case of constant zero operands.
8975         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
8976         old and new values.  Special case constant zero values.
8977         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
8978         fails.
8979         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
8980         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
8981
8982 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
8983
8984         PR target/36090
8985         * simplify-rtx.c (simplify_plus_minus): Create CONST of
8986         similar RTX_CONST_OBJ before CONST_INT.
8987
8988 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
8989
8990         * stmt.c (expand_stack_restore): Change sa mode if needed.
8991
8992 2008-05-08  Richard Guenther  <rguenther@suse.de>
8993
8994         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
8995         return type to bool.
8996         (ix86_sol10_return_in_memory): Likewise.
8997         (ix86_i386elf_return_in_memory): Likewise.
8998         (ix86_i386interix_return_in_memory): Likewise.
8999         * config/i386/i386.c (ix86_return_in_memory): Likewise.
9000         (ix86_sol10_return_in_memory): Likewise.
9001         (ix86_i386elf_return_in_memory): Likewise.
9002         (ix86_i386interix_return_in_memory): Likewise.
9003
9004 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
9005
9006         PR bootstrap/36180
9007         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
9008         fndecl argument.
9009         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
9010         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
9011         declared in front.
9012
9013 2008-05-08  Richard Guenther  <rguenther@suse.de>
9014
9015         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
9016         * tree-data-ref.h (struct dr_alias): Remove subvars field.
9017         (DR_SUBVARS): Remove.
9018         * tree-dfa.c (dump_subvars_for): Remove.
9019         (debug_subvars_for): Likewise.
9020         (dump_variable): Do not dump subvars.
9021         (remove_referenced_var): Do not remove subvars.
9022         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
9023         (lookup_subvars_for_var): Remove.
9024         (get_subvars_for_var): Likewise.
9025         (get_subvars_at): Likewise.
9026         (get_first_overlapping_subvar): Likewise.
9027         (overlap_subvar): Likewise.
9028         * tree-flow.h (subvar_t): Remove.
9029         (struct var_ann_d): Remove subvars field.
9030         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
9031         argument.  Remove special handling of SFTs.
9032         (compute_tag_properties): Likewise.
9033         (set_initial_properties): Likewise.
9034         (compute_call_clobbered): Likewise.
9035         (count_mem_refs): Likewise.
9036         (compute_memory_partitions): Likewise.
9037         (compute_flow_insensitive_aliasing): Likewise.
9038         (setup_pointers_and_addressables): Likewise.
9039         (new_type_alias): Likewise.
9040         (struct used_part): Remove.
9041         (used_portions): Likewise.
9042         (struct used_part_map): Likewise.
9043         (used_part_map_eq): Likewise.
9044         (used_part_map_hash): Likewise.
9045         (free_used_part_map): Likewise.
9046         (up_lookup): Likewise.
9047         (up_insert): Likewise.
9048         (get_or_create_used_part_for): Likewise.
9049         (create_sft): Likewise.
9050         (create_overlap_variables_for): Likewise.
9051         (find_used_portions): Likewise.
9052         (create_structure_vars): Likewise.
9053         * tree.def (STRUCT_FIELD_TAG): Remove.
9054         * tree.h (MTAG_P): Adjust.
9055         (struct tree_memory_tag): Remove base_for_components and
9056         unpartitionable flags.
9057         (struct tree_struct_field_tag): Remove.
9058         (SFT_PARENT_VAR): Likewise.
9059         (SFT_OFFSET): Likewise.
9060         (SFT_SIZE): Likewise.
9061         (SFT_NONADDRESSABLE_P): Likewise.
9062         (SFT_ALIAS_SET): Likewise.
9063         (SFT_UNPARTITIONABLE_P): Likewise.
9064         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
9065         (union tree_node): Remove sft field.
9066         * alias.c (get_alias_set): Remove special handling of SFTs.
9067         * print-tree.c (print_node): Remove handling of SFTs.
9068         * tree-dump.c (dequeue_and_dump): Likewise.
9069         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
9070         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
9071         * tree-predcom.c (set_alias_info): Do not set subvars.
9072         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
9073         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
9074         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
9075         (add_vars_for_offset): Remove.
9076         (add_virtual_operand): Remove special handling of SFTs.
9077         (add_call_clobber_ops): Likewise.
9078         (add_call_read_ops): Likewise.
9079         (get_asm_expr_operands): Likewise.
9080         (get_modify_stmt_operands): Likewise.
9081         (get_expr_operands): Likewise.
9082         (add_to_addressable_set): Likewise.
9083         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
9084         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
9085         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
9086         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
9087         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
9088         (tree_node_structure): Likewise.
9089         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
9090         handling of SFTs.
9091         (find_what_p_points_to): Likewise.
9092
9093 2008-05-08  Sa Liu  <saliu@de.ibm.com>
9094
9095         * config/spu/spu.md: Fixed subti3 pattern.
9096
9097 2008-05-08  Richard Guenther  <rguenther@suse.de>
9098
9099         PR middle-end/36154
9100         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9101         sure to create a representative for trailing arrays for PTA.
9102
9103 2008-05-08  Richard Guenther  <rguenther@suse.de>
9104
9105         PR middle-end/36172
9106         * fold-const.c (operand_equal_p): Two objects which types
9107         differ in pointerness are not equal.
9108
9109 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
9110
9111         * calls.c (compute_argument_block_size): Add argument tree fndecl.
9112         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
9113         (emit_library_call_value_1): Add new variable fndecl initialized by
9114         NULL_TREE. It should be the decl type of orgfun, but this information
9115         seems not to be available here, so it uses the default calling abi.
9116         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
9117         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
9118         by TARGET_RETURN_IN_MEMORY.
9119         * config/i386/i386-interix.h: Likewise.
9120         * config/i386/i386.h: Likewise.
9121         * config/i386/i386elf.h: Likewise.
9122         * config/i386/ptx4-i.h: Likewise.
9123         * config/i386/sol2-10.h: Likewise.
9124         * config/i386/sysv4.h: Likewise.
9125         * config/i386/vx-common.h: Likewise.
9126         * config/cris/cris.h: Removed #if 0 clause.
9127         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
9128         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
9129         argument.
9130         (ix86_sol10_return_in_memory): Likewise.
9131         (ix86_i386elf_return_in_memory): New.
9132         (ix86_i386interix_return_in_memory): New.
9133         * config/mt/mt-protos.h (mt_return_in_memory): New.
9134         * config/mt/mt.c: Likewise.
9135         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
9136         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
9137         * config/bfin/bfin.h: Likewise.
9138         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
9139         argument.
9140         * config/bfin/bfin.c: Likewise.
9141         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
9142         * config/alpha/unicosmk.h: Likewise.
9143         * config/i386/cygming.h: Likewise.
9144         * config/iq2000/iq2000.h: Likewise.
9145         * config/mips/mips.h: Likewise.
9146         * config/mn10300/mn10300.h: Likewise.
9147         * config/rs6000/rs6000.h: Likewise.
9148         * config/score/score.h: Likewise.
9149         * config/spu/spu.h: Likewise.
9150         * config/v850/v850.h: Likewise.
9151         * defaults.h: Likewise.
9152         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
9153         * expr.c (emit_block_move): Adjust use of
9154         OUTGOING_REG_PARM_STACK_SPACE.
9155         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
9156         OUTGOING_REG_PARM_STACK_SPACE.
9157         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
9158
9159 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
9160
9161         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
9162         on OMP_RETURN for OMP_FOR.
9163
9164         PR debug/35896
9165         * dwarf2out.c (dw_expand_expr, common_check): Removed.
9166         (fortran_common): New function.
9167         (gen_variable_die): Call fortran_common instead of common_check,
9168         adjust for it returning tree instead of rtx.  Formatting.
9169
9170 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
9171
9172         PR rtl/7335
9173         PR rtl/33826
9174         * see.c (see_copy_insn): Copy new pure const attributes for new call.
9175         * c-decl.c (merge_decls): Ditto.
9176         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
9177         to RTL_CONST_OR_PURE_CALL_P.
9178         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
9179         Initialized DECL_LOOPING_CONST_PURE.
9180         (process_call_operands): Set tree_side_effects properly.
9181         * tree.h (TREE_READONLY_DECL_P): Removed.
9182         (DECL_IS_PURE): Renamed to DECL_PURE_P.
9183         (DECL_LOOPING_OR_CONST_P): New macro.
9184         (struct tree_function_decl): Added looping_const_or_pure_p.
9185         (ECF_*) Renumbered.
9186         (ECF_LOOPING_OR_CONST_P): New macro.
9187         * rtlanal.c (pure_const_p): Removed.
9188         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
9189         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
9190         to RTL_CONST_CALL_P.
9191         * ipa-pure-const.c (pure_const_state_e): Added looping field.
9192         (check_decl, check_tree, check_call, scan_function): Initialize
9193         looping.
9194         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
9195         (static_execute): Set looping true for recursive functions.
9196         Undo setting state to IPA_NEITHER for recursive functions.
9197         * cse.c (cse_insn):
9198         * ifcvt.c (noce_can_store_speculate_p): Changed
9199         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
9200         RTL_CONST_OR_PURE_CALL_P.
9201         * dse.c (scan_insn): Ditto.
9202         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
9203         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
9204         RTL_CONST_OR_PURE_CALL_P.
9205         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
9206         pure_call_p to RTL_CONST_CALL_P.
9207         * gimplify.c (gimplify_call_expr): Clear side effects for
9208         non-looping pure and constant calls.
9209         * calls.c (emit_call_1): Set rtl flags from ecf flags.
9210         (flags_from_decl_or_type): Set ecf flags from decl flags.
9211         (initialize_argument_information): Turn off
9212         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
9213         Change const to pure if callee_copies is true rather than just
9214         turning off const.
9215         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
9216         way of marking pure calls.
9217         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
9218         Remove hack that was supposed to fix pr7335 and remove old
9219         way of marking pure calls.
9220         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
9221         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
9222         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
9223         RTL_CONST_OR_PURE_CALL_P.
9224         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
9225         * loop-invariant.c (find_exits, find_invariant_bb): Changed
9226         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
9227         * sched-deps.c (schedule_analyze): Ditto.
9228         * rtl.h (struct rtx_def): Use call field, unchanging field, and
9229         return_val field of calls to represent pure and const function info.
9230         (CONST_OR_PURE_CALL_P): Deleted macro.
9231         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
9232         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
9233         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
9234         TREE_READONLY.
9235         * tree-optimize.c (execute_fixup_cfg): Added test for
9236         ECF_LOOPING_CONST_OR_PURE.
9237         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
9238         DECL_PURE_P.
9239         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
9240         effects for looping pure or const calls.
9241         (verify_gimple_expr): Added verification code.
9242         * config/alpha/alpha.c (alpha_legitimize_address,
9243         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
9244         RTL_CONST_CALL_P.
9245         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
9246         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
9247         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
9248         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
9249         RTL_CONST_OR_PURE_CALL_P.
9250         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
9251         and const calls to be deleted.
9252
9253 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
9254
9255         PR target/35714
9256         * config/i386/mmx.md (mmx_subv2sf3): New expander.
9257         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
9258         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
9259         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
9260         to handle nonimmediate operands.
9261         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
9262         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
9263         to handle nonimmediate operands.
9264         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
9265         (mmx_pmulhrwv4hi3): New expander.  Use
9266         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9267         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
9268         (sse2_umulv1siv1di3): New expander.  Use
9269         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9270         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
9271         (mmx_eq<mode>3): New expander.  Use
9272         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9273         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
9274         (mmx_uavgv8qi3): New expander.  Use
9275         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9276         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
9277         (mmx_uavgv4hi3): New expander.  Use
9278         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9279
9280         * config/i386/sse.md
9281         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
9282         to handle nonimmediate operands.
9283         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
9284         to handle nonimmediate operands.
9285         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
9286         to handle nonimmediate operands.
9287         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
9288         to handle nonimmediate operands.
9289         (sse2_unpckhpd_exp): New expander.  Use
9290         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9291         (sse2_unpcklpd_exp): New expander.  Use
9292         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9293         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
9294         to handle nonimmediate operands.
9295         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
9296         to handle nonimmediate operands.
9297         (*sse2_<plusminus_insn><mode>3): Rename from
9298         sse2_<plusminus_insn><mode>3 insn pattern.
9299         (sse2_<plusminus_insn><mode>3): New expander.  Use
9300         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9301         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
9302         (sse2_umulv2siv2di3): New expander.  Use
9303         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9304         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
9305         (sse4_1_mulv2siv2di3): New expander.  Use
9306         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9307         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
9308         (sse2_pmaddwd): New expander.  Use
9309         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9310         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
9311         (sse2_eq<mode>3): New expander.  Use
9312         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9313         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
9314         (sse4_1_eqv2di3): New expander.  Use
9315         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9316         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
9317         (sse2_uavgv16qi3): New expander.  Use
9318         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9319         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
9320         (sse2_uavgv16qi3): New expander.  Use
9321         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9322         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
9323         (sse2_uavgv8hi3): New expander.  Use
9324         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9325         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
9326         (ssse3_pmulhrswv8hi3): New expander.  Use
9327         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9328         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
9329         (ssse3_pmulhrswv4hi3): New expander.  Use
9330         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9331
9332         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
9333         (<sse>_vmmul<mode>3): Ditto.
9334         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
9335         (divv2df3): Ditto.
9336         (ssse3_pmaddubsw128): Use register_operand for operand 1.
9337         (ssse3_pmaddubsw): Ditto.
9338
9339         * config/i386/i386.c (struct_builtin_description)
9340         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
9341         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
9342         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
9343         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
9344         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
9345         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
9346         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
9347         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
9348         (ix86_fixup_binary_operands): Assert that src1
9349         and src2 must have the same mode when swapped.
9350         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
9351         and ix86_binary_operator_ok.  Do not force operands in registers
9352         when optimizing.
9353
9354 2008-05-07  Jan Hubicka  <jh@suse.cz>
9355
9356         * cgraph.c (dump_cgraph_node): Update.
9357         * cgraph.h (cgraph_local_info): Break out inline summary.
9358         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
9359         hook.
9360         * ipa-inline (inline_summary): New accestor function.
9361         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
9362         cgraph_decide_inlining, compute_inline_parameters): Update.
9363         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
9364
9365 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
9366
9367         Cleanup ColdFire scheduling support and add V4 pipeline model.
9368
9369         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
9370         (define_attr cpu): Add cfv4 value.
9371         (define_attr type, define_attr type1): Merge into a single 'type'
9372         attribute.  Update all uses.
9373         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
9374         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
9375         Update all uses.
9376         (define_attr opx_mem, define_attr opy_mem): Remove.
9377         (define_attr op_mem): Clean up, update comment.
9378         (define_attr size): Use specific values instead of general int.
9379         (define_attr guess, define_attr split): Remove.  Update all uses.
9380         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
9381         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
9382         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
9383         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
9384         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
9385         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
9386         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
9387         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
9388         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
9389         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
9390         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
9391         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
9392         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
9393         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
9394         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
9395         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
9396         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
9397         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
9398         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
9399         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
9400         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
9401         Update or set attributes.
9402         (stack_tie): New fake instruction.
9403
9404         * config/m68k/m68k.h (TUNE_CFV4): New macro.
9405         (m68k_sched_attr_size): Update declaration.
9406         (m68k_sched_attr_type2): Remove.
9407         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
9408         Declare new bypass predicates.
9409
9410         * config/m68k/m68k.c (m68k_sched_issue_rate,
9411         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
9412         implementations.
9413         (TARGET_SCHED_ISSUE_RATE,
9414         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
9415         (override_options): Handle scheduling for ColdFire V4 core.
9416         (m68k_expand_prologue): Emit stack_tie.
9417         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
9418         'OP_TYPE_FPN'.  Update all uses.
9419         (sched_guess_p): Remove.
9420         (sched_address_type): Handle symbolic addresses.
9421         (sched_get_operand): New static function.
9422         (sched_operand_type): Merge into sched_attr_op_type.
9423         (sched_attr_op_type): Handle FP registers, handle quick constants,
9424         update.
9425         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
9426         (m68k_sched_attr_size): Update.  Move logic to ...
9427         (sched_get_attr_size_int): New static function.
9428         (sched_get_opxy_mem_type): New static function.
9429         (m68k_sched_attr_op_mem): Update.
9430         (m68k_sched_attr_type2): Remove.
9431         (sched_cfv4_bypass_data): New static variable.
9432         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
9433         (m68k_sched_issue_rate): Implement scheduler hook.
9434         (struct _sched_ib: enabled_p): New field.
9435         (m68k_sched_variable_issue): Update.  Handle V4.
9436         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
9437         sched_dump_class_func_t, sched_dump_split_class,
9438         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
9439         sched_dump_dfa_class, m68k_sched_dump): Remove.
9440         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
9441         hook.
9442         (m68k_sched_init_global): Remove statisctics dumping, introduce
9443         sanity check that all instructions have pipeline reservations.  Handle
9444         ColdFire V4 core.
9445         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9446         Handle ColdFire V4 core.
9447         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
9448         New static functions.
9449         (m68k_sched_address_bypass_p): New bypass predicate.
9450         (sched_get_indexed_address_scale): New static function.
9451         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
9452
9453         * cf.md: Update comments.
9454         (define_attr type2): Remove.  Use 'type' attribute instead.
9455         Update all uses.
9456         (cf_ib): Rename to cfv123_ib.  Update all uses.
9457         (cf_oep): Rename to cfv123_oep.  Update all uses.
9458         (cf_chr): Rename to cfv123_chr.  Update all uses.
9459         (cf_mem): Rename to cfv123_mem.  Update all uses.
9460         (cf_mac): Move to more appropriate place.
9461         (cfv123_guess): New automaton and cpu_unit.
9462         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
9463         Update uses of 'size' attribute.  Handle before reload scheduling.
9464         (cfv123_guess): New dummy reservation for unhandled instructions.
9465         (cfv4_*): Pipeline description of ColdFire V4 core.
9466         (ignore): New reservation to handle 'ignore' type.
9467
9468 2008-05-07  Ian Lance Taylor  <iant@google.com>
9469
9470         PR middle-end/36013
9471         * gimplify.c (find_single_pointer_decl_1): Don't look through
9472         indirections.
9473         (find_single_pointer_decl): Adjust comments.
9474
9475 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
9476
9477         PR middle-end/36137
9478         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
9479         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
9480
9481         PR middle-end/36106
9482         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
9483         integral type rather than floating point, then VIEW_CONVERT_EXPR
9484         to the floating point type.
9485
9486 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
9487
9488         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
9489         TFmode op0 to register.
9490
9491 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
9492
9493         * c-decl.c (grokdeclarator): Comment typo.
9494
9495 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
9496
9497         * tree-flow.h: Remove prototype for computed_goto_p.
9498         * tree-cfg.c (computed_goto_p): Make static.
9499
9500 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
9501
9502         PR target/35657
9503         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
9504         (contains_aligned_value_p): This.  Handle _Decimal128.
9505         (ix86_function_arg_boundary): Only align _Decimal128 to its
9506         natural boundary and handle it properly.
9507
9508 2008-05-06  Martin Jambor  <mjambor@suse.cz>
9509
9510         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
9511         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
9512         (ipcp_method_set_orig_node): Removed.
9513         (ipcp_cval_get_cvalue_type): Removed.
9514         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
9515         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
9516         (ipcp_cval_set_cvalue_type): Removed.
9517         (ipcp_cval_get_cvalue): Removed.
9518         (ipcp_cval_set_cvalue): Removed.
9519         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
9520         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
9521         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
9522         (ipcp_cval_meet): Renamed to ipa_lattice_meet
9523         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
9524         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
9525         (ipcp_get_ith_lattice): Changed parameters.
9526         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
9527         (ipcp_lattice_from_jfunc): Changed parameters.
9528         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
9529         (ipcp_method_cval_print): Added temporary variable info.
9530         (ipcp_redirect): Removed already unused local variable caller.
9531         (ipcp_redirect): New temporary variable orig_callee_info
9532         (ipcp_redirect): Removed newly unused local variable callee.
9533         (ipcp_redirect): Removed (a bit confusing) local variable type.
9534         (ipcp_insert_stage): Added local variable info.
9535         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
9536         renamed too
9537         (ipcp_formal_create): Removed.
9538         (ipcp_method_cval_set): Removed.
9539         (ipcp_propagate_stage): Renamed lattice variables.
9540         (ipcp_method_cval_set_cvalue_type): Removed.
9541         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
9542         (ipcp_print_all_lattices): Changed printed strings to refer to
9543         lattices rather than cvals.
9544         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
9545         (ipcp_propagate_const): Changed formal parameters.
9546         (build_const_val): Changed formal parameters.
9547         (ipcp_insert_stage): Removed useless variable cvalue
9548         (build_const_val): Changed formal parameters.
9549         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
9550         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
9551         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
9552         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
9553         (ipcp_print_func_profile_counts): Changed string from "method" to
9554         "function"
9555         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
9556         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
9557         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
9558         (ipcp_structures_print): Renamed to ipcp_print_all_structures
9559         (ipcp_profile_print): Renamed to ipcp_print_profile_data
9560         (ipcp_lat_is_const): Changed parameters and made inline.
9561         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
9562         (ipcp_redirect): Renamed to ipcp_need_redirect_p
9563         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
9564         the predicate condition directly
9565         (ipcp_propagate_stage): Added local variable args. Removed local
9566         variable callee.  (Both are mere code simplifications.)
9567         (ipcp_method_dont_insert_const): Renamed to
9568         ipcp_node_not_modifiable_p.
9569         (ipcp_node_not_modifiable_p): Made inline.
9570         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
9571         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
9572         (ipcp_print_all_lattices): Removed variable cvalue
9573         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
9574         Updated comments.
9575
9576 2008-05-06  Olivier Hainque  <hainque@adacore.com>
9577
9578         * tree-sra.c (try_instantiate_multiple_fields): Early return
9579         if field has POINTER_TYPE.
9580
9581 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
9582
9583         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
9584         by using 'q' specifier for instruction.
9585         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
9586
9587 2008-05-06  Anatoly Sokolov <aesok@post.ru>
9588
9589         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
9590         Change mode of zero_extract from QImode to HImode.
9591         (sign bit tests peepholes): (Ditto.).
9592
9593 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
9594
9595         * config/i386/mmx.md: Remove double backslashes from asm templates.
9596         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
9597         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
9598         to handle nonimmediate operands.
9599         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
9600         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
9601         to handle nonimmediate operands.
9602         (*mmx_<code>v2sf3_finite): New insn pattern.
9603         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
9604         (mmx_<code>v2sf3): New expander.  Use
9605         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9606         (mmx_<plusminus_insn><mode>3): New expander.  Use
9607         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9608         (*mmx_<plusminus_insn><mode>3): New insn pattern.
9609         (mmx_add<mode>3): Removed.
9610         (mmx_ssadd<mode>3): Ditto.
9611         (mmx_usadd<mode>3): Ditto.
9612         (mmx_sub<mode>3): Ditto.
9613         (mmx_sssub<mode>3): Ditto.
9614         (mmx_ussub<mode>3): Ditto.
9615         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
9616         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
9617         to handle nonimmediate operands.
9618         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
9619         insn pattern.
9620         (mmx_smulv4hi3_highpart): New expander.  Use
9621         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9622         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
9623         insn pattern.
9624         (mmx_umulv4hi3_highpart): New expander.  Use
9625         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9626         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
9627         (mmx_<code>v4hi3): New expander.  Use
9628         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9629         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
9630         (mmx_<code>v8qi3): New expander.  Use
9631         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9632         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
9633         (mmx_<code><mode>3): New expander.  Use
9634         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9635
9636 2008-05-05  Jan Hubicka  <jh@suse.cz>
9637
9638         PR tree-optimization/36118
9639         * passes.c (pass_init_dump_file): Fix dump header.
9640
9641 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9642
9643         PR middle-end/36141
9644         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
9645         VCE for function decls.
9646
9647 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
9648
9649         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
9650
9651 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
9652
9653         * config/i386/i386.md (sat_plusminus): New.
9654         (plusminus_insn): Likewise.
9655         (plusminus_mnemonic): Likewise.
9656         (addsub): Removed.
9657         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
9658         (*<addsub><mode>3_cc_overflow): Renamed to ...
9659         (*<plusminus_insn><mode>3_cc_overflow): This.
9660         (*<addsub>si3_zext_cc_overflow): Renamed to ...
9661         (*<plusminus_insn>si3_zext_cc_overflow): This.
9662
9663         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
9664         (<plusminus_insn><mode>3): This.
9665         (*<addsub><mode>3): Renamed to ...
9666         (*<plusminus_insn><mode>3): This.
9667         (<sse>_vm<addsub><mode>3): Renamed to ...
9668         (<sse>_vm<plusminus_insn><mode>3): This.
9669         (sse3_h<addsub>v4sf3): Renamed to ...
9670         (sse3_h<plusminus_insn>v4sf3): This.
9671         (sse3_h<addsub>v2df3): Renamed to ...
9672         (sse3_h<plusminus_insn>v2df3): This.
9673         (<plusminus_insn><mode>3): New.
9674         (*<plusminus_insn><mode>3): Likewise.
9675         (sse2_<plusminus_insn><mode>3): Likewise.
9676         (add<mode>): Removed.
9677         (*add<mode>3): Likewise.
9678         (sse2_ssadd<mode>3): Likewise.
9679         (sse2_usadd<mode>3): Likewise.
9680         (sub<mode>3): Likewise.
9681         (*sub<mode>3): Likewise.
9682         (sse2_sssub<mode>3): Likewise.
9683         (sse2_ussub<mode>3): Likewise.
9684
9685 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
9686
9687         * gthr-single.h: Add in required interface elements as per gthr.h.
9688         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
9689         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
9690         Generalize UNUSED macro.
9691         (__gthread_once): Add.
9692         (__gthread_key_create): Add.
9693         (__gthread_key_delete): Add.
9694         (__gthread_getspecific): Add.
9695         (__gthread_setspecific): Add.
9696
9697 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
9698
9699         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
9700         the same size types for the indirect reference on the rhs, then
9701         create a VCE.
9702
9703 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
9704
9705         * config/i386/i386.md
9706         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
9707         one insn template instead of template series.
9708         (*xordi_1_rex64): Ditto.
9709         (*xordi_2_rex64): Ditto.
9710
9711 2008-05-05  Ira Rosen  <irar@il.ibm.com>
9712
9713         PR tree-optimization/36119
9714         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
9715         in case of SLP.
9716
9717 2008-06-04  Jan Hubicka  <jh@suse.cz>
9718
9719         tree-optimization/36100
9720         * tree-pass.h (pass_O0_always_inline): Declare.
9721         * ipa-inline.c (inline_transform): Remove dead code.
9722         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
9723         pass_O0_always_inline): New.
9724         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
9725
9726 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
9727
9728         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
9729         mnemonic in this_param move for TARGET_64BIT.
9730
9731 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
9732
9733         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
9734         (*strmovsi_rex_1): Ditto.
9735         (*strsetsi_1): Ditto.
9736         (*strsetsi_rex_1): Ditto.
9737
9738         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
9739         adddicc expanders using SWI mode iterator.
9740
9741 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9742
9743         PR target/36121
9744         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
9745         argument handling.
9746
9747 2008-05-04  David S. Miller  <davem@davemloft.net>
9748
9749         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
9750         (sparc*-*-linux*): Use linux.h in tm_file.
9751         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
9752         compiler defaulting to 32-bit.
9753         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
9754         no longer needed.
9755         * config/sparc/linux.h: Remove definitions now obtained
9756         properly from linux.h
9757         * config/sparc/linux64.h: Likewise.
9758         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
9759         don't want this setting for 32-bit builds in a biarch compiler.
9760         * doc/install.texi: Add sparc-linux to list of targets
9761         supporting --enable-targets=all.
9762
9763 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
9764
9765         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
9766
9767 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
9768
9769         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
9770         after V4SI_FTYPE_V8HI.
9771         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
9772         case V4SI_FTYPE_V2DF.
9773
9774 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
9775
9776         * doc/invoke.texi (max-flow-memory-locations): Removed.
9777         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
9778
9779 2008-05-03  Richard Guenther  <rguenther@suse.de>
9780
9781         PR middle-end/34973
9782         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
9783
9784 2008-05-02  David S. Miller  <davem@davemloft.net>
9785
9786         * config.gcc (need_64bit_hwint): Document libcpp dependency.
9787
9788 2008-05-02  Simon Baldwin <simonb@google.com>
9789
9790         PR bootstrap/36108
9791         * c-common.h (warn_array_subscript_range): Removed.
9792         * c-common.c (warn_array_subscript_range): Ditto.
9793         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
9794         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
9795
9796 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
9797
9798         * config/i386/i386.c (ix86_special_builtin_type): New.
9799         (bdesc_special_args): Likewise.
9800         (ix86_expand_special_args_builtin): Likewise.
9801         (ix86_init_mmx_sse_builtins): Updated.
9802         (ix86_expand_builtin): Updated.
9803         (ix86_expand_store_builtin): Removed.
9804         (ix86_expand_unop_builtin): Likewise.
9805
9806         * config/i386/mm3dnow.h (__v2sf): Moved to ...
9807         * config/i386/mmintrin.h (__v2sf): Here.
9808
9809         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
9810         const __v2sf.
9811         (_mm_loadl_pi): Likewise.
9812         (_mm_storeh_pi): Replace __v2si with __v2sf.
9813         (_mm_storel_pi): Likewise.
9814
9815         * doc/extend.texi: Correct __builtin_ia32_loadhps,
9816         __builtin_ia32_loadlps, __builtin_ia32_storehps,
9817         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
9818         __builtin_ia32_loadlpd.
9819
9820 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
9821
9822         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
9823         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
9824         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
9825         (ix86_init_mmx_sse_builtins): Updated.
9826         (ix86_expand_args_builtin): Likewise.
9827         (ix86_expand_builtin): Likewise.
9828         (ix86_expand_unop1_builtin): Renamed to ...
9829         (ix86_expand_unop_vec_merge_builtin): This.
9830
9831 2008-05-01  Jan Hubicka  <jh@suse.cz>
9832
9833         PR bootstrap/36100
9834         * ipa-inline.c (inline_generate_summary): Make static.
9835         (inline_transform): Do not call inlining at -O0; make static.
9836         * passes.c (execute_todo): Add sanity check.
9837         (execute_one_ipa_transform_pass): Execute proper flags.
9838
9839 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
9840
9841         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
9842         (DECL_NONADDRESSABLE_P): Likewise.
9843         * alias.c (record_component_aliases): Fix comment.
9844
9845 2008-05-01  Simon Baldwin <simonb@google.com>
9846
9847         * c-common.h (warn_array_subscript_range): New function.
9848         * c-common.c (warn_array_subscript_range): Ditto.
9849         * tree-vrp.c (check_array_ref): Corrected code to agree with
9850         comment, ignoring only arrays of size 0 or size 1.
9851         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
9852
9853 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
9854
9855         * config/i386/i386.c (ix86_builtin_type): Replace
9856         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
9857         (bdesc_args): Updated.
9858         (ix86_init_mmx_sse_builtins): Likewise.
9859         (ix86_expand_args_builtin): Likewise.
9860
9861         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
9862         with __v1di.
9863
9864         * doc/extend.texi: Correct __builtin_ia32_palignr.
9865
9866 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
9867
9868         PR target/36095
9869         * config/i386/i386.c (bdesc_crc32): Removed.
9870         (ix86_expand_crc32): Likewise.
9871         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
9872         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
9873         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
9874         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
9875         UINT_FTYPE_UINT_UCHAR.
9876         (bdesc_args): Updated. Add crc32 builtins.
9877         (ix86_init_mmx_sse_builtins): Updated.
9878         (ix86_expand_args_builtin): Updated to support subreg.
9879
9880         * doc/extend.texi: Correct __builtin_ia32_crc32di.
9881
9882 2008-05-01  Jan Hubicka  <jh@suse.cz>
9883
9884         * tree-pass.h (opt_pass): Add IPA_PASS.
9885         (varpool_node, cgraph_node): Forward declare.
9886         (ipa_opt_pass): Define.
9887         (pass_ipa_inline): Turn into ipa_opt_pass.
9888         (pass_apply_inline): Remove.
9889         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
9890         (apply_inline): Turn into ....
9891         (inline_transform): ... this one.
9892         (inline_generate_summary): New function.
9893         (pass_apply_inline): Remove.
9894         * function.h (ipa_opt_pass): Forward declare structure; typedef;
9895         vector.
9896         (struct function): Add ipa_transforms_to_apply.
9897         * passes.c (register_one_dump_file): Work on IPA_PASS.
9898         (init_optimization_passes): Remove pass_inline_parameters and
9899         pass_apply_inline.
9900         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
9901         (execute_one_pass) ... here; apply transforms when possible.
9902         (add_ipa_transform_pass, execute_ipa_summary_asses,
9903         execute_one_ipa_transform_pass): New.
9904         (execute_ipa_pass_list): Update for IPA_PASS type.
9905
9906 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
9907
9908         * config/i386/i386.c (ix86_builtin_type): Add
9909         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
9910         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
9911         (bdesc_args): Add SSE4a builtins.
9912         (ix86_init_mmx_sse_builtins): Updated.
9913         (ix86_expand_args_builtin): Likewise.
9914         (ix86_expand_builtin): Likewise.
9915
9916 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
9917
9918         * config/i386/i386.c (ix86_builtin_type): Add
9919         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
9920         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
9921         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
9922         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
9923         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
9924         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
9925         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
9926         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
9927         and DI_FTYPE_DI_DI_INT.
9928         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
9929         (ix86_init_mmx_sse_builtins): Updated.
9930         (ix86_expand_args_builtin): Likewise.
9931         (ix86_expand_builtin): Likewise.
9932         (ix86_expand_binop_imm_builtin): Removed.
9933
9934         * doc/extend.texi: Correct __builtin_ia32_palignr128.
9935
9936 2008-04-30  Richard Guenther  <rguenther@suse.de>
9937
9938         PR tree-optimization/32921
9939         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
9940
9941 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
9942
9943         * config/arm/arm.c (arm_unwind_emit): Use
9944         crtl->all_throwers_are_sibcalls instead of
9945         cfun->all_throwers_are_sibcalls.
9946         (arm_output_fn_unwind): Likewise.
9947         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
9948         instead of cfun->uses_pic_offset_table.
9949         (frv_expand_prologue): Likewise.
9950         (frv_frame_pointer_required): Likewise.
9951         (frv_expand_fdpic_call): Likewise.
9952         (frv_emit_movsi): Likewise.
9953         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
9954         cfun->returns_pcc_struct instead of
9955         current_function_returns_pcc_struct.
9956         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
9957         instead of cfun->calls_eh_return.
9958         (m32c_pushm_popm): Likewise.
9959         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
9960         "extern" declaration.
9961
9962 2008-04-30  Richard Guenther  <rguenther@suse.de>
9963
9964         PR tree-optimization/21636
9965         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
9966         constant address.
9967         (evaluate_stmt): Print the likely value.
9968         (ccp_visit_stmt): Avoid excessive vertical spacing.
9969
9970 2008-04-30  Rafael Espindola  <espindola@google.com>
9971
9972         * builtins.c (fold_call_expr): Return realret.
9973         * tree-ssa-threadedge.c
9974         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
9975         __builtin_object_size.
9976
9977 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
9978
9979         * gcc.c (wrapper_string): New variable.
9980         (insert_wrapper): New function.
9981         (execute): New option -wrapper.
9982         * doc/invoke.texi (Overall Options): New driver option -wrapper.
9983
9984 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
9985
9986         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
9987         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
9988         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
9989         from...
9990         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
9991         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
9992         config/rs6000/e500crtres64gprctr.asm,
9993         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
9994         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
9995         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
9996         config/rs6000/e500crtsav64gprctr.asm,
9997         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
9998         config/rs6000/e500crtsavg64gprctr.asm: New files.
9999         * config/rs6000/t-ppccomm: Add build rules for new files.
10000         (LIB2FUNCS_STATIC_EXTRA): Add new files.
10001         * config/rs6000/t-netbsd: Add build rules for new files.
10002         (LIB2FUNCS_STATIC_EXTRA): New variable.
10003         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
10004         (CRTSAVRES_DEFAULT_SPEC): Likewise.
10005         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
10006
10007 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
10008
10009         * config/i386/i386.c (ix86_builtin_type): Add
10010         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
10011         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
10012         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
10013         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
10014         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
10015         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
10016         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
10017         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
10018         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
10019         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
10020         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
10021         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
10022         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
10023         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
10024         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
10025         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
10026         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
10027         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
10028         V1DI_FTYPE_V2SI_V2SI.
10029         (bdesc_2arg): Moved to ...
10030         (bdesc_args): Here.
10031         (ix86_init_mmx_sse_builtins): Updated.
10032         (ix86_expand_args_builtin): Updated.  Take a pointer
10033         to const struct builtin_description.  Handle comparison
10034         builtin functions.
10035         (ix86_expand_sse_compare): Take a new argument for swapping operands.
10036         (ix86_expand_builtin): Updated.
10037
10038         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
10039         (ssse3_pmaddubsw128): This.
10040         (ssse3_pmaddubswv4hi3): Renamed to ...
10041         (ssse3_pmaddubsw): This.
10042
10043         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
10044         (__builtin_ia32_packssdw128): Likewise.
10045         (__builtin_ia32_packuswb128): Likewise.
10046         (__builtin_ia32_pmaddubsw): Likewise.
10047         (__builtin_ia32_pmaddubsw128): Likewise.
10048
10049 2008-04-30  Richard Guenther  <rguenther@suse.de>
10050
10051         PR tree-optimization/14847
10052         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
10053         (recognize_bits_test): Use it.
10054         (recognize_single_bit_test): Likewise.
10055
10056 2008-04-30  Martin Jambor  <mjambor@suse.cz>
10057
10058         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
10059         instead of setting number of formal parameters to zero.
10060         (ipcp_init_stage): Do not set the number of actual parameters to zero
10061         either.
10062         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
10063         which are called with variable number of arguments.
10064         (ipcp_insert_stage): Explicitely skipping all nodes which are
10065         called with variable number of arguments.
10066         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
10067         number of parameters.
10068
10069         * ipa-prop.h (struct ipa_node_params): Added flag
10070         called_with_var_arguments
10071         (ipa_set_param_count): Added.  Changed sole setter to use it.
10072         (ipa_get_param_count): Added.  All readers of param_count
10073         converted to use it instead.
10074         (ipa_set_called_with_variable_arg): Added.
10075         (ipa_is_called_with_var_arguments): Added.
10076         (ipa_get_ith_param): Added.  All readers of param_decls converted
10077         to use it instead.
10078         (ipa_set_cs_argument_count): Added, sole writer to argument_count
10079         changed to use it.
10080         (ipa_get_cs_argument_count): Added, all readers of argument_count
10081         changed to cal it.
10082         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
10083         to use it.
10084
10085         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
10086         (struct ipcp_lattice): Renamed cval_type to type
10087         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
10088
10089         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
10090         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
10091         (ipcp_insert_stage): Changed the type of variable cvalue to tree
10092         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
10093         (build_const_val): Changed the type of parameter cvalue to tree
10094         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
10095         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
10096
10097         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
10098         constant
10099
10100         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
10101         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
10102         (ipa_add_method): Renamed to ipa_push_func_to_list
10103         (ipa_remove_method): Renamed to ipa_pop_func_from_list
10104         (ipa_callsite_param_count): Removed.
10105         (ipa_callsite_param_count_set): Removed.
10106         (ipa_callsite_param): Removed.
10107         (ipa_callsite_callee): Removed.
10108         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
10109         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
10110         (ipa_method_formal_count): Removed.
10111         (ipa_method_formal_count_set): Removed.
10112         (ipa_method_get_tree): Removed.
10113         (ipa_method_tree_map_create): Removed.
10114         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
10115         (ipa_create_param_decls_array): Creates the array itself
10116         (ipa_create_param_decls_array): Temporary variable info instead of
10117         a few dereferences.
10118         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
10119         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
10120         (get_type): Removed.
10121         (ipa_jf_get_info_type): Removed.
10122         (ipa_node_create): Renamed to ipa_create_node_params
10123         (ipa_free): Renamed to ipa_free_all_node_params
10124         (ipa_nodes_create): Renamed to ipa_create_all_node_params
10125         (ipa_edges_create): Renamed to ipa_create_all_edge_args
10126         (ipa_edges_free): Renamed to ipa_free_all_edge_args
10127         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
10128         (ipa_free_all_node_params): Deallocation to jump_functions moved to
10129         ipa_free_all_edge_args
10130         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
10131         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
10132         (ipa_create_methodlist_node): Removed.
10133         (ipa_methodlist_method): Removed.
10134         (ipa_methodlist_method_set): Removed.
10135         (ipa_methodlist_next_method): Removed.
10136         (ipa_methodlist_next_method_set): Removed.
10137         (ipa_method_is_modified): Removed.
10138         (ipa_method_modify_create): Removed.
10139         (ipa_method_modify_init): Temporary variable info instead of a few
10140         dereferences.
10141         (ipa_detect_param_modifications): Temporary variable info instead of
10142         a few dereferences.
10143         (ipa_compute_jump_functions): Temporary variable info instead of
10144         a few dereferences.
10145         (ipa_method_modify_set): Removed.
10146         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
10147         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
10148         than craph_node as the first parameter.
10149         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
10150         (ipa_method_modify_init): Removed.
10151         (ipa_compute_jump_functions): Added a temp variable instead of
10152         repeatadly dereferencing the cgraph_edge.aux pointer
10153         (ipa_callsite_param_set_type): Removed.
10154         (ipa_compute_jump_functions): i renamed to index and moved to
10155         an inner block
10156         (ipa_callsite_param_set_info_type_formal): Removed.
10157         (ipa_callsite_param_set_info_type): Removed.
10158         (ipa_callsite_param_map_create): Removed.
10159         (ipa_callsite_tree): Removed.
10160         (ipa_callsite_caller): Removed.
10161         (ipa_pop_func_from_list): return_method removed to return_func
10162
10163         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
10164         prefixed all values with IPA_. Changed all users.
10165         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
10166         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
10167         and FORMAL_IPATYPE IPA_PASS_THROUGH.
10168         (union parameter_info): Renamed to jump_func_value.
10169         (union jump_func_value): Renamed value to constant
10170         (struct ipa_jump_func): Renamed info_type to value
10171         (struct ipa_node): Renamed to ipa_node_params
10172         (struct ipa_node_params): Renamed ipa_arg_num to param_count
10173         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
10174         (struct ipa_node_params): Renamed ipa_mod to modified_flags
10175         (struct ipa_edge): Renamed to ipa_edge_args
10176         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
10177         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
10178         (struct ipa_methodlist): Renamed to ipa_func_list
10179         (struct ipa_func_list): method_p renamed to node, next_method
10180         renamed to next
10181         (ipa_methodlist_p): Removed, switched all users to struct pointer
10182         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
10183
10184 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
10185
10186         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
10187         (rs6000_emit_epilogue): Use backchain to restore only when we
10188         have a large frame.  Make use of frame pointer to restore if we
10189         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
10190
10191 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
10192
10193         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
10194         Add mode to zero_extract.
10195         (sign bit tests peepholes): (Ditto.).
10196
10197 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
10198
10199         * config/i386/i386.c (ix86_builtins): Replace Prescott New
10200         Instructions in comments with SSE3.
10201         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
10202         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
10203         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
10204         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
10205         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
10206         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
10207         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
10208         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
10209         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
10210         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
10211         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
10212         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
10213         (bdesc_sse_args): Renamed to ...
10214         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
10215         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
10216         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
10217         IX86_BUILTIN_FABSQ.
10218         (bdesc_1arg): Moved to ...
10219         (bdesc_args): Here.
10220         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
10221         Instructions in comments with SSE3.
10222         (ix86_expand_sse_operands_builtin): Renamed to ...
10223         (ix86_expand_args_builtin): This.  Updated.
10224         (ix86_expand_unop1_builtin): Update comments.
10225         (ix86_expand_builtin): Updated.
10226
10227 2008-04-29  Richard Guenther  <rguenther@suse.de>
10228
10229         PR tree-optimization/36078
10230         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
10231         Update virtual SSA form after cleaning up the CFG.
10232
10233 2008-04-29  Richard Guenther  <rguenther@suse.de>
10234
10235         PR middle-end/15255
10236         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
10237
10238 2008-04-29  Richard Guenther  <rguenther@suse.de>
10239
10240         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
10241         (compute_may_aliases): Do not call finalize_ref_all_pointers.
10242         (compute_flow_insensitive_aliasing): Do not treat
10243         PTR_IS_REF_ALL pointers special.
10244         (get_smt_for): Likewise.
10245         (may_alias_p): Re-structure.
10246         (is_escape_site): A ref-all pointer conversion is not an escape site.
10247         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
10248         PTR_IS_REF_ALL pointers special.
10249         * tree-ssa-structalias.h (struct alias_info): Remove
10250         ref_all_symbol_mem_tag field.
10251         (PTR_IS_REF_ALL): Remove.
10252
10253 2008-04-29  Richard Guenther  <rguenther@suse.de>
10254
10255         PR middle-end/36077
10256         * fold-const.c (extract_muldiv_1): In combining division constants
10257         make sure to never overflow.
10258
10259 2008-04-29  Nick Clifton  <nickc@redhat.com>
10260
10261         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
10262
10263 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10264
10265         PR bootstrap/35169
10266         * optc-gen.awk: Work around HP-UX/IA awk bug.
10267
10268 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
10269
10270         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
10271         2008-04-25 commit.
10272
10273 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
10274
10275         PR target/36073
10276         * config/i386/i386.md
10277         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
10278         Change operand 1 predicate to nonimmediate_operand.
10279
10280 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
10281
10282         PR debug/36060
10283         * dwarf2out.c (struct die_struct): Mark as chain_circular through
10284         die_sub field.
10285         * gengtype.c (walk_type, write_func_for_structure): Handle
10286         chain_circular.
10287         * doc/gty.texi: Document chain_circular.
10288
10289 2008-04-28  Richard Guenther  <rguenther@suse.de>
10290
10291         PR tree-optimization/36066
10292         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
10293         SCEV and loop.
10294
10295 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
10296
10297         PR target/36064
10298         * config/i386/i386.md
10299         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
10300         Use match_scratch instead of match_operand for operands 3 and 4.
10301
10302 2008-04-27  Richard Guenther  <rguenther@suse.de>
10303
10304         PR tree-optimization/18754
10305         PR tree-optimization/34223
10306         * tree-pass.h (pass_complete_unrolli): Declare.
10307         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
10308         loop size before and after unconditionally of UL_NO_GROWTH in effect.
10309         Rewrite loop into loop closed SSA form if it is not already.
10310         (tree_unroll_loops_completely): Re-structure to iterate over
10311         innermost loops with intermediate CFG cleanups.
10312         Unroll outermost loops only if requested or the code does not grow
10313         doing so.
10314         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
10315         loops are available.
10316         (tree_vectorize): Instead do so here.
10317         (tree_complete_unroll): Also unroll outermost loops.
10318         (tree_complete_unroll_inner): New function.
10319         (gate_tree_complete_unroll_inner): Likewise.
10320         (pass_complete_unrolli): New pass.
10321         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
10322         uses outside of the loop.
10323         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
10324         form if it is available.
10325         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
10326         * passes.c (init_optimization_passes): Schedule complete inner
10327         loop unrolling pass before the first CCP pass after final inlining.
10328
10329 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
10330
10331         * targhooks.h (default_emutls_var_fields,
10332         default_emutls_var_init): Declare.
10333         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
10334         * target.h (struct gcc_target): Add struct emutls member.
10335         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
10336         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
10337         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
10338         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
10339         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
10340         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
10341         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
10342         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
10343         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
10344         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
10345         emit debug information.
10346         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
10347         * varasm.c: Include targhooks.h.
10348         (emutls_object_section, emutls_tmpl_section): New.
10349         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
10350         (EMUTLS_SEPARATOR): New.
10351         (prefix_name): New.
10352         (get_emutls_object_name): New.
10353         (default_emutls_var_fields): New, broken out of ...
10354         (get_emutls_object_type): ... here.  Adjust to use target hooks.
10355         (get_emutls_init_templ_addr): Adjust to use target hooks.
10356         (emutls_decl): Adjust to use target hooks.
10357         (emutls_finish): Likewise.
10358         (default_emutls_var_init): New, broken out of ...
10359         (assemble_variable): ... here.  Adjust to use target hooks.
10360         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
10361         SECCAT_EMUTLS_TMPL.
10362         * c-common.c (handle_section_attribute): Prevent overriding
10363         sections for emulated tls with special sections.
10364         * config/i386/i386.c (x86_64_elf_select_section): Add
10365         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
10366         (x86_64_elf_unique_section): Likewise.
10367         * config/vxworks.c: Include tree.h.
10368         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
10369         (vxworks_override_options): Set TLS scheme.
10370         * doc/tm.texi (Emulated TLS): New node.
10371
10372 2008-04-26  Simon Baldwin <simonb@google.com>
10373
10374         PR c/35652
10375         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
10376         with propagated string constants.
10377
10378 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
10379
10380         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
10381         constraint for operand 2 when operand 0 is memory operand.
10382         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
10383         operand 0 is memory operand.
10384         (fix_trunc<mode>_i387_with_temp): Ditto.
10385         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
10386         operand 2 when operand 1 is memory operand.
10387         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
10388         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
10389         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
10390         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
10391         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
10392         operands 2,3 and 4 when operand 1 is memory operand.
10393         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
10394         is memory operand.
10395         (fistdi2_floor_with_temp): Ditto.
10396         (fist<mode>2_floor_with_temp): Ditto.
10397         (fistdi2_ceil_with_temp): Ditto.
10398         (fist<mode>2_ceil_with_temp): Ditto.
10399         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
10400
10401 2008-04-26  David Daney  <ddaney@avtrex.com>
10402
10403         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
10404         unspec_volitile.
10405         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
10406         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
10407         UNSPEC_UPDATE_GOT_VERSION): Renumber.
10408         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
10409         (compare_and_swap_12): New insn.
10410         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
10411         * config/mips/mips.c (mips_force_binary): New function.
10412         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
10413         (mips_expand_compare_and_swap_12): New function.
10414         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
10415
10416 2008-04-25  Jan Hubicka  <jh@suse.cz>
10417
10418         PR testsuite/35843
10419         * cfgexpand.c (pass_expand): Turn into RTL pass.
10420         * passes.c (execute_one_pass): Do pass typechecking after execution.
10421         * tree-pass.h (pass_expand): Turn into RTL pass.
10422
10423         * function.h (struct rtl_data): Move here fields
10424         accesses_prior_frames, calls_eh_return, saves_all_registers,
10425         has_nonlocal_goto, has_asm_statement, is_thunk,
10426         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
10427         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
10428         arg_pointer_save_area_init from struct function; turn into bool.
10429         (struct function): Move
10430         calls_eh_return, saves_all_registers, has_nonlocal_goto,
10431         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
10432         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
10433         tail_call_emit, arg_pointer_save_area_init
10434         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
10435         (current_function_returns_struct, current_function_returns_pcc_struct,
10436         current_function_calls_setjmp, current_function_calls_alloca,
10437         current_function_accesses_prior_frames,
10438         current_function_calls_eh_return, current_function_is_thunk,
10439         current_function_stdarg, current_function_profile,
10440         current_function_limit_stack, current_function_uses_pic_offset_table,
10441         current_function_uses_const_pool, current_function_has_nonlocal_label,
10442         current_function_saves_all_registers,
10443         current_function_has_nonlocal_goto,
10444         current_function_has_asm_statement): Remove accesor macros.
10445         * ra-conflict.c (global_conflicts): Update.
10446         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
10447         (suitable_for_tail_call_opt_p): Update.
10448         * builtins.c (expand_builtin_return_addr): Update.
10449         (expand_builtin_setjmp_setup): Update.
10450         (expand_builtin_nonlocal_goto): Update.
10451         * final.c (final_start_function): Update.
10452         (profile_function): Update.
10453         (leaf_function_p): Update.
10454         (only_leaf_regs_used): Update.
10455         * df-scan.c (df_get_exit_block_use_set): Update.
10456         * dojump.c (clear_pending_stack_adjust): Update.
10457         * tree-stdarg.c (gate_optimize_stdarg): Update.
10458         * gimple-low.c (lower_function_body): Update.
10459         * global.c (compute_regsets): Update.
10460         (global_alloc): Update.
10461         * dwarf2out.c (dwarf2out_begin_prologue): Update.
10462         * expr.c (expand_assignment): Update.
10463         * dse.c (dse_step0): Update.
10464         (dse_step1): Update.
10465         * c-decl.c (store_parm_decls): Update.
10466         * local-alloc.c (combine_regs): Update.
10467         (find_free_reg): Update.
10468         * function.c (assign_parms_augmented_arg_list): Update.
10469         (assign_parm_find_data_types): Update.
10470         (assign_parms): Update.
10471         (allocate_struct_function): Update.
10472         (expand_function_start): Update.
10473         (expand_function_end): Update.
10474         (get_arg_pointer_save_area): Update.
10475         (thread_prologue_and_epilogue_insns): Update.
10476         (rest_of_match_asm_constraints): Update.
10477         * stor-layout.c (variable_size): Update.
10478         * gcse.c (gcse_main): Update.
10479         (bypass_jumps): Update.
10480         * gimplify.c (gimplify_function_tree): Update.
10481         * calls.c (emit_call_1): Update.
10482         (expand_call): Update.
10483         * bt-load.c (compute_defs_uses_and_gen): Update.
10484         * except.c (sjlj_assign_call_site_values): Update.
10485         (sjlj_emit_function_enter): Update.
10486         (can_throw_external): Update.
10487         (set_nothrow_function_flags): Update.
10488         (expand_builtin_unwind_init): Update.
10489         (expand_eh_return): Update.
10490         (convert_to_eh_region_ranges): Update.
10491         (output_function_exception_table): Update.
10492         * emit-rtl.c (gen_tmp_stack_mem): Update.
10493         * cfgexpand.c (expand_used_vars): Update.
10494         (tree_expand_cfg): Update.
10495         * cfgcleanup.c (rest_of_handle_jump): Update.
10496         * explow.c (allocate_dynamic_stack_space): Update.
10497         * varasm.c (assemble_start_function): Update.
10498         (force_const_mem): Update.
10499         (mark_constant_pool): Update.
10500         * tree-optimize.c (tree_rest_of_compilation): Update.
10501         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
10502         * tree-cfg.c (notice_special_calls): Update.
10503         (is_ctrl_altering_stmt): Update.
10504         (tree_can_make_abnormal_goto): Update.
10505         (tree_purge_dead_abnormal_call_edges): Update.
10506         * config/alpha/predicates.md: Update.
10507         * config/alpha/alpha.c (alpha_sa_mask): Update.
10508         (alpha_sa_size): Update.
10509         (alpha_does_function_need_gp): Update.
10510         (alpha_expand_prologue): Update.
10511         (alpha_start_function): Update.
10512         (alpha_output_function_end_prologue): Update.
10513         (alpha_expand_epilogue): Update.
10514         * config/frv/frv.c (frv_stack_info): Update.
10515         (frv_expand_epilogue): Update.
10516         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
10517         (s390_register_info): Update.
10518         (s390_frame_info): Update.
10519         (s390_init_frame_layout): Update.
10520         (s390_can_eliminate): Update.
10521         (save_gprs): Update.
10522         * config/spu/spu.c (spu_split_immediate): Update.
10523         (need_to_save_reg): Update.
10524         (spu_expand_prologue): Update.
10525         (spu_expand_epilogue): Update.
10526         * config/sparc/sparc.md: Update.
10527         * config/sparc/sparc.c (eligible_for_return_delay): Update.
10528         (sparc_tls_got): Update.
10529         (legitimize_pic_address): Update.
10530         (sparc_emit_call_insn): Update.
10531         (sparc_expand_prologue): Update.
10532         (output_return): Update.
10533         (print_operand): Update.
10534         (sparc_function_ok_for_sibcall): Update.
10535         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
10536         * config/m32r/m32r.md: Update.
10537         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
10538         (m32r_compute_frame_size): Update.
10539         (m32r_expand_prologue): Update.
10540         (m32r_expand_epilogue): Update.
10541         (m32r_legitimize_pic_address): Update.
10542         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
10543         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
10544         * config/i386/i386.c (ix86_frame_pointer_required): Update.
10545         (gen_push): Update.
10546         (ix86_save_reg): Update.
10547         (ix86_compute_frame_layout): Update.
10548         (ix86_expand_prologue): Update.
10549         (ix86_expand_epilogue): Update.
10550         * config/sh/sh.c (output_stack_adjust): Update.
10551         (calc_live_regs): Update.
10552         (sh5_schedule_saves): Update.
10553         (sh_expand_prologue): Update.
10554         (sh_expand_epilogue): Update.
10555         (sh_setup_incoming_varargs): Update.
10556         (sh_allocate_initial_value): Update.
10557         (sh_get_pr_initial_val): Update.
10558         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
10559         * config/sh/sh.md (label:): Update.
10560         * config/avr/avr.c (out_movhi_mr_r): Update.
10561         * config/crx/crx.h (enum): Update.
10562         * config/xtensa/xtensa.h (along): Update.
10563         * config/stormy16/stormy16.c Update.
10564         (xstormy16_compute_stack_layout): Update.
10565         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
10566         (fr30_expand_prologue): Update.
10567         * config/cris/cris.c (cris_conditional_register_usage): Update.
10568         (cris_reg_saved_in_regsave_area): Update.
10569         (cris_initial_frame_pointer_offset): Update.
10570         (cris_simple_epilogue): Update.
10571         (cris_expand_prologue): Update.
10572         (cris_expand_epilogue): Update.
10573         (cris_expand_pic_call_address): Update.
10574         (cris_asm_output_symbol_ref): Update.
10575         (cris_asm_output_label_ref): Update.
10576         * config/cris/cris.md Update.
10577         * config/iq2000/iq2000.c (compute_frame_size): Update.
10578         (iq2000_expand_epilogue): Update.
10579         * config/mt/mt.h (save_direction): Update.
10580         * config/mn10300/mn10300.c (mn10300_function_value): Update.
10581         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10582         (ia64_secondary_reload_class): Update.
10583         * config/m68k/m68k.c (m68k_save_reg): Update.
10584         (m68k_expand_prologue): Update.
10585         (m68k_expand_epilogue): Update.
10586         (legitimize_pic_address): Update.
10587         * config/rs6000/rs6000.c (rs6000_got_register): Update.
10588         (first_reg_to_save): Update.
10589         (first_altivec_reg_to_save): Update.
10590         (compute_vrsave_mask): Update.
10591         (compute_save_world_info): Update.
10592         (rs6000_stack_info): Update.
10593         (spe_func_has_64bit_regs_p): Update.
10594         (rs6000_ra_ever_killed): Update.
10595         (rs6000_emit_eh_reg_restore): Update.
10596         (rs6000_emit_allocate_stack): Update.
10597         (rs6000_emit_prologue): Update.
10598         (rs6000_emit_epilogue): Update.
10599         (rs6000_output_function_epilogue): Update.
10600         (output_profile_hook): Update.
10601         (rs6000_elf_declare_function_name): Update.
10602         * config/rs6000/rs6000.h (rs6000_args): Update.
10603         * config/rs6000/rs6000.md: Update.
10604         * config/mcore/mcore.c (mcore_expand_prolog): Update.
10605         * config/arc/arc.c (arc_output_function_epilogue): Update.
10606         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
10607         * config/darwin.c (machopic_function_base_name): Update.
10608         * config/score/score3.c (score3_compute_frame_size): Update.
10609         (rpush): Update.
10610         (rpop): Update.
10611         (score3_epilogue): Update.
10612         * config/score/score7.c (score7_compute_frame_size): Update.
10613         (score7_prologue): Update.
10614         (score7_epilogue): Update.
10615         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
10616         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
10617         * config/arm/arm.c (use_return_insn): Update.
10618         (require_pic_register): Update.
10619         (arm_load_pic_register): Update.
10620         (arm_compute_save_reg0_reg12_mask): Update.
10621         (arm_compute_save_reg_mask): Update.
10622         (thumb1_compute_save_reg_mask): Update.
10623         (output_return_instruction): Update.
10624         (arm_output_function_prologue): Update.
10625         (arm_output_epilogue): Update.
10626         (arm_get_frame_offsets): Update.
10627         (arm_expand_prologue): Update.
10628         (thumb_pushpop): Update.
10629         (thumb_exit): Update.
10630         (thumb1_expand_prologue): Update.
10631         (thumb1_expand_epilogue): Update.
10632         (arm_unwind_emit): Update.
10633         (arm_output_fn_unwind): Update.
10634         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
10635         * config/arm/arm.md: Update.
10636         * config/pa/pa.md: Update.
10637         * config/pa/pa.c (legitimize_pic_address): Update.
10638         (compute_frame_size): Update.
10639         (hppa_expand_prologue): Update.
10640         (hppa_expand_epilogue): Update.
10641         (borx_reg_operand): Update.
10642         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
10643         (HARD_REGNO_RENAME_OK): Update.
10644         * config/mips/mips.c (mips_global_pointer): Update.
10645         (mips_save_reg_p): Update.
10646         (mips_compute_frame_info): Update.
10647         (mips_frame_pointer_required): Update.
10648         (mips_expand_prologue): Update.
10649         (mips_expand_epilogue): Update.
10650         (mips_can_use_return_insn): Update.
10651         (mips_reorg_process_insns): Update.
10652         * config/v850/v850.c (compute_register_save_size): Update.
10653         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
10654         * config/mmix/mmix.c (along): Update.
10655         (mmix_expand_epilogue): Update.
10656         * config/bfin/bfin.c (legitimize_pic_address): Update.
10657         (must_save_p): Update.
10658         (stack_frame_needed_p): Update.
10659         (add_to_reg): Update.
10660         (bfin_expand_prologue): Update.
10661         * stmt.c (expand_asm_operands): Update.
10662         * reload1.c (reload): Update.
10663         (init_elim_table): Update.
10664
10665 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
10666
10667         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
10668
10669 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
10670
10671         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
10672         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
10673         (mov<mode>): Removed.
10674         (*movv4sf_internal): Likewise.
10675         (*movv2df_internal): Likewise.
10676
10677 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
10678
10679         * config.gcc (crx-*-elf): Remove deprecation.
10680
10681 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
10682
10683         * config/i386/cygming-crtend.c (register_frame_ctor): Register
10684         __gcc_deregister_frame with atexit.
10685         (deregister_frame_dtor): Remove.
10686
10687 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
10688             Nathan Sidwell  <nathan@codesourcery.com>
10689
10690         * config/rs6000/rs6000.opt (mspe): Remove Var property.
10691         (misel): Likewise.
10692         * config/rs6000/rs6000.h (rs6000_spe): Declare.
10693         (rs6000_isel): Likewise.
10694         * config/rs6000/rs6000.c (rs6000_spe): New variable.
10695         (rs6000_isel): New variable.
10696         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
10697
10698 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
10699
10700         PR c++/35758
10701         * c-common.c (handle_vector_size_attribute): Call
10702         lang_hooks.types.reconstruct_complex_type instead of
10703         reconstruct_complex_type.
10704         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
10705         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
10706         * langhooks.h (struct lang_hooks_for_types): Add
10707         reconstruct_complex_type hook.
10708         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
10709         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
10710
10711 2008-04-24  Richard Guenther  <rguenther@suse.de>
10712
10713         * c-common.h (check_builtin_function_arguments): Declare.
10714         * c-common.c (validate_nargs): New function.
10715         (check_builtin_function_arguments): Likewise.
10716         * c-typeck.c (build_function_call): Call
10717         check_builtin_function_arguments.
10718         * builtins.c (fold_builtin_classify): Remove error reporting code.
10719         (fold_builtin_unordered_cmp): Likewise.
10720         (fold_builtin_1): Likewise.
10721         (fold_builtin_n): Likewise.
10722
10723 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
10724
10725         PR tree-optimization/36008
10726         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
10727         the original op1, rather than delta by step.
10728
10729 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
10730             Sebastian Pop  <sebastian.pop@amd.com>
10731
10732         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
10733         eliminate_local_variables_stmt, eliminate_local_variables,
10734         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
10735         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
10736         of code delimited by two edges in the CFG.
10737         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
10738         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
10739         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
10740         the case of parallelisation of reductions.
10741         (expr_invariant_in_region_p): New.
10742
10743         * tree-flow.h (gather_blocks_in_sese_region): Declared.
10744         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
10745
10746 2008-04-24  Ira Rosen  <irar@il.ibm.com>
10747             Richard Guenther  <rguenther@suse.de>
10748
10749         PR tree-optimization/36034
10750         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
10751         incapable of dealing with loads with gaps.
10752
10753 2008-04-24  Rafael Espindola  <espindola@google.com>
10754
10755         * tree-flow.h (vrp_evaluate_conditional): Change signature.
10756         * tree-ssa-propagate.c (fold_predicate_in): Update call to
10757         vrp_evaluate_conditional.
10758         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
10759         (vrp_evaluate_conditional): Split the cond argument.
10760         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
10761         (simplify_stmt_for_jump_threading): Update call to
10762         vrp_evaluate_conditional.
10763
10764 2008-04-24  Ira Rosen  <irar@il.ibm.com>
10765
10766         PR tree-optimization/35982
10767         * tree-vect-analyze.c (vect_check_interleaving): Check that the
10768         interleaved data-refs are of the same type.
10769
10770 2008-04-24  Danny Smith  <dannysmith@users.net>
10771
10772         * c-format.c (check_format_info_main): Use strncmp rather than a
10773         magic prefix to handle multichar length specs.
10774         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
10775         Don't prefix "I64" and "I32" with '\0'.
10776
10777 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
10778
10779         PR target/36015
10780         * config/i386/i386.c (init_cumulative_args): Don't pass anything
10781         in registers for -m32 only if stdarg_p (fntype).
10782
10783 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
10784
10785         PR rtl-optimization/36006
10786         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
10787         temp to op0 in order to avoid invalid rtx sharing.
10788
10789 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
10790
10791         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
10792         check TREE_INVARIANT.
10793         * tree-gimple.c (is_gimple_address): New.
10794         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
10795         * tree-gimple.h (is_gimple_address): New.
10796         * tree.h (decl_address_invariant_p): New.
10797         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
10798         (build_string): Likewise.
10799         (decl_address_invariant_p): New, from is_gimple_invariant_address.
10800         (tree_invariant_p_1): Likewise.
10801         (save_expr): Use it.
10802         (tree_invariant_p): New.
10803         (skip_simple_arithmetic): Use it.
10804         (stabilize_reference_1): Use it.
10805         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
10806         simplify.
10807         (build1_stat): Drop code to compute TREE_INVARIANT.
10808         (build2_stat): Drop code to compute TREE_INVARIANT.
10809         (build3_stat): Drop code to compute TREE_INVARIANT.
10810         (build4_stat): Drop code to compute TREE_INVARIANT.
10811         (build5_stat): Drop code to compute TREE_INVARIANT.
10812         (build7_stat): Drop code to compute TREE_INVARIANT.
10813         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
10814         * tree.h (struct tree_base): Remove invariant_flag.
10815         (TREE_INVARIANT): Remove.
10816         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
10817         (fold_builtin_expect): Check TREE_CONSTANT.
10818         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
10819         * c-tree.h (c_expr_to_decl): Drop third parameter.
10820         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
10821         (build_c_cast): Don't set TREE_INVARIANT.
10822         (pop_init_level): Don't set TREE_INVARIANT.
10823         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
10824         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
10825         TREE_CONSTANT.
10826         (gimplify_init_constructor): Don't set TREE_INVARIANT.
10827         (gimplify_addr_expr): Adjust comment.
10828         * tree-mudflap.c (mf_build_string):
10829         * print-tree.c (print_node): Don't print TREE_INVARIANT.
10830         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
10831         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
10832         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
10833         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
10834         * langhooks.h (struct lang_hooks): Drop third parameter from
10835         expr_to_decl.
10836
10837 2008-04-23  Richard Guenther  <rguenther@suse.de>
10838
10839         PR tree-optimization/27799
10840         PR tree-optimization/32921
10841         PR tree-optimization/32624
10842         * tree-ssa-structalias.c (merge_smts_into): Only merge the
10843         SMTs aliases and the tag itself into the solution.
10844         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
10845         merge the points-to solution back into the SMT aliases.
10846         (may_alias_p): Use alias_set_subset_of instead of
10847         aliases_conflict_p.  A pointer which points to
10848         memory with alias set zero may access any variable.
10849
10850 2008-04-23  Richard Guenther  <rguenther@suse.de>
10851
10852         * alias.c (alias_set_subset_of): Correctly handle asking
10853         if zero is a subset of an alias set with zero child.
10854         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
10855         (compute_flow_insensitive_aliasing): Correctly walk all
10856         pointers.  Do not unnecessarily union sets.
10857
10858 2008-04-23  Richard Guenther  <rguenther@suse.de>
10859
10860         PR middle-end/36021
10861         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
10862
10863 2008-04-22  Tomas Bily  <tbily@suse.cz>
10864
10865         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
10866         unreachable case.
10867         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
10868         NON_LVALUE_EXPR.
10869         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10870         * tree-ssa-structalias.c (get_constraint_for): Likewise.
10871         * tree-inline.c (estimate_num_insns_1): Likewise.
10872         * varasm.c (const_hash_1, compare_constant, copy_constant)
10873         (compute_reloc_for_constant, output_addressed_constants): Likewise.
10874         * emit-rtl.c (component_ref_for_mem_expr)
10875         (set_mem_attributes_minus_bitpos): Likewise.
10876         * expr.c (highest_pow2_factor, expand_expr_real_1, )
10877         (is_aligning_offset): Likewise.
10878         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
10879         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
10880         * dojump.c (do_jump): Likewise.
10881         * builtins.c (get_pointer_alignment, get_memory_rtx)
10882         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
10883         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
10884
10885 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
10886
10887         PR rtl-optimization/36017
10888         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
10889         expanding the library call.
10890
10891 2008-04-22  Ian Lance Taylor  <iant@google.com>
10892
10893         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
10894         than size_in_bytes.
10895
10896 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
10897
10898         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
10899         of LR/CTR moves for Power6.
10900
10901 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
10902
10903         PR middle-end/36003
10904         * passes.c (init_optimization_passes): Remove
10905         pass_fast_rtl_byte_dce.
10906
10907 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
10908
10909         PR target/29096
10910         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
10911         builtin functions to generate faster code.
10912         (_mm_cvtpu16_ps): Ditto.
10913         (_mm_cvtpi32x2_ps): Ditto.
10914
10915 2008-04-22  Nick Clifton  <nickc@redhat.com>
10916
10917         * common.opt (ftree-loop-distribution): Add Optimization
10918         attribute.
10919
10920         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
10921         (frv_expand_builtin_va_start): Likewise.
10922
10923         * config/arm/arm.c (thumb_find_work_register): Fix location of
10924         argument register count.
10925
10926 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
10927
10928         Support scheduling for ColdFire V1 and V3 microarchitecture.
10929         Improve scheduling of multiplication instructions.
10930
10931         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
10932         (mac): New instruction attribute.
10933         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
10934         (m68k_sched_mac): New variable.
10935         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
10936         Handle cfv1 and cfv3.
10937         (max_insn_size): New static variable.
10938         (struct _sched_ib): New type.
10939         (sched_ib): New static variable.
10940         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
10941         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
10942         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
10943         Update.
10944         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
10945         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
10946         new variables.  Update.
10947         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
10948         Add modeling of cfv3 instruction buffer.  Update.
10949         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
10950         * config/m68k/m68k.h (TUNE_CFV3): New macro.
10951         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
10952         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
10953         a particular reservation applies to.
10954         (type2): Reorganize attribute values.  Rename alu to alu_reg,
10955         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
10956         to mul_l and mul_w.
10957         (cf_ib_*): Simplify description of instruction buffer.
10958         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
10959         (cf_mem): Split into cf_mem1 and cf_mem2.
10960         (cf_v2_move_??): Rename to cfv12_alu_??.
10961         (cf_v2_move_l_??): Rename to cfv12_omove_??.
10962         (cf_v2_mul_??): Remove reservations.
10963         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
10964         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
10965         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
10966         appropriate place.
10967         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
10968         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
10969         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
10970         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
10971         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
10972         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
10973         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
10974         expansions of the above reservations for instructions of sizes
10975         1, 2 and 3 words.
10976
10977 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
10978
10979         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
10980
10981 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
10982
10983         * coverage.c: Include tree-pass.h.
10984         (coverage_counter_alloc): Print da_file_name to the dump file.
10985
10986 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
10987
10988         * sbitmap.c (sbitmap_range_empty_p): New function.
10989         * sbitmap.h (sbitmap_range_empty_p): New function.
10990         * bitmap.h: Now includes obstack.h.
10991
10992 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
10993             Kenneth Zadeck  <zadeck@naturalbridge.com>
10994
10995         * dbgcnt.def (ra_byte_scan): Added.
10996         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
10997         when the last hit happens for a counter.
10998         * timevar.def (TV_DF_BYTE_LR): New variable.
10999         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
11000         * passes.c (pass_fast_rtl_byte_dce): New pass.
11001         * fwprop.c (update_df): Added mode to call df_ref_create.
11002         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
11003         DF_REF_EXTRACT_OFFSET.
11004         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
11005         DF_BYTE_LR_OUT, df_byte_lr): New macro.
11006         (df_mm): New enum.
11007         (df_ref_extract): Added mode field.
11008         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
11009         DF_REF_EXTRACT_OFFSET.
11010         (DF_REF_EXTRACT_MODE): New macro.
11011         (df_byte_lr_bb_info): New structure.
11012         (df_print_byte_regset, df_compute_accessed_bytes,
11013         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
11014         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
11015         df_byte_lr_simulate_uses,
11016         df_byte_lr_simulate_artificial_refs_at_top,
11017         df_byte_lr_simulate_artificial_refs_at_end,
11018         df_compute_accessed_bytes): New function.
11019         (df_ref_create): Add parameter.
11020         (df_byte_lr_get_bb_info): New inline function.
11021         * df-scan.c (df_ref_record, df_uses_record,
11022         df_ref_create_structure): Added mode parameter.
11023         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
11024         df_defs_record, df_uses_record, df_get_conditional_uses,
11025         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
11026         df_entry_block_defs_collect, df_exit_block_uses_collect):
11027         Added mode parameter to calls to df_ref_record, df_uses_record,
11028         df_ref_create_structure.
11029         (df_ref_equal_p, df_ref_compare): Added test for modes.
11030         (df_ref_create_structure): Added code to set mode.  Renamed
11031         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
11032         DF_REF_EXTRACT_OFFSET.
11033         * df-core.c (df_print_byte_regset): New function.
11034         * df-byte-scan.c: New file.
11035         * df-problems.c (df_rd_transfer_function): Removed unnecessary
11036         calls to BITMAP_FREE.
11037         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
11038         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
11039         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
11040         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
11041         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
11042         df_byte_lr_local_compute, df_byte_lr_init,
11043         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
11044         df_byte_lr_transfer_function, df_byte_lr_free,
11045         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
11046         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
11047         df_byte_lr_simulate_uses,
11048         df_byte_lr_simulate_artificial_refs_at_top,
11049         df_byte_lr_simulate_artificial_refs_at_end): New function.
11050         * dce.c (byte_dce_process_block): New function.
11051         (dce_process_block): au is now passed in rather than computed
11052         locally.  Changed loops that look at artificial defs to not look
11053         for conditional or partial ones, because there never are any.
11054         (fast_dce): Now is able to drive byte_dce_process_block or
11055         dce_process_block depending on the kind of dce being done.
11056         (rest_of_handle_fast_dce): Add parameter to fast_dce.
11057         (rest_of_handle_fast_byte_dce): New function.
11058         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
11059         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
11060
11061 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
11062
11063         PR fortran/35019
11064         * gcc.h: Added fortran options that take arguments to
11065         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
11066         macros.
11067
11068 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
11069
11070         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
11071         scalarization if on the LHS and not a full access.
11072
11073 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11074
11075         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
11076
11077 2008-04-18  Rafael Espindola  <espindola@google.com>
11078
11079         * tree-vrp.c (find_case_label_index): Fix the binary search.
11080         (find_case_label_range): New.
11081         (vrp_visit_switch_stmt): Use find_case_label_range.
11082         (simplify_switch_using_ranges): Use find_case_label_range.
11083
11084 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
11085
11086         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
11087         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
11088
11089 2008-04-18  Tom Tromey  <tromey@redhat.com>
11090
11091         PR libcpp/15500:
11092         * doc/cpp.texi (Implementation-defined behavior): Mention
11093         -finput-charset.
11094
11095 2008-04-18  Ian Lance Taylor  <iant@google.com>
11096
11097         * fold-const.c (pointer_may_wrap_p): New static function.
11098         (fold_comparison): Add another test for pointer overflow.  Use
11099         pointer_may_wrap_p to disable some false positives.
11100
11101 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
11102
11103         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
11104         (fname_as_string): Match updated cpp_interpret_string prototype.
11105         (fix_string_type): Support char16_t* and char32_t*.
11106         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
11107         derivative) nodes.  Register as builtin if C++0x.
11108         (c_parse_error): Support CPP_CHAR{16,32}.
11109         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
11110         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
11111         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
11112         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
11113         CTI_CHAR32_ARRAY_TYPE>: New elements.
11114         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
11115         char32_type_node, signed_char32_type_node, char16_array_type_node,
11116         char32_array_type_node): New defines.
11117         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
11118         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
11119         (lex_string): Support CPP_STRING{16,32}, match updated
11120         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
11121         (lex_charconst): Support CPP_CHAR{16,32}.
11122         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
11123         and CPP_STRING{16,32}.
11124
11125 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
11126
11127         PR bootstrap/35457
11128         * aclocal.m4: Regenerate.
11129         * configure: Regenerate.
11130
11131 2008-04-18  Jan Hubicka  <jh@suse.cz>
11132
11133         * except.c (dw2_size_of_call_site_table,
11134         sjlj_size_of_call_site_table): Use vector API for call_site_record.
11135
11136         * cgraphbuild.c (build_cgraph_edges): Update.
11137         * tree-pass.h: Update comment.
11138         * final.c (leaf_function_p): Update.
11139         (leaf_renumber_regs): Update.
11140         (rest_of_clean_state): Update.
11141         * omp-low.c (expand_omp_parallel): Update.
11142         * ipa-reference.c (analyze_function): Update.
11143         * reorg.c (find_end_label): Update.
11144         (optimize_skip): Update.
11145         (fill_simple_delay_slots): Update.
11146         (fill_simple_delay_slots): Update.
11147         (make_return_insns): Update.
11148         (dbr_schedule): Update.
11149         * gimple-low.c (record_vars_into): Update.
11150         * cfgbuild.c (make_edges): Update.
11151         * function.c (assign_stack_local): Update.
11152         (assign_parm_adjust_stack_rtl): Update.
11153         (locate_and_pad_parm): Update.
11154         (allocate_struct_function): Do not initialize stack_alignment_needed
11155         and preferred_stack_boundary here.
11156         (stack_protect_prologue): Update.
11157         (stack_protect_epilogue): Update.
11158         (expand_function_start): Initialize stack_alignment_needed,
11159         preferred_stack_boundary and max_jumptable_ents.
11160         (expand_function_end): Update.
11161         (free_after_compilation): Do not NULLify epilogue_delay_list.
11162         * function.h (struct rtl_data): Add stack_protect_guard,
11163         stack_alignment_needed,
11164         preferred_stack_boundary, epilogue_delay_list.
11165         (struct function): Remove value_histograms, stack_alignment_needed,
11166         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
11167         last_label_uid,
11168         unexpanded_var_list, stack_protect_guard.
11169         (current_function_epilogue_delay_list): Remove.
11170         * ipa-type-escape.c (analyze_function): Update.
11171         * gimplify.c (pop_gimplify_context): Update comment.
11172         * calls.c (expand_call): Update.
11173         (emit_library_call_value_1): Update.
11174         * except.c (set_nothrow_function_flags): Update.
11175         * cfgexpand.c (get_decl_align_unit): Update.
11176         (create_stack_guard): Update.
11177         (estimated_stack_frame_size): Update.
11178         (expand_used_vars): Update.
11179         (tree_expand_cfg): Free histogram earliers, init expansion variables.
11180         * explow.c (allocate_dynamic_stack_space): Update.
11181         * tree-ssa-live.c (remove_unused_locals): Update.
11182         * varasm.c (mark_constant_pool): Update.
11183         * tree-inline.c (remap_decls): Update.
11184         (initialize_cfun): Update.
11185         (declare_return_variable): Update.
11186         (inline_forbidden_p): Update.
11187         (expand_call_inline): Update.
11188         (declare_inline_vars): Update.
11189         (tree_function_versioning): Update.
11190         * tree-flow.h (value_histograms): New.
11191         (VALUE_HISTOGRAMS): New macro.
11192         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
11193         last_label_uid.
11194         * tree-cfg.c (set_bb_for_stmt): Update.
11195         (replace_by_duplicate_decl): Update.
11196         (move_block_to_fn): Update.
11197         (new_label_mapper): Update.
11198         (dump_function_to_file): Update.
11199         * ipa-struct-reorg.c (build_data_structure): Update.
11200         * cfgrtl.c (print_rtl_with_bb): Update.
11201         * reload1.c (reload): Update.
11202         (reload): Update.
11203         * config/i386/i386.c (setup_incoming_varargs_64,
11204         ix86_compute_frame_layout): Update.
11205         * config/arc/arc.c (arc_output_function_epilogue): Update.
11206
11207 2008-04-18  Marius Strobl <marius@FreeBSD.org>
11208
11209         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
11210         for FreeBSD as well.
11211         * gthr-posix95.h: Likewise.
11212
11213 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
11214
11215         PR rtl-optimization/35838
11216         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
11217         out the byte offset of the first subreg.
11218
11219 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
11220
11221         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
11222         to split_ti instead of three separate calls with single member arrays.
11223         (subti3 splitter): Ditto.
11224         (adddi3 splitter): Ditto with split_di.
11225         (subdi3 splitter): Ditto.
11226         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
11227         two separate calls with single member arrays.  Swap match_dup
11228         operands 1 and 2 to better fit into the array.
11229         (negdi2 splitter): Ditto with split_di.
11230         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
11231         two separate calls with single member arrays.  Swap match_dup operands
11232         6 and 7 to better fit into the array.
11233
11234 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
11235
11236         * config/i386/i386.c (sse_builtin_type): New.
11237         (bdesc_sse_args): Likewise.
11238         (bdesc_sse_3arg): Removed.
11239         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
11240         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
11241         IX86_BUILTIN_ROUNDPS.
11242         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
11243         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
11244         IX86_BUILTIN_ROUNDPS.
11245         (ix86_expand_sse_4_operands_builtin): Removed.
11246         (ix86_expand_sse_operands_builtin): New.
11247         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
11248         and CODE_FOR_sse4_1_roundps.
11249         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
11250         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
11251
11252 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
11253
11254         PR target/35907
11255         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
11256         regs before frame pop when needed.  If use_backchain_to_restore_sp
11257         then load backchain into a temp reg to restore vr and vrsave.  Add
11258         code to restore vr after frame pop if possible.
11259
11260 2008-04-17  Richard Guenther  <rguenther@suse.de>
11261
11262         * tree-vn.c (expressions_equal_p): Do not check type
11263         equality or compatibility before calling operand_equal_p.
11264         * fold-const.c (operand_equal_p): Check equivalence of
11265         integer constants before bailing out due to signedness or
11266         precision differences.
11267         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
11268         spurious differences in type qualification.  Ignore types
11269         for COMPONENT_REFs at all.
11270
11271 2008-04-17  Christian Bruel  <christian.bruel@st.com>
11272
11273         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
11274         msw_skip comparison.
11275
11276 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
11277
11278         PR c/35739
11279         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
11280         reg type.
11281
11282         PR tree-optimization/35899
11283         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
11284         rather than TREE_OPERAND.
11285
11286 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
11287
11288         PR target/35944
11289         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
11290         temporary registers.  Change operand predicate to general_operand.
11291         (remainderxf3): Ditto.
11292
11293 2008-04-16  Richard Guenther  <rguenther@suse.de>
11294
11295         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
11296         * tree-affine.c (aff_combination_expand): Look through some
11297         conversions.
11298
11299 2008-04-15  Doug Kwan  <dougkwan@google.com>
11300
11301         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
11302         for hex printing.
11303         * tree-pretty-print.c (dump_generic_node): Ditto.
11304         * final.c (output_addr_const): Ditto.
11305         * dwarf2out.c (output_cfi): Ditto.
11306         * c-pretty-print.c (pp_c_integer_constant): Ditto.
11307         * print-rtl.c (print_rtx): Ditto.
11308         * print-tree.c (print_node_brief, print_node): Ditto.
11309         * c-common.c (match_case_to_enum_1): Ditto.
11310         * sched-vis.c (print_value): Ditto.
11311         * config/i386/i386.c (print_operand): Cast to long unsigned int
11312         for hex printing.
11313
11314 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
11315         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
11316         MS Windows VirtualProtect function.
11317
11318 2008-04-15  Jan Hubicka  <jh@suse.cz>
11319
11320         * gengtype.c (write_root): Param_is argument is OK.
11321         * expr.c (expand_expr_real_1): Update call of get_exception_*.
11322         * function.h: Include varray.h
11323         (rtl_eh): New stucture based on except.c one.
11324         (call_site_record): New forward declaration and vector type.
11325         * calls.c (emit_call_1): Do not call
11326         note_current_region_may_contain_throw.
11327         * except.c (eh_status): Remove cur_region, try_region since they are
11328         unused.
11329         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
11330         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
11331         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
11332         Remove call_site_data_used, call_site_data_size.
11333         Turn call_site_record into vector in function.h.
11334         (note_current_region_may_contain_throw): Remove.
11335         (get_exception_pointer, get_exception_filter): Do not take struct
11336         function argument; update.
11337         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
11338         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
11339         build_post_landing_pads, dw2_build_landing_pads,
11340         sjlj_assign_call_site_values, sjlj_mark_call_sites,
11341         sjlj_emit_function_enter, sjlj_emit_function_enter,
11342         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
11343         sjlj_build_landing_pads, finish_eh_generation,
11344         remove_exception_handler_label, remove_eh_handler,
11345         maybe_remove_eh_handler, add_reachable_handler,
11346         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
11347         add_action_record, collect_one_action_chain, add_call_site,
11348         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
11349         sjlj_output_call_site_table, output_function_exception_table,
11350         * except.h (note_current_region_may_contain_throw): Remove
11351         (get_exception_pointer, get_exception_filter): Do not take struct
11352         function argument.
11353         * Makefile.in (GTFILES): Put varargs before struct function.
11354
11355 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
11356
11357         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
11358         punt for STRING_CST.
11359         (get_constraint_for): Deal with STRING_CST here instead.
11360
11361 2008-04-15  Richard Guenther  <rguenther@suse.de>
11362
11363         * tree-ssa-propagate.c (substitute_and_fold): Substitute
11364         statements in a basic-block with a backward walk.  Do not
11365         substitute into dead statements but instead remove those.
11366
11367 2008-04-15  Richard Guenther  <rguenther@suse.de>
11368
11369         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
11370         to zero, thus disable creation of SFTs.
11371
11372 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
11373
11374         * tree-predcom.c (suitable_reference_p): Return false if the
11375         reference can throw.
11376
11377 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
11378
11379         PR c/35751
11380         * c-decl.c (finish_decl): If extern or static var has variable
11381         size, set TREE_TYPE (decl) to error_mark_node.
11382
11383 2008-04-15  Rafael Espindola  <espindola@google.com>
11384
11385         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
11386         variable arg1.
11387
11388 2008-04-15  Richard Guenther  <rguenther@suse.de>
11389
11390         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
11391         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
11392         (visit_reference_op_load): Do walk vuse-vdef chains on
11393         vn_reference_lookup.
11394         (visit_reference_op_store): But do not here.
11395         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
11396         vn_reference_lookup.
11397         (vn_lookup_with_vuses): But do so here.
11398
11399 2008-04-14  Ian Lance Taylor  <iant@google.com>
11400
11401         * fold-const.c (fold_overflow_warning): Remove assertion.
11402
11403 2008-04-15  Ben Elliston  <bje@au.ibm.com>
11404
11405         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
11406         temp1 local variables.
11407
11408 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
11409
11410         PR target/35661
11411         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
11412         ".text.unlikely" section as executable.
11413
11414 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
11415
11416         * config/ia64/ia64.c (rtx_needs_barrier): Handle
11417         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
11418         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
11419         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
11420         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
11421         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
11422         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
11423
11424 2008-04-14  Ian Lance Taylor  <iant@google.com>
11425
11426         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
11427         * fold-const.c (fold_comparison): If appropriate, test
11428         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
11429         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
11430         reassociating a pointer type.
11431         * doc/invoke.texi (Optimize Options): Document that
11432         -fstrict-overflow applies to pointer wraparound.
11433
11434 2008-04-13  Jan Hubicka  <jh@suse.cz>
11435
11436         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
11437
11438 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
11439
11440         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
11441         we are going to "save the world".
11442
11443 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
11444
11445         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
11446         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
11447         operand 0 constraint, not "=".
11448
11449 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
11450
11451         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
11452
11453 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
11454
11455         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
11456         of size of positions_needed * CHAR_BIT.
11457
11458 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
11459
11460         PR middle-end/35897
11461         * dse.c (store_info): Change positions_needed to unsigned
11462         HOST_WIDE_INT.
11463         (lowpart_bitmask): New.
11464         (record_store): Cast to unsigned HOST_WIDE_INT for
11465         positions_needed.  Assert width <= size of positions_needed *
11466         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
11467         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
11468         lowpart_bitmask to set mask.
11469
11470 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
11471
11472         * config/bfin/constraints.md: New file.
11473         * config/bfin/bfin.md: Include it.
11474         (adddi3): Use satisfies_constraint functions instead of the old macros.
11475         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
11476         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
11477         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
11478         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
11479         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
11480         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
11481         EXTRA_CONSTRAINT): Delete.
11482         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
11483         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
11484         of the old macros.
11485         * config/bfin/bfin.c: Include "tm-constrs.h".
11486         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
11487         Use satisfies_constraint functions instead of the old macros.
11488         * doc/md.texi (Blackfin Constraints): Update file name reference.
11489
11490 2008-04-11  Richard Guenther  <rguenther@suse.de>
11491
11492         PR tree-optimization/35869
11493         * tree-vrp.c (execute_vrp): Move switch statement update after
11494         jump threading.  Schedule another cfg cleanup run.
11495
11496 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
11497
11498         PR c/35744
11499         * attribs.c (decl_attributes): Return early on errorneous node.
11500
11501 2008-04-10  Oleg Ryjkov  <olegr@google.com>
11502
11503         * tree.h (struct tree_base): Added a new flag default_def_flag.
11504         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
11505
11506 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
11507
11508         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
11509
11510 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11511
11512         PR target/35768
11513         * pa.md: Define mode iterator P.  Define mode attribute dwc.
11514         (dcacheflush): Update pattern to use iterator P and attribute dwc.
11515         (icacheflush): Likewise.
11516         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
11517         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
11518
11519 2008-04-11  Ben Elliston  <bje@au.ibm.com>
11520
11521         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
11522
11523 2008-04-10  Rafael Espindola  <espindola@google.com>
11524
11525         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
11526         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
11527         (extract_range_from_expr): The same.
11528
11529 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
11530
11531         * config/mips/mips.md (GPR2): New mode iterator.
11532         (seq): Add comment.
11533         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
11534         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
11535         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
11536         Rewrite these to take two modes, the mode of comparison and the
11537         mode of the destination.
11538         * config/mips/mips.c (mips_expand_scc): Instead of having
11539         paradoxical subreg as destination, expand "narrowing" scc if mode
11540         of comparison is SI and target is requested in DI mode.
11541         (mips_emit_int_order_test): Update comment.  Make mode of
11542         comparison match CMP0 rather than TARGET.  When creating inverse
11543         target use mode of TARGET.
11544
11545 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
11546
11547         * gcov-dump.c (tag_summary): Only print summaries for the first
11548         GCOV_COUNTERS_SUMMABLE counters.
11549
11550 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
11551
11552         * config/i386/i386.md (absneg): New code iterator.
11553         (absnegprefix): New code attribute.
11554         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
11555         patterns using absneg code iterator.
11556         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
11557         using absneg code iterator.
11558         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
11559         *neg<mode>2 patterns using absneg code iterator.
11560         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
11561         *negextendsfdf2 patterns using absneg code iterator.
11562         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
11563         *negextendsfxf2 patterns using absneg code iterator.
11564         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
11565         *negextendsfdf2 patterns using absneg code iterator.
11566         * config/i386/sse.md (<code><mode>2): Macroize expander from
11567         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
11568
11569 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
11570
11571         * config/s390/s390.h: Remove the remains of the recent search
11572         & replace action of current_function_outgoing_args_size.
11573
11574 2008-04-10  Ira Rosen  <irar@il.ibm.com>
11575
11576         PR tree-optimization/35821
11577         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
11578         NEW_STMT_LIST is not NULL.
11579
11580 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
11581
11582         PR libstdc++/35597
11583         * toplev.c (process_options): Remove -ffunction-sections debugging
11584         warning.
11585
11586 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
11587
11588         PR middle-end/PR28690
11589         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
11590         than gen_rtx_fmt_ee to perform more canonicalizations.
11591
11592 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11593
11594         PR driver/35665
11595         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
11596
11597 2008-04-09  Richard Guenther  <rguenther@suse.de>
11598
11599         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
11600         (dump_function_to_file): Dump function arguments with types.
11601
11602 2008-04-08  Richard Guenther  <rguenther@suse.de>
11603
11604         * fold-const.c (fold_widened_comparison): Do not allow
11605         sign-changes that change the result.
11606
11607 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
11608
11609         PR target/35839
11610         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
11611         kinds of indirect references.
11612
11613 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
11614
11615         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
11616         GNU Fortran language string.
11617
11618 2008-04-08  Rafael Espindola  <espindola@google.com>
11619
11620         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
11621         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
11622         * tree.h (tree_call_nonnegative_warnv_p): New.
11623
11624 2008-04-08  Jan Hubicka  <jh@suse.cz>
11625
11626         * function.c (free_after_compilation): Clear out regno_reg_rtx
11627         pointer.
11628
11629 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
11630
11631         Revert
11632         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
11633
11634         PR middle-end/PR28690
11635         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
11636         same precedence as REG_POINTER and MEM_POINTER operands.
11637
11638 2008-04-08  Richard Guenther  <rguenther@suse.de>
11639
11640         PR middle-end/35834
11641         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
11642         for adding index to base.
11643
11644 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
11645
11646         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
11647         (MINGW_ENABLE_EXECUTE_STACK): New.
11648         (IN_LIBGCC2): For libgcc include windows.h file for
11649         function declarations.
11650
11651 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
11652
11653         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
11654         and tem2 if tem1 is not a REG or MULT.
11655
11656 2008-04-08  Jan Hubicka  <jh@suse.cz>
11657
11658         * function.h (incomming_args): Break out of struct function.
11659         (function_subsections): Break out of struct function.
11660         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
11661         return_rtx and hard_reg_initial_vals from struct function.
11662         Kill inl_max_label_num.
11663         (current_function_pops_args, current_function_args_info,
11664         current_function_args_size, current_function_args_size,
11665         current_function_pretend_args_size,
11666         current_function_outgoing_args_size,
11667         current_function_internal_arg_pointer, current_function_return_rtx):
11668         Kill compatibility accestor macros.
11669         * builtins.c (expand_builtin_apply_args_1): Update.
11670         (expand_builtin_next_arg): Update.
11671         * df-scan.c (df_get_call_refs): Update.
11672         * dbxout.c (dbxout_function_end): Update.
11673         * dwarf2out.c (dwarf2out_switch_text_section): Update.
11674         (output_line_info): Update.
11675         (secname_for_decl): Update.
11676         (dwarf2out_var_location): Update.
11677         * function.c (free_after_compilation): Update.
11678         (assign_parm_find_stack_rtl): Update.
11679         (assign_parms): Update.
11680         (expand_dummy_function_end): Update.
11681         (expand_function_end): Update.
11682         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
11683         (expand_call): Update.
11684         (emit_library_call_value_1): Update.
11685         (store_one_arg): Update.
11686         * varasm.c (initialize_cold_section_name): Update.
11687         (unlikely_text_section): Update.
11688         (unlikely_text_section_p): Update.
11689         (assemble_start_function): Update.
11690         (assemble_end_function): Update.
11691         (default_section_type_flags): Update.
11692         (switch_to_section): Update.
11693         * integrate.c (set_decl_abstract_flags): Update.
11694         (get_hard_reg_initial_val): Update.
11695         (has_hard_reg_initial_val): Update.
11696         (allocate_initial_values): Update.
11697         * resource.c (init_resource_info): Update.
11698         * config/alpha/alpha.c (NUM_ARGS): Update.
11699         (direct_return): Update.
11700         (alpha_va_start): Update.
11701         (alpha_sa_size): Update.
11702         (alpha_initial_elimination_offset): Update.
11703         (alpha_expand_prologue): Update.
11704         (alpha_start_function): Update.
11705         (alpha_expand_epilogue): Update.
11706         (unicosmk_initial_elimination_offset):
11707         * config/alpha/alpha.md (call expander): Update.
11708         * config/s390/s390.c (s390_register_info): Update.
11709         (s390_register_info): Update.
11710         (s390_frame_info): Update.
11711         (s390_initial_elimination_offset): Update.
11712         (s390_build_builtin_va_list): Update.
11713         (s390_va_start): Update.
11714         * config/spu/spu.c (direct_return): Update.
11715         (spu_expand_prologue): Update.
11716         (spu_initial_elimination_offset): Update.
11717         (spu_build_builtin_va_list): Update.
11718         (spu_va_start): Update.
11719         * config/sparc/sparc.c (sparc_init_modes): Update.
11720         (sparc_compute_frame_size): Update.
11721         (function_value): Update.
11722         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
11723         * config/i386/i386.md (return expander): Update.
11724         * config/i386/i386.c (ix86_va_start): Update.
11725         (ix86_can_use_return_insn_p): Update.
11726         (ix86_compute_frame_layout): Update.
11727         (ix86_expand_epilogue): Update.
11728         * config/sh/sh.c (output_stack_adjust): Update.
11729         (calc_live_regs): Update.
11730         (sh_expand_prologue): Update.
11731         (sh_builtin_saveregs): Update.
11732         (sh_va_start): Update.
11733         (initial_elimination_offset): Update.
11734         (sh_allocate_initial_value): Update.
11735         (sh_function_ok_for_sibcall): Update.
11736         (sh_get_pr_initial_val): Update.
11737         * config/sh/sh.md (return expander): Update.
11738         * config/avr/avr.c (frame_pointer_required_p): UPdate.
11739         * config/crx/crx.c (crx_compute_frame): UPdate.
11740         (crx_initial_elimination_offset): UPdate.
11741         * config/xtensa/xtensa.c (compute_frame_size): Update
11742         (xtensa_builtin_saveregs): Update.
11743         (xtensa_va_start): Update.
11744         (order_regs_for_local_alloc): Update.
11745         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
11746         (xstormy16_expand_builtin_va_start): Update.
11747         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
11748         * config/m68hc11/m68hc11.md (return expanders): Update.
11749         * config/m68hc11/m68hc11.c (expand_prologue): Update.
11750         (expand_epilogue): Update.
11751         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
11752         (cris_simple_epilogue): Update.
11753         (cris_expand_prologue): Update.
11754         (cris_expand_epilogue): Update.
11755         * config/iq2000/iq2000.c (iq2000_va_start): Update.
11756         (compute_frame_size): Update.
11757         * config/mt/mt.c (mt_compute_frame_size): Update.
11758         * config/mn10300/mn10300.c (expand_prologue): Update.
11759         (expand_epilogue): Update.
11760         (initial_offset): Update.
11761         (mn10300_builtin_saveregs):
11762         * config/mn10300/mn10300.md (return expander): Update.
11763         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
11764         (ia64_initial_elimination_offset): Update.
11765         (ia64_initial_elimination_offset): Update.
11766         (ia64_expand_prologue): Update.
11767         * config/m68k/m68k.md (return expander): Update.
11768         * config/rs6000/rs6000.c (rs6000_va_start): Update.
11769         (rs6000_stack_info): Update.
11770         * config/mcore/mcore.c (layout_mcore_frame): Update.
11771         (mcore_expand_prolog): Update.
11772         * config/arc/arc.c (arc_compute_frame_size): Update.
11773         * config/score/score3.c (score3_compute_frame_size): Update.
11774         * config/score/score7.c (score7_compute_frame_size): Update.
11775         * config/arm/arm.c (use_return_insn): Update.
11776         (thumb_find_work_register): Update.
11777         (arm_compute_save_reg_mask): Update.
11778         (arm_output_function_prologue): Update.
11779         (arm_output_epilogue): Update.
11780         (arm_size_return_regs): Update.
11781         (arm_get_frame_offsets): Update.
11782         (arm_expand_prologue): Update.
11783         (thumb_exit): Update.
11784         (thumb_unexpanded_epilogue): Update.
11785         (thumb1_output_function_prologue): Update.
11786         * config/pa/pa.md (return expander): Update.
11787         * config/pa/pa.c (compute_frame_size): Update.
11788         (hppa_builtin_saveregs): Update.
11789         * config/mips/mips.c (mips_va_start): Update.
11790         (mips16_build_function_stub): Update.
11791         (mips_compute_frame_info): Update.
11792         (mips_restore_gp): Update.
11793         (mips_output_function_prologue): Update.
11794         (mips_expand_prologue): Update.
11795         * config/v850/v850.c (compute_frame_size): Update.
11796         (expand_prologue): * config/mmix/mmix.c (along): update.
11797         (mmix_initial_elimination_offset): update.
11798         (mmix_reorg): update.
11799         (mmix_use_simple_return): update.
11800         (mmix_expand_prologue): update.
11801         (mmix_expand_epilogue): Update.
11802         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
11803         (emit_link_insn): Update.
11804
11805 2008-04-08  Anatoly Sokolov <aesok@post.ru>
11806
11807         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
11808         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
11809         instructions.
11810         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
11811         atmega103 device.
11812
11813 2008-04-07  Jan Hubicka  <jh@suse.cz>
11814
11815         * function.h (rtl): Rename to x_rtl.
11816         (crtl): New define.
11817         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11818         frame_offset, stack_check_probe_note, arg_pointer_save_area,
11819         used_temp_slots avail_temp_slots, temp_slot_level,
11820         nonlocal_goto_handler_labels): Update accesstors.
11821         (rtl): New global variable.
11822         (struct function): Move some fileds to rtl_data.
11823         (get_arg_pointer_save_area): Update prototype.
11824         * builtins.c (expand_builtin_setjmp_receiver): Update call of
11825         get_arg_pointer_save_area.
11826         * expr.c (init_expr): Update
11827         * function.c (get_frame_size): Update
11828         (assign_stack_local): Update
11829         (expand_function_end): Update.
11830         (get_art_pointer_save_area): Update
11831         * function.h
11832         * emit-rtl.c (rtl): Declare.
11833         (regno_reg_rtx): Declare.
11834         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11835         Update.
11836         (gen_reg_rtx): Update.
11837         * varasm.c (n_deferred_constatns): Update accestor.
11838         (init_varasm_status): Do not allocate varasm_status.
11839         (force_const_mem, get_pool_size, output_constant_pool): Update.
11840         * stmt.c (force_label_rtx): Do not use x_ prefixes.
11841         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11842         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
11843         * sparc/sparc.h (INIT_EXPANDERS): Update.
11844         * ia64/ia64.h (INIT_EXPANDERS): Update.
11845
11846 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
11847
11848         * reload.c (push_secondary_reload): Add missing break to for loop.
11849
11850 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
11851
11852         PR middle-end/PR28690
11853         * rtlanal.c: Update copyright years.
11854         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
11855         as REG_POINTER and MEM_POINTER operands.
11856         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
11857         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
11858         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
11859         * gcse.c: Update copyright years.
11860         (pre_delete): Call gen_reg_rtx_and_attrs.
11861         (hoist_code): Likewise.
11862         (build_store_vectors): Likewise.
11863         (delete_store): Likewise.
11864         * loop-invariant.c (move_invariant_reg): Likewise.
11865         Update copyright years.
11866
11867 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
11868
11869         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
11870         control string instead of quoted.
11871
11872 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
11873
11874         * doc/rtl.texi: Rewrite of subreg section.
11875
11876 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
11877
11878         PR/35842
11879         * config/i386/i386.c (legitimize_pic_address): Add treating
11880         of dllimport SYM_REF's.
11881         (legitimize_dllimport_symbol): Add prototype.
11882
11883 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11884
11885         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
11886         reference in constructor with non self-referential type.
11887
11888 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11889
11890         Removal of Return with Depressed Stack Pointer support
11891         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
11892         (ECF_SP_DEPRESSED): Likewise.
11893         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
11894         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
11895         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11896         (expand_call): Do not test ECF_SP_DEPRESSED.
11897         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11898         * function.c (keep_stack_depressed): Delete.
11899         (handle_epilogue_set): Likewise.
11900         (update_epilogue_consts): Likewise.
11901         (emit_equiv_load): Likewise.
11902         (thread_prologue_and_epilogue_insns): Remove support for Return with
11903         Depressed Stack Pointer.
11904         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11905
11906 2008-04-06  Richard Guenther  <rguenther@suse.de>
11907
11908         PR tree-optimization/35400
11909         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
11910         information from SSA_NAMEs.
11911
11912 2008-04-06  Anatoly Sokolov <aesok@post.ru>
11913
11914         * config/avr/avr.h (avr_mega_p): Remove declaration.
11915         (AVR_MEGA): Remove macro.
11916         * config/avr/avr.c (avr_mega_p): Remove variable.
11917         (avr_override_options): Remove inicializion of avr_mega_p.
11918         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11919         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11920         (avr_jump_mode): (Ditto.).
11921         (avr_output_progmem_section_asm_op): (Ditto.).
11922         (avr_asm_init_sections): (Ditto.).
11923         (avr_asm_init_sections): (Ditto.).
11924         (avr_rtx_costs): (Ditto.).
11925         * config/avr/avr.md: (Ditto.).
11926         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
11927         '__AVR_MEGA__'.
11928
11929 2008-04-06  Richard Guenther  <rguenther@suse.de>
11930
11931         PR tree-optimization/35842
11932         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
11933         is_gimple_invariant_address.
11934
11935 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11936
11937         * gcc.c (default_compilers): Sync Fortran extensions list with
11938         that in fortran/lang-specs.h.
11939         * doc/invoke.texi: Likewise.
11940         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
11941         * dwarf2out.c (gen_compile_unit_die): Likewise.
11942
11943 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
11944
11945         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
11946
11947 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
11948
11949         PR target/12329
11950         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
11951         attribute is used for nested functions.
11952
11953 2008-04-05  Jan Hubicka  <jh@suse.cz>
11954
11955         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
11956
11957         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
11958         letter argument.
11959         (dump_files): Update.
11960         (enable_rtl_dump_file): Do not accept letter argument.
11961         * tree-pass.h (dump_file_info): Remove letter argument.
11962         * toplev.c (decode_d_option): Update -da handling.
11963         * toplev.h (enable_rtl_dump_file): Update prototype.
11964         * passes.c (register_one_dump_file): Do not accept IPA argument; work
11965         it out based on pass type.
11966         (register_dump_files_1): Likewise.
11967         (init_optimization_passes): Update register_one_dump_file calls.
11968         (execute_one_pass): Sanity check that IPA passes are called at IPA
11969         level and RTL passes at RTL level.
11970         (execute_pass_list): IPA pass can not be after or subpass of
11971         GIMPLE/RTL pass.
11972         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
11973         disallov RTL subpasses of IPA subpasses.
11974
11975 2008-04-05  Ben Elliston  <bje@au.ibm.com>
11976
11977         * tree-cfg.c (need_fake_edge_p): Return false for calls to
11978         builtins that return exactly once and do not throw. Cache call to
11979         call_expr_flags.
11980
11981 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
11982
11983         PR rtl-optimization/34916
11984         PR middle-end/35519
11985         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
11986         between instruction pairs.
11987
11988 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
11989
11990         * doc/invoke.texi: Document -mbitops for SH.
11991         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
11992         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
11993         * config/sh/sh.c (print_operand): Add %t operand code.
11994         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
11995         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
11996         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
11997         (extendqihi2): Likewise.
11998         (movqi_i): Likewise.
11999         (insv): Use bset, bclr and bst instructions for SH2A if possible.
12000         (extv): Use bld instruction for SH2A if possible.
12001         (extzv): Likewise.
12002         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
12003         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
12004         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
12005         (bset.b, bclr.b): Define peepholes.
12006         * config/sh/sh.opt (mbitops): New option.
12007
12008 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
12009
12010         PR target/35620
12011         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
12012         and view convert expression.
12013
12014 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
12015
12016         PR target/35364
12017         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
12018
12019 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
12020
12021         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
12022
12023         * config/i386/cpuid.h (bit_AES): New.
12024         (bit_PCLMUL): Likewise.
12025
12026         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
12027         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
12028         SSE2 if AES or PCLMUL is enabled.
12029         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
12030         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
12031         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
12032         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
12033         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
12034         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
12035         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
12036         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
12037         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
12038         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
12039         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
12040         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
12041         __builtin_ia32_aeskeygenassist128 and
12042         __builtin_ia32_pclmulqdq128.
12043         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
12044         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
12045         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
12046
12047         * config/i386/i386.h (TARGET_AES): New.
12048         (TARGET_PCLMUL): Likewise.
12049         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
12050
12051         * config/i386/i386.md (UNSPEC_AESENC): New.
12052         (UNSPEC_AESENCLAST): Likewise.
12053         (UNSPEC_AESDEC): Likewise.
12054         (UNSPEC_AESDECLAST): Likewise.
12055         (UNSPEC_AESIMC): Likewise.
12056         (UNSPEC_AESKEYGENASSIST): Likewise.
12057         (UNSPEC_PCLMUL): Likewise.
12058
12059         * config/i386/i386.opt (maes): New.
12060         (mpclmul): Likewise.
12061
12062         * config/i386/sse.md (aesenc): New pattern.
12063         (aesenclast): Likewise.
12064         (aesdec): Likewise.
12065         (aesdeclast): Likewise.
12066         (aesimc): Likewise.
12067         (aeskeygenassist): Likewise.
12068         (pclmulqdq): Likewise.
12069
12070         * config/i386/wmmintrin.h: New.
12071
12072         * doc/extend.texi: Document AES and PCLMUL built-in function.
12073
12074         * doc/invoke.texi: Document -maes and -mpclmul.
12075
12076 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
12077
12078         * function.c (free_after_parsing): Replace with
12079         cxx_push_function_context from C++ front-end.
12080         (allocate_struct_function): Don't call langhook.
12081         * langhooks.h (struct lang_hooks_for_functions): Delete.
12082         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
12083         member "function".
12084         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
12085         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
12086         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
12087         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
12088         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
12089         remove LANG_HOOKS_FUNCTION_INITIALIZER.
12090         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
12091
12092         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
12093         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
12094
12095 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
12096
12097         PR c/35440
12098         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
12099         for all types.
12100
12101 2008-04-04  Richard Guenther  <rguenther@suse.de>
12102
12103         PR middle-end/35823
12104         * fold-const.c (optimize_minmax_comparison): Use the correct
12105         type for the constant in the simplified comparison.
12106
12107 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
12108
12109         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
12110         Pass L2 size as "--param l2-cache-size" to the compiler.
12111         (decode_l2_cache): New function to decode L2 cache parameters using
12112         0x8000006 extended cpuid function.
12113         (detect_caches_amd): Determine parameters of L2 cache using
12114         decode_l2_caches function.
12115         (decode_caches_intel): Decode L2 cache parameters.
12116         (detect_caches_intel): Determine L2 cache parameters using
12117         decode_caches_intel and decode_l2_caches functions.
12118
12119 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
12120
12121         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
12122         secondary input reload for subword loads from the constant pool.
12123
12124 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
12125
12126         PR target/35713
12127         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
12128           constants of the appropriate size for runtime calculations.
12129
12130         PR c/35712
12131         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
12132           decimal-float literal constant zero.
12133
12134 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
12135
12136         PR c/35738
12137         * c-parser.c (c_parser_omp_atomic): Call
12138         default_function_array_conversion on the RHS.
12139
12140         PR middle-end/35818
12141         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
12142         call is_variable_sized if decl has incomplete type.
12143
12144 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
12145
12146         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
12147
12148 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
12149
12150         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
12151         iterators.
12152         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
12153         (sgt<u>): Merge sgt and sgtu into new expander.
12154         (sgt, sgtu): Remove expanders.
12155         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
12156         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
12157         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
12158         *sgtu_<mode>_mips16 into new pattern.
12159         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
12160         (sge<u>): Merge sge and sgeu into new expander.
12161         (sge, sgeu): Remove expanders.
12162         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
12163         new pattern.
12164         (*sge_<mode>, second *sge_<mode>): Remove patterns.
12165         (slt<u>): Merge slt and sltu into new expander.
12166         (slt, sltu): Remove expanders.
12167         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
12168         (*slt_<mode>, *sltu_<mode>): Remove patterns.
12169         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
12170         *sltu_<mode>_mips16 into new pattern.
12171         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
12172         (sle<u>): Merge sle and sleu into new expander.
12173         (sle, sleu): Remove expanders.
12174         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
12175         (*sle_<mode>, *sleu_<mode>): Remove patterns.
12176         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
12177         *sleu_<mode>_mips16 into new pattern.
12178         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
12179
12180 2008-04-03  Jan Hubicka  <jh@suse.cz>
12181
12182         PR tree-optimization/35795
12183         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
12184         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12185         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12186         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12187         * score/score3.c (score3_output_mi_thunk): Likewise.
12188         * score/score7.c (score7_output_mi_thunk): Likewise.
12189         * mips/mips.c (mips_output_mi_thunk): Likewise.
12190
12191 2008-04-03  Richard Guenther  <rguenther@suse.de>
12192
12193         * tree-vrp.c (extract_range_from_unary_expr): Handle all
12194         conversions.  Simplify code.
12195
12196 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
12197
12198         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
12199
12200 2008-04-03  Tom Tromey  <tromey@redhat.com>
12201             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12202
12203         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
12204         * config/bfin/t-bfin-linux (generated_files): Add
12205         linux-sysroot-suffix.h.
12206         * doc/install.texi (Prerequisites): Require make 3.80.
12207         * doc/sourcebuild.texi (Front End Directory): Document new
12208         variable.
12209         * Makefile.in (generated_files): New variable.
12210         (ALL_HOST_OBJS): New variable.
12211         ($(ALL_HOST_OBJS)): New target.
12212
12213 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
12214
12215         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
12216         (remap_block): Call id->transform_lang_insert_block instead
12217         of langhook.
12218         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
12219         Set id.transform_lang_insert_block to NULL.
12220         (clone_body): Move to cp/optimize.c
12221         * tree-inline.h (struct copy_body_data): Change
12222         transform_lang_insert_block to function pointer.
12223         (copy_generic_body, copy_decl_no_change): Export.
12224         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
12225         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
12226         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
12227
12228         * c-tree.h (insert_block): Kill.
12229         * c-decl.c (insert_block): Kill.
12230
12231 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
12232
12233         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12234         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
12235         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
12236         argument.
12237         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
12238         argument, call {push,pop}_function_context from here.
12239         * c-parser.c: Use c_{push,pop}_function_context.
12240
12241         * function.c (push_function_context_to): Move meat ...
12242         (push_function_context): ... here.  Simplify.
12243         * function.c (pop_function_context_from): Move meat ...
12244         (pop_function_context): ... here.  Simplify.
12245         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
12246         leave_nested).
12247         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
12248         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
12249         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
12250         * tree.h (push_function_context_to, pop_function_context_from): Remove.
12251
12252 2008-04-03  Ben Elliston  <bje@au.ibm.com>
12253
12254         * expmed.c (extract_force_align_mem_bit_field): Remove.
12255
12256 2008-04-03  Richard Guenther  <rguenther@suse.de>
12257
12258         PR middle-end/35800
12259         * expr.h (try_casesi): Adjust prototype.
12260         * expr.c (try_casesi): Take fallback label as extra parameter.
12261         Use that for gen_casesi if default_label is NULL.
12262         * stmt.c (expand_case): Pass fallback label to try_casesi,
12263         make sure to fill gaps with a fallback label if default_label
12264         is not present.
12265
12266 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
12267
12268         PR target/35801
12269         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
12270
12271 2008-04-03  Ben Elliston  <bje@au.ibm.com>
12272
12273         * expmed.c (extract_split_bit_field): Remove if (0) code.
12274         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
12275         (do_ds_constraint): Likewise.
12276
12277 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
12278
12279         * doc/cppopts.texi (-dU): Document.
12280         * c-common.h (flag_dump_macros): Update comment.
12281         * c-opts.c (handle_OPT_d): Handle -dU.
12282         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
12283         dump_queued_macros, cb_used_define, cb_used_undef): New.
12284         (init_pp_output): Handle -dU.
12285         (cb_line_change): Call dump_queued_macros.
12286         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
12287
12288 2008-04-02  Anatoly Sokolov <aesok@post.ru>
12289
12290         * config/avr/predicates.md (io_address_operand): New predicate.
12291         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
12292         * config/avr/avr.c (avr_io_address_p): Remove function.
12293         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
12294         'avr_io_address_p' function.
12295         (out_movhi_r_mr): (Ditto.).
12296         (out_movqi_mr_r): (Ditto.).
12297         (out_movhi_mr_r): (Ditto.).
12298         (avr_address_cost): (Ditto.).
12299
12300 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
12301
12302         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
12303         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
12304         in 32bit mode when XMM registers are available to avoid store
12305         forwarding stalls.
12306         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
12307         corresponding post-reload splitters.
12308
12309 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
12310
12311         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
12312         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
12313         __builtin_ia32_roundss.
12314         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
12315         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
12316         __builtin_ia32_roundss.
12317         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
12318         IX86_BUILTIN_SHUFPD here.
12319
12320 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
12321
12322         * config/i386/i386.md (plogic): New.
12323         (plogicprefix): Likewise.
12324
12325         * config/i386/mmx.md (mmx_<code><mode>3): New.
12326         (mmx_and<mode>3): Removed.
12327         (mmx_ior<mode>3): Likewise.
12328         (mmx_xor<mode>3): Likewise.
12329
12330         * config/i386/sse.md (<code><mode>3): New.
12331         (*<code><mode>3): Likewise.
12332         (*<code><mode>3): Likewise.
12333         (<code><mode>3): Likewise.
12334         (*sse_<code><mode>3): Likewise.
12335         (*sse2_<code><mode>3): Likewise.
12336         (<code>tf3): Likewise.
12337         (*<code>tf3): Likewise.
12338         (and<mode>3): Likewise.
12339         (*and<mode>3): Likewise.
12340         (ior<mode>3): Removed.
12341         (*ior<mode>3): Likewise.
12342         (xor<mode>3): Likewise.
12343         (*xor<mode>3): Likewise.
12344         (*and<mode>3): Likewise.
12345         (*ior<mode>3): Likewise.
12346         (*xor<mode>3): Likewise.
12347         (and<mode>3): Likewise.
12348         (*sse_and<mode>3): Likewise.
12349         (*sse2_and<mode>3): Likewise.
12350         (andtf3): Likewise.
12351         (*andtf3): Likewise.
12352         (ior<mode>3): Likewise.
12353         (*sse_ior<mode>3): Likewise.
12354         (*sse2_ior<mode>3): Likewise.
12355         (iortf3): Likewise.
12356         (*iortf3): Likewise.
12357         (xor<mode>3): Likewise.
12358         (*sse_xor<mode>3): Likewise.
12359         (*sse2_xor<mode>3): Likewise.
12360         (xortf3): Likewise.
12361         (*xortf3): Likewise.
12362
12363 2008-04-02  Richard Guenther  <rguenther@suse.de>
12364
12365         PR tree-optimization/14495
12366         PR tree-optimization/34793
12367         * tree-vrp.c (struct switch_update): New structure.
12368         (to_remove_edges, to_update_switch_stmts): New VECs.
12369         (simplify_switch_using_ranges): New function.  Remove not taken
12370         case labels and edges.
12371         (simplify_stmt_using_ranges): Call it.
12372         (identify_jump_threads): Mark edges we have queued for removal
12373         so we don't thread them.
12374         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
12375         case label vector.
12376         * tree-cfg.c (group_case_labels): Deal with missing default label.
12377         (tree_verify_flow_info): Allow missing default label.
12378         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
12379         (emit_case_nodes): Likewise.
12380         (expand_case): Do not rely on the default label to be present.
12381         * expr.c (try_casesi): Deal with NULL default_label.
12382         (do_tablejump): Likewise.
12383
12384 2008-04-02  Richard Guenther  <rguenther@suse.de>
12385
12386         PR tree-optimization/14495
12387         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
12388         SWITCH_EXPR here ...
12389         (vrp_visit_switch_stmt): ... but here (new function).
12390         (find_case_label_index): New helper function.
12391         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
12392
12393 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
12394
12395         * fwprop.c: Fix ISO-C99ism.
12396
12397 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
12398
12399         PR bootstrap/35752
12400         * Makefile.in (objdir): Set it here.
12401         * configure.ac: Not here.  Find dynamic linker characteristics.
12402         * exec-tool.in: Use them.
12403         * aclocal.m4: Regenerate.
12404         * configure: Regenerate.
12405
12406 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
12407
12408         * expr.c (expand_var): Delete it.
12409         * expr.h (expand_var): Delete prototype.
12410         * function.c (expand_function_start): Use expand_decl instead.
12411         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
12412         langhook.
12413
12414 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
12415
12416         PR rtl-optimization/35542
12417         * fwprop.c (forward_propagate_and_simplify): Replace
12418         loc_reg_mentioned_in_p with reg_mentioned_p.
12419
12420 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
12421
12422         PR rtl-optimization/35281
12423         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
12424         (propagate_rtx_1): Handle PR_HANDLE_MEM.
12425         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
12426         (varying_mem_p): Move above propagate_rtx.
12427         (all_uses_available_at): Do not check MEMs.
12428
12429 2008-04-02  Rafael Espindola  <espindola@google.com>
12430
12431         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
12432         (register_edge_assert_for_2): Split the cond argument.
12433         (register_edge_assert_for_1): Adjust for the change in
12434         register_edge_assert_for_2.
12435         (register_edge_assert_for): Split the cond argument.
12436         (find_switch_asserts): Adjust for the change in
12437         register_edge_assert_for.
12438
12439 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
12440
12441         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
12442         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
12443         offsets for 64-bit mingw.
12444         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
12445         abi for x86_64-pc-mingw.
12446
12447 2008-04-02  Richard Guenther  <rguenther@suse.de>
12448
12449         * tree-vrp.c (extract_range_from_assert): Make sure to not
12450         produce range min/max with TREE_OVERFOW set.
12451         If merging a anti-range and a range keep the anti-range if
12452         the range covers all values of the type.
12453         (register_edge_assert_for_2): Only allow sign-changing
12454         conversions in detecting canonical range checks.  Also
12455         register an assert for the unsigned name if useful.
12456
12457         PR tree-optimization/35787
12458         * tree-vrp.c (vrp_val_max): New function.
12459         (vrp_val_min): Likewise.
12460         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
12461         (vrp_val_is_min): Likewise.
12462         (supports_overflow_infinity): Use vrp_val_{min,max}.
12463         (negative_overflow_infinity): Likewise.
12464         (positive_overflow_infinity): Likewise.
12465         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
12466         (is_positive_overflow_infinity): Likewise.
12467         (is_overflow_infinity): Likewise.
12468         (avoid_overflow_infinity): Use vrp_val_{min,max} and
12469         vrp_val_is_{min,max}.
12470         (set_and_canonicalize_value_range): Canonicalize anti-ranges
12471         to ranges if possible.  Avoid empty ranges.
12472
12473 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12474
12475         PR middle-end/35705
12476         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
12477         the expression is a function address.
12478
12479 2008-04-01  George Helffrich  <george@gcc.gnu.org>
12480
12481         PR fortran/35154, fortran/23057
12482         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
12483         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
12484         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
12485         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
12486         in common.
12487         (dbxout_syms): Check for COMMON-based symbol and wrap in
12488         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
12489         in bracket for efficiency.
12490
12491         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
12492         using DW_TAG_common_block + member offset.
12493         (add_pubname_string): New function.
12494         (dw_expand_expr): New function to find block name and offset for
12495         COMMON var.
12496         (common_check): New function to check whether symbol in Fortran COMMON.
12497         (gen_variable_die): If COMMON, use DW_TAG_common_block.
12498
12499 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
12500
12501         PR c/35436
12502         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
12503
12504 2008-04-02  Ben Elliston  <bje@au.ibm.com>
12505
12506         * config/v850/v850.md (casesi): Remove if (0) code.
12507         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12508         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
12509
12510 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
12511
12512         * config/i386/i386.md (rex64suffix): New mode attribute.
12513         (floathi<mode>2): Disable expander for SSE math.
12514         (*floathi<mode>2_1): New insn insn_and_split pattern.
12515         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
12516         corresponding post-reload splitters.
12517         (*floathi<mode>2_i387): New macroized insn pattern.
12518         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
12519         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
12520         insn_and_split pattern.
12521         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
12522         New macroized instruction patterns and corresponding post-reload
12523         splitters.
12524         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
12525         and corresponding post-reload splitters.
12526         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
12527         New macroized instruction patterns.
12528         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
12529         macroized instruction patterns and corresponding post-reload splitters.
12530         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
12531         corresponding post-reload splitters.
12532         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
12533         New macroized instruction patterns.
12534         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
12535         corresponding post-reload splitters.
12536         (*floatsi<mode>2_i387): New macroized instruction patterns.
12537
12538 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
12539
12540         * config/i386/i386.md (smaxmin): New.
12541         (umaxmin): Likewise.
12542         (maxminiprefix): Likewise.
12543         (maxminfprefix): Likewise.
12544         (<code><mode>3): Likewise.
12545         (smin<mode>3): Removed.
12546         (smax<mode>3): Likewise.
12547
12548         * config/i386/mmx.md (mmx_<code>v2sf3): New.
12549         (mmx_<code>v4hi3): Likewise.
12550         (mmx_<code>v8qi3): Likewise.
12551         (mmx_smaxv2sf3): Removed.
12552         (mmx_sminv2sf3): Likewise.
12553         (mmx_umaxv8qi3): Likewise.
12554         (mmx_smaxv4hi3): Likewise.
12555         (mmx_uminv8qi3): Likewise.
12556         (mmx_sminv4hi3): Likewise.
12557
12558         * config/i386/sse.md (<addsub><mode>3): New.
12559         (*<addsub><mode>3): Likewise.
12560         (<sse>_vm<addsub><mode>3): Likewise.
12561         (<maxmin><mode>3): Likewise.
12562         (*<maxmin><mode>3_finite): Likewise.
12563         (*<maxmin><mode>3): Likewise.
12564         (<sse>_vm<maxmin><mode>3): Likewise.
12565         (sse3_h<addsub>v4sf3): Likewise.
12566         (sse3_h<addsub>v2df3): Likewise.
12567         (<maxmin>v16qi3): Likewise.
12568         (*<maxmin>v16qi3): Likewise.
12569         (<maxmin>v8hi3): Likewise.
12570         (*<maxmin>v8hi3): Likewise.
12571         (*sse4_1_<maxmin><mode>3): Likewise.
12572         (*sse4_1_<maxmin><mode>3): Likewise.
12573         (add<mode>3): Removed.
12574         (*add<mode>3): Likewise.
12575         (<sse>_vmadd<mode>3): Likewise.
12576         (sub<mode>3): Likewise.
12577         (*sub<mode>3): Likewise.
12578         (<sse>_vmsub<mode>3): Likewise.
12579         (smin<mode>3): Likewise.
12580         (*smin<mode>3_finite): Likewise.
12581         (*smin<mode>3): Likewise.
12582         (<sse>_vmsmin<mode>3): Likewise.
12583         (smax<mode>3): Likewise.
12584         (*smax<mode>3_finite): Likewise.
12585         (*smax<mode>3): Likewise.
12586         (<sse>_vmsmax<mode>3): Likewise.
12587         (sse3_haddv4sf3): Likewise.
12588         (sse3_haddv2df3): Likewise.
12589         (sse3_hsubv4sf3): Likewise.
12590         (sse3_hsubv2df3): Likewise.
12591         (umaxv16qi3): Likewise.
12592         (*umaxv16qi3): Likewise.
12593         (smaxv8hi3): Likewise.
12594         (*smaxv8hi3): Likewise.
12595         (*sse4_1_smax<mode>3): Likewise.
12596         (*sse4_1_umax<mode>3): Likewise.
12597         (uminv16qi3): Likewise.
12598         (*uminv16qi3): Likewise.
12599         (sminv8hi3): Likewise.
12600         (*sminv8hi3): Likewise.
12601         (*sse4_1_smin<mode>3): Likewise.
12602         (*sse4_1_umin<mode>3): Likewise.
12603
12604 2008-04-01  Rafael Espindola  <espindola@google.com>
12605
12606         * tree-cfg.c (verify_expr): remove in_phi.
12607         (verify_stmt): Don't call walk_tree with verify_expr. Use
12608         is_gimple_min_invariant instead of is_gimple_val.
12609
12610 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
12611
12612         * doc/include/gpl_v3.texi: Update for manpage generation.
12613         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
12614         gpl.texi.
12615         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
12616         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
12617         gpl_v3.texi instead of gpl.texi.
12618         (gpl.pod): New.
12619
12620 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
12621
12622         PR pch/13675
12623         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
12624
12625 2008-04-01  Rafael Espindola  <espindola@google.com>
12626
12627         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
12628         (extract_code_and_val_from_cond): Use
12629         extract_code_and_val_from_cond_with_ops.
12630
12631 2008-04-01  Jan Hubicka  <jh@suse.cz>
12632
12633         * function.c (free_after_compilation): Free epilogue_delay_list.
12634         (prepare_function_start): Assert that previous compilation was freed.
12635
12636 2008-04-01  Jan Hubicka  <jh@suse.cz>
12637             Jim Wilson  <wilson@tuliptree.org>
12638             Andreas Tobler <andreast@gcc.gnu.org>
12639
12640         PR middle-end/35781
12641         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
12642         rtl.emit instead cfun->emit.
12643         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
12644         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
12645
12646 2008-04-01  Ben Elliston  <bje@au.ibm.com>
12647
12648         * doc/c-tree.texi (Function Basics): Fix grammatical error.
12649
12650 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
12651
12652         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
12653         New options
12654         (fprofile-use): Add var flag_profile_use
12655         * coverage.c (coverage_begin_output): Do not open a gcno file for
12656         output only if -ftest-coverage is set.
12657         Do not add getpwd() to gcda file path.
12658         (build_gcov_info): Check the new flag
12659         flag_profile_datafile_relative_path.
12660         (coverage_init): Use profile_data_prefix.
12661         Read profile counter only if flag_profile_use is set.
12662         * opts.c (common_handle_option): New option fprofile-use=,
12663         fprofile-dir=, fprofile-generate=.
12664         * toplev.c (profile_data_prefix): New variable definition.
12665         * toplev.h (profile_data_prefix): New declaration.
12666         * doc/invoke.tex (Option Summary, Optimization Options):
12667         Add new options.
12668
12669 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
12670
12671         * varasm.c (output_constant_pool_1): In LABEL_REF check,
12672         use tmp consistently.
12673
12674         PR target/35695
12675         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
12676         * config/ia64/ia64.c (rtx_needs_barrier): Handle
12677         UNSPEC_FR_RECIP_APPROX_RES.
12678         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
12679
12680 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
12681
12682         PR c/35750
12683         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
12684
12685 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12686
12687         PR middle-end/30186
12688         * fold-const.c (fold_indirect_ref_1): Support accessing non first
12689         element of the vector via a pointer.
12690
12691 2008-03-31  Ian Lance Taylor  <iant@google.com>
12692
12693         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
12694
12695 2008-03-31  Jan Hubicka  <jh@suse.cz>
12696
12697         * builtins.c (expand_builtin_setjmp_receiver): Update call of
12698         get_arg_pointer_save_area.
12699         * expr.c (init_expr): Just clear out rtl.expr.
12700         * function.c (free_after_compilation): Clear out whole RTL structure.
12701         (get_func_frame_size): Merge into ...
12702         (get_frame_size): ... this one.
12703         (assign_stack_local_1): Merge into ...
12704         (assign_stack_local): ... this one.
12705         (expand_function_end): Update call of get_arg_pointer_save_area.
12706         (get_art_pointer_save_area): Remove cfun argument.
12707         * function.h (emit_status): regno_pointer_align does not need length
12708         attribute. Move x_regno_reg_rtx to ...
12709         (regno_reg_rtx): ... new global array.
12710         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
12711         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
12712         apply_args_value, forced_labels, stack_pointer_delta):
12713         Update accestors.
12714         (struct varasm_status): Move here from varasm.c
12715         (struct rtl_data): New. Move here some fields from struct function.
12716         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
12717         frame_offset, stack_check_probe_note, arg_pointer_save_area,
12718         used_temp_slots avail_temp_slots, temp_slot_level,
12719         nonlocal_goto_handler_labels): Update accesstors.
12720         (rtl): New global variable.
12721         (struct function): Move some fileds to rtl_data.
12722         (get_arg_pointer_save_area): Update prototype.
12723         * emit-rtl.c (rtl): Declare.
12724         (regno_reg_rtx): Declare.
12725         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
12726         Update.
12727         (gen_reg_rtx): Update.
12728         (init_virtual_regs): Do not tate emit_status argument.
12729         (init_emit): Do not allocate emit.
12730         * varasm.c (varasm_statuc): Move to function.h.
12731         (n_deferred_constatns): Update accestor.
12732         (init_varasm_status): Do not allocate varasm_status.
12733         (force_const_mem, get_pool_size, output_constant_pool): Update.
12734         * stmt.c (force_label_rtx): Do not use x_ prefixes.
12735         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
12736
12737 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
12738
12739         PR rtl-optimization/35729
12740         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
12741         references.
12742
12743 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
12744
12745         PR target/32000
12746         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
12747         load/store if memory is unaligned.
12748         (*movti_rex64): Likewise.
12749
12750         * config/i386/predicates.md (misaligned_operand): New.
12751
12752 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
12753
12754         PR tree-opt/35431
12755         * tree-ssa-phiopt.c (conditional_replacement): Return early for
12756         complex types.
12757
12758 2008-03-31  Jan Beulich  <jbeulich@novell.com>
12759
12760         * config/ia64/constraints.md: Add 'j' constraint.
12761         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
12762         (movdi_internal): Likewise.
12763
12764 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
12765
12766         PR c/35748
12767         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
12768
12769 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
12770
12771         PR target/35757
12772         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
12773         proper error message for the third argument on blendpd and
12774         blendps.
12775
12776         * config/i386/sse.md (blendbits): New.
12777         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
12778
12779 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
12780
12781         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
12782
12783 2008-03-30  Richard Guenther  <rguenther@suse.de>
12784
12785         PR middle-end/31023
12786         * fold-const.c (fold_sign_changed_comparison): Do leave
12787         conversions to base-types alone.
12788
12789 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12790
12791         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
12792         the link register if one altivec register is be saved.
12793
12794 2008-03-30  Ben Elliston  <bje@au.ibm.com>
12795
12796         * final.c (final_scan_insn): Remove if (0) code.
12797
12798 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
12799
12800         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
12801
12802 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
12803
12804         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
12805         of V4SFmode to ix86_binary_operator_ok.
12806
12807 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
12808
12809         * config/i386/i386.c (override_options): Initialize
12810         ix86_veclib_handler to ix86_veclibabi_svml when
12811         -mveclibabi=svml is used.
12812         (ix86_veclibabi_svml): New function for SVML ABI style
12813         vectorization support.
12814         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
12815
12816 2008-03-28  Rafael Espindola  <espindola@google.com>
12817
12818         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
12819         (tree_binary_nonnegative_warnv_p): Make it public.
12820         (tree_single_nonnegative_warnv_p): Make it public.
12821         (tree_invalid_nonnegative_warnv_p): Make it public.
12822         (tree_unary_nonzero_warnv_p): Make it public.
12823         (tree_binary_nonzero_warnv_p): Make it public
12824         (tree_single_nonzero_warnv_p): Make it public.
12825         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
12826         (extract_range_from_binary_expr): Split the expr argument.
12827         (extract_range_from_unary_expr): Split the expr argument.
12828         (extract_range_from_comparison): Split the expr argument.
12829         (extract_range_from_expr): Use the new aux functions.
12830         (vrp_evaluate_conditional_warnv): Use
12831         vrp_evaluate_conditional_warnv_with_ops.
12832         * tree.h (tree_unary_nonzero_warnv_p): Declare.
12833         (tree_binary_nonzero_warnv_p): Declare.
12834         (tree_single_nonzero_warnv_p): Declare.
12835         (tree_expr_nonzero_warnv_p): Declare.
12836         (tree_unary_nonnegative_warnv_p): Declare.
12837         (tree_binary_nonnegative_warnv_p): Declare.
12838         (tree_single_nonnegative_warnv_p): Declare.
12839         (tree_invalid_nonnegative_warnv_p): Declare.
12840
12841 2008-03-28  Richard Guenther  <rguenther@suse.de>
12842
12843         PR tree-optimization/30317
12844         PR tree-optimization/30911
12845         PR tree-optimization/34793
12846         * tree-vrp.c (set_and_canonicalize_value_range): New function.
12847         (struct assert_locus_d): New member EXPR.
12848         (register_new_assert_for): Add EXPR parameter to support
12849         ASSERT_EXPR <name, expr OP limit>.
12850         (register_edge_assert_for_1): Adjust callers.
12851         (find_assert_locations): Likewise.
12852         (process_assert_insertions_for): Build condition from expression.
12853         (extract_range_from_assert): Handle ASSERT_EXPRs
12854         of the form ASSERT_EXPR <name, expr OP limit>.
12855         (register_edge_assert_for_2): New helper registering
12856         asserts for comparisons.  Recognize range tests of the form
12857         (unsigned)i - CST1 OP CST2.
12858         (register_edge_assert_for_1): Use it.
12859         (register_edge_assert_for): Likewise.
12860         (needs_overflow_infinity): Integer sub-types
12861         do not need overflow infinities.
12862         (vrp_val_is_max): The extreme values of integer sub-types
12863         are those of the base type.
12864         (vrp_val_is_min): Likewise.
12865         * tree.def (ASSERT_EXPR): Document extra allowed conditional
12866         expressions.
12867
12868 2008-03-28  Nick Clifton  <nickc@redhat.com>
12869
12870         PR target/31110
12871         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
12872         Return GENERAL_REGS for stack adjustment reloads.
12873
12874 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12875
12876         PR target/31334
12877         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
12878         const_vector when all the vectors are constant.
12879
12880 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
12881
12882         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
12883         comparisons.
12884         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
12885         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
12886         (scc_sf): New.
12887         (s<code>_sf): Use new scc_sf attribute for opcode names.
12888
12889 2008-03-27  Tom Tromey  <tromey@redhat.com>
12890
12891         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
12892         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
12893         config/spu/t-spu-elf, config/i386/t-interix,
12894         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
12895         config/i386/x-darwin, config/i386/x-mingw32,
12896         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
12897         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
12898         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
12899         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
12900         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
12901         config/rs6000/x-darwin, config/rs6000/t-rs6000,
12902         config/score/t-score-elf, config/arm/t-strongarm-pe,
12903         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
12904         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
12905         Revert automatic dependency patch.
12906
12907 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12908
12909         PR target/35657
12910         * config/i386/i386.c (ix86_function_arg_boundary): Align
12911         decimal floating point to its natural boundary.
12912
12913 2008-03-27  Richard Guenther  <rguenther@suse.de>
12914
12915         PR middle-end/35716
12916         * fold-const.c (fold_comparison): Restrict distinct decl
12917         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
12918         solely rely on operand_equal_p.
12919
12920 2008-03-27  Richard Guenther  <rguenther@suse.de>
12921
12922         PR c/32511
12923         * c-common.c (handle_weak_attribute): Reject combination of
12924         weak and inline.
12925
12926 2008-03-27  Richard Guenther  <rguenther@suse.de>
12927
12928         PR tree-optimization/32810
12929         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
12930         conversions from DECL_INITIAL.
12931         (fold_const_aggregate_ref): Likewise from constructor elements.
12932
12933 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
12934
12935         * tree-affine.h (aff_combination_expand): Declare.
12936         (get_inner_reference_aff): Likewise.
12937         * tree-affine.c (aff_combination_expand): Split out from
12938         tree_to_aff_combination_expand.
12939         (get_inner_reference_aff): New function.
12940         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
12941         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
12942         (struct lim_aux_data): sm_done field removed.
12943         (mem_ref_loc_p, mem_ref_locs_p): New types.
12944         (struct mem_ref): Added id, stored, accesses_in_loop,
12945         indep_loop, dep_loop, indep_ref, dep_ref fields.
12946         Removed is_stored, locs and next fields.
12947         (memory_accesses): New variable.
12948         (movement_possibility): Do not allow moving statements
12949         that store to memory.
12950         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
12951         New functions.
12952         (determine_max_movement): For statements with memory references,
12953         find the outermost loop in that the reference is independent.
12954         (move_computations_stmt): Mark the virtual operands for renaming.
12955         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
12956         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
12957         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
12958         add_vop_ref_mapping, create_vop_ref_mapping_loop,
12959         create_vop_ref_mapping, analyze_memory_references,
12960         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
12961         get_all_locs_in_loop, ref_always_accessed_p,
12962         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
12963         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
12964         store_motion_loop, store_motion): New functions.
12965         (struct vop_to_refs_elt): New type.
12966         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
12967         memref_hash, memref_eq, hoist_memory_references): Rewritten.
12968         (schedule_sm): Replaced by...
12969         (execute_sm): ... this.
12970         (determine_lsm_ref, hoist_memory_references,
12971         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
12972         find_more_ref_vops, free_mem_ref, free_mem_refs,
12973         determine_lsm_loop, determine_lsm): Removed.
12974         (tree_ssa_lim_finalize): Free data structures used by store motion.
12975         (tree_ssa_lim): Call analyze_memory_references.  Use
12976         store_motion instead of determine_lsm.
12977
12978 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
12979
12980         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
12981         rename tmake_file to m68hc11/t-m68hc11.
12982         (mcore): Set inhibit_libc to true.
12983         * config.host (alpha*-dec-*vms*): Set extra_programs.
12984         (interix3*): Don't use host_xmake_file.
12985         * configure.ac: Let config.gcc override inhibit_libc.
12986         * configure: Regenerate.
12987
12988         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
12989         * config/t-openbsd-thread: Remove commented out lines.
12990
12991         * config/x-interix: Remove.
12992
12993         * config/m68hc11/t-m68hc11-gas: Rename to...
12994         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
12995
12996         * config/mcore/t-mcore: Remove T_CFLAGS.
12997         * config/mcore/t-mcore-pe: Likewise.
12998
12999 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
13000
13001         * configure.ac: Replace custom __GNU_SOURCE test with
13002         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
13003         * aclocal.m4: Regenerate.
13004         * configure: Regenerate.
13005         * config.in: Regenerate.
13006
13007 2008-03-27  Richard Guenther  <rguenther@suse.de>
13008
13009         * fold-const.c (target.h): Include.
13010         (fold_comparison): Fold comparison of addresses of decls
13011         that bind locally or of constants.  Consolidate address folding code.
13012         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
13013         results from fold_binary_to_constant.
13014         (compare_values_warnv): Likewise.
13015
13016 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
13017
13018         PR middle-end/35429
13019         * fold-const.c (fold_truthop): Check for integeral types when folding
13020         a == 0 && b == 0 and a != 0 || b != 0 .
13021
13022 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
13023
13024         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
13025
13026 2008-03-26  Andreas Schwab  <schwab@suse.de>
13027
13028         * doc/invoke.texi: Fix use of @item vs. @itemx.
13029
13030 2008-03-26  Tom Tromey  <tromey@redhat.com>
13031
13032         * Makefile.in (build/gensupport.o, build/print-rtl.o,
13033         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
13034         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
13035         build/gencodes.o, build/genconditions.o, build/genconfig.o,
13036         build/genconstants.o, build/genemit.o, build/genextract.o,
13037         build/genflags.o, build/genmddeps.o, build/genopinit.o,
13038         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
13039         options.h.
13040
13041 2008-03-26  Richard Guenther  <rguenther@suse.de>
13042
13043         Revert
13044         2008-03-26  Richard Guenther  <rguenther@suse.de>
13045
13046         * fold-const.c (target.h): Include.
13047         (fold_comparison): Fold comparison of addresses of two decls
13048         that bind locally.  Consolidate address folding code.
13049
13050 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13051
13052         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
13053         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
13054         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
13055         dconstsqrt2, dconstthird, dconste and/or dconst10.
13056         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
13057         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
13058         dconstsqrt2, dconste): Delete.
13059         (init_emit_once): Likewise.  Simplify initializing dconstm1.
13060         Constify variable.
13061         * real.c (get_real_const): New.
13062         * real.h (dconst3, dconst10, dconstm2, dconstthird,
13063         dconstsqrt2, dconste): Delete.
13064         (real_value_const, get_real_const): New.
13065
13066 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
13067
13068         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
13069
13070         * config/i386/i386.c (ix86_function_arg_boundary): Check
13071         BIGGEST_ALIGNMENT instead of 128.
13072         (setup_incoming_varargs_64): Likewise.
13073
13074 2008-03-26  Tom Tromey  <tromey@redhat.com>
13075
13076         * Makefile.in (DEPFILES): Add missing '/'.
13077
13078 2008-03-26  Richard Guenther  <rguenther@suse.de>
13079
13080         * fold-const.c (target.h): Include.
13081         (fold_comparison): Fold comparison of addresses of two decls
13082         that bind locally.  Consolidate address folding code.
13083
13084 2008-03-26  Nick Clifton  <nickc@redhat.com>
13085
13086         PR target/31232
13087         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
13088         not allow INT+INT as a legitimate addressing mode.
13089
13090 2008-03-26  Richard Guenther  <rguenther@suse.de>
13091
13092         * tree-flow.h (widen_bitfield): Remove declaration.
13093         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
13094         (widen_bitfield): Remove function.
13095         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
13096         code.
13097
13098 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13099
13100         PR target/31558
13101         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
13102         error_mark_node's.
13103
13104 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
13105
13106         PR rtl-optimization/35232
13107         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
13108         (forget_old_reloads_1, forget_marked_reloads): Don't clear
13109         reg_reloaded_call_part_clobbered here.
13110         (reload_regs_reach_end_p): New function.
13111         (reload_reg_rtx_for_input): New variable.
13112         (reload_reg_rtx_for_output): Likewise.
13113         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
13114         when reassigning a pseudo register.  Load reloadreg from
13115         reload_reg_rtx_for_input, moving the mode and register
13116         calculation to...
13117         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
13118         instead of the original when deciding whether an input reload
13119         would be a no-op or whether an output reload can be deleted.
13120         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
13121         when setting up new_spill_reg_store.  Load it from
13122         reload_reg_rtx_for_output, moving the mode and register
13123         calculation to...
13124         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
13125         instead of the original when deciding whether an output reload
13126         would be a no-op.  Do the same when modifying insn notes.
13127         Use rtx_equal_p instead of == to compare the registers.
13128         (inherit_piecemeal_p): Take a mode and two register numbers
13129         as argument.
13130         (emit_reload_insns): Clear new_spill_reg_store for every hard
13131         register in the reload register.  Remove spill registers
13132         from reg_reloaded_valid before considering whether to record
13133         inheritance information for them.  Use reload_reg_rtx_for_output
13134         instead of reg_rtx when recording output reloads.  Use
13135         reload_reg_rtx_for_input instead of reg_rtx when recording
13136         input reloads.  Set or clear reg_reloaded_call_part_clobbered
13137         at the same time as setting reg_reloaded_valid.
13138         (delete_output_reload): Add a new_reload_reg parameter and use it
13139         instead of rld[j].reg_rtx.
13140         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
13141         calls accordingly.
13142
13143 2008-03-25  Tom Tromey  <tromey@redhat.com>
13144
13145         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
13146         (build/genattr.o): Likewise.
13147         (build/genattrtab.o): Likewise.
13148         (build/gencodes.o): Likewise.
13149         (build/genconfig.o): Likewise.
13150         (build/genconstants.o): Likewise.
13151         (build/genemit.o): Likewise.
13152         (build/genextract.o): Likewise.
13153         (build/genflags.o): Likewise.
13154
13155 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
13156
13157         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
13158         instead of size_int for integer types.
13159         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
13160         to match type of MINUS_EXPR.
13161
13162 2008-03-25  Tom Tromey  <tromey@redhat.com>
13163
13164         * configure: Rebuilt.
13165         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
13166         Makefile.
13167
13168 2008-03-25  Tom Tromey  <tromey@redhat.com>
13169
13170         * config/x-solaris (host-solaris.o): Update.
13171         * config/x-linux (host-linux.o): Update.
13172         * config/x-hpux (host-hpux.o): Update.
13173         * config/x-darwin (host-darwin.o): Update.
13174         * config/v850/t-v850e (v850-c.o): Update.
13175         * config/v850/t-v850 (v850-c.o): Update.
13176         * config/t-vxworks (vxworks.o): Update.
13177         * config/t-sol2 (sol2-c.o, sol2.o): Update.
13178         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
13179         * config/spu/t-spu-elf (spu-c.o): Update.
13180         (spu.o): Remove.
13181         * config/sh/t-symbian (sh-c.o): Update.
13182         (symbian.o): Update.
13183         * config/sh/t-sh (sh-c.o): Update.
13184         * config/score/t-score-elf (score7.o, score3.o): Update.
13185         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
13186         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
13187         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
13188         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
13189         (rs6000.o): Remove.
13190         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
13191         * config/m32c/t-m32c (m32c-pragma.o): Update.
13192         * config/ia64/t-ia64 (ia64-c.o): Update.
13193         * config/i386/x-mingw32 (host-mingw32.o): Update.
13194         * config/i386/x-i386 (driver-i386.o): Update.
13195         * config/i386/x-darwin (host-i386-darwin.o): Update.
13196         * config/i386/x-cygwin (host-cygwin.o): Update.
13197         * config/i386/t-nwld (nwld.o): Update.
13198         * config/i386/t-netware (netware.o): Update.
13199         * config/i386/t-interix (winnt.o): Update.
13200         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
13201         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
13202         msformat-c.o): Update.
13203         * config/bfin/t-bfin-linux (generated_files): Add
13204         linux-sysroot-suffix.h.
13205         * config/arm/t-wince-pe (pe.o): Update.
13206         * config/arm/t-strongarm-pe (pe.o): Update.
13207         * config/arm/t-pe (pe.o): Update.
13208         * config/arm/t-arm (arm-c.o): Update.
13209         * doc/install.texi (Prerequisites): Require make 3.80.
13210         * Makefile.in: Remove .o targets.
13211         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
13212         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
13213         (simple_generated_h, simple_generated_c): Move earlier.
13214         (generated_files): New variable.
13215         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
13216         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
13217         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
13218         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
13219         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
13220         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
13221         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
13222         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
13223         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
13224         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
13225         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
13226         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
13227         (.c.o): Remove.
13228         (COMPILE.base, COMPILE): New variables.
13229         (%.o): New pattern rule.
13230         (ALL_HOST_OBJS): New variable.
13231         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
13232         (dummy-checksum.o, cc1-checksum.o): Remove.
13233         (DRIVER_SHLIB): New variable.
13234         (DRIVER_DEFINES): Use it.
13235         (gencondmd.c): Move out of build/.
13236         (s-conditions): Update.
13237         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
13238         (ALL_BUILD_OBJS): Likewise.
13239         (build/%.o): Use BUILDCOMPILE.
13240         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
13241         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
13242         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
13243         build/gencheck.o, build/gencodes.o, build/genconditions.o,
13244         build/genconfig.o, build/genconstants.o, build/genemit.o,
13245         build/genextract.o, build/genflags.o, build/genmddeps.o,
13246         build/genopinit.o, build/genoutput.o, build/genpeep.o,
13247         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
13248         build/gen-protos.o, build/scan.o, build/fix-header.o,
13249         build/scan-decls.o): Simplify.
13250         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
13251         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
13252         prefix.o, toplev.o): Reduce to variable setting.
13253         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
13254         ($(out_object_file), gcc-options.o): New targets.
13255         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
13256         * configure: Rebuilt.
13257         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
13258         * doc/sourcebuild.texi (Front End Directory): Document new variable.
13259
13260 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
13261
13262         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
13263         complain when we hit an error, return ERROR_MARK_NODE.
13264
13265 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
13266
13267         * config/sh/constraints.md (Pso, Psz): New constraints.
13268         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
13269         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
13270
13271 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
13272
13273         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
13274         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
13275
13276 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
13277
13278         * config/sh/sh.md (prefetch): Add condition for SH2A target.
13279         (prefetch_sh2a): New.
13280
13281 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
13282             Naveen.H.S  <naveen.hs@kpitcummins.com>
13283
13284         * config/sh/constraints.md (I28): New constraint.
13285         * config/sh/sh.c (broken_move): Add support for movi20s.
13286         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
13287
13288 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
13289             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
13290             Naveen.H.S  <naveen.hs@kpitcummins.com>
13291
13292         * config/sh/sh.c (SH_ATTRIBUTES): Define.
13293         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
13294         (print_operand): Handle resbank in %@ operand code.
13295         (sh_encode_section_info): New.
13296         (push_regs): Add conditions for resbank.
13297         (sh_expand_epilogue): Likewise.
13298         (sh_insert_attributes): Likewise.
13299         (sh_attribute_table): Likewise.
13300         (sh_handle_resbank_handler_attribute): New.
13301         (sh2a_handle_function_vector_handler_attribute): New.
13302         (sh2a_is_function_vector_call): New.
13303         (sh2a_get_function_vector_number): New.
13304         (sh2a_function_vector_p): New.
13305         (sh_cfun_resbank_handler_p): New.
13306         * config/sh/sh.md (calli): Emit jsr/n if possible.
13307         (calli_tbr_rel): New.
13308         (calli_pcrel): Emit jsr/n if possible.
13309         (return_i): Emit rts/n if possible.
13310         (call_valuei_tbr_rel): New.
13311         (call_valuei_pcrel): Add condition for SH2A target.
13312         (call_value): Likewise.
13313         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
13314         (sh2a_get_function_vector_number): Likewise.
13315         (sh2a_is_function_vector_call): Likewise.
13316         * doc/extend.texi: Document TBR relative addressing of SH2A.
13317         (resbank): Add description for SH2A.
13318
13319 2008-03-24  Richard Guenther  <rguenther@suse.de>
13320
13321         PR c/22371
13322         * gimplify.c (gimplify_modify_expr): For frontend type-correct
13323         pointer assignments change conversions according to middle-end rules.
13324         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
13325         * configure.ac: Include type checking in yes.
13326         * configure: Regenerate.
13327
13328 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13329
13330         * diagnostic.c (diagnostic_count_diagnostic): Delete.
13331         (diagnostic_report_diagnostic): Update. Handle ICEs here.
13332
13333 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
13334
13335         * gthr-vxworks.h (UNUSED): Define.
13336
13337 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
13338
13339         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
13340
13341 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
13342
13343         * doc/extend.texi (Function Attributes): Add missing comma in the
13344         example of the "alloc_size" attribute.
13345
13346 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
13347
13348         Revert:
13349         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13350
13351         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13352         32bit host.
13353
13354         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
13355
13356         PR target/35496
13357         * stor-layout.c (update_alignment_for_field): Set minimum alignment
13358         of the underlying type of a MS bitfield layout to the natural
13359         alignment of the type.
13360
13361         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
13362
13363         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
13364         to their natural alignment to avoid store forwarding stalls.
13365
13366 2008-03-22  Richard Guenther  <rguenther@suse.de>
13367
13368         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
13369         For PHI nodes verify the address is invariant.
13370         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
13371         (get_symbol_constant_value): Use is_gimple_min_invariant.
13372         (maybe_fold_stmt_indirect): Likewise.
13373
13374 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
13375
13376         PR rtl-optimization/33927
13377         * Makefile.in (dse.o): Depend on $(TM_P_H).
13378         * expr.h (extract_low_bits): Declare.
13379         * expmed.c (extract_low_bits): New function.
13380         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
13381         * dse.c: Include tm_p.h.
13382         (find_shift_sequence): Remove the read_reg argument and return the
13383         read value.  Emit the instructions instead of returning them.
13384         Iterate on new_mode rather than calculating it each time.
13385         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
13386         source to NEW_MODE and extract_low_bits to convert the shifted
13387         value to READ_MODE.
13388         (replace_read): Allow the load and store to have different mode
13389         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
13390         or extraction instructions before trying the replacement.  Update
13391         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
13392
13393 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
13394
13395         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
13396         to their natural alignment to avoid store forwarding stalls.
13397
13398 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13399
13400         PR target/27946
13401         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
13402         encouraging but not allowing gprs for input;
13403         change the input constraint to !f#r.
13404         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
13405         gprs for output;
13406         change the output constraint to !f#r.
13407
13408 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
13409
13410         PR target/13958
13411         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
13412         corresponding post-reload splitters.
13413         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
13414         when x87 FP math is selected.
13415         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
13416         New function prototype.
13417         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
13418         unreachable function to ease macroization of insn patterns.
13419
13420 2008-03-21  Martin Jambor  <mjambor@suse.cz>
13421
13422         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
13423         reference dumps if ddr is NULL or dependence is unknown.
13424
13425 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13426
13427         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
13428         unsigned extension into account.
13429         (ATOMIC_COMPARE_AND_SWAP): Likewise.
13430         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
13431         Do computations on a scratch register.
13432
13433 2008-03-21  Richard Guenther  <rguenther@suse.de>
13434
13435         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
13436         Use is_gimple_min_invariant instead of TREE_INVARIANT.
13437         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
13438         * tree-ssa-dom.c (record_equality): Likewise.
13439         * tree-inline.c (copy_body_r): Likewise.
13440         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
13441         TREE_INVARIANT.
13442
13443 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13444
13445         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
13446         as 'delete_unused' argument.
13447
13448 2008-03-20  Richard Guenther  <rguenther@suse.de>
13449
13450         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
13451         special casing of constant qualifiers.
13452         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
13453         care about them in general.
13454         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
13455         regardless of their type.
13456         (fold_stmt_r): Forcefully fold *& if we end up with that.
13457
13458 2008-03-20  Paul Brook  <paul@codesourcery.com>
13459
13460         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
13461         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
13462         linker flags.
13463         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
13464         definition.
13465         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
13466         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
13467
13468 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
13469
13470         * common.opt (Wmudflap): New option.
13471         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
13472         (mx_register_decls): Likewise.
13473         (mudflap_finish_file): Likewise.
13474         * doc/invoke.texi: Document -Wno-mudflap.
13475
13476 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
13477
13478         * c-format.c (replace_format_name_to_system_name): New.
13479         (cmp_attribs): New.
13480         (convert_format_name_to_system_name): New.
13481         (decode_format_attr): Add use of convert_format_name_to_system_name.
13482         (format_types_orig): Add gnu_ prefix to names.
13483         (check_format_info_main): Special treating of \0 escaped names for
13484         supporting multi-character format specifiers as I32, I64.
13485         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
13486         (gnu_target_overrides_format_attributes): New.
13487         * c-format.h: Add structure target_ovr_attr to hold
13488         system specific formatter names.
13489         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
13490         msformat-c.o file to c_target_objs and cxx_target_objs.
13491         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
13492         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
13493         (TARGET_N_FORMAT_TYPES): New.
13494         * config/i386/msformat-c.c: New.
13495         * config/i386/t-cygming: Add build rule for msformat-c.o.
13496         * doc/extend.texi: Add new format names gnu_* and ms_* and
13497         further details.
13498         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
13499
13500 2008-03-20  Ira Rosen  <irar@il.ibm.com>
13501
13502         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
13503         optimizations turned on under -O3.
13504         (ftree-vectorize): Add that the flag is turned on with -O3.
13505
13506 2008-03-20  Ben Elliston  <bje@au.ibm.com>
13507
13508         * regmove.c (try_auto_increment): Fix spelling error in comment.
13509         * final.c (final_scan_insn): Likewise.
13510
13511 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
13512
13513         PR target/14552
13514         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
13515         allocator preferences for "y" and "r" class registers.
13516         ("*mov<mode>_internal"): Ditto.
13517         ("*movv2sf_internal_rex64"): Ditto.
13518         ("*movv2sf_internal"): Ditto.
13519
13520 2008-03-19  Michael Matz  <matz@suse.de>
13521
13522         PR middle-end/35616
13523         * calls.c (expand_call): Check overlap of arguments with call
13524         address for sibcalls.
13525
13526 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
13527
13528         PR target/35496
13529         * stor-layout.c (update_alignment_for_field): Set minimum alignment
13530         of the underlying type of a MS bitfield layout to the natural
13531         alignment of the type.
13532
13533 2008-03-19  Jan Hubicka  <jh@suse.cz>
13534
13535         PR other/35094
13536         * toplev.c (decode_d_option): Handle all CPP flags.
13537         * tree-vrp.c: Update tree_pass descriptors.
13538         * regrename.c: Update tree_pass descriptors.
13539         * fwprop.c: Update tree_pass descriptors.
13540         * doc/invoke.texi: Remove documentation of dropped -d? flags.
13541         * tree-into-ssa.c: Update tree_pass descriptors.
13542         * tree-dump.c: Update tree_pass descriptors.
13543         * tree-complex.c: Update tree_pass descriptors.
13544         * tree-dump.h: Update tree_pass descriptors.
13545         * see.c: Update tree_pass descriptors.
13546         * cgraphbuild.c: Update tree_pass descriptors.
13547         * tracer.c: Update tree_pass descriptors.
13548         * tree-loop-distribution.c: Update tree_pass descriptors.
13549         * cgraph.c: Update tree_pass descriptors.
13550         * postreload-gcse.c: Update tree_pass descriptors.
13551         * postreload.c: Update tree_pass descriptors.
13552         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
13553         * tree-tailcall.c: Update tree_pass descriptors.
13554         * tree-pass.h (tree_opt_pass): Rename to ...
13555         (opt_pass) ... this one; add "type" field and remove letter field.
13556         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
13557         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
13558         all_lowering_passes): Update declaration.
13559         * ipa-cp.c: Update tree_pass descriptors.
13560         * final.c: Update tree_pass descriptors.
13561         * omp-low.c: Update tree_pass descriptors.
13562         * tree-ssa-dse.c: Update tree_pass descriptors.
13563         * ipa-reference.c: Update tree_pass descriptors.
13564         * tree-ssa-uncprop.c: Update tree_pass descriptors.
13565         * auto-inc-dec.c: Update tree_pass descriptors.
13566         * reorg.c: Update tree_pass descriptors.
13567         * cgraphunit.c: Update tree_pass descriptors.
13568         * tree-ssa-copyrename.c: Update tree_pass descriptors.
13569         * tree-ssa-ccp.c: Update tree_pass descriptors.
13570         * df-core.c: Update tree_pass descriptors.
13571         * mode-switching.c: Update tree_pass descriptors.
13572         * tree-nomudflap.c: Update tree_pass descriptors.
13573         * modulo-sched.c: Update tree_pass descriptors.
13574         * ipa-pure-const.c: Update tree_pass descriptors.
13575         * cse.c: Update tree_pass descriptors.
13576         * web.c: Update tree_pass descriptors.
13577         * tree-stdarg.c: Update tree_pass descriptors.
13578         * tree-ssa-math-opts.c: Update tree_pass descriptors.
13579         * tree-ssa-dom.c: Update tree_pass descriptors.
13580         * tree-nrv.c: Update tree_pass descriptors.
13581         * tree-ssa-alias.c: Update tree_pass descriptors.
13582         * loop-init.c: Update tree_pass descriptors.
13583         * gimple-low.c: Update tree_pass descriptors.
13584         * ipa-inline.c: Update tree_pass descriptors.
13585         * tree-ssa-sink.c: Update tree_pass descriptors.
13586         * global.c: Update tree_pass descriptors.
13587         * ifcvt.c: Update tree_pass descriptors.
13588         * jump.c: Update tree_pass descriptors.
13589         * predict.c: Update tree_pass descriptors.
13590         * tree-ssa-loop.c: Update tree_pass descriptors.
13591         * recog.c: Update tree_pass descriptors.
13592         * dse.c: Update tree_pass descriptors.
13593         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
13594         * tree-eh.c: Update tree_pass descriptors.
13595         * regmove.c: Update tree_pass descriptors.
13596         * local-alloc.c
13597         * function.c: Update tree_pass descriptors.
13598         * tree-vectorizer.c: Update tree_pass descriptors.
13599         * gcse.c: Update tree_pass descriptors.
13600         * ipa-type-escape.c: Update tree_pass descriptors.
13601         * tree-if-conv.c: Update tree_pass descriptors.
13602         * init-regs.c: Update tree_pass descriptors.
13603         * ipa.c: Update tree_pass descriptors.
13604         * tree-ssa-phiopt.c: Update tree_pass descriptors.
13605         * rtl-factoring.c: Update tree_pass descriptors.
13606         * lower-subreg.c: Update tree_pass descriptors.
13607         * bt-load.c: Update tree_pass descriptors.
13608         * tree-dfa.c: Update tree_pass descriptors.
13609         * except.c: Update tree_pass descriptors.
13610         * emit-rtl.c: Update tree_pass descriptors.
13611         * cfgexpand.c: Update tree_pass descriptors.
13612         * tree-cfgcleanup.c: Update tree_pass descriptors.
13613         * cfgcleanup.c: Update tree_pass descriptors.
13614         * tree-ssa-pre.c: Update tree_pass descriptors.
13615         * tree-sra.c: Update tree_pass descriptors.
13616         * tree-mudflap.c: Update tree_pass descriptors.
13617         * tree-ssa-copy.c: Update tree_pass descriptors.
13618         * cfglayout.c: Update tree_pass descriptors.
13619         * tree-ssa-forwprop.c: Update tree_pass descriptors.
13620         * tree-ssa-dce.c: Update tree_pass descriptors.
13621         * tree-ssa.c: Update tree_pass descriptors.
13622         * regclass.c: Update tree_pass descriptors.
13623         * integrate.c: Update tree_pass descriptors.
13624         * tree-optimize.c: Update tree_pass descriptors.
13625         * tree-ssa-phiprop.c: Update tree_pass descriptors.
13626         * tree-object-size.c: Update tree_pass descriptors.
13627         * combine.c: Update tree_pass descriptors.
13628         * tree-outof-ssa.c: Update tree_pass descriptors.
13629         * bb-reorder.c: Update tree_pass descriptors.
13630         * stack-ptr-mod.c: Update tree_pass descriptors.
13631         * var-tracking.c: Update tree_pass descriptors.
13632         * tree-profile.c: Update tree_pass descriptors.
13633         * tree-vect-generic.c: Update tree_pass descriptors.
13634         * reg-stack.c: Update tree_pass descriptors.
13635         * sched-rgn.c: Update tree_pass descriptors.
13636         * tree-ssa-structalias.c: Update tree_pass descriptors.
13637         * tree-cfg.c: Update tree_pass descriptors.
13638         * passes.c (current_pass): Update declaration.
13639         (finish_optimization_passes): Update.
13640         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
13641         (register_one_dump_file, register_dump_files_1, next_pass_1):
13642         Update arguments.
13643         (init_optimization_passes): Update handling of new types.
13644         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
13645         * ipa-struct-reorg.c: Update tree_pass descriptors.
13646         * tree-ssa-reassoc.c: Update tree_pass descriptors.
13647         * combine-stack-adj.c: Update tree_pass descriptors.
13648         * cfgrtl.c: Update tree_pass descriptors.
13649         * dce.c: Update tree_pass descriptors.
13650         * tree-ssanames.c: Update tree_pass descriptors.
13651
13652 2008-03-19  Richard Guenther  <rguenther@suse.de>
13653
13654         PR middle-end/35609
13655         * tree-ssa.c (walk_data): New structure.
13656         (warn_uninitialized_var): If not always_executed warn with "maybe"
13657         instead of "is".
13658         (execute_early_warn_uninitialized): Compute post-dominators.
13659         Initialize always_executed before processing each basic block.
13660
13661 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
13662
13663         PR target/35504
13664         * config/i386/i386.c (x86_this_parameter): Calculate correct location
13665         of "this" pointer when "regparm = N" or "fastcall" is in effect.
13666
13667 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13668
13669         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
13670
13671 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
13672
13673         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
13674         is true.
13675         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
13676         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
13677         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
13678         target after ignore has been set, and move there also the commputation
13679         of subtarget and original_target.
13680         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
13681         (LANG_HOOKS_INITIALIZER): Remove it.
13682         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
13683
13684 2008-03-18  Richard Guenther  <rguenther@suse.de>
13685
13686         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
13687         found an expression with constants, note that in the VN for the lhs.
13688         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
13689         fold them to constants if possible.  Run cleanup_cfg if done so.
13690         (execute_pre): Return todo.
13691         (do_pre): Likewise.
13692         (execute_fre): Likewise.
13693         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
13694         of constants.
13695         (get_prop_source_stmt): Look through pointer conversions.
13696
13697 2008-03-18  Jan Hubicka  <jh@suse.cz>
13698
13699         * tree-pretty-print.c: Include predict.h.
13700         (dump_generic_node): Dump predictor.
13701         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
13702         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
13703         * gimple-low.c (lower_stmt): Likewise.
13704         * expr.c (expand_expr_real): Likewise.
13705         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
13706         them.
13707         (build_predict_expr, build_predict_expr): New.
13708         * predict.h (predictor_name, build_predict_expr): Update.
13709         * c-typeck.c (c_finish_bc_stmt): Add prediction.
13710         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
13711         * predict.def (PRED_CONTINUE): Update hitrate.
13712         * tree.def (PREDICT_EXPR): Define.
13713         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
13714         do not handle BIND_EXPR.
13715         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
13716         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
13717         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
13718         operands.
13719
13720 2008-03-18  Michael Matz  <matz@suse.de>
13721
13722         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
13723
13724 2008-03-18  Richard Guenther  <rguenther@suse.de>
13725
13726         * tree-gimple.h (is_gimple_invariant_address): Declare.
13727         (is_gimple_constant): Likewise.
13728         * tree-gimple.c (is_gimple_constant): New function.
13729         (is_gimple_invariant_address): Likewise.
13730         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
13731         and is_gimple_invariant_address.
13732         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
13733         previous change.
13734         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
13735         an addressable base.
13736
13737 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
13738
13739         PR middle-end/35611
13740         * gimplify.c (gimplify_expr): Gimplify second operand of
13741         OMP_ATOMIC_LOAD.
13742
13743 2008-03-17  Richard Guenther  <rguenther@suse.de>
13744
13745         PR tree-optimization/19637
13746         * fold-const.c (fold_unary): Remove restrictions of removing
13747         intermediate pointer-conversions (P2)(P1)P0.
13748         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
13749         conversion to void pointer.
13750         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
13751
13752 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
13753
13754         PR debug/31510
13755         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
13756         emulated thread local variables.
13757
13758 2008-03-16  Richard Guenther  <rguenther@suse.de>
13759
13760         PR middle-end/35607
13761         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
13762         expand TREE_INVARIANT operations that are not gimple invariant.
13763
13764 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
13765
13766         * doc/extend.texi (Alignment): Say that the ABI controls
13767         the __alignof__ for non-strict-alignment targets rather
13768         than being a recommendation.
13769
13770 2008-03-15  Paul Brook  <paul@codesourcery.com>
13771
13772         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
13773         annotations.
13774         (arm_output_fn_unwind): Mark functions that can not be unwound.
13775
13776 2008-03-15  Paul Brook  <paul@codesourcery.com>
13777
13778         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
13779         extension instructions.
13780
13781 2008-03-15  Richard Guenther  <rguenther@suse.de>
13782
13783         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
13784         and fold constant aggregate refs.
13785         (fold_const_aggregate_ref): Handle string constants
13786         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
13787         (evaluate_stmt): Simplify now that ccp_fold folds constant
13788         aggregate refs.
13789
13790 2008-03-15  Paul Brook  <paul@codesourcery.com>
13791
13792         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
13793         (extzv): Use gen_extzv_t2.
13794         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
13795
13796 2008-03-15  Richard Guenther  <rguenther@suse.de>
13797
13798         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
13799         (fold_const_aggregate_ref): Likewise.
13800         (get_value): Return NULL if we don't have any values.
13801         (ccp_finalize): Set const_val to NULL after freeing it.
13802         * tree-flow.h (get_symbol_constant_value): Declare.
13803         (fold_const_aggregate_ref): Likewise.
13804         * tree-ssa-sccvn.c (try_to_simplify): Use them.
13805
13806 2008-03-15  Richard Guenther  <rguenther@suse.de>
13807
13808         PR middle-end/35593
13809         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
13810         to not produce negative array indices if not allowed.  Add
13811         parameter to indicate that.
13812         (maybe_fold_offset_to_component_ref): Allow negative array
13813         indices only for the first member of a structure.
13814         (maybe_fold_offset_to_reference): Allow negative array indices.
13815         (maybe_fold_stmt_addition): Likewise.
13816
13817 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
13818             Anatoly Sokolov <aesok@post.ru>
13819
13820         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
13821         (avr_arch): Add ARCH_AVR6.
13822         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
13823         (initial_elimination_offset): Initialize and use 'avr_pc_size'
13824         instead of fixed value 2.
13825         (print_operand_address): Use gs() asm specifier instead of pm().
13826         (avr_assemble_integer): (Ditto.).
13827         (avr_output_addr_vec_elt): (Ditto.).
13828         (print_operand): Handle "!" code.
13829         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
13830         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
13831         (AVR_HAVE_EIJMP_EICALL): Define.
13832         (AVR_3_BYTE_PC): Redefine.
13833         (AVR_2_BYTE_PC): (Ditto.).
13834         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
13835         (LINK_SPEC): Add atmega2560 and atmega2561.
13836         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
13837         (crtm2561.o).
13838         * config/avr/avr.md (call_insn): Use eicall instead of icall
13839         for 3 byte PC devices.
13840         (call_value_insn): (Ditto.).
13841         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
13842         (indirect_jump): Use only for for 2 byte PC devices.
13843         (*tablejump): (Ditto.).
13844         (*indirect_jump_avr6): Add insn.
13845         (*tablejump_rjmp): Don't use for 3 byte PC devices.
13846         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
13847         instead of ijmp for 3 byte PC devices.
13848         (__tablejump2__): (Ditto.).
13849         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
13850         (MULITLIB_DIRNAMES): (Ditto.).
13851         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
13852
13853 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
13854
13855         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
13856         "sse2_umulsidi3".  Use V1DI mode for operand 0.
13857         ("mmx_psadbw"): Use V1DI mode for operand 0.
13858         * config/i386/i386-modes.def (V1SI): New vector mode.
13859         * config/i386/i386.c (struct builtin_description)
13860         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
13861         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
13862         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
13863         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
13864         v1di_ftype_v8qi_v8qi type.
13865         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
13866
13867         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
13868         __builtin_ia32_pmuludq]: Fix the mode of return value.
13869
13870 2008-03-15  Richard Guenther  <rguenther@suse.de>
13871
13872         PR middle-end/35595
13873         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
13874         being a PHI_NODE.
13875
13876 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
13877
13878         * doc/invoke.texi (Option Summary, Xtensa Options): Document
13879         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
13880         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
13881         unless TARGET_SERIALIZE_VOLATILE is enabled.
13882         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
13883         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
13884         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
13885
13886 2008-03-14  Richard Guenther  <rguenther@suse.de>
13887
13888         PR tree-optimization/34172
13889         * tree-flow.h (refs_may_alias_p): Declare.
13890         (get_single_def_stmt): Likewise.
13891         (get_single_def_stmt_from_phi): Likewise.
13892         (get_single_def_stmt_with_phi): Likewise.
13893         * tree-dfa.c (refs_may_alias_p): New function.
13894         (get_single_def_stmt): Likewise.
13895         (get_single_def_stmt_from_phi): Likewise.
13896         (get_single_def_stmt_with_phi): Likewise.
13897         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
13898         (vn_reference_lookup_1): New helper function.
13899         (vn_reference_lookup): Walk the virtual use-def chain to
13900         continue searching for a match if the def does not alias the
13901         reference we are looking for.
13902
13903 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
13904
13905         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
13906         archive and Perzl.  Update The Written Word listing.
13907
13908 2008-03-14  Richard Guenther  <rguenther@suse.de>
13909
13910         PR tree-optimization/34043
13911         PR tree-optimization/33989
13912         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
13913         when doing FRE.
13914         (bitmap_find_leader): Use extra argument to verify dominance
13915         relationship inside a basic-block.
13916         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
13917         (find_leader_in_sets): Adjust.
13918         (create_component_ref_by_pieces): Take extra argument for
13919         dominance check, handle lookup failures.
13920         (find_or_generate_expression): Likewise.
13921         (create_expression_by_pieces): Likewise.
13922         (insert_into_preds_of_block): Adjust.
13923         (create_value_expr_from): If asked for, verify all operands
13924         are in the blocks AVAIL_OUT set.
13925         (make_values_for_stmt): Check for SSA_NAMEs that are life
13926         over an abnormal edge.
13927         (compute_avail): Remove such check.
13928         (do_SCCVN_insertion): New function.
13929         (eliminate): If we do not find a leader suitable for replacement
13930         insert a replacement expression from SCCVN if available.
13931         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
13932         (struct vn_ssa_aux): Add needs_insertion flag.
13933         * tree-ssa-sccvn.c (may_insert): New global flag.
13934         (copy_reference_ops_from_ref): Value-number union member access
13935         based on its size, not type and member if insertion is allowed.
13936         (visit_reference_op_load): For a weak match from union type
13937         punning lookup a view-converted value and insert a SSA_NAME
13938         for that value if that is not found.
13939         (visit_use): Make dumps shorter.  Do not disallow value numbering
13940         SSA_NAMEs that are life over an abnormal edge to constants.
13941         (free_scc_vn): Release inserted SSA_NAMEs.
13942         (run_scc_vn): New flag to specify whether insertion is allowed.
13943         Process SSA_NAMEs in forward order.
13944         * tree-ssa-loop-im.c (for_each_index): Handle invariant
13945         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
13946         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
13947         pointer type to/from integral types that do not change the
13948         precision to regular conversions.
13949
13950 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
13951
13952         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13953         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13954         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
13955         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
13956         input arguments and the mode of return value.  Built-in functions
13957         that operate on whole 64-bit MMX register now use V1DI mode.
13958
13959 2008-03-13  Alon Dayan  <alond@il.ibm.com>
13960             Olga Golovanevsky  <olga@il.ibm.com>
13961
13962         PR tree-optimization/35041
13963         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
13964         to locate the right position in a statement.
13965
13966 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
13967
13968         PR target/34000
13969         PR target/35553
13970         * config/i386/xmmintrin.h:  Change all static inline functions to
13971         extern inline and add __gnu_inline__ attribute.
13972         * config/i386/bmintrin.h: Ditto.
13973         * config/i386/smmintrin.h: Ditto.
13974         * config/i386/tmmintrin.h: Ditto.
13975         * config/i386/mmintrin-common.h: Ditto.
13976         * config/i386/ammintrin.h: Ditto.
13977         * config/i386/emmintrin.h: Ditto.
13978         * config/i386/pmmintrin.h: Ditto.
13979         * config/i386/mmintrin.h: Ditto.
13980         * config/i386/mm3dnow.h: Ditto.
13981
13982 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
13983
13984         PR middle-end/35185
13985         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
13986         (lower_omp_2): New function.
13987         (lower_omp_1, lower_omp): Rewritten.
13988
13989 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
13990
13991         PR 35054
13992         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
13993         with the phrase "Microsoft Windows compilers".
13994         (Push/Pop Macro Pragmas): New subsection. Document
13995         #pragma push_macro and pragma pop_macro.
13996
13997 2008-03-12  Paul Brook  <paul@codesourcery.com>
13998
13999         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
14000
14001 2008-03-12  Paul Brook  <paul@codesourcery.com>
14002
14003         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
14004         (thumb2_alusi3_short): Exclude PLUS and MINUS.
14005         (thumb2_addsi_shortim): Rename ...
14006         (thumb2_addsi_short): ... to this.  Allow register operands.
14007         (thumb2_subsi_short): New pattern.
14008         (thumb2_one_cmplsi2_short,
14009         thumb2_negsi2_short): New patterns and peepholes.
14010
14011 2008-03-12  Paul Brook  <paul@codesourcery.com>
14012
14013         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
14014
14015 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
14016
14017         * config/i386/i386.md (int_cond): New code iterator.
14018         (fp_cond): Ditto.
14019         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
14020         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
14021         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
14022         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
14023         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
14024         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
14025         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
14026         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
14027
14028 2008-03-12  Paul Brook  <paul@codesourcery.com>
14029
14030         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
14031         instead of {arm,thumb}_compute_save_reg_mask.
14032         (output_return_instruction): Ditto.
14033         (thumb_unexpanded_epilogue): Ditto.
14034         (thumb1_expand_prologue): Ditto.
14035         (thumb1_output_function_prologue): Ditto.
14036         (arm_set_return_address): Ditto.
14037         (thumb_set_return_address): Ditto.
14038         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
14039         regs to achieve stack alignment.
14040         (thumb1_compute_save_reg_mask): Fix compiler warning.
14041         (arm_output_epilogue): Use offsets->saved_regs_mask.
14042         Adjust stack pointer by poping call clobered registers.
14043         (arm_expand_prologue): Use offsets->saved_regs_mask.
14044         Adjust stack pointer by pushing extra registers.
14045         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
14046
14047 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
14048
14049         PR tree-opt/35422
14050         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
14051         conversion to the operands of a multiplication.
14052
14053 2008-03-12  Richard Guenther  <rguenther@suse.de>
14054
14055         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
14056         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
14057         * timevar.def (TV_TREE_PHIPROP): Add.
14058         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
14059         pass description.  Use TV_TREE_PHIPROP.
14060         * tree-ssa-forwprop.c: Remove phiprop code.
14061
14062 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
14063
14064         PR middle-end/35549
14065         * omp-low.c (maybe_lookup_decl): Constify first argument.
14066         (use_pointer_for_field): Change last argument from bool to
14067         omp_context *.  Disallow shared copy-in/out in nested
14068         parallel if decl is shared in outer parallel too.
14069         (build_outer_var_ref, scan_sharing_clauses,
14070         lower_rec_input_clauses, lower_copyprivate_clauses,
14071         lower_send_clauses, lower_send_shared_vars): Adjust callers.
14072
14073 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
14074             Ira Rosen  <irar@il.ibm.com>
14075
14076         * tree-vectorizer.c (free_stmt_vec_info): New function.
14077         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
14078         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
14079         * tree-vectorizer.h (free_stmt_vec_info): Declare.
14080         * tree-vect-transform.c (vectorizable_conversion): Free
14081         vec_oprnds0 if it was allocated.
14082         (vect_permute_store_chain): Remove unused VECs.
14083         (vectorizable_store): Free VECs that are allocated in the..
14084         function.
14085         (vect_transform_strided_load, vectorizable_load): Likewise.
14086         (vect_remove_stores): Simplify the code.
14087         (vect_transform_loop): Move code to vect_remove_stores().
14088         Call vect_remove_stores() and free_stmt_vec_info().
14089
14090 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14091
14092         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
14093         TARGET_HPUX.  Revise comment.
14094         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
14095         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
14096         Use sr4 variant of `be' instruction when not generating PIC code.
14097         (attr_length_call): Adjust for above change.
14098
14099 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14100
14101         * ipa-reference.c (static_execute): Remove module_statics_const and
14102         associated setting code.
14103
14104 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
14105
14106         PR target/35540
14107         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
14108         predicate for operand 1.
14109         (paritysi2_cmp): Use register_operand predicate for operand 2.
14110         Use earlyclobber modifier for operand 1.  Remove support for
14111         memory operands.
14112         (paritydi2_cmp): Use register_operand predicate for operand 3.
14113         Use earlyclobber modifier for operand 1.  Remove support for
14114         memory operands.
14115
14116 2008-03-11  Paul Brook  <paul@codesourcery.com>
14117             Vladimir Prus  <vladimir@codesourcery.com>
14118
14119         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
14120         (arm_compute_save_reg0_reg12_mask): Always
14121         check if register 11 must be saved.  Always safe hard frame pointer
14122         when frame_pointer_needeed.
14123         (arm_compute_save_reg_mask): Save IP and PC
14124         only with apcs frames.
14125         (arm_output_epilogue): Adjust Thumb2 codepath to
14126         be also invoked and work for ARM non-apcs frames.
14127         (arm_expand_prologue): Don't bother saving IP
14128         for non-apcs frame, since it's not clobbered by
14129         prologue code.  Implement non-apcs frame
14130         layout.
14131
14132 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
14133
14134         PR rtl-optimization/35281
14135         * expr.c (convert_move): Use a new pseudo for the intermediate
14136         from_mode->word_mode result.
14137
14138 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
14139
14140         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
14141         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
14142         * toplev.c (compile_file): Don't call it.
14143
14144 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
14145
14146         PR middle-end/35526
14147         * expr.c (store_expr): Call emit_block_move if the mode
14148         of "temp" RTX is BLKmode.
14149
14150 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14151             Richard Guenther  <rguenther@suse.de>
14152
14153         PR tree-optimization/31358
14154         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
14155         the step with a NULL_TREE.
14156         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
14157         to sizetype if type is a pointer type.
14158         (add_candidate_1): Don't convert the base and step to
14159         the generic type if the orginal type is a pointer type.
14160         (add_iv_value_candidates): Use sizetype for the step
14161         if type is a pointer type.
14162         (cand_value_at): Likewise.
14163         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
14164         for pointer types.
14165         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
14166         Don't convert the tem affine to the type.
14167         (add_elt_to_tree): Use sizetype for the step if a pointer.
14168         Use POINTER_PLUS_EXPR for pointers.
14169         (aff_combination_to_tree): Use sizetype for the step if a
14170         pointer.
14171
14172 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
14173
14174         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
14175         Remove commutativity hint.
14176
14177 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
14178
14179         PR c/35438
14180         PR c/35439
14181         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
14182         errorneous type.  Check that v is a VAR_DECL.
14183
14184         PR middle-end/35099
14185         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
14186
14187 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
14188
14189         PR tree-optimization/35494
14190         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
14191         may be overriden at link and run time.
14192
14193 2008-03-10  Richard Guenther  <rguenther@suse.de>
14194
14195         PR tree-optimization/34677
14196         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
14197         (poolify_tree): Likewise.
14198         (modify_expr_template): Likewise.
14199         (poolify_modify_stmt): Likewise.
14200         (insert_fake_stores): Handle all component-ref style stores
14201         in addition to INDIRECT_REF.  Also handle complex types.
14202         Do not poolify the inserted load.
14203         (realify_fake_stores): Do not rebuild the tree but only
14204         make it a SSA_NAME copy.
14205         (init_pre): Remove initialzation of modify_expr_template.
14206         Do not allocate modify_expr_node_pool.
14207         (fini_pre): Do not free modify_expr_node_pool.
14208
14209 2008-03-10  Paul Brook  <paul@codesourcery.com>
14210
14211         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
14212         to avoid conflicts.
14213
14214 2008-03-10  Paul Brook  <paul@codesourcery.com>
14215             Mark Shinwell  <shinwell@codesourcery.com>
14216
14217         * config/arm/cortex-r4.md: New.
14218         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
14219         insn attributes.
14220         * config/arm/arm.md: Include cortex-r4.md.
14221         (insn): Add smmls, sdiv and udiv values.
14222         (generic_sched): Don't use generic scheduling for Cortex-R4.
14223         (arm_issue_rate): New function.
14224         (TARGET_SCHED_ISSUE_RATE): Define.
14225
14226 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
14227
14228         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
14229
14230 2008-03-10  Richard Guenther  <rguenther@suse.de>
14231
14232         * tree-ssa-pre.c (get_sccvn_value): Simplify.
14233         (compute_avail): Do not add stmt uses to AVAIL_OUT.
14234
14235 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
14236
14237         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
14238         Set default to true.
14239
14240 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14241
14242         * c.opt (Wsynth): Deprecate.
14243         * doc/invoke.texi (Option Summary, Warning Options): Document
14244         -Wno-format-contains-nul.
14245
14246 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
14247
14248         PR target/35496
14249         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
14250         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
14251
14252 2008-03-09  Ira Rosen  <irar@il.ibm.com>
14253
14254         * config/rs6000/rs6000.c (builtin_description): Rename vector
14255         left shift operations.
14256         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
14257         (altivec_vsl<VI_char>): Rename to ...
14258         (ashl<mode>3): ... new name.
14259         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
14260         gen_ashlv4si3.
14261         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
14262
14263 2008-03-08  Richard Guenther  <rguenther@suse.de>
14264
14265         * coverage.h (tree_coverage_counter_addr): Declare.
14266         * coverage.c (tree_coverage_counter_addr): New function.
14267         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
14268         before using again.
14269         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
14270         (tree_gen_one_value_profiler): Likewise.
14271         (tree_gen_ic_profiler): Likewise.
14272         (tree_gen_average_profiler): Likewise.
14273         (tree_gen_ior_profiler): Likewise.
14274
14275 2008-03-08  Richard Guenther  <rguenther@suse.de>
14276
14277         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
14278         (vn_binary_op_insert): Likewise.
14279         (vn_unary_op_lookup): Likewise.
14280         (vn_unary_op_insert): Likewise.
14281         (vn_nary_op_lookup): Declare.
14282         (vn_nary_op_insert): Likewise.
14283         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
14284         and binary hashes, use a single obstack for unary_op_pool
14285         and binary_op_pool.
14286         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
14287         a single struct vn_nary_op_s.  Store tree code length and
14288         a variable number of operands.
14289         (struct vn_reference_op_struct): Remove unused op2.
14290         (vn_reference_op_eq): Do not compare op2.
14291         (vn_reference_op_compute_hash): Do not compute hash of op2.
14292         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
14293         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
14294         with vn_nary_op_compute_hash.
14295         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
14296         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
14297         vn_nary_op_lookup.
14298         (vn_unary_op_insert, vn_binary_op_insert): Replace with
14299         vn_nary_op_insert.
14300         (visit_unary_op): Call nary functions.
14301         (visit_binary_op): Likewise.
14302         (process_scc): Adjust for struct vn_tables_s changes.
14303         (allocate_vn_table): Likewise.
14304         (free_vn_table): Likewise.
14305         * tree-vn.c (vn_add): Call nary functions.
14306         (vn_lookup): Likewise.
14307
14308 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
14309
14310         PR target/35498
14311         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
14312         wdst back after sync_compare_and_swapqhi_internal.
14313
14314 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
14315
14316         PR target/22152
14317         * config/i386/i386-modes.def (V1DI): New vector mode.
14318         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
14319         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
14320         (MMXMODE248): Ditto.
14321         (MMXMODE): Add V1DI mode.
14322         (mmxvecsize): Change DI mode to V1DI mode.
14323         ("mov<mode>): Use MMXMODEI8 mode iterator.
14324         ("*mov<mode>_internal_rex64"): Ditto.
14325         ("*mov<mode>_internal"): Ditto.
14326         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
14327         ("mmx_sub<mode>3"): Ditto.
14328         ("mmx_adddi3"): Remove insn pattern.
14329         ("mmx_subdi3"): Ditto.
14330         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
14331         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
14332         ("mmx_ashl<mode>3"): Ditto.
14333         ("mmx_lshrdi3"): Remove insn pattern.
14334         ("mmx_ashldi3"): Ditto.
14335         * config/i386/i386.c (classify_argument): Handle V1DImode.
14336         (function_arg_advance_32): Ditto.
14337         (function_arg_32): Ditto.
14338         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
14339         mmx_addv1di3 insn pattern.
14340         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
14341         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
14342         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
14343         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
14344         Remove definitions of built-in functions.
14345         (V1DI_type_node): New node.
14346         (v1di_ftype_v1di_int): Ditto.
14347         (v1di_ftype_v1di_v1di): Ditto.
14348         (v2si_ftype_v2si_si): Ditto.
14349         (v4hi_ftype_v4hi_di): Remove node.
14350         (v2si_ftype_v2si_di): Ditto.
14351         (ix86_init_mmx_sse_builtins): Handle V1DImode.
14352         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
14353         Redefine builtins using def_builtin_const with *_ftype_*_int node.
14354         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
14355         Add new builtins using def_builtin_const.
14356         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
14357         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
14358         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
14359         * config/i386/mmintrin.h (__v1di): New typedef.
14360         (_mm_add_si64): Cast arguments to __v1di type.
14361         (_mm_sub_si64): Ditto.
14362         (_mm_sll_pi16): Cast __count to __v4hi type.
14363         (_mm_sll_pi32): Cast __count to __v2si type.
14364         (_mm_sll_si64): Cast arguments to __v1di type.
14365         (_mm_srl_pi16): Cast __count to __v4hi type.
14366         (_mm_srl_pi32): Cast __count to __v2si type.
14367         (_mm_srl_si64): Cast arguments to __v1di type.
14368         (_mm_sra_pi16): Cast __count to __v4hi type.
14369         (_mm_sra_pi32): Cast __count to __v2si type.
14370         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
14371         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
14372         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
14373         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
14374         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
14375         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
14376         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
14377         (_mm_srai_pi32): Use __builtin_ia32_psradi.
14378         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
14379         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
14380         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
14381         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
14382
14383 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
14384
14385         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
14386
14387 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
14388
14389         PR target/35373
14390         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
14391         reg+const addressing for Altivec modes.  Don't generate reg+reg
14392         addressing for TFmode or TDmode quantities.
14393
14394 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
14395
14396         * c-common.c (vector_types_convertible_p): Call langhook
14397         instead of comptypes.
14398
14399 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14400
14401         PR tree-opt/35402
14402         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
14403         integral and scalar float variables which have a
14404         NULL DECL_INITIAL.
14405
14406 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
14407
14408         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
14409         dwarf_register_span hook when emitting unwind information for
14410         register-to-memory saves.
14411         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
14412         (rs6000_frame_related): Remove call to spe_synthesize_frame.
14413
14414 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
14415
14416         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
14417         for the same VAR_DECL.
14418
14419 2008-03-06  Tom Tromey  <tromey@redhat.com>
14420
14421         * treelang: Delete.
14422         * doc/standards.texi (Standards): Don't mention treelang.
14423         * doc/invoke.texi (Overall Options): Don't mention treelang.
14424         * doc/install.texi (Prerequisites): Don't mention bison or
14425         treelang.
14426         (Configuration): Don't mention treelang.
14427         (Building): Likewise.
14428         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
14429
14430 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
14431
14432         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
14433         word-extractions out of a multi-word object.
14434
14435 2008-03-06  Richard Guenther  <rguenther@suse.de>
14436
14437         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
14438         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
14439         result type and precision.
14440         * expr.c (get_inner_reference): Set unsignedp based on the result
14441         type of BIT_FIELD_REF.
14442         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
14443         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
14444         (try_instantiate_multiple_fields): Likewise.  Use the correct type
14445         for BIT_FIELD_REF.
14446         (sra_build_assignment): Likewise.
14447         (sra_build_elt_assignment): Likewise.
14448         (sra_explode_bitfield_assignment): Likewise.
14449         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
14450         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
14451         set BIT_FIELD_REF_UNSIGNED.
14452         (vectorizable_load): Likewise.
14453
14454 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
14455
14456         * cse.c (cse_extended_basic_block): Invalidate artificial defs
14457         at bb start.
14458
14459 2008-03-06  Richard Guenther  <rguenther@suse.de>
14460
14461         * alias.c (struct alias_set_entry): Move has_zero_child field
14462         to pack with alias_set.
14463
14464 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
14465
14466         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14467         32bit host.
14468
14469 2008-03-05  Ian Lance Taylor  <iant@google.com>
14470
14471         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
14472
14473 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
14474
14475         * fwprop.c (update_df): Support width and offset parameters of
14476         df_ref_create.
14477         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
14478         global_conflicts): Change DF_REF_EXTRACT to either
14479         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
14480         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
14481         * df-scan.c (df_ref_record, df_defs_record,
14482         df_ref_create_structure, df_def_record_1, df_uses_record,
14483         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
14484         df_bb_refs_collect, df_entry_block_defs_collect,
14485         df_exit_block_uses_collect): Support new width and offset fields.
14486         (ref_extract_pool): New storage pool.
14487         (df_free_ref): New function.
14488         (df_reg_chain_unlink, df_free_collection_rec,
14489         df_sort_and_compress_refs): Call df_free_ref.
14490         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
14491         of df_ref_extract.
14492         (df_ref_create_structure): Allocate df_ref_extract if offset and
14493         width fields are used.
14494         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
14495         (df_uses_record): Get offset and width from ZERO_EXTRACT
14496         and SIGN_EXTRACT.
14497         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
14498         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
14499         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
14500         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
14501         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
14502         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
14503         (df_ref_extract): New structure.
14504         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
14505         (df_ref_create): Add width and offset parameters.
14506
14507 2008-03-05  Richard Guenther  <rguenther@suse.de>
14508
14509         * tree-ssa-structalias.c (get_constraint_for_component_ref):
14510         Use ranges_overlap_p.
14511         (offset_overlaps_with_access): Rename
14512         to ranges_overlap_p and move ...
14513         * tree-flow-inline.h (ranges_overlap_p): ... here.
14514
14515         * tree.h (get_inner_reference, handled_component_p): Update
14516         comments.
14517
14518         * tree.h (record_component_aliases, get_alias_set,
14519         alias_sets_conflict_p, alias_sets_must_conflict_p,
14520         objects_must_conflict_p): Move declarations ...
14521         * alias.h (record_component_aliases, get_alias_set,
14522         alias_sets_conflict_p, alias_sets_must_conflict_p,
14523         objects_must_conflict_p): ... here.
14524         Include coretypes.h.
14525         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
14526
14527 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
14528
14529         * cfg.c: Include tree-flow.h.
14530         (remove_edge_raw): Call redirect_edge_var_map_clear.
14531         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
14532         * tree-flow-inline.h (redirect_edge_var_map_def): New.
14533         (redirect_edge_var_map_result): New.
14534         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
14535         PENDING_STMT use with redirect_edge_var_map_*.
14536         * tree-ssa.c (edge_var_maps): New definition.
14537         (redirect_edge_var_map_add): New.
14538         (redirect_edge_var_map_clear): New.
14539         (redirect_edge_var_map_dup): New.
14540         (redirect_edge_var_map_vector): New.
14541         (redirect_edge_var_map_destroy): New.
14542         (ssa_redirect_edge): Replace PENDING_STMT use with
14543         redirect_edge_var_map_*.
14544         (flush_pending_stmts): Same.
14545         (delete_tree_ssa): Destroy edge var map.
14546         * tree-flow.h (struct _edge_var_map): New.
14547         Define edge_var_map vector type.
14548         Declare redirect_edge_var_map_* prototypes.
14549         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
14550         * tree-cfg.c (reinstall_phi_args): Replace
14551         PENDING_STMT use with redirect_edge_var_map_*.
14552
14553 2008-03-05  Richard Guenther  <rguenther@suse.de>
14554
14555         PR tree-optimization/35472
14556         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
14557         whose single use_stmt has a overlapping set of loaded and
14558         stored symbols as that use_stmt might be a noop assignment then.
14559
14560 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
14561
14562         * gthr-rtems.h: Implement __gthread_mutex_destroy.
14563
14564 2008-03-05  Richard Guenther  <rguenther@suse.de>
14565
14566         PR c++/35336
14567         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
14568         should be constants.
14569         * tree-cfg.c (verify_expr): Verify it.
14570         * fold-const.c (fold_truthop): Remove code generating
14571         BIT_FIELD_REFs of structure bases.
14572         (fold_binary): Likewise.
14573         (fold_ternary): Position and size of BIT_FIELD_REFs are
14574         always host integers.
14575         (make_bit_field_ref): Remove.
14576         (optimize_bit_field_compare): Remove.
14577         (all_ones_mask_p): Remove.
14578
14579 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
14580
14581         PR gcc/33009
14582         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
14583         (split_block_and_df_analyze): New. Split basic block and rebuild
14584         dataflow.
14585         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
14586         SPLIT_BLOCK.
14587         (split_pattern_seq): Likewise.
14588         (erase_matching_seqs): Likewise.
14589         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
14590
14591 2008-03-04  Geoff Keating  <geoffk@apple.com>
14592
14593         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
14594         declaration and code.
14595         (tree_invalid_nonnegative_warnv_p): Likewise.
14596
14597 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
14598
14599         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
14600         examples.  Truncate option-names then causing overfull hbox.
14601
14602 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14603
14604         PR target/35222
14605         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
14606         on hpux10.
14607         * configure: Rebuilt.
14608
14609 2008-03-04  Rafael Espindola  <espindola@google.com>
14610
14611         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
14612         (tree_unary_nonnegative_warnv_p): New.
14613         (tree_binary_nonnegative_warnv_p): New.
14614         (tree_single_nonnegative_warnv_p): New.
14615         (tree_invalid_nonnegative_warnv_p): New.
14616         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
14617
14618 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14619
14620         PR 28322
14621         * opts.c (handle_option): Postpone 'unknown option' errors only for
14622         warning options.
14623
14624 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
14625
14626         PR target/35453
14627         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
14628         (_SIDD_XXX): This.
14629
14630 2008-03-04  Rafael Espindola  <espindola@google.com>
14631
14632         * fold-const.c (tree_unary_nonzero_warnv_p): New.
14633         (tree_binary_nonzero_warnv_p): New.
14634         (tree_single_nonzero_warnv_p): New.
14635         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
14636
14637 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
14638
14639         PR middle-end/35456
14640         * fold-const.c (fold_cond_expr_with_comparison): Prevent
14641         transformations for modes that have signed zeros.
14642         * ifcvt.c (noce_try_abs): Ditto.
14643
14644 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
14645
14646         * config/i386/i386.c (override_options): Force
14647         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
14648
14649 2008-03-04  Jan Hubicka  <jh@suse.cz>
14650
14651         PR c++/35262
14652         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
14653         in last commit.
14654
14655 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
14656
14657         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
14658         label to probe the stack.
14659
14660 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
14661
14662         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
14663         (__gthr_win32_mutex_destroy): Declare.
14664         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
14665         __gthr_win32_mutex_destroy.
14666         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
14667
14668 2008-03-03  Jan Hubicka  <jh@suse.cz>
14669
14670         PR c++/35262
14671         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
14672         aggressive on inlining cold calls.
14673
14674 2008-03-03  Richard Guenther  <rguenther@suse.de>
14675
14676         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
14677         struct copies into the expression table.
14678         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
14679         (try_to_simplify): Likewise.
14680         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
14681         integral and pointer arguments which do not change the
14682         precision to NOP_EXPRs.
14683         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
14684         VIEW_CONVERT_EXPR case.
14685
14686 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
14687
14688         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
14689         defined in a loop at depth 0 is invariant.
14690         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
14691         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
14692         be called at loop depth 0.
14693
14694 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
14695
14696         PR driver/35420
14697         * gcc.c (process_command): Update copyright notice dates.
14698         * gcov.c (print_version): Likewise.
14699         * gcov-dump.c (print_version): Likewise.
14700         * mips-tfile.c (main): Likewise.
14701         * mips-tdump.c (main): Likewise.
14702
14703 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14704
14705         PR 24924
14706         * c-common.c (flag_permissive): Delete.
14707         (constant_expression_warnings): Check flags first.
14708         (constant_expression_error): New.
14709         * c-common.h (flag_permissive): Delete.
14710         (constant_expression_error): Declare.
14711         * flags.h (flag_permissive): Declare. Update description.
14712         * diagnostic.c (pedwarn): Update.
14713         (permerror): New.
14714         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
14715         (permissive_error_kind): New.
14716         * toplev.c (flag_permissive): Define. Update description.
14717         * toplev.h (permissive_error_kind): Declare.
14718         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
14719         (pedwarn_c90): Use pedantic_warning_kind.
14720         * c-opts.c (c_common_post_options): flag_permissive does not affect
14721         flag_pedantic_errors.
14722
14723 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
14724
14725         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
14726         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
14727         __absvsi2, __absvDI2): Use unsigned arithmetic.
14728
14729 2008-03-02  Andi Kleen  <ak@suse.de>
14730             Richard Guenther  <rguenther@suse.de>
14731
14732         * struct-equiv.c: Remove file.
14733         * cfg_cleanup.c (condjump_equiv_p): Remove.
14734         * Makefile.in (OBJS-common): Remove struct-equiv.o.
14735         (struct-equiv.o): Remove rule.
14736         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
14737         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
14738         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
14739
14740 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
14741
14742         * ifcvt.c (noce_process_if_block): Try to handle only the then
14743         block if the else block exists but isn't suitable.
14744
14745 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
14746
14747         PR gcc/35063
14748         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
14749         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
14750         regression from previous patch.
14751
14752 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
14753
14754         PR gcc/35063
14755         * gthr.h: Add __gthread_mutex_destroy as a function that must be
14756         implemented.
14757         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
14758         * gthr-single.h (__gthread_mutex_destroy): Likewise.
14759         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
14760         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
14761         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
14762         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
14763         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
14764         (__gthread_mutex_destroy_function): Rename to
14765         __gthread_mutex_destroy.
14766         * gthr-dce.h (__gthread_mutex_destroy): Call
14767         pthread_mutex_destroy.
14768         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
14769         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
14770         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
14771
14772 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
14773
14774         * df-scan.c (df_ref_chain_change_bb): Simplify.
14775         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
14776         set_block_for_insn if there's any change.
14777         * df.h ((df_insn_change_bb): Fix prototype.
14778         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
14779         df_insn_change_bb, don't call set_block_for_insn.
14780         * emit-rtl.c (reorder_insns): Likewise.
14781         * haifa-sched.c (move_insn): Likewise.
14782
14783 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
14784
14785         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
14786
14787 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
14788
14789         * tree-flow-inline.h (next_readonly_imm_use): Return
14790         NULL_USE_OPERAND_P after the end.
14791
14792 2008-03-01  Richard Guenther  <rguenther@suse.de>
14793
14794         PR tree-optimization/35411
14795         * tree-sra.c (sra_build_assignment): Split conversion to
14796         final type to a separate statement if we are not assigning
14797         to a register.
14798
14799 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
14800
14801         * fold-const.c (fold_convertible_p): Correct the logic to follow
14802         that in fold_convert().
14803
14804 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
14805
14806         PR c++/35315
14807         * tree-inline.c (build_duplicate_type): When we make a
14808         duplicate type, make it unique in the canonical types system.
14809
14810 2008-02-29  Tom Tromey  <tromey@redhat.com>
14811
14812         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
14813         input_file_stack_history, input_file_stack_restored): Remove.
14814         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
14815         * input.h (struct file_stack): Remove.
14816         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
14817         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
14818         Likewise.
14819         * diagnostic.h (struct diagnostic_context) <last_module>: Change
14820         type.
14821         (diagnostic_last_module_changed): Add 'map' argument.
14822         (diagnostic_set_last_function): Likewise.
14823         * diagnostic.c (undiagnostic_report_current_module): Iterate using
14824         line map, not input_file_stack.
14825         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
14826
14827 2008-02-29  Paul Brook  <paul@codesourcery.com>
14828
14829         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
14830
14831 2008-02-29  Paul Brook  <paul@codesourcery.com>
14832
14833         * config/arm/ieee754-df.S (muldf3): Use RET macros.
14834
14835 2008-02-29  Richard Guenther  <rguenther@suse.de>
14836
14837         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
14838         vn_lookup_or_add.
14839         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
14840         value for comparing for a store match.
14841         (simplify_unary_expression): Do nothing for SSA_NAMEs.
14842         (try_to_simplify): Do not do a full-blown reference lookup.
14843
14844 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
14845
14846         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
14847         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
14848
14849         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
14850
14851 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
14852
14853         * tree-loop-linear.c (try_interchange_loops): Compare memory access
14854         strides against cache sizes.
14855
14856 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
14857
14858         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
14859         constant to fpul.
14860
14861 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
14862
14863         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
14864         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
14865         is smaller than the original promoted value.
14866         (simplify_subreg): If OP is a SUBREG, try to preserve its
14867         SUBREG_PROMOTED_VAR_P information.
14868
14869 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
14870
14871         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
14872         (VN_INFO_GET): Allocate new objects on the obstack.
14873         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
14874         for rpo_numbers_temp, for consistency.
14875         (free_scc_vn): Free the obstack.
14876
14877 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
14878
14879         * doc/invoke.texi: Document -ftree-loop-distribution.
14880         * tree-loop-distribution.c: New.
14881         * tree-pass.h (pass_loop_distribution): New.
14882         * graphds.h (struct graph): Add htab_t indices.
14883         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
14884         * tree-vectorizer.c (rename_variables_in_loop): Extern.
14885         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
14886         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
14887         * tree-data-ref.c (debug_data_dependence_relations): New.
14888         (dump_data_dependence_relation): Also print data references.
14889         (free_data_ref): Extern.
14890         (same_access_functions): Moved...
14891         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
14892         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14893         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
14894         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
14895         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
14896         (stmts_from_loop): Skip LABEL_EXPR.
14897         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
14898         New.
14899         (build_rdg): Initialize rdg->indices htab.
14900         (free_rdg, stores_from_loop, ref_base_address,
14901         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
14902         have_similar_memory_accesses_1, ref_base_address_1,
14903         remove_similar_memory_refs): New.
14904         * tree-data-ref.h: Depend on tree-chrec.h.
14905         (debug_data_dependence_relations, free_data_ref): Declared.
14906         (same_access_functions): ... here.
14907         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
14908         New.
14909         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
14910         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
14911         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
14912         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14913         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
14914         rdg_vertex_for_stmt): Declared.
14915         (struct rdg_edge): Add level.
14916         (RDGE_LEVEL): New.
14917         (free_rdg, stores_from_loop, remove_similar_memory_refs,
14918         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
14919         Declared.
14920         (rdg_has_similar_memory_accesses): New.
14921         * tree-vect-analyze.c: Remove unused static decls.
14922         * lambda.h (dependence_level): New.
14923         * common.opt (ftree-loop-distribution): New.
14924         * tree-flow.h (mark_virtual_ops_in_bb,
14925         slpeel_tree_duplicate_loop_to_edge_cfg,
14926         rename_variables_in_loop): Declared.
14927         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
14928         (OBJS-common): Add tree-loop-distribution.o.
14929         (tree-loop-distribution.o): New rule.
14930         * tree-cfg.c (mark_virtual_ops_in_bb): New.
14931         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
14932         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
14933
14934 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
14935
14936         PR target/33963
14937         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
14938         other than structures and unions.
14939
14940 2008-02-28  Richard Guenther  <rguenther@suse.de>
14941
14942         Revert:
14943         2008-02-26  Richard Guenther  <rguenther@suse.de>
14944
14945         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14946         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14947         (lookup_decl_from_uid): Declare.
14948         (remove_decl_from_map): Likewise.
14949         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14950         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14951         (decl_for_uid_map): New global hashtable mapping DECL_UID
14952         to the decl tree.
14953         (init_ttree): Allocate it.
14954         (insert_decl_to_uid_decl_map): New helper function.
14955         (make_node_stat): Insert new decls into the map.
14956         (copy_node_stat): Likewise.
14957         (lookup_decl_from_uid): New function.
14958         (remove_decl_from_map): Likewise.
14959         (print_decl_for_uid_map_statistics): New helper.
14960         (dump_tree_statistics): Call it.
14961
14962         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14963         (referenced_var_iterator): Adjust.
14964         (FOR_EACH_REFERENCED_VAR): Adjust.
14965         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14966         (num_referenced_vars): Adjust.
14967         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14968         (first_referenced_var): Remove.
14969         (end_referenced_vars_p): Likewise.
14970         (next_referenced_var): Likewise.
14971         (referenced_var_iterator_set): New helper function.
14972         * tree-dfa.c (referenced_var_lookup): Adjust.
14973         (referenced_var_check_and_insert): Likewise.
14974         (remove_referenced_var): Likewise.
14975         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14976         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14977         (verify_call_clobbering): Likewise.
14978         (verify_memory_partitions): Likewise.
14979         (init_tree_ssa): Allocate bitmap instead of hashtable for
14980         referenced_vars.
14981         (delete_tree_ssa): Adjust.
14982         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14983         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14984         (compute_tag_properties): Likewise.
14985         (set_initial_properties): Likewise.
14986         (find_partition_for): Likewise.
14987         (update_reference_counts): Likewise.
14988         (dump_may_aliases_for): Likewise.
14989         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14990         (add_call_clobber_ops): Likewise.
14991         (add_call_read_ops): Likewise.
14992         (get_asm_expr_operands): Likewise.
14993         * tree-into-ssa.c (dump_decl_set): Likewise.
14994         (update_ssa): Likewise.
14995         * tree-sra.c (scan_function): Likewise.
14996         (decide_instantiations): Likewise.
14997         (scalarize_parms): Likewise.
14998         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14999         (dsa_named_for): Likewise.
15000         * tree-ssa-structalias.c (update_alias_info): Likewise.
15001         (merge_smts_into): Likewise.
15002
15003 2008-02-27  David Daney  <ddaney@avtrex.com>
15004
15005         PR target/34409
15006         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
15007         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
15008         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
15009         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
15010         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
15011
15012 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
15013
15014         PR target/25477
15015         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
15016         (BUILT_IN_NEXTTOWARD): Remove.
15017         (BUILT_IN_NEXTTOWARDF): Ditto.
15018         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
15019         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
15020
15021 2008-02-27  Tom Tromey  <tromey@redhat.com>
15022
15023         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
15024         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
15025
15026 2008-02-27  Jan Beulich  <jbeulich@novell.com>
15027
15028         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
15029         update the respective field on newdecl.
15030
15031 2008-02-27  Revital Eres  <eres@il.ibm.com>
15032
15033         PR rtl-optimization/34999
15034         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
15035         crossing edges that ends with a call insn.
15036         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
15037         call insn and clear the EDGE_CROSSING flag of the crossing edge
15038         when fixing fallthru edges.
15039
15040 2008-02-27  Richard Guenther  <rguenther@suse.de>
15041
15042         PR middle-end/35390
15043         * fold-const.c (fold_unary): Return the correct argument,
15044         converted to the result type.
15045
15046 2008-02-27  Richard Guenther  <rguenther@suse.de>
15047
15048         PR middle-end/34971
15049         * expr.c (expand_expr_real_1): Assert on rotates that operate
15050         on partial modes.
15051         * fold-const.c (fold_binary): Use the types precision, not the
15052         bitsize of the mode if folding rotate expressions.  Build rotates
15053         only for full modes.
15054
15055 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
15056
15057         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
15058         and CPP_PRAGMA_EOL.
15059         * c-pragma.c (pragma_ns_name): New typedef.
15060         (registered_pp_pragmas): New variable.
15061         (c_pp_lookup_pragma): New function.
15062         (c_register_pragma_1): If flag_preprocess_only, do nothing
15063         for non-expanded pragmas, for expanded ones push pragma's
15064         namespace and name into registered_pp_pragmas vector.
15065         (c_invoke_pragma_handler): Register OpenMP pragmas even when
15066         flag_preprocess_only, don't register GCC pch_preprocess
15067         pragma if flag_preprocess_only.
15068         * c-opts.c (c_common_init): Call init_pragma even if
15069         flag_preprocess_only.
15070         * c-pragma.c (c_pp_lookup_pragma): New prototype.
15071         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
15072         cpp_register_pragma if flag_preprocess_only.
15073
15074 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15075
15076         PR c/28800
15077         * c-parser.c (c_parser_translation_unit): Warn for empty
15078         translation unit, not empty source file.
15079
15080 2008-02-26  Paul Brook  <paul@codesourcery.com>
15081
15082         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
15083         operand for Thumb-2.
15084         * config/arm/arm.h (reg_class): Add CORE_REGS.
15085         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
15086         (BASE_REG_CLASS): Use CORE_REGS.
15087         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
15088         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
15089         (REGNO_OK_FOR_INDEX_P): Exclude SP.
15090         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
15091         ARM_REGNO_OK_FOR_INDEX_P.
15092         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
15093         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
15094         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
15095         (ldm/stm peepholes): Ditto.
15096         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
15097         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
15098         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
15099         * config/arm/constraints.md: Enable "k" constraint on ARM.
15100
15101 2008-02-27  Ben Elliston  <bje@au.ibm.com>
15102
15103         * config/rs6000/rs6000.c: Annotate cache line size field in all
15104         instances of struct processor_costs.
15105
15106 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
15107
15108         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
15109         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
15110         jump_bypass): New counters.
15111         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
15112         * dce.c (gate_ud_dce): Same.
15113         (gate_fast_dce): Same.
15114         * dse.c (gate_dse1): New function.
15115         (gate_dse2): New function.
15116         (gate_dse): Merge results of new gate functions.
15117         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
15118         (gate_handle_jump_bypass): Add dbg_cnt.
15119         (gate_handle_gcse): Add dbg_cnt.
15120         * ifcvt.c (gate_handle_if_conversion): Same.
15121         (gate_handle_if_after_combine): Same.
15122         (gate_handle_if_after_reload): Same.
15123         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
15124
15125 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
15126
15127         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
15128         line sizes.
15129         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
15130
15131 2008-02-26  Jason Merrill  <jason@redhat.com>
15132
15133         PR c++/35315
15134         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
15135         alone if it's the naming decl for the type's main variant.
15136
15137 2008-02-26  Tom Tromey  <tromey@redhat.com>
15138
15139         * system.h (USE_MAPPED_LOCATION): Poison.
15140         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
15141         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
15142         (make_goto_expr_edges): Likewise.
15143         (remove_bb): Likewise.
15144         (execute_warn_function_return): Likewise.
15145         * basic-block.h (struct edge_def) <goto_locus>: Change type to
15146         location_t.
15147         * c-common.c (fname_decl): Remove old location code.
15148         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
15149         location code.
15150         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
15151         variant.
15152         (ASM_INPUT_SOURCE_LOCATION): Likewise.
15153         (gen_rtx_ASM_INPUT): Likewise.
15154         (gen_rtx_ASM_INPUT_loc): Likewise.
15155         (get_rtx_asm_OPERANDS): Remove.
15156         * cfglayout.c (insn_locators_alloc): Remove old location code.
15157         (set_curr_insn_source_location): Likewise.
15158         (curr_insn_locator): Likewise.
15159         * print-tree.c (print_node): Remove old location code.
15160         * tree-mudflap.c (mf_varname_tree): Remove old location code.
15161         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
15162         * cfgexpand.c (expand_gimple_cond_expr): Don't use
15163         location_from_locus.
15164         (construct_exit_block): Remove old location code.
15165         * emit-rtl.c (force_next_line_note): Remove old location code.
15166         * profile.c (branch_prob): Remove old location code.
15167         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
15168         LOC_LINE): Remove old-location variants.
15169         * langhooks.c (lhd_print_error_function): Remove old location
15170         code.
15171         * configure, config.in: Rebuilt.
15172         * configure.ac (--enable-mapped-location): Remove.
15173         * c-decl.c (c_init_decl_processing): Remove old location code.
15174         (finish_function): Likewise.
15175         * recog.c (decode_asm_operands): Remove old location code.
15176         * c-pch.c (c_common_read_pch): Remove old location code.
15177         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
15178         variants.
15179         * gimple-low.c (lower_function_body): Remove old location code.
15180         * toplev.c (unknown_location): Remove.
15181         (push_srcloc): Remove old-location variant.
15182         (process_options): Remove old location code.
15183         (lang_dependent_init): Likewise.
15184         * input.h (UNKNOWN_LOCATION): Move definition.
15185         (location_t): Undeprecate.
15186         (source_locus): Remove.
15187         (location_from_locus): Remove.
15188         (struct location_s): Remove.
15189         Remove all old-location code.
15190         (input_line, input_filename): Remove.
15191         * final.c (final_scan_insn): Remove old location code.
15192         * diagnostic.c (diagnostic_build_prefix): Remove
15193         USE_MAPPED_LOCATION test.
15194         * tree.h (gimple_stmt) <locus>: Now a location_t.
15195         (tree_exp) <locus>: Likewise.
15196         (DECL_IS_BUILTIN): Remove old-location variant.
15197         (annotate_with_file_line, annotate_with_locus): Likewise.
15198         (expr_locus, set_expr_locus): Update.
15199         * tree.c (build1_stat): Remove old location code.
15200         (last_annotated_node): Remove.
15201         (annotate_with_file_line): Remove old-location variant.
15202         (annotate_with_locus): Likewise.
15203         (expr_location): Remove old location code.
15204         (set_expr_location): Likewise.
15205         (expr_has_location): Likewise.
15206         (expr_locus): Likewise.
15207         (set_expr_locus): Likewise.
15208         (expr_filename): Don't use location_from_locus.
15209         (expr_lineno): Likewise.
15210         * rtl-error.c (location_for_asm): Remove old location code.
15211         * c-lex.c (cb_line_change): Remove old location code.
15212         (fe_file_change): Likewise.
15213         (cb_def_pragma): Likewise.
15214         (c_lex_with_flags): Likewise.
15215         * gengtype.c (do_typedef): Don't special-case location types.
15216         (define_location_structures): Remove.
15217         (main): Don't call define_location_structures.
15218         * tree-pretty-print.c (dump_implicit_edges): Remove old location
15219         code.
15220
15221 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15222
15223         PR 26264
15224         * builtins.def (BUILT_IN_STDARG_START): Remove.
15225         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
15226         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
15227         * tree-inline.c (inline_forbidden_p_1): Likewise.
15228
15229 2008-02-26  Richard Guenther  <rguenther@suse.de>
15230
15231         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
15232         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
15233         (lookup_decl_from_uid): Declare.
15234         (remove_decl_from_map): Likewise.
15235         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
15236         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
15237         (decl_for_uid_map): New global hashtable mapping DECL_UID
15238         to the decl tree.
15239         (init_ttree): Allocate it.
15240         (insert_decl_to_uid_decl_map): New helper function.
15241         (make_node_stat): Insert new decls into the map.
15242         (copy_node_stat): Likewise.
15243         (lookup_decl_from_uid): New function.
15244         (remove_decl_from_map): Likewise.
15245         (print_decl_for_uid_map_statistics): New helper.
15246         (dump_tree_statistics): Call it.
15247
15248         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
15249         (referenced_var_iterator): Adjust.
15250         (FOR_EACH_REFERENCED_VAR): Adjust.
15251         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
15252         (num_referenced_vars): Adjust.
15253         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
15254         (first_referenced_var): Remove.
15255         (end_referenced_vars_p): Likewise.
15256         (next_referenced_var): Likewise.
15257         (referenced_var_iterator_set): New helper function.
15258         * tree-dfa.c (referenced_var_lookup): Adjust.
15259         (referenced_var_check_and_insert): Likewise.
15260         (remove_referenced_var): Likewise.
15261         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
15262         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15263         (verify_call_clobbering): Likewise.
15264         (verify_memory_partitions): Likewise.
15265         (init_tree_ssa): Allocate bitmap instead of hashtable for
15266         referenced_vars.
15267         (delete_tree_ssa): Adjust.
15268         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
15269         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15270         (compute_tag_properties): Likewise.
15271         (set_initial_properties): Likewise.
15272         (find_partition_for): Likewise.
15273         (update_reference_counts): Likewise.
15274         (dump_may_aliases_for): Likewise.
15275         * tree-ssa-operands.c (add_virtual_operand): Likewise.
15276         (add_call_clobber_ops): Likewise.
15277         (add_call_read_ops): Likewise.
15278         (get_asm_expr_operands): Likewise.
15279         * tree-into-ssa.c (dump_decl_set): Likewise.
15280         (update_ssa): Likewise.
15281         * tree-sra.c (scan_function): Likewise.
15282         (decide_instantiations): Likewise.
15283         (scalarize_parms): Likewise.
15284         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
15285         (dsa_named_for): Likewise.
15286         * tree-ssa-structalias.c (update_alias_info): Likewise.
15287         (merge_smts_into): Likewise.
15288
15289 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15290
15291         PR 34351
15292         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
15293         * c-opts.c (c_common_handle_option): Wall enables
15294         Wvolatile-register-var.
15295         * common.opt: Move Wvolatile-register-var to...
15296         * c.opt: ...here.
15297
15298 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15299
15300         * common.opt (Wlarger-than=): New.
15301         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
15302         -Wlarger-than=.
15303         * opts.c (common_handle_option): Handle -Wlarger-than=.
15304         * optc-gen.awk: Likewise.
15305         * opth-gen.awk: Likewise.
15306         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
15307         * tree-optimize.c (tree_rest_of_compilation): Likewise.
15308
15309 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15310
15311         * c-common.c (match_case_to_enum_1): Add appropriate
15312         OPT_W* parameter to warning.
15313         (c_do_switch_warnings): Likewise.
15314         * c-typeck.c (warning_init): Add one more parameter following
15315         'warning' function.
15316         (push_init_level): Update call to warning_init.
15317         (pop_init_level): Likewise.
15318         (add_pending_init): Likewise.
15319         (output_init_element: Likewise.
15320
15321 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15322
15323         PR 28322
15324         * toplev.c (toplev_main): If there are warnings or error, print
15325         errors for ignored options.
15326         * opts.c (ignored_options): New static variable.
15327         (postpone_unknown_option_error): New.
15328         (print_ignored_options): New.
15329         (handle_option): Postpone errors for unknown -Wno-* options.
15330         * opts.h (print_ignored_options): Declare.
15331
15332 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
15333
15334         * config/mips/mips.md (loadgp_blockage, blockage): Change type
15335         to "ghost".
15336
15337 2008-02-25  Richard Guenther  <rguenther@suse.de>
15338
15339         Revert:
15340         2008-02-25  Richard Guenther  <rguenther@suse.de>
15341
15342         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
15343         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
15344         (lookup_decl_from_uid): Declare.
15345         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
15346         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
15347         (decl_for_uid_map): New global hashtable mapping DECL_UID
15348         to the decl tree.
15349         (init_ttree): Allocate it.
15350         (insert_decl_to_uid_decl_map): New helper function.
15351         (make_node_stat): Insert new decls into the map.
15352         (copy_node_stat): Likewise.
15353         (lookup_decl_from_uid): New function.
15354         (print_decl_for_uid_map_statistics): New helper.
15355         (dump_tree_statistics): Call it.
15356
15357         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
15358         (referenced_var_iterator): Adjust.
15359         (FOR_EACH_REFERENCED_VAR): Adjust.
15360         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
15361         (num_referenced_vars): Adjust.
15362         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
15363         (first_referenced_var): Remove.
15364         (end_referenced_vars_p): Likewise.
15365         (next_referenced_var): Likewise.
15366         (referenced_var_iterator_set): New helper function.
15367         * tree-dfa.c (referenced_var_lookup): Adjust.
15368         (referenced_var_check_and_insert): Likewise.
15369         (remove_referenced_var): Likewise.
15370         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
15371         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15372         (verify_call_clobbering): Likewise.
15373         (verify_memory_partitions): Likewise.
15374         (init_tree_ssa): Allocate bitmap instead of hashtable for
15375         referenced_vars.
15376         (delete_tree_ssa): Adjust.
15377         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
15378         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15379         (compute_tag_properties): Likewise.
15380         (set_initial_properties): Likewise.
15381         (find_partition_for): Likewise.
15382         (update_reference_counts): Likewise.
15383         (dump_may_aliases_for): Likewise.
15384         * tree-ssa-operands.c (add_virtual_operand): Likewise.
15385         (add_call_clobber_ops): Likewise.
15386         (add_call_read_ops): Likewise.
15387         (get_asm_expr_operands): Likewise.
15388         * tree-into-ssa.c (dump_decl_set): Likewise.
15389         (update_ssa): Likewise.
15390         * tree-sra.c (scan_function): Likewise.
15391         (decide_instantiations): Likewise.
15392         (scalarize_parms): Likewise.
15393         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
15394         (dsa_named_for): Likewise.
15395         * tree-ssa-structalias.c (update_alias_info): Likewise.
15396         (merge_smts_into): Likewise.
15397
15398 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
15399
15400         PR fortran/29549
15401         * doc/invoke.texi (-fcx-limited-range): Document new option.
15402         * toplev.c (process_options): Handle -fcx-fortran-rules.
15403         * common.opt: Add documentation for -fcx-fortran-rules.
15404
15405 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
15406
15407         PR c/35162
15408         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
15409         actual behaviour and C99.
15410
15411 2008-02-26  Ben Elliston  <bje@au.ibm.com>
15412
15413         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
15414         (ASM_CPU_POWER6_SPEC): Likewise.
15415         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
15416         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
15417         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
15418
15419 2008-02-25  Richard Guenther  <rguenther@suse.de>
15420
15421         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
15422         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
15423         (lookup_decl_from_uid): Declare.
15424         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
15425         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
15426         (decl_for_uid_map): New global hashtable mapping DECL_UID
15427         to the decl tree.
15428         (init_ttree): Allocate it.
15429         (insert_decl_to_uid_decl_map): New helper function.
15430         (make_node_stat): Insert new decls into the map.
15431         (copy_node_stat): Likewise.
15432         (lookup_decl_from_uid): New function.
15433         (print_decl_for_uid_map_statistics): New helper.
15434         (dump_tree_statistics): Call it.
15435
15436         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
15437         (referenced_var_iterator): Adjust.
15438         (FOR_EACH_REFERENCED_VAR): Adjust.
15439         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
15440         (num_referenced_vars): Adjust.
15441         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
15442         (first_referenced_var): Remove.
15443         (end_referenced_vars_p): Likewise.
15444         (next_referenced_var): Likewise.
15445         (referenced_var_iterator_set): New helper function.
15446         * tree-dfa.c (referenced_var_lookup): Adjust.
15447         (referenced_var_check_and_insert): Likewise.
15448         (remove_referenced_var): Likewise.
15449         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
15450         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15451         (verify_call_clobbering): Likewise.
15452         (verify_memory_partitions): Likewise.
15453         (init_tree_ssa): Allocate bitmap instead of hashtable for
15454         referenced_vars.
15455         (delete_tree_ssa): Adjust.
15456         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
15457         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15458         (compute_tag_properties): Likewise.
15459         (set_initial_properties): Likewise.
15460         (find_partition_for): Likewise.
15461         (update_reference_counts): Likewise.
15462         (dump_may_aliases_for): Likewise.
15463         * tree-ssa-operands.c (add_virtual_operand): Likewise.
15464         (add_call_clobber_ops): Likewise.
15465         (add_call_read_ops): Likewise.
15466         (get_asm_expr_operands): Likewise.
15467         * tree-into-ssa.c (dump_decl_set): Likewise.
15468         (update_ssa): Likewise.
15469         * tree-sra.c (scan_function): Likewise.
15470         (decide_instantiations): Likewise.
15471         (scalarize_parms): Likewise.
15472         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
15473         (dsa_named_for): Likewise.
15474         * tree-ssa-structalias.c (update_alias_info): Likewise.
15475         (merge_smts_into): Likewise.
15476
15477 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
15478
15479         PR target/35258
15480         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
15481         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
15482         * alias.h (nonoverlapping_memrefs_p): Likewise.
15483
15484 2008-02-25  Jan Beulich  <jbeulich@novell.com>
15485
15486         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
15487         * config/i386/netware-libgcc.exp: Add __bswap?i2,
15488         __emultls_get_address, __emultls_register_common,
15489         __floatundi?f, and _Unwind_GetIPInfo.
15490         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
15491         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
15492         (gen_regparm_prefix): Likewise.
15493         (i386_nlm_encode_section_info): Sync with
15494         config/i386/winnt.c:i386_pe_encode_section_info().
15495         (i386_nlm_maybe_mangle_decl_assembler_name): New.
15496         i386_nlm_mangle_decl_assembler_name): New.
15497         (netware_override_options): New.
15498         * config/i386/netware.h (netware_override_options): Declare.
15499         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
15500         (i386_nlm_mangle_decl_assembler_name): Declare.
15501         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
15502
15503 2008-02-25  Ben Elliston  <bje@au.ibm.com>
15504
15505         PR other/32948
15506         * c-decl.c (grokdeclarator): Remove unused local variables
15507         `typedef_type' and `type_as_written'.
15508         * bb-reorder.c
15509         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
15510         unused local variable `has_hot_blocks'.
15511         (fix_crossing_conditional_branches): Remove unused local variable
15512         `prev_bb'.
15513
15514 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
15515
15516         PR middle-end/19984
15517         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
15518         using DEF_C99_BUILTIN.
15519         (BUILT_IN_NANF): Ditto.
15520         (BUILT_IN_NANL): Ditto.
15521
15522 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
15523             Revital Eres  <eres@il.ibm.com>
15524
15525         * modulo-sched.c (calculate_must_precede_follow): Address TODO
15526         regarding the order of two dependent insns in the same row.
15527
15528 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
15529
15530         * stor-layout.c (layout_decl): Do not bump the alignment of a
15531         bit-field to more than byte alignment if it is packed.
15532
15533 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
15534
15535         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
15536         e300c2 and e300c3.
15537
15538 2008-02-24  Diego Novillo  <dnovillo@google.com>
15539
15540         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
15541
15542         PR 33738
15543         * tree-vrp.c (vrp_evaluate_conditional): With
15544         -Wtype-limits, emit a warning when comparing against a
15545         constant outside the natural range of OP0's type.
15546         * c.opt (Wtype-limits): Move ...
15547         * common.opt (Wtype-limits): ... here.
15548
15549 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
15550
15551         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
15552         * config/rs6000/e300c2c3.md: New file.
15553         * config/rs6000/rs6000.c (processor_costs): Add new costs for
15554         e300c2 and e300c3.
15555         (rs6000_override_options): Add e300c2 and e300c3 cases to
15556         processor_target_table. Do not allow usage of Altivec or Spe
15557         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
15558         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
15559         * config/rs6000/rs6000.h (processor_type): Add
15560         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
15561         (ASM_CPU_SPEC): Add e300c2 and e300c3.
15562         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
15563         and ppce300c3. Include e300c2c3.md.
15564
15565 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
15566
15567         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
15568         instead of TARGET_STRICT_ALIGN.
15569
15570 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
15571
15572         * explow.c (memory_address): Assert that the generated address is
15573         valid.
15574
15575 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15576
15577         PR target/25477
15578         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
15579         * config/darwin-ppc-ldouble-patch.def: New file.
15580         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
15581         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
15582         SUBTARGET_INIT_BUILTINS if defined.
15583         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
15584         New functions.
15585
15586 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15587
15588         PR rtl-opt/33512
15589         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
15590         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
15591
15592 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15593
15594         PR pch/35027
15595         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
15596         file" warning condtional on -Winvalid-PCH.
15597
15598 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
15599
15600         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
15601
15602 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
15603
15604         PR target/22076
15605         PR target/34256
15606         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
15607         prevent reload from using MMX registers.
15608         (*mov<mode>_internal): Ditto.
15609         (*movv2sf_internal_rex64): Ditto.
15610         (*movv2sf_internal): Ditto.
15611
15612 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15613
15614         PR documentation/31569
15615         * doc/install.texi2html: Use makeinfo --no-number-sections.
15616
15617 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
15618
15619         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
15620         ensure that we can address an entire entity > 8 bytes.  Don't
15621         generate reg+reg addressing for such data.
15622
15623 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
15624
15625         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
15626         strings when optimizing for size, unless the target cares about
15627         alignment.
15628
15629 2008-02-22  Tom Tromey  <tromey@redhat.com>
15630
15631         * regclass.c (current_pass): Remove declaration.
15632
15633 2008-02-22  Anatoly Sokolov <aesok@post.ru>
15634
15635         * config/avr/libgcc.S (__RAMPZ__): Define.
15636         (__do_copy_data): Add for devices with 128KB code memory.
15637
15638 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
15639
15640         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
15641         Use spe_abi.
15642         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
15643
15644 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
15645
15646         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
15647         GENNONACR_REGS.
15648
15649 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15650
15651         PR c/19999
15652         * c-typeck.c (build_binary_op): Warn about floating point
15653         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
15654
15655 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
15656
15657         PR target/34526
15658         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
15659         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
15660         add vrsave.
15661         (rs6000_override_options): Set altivec_abi as default, not override,
15662         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
15663         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
15664         is used; use new member spe_abi.
15665         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
15666         spe_abi and altivec_abi.
15667
15668 2008-02-22  Tomas Bily  <tbily@suse.cz>
15669
15670         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
15671
15672 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15673
15674         PR bootstrap/35273
15675         * config.build (build_file_translate): Set to `CMD //c' only if
15676         it works.
15677         * Makefile.in (build_file_translate): Improve comment.
15678
15679 2008-02-21  Jan Hubicka  <jh@suse.cz>
15680
15681         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
15682         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
15683         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
15684
15685 2008-02-21  Michael Matz  <matz@suse.de>
15686
15687         PR target/35264
15688         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
15689
15690 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
15691
15692         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
15693         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
15694         as insn constraint.
15695         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
15696         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
15697         SSE_VEC_FLOAT_MODE_P as insn constraint.
15698         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
15699         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
15700         sse4a_movntdf using MODEF mode iterator.
15701         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
15702         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
15703         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
15704         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
15705         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
15706         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
15707         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
15708
15709 2008-02-21  Richard Guenther  <rguenther@suse.de>
15710
15711         * tree.def (PAREN_EXPR): New tree code.
15712         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
15713         and PAREN_EXPR.
15714         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
15715         * expr.c (expand_expr_real_1): Likewise.
15716         * tree-inline.c (estimate_num_insns_1): Likewise.
15717         * tree-complex.c (expand_complex_move): Likewise.
15718         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
15719         as plain x.
15720
15721 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
15722
15723         PR target/35225
15724         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
15725
15726 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
15727
15728         PR target/35190
15729         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
15730
15731         * config/sh/sh.c (find_barrier): Don't go past
15732         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
15733
15734 2008-02-20  DJ Delorie  <dj@redhat.com>
15735
15736         * config/h8300/h8300.md (insv): Force source operand to be a register.
15737
15738         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
15739         as a jump, not as a plain insn.
15740
15741 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
15742
15743         * doc/invoke.texi (Warning Options): Add new option
15744         -Wframe-larger-than=.
15745         (-Wframe-larger-than): Document.
15746
15747         * flags.h (warn_frame_larger_than, frame_larger_than_size):
15748         Add declarations for new option variables.
15749
15750         * final.c (final_start_function): Check the frame size
15751         before emission and issue a Wframe-larger-than warning.
15752
15753         * opts.c (warn_frame_larger_than, frame_larger_than_size):
15754         Add definitions for new option variables.
15755         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
15756
15757         * common.opt (Wframe-larger-than=): New option.
15758
15759 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
15760
15761         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
15762         (<sse>_div<mode>3): Ditto.
15763         (<sse>_vmdiv<mode>3): Ditto.
15764         (<sse>_vmsqrt<mode>2): Ditto.
15765         (*smax<mode>3): Ditto.
15766         (sse5_frcz<mode>2): Ditto.
15767         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
15768         as insn constraint.
15769
15770 2008-02-20  Richard Guenther  <rguenther@suse.de>
15771
15772         PR middle-end/35265
15773         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
15774         be happy with INTEGRAL_TYPE_P.
15775
15776 2008-02-20  Richard Guenther  <rguenther@suse.de>
15777
15778         * fold-const.c (split_tree): Associate floatig-point expressions
15779         if flag_associative_math is set.
15780
15781 2008-02-20  Richard Guenther  <rguenther@suse.de>
15782
15783         * tree.h (fold_real_zero_addition_p): Declare.
15784         * fold-const.c (fold_real_zero_addition_p): Export.
15785         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
15786         floating-point operations with zero and one.
15787
15788 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
15789
15790         * doc/install.texi: Correct references to CFLAGS, replacing them
15791         with BOOT_CFLAGS.  Document flags used during bootstrap for
15792         target libraries.
15793
15794 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
15795
15796         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
15797         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
15798         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
15799         insn constraint.
15800         (smin<mode>3): Ditto from similar patterns.
15801         (smax<mode>3): Ditto.
15802         (*ieee_smin<mode>3): Ditto.
15803         (*ieee_smax<mode>3): Ditto.
15804         * config/i386/sse.md (sse): New mode attribute.
15805         (mov<mode>): Macroize expander from movv4sf and movv2df using
15806         SSEMODEF2P mode iterator.
15807         (<sse>_movnt<mode>): Ditto from similar patterns. Use
15808         SSE_VEC_FLOAT_MODE_P as insn constraint.
15809         (storent<mode>): Ditto.
15810         (storent<mode>): Macroize expander from storentsf and storentdf using
15811         MODEF mode iterator.
15812         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
15813         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
15814         (abs<mode>2): Ditto from similar patterns.
15815         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
15816         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
15817         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
15818         (<sse>_vmsqrt<mode>2): Ditto.
15819         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
15820         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
15821         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
15822         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
15823         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
15824         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
15825         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
15826         insn constraint.
15827         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
15828         iterator and SSE_FLOAT_MODE_P as insn constraint.
15829         (<sse>_ucomi): Ditto from similar patterns.
15830         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
15831         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
15832         SSE_VEC_FLOAT_MODE_P as insn constraint.
15833         (vcond<mode>): Ditto from similar patterns.
15834         (and<mode>3, *and<mode>3): Ditto.
15835         (<sse>_nand<mode>3): Ditto.
15836         (ior<mode>3, *ior<mode>3): Ditto.
15837         (xor<mode>3, *xor<mode>3): Ditto.
15838         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
15839         iterator and SSE_FLOAT_MODE_P as insn constraint.
15840         (*nand<mode>3): Ditto from similar patterns.
15841         (*ior<mode>3): Ditto.
15842         (*xor<mode>3): Ditto.
15843
15844 2008-02-20  Ira Rosen  <irar@il.ibm.com>
15845
15846         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
15847         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
15848         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
15849
15850 2008-02-19  Jan Hubicka  <jh@suse.cz>
15851
15852         * predict.c (tree_bb_level_predictions): Remove variable next
15853         mistakely introduced by previous commit.
15854
15855 2008-02-19  Jan Hubicka  <jh@suse.cz>
15856
15857         * predict.c (predict_paths_leading_to): Rewrite.
15858         (predict_paths_for_bb): New.
15859         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
15860
15861 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15862
15863         PR bootstrap/35218
15864         * Makefile.in (build_file_translate): New.
15865         (gcc-vers.texi): Use it for translating $(abs_srcdir).
15866         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
15867         * configure.ac (build_file_translate): Substitute it.
15868         * configure: Regenerate.
15869
15870 2008-02-19  Jan Hubicka  <jh@suse.cz>
15871
15872         PR rtl-optimization/34408
15873         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
15874         invalid sharing.
15875
15876 2008-02-19  Jan Hubicka  <jh@suse.cz>
15877
15878         PR middle-end/28779
15879         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
15880         call_expr.
15881
15882 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
15883
15884         PR Ada/35186
15885         * config/i386/i386-modes.def: Revert the last DI alignment
15886         change until Ada people can look into it.
15887
15888 2008-02-19  Nick Clifton  <nickc@redhat.com>
15889
15890         * opts.c (print_specific_help): Fix typo in --help text.
15891
15892 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
15893
15894         PR target/35239
15895         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
15896         32-bit inline asm without asm alternatives for host GCC < 3.0.
15897
15898 2008-02-19  Richard Guenther  <rguenther@suse.de>
15899
15900         PR tree-optimization/34989
15901         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
15902         Allow propagation to INDIRECT_REF if we can simplify only.
15903
15904 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15905
15906         * c-common.c (warn_for_collisions_1): Use appropriate option when
15907         warning.
15908
15909 2008-02-19  Nick Clifton  <nickc@redhat.com>
15910
15911         PR other/31349
15912         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
15913         (handle_options): Fix indentation.
15914         (print_filtered_help): If no language-specific options were
15915         displayed tell the user how to list all the options supported by
15916         the language's front-end.
15917         (print_specific_help): Fix indentation and remove duplicate line.
15918         (common_handle_option): Handle the -v option.
15919         For --help enable the display of undocumented options if the -v
15920         switch has been included on the command line.
15921         For --help= check for overlaps in the arguments between the option
15922         classes and the language names and issue a warning when they
15923         cannot be disambiguated.
15924         * c.opt (v): Pass on to the common option handler.
15925
15926 2008-02-19  Revital Eres  <eres@il.ibm.com>
15927
15928         * modulo-sched.c (sms_schedule): Change dump message when
15929         create_ddg function fails.
15930         (try_scheduling_node_in_cycle): Rename row to cycle.
15931         (print_partial_schedule): Rename CYCLE to ROW.
15932
15933 2008-02-19  Christian Bruel  <christian.bruel@st.com>
15934             Zdenek Dvorak  <ook@ucw.cz>
15935
15936         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
15937
15938 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
15939
15940         PR target/33555
15941         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
15942         (*x86_movdicc_0_m1_se): Ditto.
15943
15944 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
15945
15946         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
15947         (CMPtype): Define as __gcc_CMPtype.
15948         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
15949         (CMPtype): Define as __gcc_CMPtype.
15950
15951 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
15952
15953         Support valgrind 3.3 for --enable-checking=valgrind.
15954         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
15955         here.
15956         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
15957         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
15958         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
15959         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
15960         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
15961         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
15962         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
15963         respectively.
15964         * ggc-zone.c: Similar.
15965         * ggc-page.c: Similar.
15966
15967 2008-02-19  Paul Brook  <paul@codesourcery.com>
15968
15969         PR target/35071
15970         * config/arm/ieee754-df.S: Fix do_it typo.
15971         * config/arm/ieee754-sf.S: Fix do_it typo.
15972
15973 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
15974
15975         PR target/35189
15976         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
15977         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
15978         (OPTION_MASK_ISA_SSE_SET): Likewise.
15979         (OPTION_MASK_ISA_SSE2_SET): Likewise.
15980         (OPTION_MASK_ISA_SSE3_SET): Likewise.
15981         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
15982         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
15983         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
15984         (OPTION_MASK_ISA_SSE4_SET): Likewise.
15985         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
15986         (OPTION_MASK_ISA_SSE5_SET): Likewise.
15987         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
15988         (OPTION_MASK_ISA_MMX_UNSET): Updated.
15989         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
15990         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
15991         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
15992         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
15993         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
15994         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
15995         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
15996         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
15997         (OPTION_MASK_ISA_SSE4): Removed.
15998         (ix86_handle_option): Turn on bits in ix86_isa_flags and
15999         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
16000         (override_options): Don't turn on implied SSE/MMX bits in
16001         ix86_isa_flags.
16002
16003 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
16004
16005         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
16006         32bit host.
16007
16008 2008-02-18  Joey Ye  <joey.ye@intel.com>
16009
16010         PR middle-end/34921
16011         * tree-nested.c (insert_field_into_struct): Set type alignment
16012         to field alignment if the former is less than the latter.
16013
16014 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
16015
16016         * BASE-VER: Set to 4.4.0.
16017
16018 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16019
16020         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
16021         * doc/cfg.texi: Likewise.
16022         * doc/extend.texi: Likewise.
16023         * doc/gty.texi: Likewise.
16024         * doc/invoke.texi: Likewise.
16025         * doc/loop.texi: Likewise.
16026         * doc/md.texi: Likewise.
16027         * doc/passes.texi: Likewise.
16028         * doc/rtl.texi: Likewise.
16029         * doc/sourcebuild.texi: Likewise.
16030         * doc/tm.texi: Likewise.
16031         * doc/tree-ssa.texi: Likewise.
16032
16033 2008-02-17  Richard Guenther  <rguenther@suse.de>
16034
16035         PR middle-end/35227
16036         * tree-complex.c (init_parameter_lattice_values): Handle parameters
16037         without default definition.
16038
16039 2008-02-17  Richard Guenther  <rguenther@suse.de>
16040
16041         PR tree-optimization/35231
16042         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
16043         if A | B != 1.
16044
16045 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
16046
16047         Revert:
16048         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
16049         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
16050         libgcc_cmp_return mode.
16051
16052 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16053
16054         PR c/28368
16055         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
16056
16057 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
16058
16059         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
16060         multilibs.
16061
16062 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16063
16064         * doc/c-tree.texi: Use `@.' where appropriate.
16065         * doc/extend.texi: Likewise.
16066         * doc/install.texi: Likewise.
16067         * doc/invoke.texi: Likewise.
16068         * doc/loop.texi: Likewise.
16069         * doc/makefile.texi: Likewise.
16070         * doc/md.texi: Likewise.
16071         * doc/passes.texi: Likewise.
16072         * doc/standards.texi: Likewise.
16073         * doc/tm.texi: Likewise.
16074
16075 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
16076
16077         PR middle-end/35196
16078         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
16079         in entry_bb.
16080         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
16081         rather than in entry_bb.
16082
16083 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
16084
16085         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
16086         libgcc_cmp_return mode.
16087
16088 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
16089
16090         PR middle-end/35130
16091         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
16092         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
16093
16094 2008-02-15  Richard Guenther  <rguenther@suse.de>
16095             Zdenek Dvorak  <ook@ucw.cz>
16096
16097         PR tree-optimization/35164
16098         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
16099         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
16100         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
16101         Only propagate addresses which do not have abnormal SSA_NAMEs
16102         in their operands.
16103
16104 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
16105
16106         PR target/35088
16107         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
16108
16109 2008-02-15  Jan Hubicka  <jh@suse.cz>
16110
16111         PR middle-end/35149
16112         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
16113
16114 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
16115
16116         PR middle-end/34621
16117         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
16118         when calculating alignment_pad.
16119
16120 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
16121
16122         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
16123         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
16124         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
16125         and STACK_BOUNDARY define.
16126
16127 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
16128
16129         PR preprocessor/35061
16130         * c-pragma.c (handle_pragma_pop_macro): Check that
16131         pushed_macro_table has been allocated.
16132
16133 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
16134
16135         PR middle-end/35136
16136         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
16137         (force_gimple_operand): Likewise.
16138         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
16139         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
16140         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
16141         (find_interesting_uses_address): Check addressability and alignment
16142         of the base expression only after substituting bases of IVs into it.
16143
16144 2008-02-14  Michael Matz  <matz@suse.de>
16145
16146         PR target/34930
16147         * function.c (instantiate_virtual_regs_in_insn): Reload address
16148         before falling back to reloading the whole operand.
16149
16150 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
16151
16152         * config/s390/s390.c (s390_mainpool_start): Emit the pool
16153         before the first section switch note.
16154
16155 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16156
16157         * doc/bugreport.texi: Update copyright years.
16158         * doc/c-tree.texi: Likewise.
16159         * doc/cfg.texi: Likewise.
16160         * doc/cpp.texi: Likewise.
16161         * doc/cppinternals.texi: Likewise.
16162         * doc/fragments.texi: Likewise.
16163         * doc/frontends.texi: Likewise.
16164         * doc/gcc.texi: Likewise.
16165         * doc/gty.texi: Likewise.
16166         * doc/hostconfig.texi: Likewise.
16167         * doc/implement-c.texi: Likewise.
16168         * doc/libgcc.texi: Likewise.
16169         * doc/loop.texi: Likewise.
16170         * doc/makefile.texi: Likewise.
16171         * doc/options.texi: Likewise.
16172         * doc/passes.texi: Likewise.
16173         * doc/rtl.texi: Likewise.
16174         * doc/sourcebuild.texi: Likewise.
16175         * doc/standards.texi: Likewise.
16176         * doc/tree-ssa.texi: Likewise.
16177         * doc/trouble.texi: Likewise.
16178
16179         * doc/extend.texi: Use @: or add comma where appropriate.
16180         * doc/invoke.texi: Likewise.
16181         * doc/tm.texi: Likewise.
16182
16183 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
16184
16185         PR target/34393
16186         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
16187         to a reg.
16188
16189 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
16190
16191         * doc/md.texi (clz, ctz): Add reference.
16192         * doc/rtl.texi (clz, ctz): Likewise.
16193
16194 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16195
16196         PR other/35148
16197         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
16198         srcdir.
16199
16200 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
16201
16202         * config/s390/s390.c (struct constant_pool): New field
16203         emit_pool_after added.
16204         (s390_mainpool_start): Set the emit_pool_after flag according
16205         to the section switch notes.
16206         (s390_mainpool_finish): Consider emit_pool_after when emitting
16207         the literal pool at the end of the function.
16208         (s390_chunkify_start): Force literal pool splits at section
16209         switch notes.
16210
16211 2008-02-13  Michael Matz  <matz@suse.de>
16212
16213         PR debug/35065
16214         * var-tracking.c (clobber_variable_part): Correctly traverse the
16215         list.
16216
16217 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16218
16219         PR 29673
16220         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
16221         Add -fdump-ipa-inline.
16222         * tree-dump.c (dump_files): Remove tree-inlined dump.
16223         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
16224
16225 2008-02-12  Richard Guenther  <rguenther@suse.de>
16226
16227         PR tree-optimization/35171
16228         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
16229         default defs.
16230
16231 2008-02-12  Richard Guenther  <rguenther@suse.de>
16232
16233         PR middle-end/35163
16234         * fold-const.c (fold_widened_comparison): Use get_unwidened in
16235         value-preserving mode.  Disallow final truncation.
16236
16237 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
16238
16239         PR middle-end/35136
16240         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
16241         code from here to...
16242         (force_gimple_operand): ...here.
16243
16244 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
16245
16246         PR c++/35144
16247         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
16248         non-compatible pointers.
16249         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
16250         different FIELD_DECLs, try harder by comparing field offsets, sizes
16251         and types.
16252
16253         PR inline-asm/35160
16254         * function.c (match_asm_constraints_1): Don't replace the same input
16255         multiple times.
16256
16257 2008-02-12  Anatoly Sokolov <aesok@post.ru>
16258
16259         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
16260         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
16261         (expand_epilogue): Restore RAMPZ register.
16262         * config/avr/avr.md (RAMPZ_ADDR): New constant.
16263
16264 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
16265
16266         * config/i386/cygwin.asm: (__alloca): Correct calling
16267         convention and alignment.
16268         (__chkstk): Force 8 byte stack alignment.
16269
16270 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
16271             Richard Guenther  <rguenther@suse.de>
16272
16273         PR tree-optimization/33992
16274         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
16275         the zero we compare against.
16276
16277 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
16278
16279         PR libfortran/35063
16280         * gthr-win32.h (__gthread_mutex_destroy_function): New function
16281         to CloseHandle after unlocking to prevent accumulation of handle
16282         count.
16283
16284 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16285
16286         PR middle_end/34150
16287         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
16288         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
16289         and update LABEL_NUSES during and after reload.
16290
16291 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
16292
16293         PR middle-end/34627
16294         * combine.c (simplify_if_then_else): Make sure the comparison is
16295         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
16296
16297 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
16298
16299         PR bootstrap/35051
16300         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
16301         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
16302         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
16303         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
16304         * tree.h (get_type_static_bounds): Likewise.
16305
16306 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16307
16308         * doc/invoke.texi (Option Summary, C++ Dialect Options)
16309         (Objective-C and Objective-C++ Dialect Options, Warning Options):
16310         Make -Wfoo language annotations match what the compiler outputs.
16311
16312 2008-02-08  Sa Liu  <saliu@de.ibm.com>
16313
16314         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
16315         intrinsics spu_convts, spu_convtu, spu_convtf.
16316
16317 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
16318
16319         * doc/extend.texi (Function Attributes) <noinline>: Mention
16320         asm ("") as method to keep calls.
16321
16322 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16323
16324         PR other/32754
16325         * doc/options.texi (Options): Replace references to opts.sh with
16326         optc-gen.awk.
16327         * opts-common.c: Likewise.
16328         * optc-gen.awk: Likewise.
16329
16330 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
16331
16332         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
16333
16334 2008-02-07  Richard Henderson  <rth@redhat.com>
16335
16336         PR rtl-opt/33410
16337         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
16338         EXPR_LIST for the REG_EQUAL instead of a comparison with a
16339         funny mode.
16340
16341 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
16342
16343         PR tree-optimization/35085
16344         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
16345         for operand entry oe2 in addition to operand entry oe3 in order to
16346         expose more opportunities for vectorizer sum reduction.
16347
16348 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16349
16350         PR other/35107
16351         * Makefile.in (LIBS): Remove $(GMPLIBS).
16352         (cc1-dummy, cc1): Add $(GMPLIBS).
16353
16354 2008-02-06  Jan Hubicka  <jh@suse.cz>
16355
16356         PR target/23322
16357         * i386.md (moddf_integer): Do not produce partial memory stalls for
16358         targets where it hurts.
16359
16360 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
16361
16362         PR target/35083
16363         * optabs.c (expand_float): Do not check for decimal modes when
16364         expanding unsigned integer through signed conversion.
16365
16366 2008-02-06  Nick Clifton  <nickc@redhat.com>
16367
16368         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
16369         inside the clobber with a match_operand and duplicated operand
16370         number in the constraint.
16371         (ineqbranchsi): Delete redundant comment.
16372
16373 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
16374
16375         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
16376         builtin_define ("__USE_INIT_FINI__").
16377         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
16378         -msx multilibs.
16379         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
16380
16381 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16382
16383         PR documentation/30330
16384         * doc/invoke.texi (C++ Dialect Options)
16385         (Objective-C and Objective-C++ Dialect Options, Warning Options):
16386         For each warning option -Wfoo that allows -Wno-foo, ensure both
16387         -Wfoo and -Wno-foo are listed in the option index.  Fix index
16388         entry of -Wswitch-default, index -Wnormalized= including the
16389         `=', and -Wlarger-than-@var{len} including @var{len}.
16390
16391 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
16392
16393         * config/i386/i386.md (floatunssisf2): Use
16394         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
16395         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
16396         Macroize expander using MODEF mode iterator.
16397
16398 2008-02-05  Diego Novillo  <dnovillo@google.com>
16399
16400         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
16401
16402         PR 33738
16403         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
16404
16405 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16406
16407         PR other/35070
16408         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
16409
16410 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
16411
16412         PR target/35084
16413         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
16414         to indicate if a message should be generated.
16415         (init_cumulative_args): Updated.
16416         (function_value_32): Likewise.
16417
16418 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
16419
16420         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
16421
16422 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
16423
16424         PR target/35083
16425         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
16426         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
16427
16428 2008-02-04  Diego Novillo  <dnovillo@google.com>
16429
16430         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
16431
16432         PR 33738
16433         * tree-vrp.c (vrp_evaluate_conditional): With
16434         -Wtype-limits, emit a warning when comparing against a
16435         constant outside the natural range of OP0's type.
16436
16437 2008-02-04  Richard Guenther  <rguenther@suse.de>
16438
16439         PR middle-end/33631
16440         * expr.c (count_type_elements): Give for unions instead of
16441         guessing.
16442
16443 2008-02-04  Richard Guenther  <rguenther@suse.de>
16444
16445         PR middle-end/35043
16446         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
16447         to TYPE_DOMAINs base type instead of using bitsizetype here.
16448
16449 2008-02-03  Jason Merrill  <jason@redhat.com>
16450
16451         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
16452
16453 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16454
16455         PR other/29972
16456         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
16457         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
16458         (RS/6000 and PowerPC Options): Fix typos and markup.
16459         * doc/passes.texi (Tree-SSA passes): Likewise.
16460
16461 2008-02-02  Michael Matz  <matz@suse.de>
16462
16463         PR target/35045
16464         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
16465         from record_last_reg_set_info.
16466         (record_last_reg_set_info): Take an RTX argument, iterate over all
16467         constituent hardregs.
16468         (record_last_set_info, record_opr_changes): Change calls to
16469         new signature or to record_last_reg_set_info_regno.
16470
16471 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
16472
16473         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
16474
16475 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
16476
16477         PR rtl-optimization/34773
16478         * reg-notes.def (EQUAL): Mention significance of combination of
16479         REG_EQUAL and REG_RETVAL.
16480         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
16481         insn that has a REG_RETVAL.
16482
16483 2008-02-01  Roger Sayle  <roger@eyesopen.com>
16484
16485         PR bootstrap/33781
16486         * configure.ac (--enable-fixed-point): Disable unless explicitly
16487         requested on IRIX.
16488         * configure: Regenerate.
16489
16490 2008-02-01  Richard Guenther  <rguenther@suse.de>
16491
16492         PR other/35042
16493         * invoke.texi (-finline-limit): Remove no longer true parts
16494         of the documentation.  Note that there is no default value.
16495
16496 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
16497             Mark Mitchell  <mark@codesourcery.com>
16498             Ben Elliston  <bje@au.ibm.com>
16499
16500         PR c/29326
16501         * doc/extend.texi (Other Builtins): Document.
16502
16503 2008-01-31  Tom Browder <tom.browder@gmail.com>
16504
16505         * doc/c-tree.texi (Types): Fix grammar.
16506         (Expression trees): Ditto.
16507         * doc/passes.texi (Tree-SSA passes): Ditto.
16508
16509         * doc/configterms.texi (Configure Terms): Fix typo.
16510         * doc/cpp.texi (Common Predefined Macros): Ditto.
16511         * doc/md.texi (Machine Constraints): Ditto.
16512
16513         * doc/makefile.texi (Makefile): Add comma.
16514
16515 2008-01-31  Tom Browder  <tom.browder@gmail.com>
16516             Gerald Pfeifer  <gerald@pfeifer.com>
16517
16518         * doc/sourcebuild.texi (Front End): Remove references to CVS
16519         and CVSROOT/modules.
16520         (Texinfo Manuals): Replace reference to CVS by one to SVN.
16521         (Back End): Remove reference to CVS.
16522
16523 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
16524
16525         PR target/34900
16526         * config/mips/mips.c (gen_load_const_gp): New function, taking a
16527         comment from...
16528         (mips16_gp_pseudo_reg): ...here.
16529         * config/mips/mips.md (load_const_gp): Replace with...
16530         (load_const_gp_<mode>): ...this :P-based insn.
16531
16532 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16533
16534         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
16535         options. Minor fixes.
16536         (-std): Move reference to standards closer to where language
16537         standards are first mentioned.
16538
16539 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
16540
16541         PR rtl-optimization/34995
16542         * reload.c (alternative_allows_const_pool_ref): Take an rtx
16543         parameter and return a bool.  If the rtx parameter is nonnull,
16544         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
16545         (find_reloads): Update call accordingly.  Pass the new operand
16546         if it needed no address reloads, otherwise pass null.
16547
16548 2008-01-30  Richard Henderson  <rth@redhat.com>
16549
16550         PR c/34993
16551         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
16552         for unbounded arrays.
16553
16554 2008-01-30  Silvius Rus  <rus@google.com>
16555
16556         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
16557
16558 2008-01-30  Jan Hubicka  <jh@suse.cz>
16559
16560         PR target/34982
16561         * i386.c (init_cumulative_args): Use real function declaration when
16562         calling locally.
16563
16564 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
16565
16566         PR rtl-optimization/34998
16567         * global.c (build_insn_chain): Treat non-subreg_lowpart
16568         SUBREGs of pseudos as clobbering all the words covered by the
16569         SUBREG, not just all the bytes.
16570         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
16571         original df_ref rather than an extract parameter.
16572         (global_conflicts): Update call accordingly.
16573
16574 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
16575
16576         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
16577         the overflow check to make it easier to read.
16578         (__fixtfdi): Change the type of the ll member in union
16579         long_double to UDItype_x.
16580
16581 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
16582
16583         PR middle-end/34969
16584         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
16585         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
16586         * tree-inline.c (fold_marked_statements): Call
16587         cgraph_update_edges_for_call_stmt if folding a call statement.
16588         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
16589         debug_generic_stmt calls, reset it back afterwards.
16590
16591         PR c/35017
16592         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
16593         static decls.
16594         * c-typeck.c (build_external_ref): Don't pedwarn about
16595         static vars in current function's scope.
16596
16597 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
16598
16599         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
16600
16601 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
16602
16603         PR c/35002
16604         * ipa-struct-reorg.c: Fix spelling.
16605         * params.def: Ditto.
16606
16607 2008-01-29  Richard Guenther  <rguenther@suse.de>
16608
16609         PR middle-end/35006
16610         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
16611         field.
16612         * tree-inline.c (remap_type): Increment remapping_type_depth
16613         around remapping types.
16614         (copy_body_r): Only add referenced variables if they are referenced
16615         from code, not types.
16616
16617 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
16618
16619         PR c++/34055
16620         PR c++/34103
16621         PR c++/34219
16622         PR c++/34606
16623         PR c++/34753
16624         PR c++/34754
16625         PR c++/34755
16626         PR c++/34919
16627         PR c++/34961
16628         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
16629         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
16630
16631 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
16632
16633         PR target/34412
16634         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
16635         pointer for tiny stack.
16636
16637 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
16638
16639         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
16640
16641 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
16642
16643         * config/vx-common.h: Fix typo in comment.
16644
16645 2008-01-28  Ian Lance Taylor  <iant@google.com>
16646
16647         PR c++/34862
16648         PR c++/33407
16649         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16650         coalesce pointers if they have different DECL_NO_TBAA_P values.
16651         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
16652         between variables with different DECL_NO_TBAA_P values.
16653
16654 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
16655
16656         PR 31535
16657         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
16658         are not legitimate small data references on SPE targets.
16659
16660 2008-01-28  David Daney  <ddaney@avtrex.com>
16661
16662         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
16663
16664 2008-01-28  David Daney  <ddaney@avtrex.com>
16665
16666         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
16667
16668 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
16669
16670         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
16671         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
16672         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
16673         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
16674         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
16675         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
16676         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
16677         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
16678
16679 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
16680
16681         * basic-block.h (condjump_equiv_p): Fix comment.
16682
16683 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
16684
16685         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
16686         print_generic_stmt_indented): Fix comment.
16687
16688 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
16689
16690         * configure.ac (__stack_chk_fail): Add detecion for availability
16691         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
16692         * configure: Regenerate.
16693
16694 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
16695
16696         PR middle-end/34688
16697         * final.c (output_addr_const): Handle TRUNCATE.
16698
16699 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
16700
16701         PR target/34711
16702         * tree-ssa-loop-ivopts.c (comp_cost): New type.
16703         (zero_cost, infinite_cost): New constants.
16704         (struct cost_pair): Change type of cost to comp_cost.
16705         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
16706         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
16707         New functions.
16708         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
16709         split_address_cost, ptr_difference_cost, difference_cost,
16710         get_computation_cost_at, get_computation_cost,
16711         determine_use_iv_cost_generic, determine_use_iv_cost_address,
16712         determine_use_iv_cost_condition, determine_use_iv_costs,
16713         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
16714         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
16715         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
16716         Change type of cost to comp_cost.
16717         (determine_iv_cost): Increase cost of non-original ivs, instead
16718         of decreasing the cost of original ones.
16719         (get_address_cost): Indicate the complexity of the addressing mode
16720         in comp_cost.
16721         (try_add_cand_for): Prefer using ivs not specific to some object.
16722         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
16723
16724 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
16725             Janis Johnson  <janis187@us.ibm.com>
16726
16727         PR target/34814
16728         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
16729         (TARGET_INSTANTIATE_DECLS): Likewise.
16730         * target.h (expand_to_rtl_hook): New target hook.
16731         (instantiate_decls): Likewise.
16732         * function.c (instantiate_decl): Make non-static.  Rename to...
16733         (instantiate_decl_rtl): ... this.
16734         (instantiate_expr): Use instantiate_decl_rtl.
16735         (instantiate_decls_1): Likewise.
16736         (instantiate_decls): Likewise.
16737         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
16738         * function.h (instantiate_decl_rtl): Add prototype.
16739         * cfgexpand.c (target.h): New include.
16740         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
16741         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
16742         (TARGET_INSTANTIATE_DECLS): Likewise.
16743         (TARGET_INITIALIZER): New target hooks added.
16744         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
16745         New prototype.
16746         * config/rs6000/rs6000.c (tree-flow.h): New include.
16747         (machine_function): Add sdmode_stack_slot field.
16748         (rs6000_alloc_sdmode_stack_slot): New function.
16749         (rs6000_instantiate_decls): Likewise.
16750         (rs6000_secondary_memory_needed_rtx): Likewise.
16751         (rs6000_check_sdmode): Likewise.
16752         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
16753         (TARGET_INSTANTIATE_DECLS): Likewise.
16754         (rs6000_hard_regno_mode_ok): Allow SDmode.
16755         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
16756         (rs6000_emit_move): Handle SDmode.
16757         (function_arg_advance): Likewise.
16758         (function_arg): Likewise.
16759         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
16760         SDmode var args for 32-bit compiles.
16761         (rs6000_secondary_reload_class): Handle SDmode.
16762         (rs6000_output_function_epilogue): Likewise.
16763         (rs6000_function_value): Simplify if statement.
16764         (rs6000_libcall_value): Likewise.
16765         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
16766         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
16767         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
16768         (movsd_hardfloat): New define_insn.
16769         (movsd_softfloat): Likewise.
16770         (movsd_store): Likewise.
16771         (movsd_load): Likewise.
16772         (extendsddd2): Likewise.
16773         (extendsdtd2): Likewise.
16774         (truncddsd2): Likewise.
16775         (movdd_hardfloat64): Fixup comment.
16776         (UNSPEC_MOVSD_LOAD): New constant.
16777         (UNSPEC_MOVSD_STORE): Likewise.
16778
16779 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
16780
16781         PR c++/34965
16782         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
16783         TRUTH_XOR_EXPR.
16784         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
16785         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
16786         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
16787         and TRUTH_XOR_EXPR.
16788
16789 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
16790
16791         PR target/34794
16792         * config.gcc: Separate AIX 5.3 from AIX 6.1.
16793         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16794         __LONGDOUBLE128 too.
16795         * config/rs6000/aix61.h: New file.
16796
16797 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
16798
16799         PR rtl-optimization/34959
16800         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
16801         popcount and parity rtxes the same mode as their operand.
16802         Truncate or extend the result to the return value's mode
16803         if necessary.
16804
16805 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
16806
16807         PR target/34981
16808         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
16809         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
16810         to GOT_VERSION_REGNUM.
16811         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
16812         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
16813         * config/mips/mips.c (mips_emit_call_insn): New function.
16814         (mips_call_tls_get_addr): Call mips_expand_call directly.
16815         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
16816         emit_call_insn.
16817         (mips16_build_call_stub): Likewise.  Return the call insn or null.
16818         (mips_expand_call): Update the call to mips16_build_call_stub
16819         accordingly and a remove redundant condition.  Assert that MIPS16
16820         stubs do not use lazy binding.  Use mips_emit_call_insn and return
16821         the call insn.
16822         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
16823         TARGET_USE_GOT.
16824         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
16825         (mips_avoid_hazard): Remove hazard_set handling.
16826         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
16827         (UNSPEC_RESTORE_GP): ...this.
16828         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
16829         (FAKE_CALL_REGNO): Rename to...
16830         (GOT_VERSION_REGNUM): ...this.
16831         (type): Add "ghost" value.  Add an associated insn reservation.
16832         (hazard_set): Remove.
16833         (exception_receiver): Rename to...
16834         (restore_gp): ...this and update the unspec identifier accordingly.
16835         (exception_receiver, nonlocal_got_receiver): New expanders.
16836         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
16837         FAKE_CALL_REGNO.  Remove hazard_set attribute.
16838         (set_got_version, update_got_version): New patterns.
16839
16840 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
16841
16842         PR target/34970
16843         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
16844
16845 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
16846
16847         PR other/31955
16848         * doc/install.texi2html: Generate gcc-vers.texi.
16849
16850 2008-01-25  DJ Delorie  <dj@redhat.com>
16851
16852         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
16853
16854 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
16855
16856         * config/c4x: Remove directory.
16857         * config.gcc (crx-*, mt-*): Mark obsolete.
16858         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
16859         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
16860         sh-*-rtemscoff*): Remove cases.
16861         * defaults.h (C4X_FLOAT_FORMAT): Remove.
16862         * real.c (encode_c4x_single, decode_c4x_single,
16863         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
16864         c4x_extended_format): Remove.
16865         * real.h (c4x_single_format, c4x_extended_format): Remove.
16866         * doc/extend.texi (interrupt, naked): Remove mention of attributes
16867         on C4x.
16868         (Pragmas): Remove comment about c4x pragmas.
16869         * doc/install.texi (c4x): Remove target-specific instructions.
16870         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
16871         * doc/md.texi (Machine Constraints): Remove C4x documentation.
16872         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
16873         refer to C4x source files as examples.
16874         (C4X_FLOAT_FORMAT): Remove documentation.
16875
16876 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
16877
16878         * config/bfin/bfin.c (override_options): Reorder tests so that
16879         flag_pic gets enabled for -msep-data.
16880
16881 2008-01-25  Richard Guenther  <rguenther@suse.de>
16882
16883         PR middle-end/32244
16884         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
16885         to its bitfield precision if required.
16886
16887 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
16888
16889         PR middle-end/33880
16890         * tree-nested.c (walk_omp_for): New function.
16891         (convert_nonlocal_reference, convert_local_reference): Call
16892         walk_omp_for on OMP_FOR.
16893         (convert_call_expr): Call walk_body on OMP_FOR's
16894         OMP_FOR_PRE_INIT_BODY.
16895
16896 2008-01-25  Richard Guenther  <rguenther@suse.de>
16897
16898         PR tree-optimization/34966
16899         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
16900         default defs and PHI_NODEs we have to insert after the
16901         defining statement.
16902
16903 2008-01-24  Nick Clifton  <nickc@redhat.com>
16904
16905         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
16906         Provide a default definition.
16907         (LIBGCC2_UNITS_PER_WORD): Likewise.
16908
16909         * config/stormy16/stormy16.c: Include df.h for the prototype
16910         for df_regs_ever_live_p.
16911         (xstormy16_expand_builtin_va_start): Convert the stack offset
16912         into a component_ref and then use POINTER_PLUS_EXPR to add it
16913         to the incoming_virtual_args_rtx.
16914         (xstormy16_gimplify_va_arg_expr): Rename to
16915         xstormy16_gimplify_va_arg_expr.
16916         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
16917         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
16918         xstormy16_gimplify_va_arg_expr.
16919         Fix up some formatting issues.
16920
16921         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
16922         Move to predicates.md.
16923         (xs_hi_general_operand): Likewise.
16924         (xs_hi_nonmemory_operand): Likewise.
16925         * config/stormy16/predicates.md:
16926         (xstormy16_carry_plus_operand): New predicate.
16927         (xs_hi_general_operand): New predicate.
16928         (xs_hi_nonmemory_operand): New predicate.
16929         * config/stormy16/stormy16-protos.h:
16930         (xstormy16_carry_plus_operand): Delete prototype.
16931         (xs_hi_general_operand): Likewise.
16932         (xs_hi_nonmemory_operand): Likewise.
16933
16934         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
16935         modifiers as they are no longer needed and they can trigger
16936         reload spill failures.
16937
16938         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
16939         with a match_operand in order to help reload.
16940
16941         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
16942         constraint with 'e' for the 8th alternative as this version of
16943         the mov.w instruction only accepts the lower 8 registers.
16944
16945 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
16946
16947         PR target/34856
16948         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
16949         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
16950         vector elements.
16951
16952 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
16953
16954         PR middle-end/33333
16955         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
16956
16957 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
16958
16959         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
16960         New functions.
16961         (remove_structure): Update allocations list before removing structure.
16962
16963 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
16964
16965         * ipa-struct-reorg.c (is_safe_cond_expr,
16966         create_new_stmts_for_cond_expr): Use integer_zerop function,
16967         that recognize not only zero-pointer, but zero-integer too.
16968
16969 2008-01-25  Ben Elliston  <bje@au.ibm.com>
16970
16971         PR other/22232
16972         * fixproto: Escape "." in sed expression that strips leading "./".
16973
16974 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
16975
16976         PR driver/34904
16977         * gcc.c (SWITCH_OK): Removed.
16978         (SWITCH_LIVE): Changed to bit.
16979         (SWITCH_FALSE): Likewise.
16980         (SWITCH_IGNORE): Likewise.
16981         (switchstr): Change live_cond to unsigned int.
16982         (process_command): Replace SWITCH_OK with 0.
16983         (do_self_spec): Likewise.
16984         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
16985         (give_switch): Likewise.
16986         (used_arg): Likewise.
16987         (do_spec_1): Set the SWITCH_IGNORE bit.
16988         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
16989         bits.  Set the SWITCH_LIVE bit.
16990
16991 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
16992
16993         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
16994
16995 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
16996
16997         PR tree-optimization/34472
16998         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
16999         parameter to a "bool *" and set *DATA to false if there is
17000         an unsafe access.  Do not delete the structure here.
17001         (check_cond_exprs): Delete it here instead.
17002         (check_cond_exprs, exclude_cold_structs): Do not increase
17003         I when removing a structure.
17004
17005 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
17006
17007         PR target/34856
17008         * config/i386/i386.c (ix86_expand_vector_init): Consider only
17009         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
17010
17011 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
17012
17013         PR middle-end/34934
17014         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
17015         a fixed vector for stack.
17016
17017 2008-01-24  Ben Elliston  <bje@au.ibm.com>
17018
17019         PR c++/25701
17020         * doc/gcc.texi (Software development): Add a direntry for g++.
17021
17022 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
17023
17024         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
17025         stale and straggling -fforce-addr comments above.
17026
17027         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
17028         define.
17029         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
17030         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
17031
17032 2008-01-23  Michael Matz  <matz@suse.de>
17033
17034         PR debug/34895
17035         * dwarf2out.c (force_type_die): Use modified_type_die instead of
17036         gen_type_die.
17037
17038 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
17039
17040         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
17041         malloc result type.
17042
17043 2008-01-23 Anatoly Sokolov <aesok@post.ru>
17044
17045         * config/avr/avr.c (avr_current_arch): New variable.
17046         (avr_arch_types): Add 'avr31' and 'avr51' entries.
17047         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
17048         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
17049         (avr_override_options): Init 'avr_current_arch'.
17050         (base_arch_s): Move from here...
17051         * config/avr/avr.h (base_arch_s): ... here. Add new members
17052         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
17053         'mega' to 'have_jmp_call'.
17054         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
17055         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
17056         macros.
17057         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
17058         architectures.
17059         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
17060         MULTILIB_MATCHES): Ditto.
17061
17062 2008-01-23  Richard Guenther  <rguenther@suse.de>
17063
17064         PR middle-end/31529
17065         * cgraphunit.c (cgraph_reset_node): Always mark the node
17066         not reachable if it is not queued already.
17067
17068 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
17069
17070         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
17071         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
17072         (cputype_selected): New static variable.
17073         (bfin_handle_option): Set it if -mcpu is used.
17074         (override_option): Select default set of workarounds if no cpu type
17075         selected on the command line.
17076         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
17077
17078         From  Michael Frysinger  <michael.frysinger@analog.com>
17079         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
17080         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
17081
17082         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
17083         for bf547, bf523, bf524, and bf526.
17084         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
17085         bf526.
17086         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
17087         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
17088         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
17089         __ADSPBF547__ and __ADSPBF54x__ for bf547.
17090         * doc/invoke.texi (Blackfin Options): Document that
17091         -mcpu now accept bf547, bf523, bf524, and bf526.
17092
17093 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
17094
17095         PR rtl-optimization/34628
17096         * combine.c (try_combine): Stop and undo after the first combination
17097         if an autoincrement side-effect on the first insn has effectively
17098         been lost.
17099
17100 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
17101
17102         PR target/34529
17103         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
17104         Offset addresses are not valid for Altivec or paired float modes.
17105
17106 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
17107
17108         PR c++/34607
17109         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
17110         if DECL_INITIAL (decl) is error_mark_node.
17111
17112         PR c++/34914
17113         * c-common.c (handle_vector_size_attribute): Only allow
17114         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
17115         the same way as pointer, array etc. types.
17116         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
17117
17118         PR c++/34917
17119         * tree.c (build_type_attribute_qual_variant): Call
17120         build_qualified_type if attributes are equal, but quals are not.
17121
17122 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17123
17124         PR 32102
17125         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
17126         * flags.h (warn_strict_aliasing): Remove.
17127         (warn_strict_overflow): Remove.
17128         * opts.c (warn_strict_aliasing): Remove.
17129         (warn_strict_overflow): Remove.
17130         * c-opts.c (c_common_handle_option): -Wall only sets
17131         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
17132         (c_common_post_options): Give default values to -Wstrict-aliasing
17133         and -Wstrict-overflow if they are uninitialized.
17134         * common.opt (Wstrict-aliasing): Specify Var and Init.
17135         (Wstrict-overflow): Likewise.
17136
17137 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
17138
17139         PR rtl-optimization/26854
17140         PR rtl-optimization/34400
17141         PR rtl-optimization/34884
17142         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
17143         DF_RD->gen.
17144         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
17145         (df_rd_bb_info.expanded_lr_out): Deleted
17146         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
17147         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
17148         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
17149         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
17150         Removed code to allocate, initialize or free expanded_lr_out.
17151         (df_rd_bb_local_compute_process_def): Restructured to make more
17152         understandable.
17153         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
17154         sets if the sets are being trimmed.
17155
17156 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
17157
17158         PR bootstrap/32287
17159         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
17160         (as_vers): Likewise.
17161         * configure: Regenerated.
17162
17163 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17164
17165         PR middle-end/33092
17166         * tree-pass.h (pass_build_alias): New pass.
17167         * tree-ssa-alias.c (gate_build_alias): New.
17168         (pass_build_alias): New.
17169         * passes.c (init_optimization_passes): Add pass_build_alias after
17170         pass_create_structure_vars.
17171
17172 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
17173
17174         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
17175         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
17176         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
17177         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
17178         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
17179         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
17180         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
17181         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
17182         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
17183         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
17184         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
17185         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
17186         * config/s390/s390.md (FP_ALL): New mode iterator.
17187         (_d): New mode attribute.
17188         ("*signbit<mode>2>"): Changed mode of first operand.
17189         ("isinf<mode>2"): Changed mode of first operand.
17190         ("*TDC_insn"): Adaptation for DFP modes.
17191
17192 2008-01-22  Ben Elliston  <bje@au.ibm.com>
17193
17194         * tree.c (check_qualified_type): Improve function description.
17195
17196 2008-01-21  Jason Merrill  <jason@redhat.com>
17197
17198         PR c++/34196
17199         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
17200         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
17201         if it is set.
17202
17203 2008-01-21  DJ Delorie  <dj@redhat.com>
17204
17205         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
17206         return zero.
17207
17208 2008-01-21  Richard Guenther  <rguenther@suse.de>
17209
17210         PR middle-end/34856
17211         * tree-cfg.c (verify_expr): Allow all invariant expressions
17212         instead of just constant class ones as reference argument.
17213         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
17214         like any other constant.
17215         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17216
17217 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
17218
17219         * regmove.c (fixup_match_1): Update call crossed frequencies.
17220
17221 2008-01-21  Richard Guenther  <rguenther@suse.de>
17222
17223         PR c/34885
17224         * tree-inline.c (setup_one_parameter): Deal with mismatched
17225         types using a VIEW_CONVERT_EXPR.
17226
17227 2008-01-21  Alon Dayan  <alond@il.ibm.com>
17228             Olga Golovanevsky  <olga@il.ibm.com>
17229
17230         PR tree-optimization/34701
17231         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
17232         when the structure size is not a power of 2.
17233
17234 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
17235
17236         * doc/install.texi: Add doc for --enable-checking=df.
17237
17238 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
17239
17240         PR rtl-optimization/34808
17241         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
17242
17243 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
17244
17245         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
17246         input.
17247
17248 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
17249
17250         PR rtl-optimization/26854
17251         PR rtl-optimization/34400
17252         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
17253         DF_RD->gen.
17254         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
17255         (df_rd_bb_info.expanded_lr_out): New.
17256         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
17257         * loop_iv.c (iv_analysis_loop_init): Ditto.
17258         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
17259         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
17260         Added code to allocate, initialize or free expanded_lr_out.
17261         (df_rd_bb_local_compute_process_def): Restructured to make
17262         more understandable.
17263         (df_rd_confluence_n): Add code to do nothing with fake edges and
17264         code to no apply invalidate_by_call sets if the sets are being trimmed.
17265         (df_lr_local_finalize): Renamed to df_lr_finalize.
17266         (df_live_local_finalize): Renamed to df_live_finalize.
17267
17268 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
17269
17270         PR target/34831
17271         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
17272         deciding whether to use reciprocal instructions.
17273
17274 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
17275
17276         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
17277         dwarf2out_note_section_used if cold_text_section is NULL.
17278
17279 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
17280
17281         PR gcov-profile/34610
17282         * tree-cfg.c (make_edges): Mark both outgoing edges from
17283         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
17284         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
17285         from OMP_FOR and OMP_CONTINUE outgoing edges.
17286
17287         * tree-profile.c (tree_profiling): Return early if
17288         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
17289         at the end.
17290         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
17291         from cfun to child_cfun.
17292         * function.h (struct function): Add after_tree_profile bit.
17293
17294 2008-01-19 Anatoly Sokolov <aesok@post.ru>
17295
17296         * config/avr/avr.S (_exit): Disable interrupt.
17297
17298 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
17299             Steven Bosscher  <stevenb.gcc@gmail.com>
17300
17301         PR rtl-optimization/26854
17302         PR rtl-optimization/34400
17303         * df-problems.c (df_live_scratch): New scratch bitmap.
17304         (df_live_alloc): Allocate df_live_scratch when doing df_live.
17305         (df_live_reset): Clear the proper bitmaps.
17306         (df_live_bb_local_compute): Only process the artificial defs once
17307         since the order is not important.
17308         (df_live_init): Init the df_live sets only with the variables
17309         found live by df_lr.
17310         (df_live_transfer_function): Use the df_lr sets to prune the
17311         df_live sets as they are being computed.
17312         (df_live_free): Free df_live_scratch.
17313
17314 2008-01-18  Ian Lance Taylor  <iant@google.com>
17315
17316         * common.opt: Add fmerge-debug-strings.
17317         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
17318         flag_merge_debug_strings rather than flag_merge_constants.
17319         * doc/invoke.texi (Option Summary): Mention
17320         -fmerge-debug-strings.
17321         (Debugging Options): Document -fmerge-debug-strings.
17322
17323 2008-01-18  Ian Lance Taylor  <iant@google.com>
17324
17325         PR c++/33407
17326         * tree.h (DECL_IS_OPERATOR_NEW): Define.
17327         (struct tree_function_decl): Add new field operator_new_flag.
17328         * tree-inline.c (expand_call_inline): When inlining a call to
17329         operator new, force the return value to go into a variable, and
17330         set DECL_NO_TBAA_P on that variable.
17331         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
17332
17333 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
17334
17335         PR debug/34484
17336         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
17337         DWARF2_DEBUGGING_INFO.
17338         (dwarf2out_note_section_used): Ditto.  Add prototype.
17339         (have_multiple_function_sections, text_section_used,
17340         cold_text_section_used, *cold_text_sections): Move declarations
17341         before their uses.
17342
17343 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
17344
17345         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
17346         field and add signal_ra.
17347         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
17348         assignments to frame state pc.  Move end of stack check after
17349         MD_FALLBACK_FRAME_STATE_FOR.
17350         (uw_update_context_1): Use frame state signal_regs if set, instead
17351         of checking signal_frame flag.
17352         (uw_update_context): Use frame state signal_ra if set.
17353         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
17354         * config/xtensa/linux-unwind.h: New file.
17355
17356 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
17357
17358         * modulo-sched.c (get_sched_window): Fix comment typo.
17359
17360 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
17361
17362         PR tree-optimization/34648
17363         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
17364
17365 2008-01-17  Anatoly Sokolov <aesok@post.ru>
17366
17367         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
17368         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
17369
17370 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
17371
17372         PR rtl-optimization/34400
17373         * df-core.c (df_worklist_dataflow_overeager,
17374         df_worklist_dataflow_doublequeue): New functions.
17375         (df_worklist_dataflow): Two different worklist solvers.
17376         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
17377         New param.
17378
17379 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
17380
17381         PR testsuite/34821
17382         * doc/invoke.texi: Document the dependence on pthread for fopenmp
17383         and ftree-parallelize-loops.
17384
17385 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
17386
17387         PR rtl-optimization/34826
17388         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
17389
17390 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
17391
17392         * global.c (find_reg): Mark the eh regs as used if necessary.
17393         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
17394         * ra.h (struct allocno): no_eh_reg field added.  Changed
17395         no_stack_reg type to bitfield.
17396
17397 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
17398
17399         * tree.c (substitute_in_expr): Add missing 'break'.
17400
17401 2008-01-17  Richard Guenther  <rguenther@suse.de>
17402
17403         PR tree-optimization/34825
17404         * tree-ssa-math-opts.c (is_division_by): Do not recognize
17405         x / x as division to handle.
17406
17407 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17408
17409         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
17410         "-pthread" is specified.
17411         * pa-hpux11.h (LIB_SPEC): Likewise.
17412
17413 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
17414             Peter Bergner  <bergner@vnet.ibm.com>
17415
17416         PR rtl-optimization/33796
17417         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
17418
17419 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17420
17421         PR libgfortran/34699
17422         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
17423         static links.
17424         * pa-hpux10.h (LINK_SPEC): Likewise.
17425         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
17426
17427 2008-01-16  Richard Guenther  <rguenther@suse.de>
17428
17429         PR middle-end/32628
17430         * fold-const.c (fold_convert_const_int_from_int): Do not
17431         set overflow if that occured only because of a sign extension
17432         change when converting from/to a sizetype with the same
17433         precision and signedness.
17434
17435 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
17436
17437         PR debug/34249
17438         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
17439         location address to the correct place.  Update copyright year.
17440
17441 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
17442
17443         * lambda-code.c (lambda_transform_legal_p): Handle the case of
17444         no dependences in the dependence_relations vector.
17445
17446 2008-01-16  Jan Hubicka  <jh@suse.cz>
17447
17448         PR rtl-optimization/31396
17449         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
17450         * cfg.c (dump_reg_info): Print it.
17451         * regs.h (struct reg_info_t): add freq_calls_crossed.
17452         (REG_FREQ_CALLS_CROSSED): New macro.
17453         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
17454         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
17455         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
17456         regmove_optimize): Update call crossed frequencies.
17457         * local-alloc.c (struct qty): Add freq_calls_crossed.
17458         (alloc_qty): Copute freq_calls_crossed.
17459         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
17460         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
17461         * ra.h (struct allocno): Add freq_calls_crossed.
17462
17463 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
17464
17465         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
17466         libgomp when compiling with ftree-parallelize-loops.
17467         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
17468
17469 2008-01-16  Richard Guenther  <rguenther@suse.de>
17470
17471         PR tree-optimization/34769
17472         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
17473         * tree.c (int_cst_value): Instead make this function more
17474         permissive in what it accepts as valid input.  Document this
17475         function always sign-extends the value.
17476
17477 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
17478             Richard Guenther  <rguenther@suse.de>
17479
17480         PR c/34668
17481         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
17482         (gimple_fold_indirect_ref_rhs): ... this.
17483         (gimple_fold_indirect_ref): New function with foldings
17484         that preserve lvalueness.
17485         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
17486         * tree-flow.h (gimple_fold_indirect_ref): Declare.
17487         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
17488         to fold an INDIRECT_REF, fall back to the old use of
17489         fold_indirect_ref_1.
17490
17491 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
17492
17493         * tree-data-ref.c (subscript_dependence_tester_1): Call
17494         free_conflict_function.
17495         (compute_self_dependence): Same.
17496
17497 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
17498
17499         PR debug/34249
17500         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
17501         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
17502         function global.
17503         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
17504         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
17505         for DWARF2_UNWIND_INFO targets.
17506
17507 2008-01-16  Richard Guenther  <rguenther@suse.de>
17508
17509         PR c/34768
17510         * c-typeck.c (common_pointer_type): Do not merge inconsistent
17511         type qualifiers for function types.
17512
17513 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
17514
17515         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
17516         loop_iterator li from previous commit.
17517
17518 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
17519
17520         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
17521
17522 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
17523
17524         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
17525         (parallelize_loops): Don't parallelize irreducible components.
17526
17527 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17528
17529         PR c++/24924
17530         * c-opts (c_common_post_options): Do not enable CPP
17531         flag_pedantic_errors by default.
17532
17533 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
17534
17535         PR rtl-optimization/31944
17536         * cse.c (remove_pseudo_from_table): New function.
17537         (merge_equiv_classes): Use above function to remove pseudo-registers.
17538         (invalidate): Likewise.
17539
17540 2008-01-13  Richard Guenther  <rguenther@suse.de>
17541
17542         PR middle-end/34601
17543         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
17544         instead of TYPE_MODE to deal with calls from expand_one_error_var.
17545
17546 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
17547
17548         * gcse.c (cprop_jump): Call validate_unshare_change instead of
17549         validate_change to unshare the source of the PC set.
17550
17551 2008-01-12  Jan Hubicka  <jh@suse.cz>
17552
17553         PR middle-end/32135
17554         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
17555         references above array bounds.  This might trigger bounds checks for
17556         pointers to arrays.
17557
17558 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
17559
17560         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
17561         new_replaceable_dependencies.
17562
17563 2008-01-12  Doug Kwan  <dougkwan@google.com>
17564
17565         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
17566         instead of OPT_Wreturn_type in warning due to ignored return type
17567         qualifiers.
17568         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
17569         options included in -Wextra.
17570         * c.opt: New option -Wignored_qualifiers.
17571         * doc/invoke.texi (Warning Options, -Wextra): Add new option
17572         -Wignore_qualifiers.
17573         (-Wignored-qualifiers): Document.
17574         (-Wreturn-type): Remove description of functionality now handled
17575         by -Wignored-qualifiers.
17576
17577 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
17578
17579         PR ada/33788
17580         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
17581         NOP_EXPR if it is between integral types with the same precision.
17582
17583 2008-01-12  Jan Hubicka  <jh@suse.cz>
17584
17585         PR other/28023
17586         * invoke.texi (max-inline-recursive-depth): Fix default value.
17587
17588 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
17589
17590         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
17591         correct type.
17592
17593 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
17594
17595         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
17596
17597 2008-01-11  James E. Wilson  <wilson@specifix.com>
17598
17599         PR target/26015
17600         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
17601
17602 2008-01-11  Anatoly Sokolov <aesok@post.ru>
17603
17604         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
17605         save/restore frame pointer register and don't use 'call-prologues'
17606         optimization in function with "OS_task" attribute.
17607
17608 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
17609
17610         PR middle-end/31309
17611         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
17612         when copying to memory.
17613
17614 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
17615
17616         PR rtl-optimization/30905
17617         * cfgcleanup.c: Include dce.h
17618         (crossjumps_occured): New global variable.
17619         (try_crossjump_bb): Exit loop after finding a fallthru edge.
17620         If something changed, set crossjumps_occured to true.
17621         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
17622         Don't add/remove fake edges to exit here...
17623         (cleanup_cfg): ...but do it here, when crossjumping.
17624         Run a fast DCE when successful crossjumps occured in the latest
17625         iteration of try_optimize_cfg.
17626
17627 2008-01-11  Richard Guenther  <rguenther@suse.de>
17628
17629         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
17630         (struct vn_unary_op_s): Likewise.
17631         (vn_reference_insert): Free old reference on hash collision.
17632
17633 2008-01-10  Raksit Ashok  <raksit@google.com>
17634
17635         PR rtl-optimization/27971
17636         * combine.c (find_split_point): Split PLUS expressions which are
17637         inside a MEM rtx, and whose first operand is complex.
17638
17639 2008-01-10  DJ Delorie  <dj@redhat.com>
17640
17641         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
17642         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
17643         (m32c_hard_regno_ok): Call the underlying function.
17644
17645 2008-01-10  Richard Guenther  <rguenther@suse.de>
17646
17647         PR middle-end/34683
17648         * tree-cfg.c (tree_merge_blocks): Do not go through the
17649         full-blown folding and stmt updating path if we just deal
17650         with virtual operands.
17651         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
17652         test for abnormal SSA_NAMEs.
17653
17654 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
17655
17656         PR middle-end/34641
17657         * reload.c (push_reload): Add assertions.  All constants from
17658         reg_equiv_constant should have been used for replacing the respective
17659         pseudo earlier.
17660         (find_reloads_address): Invoke find_reloads_address_part for
17661         constant taken from the reg_equiv_constant array.
17662
17663 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
17664
17665         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
17666         field (valnum) the first in the struct.  Replace bools with
17667         unit bit fields.
17668
17669 2008-01-10  Richard Guenther  <rguenther@suse.de>
17670
17671         PR tree-optimization/34651
17672         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
17673         types and ordering for masking and converting.
17674
17675 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
17676
17677         PR tree-optimization/34017
17678         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
17679         also for PHI_NODE expressions.
17680
17681 2008-01-09  Jan Hubicka  <jh@suse.cz>
17682
17683         PR tree-optimization/34708
17684         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
17685         based on number of case labels.
17686         (init_inline_once): Remove switch_cost.
17687         * tree-inline.h (eni_weights_d): Remove switch_cost.
17688
17689 2008-01-09  Richard Guenther  <rguenther@suse.de>
17690         Andrew Pinski  <andrew_pinski@playstation.sony.com>
17691
17692         PR middle-end/30132
17693         * gimplify.c (gimplify_cond_expr): Do not create an addressable
17694         temporary if an rvalue is ok or an lvalue is not required.
17695
17696 2008-01-09  Richard Guenther  <rguenther@suse.de>
17697
17698         PR middle-end/34458
17699         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
17700         adjust return type.
17701
17702 2008-01-09  Richard Guenther  <rguenther@suse.de>
17703
17704         PR middle-end/34679
17705         * tree.c (host_integerp): Check for sizetype only if the
17706         type is an integer type.
17707
17708 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
17709
17710         PR debug/26364
17711         * opts.c (decode_options): Disable inlining of functions called
17712         once if not in unit-at-a-time mode.
17713
17714 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
17715
17716         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
17717
17718 2008-01-08  Richard Guenther  <rguenther@suse.de>
17719
17720         PR middle-end/31863
17721         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
17722         out early if the result will be unused.
17723
17724 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
17725
17726         PR target/34709
17727         Revert:
17728
17729         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
17730         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
17731         for TARGET_RECIP.
17732
17733 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
17734
17735         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
17736         for vectorization tuned.
17737
17738 2008-01-08  Richard Guenther  <rguenther@suse.de>
17739
17740         PR tree-optimization/34683
17741         * tree-ssa-operands.c (operand_build_cmp): Export.
17742         * tree-ssa-operands.h (operand_build_cmp): Declare.
17743         * tree-vn.c (vuses_compare): Remove.
17744         (sort_vuses): Use operand_build_cmp.
17745         (sort_vuses_heap): Likewise.
17746         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
17747         to re-use old VEC if available.  Do not sort already sorted VUSEs.
17748         (vdefs_to_vec): Do not sort already sorted VDEFs.
17749
17750 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
17751
17752         PR middle-end/34694
17753         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
17754
17755 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
17756
17757         PR target/34702
17758         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
17759         limitations of reciprocal sequences on x86 targets.
17760
17761 2008-01-08  Richard Guenther  <rguenther@suse.de>
17762
17763         PR tree-optimization/34683
17764         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
17765
17766 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
17767
17768         PR target/34622
17769         * config/darwin.c (darwin_mergeable_string_section): Don't use
17770         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
17771
17772 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
17773
17774         PR target/34682
17775         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
17776         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
17777         predicates of op0 and op1 to register_operand.
17778         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
17779         expander using X87MODEF mode iterator.  Change predicates of
17780         op0 and op1 to register_operand.
17781         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
17782         corresponding patterns and macroize using MODEF macro.  Change
17783         predicates of op0 and op1 to register_operand and remove
17784         "m" constraint. Disparage "r" alternative with "!".
17785         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
17786         macroize using X87MODEF macro.  Change predicates of op0 and op1
17787         to register_operand and remove "m" constraint.  Disparage "r"
17788         alternative with "!".
17789         (absneg splitter with memory operands): Remove.
17790         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
17791         patterns and macroize using X87MODEF mode iterator.
17792         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
17793         Change predicate of op1 to register_operand.
17794         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
17795         for memory operands.
17796
17797 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
17798
17799         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
17800
17801 2008-01-07  Richard Guenther  <rguenther@suse.de>
17802
17803         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
17804         fields.
17805
17806 2008-01-07  Richard Guenther  <rguenther@suse.de>
17807
17808         PR tree-optimization/34683
17809         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
17810         VOPs of the needed size to save memory.  Use VEC_quick_push
17811         to save compile-time.
17812         (vdefs_to_vec): Likewise.
17813
17814 2008-01-07  Sa Liu  <saliu@de.ibm.com>
17815
17816         * config/spu/spu.md (divdf3): Genetate inline code for double
17817         division.  The implementation doesn't handle INF or NAN, therefore it
17818         only applies when -ffinite-math-only is given.
17819
17820 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
17821
17822         PR libstdc++/34680
17823         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
17824         * doc/cpp.texi ([Common Predefined Macros]): Document.
17825
17826 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
17827
17828         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
17829         order to use commutative addition instead of subtraction.
17830
17831 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17832             Mircea Namolaru  <namolaru@il.ibm.com>
17833             Vladimir Yanovsky  <yanov@il.ibm.com>
17834             Revital Eres  <eres@il.ibm.com>
17835
17836         PR tree-optimization/34263
17837         * tree-outof-ssa.c (process_single_block_loop_latch,
17838         contains_tree_r): New functions.
17839         (analyze_edges_for_bb): Call process_single_block_loop_latch
17840         function to empty single-basic-block latch block if possible.
17841
17842 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
17843
17844         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
17845         for TARGET_RECIP.
17846         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
17847
17848 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
17849
17850         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
17851
17852 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
17853
17854         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
17855
17856 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
17857
17858         PR tree-optimization/34618
17859         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
17860         flag from T.
17861
17862 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
17863
17864         PR target/34673
17865         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
17866         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
17867         Update copyright year.
17868
17869         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
17870         Update copyright year.
17871         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
17872         using NR fixup.
17873
17874 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
17875
17876         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
17877         edge does not point to current bb before changing need_assert.
17878
17879 2008-01-04  Richard Guenther  <rguenther@suse.de>
17880
17881         PR middle-end/34029
17882         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
17883         for verifying purposes if they are is_gimple_min_invariant.
17884
17885 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
17886
17887         PR tree-optimization/34448
17888         PR tree-optimization/34465
17889         * gimplify.c (gimplify_init_constructor): Add new parameter
17890         notify_temp_creation.  Use it.
17891         (gimplify_modify_expr_rhs): Take volatiles into account when
17892         optimizing constructors.
17893         Do not optimize constructors if gimplify_init_constructor will dump to
17894         memory.
17895         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
17896         * gcc.c-torture/compile/pr34448.c: New.
17897
17898 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
17899
17900         PR gcov-profile/34609
17901         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
17902         return_slot if result is TREE_ADDRESSABLE.
17903
17904 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
17905
17906         * config/mips/mips.md (sqrt_condition): Tweak comment.
17907         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
17908
17909 2008-01-03  Tom Tromey  <tromey@redhat.com>
17910
17911         PR c/34457
17912         * c-common.c (c_type_hash): Handle VLAs.
17913
17914 2008-01-03  Jan Hubicka  <jh@suse.cz>
17915
17916         PR tree-optimization/31081
17917         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
17918         0 when inlining and not inlining to first basic block.
17919         (remap_decl): When var is initialized to 0, don't set default_def.
17920         (expand_call_inline): Set entry_bb.
17921         * tree-inline.h (copy_body_data): Add entry_bb.
17922
17923 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
17924
17925         PR c++/34619
17926         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
17927         before returning.
17928
17929         PR tree-optimization/29484
17930         * tree-inline.c (inline_forbidden_p_2): New function.
17931         (inline_forbidden_p): Disallow inlining if some static var
17932         has an address of a local LABEL_DECL in its initializer.
17933         * doc/extend.texi (Labels as Values): Document &&foo behaviour
17934         vs. inlining.
17935
17936 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
17937
17938         PR tree-optimization/34635
17939         * tree-data-ref.c (add_other_self_distances): Make sure that the
17940         evolution step is constant.
17941
17942 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
17943
17944         PR middle-end/34608
17945         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
17946
17947 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
17948
17949         * tree-sra.c (scalarize_init): Insert the generate_element_init
17950         statements after the generate_element_zero statements.
17951
17952 2008-01-02  Richard Guenther  <rguenther@suse.de>
17953
17954         PR middle-end/34093
17955         PR middle-end/31976
17956         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
17957         for very large number of operands instead of ICEing.
17958
17959 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
17960
17961         PR target/34013
17962         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
17963         while stack probing.
17964
17965 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
17966
17967         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
17968         in C++0x mode.
17969
17970 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
17971
17972         PR libmudflap/26442
17973         * tree-mudflap.c (mx_register_decls): Guard warning by
17974         !DECL_ARTIFICIAL check.
17975
17976 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
17977
17978         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
17979         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
17980         sse5_perm<mode>): Fix constraints.