OSDN Git Service

* config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
2         
3         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
4         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
5         va_size, and type_size.
6         
7 2008-08-04  Jason Merrill  <jason@redhat.com>
8
9         PR c++/37016
10         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
11         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
12
13 2008-08-05  Richard Henderson  <rth@redhat.com>
14
15         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
16         * configure: Rebuild.
17
18 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19
20         PR tree-opt/37024
21         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
22         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
23         is a conversion.
24
25 2008-08-05  Richard Henderson  <rth@redhat.com>
26
27         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
28         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
29         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
30         * common.opt (fdwarf2-cfi-asm): New.
31         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
32         * config.in, configure: Rebuild.
33         * dwarf2asm.c (dw2_asm_output_data_raw): New.
34         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
35         (dw2_force_const_mem): Externalize.
36         * dwarf2asm.h: Update.
37         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
38         generate a real label.
39         (output_cfi_directive): New.
40         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
41         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
42         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
43         and .cfi_lsda.
44         (dwarf2out_end_epilogue): Emit .cfi_endproc.
45         (output_loc_operands_raw, output_loc_sequence_raw): New.
46         (output_cfa_loc_raw): New.
47         
48 2008-08-05  Paul Brook  <paul@codesourcery.com>
49
50         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
51         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
52         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
53         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
54         * config/arm/arm.h (TARGET_VFPD32): Define.
55         (TARGET_VFP3): Use TARGET_VFPD32.
56         (fputype): Add FPUTYPE_VFP3D16.
57         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
58         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
59         * config/arm/arm-cores.def: Add cortex-r4f.
60         * config/arm/arm-tune.md: Regenerate.
61
62 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
63
64         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
65         Reword some comments throughout the file.
66
67         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
68         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
69         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
70         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
71
72         (MFC_START_ENABLE): Remove PPU-only define.
73         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
74         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
75
76         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
77         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
78         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
79         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
80         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
81         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
82         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
83
84         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
85         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
86         (mfc_sdcrt, mfc_sdcrtst): Likewise.
87         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
88
89         (spu_read_machine_status): Fix typo.
90
91 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
92
93         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
94         SUBREG of multi-word hard register.
95         * config/spu/spu.c (valid_subreg): Likewise.
96         (adjust_operand): Handle SUBREGs of multi-word hard registers.
97
98 2008-08-04  Richard Guenther  <rguenther@suse.de>
99
100         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
101         the candidate with the stripped base if that base is different
102         from the original base even for offset zero.
103
104 2008-08-04  Richard Guenther  <rguenther@suse.de>
105
106         PR middle-end/36691
107         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
108         check for no_overflow.
109
110 2008-08-04  Richard Guenther  <rguenther@suse.de>
111
112         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
113
114 2008-08-04  Paul Brook  <paul@codesourcery.com>
115
116         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
117         (arm_order_regs_for_local_alloc): New function.
118         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
119         prototype.
120         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
121
122 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
123
124         PR target/37012
125         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
126         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
127         (ix86_expand_epilogue): Likewise.
128
129 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
130
131         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
132         in comments.
133
134 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
135
136         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
137         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
138         (*movv2sf_internal_rex64): Ditto.
139
140 2008-08-03  Jan Hubicka  <jh@suse.cz>
141
142         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
143         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
144         * expmed.c (expand_smod_pow2): Likewise.
145
146 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
147
148         PR target/36992
149         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
150         alternative 0 of operand 1.
151         (*vec_concatv2di_rex64_sse): Ditto.
152         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
153         of operand 1.
154         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
155         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
156         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
157         (*movv2sf_internal_rex64): Ditto.
158
159 2008-08-02  Richard Guenther  <rguenther@suse.de>
160
161         PR target/35252
162         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
163         (ssedoublesizemode): New mode attribute.
164         (sse_shufps): Call gen_sse_shufps_v4sf.
165         (sse_shufps_1): Macroize.
166         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
167         (sse2_shufpd_1): Macroize.
168         (vec_extract_odd, vec_extract_even): New expanders.
169         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
170         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
171         * i386.c (ix86_expand_vector_init_one_nonzero): Call
172         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
173         (ix86_expand_vector_set): Likewise.
174         (ix86_expand_reduc_v4sf): Likewise.
175
176 2008-08-01  Doug Kwan  <dougkwan@google.com>
177
178         * matrix-reorg.c: Re-enable all code.
179         (struct malloc_call_data): Change CALL_STMT to gimple type.
180         (collect_data_for_malloc_call): Tuplify.
181         (struct access_site_info): Change STMT to gimple type.
182         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
183         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
184         (struct free_info): Change STMT to gimple type.
185         (struct matrix_access_phi_node):  Change PHI to gimple type.
186         (get_inner_of_cast_expr): Remove.
187         (may_flatten_matrices_1): Tuplify.
188         (may_flatten_matrices): Ditto.
189         (mark_min_matrix_escape_level): Ditto.
190         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
191         (ssa_accessed_in_call_rhs): New
192         (ssa_accessed_in_assign_rhs): New
193         (record_access_alloc_site_info): Tuplify.
194         (add_allocation_site): Ditto.
195         (analyze_matrix_allocation_site): Ditto.
196         (analyze_transpose): Ditto.
197         (get_index_from_offset): Ditto.
198         (update_type_size): Ditto.
199         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
200         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
201         (analyze_accesses_for_phi_node): Tuplify.
202         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
203         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
204         (analyze_matrix_accesses): Tuplify.
205         (check_var_data): New call-back type for check_var_notmodified_p.
206         (check_var_notmodified_p): Tuplify and use call-back struct to
207         return statement found.
208         (can_calculate_expr_before_stmt): Factor out statement related code
209         into ...
210         (can_calculate_stmt_before_stmt): New.
211         (check_allocation_function): Tuplify.
212         (find_sites_in_func): Ditto.
213         (record_all_accesses_in_func): Ditto.
214         (transform_access_sites): Ditto.
215         (transform_allocation_sites): Ditto.
216         (matrix_reorg): Re-enable.
217         (gate_matrix_reorg): Re-enable.
218
219 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
220
221         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
222         for labels for which it hasn't been set yet.  If it has been set,
223         stop walking insns and continue with next worklist item.
224         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
225         if the only BARRIER is at the very end of a function.
226
227 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
228
229         * cfgexpand.c (expand_stack_alignment): Assert that
230         stack_realign_drap and drap_rtx must match.
231
232         * function.c (instantiate_new_reg): If DRAP is used to realign
233         stack, replace virtual_incoming_args_rtx with internal arg
234         pointer.
235
236 2008-08-01  Richard Guenther  <rguenther@suse.de>
237
238         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
239         loop information only if we initialized it.
240         (execute_pre): Call fini_pre with in_fre.
241         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
242         if we do not unroll because we hit max-completely-peeled-insns.
243         Use our estimation for consistency, do allow shrinking.
244
245 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
246
247         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
248         with MIN_STACK_BOUNDARY.
249         (ix86_update_stack_boundary): Likewise.
250         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
251         STACK_BOUNDARY.
252
253         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
254         (MIN_STACK_BOUNDARY): This.
255
256 2008-08-01  Richard Guenther  <rguenther@suse.de>
257
258         PR middle-end/36997
259         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
260
261 2008-08-01  Richard Guenther  <rguenther@suse.de>
262
263         PR tree-optimization/36988
264         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
265         do not matter if that doesn't change volatile qualification.
266
267 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
268
269         * configure.ac: Do not generate libada-mk.  Do not subst
270         host_cc_for_libada.
271         * libada-mk.in: Remove.
272         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
273         * configure: Regenerate.
274
275 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
276
277         * tree-pass.h: Added comment about not dumping passes with name
278         starting with star in struct opt_pass.
279         * passes.c (register_dump_files_1): Don't do dump for a pass with
280         name starting with star.
281         * doc/passes.texi (Pass manager): Mention pass names and special
282         meaning of star prefix to avoid dump.
283
284 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
285
286         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
287         to MIPS64r2.
288         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
289         (ISA_MIPS64R2): New macro.
290         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
291         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
292         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
293         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
294         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
295         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
296         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
297         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
298         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
299         Move up to keep list alphabetically sorted.
300         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
301         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
302         processor.
303         * doc/invoke.texi (MIPS Options): Add -mips64r2.
304         (-march=@var{arch}): Add mips64r2.
305
306 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
307
308         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
309
310 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
311
312         * expr.c (expand_assignment): Check for complete type.
313
314 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
315
316         PR debug/36977
317         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
318
319         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
320         for stack alignment.
321
322         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
323
324 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
325
326         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
327         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
328
329 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
330
331         PR rtl-optimization/36419
332         * dwarf2out.c (barrier_args_size): New variable.
333         (compute_barrier_args_size, compute_barrier_args_size_1): New
334         functions.
335         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
336         if not called yet in the current function, use barrier_args_size
337         array to find the new args_size value.
338         (dwarf2out_frame_debug): Free and clear barrier_args_size.
339
340 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
341
342         PR debug/36980
343         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
344         rule 19.
345
346 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
347
348         PR debug/36976
349         * dwarf2out.c (dwarf2out_args_size_adjust): New.
350         (dwarf2out_stack_adjust): Use it.
351         (dwarf2out_frame_debug_expr): Likewise.
352
353 2008-07-31  Richard Guenther  <rguenther@suse.de>
354
355         PR tree-optimization/36978
356         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
357         the generated condition.
358
359 2008-07-31  Richard Guenther  <rguenther@suse.de>
360
361         * passes.c (init_optimization_passes): Always call
362         pass_early_warn_uninitialized.
363         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
364         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
365         * doc/passes.texi (Warn for uninitialized variables): Adjust.
366
367 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
368
369         PR c/36970
370         * builtins.c (maybe_emit_free_warning): New function.
371         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
372         maybe_emit_free_warning for BUILT_IN_FREE.
373
374         PR debug/36278
375         * dwarf2out.c (get_context_die): New function.
376         (force_decl_die, force_type_die): Use it.
377         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
378         returns NULL, force generation of DW_TAG_typedef and put that into
379         DW_AT_import.
380
381         PR preprocessor/36649
382         * c-pch.c (c_common_read_pch): Save and restore
383         line_table->trace_includes across PCH restore.
384
385 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
386
387         PR ada/36554
388         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
389
390 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
391
392         PR 36974
393         * final.c (call_from_call_insn): Handle COND_EXEC.
394
395 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
396
397         * builtins.c (std_gimplify_va_arg_expr): Replace
398         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
399         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
400
401 2008-07-30  Joey Ye  <joey.ye@intel.com>
402             H.J. Lu  <hongjiu.lu@intel.com>
403
404         * builtins.c (expand_builtin_setjmp_receiver): Replace
405         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
406         (expand_builtin_apply_args_1): Likewise.
407         (expand_builtin_longjmp): Need DRAP for stack alignment.
408         (expand_builtin_apply): Likewise.
409
410         * caller-save.c (setup_save_areas): Call assign_stack_local_1
411         instead of assign_stack_local to allow alignment reduction.
412
413         * calls.c (emit_call_1): Need DRAP for stack alignment if
414         return pops.
415         (expand_call): Replace virtual_incoming_args_rtx with
416         crtl->args.internal_arg_pointer.
417         * stmt.c (expand_nl_goto_receiver): Likewise.
418
419         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
420         alignment and store to stack_alignment_estimated and
421         max_used_stack_slot_alignment.
422         (expand_one_var): Likewise.
423         (expand_stack_alignment): New function.
424         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
425         and stack_alignment_estimated fields in rtl_data.  Call
426         expand_stack_alignment at end.
427
428         * defaults.h (INCOMING_STACK_BOUNDARY): New.
429         (MAX_STACK_ALIGNMENT): Likewise.
430         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
431         (SUPPORTS_STACK_ALIGNMENT): Likewise.
432
433         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
434         stack alignment when generating virtual registers.
435
436         * function.c (assign_stack_local): Renamed to ...
437         (assign_stack_local_1): This.  Add a parameter to indicate
438         if it is OK to reduce alignment.
439         (assign_stack_local): Use it.
440         (instantiate_new_reg): Instantiate virtual incoming args rtx
441         to vDRAP if stack realignment and DRAP is needed.
442         (assign_parms): Collect parameter/return type alignment and
443         contribute to stack_alignment_estimated.
444         (locate_and_pad_parm): Likewise.
445         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
446         with crtl->args.internal_arg_pointer.
447
448         * function.h (rtl_data): Add new field drap_reg,
449         max_used_stack_slot_alignment, stack_alignment_estimated,
450         stack_realign_needed, need_drap, stack_realign_processed and
451         stack_realign_finalized.
452         (stack_realign_fp): New macro.
453         (stack_realign_drap): Likewise.
454
455         * global.c (compute_regsets): Frame pointer is needed when
456         stack is realigned.  Can eliminate frame pointer when stack is
457         realigned and dynamic realigned argument pointer isn't used.
458
459         * reload1.c (update_eliminables):  Frame pointer is needed
460         when stack is realigned.
461         (init_elim_table): Can eliminate frame pointer when stack is
462         realigned and dynamic realigned argument pointer isn't used.
463
464         * rtl.h (assign_stack_local_1): Declare new funtion.
465
466         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
467         (TARGET_GET_DRAP_RTX): Likewise.
468         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
469         TARGET_GET_DRAP_RTX.
470
471         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
472
473         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
474         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
475
476 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
477             H.J. Lu  <hongjiu.lu@intel.com>
478
479         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
480         vdrap_reg, stack_realign and drap_reg_saved.
481         (add_cfi): Don't allow redefining CFA when DRAP is used.
482         (reg_save): Handle stack alignment.
483         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
484         alignment.  Don't generate DWARF information for (set fp sp)
485         when DRAP is used.
486         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
487         to INVALID_REGNUM.
488         (int_loc_descriptor): Move prototype forward.  Also define if
489         DWARF2_UNWIND_INFO is true.
490         (output_cfa_loc): Handle DW_CFA_expression.
491         (build_cfa_aligned_loc): New.
492         (based_loc_descr): Update assert for stack realign.  For local
493         variables, use sp+offset when stack is aligned without drap and
494         fp+offset when stack is aligned with drap.  For arguments, use
495         cfa+offset when drap is used to align stack.
496
497 2008-07-30  Joey Ye  <joey.ye@intel.com>
498             H.J. Lu  <hongjiu.lu@intel.com>
499
500         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
501         Break long line.
502         (ix86_gen_andsp): New.
503         (ix86_user_incoming_stack_boundary): Likewise.
504         (ix86_default_incoming_stack_boundary): Likewise.
505         (ix86_incoming_stack_boundary): Likewise.
506         (ix86_can_eliminate): Likewise.
507         (find_drap_reg): Likewise.
508         (ix86_update_stack_boundary): Likewise.
509         (ix86_get_drap_rtx): Likewise.
510         (ix86_finalize_stack_realign_flags): Likewise.
511         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
512         (TARGET_GET_DRAP_RTX): Likewise.
513         (override_options): Overide option value for new options.
514         (ix86_function_ok_for_sibcall): Remove check for
515         force_align_arg_pointer.
516         (ix86_handle_cconv_attribute): Likewise.
517         (ix86_function_regparm): Likewise.
518         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
519         (ix86_va_start): Replace virtual_incoming_args_rtx with
520         crtl->args.internal_arg_pointer.
521         (ix86_select_alt_pic_regnum): Check DRAP register.
522         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
523         (ix86_compute_frame_layout): Compute frame layout wrt stack
524         realignment.
525         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
526         (ix86_expand_prologue): Decide if stack realignment is needed
527         and generate prologue code accordingly.
528         (ix86_expand_epilogue): Generate epilogue code wrt stack
529         realignment is really needed or not.
530         
531         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
532         (ABI_STACK_BOUNDARY): Likewise.
533         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
534         (STACK_REALIGN_DEFAULT): Likewise.
535         (INCOMING_STACK_BOUNDARY): Likewise.
536         (MAX_STACK_ALIGNMENT): Likewise.
537         (ix86_incoming_stack_boundary): Likewise.
538         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
539         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
540         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
541         (machine_function): Remove force_align_arg_pointer.
542
543         * config/i386/i386.md (BX_REG): New.
544         (R13_REG): Likewise.
545
546         * config/i386/i386.opt (mforce_drap): New.
547         (mincoming-stack-boundary): Likewise.
548         (mstackrealign): Add Init(-1).
549
550         * config/i386/i386-protos.h (ix86_can_eliminate): New
551
552 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
553
554         * doc/extend.texi: Update force_align_arg_pointer.
555
556         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
557         -mstackrealign.
558
559         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
560         (INCOMING_STACK_BOUNDARY): Likewise.
561         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
562         (TARGET_GET_DRAP_RTX): Likewise.
563
564 2008-07-30  Andreas Schwab  <schwab@suse.de>
565
566         PR rtl-optimization/36929
567         * dse.c (replace_inc_dec): Use emit_insn_before instead of
568         add_insn_before and fix argument order.
569         (replace_inc_dec_mem): Handle NULL rtx.
570
571 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
572
573         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
574         function.
575         (arm_compute_initial_elimination_offset): Use it.
576         (arm_compute_save_reg_mask): Include static chain save slot when
577         calculating alignment.
578         (arm_get_frame_offsets): Ditto.
579         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
580         that we can use to decrement the stack when the stack decrement
581         could be too big for an immediate value in a single insn.
582         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
583
584 2008-07-30  Richard Guenther  <rguenther@suse.de>
585
586         PR tree-optimization/36967
587         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
588         Release defs of statements we remove.
589
590 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
591
592         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
593         instead of NULL_RTVEC.
594
595 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
596
597         PR target/35866
598
599         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
600         vector modes.
601
602 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
603
604         * final.c (call_from_call_insn): New.
605         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
606
607 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
608
609         * configure.ac: Substitute ADA_CFLAGS.
610         * configure: Regenerate.
611         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
612         * Makefile.in: Remove mention of X_* variables.
613         * config/pa/x-ada-hpux10: Remove.
614         * config/pa/x-ada: Remove.
615
616         * doc/fragments.texi: Update.
617
618 2008-07-30  Olivier Hainque  <hainque@adacore.com>
619
620         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
621         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
622         __dso_handle explicitly here.
623
624 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
625
626         PR 34389
627         * c-typeck.c (build_binary_op): Encapsulate code into...
628         * c-common.c (shorten_binary_op): ...this new function.
629         (conversion_warning): Use the new function. Handle non-negative
630         constant in bitwise-and.
631         * c-common.h (shorten_binary_op): Declare.
632
633 2008-07-30  Olivier Hainque  <hainque@adacore.com>
634
635         * scan.c (make_sstring_space): Add explicit conversions of
636         allocator's return value.
637         * fix-header.c (recognized_function): Likewise.
638
639 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
640
641         * doc/cpp.texi: Update to GFDL 1.2.
642         * doc/gcc.texi: Do not list GPL as Invariant Section.
643         * doc/gccint.texi: Likewise.  Update copyright years.
644         * doc/install.texi: Update copyright years.
645
646 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
647
648         PR target/36955
649         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
650         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
651
652 2008-07-29  Jan Hubicka  <jh@suse.cz>
653
654         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
655         (grokdeclarator): Likewise.
656         * langhooks.c (lhd_warn_unused_global_decl): Use
657         DECL_DECLARED_INLINE_P.
658         * print-tree.c (print_node): Remove DECL_INLINE check.
659
660 2008-07-29  Richard Guenther  <rguenther@suse.de>
661
662         PR tree-optimization/36945
663         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
664         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
665         Record invariant addresses un-decomposed.
666         (copy_reference_ops_from_call): Record reference call
667         arguments properly.  Simplify.
668         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
669         helper split out from ...
670         (create_component_ref_by_pieces): ... here.  Simplify.
671         Prepare for recursive invocation for call arguments.
672         (create_expression_by_pieces): Adjust call to
673         create_component_ref_by_pieces.
674         (compute_avail): Process operand 2 of reference ops.
675
676 2008-07-29  Richard Guenther  <rguenther@suse.de>
677
678         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
679
680 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
681
682         * c-format.c (check_format_types): Revert unwanted checkin.
683
684 2008-07-29  Jan Hubicka  <jh@suse.cz>
685
686         * flags.h (flag_really_no_inline): Remove.
687         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
688         * toplev.c (flag_really_no_inline): Remove.
689         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
690         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
691         (cgraph_decide_inlining_incrementally): Likewise.
692         (compute_inline_parameters): Likewise.
693         * opts.c (decode_options): Simplify.
694         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
695         * common.opt (finline): Initialize to 1.
696         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
697
698 2008-07-29  Jan Hubicka  <jh@suse.cz>
699
700         * predict.c (always_optimize_for_size_p): New function.
701         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
702         optimize_edge_for_size_p, optimize_edge_for_speed_p,
703         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
704         functions.
705         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
706         * function.c (prepare_function_start): Set default profile.
707         * function.h (rtl_data): Add maybe_hot_insn_p.
708         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
709         (construct_exit_block): Likewise.
710         (tree_expand_cfg): Likewise.
711         * basic-block.h
712         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
713         optimize_edge_for_size_p, optimize_edge_for_speed_p,
714         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
715         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
716         Declare.
717
718 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
719
720         PR 34985
721         * c-decl.c (merge_decls): Merge USED flags.
722
723 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
724
725         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
726         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
727         next_stack, lab_false and lab_over trees.
728
729 2008-07-28  Richard Guenther  <rguenther@suse.de>
730
731         PR tree-optimization/36957
732         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
733         (useless_type_conversion_p): Remove.
734         (types_compatible_p): Remove.
735         * gimple.h (tree_ssa_useless_type_conversion): Declare.
736         (useless_type_conversion_p): Declare.
737         (types_compatible_p): Declare.
738         (gimple_expr_type): Return the base type only if it is
739         trivially convertible to the subtype.
740
741 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
742
743         * configure.ac: Use the m4_do macro to concatenate the warnings into
744         one string in ACX_PROG_CC_WARNING_OPTS,
745         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
746         * configure: Regenerate.
747
748 2008-07-28  Richard Guenther  <rguenther@suse.de>
749
750         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
751         (insert_fake_stores): Remove.
752         (realify_fake_stores): Likewise.
753         (execute_pre): Remove dead code.
754         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
755         (find_func_aliases): Deal with it here instead.
756         Re-enable gcc_unreachable call.
757
758 2008-07-28  Richard Guenther  <rguenther@suse.de>
759
760         Merge from gimple-tuples-branch.
761
762         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
763         * gimple.def: New file.
764         * gsstruct.def: Likewise.
765         * gimple-iterator.c: Likewise.
766         * gimple-pretty-print.c: Likewise.
767         * tree-gimple.c: Removed.  Merged into ...
768         * gimple.c: ... here.  New file.
769         * tree-gimple.h: Removed.  Merged into ...
770         * gimple.h: ... here.  New file.
771
772         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
773         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
774         --enable-checking=gimple flag.
775         * config.in: Likewise.
776         * configure: Regenerated.
777
778         * tree-ssa-operands.h: Tuplified.
779         * tree-vrp.c: Likewise.
780         * tree-loop-linear.c: Likewise.
781         * tree-into-ssa.c: Likewise.
782         * tree-ssa-loop-im.c: Likewise.
783         * tree-dump.c: Likewise.
784         * tree-complex.c: Likewise.
785         * cgraphbuild.c: Likewise.
786         * tree-ssa-threadupdate.c: Likewise.
787         * tree-ssa-loop-niter.c: Likewise.
788         * tree-pretty-print.c: Likewise.
789         * tracer.c: Likewise.
790         * gengtype.c: Likewise.
791         * tree-loop-distribution.c: Likewise.
792         * tree-ssa-loop-unswitch.c: Likewise.
793         * cgraph.c: Likewise.
794         * cgraph.h: Likewise.
795         * tree-ssa-loop-manip.c: Likewise.
796         * value-prof.c: Likewise.
797         * tree-ssa-loop-ch.c: Likewise.
798         * tree-tailcall.c: Likewise.
799         * value-prof.h: Likewise.
800         * tree.c: Likewise.
801         * tree.h: Likewise.
802         * tree-pass.h: Likewise.
803         * ipa-cp.c: Likewise.
804         * tree-scalar-evolution.c: Likewise.
805         * tree-scalar-evolution.h: Likewise.
806         * target.h: Likewise.
807         * lambda-mat.c: Likewise.
808         * tree-phinodes.c: Likewise.
809         * diagnostic.h: Likewise.
810         * builtins.c: Likewise.
811         * tree-ssa-alias-warnings.c: Likewise.
812         * cfghooks.c: Likewise.
813         * fold-const.c: Likewise.
814         * cfghooks.h: Likewise.
815         * omp-low.c: Likewise.
816         * tree-ssa-dse.c: Likewise.
817         * ipa-reference.c: Likewise.
818         * tree-ssa-uncprop.c: Likewise.
819         * toplev.c: Likewise.
820         * tree-gimple.c: Likewise.
821         * tree-gimple.h: Likewise.
822         * tree-chrec.c: Likewise.
823         * tree-chrec.h: Likewise.
824         * tree-ssa-sccvn.c: Likewise.
825         * tree-ssa-sccvn.h: Likewise.
826         * cgraphunit.c: Likewise.
827         * tree-ssa-copyrename.c: Likewise.
828         * tree-ssa-ccp.c: Likewise.
829         * tree-ssa-loop-ivopts.c: Likewise.
830         * tree-nomudflap.c: Likewise.
831         * tree-call-cdce.c: Likewise.
832         * ipa-pure-const.c: Likewise.
833         * c-format.c: Likewise.
834         * tree-stdarg.c: Likewise.
835         * tree-ssa-math-opts.c: Likewise.
836         * tree-ssa-dom.c: Likewise.
837         * tree-nrv.c: Likewise.
838         * tree-ssa-propagate.c: Likewise.
839         * ipa-utils.c: Likewise.
840         * tree-ssa-propagate.h: Likewise.
841         * tree-ssa-alias.c: Likewise.
842         * gimple-low.c: Likewise.
843         * tree-ssa-sink.c: Likewise.
844         * ipa-inline.c: Likewise.
845         * c-semantics.c: Likewise.
846         * dwarf2out.c: Likewise.
847         * expr.c: Likewise.
848         * tree-ssa-loop-ivcanon.c: Likewise.
849         * predict.c: Likewise.
850         * tree-ssa-loop.c: Likewise.
851         * tree-parloops.c: Likewise.
852         * tree-ssa-address.c: Likewise.
853         * tree-ssa-ifcombine.c: Likewise.
854         * matrix-reorg.c: Likewise.
855         * c-decl.c: Likewise.
856         * tree-eh.c: Likewise.
857         * c-pretty-print.c: Likewise.
858         * lambda-trans.c: Likewise.
859         * function.c: Likewise.
860         * langhooks.c: Likewise.
861         * ebitmap.h: Likewise.
862         * tree-vectorizer.c: Likewise.
863         * function.h: Likewise.
864         * langhooks.h: Likewise.
865         * tree-vectorizer.h: Likewise.
866         * ipa-type-escape.c: Likewise.
867         * ipa-type-escape.h: Likewise.
868         * domwalk.c: Likewise.
869         * tree-if-conv.c: Likewise.
870         * profile.c: Likewise.
871         * domwalk.h: Likewise.
872         * tree-data-ref.c: Likewise.
873         * tree-data-ref.h: Likewise.
874         * tree-flow-inline.h: Likewise.
875         * tree-affine.c: Likewise.
876         * tree-vect-analyze.c: Likewise.
877         * c-typeck.c: Likewise.
878         * gimplify.c: Likewise.
879         * coretypes.h: Likewise.
880         * tree-ssa-phiopt.c: Likewise.
881         * calls.c: Likewise.
882         * tree-ssa-coalesce.c: Likewise.
883         * tree.def: Likewise.
884         * tree-dfa.c: Likewise.
885         * except.c: Likewise.
886         * except.h: Likewise.
887         * cfgexpand.c: Likewise.
888         * tree-cfgcleanup.c: Likewise.
889         * tree-ssa-pre.c: Likewise.
890         * tree-ssa-live.c: Likewise.
891         * tree-sra.c: Likewise.
892         * tree-ssa-live.h: Likewise.
893         * tree-predcom.c: Likewise.
894         * lambda.h: Likewise.
895         * tree-mudflap.c: Likewise.
896         * ipa-prop.c: Likewise.
897         * print-tree.c: Likewise.
898         * tree-ssa-copy.c: Likewise.
899         * ipa-prop.h: Likewise.
900         * tree-ssa-forwprop.c: Likewise.
901         * ggc-page.c: Likewise.
902         * c-omp.c: Likewise.
903         * tree-ssa-dce.c: Likewise.
904         * tree-vect-patterns.c: Likewise.
905         * tree-ssa-ter.c: Likewise.
906         * tree-nested.c: Likewise.
907         * tree-ssa.c: Likewise.
908         * lambda-code.c: Likewise.
909         * tree-ssa-loop-prefetch.c: Likewise.
910         * tree-inline.c: Likewise.
911         * tree-inline.h: Likewise.
912         * tree-iterator.c: Likewise.
913         * tree-optimize.c: Likewise.
914         * tree-ssa-phiprop.c: Likewise.
915         * tree-vect-transform.c: Likewise.
916         * tree-object-size.c: Likewise.
917         * tree-outof-ssa.c: Likewise.
918         * cfgloop.c: Likewise.
919         * system.h: Likewise.
920         * tree-profile.c: Likewise.
921         * cfgloop.h: Likewise.
922         * c-gimplify.c: Likewise.
923         * c-common.c: Likewise.
924         * tree-vect-generic.c: Likewise.
925         * tree-flow.h: Likewise.
926         * c-common.h: Likewise.
927         * basic-block.h: Likewise.
928         * tree-ssa-structalias.c: Likewise.
929         * tree-switch-conversion.c: Likewise.
930         * tree-ssa-structalias.h: Likewise.
931         * tree-cfg.c: Likewise.
932         * passes.c: Likewise.
933         * ipa-struct-reorg.c: Likewise.
934         * ipa-struct-reorg.h: Likewise.
935         * tree-ssa-reassoc.c: Likewise.
936         * cfgrtl.c: Likewise.
937         * varpool.c: Likewise.
938         * stmt.c: Likewise.
939         * tree-ssanames.c: Likewise.
940         * tree-ssa-threadedge.c: Likewise.
941         * langhooks-def.h: Likewise.
942         * tree-ssa-operands.c: Likewise.
943         * config/alpha/alpha.c: Likewise.
944         * config/frv/frv.c: Likewise.
945         * config/s390/s390.c: Likewise.
946         * config/m32c/m32c.c: Likewise.
947         * config/m32c/m32c-protos.h: Likewise.
948         * config/spu/spu.c: Likewise.
949         * config/sparc/sparc.c: Likewise.
950         * config/i386/i386.c: Likewise.
951         * config/sh/sh.c: Likewise.
952         * config/xtensa/xtensa.c: Likewise.
953         * config/stormy16/stormy16.c: Likewise.
954         * config/ia64/ia64.c: Likewise.
955         * config/rs6000/rs6000.c: Likewise.
956         * config/pa/pa.c: Likewise.
957         * config/mips/mips.c: Likewise.
958
959 2008-07-28  Simon Baldwin  <simonb@google.com>
960
961         * c-pragma.c (handle_pragma_message): New function.
962         (init_pragma): Register handle_pragma_message.
963         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
964         documentation.
965
966 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
967
968         PR tree-optimization/35252
969         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
970         REALPART_EXPR to be considered as same load operation.
971
972 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
973
974         PR tree-optimization/36830
975         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
976         (expressions_equal_p): Return false if only one operand is null.
977
978 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
979
980         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
981         version requirements.
982
983 2008-07-26  Olivier Hainque  <hainque@adacore.com>
984
985         * collect2.c (symkind): New enum.  Symbol kinds we care about.
986         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
987         code and head comment accordingly.
988         (scan_prog_file): Use symkind names instead of bare integers.
989
990 2008-07-25  Jan Hubicka  <jh@suse.cz>
991
992         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
993         DECL_INLINE.
994         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
995         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
996         * dojump.c (clear_pending_stack_adjust): Likewise.
997         * print-tree.c (print_node): Ignore DECL_INLINE.
998         * tree-inline.c (inlinable_function_p): Likewise.
999
1000 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
1001
1002         * doc/extend.texi (hot attribute): Document that the hot attribute
1003         turns on -O3 for some ports.
1004         (cold attribute): Document that the cold attribute turns on -Os
1005         for some ports
1006
1007         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
1008         reflect function specific option support.
1009
1010         * target.h (struct target_option_hooks): Add fields to say whether
1011         the cold attribute implies -Os and the hot attribute implies -O3.
1012
1013         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
1014         By default, do not turn on -Os for cold functions.
1015         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
1016         not turn on -O3 for hot functions.
1017
1018         * c-common.c (handle_hot_attribute): Use target hook to determine
1019         if hot functions should enable -O3.
1020         (handle_cold_attribute): Use target hook to determine if cold
1021         functions should enable -Os.
1022
1023         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
1024         (override_options): Move disable scheduling to
1025         optimization_options.
1026         (optimization_options): Disable scheduling here, not
1027         override_options.
1028         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1029         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1030
1031         * config/ia64/ia64.c (ia64_override_options): Move setting
1032         scheduling flags to ia64_optimization_options.
1033         (ia64_optimization_options): Disable scheduling options here, and
1034         not in ia64_override_options.
1035         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1036         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1037
1038 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
1039
1040         PR target/36936
1041         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
1042
1043 2008-07-25  Martin Jambor  <mjambor@suse.cz>
1044
1045         PR tree-optimization/36926
1046         * ipa-prop.c (ipa_analyze_call_uses): Call
1047         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
1048
1049 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
1050
1051         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
1052         movv2si_internal): Add mem = reg alternative.
1053
1054 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
1055
1056         PR bootstrap/36918
1057         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
1058         DEFAULT_PCC_STRUCT_RETURN to 127.
1059
1060 2008-07-24  Jan Hubicka  <jh@suse.cz>
1061
1062         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
1063         (build_cgraph_edges): Likewise.
1064         * cgraph.c (cgraph_node): Do not update assembler hash.
1065         (cgraph_remove_node): Drop non-unit-at-a-time code.
1066         * tree-pass.h (pass_O0_always_inline): Remove.
1067         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
1068         * toplev.c (process_options): Flag unit-at-a-time does not imply
1069         no section anchors.
1070         * cgraphunit.c: Update comments.
1071         (decide_is_function_needed): Drop non-unit-at-a-time mode.
1072         (cgraph_assemble_pending_functions): Remove.
1073         (cgraph_reset_node): Drop non-unit-at-a-time code.
1074         (cgraph_finalize_function): Likewise.
1075         (cgraph_analyze_function): Likewise.
1076         (cgraph_finalize_compilation_unit): Likewise.
1077         (cgraph_expand_function): Likewise.
1078         (cgraph_optimize): Likesise.
1079         (save_inline_function_body): Likewise.
1080         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
1081         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
1082         * ipa-inline.c: Update comments.
1083         (enum inlining_mode): remove INLINE_SPEED.
1084         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
1085         (cgraph_mark_inline_edge): Likewise.
1086         (try_inline): Likewise.
1087         (cgraph_decide_inlining_incrementally): Likewise.
1088         (cgraph_gate_inlining): Remove.
1089         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
1090         (cgraph_gate_early_inlining): Likewise.
1091         (gate_inline_passes): Remove.
1092         (pass_inline_parameters, pass_ipa_inline): Remove gates.
1093         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
1094         pass_O0_always_inline): Remove.
1095         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
1096         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
1097         * opts.c (no_unit_at_a_time_default): Remove.
1098         (decode_options): Remove flag_unit_at_a_time reset and warning.
1099         * opts.h (no_unit_at_a_time_default): Remove.
1100         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
1101         early in GNU dialect.
1102         (merge_decls): Update comment; drop unit-at-a-time check.
1103         (finish_decl): Likewise.
1104         (grok_declaration): Remove flag_inline_trees code.
1105         (finish_functions): Return on function returning non-void on all
1106         statics.
1107         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
1108         * cfgexpand.c (expand_one_static_var): Remove.
1109         (expand_one_var): Remove expand_one_static_var call.
1110         (expand_used_vars_for_block): Remove flag_unit_a_time check.
1111         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
1112         and flag_unit_at_a-time compatibility checks.
1113         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
1114         * tree-inline.c (flag_inline_trees): Remove.
1115         (inlinable_function_p): Don't check it.
1116         (expand_call_inline): Remove non-unit-at-a-time code.
1117         * tree-inline.h (flag_inline_trees): Remove.
1118         * tree-optimize.c (execute_early_local_optimizations): Remove
1119         unit-at-a-time checks.
1120         (tree_rest_of_compilation): Likewise.
1121         * combine.c (setup_incoming_promotions): Likewise.
1122         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
1123         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
1124         * passes.c (pass_inline_parameters): Update comments; remove
1125         O0_alwaysinline pass.
1126         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
1127         (execute_one_pass): Likewise.
1128         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
1129         (ix86_function_sseregparm): Likewise.
1130         * arm.c (arm_function_in_section_p): Likewise.
1131         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
1132         * varpool.c: Update comments.
1133         (decide_is_variable_needed): Remove unit-at-a-time checks.
1134         (varpool_finalize_decl): Likewise.
1135
1136 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
1137
1138         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
1139         to 2 instead of -1.
1140         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
1141
1142 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
1143
1144         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
1145         imp symbol extension.
1146
1147         2008-07-23  Ian Lance Taylor  <iant@google.com>
1148
1149         * tree-vrp.c (infer_value_range): Ignore asm statements when
1150         looking for memory accesses for -fdelete-null-pointer-checks.
1151
1152 2008-07-24  Ben Elliston  <bje@au.ibm.com>
1153
1154         * config/spu/spu-c.c (__vector_keyword): New variable.
1155         (vector_keyword): Likewise.
1156         (spu_categorize_keyword): New function.
1157         (spu_macro_to_expand): Likewise.
1158         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
1159         compiling an ISO C dialect.
1160
1161 2008-07-24  Ben Elliston  <bje@au.ibm.com>
1162
1163         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
1164         conventional usage.
1165
1166 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1167
1168         * configure: Regenerate.
1169         * configure.ac: Require texinfo 4.7.
1170         * doc/install.texi: Document texinfo 4.7 requirement.
1171
1172 2008-07-23  Martin Jambor  <mjambor@suse.cz>
1173
1174         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
1175         rather than for DECL_SAVED_TREE.
1176         * ipa-prop.c: Include diagnostic.h.
1177         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
1178         thoroughly.
1179         (ipa_detect_param_modifications): Function rewritten from scratch.
1180         (ipa_compute_jump_functions): Changed accesses to modification flags.
1181         (ipa_free_node_params_substructures): Update flags destruction.
1182         (ipa_node_duplication_hook): Update flags duplication.
1183         (ipa_print_all_params_modified): Updated flag access.
1184         * ipa-prop.h (struct ipa_param_flags): New structure.
1185         (struct ipa_node_params): New field modification_analysis_done,
1186         modified_flags changed into param_flags.
1187         (ipa_is_ith_param_modified): Changed to use new flags.
1188         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
1189
1190         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
1191         ipa-cp.c and split into two functions.
1192         (ipa_print_node_jump_functions): New function.
1193         (compute_scalar_jump_functions): New function.
1194         (type_like_member_ptr_p): New function.
1195         (compute_pass_through_member_ptrs): New function.
1196         (fill_member_ptr_cst_jump_function): New function.
1197         (determine_cst_member_ptr): New function.
1198         (compute_cst_member_ptr_arguments): New function.
1199         (ipa_compute_jump_functions): Complete rewrite.
1200         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
1201         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
1202         (struct ipa_member_ptr_cst): New structure.
1203         (union jump_func_value): New field member_cst.
1204         * ipa-cp.c (ipcp_lat_is_insertable): New function.
1205         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
1206         jump function types.
1207         (ipcp_print_all_lattices): Slight fprintf rearrangement.
1208         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
1209         instead of ipcp_print_all_jump_functions.
1210         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
1211         only for replacable scalars.
1212
1213         * doc/invoke.texi (Optimize options): Add description of
1214         -findirect-inlining.
1215         * common.opt (flag_indirect_inlining): New flag.
1216         * opts.c (decode_options): Set flag_indirect_inlining when
1217         optimize >= 3.
1218
1219         * ipa-inline.c: Include ipa-prop.h.
1220         (inline_indirect_intraprocedural_analysis): New function.
1221         (inline_generate_summary): Allocate parameter and argument info
1222         structures, call inline_indirect_intraprocedural_analysis on each
1223         node when doing indirect inlining and deallocate indirect inlining
1224         data structures in the end.
1225         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
1226         (free_all_ipa_structures_after_iinln): New function.
1227         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
1228         done.
1229         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
1230
1231         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
1232         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1233         of computing the frequency separately.
1234         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1235         of computing the frequency separately.
1236         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
1237         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
1238         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
1239         (ipa_get_stmt_member_ptr_load_param): New function.
1240         (ipa_is_ssa_with_stmt_def): New function.
1241         (ipa_note_param_call): New function.
1242         (ipa_analyze_call_uses): New function.
1243         (ipa_analyze_stmt_uses): New function.
1244         (ipa_analyze_params_uses): New function.
1245         (ipa_free_node_params_substructures): Also free the param_calls linked
1246         list.
1247         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
1248         (ipa_print_node_param_flags): New function.
1249         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
1250         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
1251         * ipa-prop.h (struct ipa_param_flags): New field called.
1252         (struct ipa_param_call_note): New structure.
1253         (struct ipa_node_params): New fields param_calls and
1254         uses_analysis_done.
1255         (ipa_is_ith_param_called): New function.
1256         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1257         ipa_analyze_params_uses and dump parameter flags.
1258
1259         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
1260         ipa_propagate_indirect_call_infos if performing indirect inlining,
1261         pass a new parameter new_edges to it.
1262         (add_new_edges_to_heap): New fucntion.
1263         (cgraph_decide_inlining_of_small_functions): New vector
1264         new_indirect_edges for newly found indirect edges , call
1265         ipa_propagate_indirect_call_infos after inlining.
1266         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
1267         inlining if performing indirect inlining.  Call
1268         free_all_ipa_structures_after_iinln when doing so too.
1269         (inline_generate_summary): Do not call
1270         free_all_ipa_structures_after_iinln here.
1271         * ipa-prop.c (update_jump_functions_after_inlining): New function.
1272         (print_edge_addition_message): New function.
1273         (update_call_notes_after_inlining): New function.
1274         (propagate_info_to_inlined_callees): New function.
1275         (ipa_propagate_indirect_call_infos): New function.
1276         * ipa-prop.h: Include cgraph.h
1277         (struct ipa_param_call_note): Fields reordered, new field processed.
1278         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
1279         flag indirect_call.
1280         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
1281         rediscovered call statements.
1282         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
1283         (dump_cgraph_node): Dump also the indirect_call flag.
1284         (cgraph_clone_edge): Copy also the indirect_call flag.
1285         * tree-inline.c (copy_bb): Do not check for fndecls from call
1286         expressions, check for edge availability when moving clones.
1287         (get_indirect_callee_fndecl): New function.
1288         (expand_call_inline): If callee declaration is not apprent from
1289         the statement, try calling get_indirect_callee_fndecl.  Do not
1290         issue warnings or call sorry when not inlinings an indirect edge.
1291         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
1292
1293         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
1294         bit more frandly to matching.
1295         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
1296         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
1297         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
1298
1299 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
1300
1301         PR 36907
1302         * opth-gen.awk: Suppress function specific features when building
1303         target libraries.
1304         * optc-gen.awk: Ditto.
1305
1306 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1307
1308         PR 35058
1309         * diagnostic.c (pedwarn): Add opt parameter.
1310         (pedwarn0): New.
1311         * c-tree.h (pedwarn_init): Add opt parameter.
1312         (pedwarn_c90): Likewise.
1313         (pedwarn_c99): Likewise.
1314         * c-errors.c (pedwarn_c99): Likewise.
1315         (pedwarn_c90): Likewise.
1316         * toplev.h (pedwarn): Update declaration.
1317         (pedwarn0): Declare.
1318         * c-lex.c: All calls to pedwarn changed.
1319         * builtins.c: All calls to pedwarn changed.
1320         * toplev.c: All calls to pedwarn changed.
1321         * c-decl.c: All calls to pedwarn changed.
1322         * c-typeck.c: All calls to pedwarn changed.
1323         * c-common.c: All calls to pedwarn changed.
1324         * c-parser.c: All calls to pedwarn changed.
1325
1326 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
1327             Karthik Kumar  <karthikkumar@gmail.com>
1328
1329         * attribs.c (file scope): Include c-common.h.
1330         (decl_attributes): Add support for #pragma GCC optimize and
1331         #pragma GCC option.
1332
1333         * targhooks.c (default_can_inline_p): New function that is the
1334         default for the TARGET_CAN_INLINE_P target hook.
1335
1336         * targhooks.h (default_can_inline_p): Add declaration.
1337
1338         * tree.c (cl_optimization_node): New static tree for building
1339         OPTIMIZATION_NODE tree.
1340         (cl_target_option_node): New static tree for building
1341         TARGET_OPTION_NODE tree.
1342         (cl_option_hash_table): New hash table for hashing
1343         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1344         (cl_option_hash_hash): New function to provide the hash value for
1345         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1346         (cl_option_hash_eq): New function to provide an equality test for
1347         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1348         (tree_code_size): Add support for OPTIMIZATION_NODE and
1349         TARGET_OPTION_NODE trees.
1350         (tree_code_structure): Add support for OPTIMIZATION_NODE and
1351         TARGET_OPTION_NODE trees.
1352         (build_optimization_node): Build a tree that has all of the
1353         current optimization options.
1354         (build_target_option_node): Build a tree that has the target
1355         options that might be changed on a per function basis.
1356
1357         * tree.h (file scope): Include options.h.
1358         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
1359         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1360         (TREE_OPTIMIZATION): Ditto.
1361         (TREE_TARGET_SPECIFIC): Ditto.
1362         (struct tree_function_decl): Add fields for remembering the
1363         current optimization options and target specific options.
1364         (struct tree_optimization_option): New tree variant that remembers
1365         the optimization options.
1366         (struct tree_target_option): New tree variant that remembers the
1367         target specific flags that might change for compiling a particular
1368         function.
1369         (union tree_node): Include tree_optimization_option and
1370         tree_target_option fields.
1371         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
1372         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
1373         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
1374         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
1375         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
1376         optimization and target options.
1377         (optimization_default_node): New macro to refer to global_trees
1378         field.
1379         (optimization_current_node): Ditto.
1380         (optimization_cold_node): Ditto.
1381         (optimization_hot_node): Ditto.
1382         (target_option_default_node): Ditto.
1383         (target_option_current_node): Ditto.
1384         (current_option_pragma): Ditto.
1385         (current_optimize_pragma): Ditto.
1386
1387         * target.h (struct gcc_target): Add valid_option_attribute_p,
1388         target_option_save, target_option_restore, target_option_print,
1389         target_option_pragma_parse, and can_inline_p hooks.
1390
1391         * toplev.h (parse_optimize_options): Add declaration.
1392         (fast_math_flags_struct_set_p): Ditto.
1393
1394         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
1395         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
1396         optimize is used.
1397
1398         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
1399         tree_can_inline_p hook to see if one function can inline another.
1400         (cgraph_decide_inlining): Ditto.
1401         (cgraph_decide_inlining_incrementally): Ditto.
1402
1403         * opts.c (decode_options): Add support for running multiple times
1404         to allow functions with different target or optimization options
1405         than was specified on the command line.
1406         (fast_math_flags_struct_set_p): New function that is similar to
1407         fast_math_flags_set_p, except it uses the values in the
1408         cl_optimization structure instead of global variables.
1409
1410         * optc-gen.awk: Add support for TargetSave to allow a back end to
1411         declare new fields that need to be saved when using function
1412         specific options.  Include flags.h and target.h in the options.c
1413         source.  Add support for Save to indicate which options can be set
1414         for individual functions.  Generate cl_optimize_save,
1415         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
1416         cl_target_option_restore, cl_target_option_print functions to
1417         allow functions to use different optimization or target options.
1418
1419         * opt-functions.awk (var_type_struct): Return the type used for
1420         storing the field in a structure.
1421
1422         * opth-gen.awk: Add support for TargetSave to allow a back end to
1423         declare new fields that need to be saved when using function
1424         specific options.  Add support for Save to indicate which options
1425         can be set for individual functions.  Only generate one extern for
1426         Mask fields.  Generate cl_optimization and cl_target_option
1427         structures to remember optimization and target options.
1428
1429         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
1430         collecting new tree nodes.
1431         (TS_TARGET_OPTION): Ditto.
1432
1433         * c-decl.c (merge_decls): Merge function specific target and
1434         optimization options.
1435
1436         * function.c (invoke_set_current_function_hook): If the function
1437         uses different optimization options, change the global variables
1438         to reflect this.
1439
1440         * coretypes.h (struct cl_optimization): Add forward reference.
1441         (struct cl_target_option): Ditto.
1442
1443         * c-pragma.c (option_stack): New static vector to remember the
1444         current #pragma GCC option stack.
1445         (handle_pragma_option): New function to support #pragma GCC option
1446         to change target options.
1447         (optimize_stack): New static vector to remember the current
1448         #pragma GCC optimize stack.
1449         (handle_pragma_optimize): New function to support #pragma GCC
1450         optimize to change optimization options.
1451         (init_pragma): Add support for #pragma GCC optimize and #pragma
1452         GCC option.
1453
1454         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
1455         optimization options.
1456         (TARGET_OPTION_NODE): New tree code for remembering certain target
1457         options.
1458
1459         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
1460         TARGET_OPTION_NODE trees.
1461
1462         * common.opt (-O): Add Optimization flag.
1463         (-Os): Ditto.
1464         (-fmath-errno): Ditto.
1465         (-falign-functions): Add UInteger flag to make sure flag gets full
1466         int in cl_optimization structure.
1467         (-falign-jumps): Ditto.
1468         (-falign-labels): Ditto.
1469         (-falign-loops): Ditto.
1470         (-fsched-stalled-insns): Ditto.
1471         (-fsched-stalled-insns-dep): Ditto.
1472
1473         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
1474         definition.
1475         (TARGET_OPTION_SAVE): Ditto.
1476         (TARGET_OPTION_RESTORE): Ditto.
1477         (TARGET_OPTION_PRINT): Ditto.
1478         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1479         (TARGET_CAN_INLINE_P): Ditto.
1480         (TARGET_INITIALIZER): Add new hooks.
1481
1482         * tree-inline.c (tree_can_inline_p): New function to determine
1483         whether one function can inline another.  Check if the functions
1484         use compatible optimization options, and also call the backend
1485         can_inline_p hook.
1486
1487         * tree-inline.h (tree_can_inline_p): Add declaration.
1488
1489         * c-common.c (c_common_attribute): Add support for option and
1490         optimize attributes.
1491         (handle_option_attribute): Add support for the option attribute to
1492         allow the user to specify different target options for compiling a
1493         specific function.
1494         (handle_optimize_attribute): Add support for the optimize
1495         attribute to allow the user to specify different optimization
1496         options for compiling a specific function.
1497         (handle_hot_attribute): Turn on -O3 optimization for this one
1498         function if it isn't the default optimization level.
1499         (handle_cold_attribute): Turn on -Os optimization for this one
1500         function if it insn't the default optimization.
1501         (const_char_p): New const char * typedef.
1502         (optimize_args): New static vector to remember the optimization
1503         arguments.
1504         (parse_optimize_options): New function to set up the optimization
1505         arguments from either the optimize attribute or #pragma GCC optimize.
1506
1507         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
1508         (builtin_define_std): Ditto.
1509
1510         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
1511         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
1512         (x86_64-*-*): Ditto.
1513
1514         * Makefile.in (TREE_H): Add options.h.
1515         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
1516
1517         * doc/extend.texi (option attribute): Document new attribute.
1518         (optimize attribute): Ditto.
1519         (hot attribute): Document hot attribute sets -O3.
1520         (cold attribute): Document cold attribute sets -Os.
1521         (#pragma GCC option): Document new pragma.
1522         (#pragma GCC optimize): Ditto.
1523
1524         * doc/options.texi (TargetSave): Document TargetSave syntax.
1525         (UInteger): Document UInteger must be used for certain flags.
1526         (Save): Document Save option to create target specific options
1527         that can be saved/restored on a function specific context.
1528
1529         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
1530         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1531
1532         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
1533         (TARGET_OPTION_SAVE): Ditto.
1534         (TARGET_OPTION_RESTORE): Ditto.
1535         (TARGET_OPTION_PRINT): Ditto.
1536         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1537         (TARGET_CAN_INLINE_P): Ditto.
1538
1539         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
1540         -mfpmath=sse,387.
1541         (-mfpmath=both): Ditto.
1542
1543 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
1544             Karthik Kumar  <karthikkumar@gmail.com>
1545
1546         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
1547         (TARGET_POPCNT): Ditto.
1548         (TARGET_SAHF): Ditto.
1549         (TARGET_AES): Ditto.
1550         (TARGET_PCLMUL): Ditto.
1551         (TARGET_CMPXCHG16B): Ditto.
1552         (TARGET_RECIP): Move switch into target_flags.
1553         (TARGET_FUSED_MADD): Ditto.
1554         (ix86_arch_features): Make an unsigned char type.
1555         (ix86_tune_features): Ditto.
1556         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
1557         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
1558         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
1559
1560         * config/i386/i386.opt (arch): New TargetSave field to define
1561         fields that need to be saved for function specific option support.
1562         (tune): Ditto.
1563         (fpmath): Ditto.
1564         (branch_cost): Ditto.
1565         (ix86_isa_flags_explicit): Ditto.
1566         (tune_defaulted): Ditto.
1567         (arch_specified): Ditto.
1568         (-m128-long-double): Add Save flag to save option for target
1569         specific option support.
1570         (-m80387): Ditto.
1571         (-maccumulate-outgoing-args): Ditto.
1572         (-malign-double): Ditto.
1573         (-malign-stringops): Ditto.
1574         (-mfancy-math-387): Ditto.
1575         (-mhard-float): Ditto.
1576         (-mieee-fp): Ditto.
1577         (-minline-all-stringops): Ditto.
1578         (-minline-stringops-dynamically): Ditto.
1579         (-mms-bitfields): Ditto.
1580         (-mno-align-stringops): Ditto.
1581         (-mno-fancy-math-387): Ditto.
1582         (-mno-push-args): Ditto.
1583         (-mno-red-zone): Ditto.
1584         (-mpush-args): Ditto.
1585         (-mred-zone): Ditto.
1586         (-mrtd): Ditto.
1587         (-msseregparm): Ditto.
1588         (-mstack-arg-probe): Ditto.
1589         (-m32): Ditto.
1590         (-m64): Ditto.
1591         (-mmmx): Ditto.
1592         (-m3dnow): Ditto.
1593         (-m3dnowa): Ditto.
1594         (-msse): Ditto.
1595         (-msse2): Ditto.
1596         (-msse3): Ditto.
1597         (-msse4.1): Ditto.
1598         (-msse4.2): Ditto.
1599         (-msse4): Ditto.
1600         (-mno-sse4): Ditto.
1601         (-msse4a): Ditto.
1602         (-msse5): Ditto.
1603         (-mrecip): Move flag into target_flags.
1604         (-mcld): Ditto.
1605         (-mno-fused-madd): Ditto.
1606         (-mfused-madd): Ditto.
1607         (-mabm): Move flag into ix86_isa_flags.
1608         (-mcx16): Ditto.
1609         (-mpopcnt): Ditto.
1610         (-msahf): Ditto.
1611         (-maes): Ditto.
1612         (-mpclmul): Ditto.
1613
1614         * config/i386/i386-c.c: New file for #pragma support.
1615         (ix86_target_macros_internal): New function to #define or #undef
1616         target macros based when the user uses the #pragma GCC option to
1617         change target options.
1618         (ix86_pragma_option_parse): New function to add #pragma GCC option
1619         support.
1620         (ix86_target_macros): Move defining the target macros here from
1621         TARGET_CPU_CPP_BUILTINS in i386.h.
1622         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
1623         defined, initialize any subtarget #pragmas.
1624
1625         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
1626         REGISTER_TARGET_PRAGMAS.
1627
1628         * config/i386/t-i386: New file for x86 dependencies.
1629         (i386.o): Make dependencies mirror the include files used.
1630         (i386-c.o): New file, add dependencies.
1631
1632         * config/i386/i386-protos.h (override_options): Add bool argument.
1633         (ix86_valid_option_attribute_tree): Add declaration.
1634         (ix86_target_macros): Ditto.
1635         (ix86_register_macros): Ditto.
1636
1637         * config/i386/i386.c (ix86_tune_features): Move initialization of
1638         the target masks to initial_ix86_tune_features to allow functions
1639         to have different target options.  Make type unsigned char,
1640         instead of unsigned int.
1641         (initial_ix86_tune_features): New static vector to hold processor
1642         masks for the tune variables.
1643         (ix86_arch_features): Move initialization of the target masks to
1644         initial_ix86_arch_features to allow functions to have different
1645         target options.  Make type unsigned char, instead of unsigned int.
1646         (initial_ix86_arch_features): New static vector to hold processor
1647         masks for the arch variables.
1648         (enum ix86_function_specific_strings): New enum to describe the
1649         string options used for attribute((option(...))).
1650         (ix86_target_string): New function to return a string that
1651         describes the target options.
1652         (ix86_debug_options): New function to print the current options in
1653         the debugger.
1654         (ix86_function_specific_save): New function hook to save the
1655         function specific global variables in the cl_target_option structure.
1656         (ix86_function_specific_restore): New function hook to restore the
1657         function specific variables from the cl_target_option structure to
1658         the global variables.
1659         (ix86_function_specific_print): New function hook to print the
1660         target specific options in the cl_target_option structure.
1661         (ix86_valid_option_attribute_p): New function hook to validate
1662         attribute((option(...))) arguments.
1663         (ix86_valid_option_attribute_tree): New function that is common
1664         code between attribute((option(...))) and #pragma GCC option
1665         support that parses the options and returns a tree holding the options.
1666         (ix86_valid_option_attribute_inner_p): New helper function for
1667         ix86_valid_option_attribute_tree.
1668         (ix86_can_inline_p): New function hook to decide if one function
1669         can inline another on a target specific basis.
1670         (ix86_set_current_function); New function hook to switch target
1671         options if the user used attribute((option(...))) or #pragma GCC
1672         option.
1673         (ix86_tune_defaulted): Move to static file scope from
1674         override_options.
1675         (ix86_arch_specified): Ditto.
1676         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
1677         ix86_isa_flags.
1678         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
1679         (OPTION_MASK_ISA_ABM_SET): Ditto.
1680         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
1681         (OPTION_MASK_ISA_CX16_SET): Ditto.
1682         (OPTION_MASK_ISA_SAHF_SET): Ditto.
1683         (OPTION_MASK_ISA_AES_UNSET): Ditto.
1684         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
1685         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
1686         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
1687         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
1688         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
1689         (struct ptt): Move to static file scope from override_options.
1690         (processor_target_table): Ditto.
1691         (cpu_names): Ditto.
1692         (ix86_handle_option): Add support for options that are now isa options.
1693         (override_options): Add support for declaring functions that
1694         support different target options than were specified on the
1695         command line.  Move struct ptt, processor_target_table, cpu_names,
1696         ix86_tune_defaulted, ix86_arch_specified to static file scope.
1697         Add bool argument.  Fix up error messages so the appropriate error
1698         is given for either command line or attribute.
1699         (ix86_previous_fndecl): New static to remember previous function
1700         declaration to see if we need to change target options.
1701         (ix86_builtins_isa): New array to record the ISA of each builtin
1702         function.
1703         (def_builtin): Always create the builtin function, even if the
1704         current ISA doesn't support it.
1705         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
1706         tests for those builtins.
1707         (ix86_init_builtins): Remove TARGET_MMX test for calling
1708         ix86_init_mmx_sse_builtins.
1709         (ix86_expand_builtin): If the current ISA doesn't support a given
1710         builtin, signal an error.
1711         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
1712         (TARGET_SET_CURRENT_FUNCTION): Ditto.
1713         (TARGET_OPTION_SAVE): Ditto.
1714         (TARGET_OPTION_RESTORE): Ditto.
1715         (TARGET_OPTION_PRINT): Ditto.
1716         (TARGET_CAN_INLINE_P): Ditto.
1717
1718 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1719
1720         * c-typeck.c (build_external_ref): Don't call assemble_external.
1721         * final.c (output_operand): Call assemble_external.
1722
1723 2008-07-21  DJ Delorie  <dj@redhat.com>
1724
1725         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
1726         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1727
1728 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1729
1730         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
1731         original insn and splitter contents into ...
1732         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
1733         flag_unsafe_math_optimizations.  Add dummy scratch register.
1734         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
1735         !flag_unsafe_math_optimizations.  Returns number with next
1736         highest magnitude if this is still less or equal to the true
1737         quotient in magnitude.
1738
1739 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
1740
1741         * Makefile.in: Replace toplev.h with TOPLEV_H.
1742         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
1743         * c-lex.c (fe_file_change): Don't set in_system_header.
1744         * c-parser.c (c_token): Remove in_system_header.
1745         (c_lex_one_token): Don't set in_system_header.
1746         (c_parser_set_source_position_from_token): Don't set in_system_header.
1747         * diagnostic.c (diagnostic_report_diagnostic): Use location from
1748         diagnostic_info.
1749         (warning_at): New.
1750         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
1751         * flags.h (in_system_header): Remove.
1752         * function.c (saved_in_system_header): Remove.
1753         (push_cfun): Don't set in_system_header.
1754         (pop_cfun): Don't set in_system_header.
1755         (push_struct_function): Don't set in_system_header.
1756         * input.h (expanded_location): Add sysp.
1757         (in_system_header_at): New.
1758         (in_system_header): New.
1759         * toplev.c (in_system_header): Remove.
1760         * toplev.h: Include input.h
1761         (warning_at): New.
1762         * tree-cfg.c (execute_warn_function_return): Call warning_at.
1763         * tree-ssa.c (warn_uninit): Call warning_at.
1764         (warn_uninitialized_var): Update calls to warn_uninit.
1765         (warn_uninitialized_phi): Update calls to warn_uninit.
1766         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
1767         (expand_location): Initialize xloc.sysp.
1768         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
1769         (tree_decl_with_vis): Remove in_system_header_flag.
1770
1771 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1772
1773         PR target/36822
1774         * recog.c (asm_operand_ok): Change the order of the extra
1775         memory constraint checks.
1776
1777 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1778
1779         PR tree-opt/36879
1780         * tree-switch-conversion.c (build_one_array): Call
1781         varpool_mark_needed_node and varpool_finalize_decl
1782         instead of assemble_variable.
1783
1784 2008-07-19  Jan Hubicka  <jh@suse.cz>
1785
1786         * cgraph.c (cgraph_add_new_function): Do early local passes.
1787         * tree-nrv.c (gate_pass_return_slot): New gate.
1788         (pass_nrv): Add the gate.
1789         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
1790         functions.
1791         (coalesce_ssa_name): Coalesce SSA names.
1792         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
1793         not optimizing so unused user vars remains visible.
1794         * common.opt (flag_tree_ter): Always enable by default.
1795         * tree-ssa-ter.c: Include flags.h
1796         (is_replaceable_p): Check that locations match; when aliasing is missing
1797         be conservative about loads.
1798         * tree-optimize.c (gate_init_datastructures): Remove.
1799         (pass_init_datastructures): New.
1800         * passes.c: Reorder passes so we always go into SSA.
1801
1802 2008-07-19  Jan Hubicka  <jh@suse.cz>
1803
1804         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
1805         * doc/invoke.texi (--combine): Likewise.
1806         (-finline-functions-called-once): Update levels when enabled.
1807         (-funit-at-a-time): Document new behaviour.
1808         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
1809         -fno-section-anchors when disabled explicitly.
1810         (inline params): They are not ignored now.
1811         (precompiled headers): Remove unit-at-a-time as being incompatible.
1812         * opts.c (decode_options): Handle unit-at-a-time as alias;
1813         imply -fno-section-anchors when toplevel reorder is disabled
1814         explicitly.
1815         * common.opt (ftoplevel-reorder): Set default value to 2.
1816         (funit-at-a-time): Set default value to 1.
1817         * config/rs6000/rs6000.c (optimization_options): Set section anchors
1818         to 2.
1819
1820 2008-07-19  Jan Hubicka  <jh@suse.cz>
1821
1822         * builtins.c (expand_builtin_int_roundingfn,
1823         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
1824         it is not useful.
1825
1826 2008-07-19  Richard Guenther  <rguenther@suse.de>
1827
1828         PR bootstrap/36864
1829         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
1830         * tree-ssa-sccvn.c (get_constant_value_id): New function.
1831         * tree-ssa-pre.c (get_expr_value_id): For newly created
1832         constant value-ids make sure to add the expression to its
1833         expression-set.
1834
1835 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
1836
1837         PR middle-end/36877
1838         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
1839         return value of the builtin is ignored.
1840
1841 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1842
1843         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
1844         bits, a C conformant malloc implementation has to provide.
1845         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
1846
1847 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
1848
1849         PR target/36780
1850         PR target/36827
1851         * reload.c (find_reloads_subreg_address): Only reload address if
1852         reloaded == 0, not for reloaded != 1.
1853
1854         Revert:
1855         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1856         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1857         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1858         m32c_legitimize_reload_address.
1859
1860         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1861         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1862         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1863
1864 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1865
1866         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
1867         argument, saying whether nested array are to be collapsed
1868         into a single array type DIE with multiple subscripts.
1869         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
1870         issues, centralize the nested array types collapsing control and
1871         disable the transformation for Ada.
1872
1873 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
1874
1875         PR target/36786
1876         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
1877         x86_64_shift_adj.
1878         (x86_64_shift_adj_2): New expander.
1879         (x86_64_shift_adj_3): Ditto.
1880         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
1881         to split TImode operands.
1882         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
1883         (ix86_split_lshr): Ditto.
1884
1885 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
1886
1887         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
1888         and __CHAR32_TYPE__.
1889         * c-typeck.c (digest_init): Support char16_t and char32_t.
1890         (set_nonincremental_init_from_string): Idem.
1891
1892 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1893
1894         PR middle-end/36859
1895         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
1896         PREFERRED_STACK_BOUNDARY.
1897         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1898
1899 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1900
1901         PR middle-end/36858
1902         * function.c (locate_and_pad_parm): Cap boundary earlier.
1903
1904 2008-07-17  Julian Brown  <julian@codesourcery.com>
1905
1906         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
1907         no-op for targets which don't use DLLs.
1908
1909 2008-07-17  Martin Jambor  <mjambor@suse.cz>
1910
1911         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
1912         that nodes are relevant by examining the node->analyzed flag.
1913         (ipcp_init_stage): Check which nodes are relevant, assert that the
1914         relevant ones are also required.
1915         (ipcp_propagate_stage): Check on the side arrays are properly
1916         allocated.
1917         (ipcp_print_all_jump_functions): Make sure not to touch any node
1918         that is not analyzed or an edge that does not have a corresponding
1919         entry in the on-the-side vectors.
1920         (ipcp_function_scale_print): Likewise.
1921         (ipcp_update_callgraph): Check that the node is relevant.
1922         (ipcp_insert_stage): Check that the node is relevant.  Check there is
1923         an info for every node and edge.
1924         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
1925         (ipa_print_all_tree_maps): Likewise and a new variable info.
1926         (ipa_print_all_params_modified): Likewise.
1927         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
1928
1929 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
1930
1931         PR target/25343
1932         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
1933
1934 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
1935
1936         PR rtl-optimization/36753
1937         * fwprop.c (use_killed_between): Don't shortcut
1938         single-definition global registers.
1939
1940 2008-07-16  Jan Hubicka  <jh@suse.cz>
1941
1942         * cgraph.h (varpool_empty_needed_queue): Declare.
1943         * cgraphunit.c (output_in_order): Mark all variables as needed;
1944         empty the queue.
1945         * varpool.c (varpool_assemble_node): Update debug queue.
1946         (varpool_assemble_pending_decls): Don't do it here.
1947         (varpool_empty_needed_queue):  New function.
1948
1949 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1950
1951         * recog.c (peephole2_optimize): Fix formatting.
1952
1953 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1954
1955         * c-pch.c (get_ident): Avoid C++ keywords.
1956         * combine-stack-adj.c (single_set_for_csa): Likewise.
1957         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
1958         output_asm_insn): Likewise.
1959         * reload.c (push_secondary_reload, find_reusable_reload,
1960         push_reload, combine_reloads, find_reloads,
1961         debug_reload_to_stream): Likewise.
1962         * reload.h (struct reload): Likewise.
1963         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
1964         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
1965         emit_output_reload_insns): Likewise.
1966         * targhooks.c (default_secondary_reload): Likewise.
1967         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
1968
1969 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1970
1971         * recog.c (validate_change_1, validate_change,
1972         validate_unshare_change, validate_replace_rtx_1, struct
1973         funny_match, constrain_operands, peephole2_optimize): Avoid C++
1974         keywords.
1975         * reload.c (push_secondary_reload, secondary_reload_class,
1976         scratch_reload_class, find_valid_class, find_reusable_reload,
1977         push_reload, find_dummy_reload, find_reloads_address_1,
1978         find_reloads_address_part, find_equiv_reg): Likewise.
1979         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1980         choose_reload_regs): Likewise.
1981         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1982         Likewise.
1983         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1984         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1985         * sched-rgn.c (concat_INSN_LIST): Likewise.
1986         * stor-layout.c (mode_for_size, mode_for_size_tree,
1987         smallest_mode_for_size): Likewise.
1988
1989 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1990
1991         * cfg.c (dump_reg_info): Avoid C++ keywords.
1992         * dwarf2asm.c (dw2_force_const_mem,
1993         dw2_asm_output_encoded_addr_rtx): Likewise.
1994         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1995         * expmed.c (expand_shift): Likewise.
1996         * global.c (find_reg): Likewise.
1997         * graph.c (draw_edge): Likewise.
1998         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1999         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
2000         widen_clz, widen_bswap, expand_parity, expand_unop,
2001         emit_cmp_and_jump_insn_1): Likewise.
2002         * postreload.c (reload_cse_simplify_operands): Likewise.
2003         * ra.h (add_neighbor): Likewise.
2004         * reg-stack.c (remove_regno_note, change_stack): Likewise.
2005         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
2006         record_reg_classes, copy_cost, record_address_regs,
2007         invalid_mode_change_p): Likewise.
2008         * regrename.c (regrename_optimize, scan_rtx_reg,
2009         dump_def_use_chain, find_oldest_value_reg,
2010         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
2011
2012 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
2013
2014         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
2015         MASK_POWERPC64 for power4 in previous commit.
2016
2017 2008-07-16  Olivier Hainque  <hainque@adacore.com>
2018
2019         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
2020         instead of bare conversion to cast const-ness away.
2021
2022 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
2023
2024         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
2025         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
2026         * config/xtensa/xtensa.c (xtensa_function_value): New function.
2027         (TARGET_FUNCTION_VALUE): Define.
2028
2029 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
2030
2031         * config/rs6000/rs6000.c (processor_target_table): Add
2032         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
2033
2034 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
2035
2036         PR target/36827
2037         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
2038         (m32c_legitimate_address_p): Handle "++rii" addresses created by
2039         m32c_legitimize_reload_address.
2040
2041 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
2042
2043         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
2044         DECL_IN_SYSTEM_HEADER in sync.
2045
2046 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
2047
2048         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
2049         * tree-ssa-pre.c (pre_expr_eq): Ditto
2050         (get_constant_for_value_id): Take a type as an argument.
2051         (fully_constant_expression): Pass in type.
2052         (find_or_generate_expression): Short circuit constant case.
2053         (create_expression_by_pieces): Remove special casing of
2054         pointer_plus.
2055         (do_regular_insertion): Short circuit constant case.
2056         (do_partial_partial_insertion): Ditto.
2057
2058 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2059
2060         PR target/36782
2061         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
2062
2063 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
2064
2065         * config/xtensa/libgcc-xtensa.ver: New file.
2066         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
2067
2068 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2069
2070         * df-problems.c (df_set_note): Avoid C++ keywords.
2071         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
2072         * dse.c (record_store, remove_useless_values): Likewise.
2073         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
2074         gen_reg_rtx_offset, operand_subword, change_address_1,
2075         change_address, adjust_address_1, offset_address,
2076         widen_memory_access, emit_copy_of_insn_after): Likewise.
2077         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
2078         * fwprop.c (should_replace_address, propagate_rtx_1,
2079         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
2080         Likewise.
2081         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
2082         gcse_emit_move_after, update_ld_motion_stores): Likewise.
2083         * lcm.c (compute_insert_delete, pre_edge_lcm,
2084         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
2085         * lower-subreg.c (resolve_reg_notes): Likewise.
2086         * mode-switching.c (optimize_mode_switching): Likewise.
2087
2088 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2089
2090         * bt-load.c (add_btr_def, migrate_btr_def,
2091         branch_target_load_optimize): Avoid C++ keywords.
2092         * caller-save.c (insert_restore, insert_save, insert_one_insn):
2093         Likewise.
2094         * combine.c (subst, simplify_set, make_extraction,
2095         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
2096         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
2097         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
2098
2099 2008-07-15  Richard Guenther  <rguenther@suse.de>
2100
2101         PR middle-end/36369
2102         * c-common.c (strict_aliasing_warning): Do not warn for
2103         TYPE_REF_CAN_ALIAS_ALL pointers.
2104         (c_common_get_alias_set): may_alias types are not special.
2105         * tree.c (build_pointer_type_for_mode): Look up the may_alias
2106         attribute and set can_ref_all accordingly.
2107         (build_reference_type_for_mode): Likewise.
2108         * doc/extend.texi (may_alias): Clarify.
2109
2110 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
2111
2112         PR target/36780
2113         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
2114         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
2115
2116 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2117
2118         PR target/31568
2119         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
2120         gcc_assert, instead call output_operand_lossage.
2121
2122 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
2123
2124         * builtins.c (std_canonical_va_list): Treat structure based
2125         va_list types.
2126
2127 2008-07-15  Ben Elliston  <bje@au.ibm.com>
2128
2129         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
2130
2131 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
2132
2133         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
2134         is set.
2135
2136 2008-07-14  Jan Hubicka  <jh@suse.cz>
2137
2138         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
2139         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
2140         fix predicates and constraints.
2141         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
2142         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
2143
2144 2008-07-14  Doug Kwan  <dougkwan@google.com>
2145
2146         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
2147         additional option file arm/eabi.opt.
2148         * config/arm/eabi.h (File): New configuration file for EABI targets.
2149         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
2150         SUBSUBTARGET_EXTRA_SPECS.
2151         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
2152         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
2153         from STARTFILE_SPEC so that it can be referenced in an override.
2154         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
2155         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
2156         can be referenced in an override.
2157         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
2158         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
2159         so that it can be referenced in an override.
2160         (LINK_SPEC): Use BPABI_LINK_SPEC.
2161         * config/arm/eabi.opt (File): New.
2162
2163 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2164
2165         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
2166         (FIXED_VALUE_H): New variable.
2167         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
2168         input.h, fixed-value.h.
2169         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
2170         (BASIC_BLOCK_H): Use $(BITMAP_H).
2171         (FUNCTION_H): Add varray.h.
2172         (IPA_REFERENCE_H): Use $(BITMAP_H).
2173         (CGRAPH_H): Add $(BASIC_BLOCK_H).
2174         (DF_H): Use $(BITMAP_H).
2175         (GGC_H): Add statistics.h.
2176         (INSN_ADDR_H): New.
2177         (INSN_ATTR_H): Use it.
2178         (SYSTEM_H): Add safe-ctype.h, filenames.h.
2179         (INPUT_H): New.
2180         (SYMTAB_H): Add $(OBSTACK_H).
2181         (CPP_INTERNAL_H): New.
2182         (TREE_DUMP_H): Add tree-pass.h.
2183         (TREE_FLOW_H): Use $(BITMAP_H)
2184         (PRETTY_PRINT_H): Use $(INPUT_H).
2185         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
2186         (GSTAB_H): New.
2187         (BITMAP_H): New.
2188         (many object files): Fix lots of header dependencies throughout.
2189
2190 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2191
2192         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
2193         New macros.
2194         (s-gtyp-input): Use them to write tmp-gi.list.
2195         (echo_to_gi.list): Remove.
2196
2197 2008-07-14  Richard Guenther  <rguenther@suse.de>
2198
2199         * tree-ssa-sccvn.c (pre_info): Remove.
2200         (switch_to_PRE_table): Likewise.
2201         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
2202         (set_hashtable_value_ids): Do not create value-ids for the
2203         optimistic tables.
2204         (run_scc_vn): Remove double test.  Remove bogus special-case
2205         in value-number printing.
2206         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
2207         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
2208         SSA_NAME_VALUE.
2209         * tree-flow-inline.h (get_value_handle): Remove.
2210         * tree-flow.h (get_value_handle): Remove.
2211
2212 2008-07-14  Martin Jambor  <mjambor@suse.cz>
2213
2214         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
2215         in which we generate arithmetics is not a subrange.
2216
2217 2008-07-14  Martin Jambor  <mjambor@suse.cz>
2218
2219         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
2220
2221 2008-07-14  Richard Guenther  <rguenther@suse.de>
2222
2223         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
2224
2225 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
2226
2227         PR target/36745
2228         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
2229         reload for symbol refs moved to r0 with -fPIC.
2230         (legitimize_pic_address): Use the target register as temporary
2231         reg if possible.
2232         (emit_symbolic_move): Adjust comment.
2233         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
2234         New expanders.
2235
2236 2008-07-14  Ben Elliston  <bje@au.ibm.com>
2237
2238         * c-common.h (C_CPP_HASHNODE): New macro.
2239         * coretypes.h (struct cpp_token): Forward declare.
2240         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2241         the context-sensitive keyword method.
2242         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
2243         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
2244         expand_bool_pixel): New.
2245         (altivec_categorize_keyword): New function.
2246         (init_vector_keywords): New function.
2247         (rs6000_macro_to_expand): Likewise.
2248         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
2249         compiling an ISO C dialect.
2250
2251 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
2252
2253         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
2254         (create_expression_by_pieces): Fix typo.
2255         (do_regular_insertion): Use debug counter here too.
2256
2257 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
2258
2259         PR target/35492.
2260         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
2261         CONST_OK_FOR_LETTER_P.  All port-local users changed.
2262         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
2263         implement Kp matching power-of-two.
2264         (CONSTRAINT_LEN): Define to match.
2265         * config/cris/cris.md: Replace all use of constraint K with Kc.
2266         ("*btst*): Use Kp for operand 0 of last alternative.
2267
2268 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2269
2270         PR testsuite/36440
2271         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
2272         and quad formats.
2273
2274 2008-07-13  Jan Hubicka  <jh@suse.cz>
2275
2276         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
2277         to be mangled too.
2278
2279 2008-07-13  Richard Guenther  <rguenther@suse.de>
2280
2281         PR middle-end/36811
2282         * langhooks.c (lhd_print_error_function): Deal with recursive
2283         BLOCK trees.
2284
2285 2008-07-12  Jan Hubicka  <jh@suse.cz>
2286
2287         * cgraph.c (assembler_name_hash): New static var.
2288         (hash_node_by_assembler_name, eq_assembler_name): New.
2289         (cgraph_node_for_asm): Use hashtable.
2290         (cgraph_remove_node): Maintain hashtable.
2291         (change_decl_assembler_name): Sanity check that names are not changing
2292         after aliasing was processed.
2293         * cgraph.h (varpoon_node): Add next GGC marker.
2294         * tree.c (decl_assembler_name_equal): Constify.
2295         (decl_assembler_name_hash): New.
2296         * tree.h (decl_assembler_name_equal): Constify.
2297         (decl_assembler_name_hash): Update.
2298
2299 2008-07-12  David Daney  <ddaney@avtrex.com>
2300
2301         * config/mips/driver-native.c (host_detect_local_cpu): Handle
2302         sb1 and r5000 cpus.
2303
2304 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2305
2306         * doc/md.texi: Document the MIPS "v" constraint.
2307         * config/mips/mips.h (reg_class): Revert last change.
2308         (REG_CLASS_NAMES): Likewise.
2309         (REG_CLASS_CONTENTS): Likewise.
2310         * config/mips/mips.c (mips_regno_to_class): Likewise.
2311         * config/mips/constraints.md (v): Likewise, but add documentation.
2312         Add a comment to say that this constraint should not be used in
2313         gcc code.
2314
2315 2008-07-11  DJ Delorie  <dj@redhat.com>
2316
2317         * config/h8300/h8300.md (length): Fix branch offset limit.
2318
2319 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
2320
2321         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
2322         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
2323         (avr_hard_regno_scratch_ok): New function.
2324         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
2325         * config/avr/avr.md (all peepholes that request a scratch register):
2326         Remove avr_peep2_scratch_safe use.
2327
2328 2008-07-11  Tom Tromey  <tromey@redhat.com>
2329             Ian Lance Taylor  <iant@google.com>
2330
2331         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
2332         (struct c_common_resword): Define.
2333         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
2334         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
2335         (c_common_reswords, num_c_common_reswords): Declare.
2336         * c-common.c (c_common_reswords): New global const array.
2337         (num_c_common_reswords): New const int.
2338         * c-parser.c (struct resword, reswords): Don't define.
2339         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
2340         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
2341         than reswords.  If warning about C++ keywords, give them a special
2342         RID code.
2343         (c_lex_one_token): Warn about C++ keywords.  Call
2344         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
2345         (c_parser_external_declaration): Look for RID_xxx rather than
2346         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
2347         (c_parser_statement_after_labels): Likewise.
2348         (c_parser_objc_class_instance_variables): Likewise.
2349         (c_parser_objc_class_declaration): Likewise.
2350         (c_parser_objc_try_catch_statement): Likewise.
2351         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
2352         (declspecs_add_type): Likewise.
2353
2354 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
2355
2356         * ggc-page.c (alloc_page):
2357         Substituting xmalloc, xcalloc with
2358         XNEWVEC and XCNEWVAR macros which add the
2359         needed casts.
2360
2361 2008-07-11  Richard Guenther  <rguenther@suse.de>
2362
2363         PR tree-optimization/36765
2364         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
2365         aliases from HEAP vars to SMTs.
2366
2367 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2368
2369         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
2370         * configure.ac (loose_warn): Move -Wc++-compat from here...
2371         (strict_warn): ...to here.
2372         * configure: Regenerate.
2373
2374 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
2375
2376         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
2377         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
2378         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
2379         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
2380         excluding more specific h8300-*-* and sh-*-* targets.
2381
2382 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
2383
2384         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
2385         (eliminate): Ditto.
2386         (execute_pre): Call loop_optimizer_finalize in early exit.
2387
2388 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
2389
2390         PR middle-end/36790
2391         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
2392         uids in the bitmap, not just VAR_DECL uids.
2393
2394         PR rtl-optimization/36419
2395         * combine-stack-adj.c (adjust_frame_related_expr): New function.
2396         (combine_stack_adjustments_for_block): Call it if needed.  Delete
2397         correct insn.
2398         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
2399         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
2400         prologue sp adjustment.
2401
2402 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
2403
2404         PR other/28322
2405         * opts.c (print_ignored_options): Report postponed diagnostics for
2406         unknown -Wno-* options as warnings, not errors.
2407         (postpone_unknown_option_error): Renamed to...
2408         (postpone_unknown_option_warning): ... this.
2409
2410 2008-07-09  Doug Kwan  <dougkwan@google.com>
2411
2412         Revert:
2413         2008-07-08  Doug Kwan  <dougkwan@google.com>
2414
2415         * config/arm/arm.opt (mandroid): New option.
2416         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2417         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2418         (CC1_SPEC): Same.
2419         (CC1PLUS_SPEC): Same.
2420         (LIB_SPEC): Same.
2421         (STARTFILE_SPEC): Same.
2422         (ENDFILE_SPEC): Same.
2423         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2424         used.
2425
2426 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
2427
2428         PR target/35802
2429         * config/mips/mips.h (reg_class): Remove V1_REG.
2430         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
2431         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
2432         instead of V1_REGS.
2433         (mips_get_tp): New function.
2434         (mips_legitimize_tls_address): Use it.
2435         * config/mips/constraints.md (v): Delete.
2436         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
2437         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
2438         After reload, split into a move and ...
2439         (*tls_get_tp_<mode>_split): ...this new instruction.
2440
2441 2008-07-09  David Daney  <ddaney@avtrex.com>
2442
2443         * config/mips/driver-native.c: Include coretypes.h and tm.h.
2444
2445 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
2446
2447         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
2448         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
2449         Add c argument.
2450         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
2451         htab_delete should be called.  Don't free c.
2452         (lookup_tmp_var): Create temp_htab lazily.
2453         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2454         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
2455         callers.
2456         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2457         lower_omp_ordered, lower_omp_critical, lower_omp_for,
2458         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
2459         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
2460         * tree-sra.c (generate_element_init): Likewise.
2461         * tree-mudflap.c (execute_mudflap_function_ops,
2462         execute_mudflap_function_decls): Likewise.
2463         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
2464         * tree-gimple.h (struct gimplify_ctx): New type.
2465         (push_gimplify_context): Adjust prototype.
2466
2467 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
2468
2469         * tree-ssa-pre.c (phi_translate_1): Update placement of
2470         add_to_value calls.
2471
2472 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
2473
2474         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
2475         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
2476         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
2477         * targhooks.c (default_hard_regno_scratch_ok): New function.
2478         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
2479         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
2480         * recog.c:  Include "target.h".
2481         (peep2_find_free_register): Add check for global regs. Add target
2482         specific check.
2483         * Makefile.in (recog.o): Depend on target.h.
2484
2485 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2486
2487         * config/sh/sh.c (sh_canonical_va_list_type): New.
2488         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
2489
2490 2008-07-09  Raksit Ashok <raksit@google.com>
2491
2492         * doc/invoke.texi (Option Summary): Mention new option
2493         -Wdisallowed-function-list=...
2494         (Warning Options): Document -Wdisallowed-function-list=...
2495         * common.opt (Wdisallowed-function-list=): New flag.
2496         * flags.h (warn_disallowed_functions): External definition of new
2497         boolean warning flag.
2498         (warn_if_disallowed_function_p): Declare new function.
2499         * opts.c (warning_disallowed_functions): New static variable.
2500         (warn_disallowed_functions): New boolean warning flag.
2501         (warn_if_disallowed_function_p): New function.
2502         (add_comma_separated_to_vector): Rename
2503         add_instrument_functions_exclude_list to this.
2504         (common_handle_option): Handle new option. Rename calls to
2505         add_instrument_functions_exclude_list into calls to
2506         add_comma_separated_to_vector.
2507         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
2508         based on flag warn_disallowed_functions.
2509
2510 2008-07-09  Christian Bruel  <christian.bruel@st.com>
2511
2512         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
2513          instead of get_attr_length.
2514
2515 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2516
2517         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
2518         keywords.
2519         * genemit.c (gen_insn): Likewise.
2520         * gengtype.c (note_def_vec): Likewise.
2521         * gengtype.h (note_def_vec): Likewise.
2522         * genoutput.c (struct data, output_insn_data, process_template,
2523         gen_expand, gen_split, note_constraint): Likewise.
2524         * genrecog.c (new_decision, add_to_sequence, factor_tests,
2525         make_insn_sequence): Likewise.
2526         * gensupport.c (record_insn_name): Likewise.
2527
2528 2008-07-08  Doug Kwan  <dougkwan@google.com>
2529
2530         * config/arm/arm.opt (mandroid): New option.
2531         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2532         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2533         (CC1_SPEC): Same.
2534         (CC1PLUS_SPEC): Same.
2535         (LIB_SPEC): Same.
2536         (STARTFILE_SPEC): Same.
2537         (ENDFILE_SPEC): Same.
2538         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2539         used.
2540
2541 2008-07-08  Raksit Ashok  <raksit@google.com>
2542
2543         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
2544         (set_storage_via_setmem): Fix expected_align parameter.
2545         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
2546         missing from the list.
2547         * doc/md.texi (movmem): Explicitly state that expected alignment is
2548         to be expressed in bytes.
2549         (setmem): Explicitly state that expected alignment is to be expressed
2550         in bytes.
2551
2552 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
2553
2554         * reload.c (find_reloads_subreg_address): Do not require validity
2555         of address in original mode before reloading address.
2556
2557 2008-07-07  Tianwei Sheng  <tianweis@google.com>
2558
2559         * df-core.c (df_remove_problem): Adjust the access to avoid out of
2560         bounds array access.
2561
2562 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
2563
2564         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
2565
2566 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
2567
2568         Fix PR tree-optimization/23455
2569         Fix PR tree-optimization/35286
2570         Fix PR tree-optimization/35287
2571         * Makefile.in (OBJS-common): Remove tree-vn.o.
2572         (tree-vn.o): Remove.
2573         * dbgcnt.def: Add treepre_insert debug counter.
2574         * gcc/tree-flow.h (add_to_value): Updated for other changes.
2575         (debug_value_expressions): Ditto.
2576         (print_value_expressions): Ditto.
2577         * tree-pretty-print.c (dump_generic_node): Updated for
2578         VALUE_HANDLE removal.
2579         * tree-ssa-dom.c (record_equality): Ditto.
2580         (cprop_operand): Ditto.
2581         (lookup_avail_expr): Ditto.
2582         * tree-ssa-threadedge.c
2583         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
2584         (simplify_control_stmt_condition): Ditto.
2585         * tree.c (tree_code_size): Ditto.
2586         (tree_node_structure): Ditto.
2587         (iterative_hash_expr): Ditto.
2588         * tree.def: Ditto.
2589         * tree.h (VALUE_HANDLE_ID): Ditto.
2590         (VALUE_HANDLE_EXPR_SET): Ditto.
2591         (struct tree_value_handle): Ditto.
2592         (union tree_node): Ditto.
2593         * treestruct.def: Ditto.
2594         * tree-vn.c: Removed.
2595         * tree-ssa-pre.c: Rewritten entirely.
2596         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
2597         (constant_value_ids): Ditto.
2598         (vn_nary_op_t): Moved to header.
2599         (vn_phi_t): Ditto.
2600         (vn_reference_op_t): Ditto
2601         (vn_reference_t): Ditto.
2602         (next_value_id): New variable.
2603         (VN_INFO): Add an assert.
2604         (vn_constant_eq): New function.
2605         (vn_constant_hash): Ditto.
2606         (get_or_alloc_constant_value_id): Ditto.
2607         (value_id_constant_p): Ditto.
2608         (vn_reference_compute_hash): De-staticify.
2609         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
2610         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
2611         (valueize_refs): Update opcode if it changes from ssa name to constant.
2612         (vn_reference_lookup_1): Add new argument.
2613         (vn_reference_lookup):  Ditto.
2614         (vn_reference_lookup_pieces): New function.
2615         (vn_reference_insert): Add return type. Modify to deal with value ids.
2616         (vn_reference_insert_pieces):  New function.
2617         (vn_nary_op_compute_hash): De-staticify.
2618         (vn_nary_op_eq): Ditto.
2619         (vn_nary_op_lookup_pieces): New function.
2620         (vn_nary_op_lookup): Add new argument.
2621         (vn_nary_op_insert_pieces): New function.
2622         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
2623         (vn_phi_insert): Ditto.
2624         (visit_unary_op): Update for callee changes.
2625         (visit_binary_op): Ditto.
2626         (visit_reference_op_load): Ditto.
2627         (visit_reference_op_store): Ditto.
2628         (init_scc_vn): Init next_value_id, constant_to_value_id and
2629         constant_value_ids.
2630         (free_scc_vn): Free them.
2631         (set_hashtable_value_ids): New function.
2632         (run_scc_vn): Use it.
2633         (get_max_value_id): New function.
2634         (get_next_value_id): Ditto.
2635         (expressions_equal_p): Moved from tree-vn.c
2636         (sort_vuses): Ditto.
2637         (sort_vuses_heap): Ditto.
2638         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
2639         above).
2640         * tree.c (iterative_hash_hashval_t): Made non-static
2641         * tree.h (iterative_hash_hashval_t): Declare it.
2642
2643 2008-07-08  Martin Jambor  <mjambor@suse.cz>
2644
2645         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
2646         instead of ipa_create_node_params.
2647         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
2648         ipa_check_create_edge_args, free them with
2649         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
2650
2651         * ipa-prop.c: Include flags.h and tree-inline.h.
2652         (ipa_node_params_vector): New variable.
2653         (ipa_edge_args_vector): New variable.
2654         (edge_removal_hook_holder): New variable.
2655         (node_removal_hook_holder): New variable.
2656         (edge_duplication_hook_holder): New variable.
2657         (node_duplication_hook_holder): New variable.
2658         (ipa_detect_param_modifications): Check for presence of modified flags.
2659         (ipa_compute_jump_functions): Check for presence of jump functions.
2660         (ipa_free_edge_args_substructures): New function.
2661         (ipa_create_node_params): Removed.
2662         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
2663         (ipa_free_node_params_substructures): New function.
2664         (ipa_free_all_node_params): Changed to deallocate the on-the-side
2665         vector.
2666         (ipa_edge_removal_hook): New function.
2667         (ipa_node_removal_hook): New function.
2668         (duplicate_array): New function.
2669         (ipa_edge_duplication_hook): New function.
2670         (ipa_node_duplication_hook): New function.
2671         (ipa_register_cgraph_hooks): New function.
2672         (ipa_unregister_cgraph_hooks): New function.
2673         (free_all_ipa_structures_after_ipa_cp): New function.
2674
2675         * ipa-prop.h: Include vec.h.
2676         (ipa_node_params_t): New typedef with vector types for it.
2677         (ipa_edge_args_t):  New typedef with vector types for it.
2678         (IPA_NODE_REF): Changed to access an on-the-side vector.
2679         (IPA_EDGE_REF): Changed to access an on-the-side vector.
2680         (ipa_check_create_node_params): New function.
2681         (ipa_check_create_edge_args): New function.
2682
2683         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
2684         all users.
2685
2686 2008-07-07  Tom Tromey  <tromey@redhat.com>
2687
2688         * configure, config.in: Rebuilt.
2689         * configure.ac: Don't check for scandir or alphasort.
2690
2691 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
2692
2693         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
2694         types immediately after creating them.
2695
2696 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
2697
2698         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
2699
2700 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
2701
2702         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
2703         dump_constraint_graph.
2704         (dump_constraint_edge): New function.
2705         (dump_constraint_graph): New function.
2706         (debug_constraint_graph): New function.
2707         (dump_constraint): Removed useless comparison.
2708         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
2709         (dump_constraint_graph): Declare.
2710         (debug_constraint_graph): Declare.
2711         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
2712
2713 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
2714
2715         * config/i386/i386.c (is_va_list_char_pointer): New.
2716         (ix86_va_start): Replace compare with ms_va_list_type_node
2717         by is_va_list_char_pointer.
2718         (ix86_gimplify_va_arg): Likewise.
2719
2720 2008-07-07  Martin Jambor  <mjambor@suse.cz>
2721
2722         * cgraph.c (cgraph_edge_max_uid): New variable.
2723         (struct cgraph_edge_hook_list): New type.
2724         (struct cgraph_node_hook_list): New type.
2725         (struct cgraph_2edge_hook_list): New type.
2726         (struct cgraph_2node_hook_list): New type.
2727         (first_cgraph_edge_removal_hook): New variable.
2728         (first_cgraph_node_removal_hook): New variable.
2729         (first_cgraph_edge_duplicated_hook): New variable.
2730         (first_cgraph_node_duplicated_hook): New variable.
2731         (cgraph_add_edge_removal_hook): New function.
2732         (cgraph_remove_edge_removal_hook): New function.
2733         (cgraph_call_edge_removal_hooks):  New function.
2734         (cgraph_add_node_removal_hook):  New function.
2735         (cgraph_remove_node_removal_hook):  New function.
2736         (cgraph_call_node_removal_hooks):  New function.
2737         (cgraph_add_edge_duplication_hook):  New function.
2738         (cgraph_remove_edge_duplication_hook):  New function.
2739         (cgraph_call_edge_duplication_hooks):  New function.
2740         (cgraph_add_node_duplication_hook):  New function.
2741         (cgraph_remove_node_duplication_hook):  New function.
2742         (cgraph_call_node_duplication_hooks):  New function.
2743         (cgraph_create_edge): Assign to edge uid.
2744         (cgraph_remove_edge): Call edge removal hooks.
2745         (cgraph_node_remove_callees): Call edge removal hooks.
2746         (cgraph_node_remove_callers): Call edge removal hooks.
2747         (cgraph_remove_node): Call node removal hooks.
2748         (cgraph_clone_edge): Call edge duplication hooks.
2749         (cgraph_clone_node): Call node duplication hooks.
2750
2751         * cgraph.h (cgraph_edge): New field uid.
2752         (cgraph_edge_hook): New type.
2753         (cgraph_node_hook): New type.
2754         (cgraph_2edge_hook): New type.
2755         (cgraph_2node_hook): New type.
2756
2757 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
2758
2759         * config.in: Regenerate.
2760
2761 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
2762
2763         * gcc.c (print_sysroot): New.
2764         (option_map, display_help, process_command): Handle the
2765         -print-sysroot option.
2766         (main): Print the sysroot if requested.
2767         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
2768
2769 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2770
2771         PR target/34780
2772         * unwind-pe.h (size_of_encoded_value): add attribute unused.
2773
2774 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
2775
2776         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
2777         (assign_parm_setup_block_p): Also check mode of entry_parm.
2778
2779 2008-07-07  Richard Guenther  <rguenther@suse.de>
2780
2781         * tree-ssa-structalias.h (set_used_smts): Remove.
2782         * tree-ssa-structalias.c (used_smts): Likewise.
2783         (set_used_smts): Likewise.
2784         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
2785         call to set_used_smts.
2786
2787 2008-07-07  Richard Guenther  <rguenther@suse.de>
2788
2789         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
2790         (new_var_info): Set it to false.
2791         (solution_set_add): Correctly handle pointers outside a var and
2792         inside a field.
2793         (type_safe): Treat variables with is_full_var properly.
2794         (do_sd_constraint): Likewise.
2795         (do_ds_constraint): Likewise.
2796         (process_constraint): Remove zeroing offset for !use_field_sensitive.
2797         (get_constraint_for_ptr_offset): New function.
2798         (get_constraint_for_component_ref): For addresses at least include
2799         the last field of the variable.  Handle is_full_vars properly.
2800         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
2801         (handle_ptr_arith): Remove.
2802         (find_func_aliases): Simplify assignment handling.
2803         (create_function_info_for): For parameter and result varinfos set
2804         is_full_var flag.
2805         (create_variable_info_for): Set is_full_var flag whenever we
2806         just created a single varinfo for a decl.
2807         (init_alias_vars): Initialize use_field_sensitive from
2808         max-fields-for-field-sensitive parameter.
2809
2810 2008-07-07  Richard Guenther  <rguenther@suse.de>
2811
2812         PR tree-optimization/36713
2813         * tree-flow-inline.h (is_call_used): New function.
2814         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
2815         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2816         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
2817
2818 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2819
2820         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
2821
2822 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
2823
2824         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
2825
2826 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2827             Nathan Sidwell  <nathan@codesourcery.com>
2828
2829         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
2830         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
2831         tmake_file.
2832         * config/m68k/t-linux: New.
2833         * doc/install.texi: Document m68k-*-linux is now multilibbed by
2834         default.
2835
2836 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
2837
2838         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
2839         * config/m68k/m68k-devices.def: Remove multilibs that only differ
2840         by MAC/EMAC.
2841
2842 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2843
2844         * gcc.c (execute): Fix -Wc++-compat warning.
2845
2846 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2847
2848         PR target/36720
2849         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
2850         constant for little endian.
2851
2852 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
2853
2854         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
2855         mips_base_mips16 instead of TARGET_MIPS16.
2856         (mips_base_mips16): Declare.
2857         * config/mips/mips.c (mips_base_mips16): Make global.
2858         (was_mips16_p): Remove GTY marker.
2859         (was_mips16_pch_p): New variable.
2860         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
2861         (mips_override_options): Force to non-MIPS16 mode initially.
2862         Do not complain about MIPS16 PIC incompatibilities here.
2863         Only allow -mgpopt if -mexplicit-relocs is in force for
2864         non-MIPS16 code.
2865
2866 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
2867
2868         * configure.ac: Check for caddr_t, define to char * if not defined.
2869         * configure: Regenerate.
2870         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
2871         (mmap_gt_pch_use_address): Likewise.
2872         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
2873
2874 2008-07-06  Richard Guenther  <rguenther@suse.de>
2875
2876         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
2877         (new_var_info): Deal with it.
2878         (solution_set_add): Likewise.
2879         (bitpos_of_field): Make signed, fix.
2880         (struct fieldoff): Remove type and decl fields.  Make size field
2881         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
2882         flags.
2883         (fieldoff_compare): Deal with it.
2884         (push_fields_onto_fieldstack): Remove has_union argument, glob
2885         adjacent non-pointer fields together.
2886         (create_function_info_for): Do not set has_union.
2887         (create_variable_info_for): Simplify.
2888
2889 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
2890
2891         * config.gcc (extra_headers): Add cross-stdarg.h for target
2892         x86_64-*-* and i?86-*-*.
2893         * config/i386/cross-stdarg.h: New.
2894         * builtins.c (std_fn_abi_va_list): New.
2895         (std_canonical_va_list_type): New.
2896         (stabilize_va_list): Replace va_list_type_node use by
2897         mtarget.canonical_va_list_type.
2898         (gimplify_va_arg_expr): Likewise.
2899         (expand_builtin_va_copy): Replace va_list_type_node use by
2900         mtarget.fn_abi_va_list.
2901         * tree-sra.c (is_va_list_type): New helper.
2902         (decl_can_be_decomposed_p): Replace
2903         va_list_type_node use by is_va_list_type.
2904         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
2905         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2906         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
2907         * config/i386/i386-protos.h (ix86_get_valist_type): New.
2908         (ix86_enum_va_list): New.
2909         * config/i386/i386.c (sysv_va_list_type_node): New.
2910         (ms_va_list_type_node): New.
2911         (ix86_function_type_abi): Remove sorry.
2912         (ix86_build_builtin_va_list_abi): New.
2913         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
2914         for 64-bit targets.
2915         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
2916         (ix86_init_builtins_va_builtins_abi): New.
2917         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
2918         for 64-bit targets.
2919         (ix86_handle_abi_attribute): New.
2920         (attribute_spec): Add sysv_abi and ms_abi.
2921         (ix86_fn_abi_va_list): New.
2922         (ix86_canonical_va_list_type): New.
2923         (ix86_enum_va_list): New.
2924         (TARGET_FN_ABI_VA_LIST): New.
2925         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2926         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
2927         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
2928         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2929         (TARGET_ENUM_VA_LIST): New.
2930         * expr.h (std_fn_abi_va_list): New.
2931         (std_canonical_va_list_type): New.
2932         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
2933         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2934         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
2935         TARGET_CANONICAL_VA_LIST_TYPE.
2936         * target.h (struct gcc_target): Add fn_abi_va_list hook
2937         and canonical_va_list_type hook.
2938
2939 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2940
2941         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
2942         integral and pointer types.
2943
2944 2008-07-04  Roger Sayle  <roger@eyesopen.com>
2945
2946         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
2947         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
2948
2949 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
2950
2951         PR target/36684
2952         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
2953
2954 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
2955
2956         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
2957         build_gimple_modify_stmt.
2958         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
2959         gimple operand.  Use fold_build* instead of build*.
2960
2961 2008-07-04  Richard Guenther  <rguenther@suse.de>
2962
2963         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
2964         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
2965         properly to compute the reachability set if we do field-sensitive PTA.
2966         * invoke.texi (max-fields-for-field-sensitive): Document default.
2967         * opts.c (decode_options): Set max-fields-for-field-sensitive to
2968         100 for optimize >= 2.
2969
2970 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2971
2972         * ggc-zone.c (lookup_page_table_if_allocated,
2973         set_page_table_entry, zone_find_object_size, alloc_small_page,
2974         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2975         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2976         -Wc++-compat and/or -Wcast-qual warnings.
2977
2978 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
2979
2980         PR target/36634
2981         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2982         pic_offset_table_rtx to be marked as used here.
2983         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2984         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2985         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2986         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2987         !TARGET_SECURE_PLT.
2988
2989 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2990
2991         * alloc-pool.c (hash_descriptor, eq_descriptor,
2992         alloc_pool_descriptor): Fix -Wc++-compat warnings.
2993         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
2994         Likewise.
2995         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
2996         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
2997         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
2998         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
2999         Likewise.
3000
3001 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
3002
3003         * tree-flow.h (loop_only_exit_p): Declare.
3004         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
3005         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
3006         the number of iterations if it is constant.  Otherwise, if this is the
3007         only possible exit of the loop, use the conservative estimate on the
3008         number of iterations of the entire loop if available.
3009
3010 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
3011
3012         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
3013         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
3014         Add synchronization functions.
3015         * config/sync.c: New file.
3016         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
3017         (LIBGCC_SYNC_CFLAGS): Likewise.
3018
3019 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
3020
3021         PR target/36710
3022         * config/i386/i386.md (mode): Add TF to "mode" attribute.
3023         (*pushtf_sse): New insn pattern.
3024         (pushtf splitters): New splitters.
3025
3026 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
3027
3028         PR middle-end/35736
3029         * predict.c (build_predict_expr): Use void_type_node for the tree
3030         type, instead of NULL_TREE.
3031
3032 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3033
3034         * config/i386/i386.c (contains_aligned_value_p): Return true
3035         for TCmode.
3036         (ix86_data_alignment): Align TCmode to 128bits.
3037         (ix86_local_alignment): Likewise.
3038
3039 2008-07-03  Andrew Haley  <aph@redhat.com>
3040
3041         PR bootstrap/33304
3042         * vec.h (VEC_TA): New.
3043         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
3044         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
3045         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
3046         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
3047         (C_COMMON_FIXED_TYPES): Remove first arg.
3048         (C_COMMON_FIXED_MODE_TYPES): Likewise.
3049         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
3050         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
3051         not to use empty macro arguments.
3052
3053 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
3054
3055         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
3056         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
3057         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
3058         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
3059         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
3060         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
3061         config/ia64/crtn.asm, config/m68hc11/larith.asm,
3062         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
3063         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
3064         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
3065         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
3066         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
3067         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
3068         config/rs6000/e500crtres64gpr.asm,
3069         config/rs6000/e500crtres64gprctr.asm,
3070         config/rs6000/e500crtrest32gpr.asm,
3071         config/rs6000/e500crtrest64gpr.asm,
3072         config/rs6000/e500crtresx32gpr.asm,
3073         config/rs6000/e500crtresx64gpr.asm,
3074         config/rs6000/e500crtsav32gpr.asm,
3075         config/rs6000/e500crtsav64gpr.asm,
3076         config/rs6000/e500crtsav64gprctr.asm,
3077         config/rs6000/e500crtsavg32gpr.asm,
3078         config/rs6000/e500crtsavg64gpr.asm,
3079         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
3080         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
3081         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
3082         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
3083         config/sparc/sol2-cn.asm: Remove .file directives.
3084
3085 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
3086
3087         * resource.c (mark_referenced_resources): Look inside
3088         UNSPEC_VOLATILEs and ASM_INPUTs.
3089
3090 2008-07-02  Ian Lance Taylor  <iant@google.com>
3091
3092         * rtlanal.c (add_reg_note): New function.
3093         * rtl.h (add_reg_note): Declare.
3094         * auto-inc-dec.c (attempt_change): Use add_reg_note.
3095         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
3096         * builtins.c (expand_builtin_longjmp): Likewise.
3097         (expand_builtin_nonlocal_goto): Likewise.
3098         * calls.c (emit_call_1, expand_call): Likewise.
3099         * cfgexpand.c (add_reg_br_prob_note): Likewise.
3100         * cfglayout.c (fixup_reorder_chain): Likewise.
3101         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3102         (commit_one_edge_insertion): Likewise.
3103         * combine.c (move_deaths, distribute_notes): Likewise.
3104         * df-problems.c (df_set_note): Likewise.
3105         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
3106         (set_unique_reg_note): Likewise.
3107         (emit_copy_of_insn_after): Likewise.
3108         * expr.c (expand_expr_real): Likewise.
3109         * gcse.c (add_label_notes): Likewise.
3110         * haifa-sched.c (create_check_block_twin): Likewise.
3111         * jump.c (mark_jump_label_1): Likewise.
3112         * loop-doloop.c (add_test, doloop_modify): Likewise.
3113         * loop-unswitch.c (compare_and_jump_seq): Likewise.
3114         * lower-subreg.c (move_eh_region_note): Likewise.
3115         * optabs.c (emit_libcall_block): Likewise.
3116         * predict.c (predict_insn): Likewise.
3117         (combine_predictions_for_insn): Likewise.
3118         * recog.c (peephole2_optimize): Likewise.
3119         * regmove.c (try_auto_increment): Likewise.
3120         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
3121         * reload.c (find_reloads): Likewise.
3122         * reload1.c (fixup_eh_region_note): Likewise.
3123         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
3124         * reorg.c (delete_prior_computation): Likewise.
3125         (delete_computation, dbr_schedule): Likewise.
3126         * config/pa/pa.c (legitimize_pic_address): Likewise.
3127         * config/sh/sh.c (sh_reorg): Likewise.
3128
3129 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
3130
3131         PR target/36669
3132         * config/libgcc-glibc.ver: Add %exclude.
3133         * config/m32r/libgcc-glibc.ver: Likwise.
3134         * config/s390/libgcc-glibc.ver: Likwise.
3135         * config/sh/libgcc-glibc.ver: Likwise.
3136         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
3137
3138         * config/i386/libgcc-glibc.ver: New.
3139
3140         * config/i386/libgcc-x86_64-glibc.ver: Removed.
3141
3142 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
3143
3144         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
3145         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
3146         i[34567]86-*-linux*, x86_64-*-linux*.  Add
3147         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
3148         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
3149         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
3150         i[34567]86-*-linux*, x86_64-*-linux*.
3151
3152         * libgcc-std.ver: Add empty GCC_4.4.0.
3153
3154         * mkmap-symver.awk: Support multiple versions per symbol.
3155
3156         * config/i386/i386.c (ix86_init_builtins): Always define
3157         __builtin_fabsq and __builtin_copysignq with fallbacks.
3158         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
3159         and __builtin_copysignq if SSE2 isn't available.
3160
3161         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
3162         (LIBGCC2_TF_CEXT): Likwise.
3163         (TF_SIZE): Likwise.
3164
3165         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
3166
3167         * config/i386/sfp-machine.h: Moved to libgcc.
3168
3169         * config/i386/sfp-machine.h: New.
3170         * config/i386/t-linux: Likwise.
3171
3172         * config/i386/t-darwin: Remove softfp_wrap_start and
3173         softfp_wrap_end.
3174         * config/i386/t-darwin64: Likewise.
3175
3176         * config/i386/t-fprules-softfp64: Renamed to ...
3177         * config/i386/t-fprules-softfp: This.
3178
3179         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
3180         and softfp_wrap_end.
3181
3182 2008-07-02  Jason Merrill  <jason@redhat.com>
3183
3184         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
3185
3186         * tree.c (ctor_to_list): New fn.
3187         * tree.h: Declare it.
3188         (CONSTRUCTOR_ELT): New macro.
3189         (CONSTRUCTOR_NELTS): New macro.
3190
3191 2008-07-02  Richard Guenther  <rguenther@suse.de>
3192
3193         * tree-ssa-structalias.c (struct variable_info): Reorder
3194         to fill padding on 64bit hosts.  Make collapsed_to an int.
3195         (get_varinfo_fc): Deal with that.
3196         (new_var_info): Likewise.
3197         (collapse_rest_of_var): Likewise.
3198
3199 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
3200
3201         * doc/install.texi (--enable-java-home): Document.
3202         (--enable-aot-compile-rpm): Likewise.
3203         (--with-arch-directory): Likewise.
3204         (--with-os-directory): Likewise.
3205         (--with-origin-name): Likewise.
3206         (--with-arch-suffix): Likewise.
3207         (--with-jvm-root-dir): Likewise.
3208         (--with-jvm-jar-dir): Likewise.
3209         (--with-python-dir): Likewise.
3210
3211 2008-07-02  Richard Guenther  <rguenther@suse.de>
3212
3213         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
3214         from decls explicitly.  Merge operand checking from tuples.
3215
3216 2008-07-02  Martin Jambor  <mjambor@suse.cz>
3217
3218         * tree-switch-conversion.c: Included timevar.h which I forgot before.
3219
3220 2008-07-02  Martin Jambor  <mjambor@suse.cz>
3221
3222         * tree-switch-conversion.c: Included timevar.h
3223         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
3224
3225         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
3226
3227 2008-07-02  Martin Jambor  <mjambor@suse.cz>
3228
3229         * tree-switch-conversion.c: Corrected various comments and
3230         whitespace issues
3231         (build_constructors): Fixed minor formatting mistakes.
3232
3233         * invoke.texi (Optimize Options): Corrected the
3234         switch-conversion-max-branch-ratio parameter.
3235
3236 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
3237
3238         * final.c (asm_insn_count): Return zero for an empty asm body.
3239
3240 2008-07-02  Richard Guenther  <rguenther@suse.de>
3241
3242         * bitmap.h (bitmap_set_bit): Return bool.
3243         (bitmap_clear_bit): Likewise.
3244         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
3245         write to the bitmap if it would.
3246         (bitmap_clear_bit): Likewise.
3247         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
3248         bitmap_set_bit return value.
3249         (add_pred_graph_edge): Likewise.
3250         (add_graph_edge): Likewise.
3251         (do_sd_constraint): Likewise.
3252         (do_ds_constraint): Likewise.
3253
3254 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3255
3256         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
3257         Fix -Wc++-compat and/or -Wcast-qual warnings.
3258         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
3259         gen_regparm_prefix): Likewise.
3260         * vmsdbgout.c (write_modbeg, lookup_filename,
3261         vmsdbgout_source_line, vmsdbgout_init): Likewise.
3262
3263 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
3264
3265         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
3266         defaults.h definition apply.
3267
3268 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
3269
3270         * function.c (assign_parm_remove_parallels): New.
3271         (assign_parm_setup_block_p): Do not return true for non-BLKmode
3272         PARALLELs.
3273         (assign_parm_setup_block): Do not handle them.
3274         (assign_parm_setup_reg, assign_parm_setup_stack): Call
3275         assign_parm_remove_parallels.
3276
3277 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
3278
3279         * c-typeck.c (convert_for_assignment): Use
3280         vector_targets_convertible_p.
3281         * c-common.c (vector_targets_convertible_p): New.
3282         * c-common.h (vector_targets_convertible_p): New prototype.
3283         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
3284         opaque_p_V2SI_type_node.
3285
3286 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
3287
3288         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
3289         RFmode constants.
3290
3291 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
3292
3293         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
3294         TFmode constants via two element DImode vector for hosts with
3295         HOST_BITS_PER_WIDE_INT < 64.
3296         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
3297         also for HOST_BITS_PER_WIDE_INT < 64.
3298
3299 2008-07-01  Richard Guenther  <rguenther@suse.de>
3300
3301         PR tree-optimization/36666
3302         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
3303         (get_constraint_exp_from_ssa_var): Split into ...
3304         (get_constraint_exp_for_temp): ... this ...
3305         (get_constraint_for_ssa_var): ... and that.
3306         Return constraint expressions for all touched sub-fields
3307         if the results address is not taken.
3308         (process_constraint): Remove assertion that aggregate
3309         assignments do not happen at this place.
3310         (get_constraint_for_component_ref): Add address_p argument.
3311         Return constraint expressions for all touched sub-fields
3312         if the results address is not taken.
3313         (do_deref): Use get_constraint_exp_for_temp.
3314         (get_constraint_for_1): Rename from ...
3315         (get_constraint_for): ... this.  Add the old function as wrapper.
3316         (do_structure_copy): Use get_constraint_for_1.
3317
3318 2008-07-01  Martin Jambor  <mjambor@suse.cz>
3319
3320         * Makefile.in (tree-switch-conversion.o): Add.
3321         (OBJS-common): Add tree-swtch-conversion.o.
3322         * passes.c (init_optimization_passes): Add pass_convert_switch.
3323         * tree-pass.h: (pass_convert_switch): Add.
3324         * tree-switch-conversion.c: New file.
3325         * gcc.dg/tree-ssa/cswtch.c: New testcase.
3326         * common.opt (ftree-cswtch): New option.
3327         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3328         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3329         * opts.c (decode_options): Set flag_tree_switch_conversion when
3330         optimization level is >= 2.
3331         * doc/invoke.texi (Optimize Options): Added description of
3332         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
3333
3334 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3335
3336         * config/darwin-driver.c (darwin_default_min_version): Fix
3337         -Wc++-compat warnings.
3338
3339 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
3340
3341         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
3342         of operand 0.
3343
3344 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
3345
3346         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
3347
3348 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
3349
3350         PR rtl-optimization/34744
3351         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
3352         (df_scan_free_internal): Free data structures not
3353         allocated in storage pools.
3354         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
3355         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
3356         df_scan_free_mws_vec.
3357         * dse.c (dse_step6): Free offset_map_p and offset_map_n
3358         unconditionally.
3359
3360 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
3361
3362         * config/i386/i386.c (contains_aligned_value_p): Return true
3363         for __float128.
3364         (ix86_function_arg_boundary): Return its natural boundary
3365         for __float128.
3366         (return_in_memory_32): Don't check TDmode.
3367         (ix86_split_to_parts): Support splitting into 4 parts and
3368         support TFmode for 32bit target.
3369         (ix86_split_long_move): Support splitting into 4 parts.
3370         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
3371         for SSE2.
3372         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
3373         (ix86_init_builtins): Here.
3374         (ix86_scalar_mode_supported_p): Always return true for TFmode.
3375         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
3376         'q' and 'w', respectively.
3377
3378         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
3379         TARGET_64BIT.
3380         (movtf_internal): Likewise.
3381         (<code>tf2): Likewise.
3382         (*absnegtf2_sse): Likewise.
3383         (copysign<mode>3): Likewise.
3384         (copysign<mode>3_const): Likewise.
3385         (copysign<mode>3_var): Likewise.
3386         (define_split UNSPEC_COPYSIGN): Likewise.
3387         * config/i386/sse.md (*nandtf3): Likewise.
3388         (<code>tf3): Likewise.
3389         (*<code>tf3): Likewise.
3390
3391 2008-06-30  Joey Ye  <joey.ye@intel.com>
3392             H.J. Lu  <hongjiu.lu@intel.com>
3393
3394         * global.c (compute_regsets): Set frame_pointer_needed here.
3395         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
3396
3397 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3398
3399         * doc/install.texi (specific): Expand Windows build notes.
3400
3401 2008-06-30  Ira Rosen  <irar@il.ibm.com>
3402
3403         PR tree-optimization/36648
3404         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
3405         number of prolog iterations by step. Fix the comment.
3406
3407 2008-06-30  Richard Guenther  <rguenther@suse.de>
3408
3409         PR middle-end/36671
3410         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
3411         handle calls from ECF_MALLOC functions.
3412         (handle_pure_call): ECF_MALLOC functions do not return
3413         call-used memory.
3414         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
3415
3416 2008-06-29  Andreas Schwab  <schwab@suse.de>
3417
3418         * config/m68k/m68k.c (print_operand): Always print a float
3419         constant in hex.
3420         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
3421         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
3422         Remove macros.
3423
3424         * config/rs6000/x-linux64: Remove never used file.
3425
3426 2008-06-29  Richard Guenther  <rguenther@suse.de>
3427
3428         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
3429         prototype.
3430         (struct alias_info): Move ...
3431         * tree-ssa-alias.c: ... here.
3432         (update_alias_info): Declare.
3433         (compute_may_aliases): Call it.
3434         (update_alias_info): New function.
3435         * tree-ssa-structalias.c (update_alias_info): Move ...
3436         * tree-ssa-alias.c (update_alias_info_1): ... here.
3437         * tree-ssa-structalias.c (process_constraint_1): Remove
3438         unused from_call argument.  Rename to ...
3439         (process_constraint): ... this.  Delete old wrapper.
3440         (make_constraint_to): Adjust callers.
3441         (handle_const_call): Likewise.
3442         (handle_pure_call): Likewise.
3443         (init_base_vars): Likewise.
3444         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
3445         (find_func_aliases): We don't need structure copies for
3446         complex types.
3447         (make_constraint_from_anything): Remove.
3448         (create_variable_info_for): For globals make constraints
3449         from escaped, not from anything.
3450         (compute_points_to_sets): Do not call update_alias_info.
3451         (ipa_pta_execute): Use make_constraint_from.
3452
3453 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3454
3455         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
3456         (bitmap.o-warn, dominance.o-warn): New.
3457         * configure.ac (cxx_compat_warn): Delete.
3458         (loose_warn): Add -Wcast-qual and -Wc++-compat.
3459         * system.h: Remove #pragma diagnostic for -Wcast-qual and
3460         -Wc++-compat.
3461         * configure: Regenerate.
3462
3463         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
3464         warnings.
3465
3466 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3467
3468         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
3469         * df-scan.c (df_notes_rescan): Likewise.
3470         * ggc-page.c (set_page_table_entry): Likewise.
3471         * intl.c (gcc_gettext_width): Likewise.
3472         * varasm.c (get_unnamed_section, get_noswitch_section,
3473         get_section): Likewise.
3474
3475 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
3476
3477         * regrename.c (build_def_use): Don't copy RTX.
3478
3479 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
3480
3481         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
3482         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
3483         punctuation.  Use @ref instead of @xref.
3484         (Function Names): Remove stray @display/@end display.
3485         (C++ Attributes): Use @ref instead of @xref.
3486         (Deprecated Features): Fix punctuation around @xref.
3487         (Backwards Compatibility): Likewise.
3488         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
3489
3490 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
3491
3492         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
3493         constants for E500 double.
3494
3495 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3496
3497         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
3498         element type of const_vector.
3499
3500 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
3501
3502         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
3503         Remove FLAGS_REG clobber from expander pattern.
3504         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
3505         (anddi3, andsi3, andhi3, andqi3): Ditto.
3506         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
3507         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
3508         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
3509         (ashlsi3, ashlhi3, ashlqi3): Ditto.
3510         (ashrsi3, ashrhi3, ashrqi3): Ditto.
3511         (lshrsi3, lshrhi3, lshrqi3): Ditto.
3512         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
3513         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
3514
3515 2008-06-28  Richard Guenther  <rguenther@suse.de>
3516
3517         * tree-ssa-structalias.c (callused_id, var_callused,
3518         callused_tree): Add.
3519         (handle_pure_call): New function.
3520         (find_func_aliases): Call it.
3521         (find_what_p_points_to): Handle the call-used set.
3522         (clobber_what_escaped): Likewise.
3523         (compute_call_used_vars): New function.
3524         (init_base_vars): Init the call-used variable.
3525         (do_sd_constraint): Do not propagate the solution from CALLUSED
3526         but use CALLUSED as a placeholder.
3527         (solve_graph): Likewise.
3528         * tree-flow-inline.h (gimple_call_used_vars): New function.
3529         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
3530         (compute_call_used_vars): Declare.
3531         * tree-ssa-alias.c (set_initial_properties): Call
3532         compute_call_used_vars.
3533         (reset_alias_info): Clear call-used variables.
3534         (add_call_clobber_ops): Assert we are not called for const/pure
3535         functions.  Remove handling of them.
3536         (add_call_read_ops): Handle pure functions by adding the
3537         call-used set of variables as VUSEs.
3538         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
3539         (delete_tree_ssa): Free it.
3540         * tree-dfa.c (remove_referenced_var): Clear the var from the
3541         call-used bitmap.
3542
3543 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
3544
3545         * tree.c (build_varargs_function_type_list): New.
3546         (build_function_type_list_1): New.
3547         (build_function_type_list): Use build_function_type_list_1.
3548         * tree.h (build_varargs_function_type_list): New.
3549
3550 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3551
3552         PR target/34856
3553         * config/spu/spu.c (spu_builtin_splats): Do not generate
3554         invalid CONST_VECTOR expressions.
3555         (spu_expand_vector_init): Likewise.
3556
3557 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
3558
3559         * optabs.c (libfunc_decls): New variable.
3560         (libfunc_decl_hash, libfunc_decl_eq): New functions.
3561         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
3562         for the same function twice.
3563
3564 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
3565
3566         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
3567         ix86_expand_binary_operator directly.
3568         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
3569         for operand 2.
3570         (*ashrti3_1): Ditto.
3571         (*lshrti3_1): Ditto.
3572         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
3573         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
3574         using only one splitter.  Conditionaly execute splitter before or
3575         after peephole2 pass.
3576         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
3577         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
3578         Use only one alternative in asm template.
3579         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
3580         in asm template.
3581         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
3582         "J" operand constraint for operand 2.
3583         (*ashldi3_cconly_rex64): Ditto.
3584         (*ashrdi3_cmp_rex64): Ditto.
3585         (*ashrdi3_cconly_rex64): Ditto.
3586         (*lshrdi3_cmp_rex64): Ditto.
3587         (*lshrdi3_cconly_rex64): Ditto.
3588         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
3589         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
3590         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
3591         gen_x86_shrd_1.
3592
3593 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
3594
3595         * gimplify.c (omp_is_private): Don't return true if decl is not
3596         already private on #pragma omp for or #pragma omp parallel for.
3597
3598         PR debug/36617
3599         * tree-cfg.c (struct move_stmt_d): Replace block field with
3600         orig_block and new_block fields.
3601         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
3602         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
3603         (move_block_to_fn): Replace vars_map and new_label_map arguments
3604         with struct move_stmt_d pointer.
3605         (replace_block_vars_by_duplicates): New function.
3606         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
3607         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
3608         all subblocks of ORIG_BLOCK to the new function.  Call
3609         replace_block_vars_by_duplicates.
3610         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
3611         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
3612         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
3613         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
3614         (expand_omp): Temporarily set input_location to the location of
3615         region's controlling stmt.
3616         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
3617         BIND_EXPR, push ctx->block_vars and gimplification vars into
3618         the BIND_EXPR and its block's BLOCK_VARS instead of directly
3619         into dest function.
3620         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
3621         there are any BLOCK_VARS.
3622         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
3623         OMP_PARALLEL or OMP_TASK stmt.
3624         (lower_omp): Save and restore input_location around the lower_omp_1
3625         call.
3626
3627 2008-06-27  Richard Guenther  <rguenther@suse.de>
3628
3629         PR tree-optimization/36400
3630         PR tree-optimization/36373
3631         PR tree-optimization/36344
3632         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
3633         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
3634         (update_alias_info): Remove call clobbering code.
3635         (make_constraint_to): New helper function.
3636         (make_escape_constraint): Likewise.
3637         (handle_rhs_call): Use it on all pointer containing arguments.
3638         Also mark the static chain escaped.
3639         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
3640         instead of ANYTHING.
3641         (make_constraint_from): New helper split out from ...
3642         (make_constraint_from_anything): ... here.
3643         (find_func_aliases): Add constraints for escape sites.
3644         (intra_create_variable_infos): Make constraints from NONLOCAL
3645         for parameters.
3646         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
3647         as ANYTHING.
3648         (clobber_what_p_points_to): Remove.
3649         (clobber_what_escaped): New function.
3650         (init_base_vars): Init NONLOCAL and ESCAPED.
3651         (do_sd_constraint): Do not propagate the solution from ESCAPED
3652         but use ESCAPED as a placeholder.
3653         (solve_graph): Likewise.
3654         * tree-flow.h (clobber_what_p_points_to): Remove.
3655         (clobber_what_escaped): Declare.
3656         * tree-ssa-alias.c (set_initial_properties): Call it.
3657         Remove code clobbering escaped pointers.
3658
3659 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
3660
3661         * function.c (allocate_struct_function): Only allocate a unique
3662         funcdef_no if the decl is nonzero.
3663
3664 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
3665
3666         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
3667         * config/mips/mips.c (mips_split_const_insns): New function.
3668         * config/mips/mips.md (move_type): New attribute.
3669         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
3670         (dword_mode): New attribute.
3671         (type): Avoid long line.  Map "move_type"s to "type"s,
3672         choosing "multi" for doubleword moves if appropriate.
3673         Swap MTC/MFC comments to match their declaration order.
3674         (extended_mips16): Default to "yes" if "move_type" is "sll0",
3675         "type" is "branch" or "jal" is "direct".
3676         (length): Handle "extended_mips16" first.  Make the default
3677         "0" for "ghost" instructions.  Set the length from "move_type".
3678         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
3679         of "type", with "sll0" for the register alternative.  Remove the
3680         "extended_mips16" attribute.
3681         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
3682         of "type", with "shift_shift" for the register alternative.
3683         Remove the "length" attribute.
3684         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
3685         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
3686         of "type", with "andi" for the register alternative.
3687         (*zero_extendqihi2): Likewise.
3688         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
3689         of "andi" instead of a "type" of "arith".
3690         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
3691         instead of "type".
3692         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
3693         (mov_<store>r, *mov<mode>_ra): Likewise.
3694         (extendsidi2): Use "move_type" instead of "type", with "move"
3695         for the register alternative.
3696         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
3697         of "type", with "signext" for the register alternative.
3698         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
3699         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
3700         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
3701         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
3702         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
3703         (unnamed branch insn): Likewise.
3704         (*movdi_gp32_fp64): Fold into...
3705         (*movdi_32bit): ...here.
3706         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
3707         (*movdf_hardfloat): ...this new pattern.
3708         (*movdf_softfloat): Remove redundant FPR alternatives.
3709         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
3710         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
3711         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
3712         the "move" attribute.
3713         (*movdi_32bit): Use "move_type" instead of "type" and remove the
3714         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
3715         and "store" for COP loads and stores.
3716         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
3717         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
3718         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
3719         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
3720         (*movtf_mips16, *movv2sf): Likewise.
3721         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
3722         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
3723         (mfhc1<mode>): Use "move_type" instead of "move".
3724         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
3725         (loadgp_blockage): Remove the "length" attribute.
3726         (blockage, set_got_version, update_got_version): Likewise.
3727         (call_internal): Remove the "extended_mips16" attribute.
3728         (call_value_internal, call_value_multiple_internal): Likewise.
3729         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
3730         instead of "move".
3731         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
3732         the "length" attribute.
3733
3734 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3735
3736         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
3737         -Wcast-qual warnings.
3738         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
3739         handle_pragma_pop_macro): Likewise.
3740         * collect2.c (resolve_lib_name): Likewise.
3741         * config/arc/arc.c (arc_init): Likewise.
3742         * config/arm/arm.c (neon_builtin_compare,
3743         locate_neon_builtin_icode): Likewise.
3744         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
3745         * config/bfin/bfin.c (bfin_init_machine_status,
3746         bfin_optimize_loop): Likewise.
3747         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3748         * config/cris/cris.c (cris_init_expanders): Likewise.
3749         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
3750         * config/darwin.c (machopic_indirection_eq,
3751         machopic_indirection_name, machopic_output_indirection): Likewise.
3752         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
3753         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
3754         frv_optimize_membar): Likewise.
3755         * config/i386/cygwin.h (mingw_scan,
3756         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
3757         * config/i386/cygwin1.c (mingw_scan): Likewise.
3758         * config/i386/i386.c (machopic_output_stub): Likewise.
3759         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
3760         i386_pe_unique_section): Likewise.
3761         * config/ia64/ia64.c (ia64_init_machine_status,
3762         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
3763         Likewise.
3764         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
3765         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
3766         * config/m68k/m68k.c (m68k_handle_option,
3767         m68k_sched_md_init_global): Likewise.
3768         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
3769         mcore_unique_section): Likewise.
3770         * config/mips/mips.c (mips_block_move_straight,
3771         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
3772         Likewise.
3773         * config/mmix/mmix.c (mmix_init_machine_status,
3774         mmix_encode_section_info): Likewise.
3775         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
3776         * config/rs6000/rs6000.c (rs6000_init_machine_status,
3777         print_operand_address, output_toc, redefine_groups,
3778         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
3779         * config/s390/s390.c (s390_init_machine_status): Likewise.
3780         * config/score/score.c (score_block_move_straight,
3781         score_block_move_loop_body): Likewise.
3782         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3783         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3784         * emit-rtl.c (find_auto_inc): Likewise.
3785         * gcc.c (translate_options, process_command): Likewise.
3786         * reorg.c (dbr_schedule): Likewise.
3787         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
3788         * xcoffout.c (xcoffout_declare_function): Likewise.
3789
3790 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
3791
3792         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
3793         ipa-pta working again.
3794
3795 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
3796
3797         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
3798         genautomata.
3799
3800 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
3801
3802         * config.gcc (powerpc*-*-*): Add new core e500mc.
3803         * config/rs6000/e500mc.md: New file.
3804         * config/rs6000/rs6000.c (processor_costs): Add new costs for
3805         e500mc.
3806         (rs6000_override_options): Add e500mc case to
3807         processor_target_table. Altivec and Spe options not allowed
3808         with e500mc. Add isel instruction to e500mc by
3809         default. Initialize rs6000_cost for e500mc.
3810         (rs6000_issue_rate): Set issue rate for e500mc.
3811         * config/rs6000/rs6000.h (processor_type): Add
3812         PROCESSOR_PPCE500MC.
3813         (ASM_CPU_SPEC): Add e500mc.
3814         Set TARGET_ISEL to rs6000_isel.
3815         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
3816         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
3817         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
3818         Include e500mc.md.
3819         * doc/invoke.texi: Add e500mc to list of cpus.
3820
3821 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3822
3823         PR c/34867
3824         * c-lex.c (lex_charconst): Initialize unsignedp.
3825
3826 2008-06-27  Olivier Hainque  <hainque@adacore.com>
3827
3828         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
3829         documented assumptions.
3830
3831 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
3832
3833         * dwarf2out.c: Remove trailing white spaces.  Break long line
3834         in comments.
3835
3836 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
3837
3838         * libfuncs.h (LTI_synchronize): New libfunc_index.
3839         (synchronize_libfunc): Declare.
3840         * builtins.c (expand_builtin_synchronize): Consider using
3841         synchronize_libfunc before falling back on an asm blockage.
3842         * config/mips/mips.c: Include libfuncs.h
3843         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
3844
3845 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
3846
3847         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
3848         parameter.  Copy stack_reg to r11 where appropriate.
3849         (no_global_regs_above): Add gpr parameter.
3850         (rs6000_stack_info): Only add padding for SPE save area if we
3851         are saving SPE GPRs and CR.
3852         (saveres_routine_syms): New variable.
3853         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
3854         Define.
3855         (rs6000_savres_routine_sym): New function.
3856         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
3857         split out of...
3858         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
3859         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
3860         Tweak FPR out-of-line saving.
3861         (rs6000_make_savres_rtx): New function.
3862         (rs6000_use_multiple_p): New function.
3863         (rs6000_savres_strategy): New function.
3864         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
3865         out-of-line if appropriate.
3866         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
3867         if we are optimizing for size.
3868         (GP_SAVE_INLINE): Define.
3869         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
3870         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
3871         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
3872         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
3873         (*save_fpregs_<mode>): Add use of r11.
3874         (*restore_gpregs_<mode>): New insn.
3875         (*return_and_restore_gpregs_<mode>): New insn.
3876         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
3877         use r11.
3878         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
3879         (*restore_gpregs_spe): New insn.
3880         (*return_and_restore_gpregs_spe): New insn.
3881         * config/rs6000/predicates.md (save_world_operation): Fix check.
3882
3883 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3884
3885         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
3886         this point, so assert that.
3887
3888 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3889
3890         * cfganal.c: Include vec.h and vecprim.h.
3891         (compute_idf): Import from...
3892         * tree-into-ssa (compute_idf): ...here.
3893         * basic-block.h (compute_idf): Export.
3894
3895 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
3896
3897         * c-decl.c (merge_decls): Use !current_function_decl to check for
3898         extern declaration of C99 inline function being at file scope.
3899
3900 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
3901
3902         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
3903
3904 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3905
3906         * alias.c (record_alias_subset, init_alias_analysis): Fix
3907         -Wc++-compat and/or -Wcast-qual warnings.
3908         * attribs.c (lookup_attribute_spec): Likewise.
3909         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
3910         copy_bb, connect_traces,
3911         find_rarely_executed_basic_blocks_and_cr): Likewise.
3912         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
3913         note_btr_set, migrate_btr_defs): Likewise.
3914         * builtins.c (result_vector, expand_builtin_memcpy,
3915         expand_builtin_mempcpy_args, expand_builtin_strncpy,
3916         builtin_memset_read_str, expand_builtin_printf,
3917         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
3918         Likewise.
3919         * caller-save.c (mark_set_regs): Likewise.
3920         * calls.c (expand_call, emit_library_call_value_1): Likewise.
3921         * cgraph.c (cgraph_edge): Likewise.
3922         * combine.c (likely_spilled_retval_1): Likewise.
3923         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
3924         htab_counts_entry_del, get_coverage_counts): Likewise.
3925         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
3926         new_cselib_val): Likewise.
3927         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
3928         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
3929         Likewise.
3930         * df-core.c (df_compact_blocks): Likewise.
3931         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
3932         * df-scan.c (df_grow_reg_info, df_ref_create,
3933         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
3934         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
3935         df_record_entry_block_defs, df_record_exit_block_uses,
3936         df_bb_verify): Likewise.
3937         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
3938         DF_REF_EXTRACT_MODE_CONST): New.
3939         * dominance.c (get_immediate_dominator, get_dominated_by,
3940         nearest_common_dominator, root_of_dom_tree,
3941         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
3942         -Wc++-compat and/or -Wcast-qual warnings.
3943         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
3944         record_store, replace_read, check_mem_read_rtx, scan_insn,
3945         dse_step1, dse_record_singleton_alias_set): Likewise.
3946         * dwarf2asm.c (dw2_force_const_mem): Likewise.
3947
3948 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3949
3950         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
3951         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
3952         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
3953         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
3954         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
3955         add_ranges_num, add_ranges_by_labels, file_info_cmp,
3956         file_name_acquire, output_file_names, add_const_value_attribute,
3957         premark_used_types_helper, file_table_eq, file_table_hash,
3958         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
3959         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
3960         -Wcast-qual warnings.
3961         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
3962         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
3963         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
3964         gen_reg_rtx, start_sequence, init_emit): Likewise.
3965         * et-forest.c (et_new_occ, et_new_tree): Likewise.
3966         * except.c (init_eh_for_function, gen_eh_region,
3967         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
3968         arh_to_landing_pad, arh_to_label, add_action_record,
3969         add_call_site, switch_to_exception_section): Likewise.
3970         * expmed.c (synth_mult): Likewise.
3971         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
3972         store_expr): Likewise.
3973         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
3974         Likewise.
3975         * function.c (assign_stack_temp_for_type,
3976         allocate_struct_function, match_asm_constraints_1): Likewise.
3977         * gcov-io.c (gcov_allocate): Likewise.
3978         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
3979         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
3980         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
3981         record_one_set, insert_expr_in_table, insert_set_in_table,
3982         dump_hash_table, compute_hash_table_work, alloc_hash_table,
3983         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
3984         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
3985         -Wcast-qual warnings.
3986
3987 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3988
3989         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
3990         -Wcast-qual warnings.
3991         * gcc.c (process_command): Likewise.
3992         * genattrtab.c (oballoc): Use XOBNEW.
3993         (oballocvec): Define.
3994         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
3995         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
3996         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
3997         -Wc++-compat and/or -Wcast-qual warnings.
3998         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
3999         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
4000         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
4001         gen_presence_absence_set, gen_automaton, gen_regexp_el,
4002         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
4003         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
4004         add_excls, process_presence_absence_names,
4005         process_presence_absence_patterns, add_presence_absence,
4006         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
4007         get_free_state, add_arc, get_free_automata_list_el,
4008         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
4009         transform_3, cache_presence, create_ainsns, create_automata,
4010         create_state_ainsn_table, dfa_insn_code_enlarge,
4011         output_trans_func, output_min_issue_delay_func,
4012         output_dead_lock_func, output_reset_func,
4013         output_get_cpu_unit_code_func, output_dfa_start_func,
4014         expand_automata): Likewise.
4015         * genextract.c (gen_insn): Likewise.
4016         * gengtype-lex.l: Likewise.
4017         * gengtype.c (read_input_list, adjust_field_type,
4018         process_gc_options): Likewise.
4019         * genoutput.c (note_constraint): Likewise.
4020         * genpreds.c (mangle, add_constraint): Likewise.
4021         * genrecog.c (process_define_predicate, new_decision,
4022         add_to_sequence): Likewise.
4023         * gensupport.c (record_insn_name): Likewise.
4024
4025 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4026
4027         * config/i386/driver-i386.c (detect_caches_amd,
4028         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
4029         and/or -Wcast-qual warnings.
4030         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
4031         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
4032         gt_pch_save): Likewise.
4033         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
4034         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
4035         * global.c (compute_regsets): Likewise.
4036         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
4037         finish_graph_dump_file): Likewise.
4038         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
4039         unlink_bb_notes): Likewise.
4040         * integrate.c (get_hard_reg_initial_val): Likewise.
4041         * ipa-prop.c (ipa_push_func_to_list): Likewise.
4042         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
4043         * local-alloc.c (update_equiv_regs): Likewise.
4044         * loop-invariant.c (check_invariant_table_size,
4045         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
4046         Likewise.
4047         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
4048         altered_reg_used, mark_altered): Likewise.
4049         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
4050         insert_var_expansion_initialization,
4051         combine_var_copies_in_loop_exit, apply_opt_in_copies,
4052         release_var_copies): Likewise.
4053         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
4054         analyze_matrix_decl, add_allocation_site, analyze_transpose,
4055         analyze_accesses_for_phi_node, check_var_notmodified_p,
4056         check_allocation_function, find_sites_in_func,
4057         record_all_accesses_in_func, transform_access_sites,
4058         transform_allocation_sites): Likewise.
4059         * omp-low.c (new_omp_region, create_omp_child_function_name,
4060         check_omp_nesting_restrictions, check_combined_parallel,
4061         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
4062         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
4063         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
4064         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
4065         Likewise.
4066         * opts-common.c (prune_options): Likewise.
4067         * opts.c (add_input_filename, print_filtered_help,
4068         get_option_state): Likewise.
4069         * params.c (add_params): Likewise.
4070         * passes.c (set_pass_for_id, next_pass_1,
4071         do_per_function_toporder, pass_fini_dump_file): Likewise.
4072         * postreload.c (reload_cse_simplify_operands): Likewise.
4073         * predict.c (tree_predicted_by_p, tree_predict_edge,
4074         clear_bb_predictions, combine_predictions_for_bb): Likewise.
4075
4076 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4077
4078         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
4079         warnings.
4080         * recog.c (check_asm_operands, validate_change_1): Likewise.
4081         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
4082         subst_asm_stack_regs): Likewise.
4083         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
4084         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
4085         * regmove.c (reg_is_remote_constant_p): Likewise.
4086         * regrename.c (regrename_optimize, scan_rtx_reg,
4087         kill_clobbered_value, kill_set_value, kill_autoinc_value):
4088         Likewise.
4089         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
4090         regstat_compute_calls_crossed): Likewise.
4091         * reload1.c (init_reload, new_insn_chain,
4092         has_nonexceptional_receiver, reload, copy_reloads,
4093         calculate_needs_all_insns, init_elim_table): Likewise.
4094         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
4095         * rtl.c (shallow_copy_rtx_stat): Likewise.
4096         * rtlanal.c (parms_set): Likewise.
4097         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
4098         sbitmap_resize, sbitmap_vector_alloc): Likewise.
4099         * sched-ebb.c (earliest_block_with_similiar_load,
4100         add_deps_for_risky_insns): Likewise.
4101         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
4102         schedule_region): Likewise.
4103         * see.c (eq_descriptor_pre_extension,
4104         hash_descriptor_pre_extension, hash_del_pre_extension,
4105         eq_descriptor_properties, hash_descriptor_properties,
4106         hash_del_properties, see_seek_pre_extension_expr,
4107         see_initialize_data_structures, see_print_register_properties,
4108         see_print_pre_extension_expr, see_delete_merged_def_extension,
4109         see_delete_unmerged_def_extension, see_emit_use_extension,
4110         see_pre_delete_extension, see_map_extension, see_commit_changes,
4111         see_analyze_merged_def_local_prop,
4112         see_analyze_merged_def_local_prop,
4113         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
4114         see_set_prop_merged_def, see_set_prop_unmerged_def,
4115         see_set_prop_unmerged_use, see_print_one_extension,
4116         see_merge_one_use_extension, see_merge_one_def_extension,
4117         see_store_reference_and_extension, see_update_uses_relevancy,
4118         see_update_defs_relevancy): Likewise.
4119         * statistics.c (hash_statistics_hash, hash_statistics_eq,
4120         hash_statistics_free, curr_statistics_hash): Likewise.
4121         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
4122         expand_asm_operands, expand_return, case_bit_test_cmp,
4123         expand_case): Likewise.
4124         * stor-layout.c (start_record_layout): Likewise.
4125         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
4126         gt_pch_save_stringpool): Likewise.
4127         * tree-data-ref.c (hash_stmt_vertex_info,
4128         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
4129         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
4130
4131 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
4132
4133         PR target/36627
4134         * config/i386/i386.md : Change constraints of HImode and QImode
4135         immediate operands from "i" to "n".  Change SImode "ni" constraint to
4136         "i" and SImode "rmi" constraint to "g".  Remove all constraints
4137         from const0_operand and const1_operand predicated operands.
4138         (i): Change QImode and HImode attribute from "i" to "n".
4139         (*subqi_2): Change HImode operands to QImode.
4140         (*subqi_3): Ditto.
4141
4142 2008-06-25  Olivier Hainque  <hainque@adacore.com>
4143
4144         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
4145         sed substitutions.
4146
4147 2008-06-25  Richard Guenther  <rguenther@suse.de>
4148
4149         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
4150         not overflow the result type.
4151
4152 2008-06-25  Richard Guenther  <rguenther@suse.de>
4153
4154         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
4155         (vn_lookup): Likewise.
4156
4157 2008-06-25  Richard Guenther  <rguenther@suse.de>
4158
4159         PR tree-optimization/35518
4160         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
4161         * tree-sra.c (instantiate_element): Use fold_build3 to build
4162         BIT_FIELD_REFs.
4163         (try_instantiate_multiple_fields): Likewise.
4164
4165 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4166
4167         * config/rs6000/rs6000.md: Change all string instruction's clobber to
4168         be early clobbers.
4169
4170 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4171
4172         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
4173         use_backchain_to_restore_sp to true
4174         if the offset of the link register save area would go over the 32k - 1
4175         offset limit of the load
4176         instructions.
4177
4178 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
4179
4180         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
4181         anchor for the type-punning blurb.  Cross-reference "Structures
4182         unions enumerations and bit-fields implementation".  Provide a
4183         cast-through-pointer example.  Make final sentence self-contained.
4184         * doc/implement-c.texi (Structures unions enumerations and
4185         bit-fields implementation): Cross-reference the type-punning blurb
4186         in the -fstrict-aliasing documentation.
4187
4188 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4189
4190         PR middle-end/36594
4191         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
4192         the memory instead of the memory itself for the save area.
4193
4194 2008-06-24  Olivier Hainque  <hainque@adacore.com>
4195             Nicolas Roche  <roche@adacore.com>
4196
4197         * gengtype.c (srcdir_len): size_t instead of int.
4198         (get_file_realbasename): New function.  For F a filename, the real
4199         basename of F, with all the path components stripped.
4200         (get_file_srcdir_relative_path): New function.  For F a filename, the
4201         relative path to F from $(srcdir).
4202         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
4203         get_file_realbasename.  Adjust the head comment.
4204         (get_prefix_langdir_index): New function. For F a filename, return the
4205         lang_dir_names[] relative index of the language directory that is
4206         a prefix in F.
4207         (get_file_langdir): For F a filename, return the name of the language
4208         directory where F is located.
4209         (get_file_gtfilename): New function. The gt- output file name for an
4210         input filename F.
4211         (get_output_file_with_visibility): Replace in-line computations with
4212         uses of get_file_gtfilename and get_prefix_langdir_index.
4213         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
4214
4215 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
4216
4217         PR tree-optimization/36504
4218         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
4219         references without base address.
4220
4221 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
4222
4223         PR middle-end/36584
4224         * calls.c (expand_call): Increase alignment for recursive functions.
4225
4226 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
4227
4228         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
4229         (TARGET_FUNCTION_VALUE): New define.
4230         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
4231         * config/avr/avr.h (FUNCTION_VALUE): Remove.
4232
4233 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
4234
4235         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
4236         (fmod<mode>3): Ditto.
4237         (remainderxf3): Ditto.
4238         (remainder<mode>3): Ditto.
4239
4240 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
4241
4242         PR target/36533
4243         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
4244         REG is a hard register.
4245
4246         PR tree-optimization/36508
4247         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
4248         499, don't check it at all in release compilers.
4249
4250 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
4251
4252         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
4253         together with SSE_TARGET_MATH to disable insn pattern.
4254         (*fop_<MODEF:mode>_2_i387): Ditto.
4255         (*fop_<MODEF:mode>_3_i387): Ditto.
4256
4257 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
4258
4259         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
4260
4261 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4262
4263         PR middle-end/34906
4264         * gimplify.c (gimplify_asm_expr): Check the return code of
4265         parse_output_constraint call, set function return and is_inout
4266         value if it failed.
4267
4268 2008-06-22  Ian Lance Taylor  <iant@google.com>
4269
4270         * c-lex.c (narrowest_unsigned_type): Change itk to int.
4271         (narrowest_signed_type): Likewise.
4272         * c-typeck.c (c_common_type): Change local variable mclass to enum
4273         mode_class, twice.
4274         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
4275         tcc_comparison, not the tree code itself.
4276         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
4277         (c_expand_expr): Cast modifier to enum expand_modifier.
4278         * c-common.h (C_RID_CODE): Add casts.
4279         (C_SET_RID_CODE): Define.
4280         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
4281         (c_lex_one_token): Add cast to avoid warning.
4282         (c_parser_objc_type_name): Rename local typename to type_name.
4283         (check_no_duplicate_clause): Change code parameter to enum
4284         omp_clause_code.
4285         (c_parser_omp_var_list_parens): Change kind parameter to enum
4286         omp_clause_code.
4287         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
4288         c_parser_omp_list_var_parens.
4289         (c_parser_omp_threadprivate): Likewise.
4290         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
4291         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
4292         * c-format.c (NO_FMT): Define.
4293         (printf_length_specs): Use NO_FMT.
4294         (asm_fprintf_length_specs): Likewise.
4295         (gcc_diag_length_specs): Likewise.
4296         (scanf_length_specs): Likewise.
4297         (strfmon_length_specs): Likewise.
4298         (gcc_gfc_length_specs): Likewise.
4299         (printf_flag_specs): Change 0 to STD_C89.
4300         (asm_fprintf_flag_specs): Likewise.
4301         (gcc_diag_flag_specs): Likewise.
4302         (gcc_cxxdiag_flag_specs): Likewise.
4303         (scanf_flag_specs): Likewise.
4304         (strftime_flag_specs): Likewise.
4305         (strfmon_flag_specs): Likewise.
4306         (print_char_table): Likewise.
4307         (asm_fprintf_char_table): Likewise.
4308         (gcc_diag_char_table): Likewise.
4309         (gcc_tdiag_char_table): Likewise.
4310         (gcc_cdiag_char_table): Likewise.
4311         (gcc_cxxdiag_char_table): Likewise.
4312         (gcc_gfc_char_table): Likewise.
4313         (scan_char_table): Likewise.
4314         (time_char_table): Likewis.
4315         (monetary_char_table): Likewise.
4316         * c-format.h (BADLEN): Likewise.
4317
4318 2008-06-21  Ian Lance Taylor  <iant@google.com>
4319
4320         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
4321         Define END_OF_BASE_TREE_CODES around inclusion.
4322         * tree.c (tree_code_type): New global array.
4323         (tree_code_length, tree_code_name): Likewise.
4324         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
4325         $(lang_tree_files).
4326         (all-tree.def, s-alltree): New targets.
4327         (gencheck.h, s-gencheck): Remove.
4328         (tree.o): Depend upon all-tree.def.
4329         (build/gencheck.o): Remove gencheck.h dependency.
4330         (mostlyclean): Don't remove gencheck.h.
4331         * c-common.h (enum c_tree_code): Remove.
4332         * c-lang.c (tree_code_type): Remove.
4333         (tree_code_length, tree_code_name): Remove.
4334         * gencheck.c (tree_codes): Include all-tree.def, rather than
4335         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
4336         after it is used.
4337         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
4338         than tree.def.
4339         * cp/cp-tree.h (enum cplus_tree_code): Remove.
4340         (operator_name_info): Size to MAX_TREE_CODES.
4341         (assignment_operator_name_info): Likewise.
4342         * cp/cp-lang.c (tree_code_type): Remove.
4343         (tree_code_length, tree_code_name): Remove.
4344         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
4345         (assignment_operator_name_info): Likewise.
4346         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
4347         MAX_TREE_CODES.
4348         * cp/mangle.c (write_expression): Likewise.
4349         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
4350         * fortran/f95-lang.c (tree_code_type): Remove.
4351         (tree_code_length, tree_code_name): Remove.
4352         * java/java-tree.h (enum java_tree_code): Remove.
4353         * java/lang.c (tree_code_type): Remove.
4354         (tree_code_length, tree_code_name): Remove.
4355         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
4356         * objc/objc-act.h (enum objc_tree_code): Remove.
4357         * objc/objc-lang.c (tree_code_type): Remove.
4358         (tree_code_length, tree_code_name): Remove.
4359         * objcp/objcp-lang.c (tree_code_type): Remove.
4360         (tree_code_length, tree_code_name): Remove.
4361         * ada/ada-tree.h (enum gnat_tree_code): Remove.
4362         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
4363         * ada/misc.c (tree_code_type): Remove.
4364         (tree_code_length, tree_code_name): Remove.
4365
4366 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
4367
4368         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
4369         the grand_bitmap_obstack.
4370
4371 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4372
4373         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
4374         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
4375         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
4376         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
4377         move_stmt_r, new_label_mapper): Likewise.
4378         * tree-complex.c (cvc_lookup): Likewise.
4379         * tree-dfa.c (create_function_ann): Likewise.
4380         * tree-dump.c (dump_register): Likewise.
4381         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
4382         find_phi_replacement_condition): Likewise.
4383         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
4384         tree_function_versioning): Likewise.
4385         * tree-into-ssa.c (cmp_dfsnum): Likewise.
4386         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
4387         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
4388         get_nonlocal_debug_decl, convert_nonlocal_reference,
4389         convert_nonlocal_omp_clauses, get_local_debug_decl,
4390         convert_local_reference, convert_local_omp_clauses,
4391         convert_nl_goto_reference, convert_nl_goto_receiver,
4392         convert_tramp_reference, convert_call_expr): Likewise.
4393         * tree-outof-ssa.c (contains_tree_r): Likewise.
4394         * tree-parloops.c (reduction_phi, initialize_reductions,
4395         eliminate_local_variables_1, add_field_for_reduction,
4396         add_field_for_name, create_phi_for_local_result,
4397         create_call_for_reduction_1, create_loads_for_reductions,
4398         create_stores_for_reduction, create_loads_and_stores_for_name):
4399         Likewise.
4400         * tree-phinodes.c (allocate_phi_node): Likewise.
4401         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
4402         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
4403         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
4404         * tree-ssa-coalesce.c (compare_pairs): Likewise.
4405         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
4406         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
4407         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
4408         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
4409         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
4410         vn_nary_op_insert): Likewise.
4411         * tree-ssa.c (redirect_edge_var_map_add,
4412         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
4413         * tree-vectorizer.c (vectorize_loops): Likewise.
4414         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
4415         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
4416         tree_cons_stat, build1_stat, build_variant_type_copy,
4417         decl_init_priority_lookup, decl_fini_priority_lookup,
4418         decl_priority_info, decl_restrict_base_lookup,
4419         decl_restrict_base_insert, decl_debug_expr_lookup,
4420         decl_debug_expr_insert, decl_value_expr_lookup,
4421         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
4422         type_hash_add, get_file_function_name, tree_check_failed,
4423         tree_not_check_failed, tree_range_check_failed,
4424         omp_clause_range_check_failed, build_omp_clause,
4425         build_vl_exp_stat): Likewise.
4426         * value-prof.c (gimple_histogram_value,
4427         gimple_duplicate_stmt_histograms): Likewise.
4428         * var-tracking.c (attrs_list_insert, attrs_list_copy,
4429         unshare_variable, variable_union_info_cmp_pos, variable_union,
4430         dataflow_set_different_1, dataflow_set_different_2,
4431         vt_find_locations, variable_was_changed, set_variable_part,
4432         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
4433         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
4434         section_entry_hash, object_block_entry_eq,
4435         object_block_entry_hash, create_block_symbol,
4436         initialize_cold_section_name, default_function_rodata_section,
4437         strip_reg_name, set_user_assembler_name, const_desc_eq,
4438         build_constant_desc, output_constant_def, lookup_constant_def,
4439         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
4440         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
4441         default_internal_label): Likewise.
4442         * varray.c (varray_init, varray_grow): Likewise.
4443         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
4444
4445 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
4446
4447         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
4448         operators for "test" insn.  Macroize insn using SWI mode macro.
4449         (*jcc_fused_2): Ditto.
4450         (*jcc_fused_3): Macroize insn using SWI mode macro.
4451         (*jcc_fused_4): Ditto.
4452
4453 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
4454
4455         * tree-ssa-pre.c: Fix typo in comment.
4456         (init_antic, fini_antic): Add explicit funtions for
4457         initializing and deinitializing ANTIC and AVAIL sets.
4458         (create_expression_by_pieces): Fix typo in comment.
4459         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
4460         (execute_pre): Eventually dump details about ANTIC_IN.
4461
4462 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4463
4464         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
4465         * gcc.c (translate_options, init_spec, store_arg, read_specs,
4466         add_to_obstack, file_at_path, find_a_file, execute,
4467         add_preprocessor_option, add_assembler_option, add_linker_option,
4468         process_command, insert_wrapper, do_option_spec, do_self_spec,
4469         spec_path, do_spec_1, is_directory, main, used_arg,
4470         getenv_spec_function): Likewise.
4471         * tlink.c (symbol_hash_lookup, file_hash_lookup,
4472         demangled_hash_lookup, symbol_push, file_push, frob_extension):
4473         Likewise.
4474
4475 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
4476
4477         * doc/rtl.texi: Updated subreg section.
4478
4479 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
4480
4481         PR c++/36523
4482         * cgraphunit.c (cgraph_process_new_functions): Don't clear
4483         node->needed and node->reachable.
4484         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
4485         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
4486         (expand_task_call): Don't call expand_task_copyfn.
4487         (expand_task_copyfn): Renamed to...
4488         (finalize_task_copyfn): ... this.
4489
4490 2008-06-19  Jan Hubicka  <jh@suse.cz>
4491
4492         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
4493         clobbering framepointer.
4494
4495 2008-06-19  Jan Hubicka  <jh@suse.cz>
4496
4497         * tree-optimize.c (execute_early_local_optimizations): Set
4498         cgraph_state only at first invocation.
4499
4500 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4501
4502         * system.h (-Wc++-compat): Activate as a warning, no an error.
4503
4504 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
4505
4506         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
4507         instead of "#" in insn asm template.
4508         (*jcc_fused_2): Ditto.
4509
4510 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
4511
4512         * config/i386/i386.h (ix86_tune_indices)
4513         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
4514         (TARGET_FUSE_CMP_AND_BRANCH): New define.
4515         * config/i386/i386.md (*jcc_fused_1): New insn pattern
4516         (*jcc_fused_2): Ditto.
4517         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
4518         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
4519         (print operand): Handle 'E' and 'e' code.
4520
4521 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
4522
4523         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
4524         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4525         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4526
4527 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
4528
4529         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
4530         node->decl.
4531         (cgraph_expand_function): Use local copy of decl.
4532         (cgraph_expand_all_functions): Remove redundant initialization of
4533         order_pos.
4534         (cgraph_optimize): Reword internal_error message.
4535
4536 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
4537
4538         * arm-protos.h (arm_return_in_memory): Remove public
4539         arm_return_in_memory() prototype.
4540         * arm.c (arm_return_in_memory): Add static prototype, add target
4541         hook macro, change definition and comments.
4542         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
4543
4544 2008-06-19  Ben Elliston  <bje@au.ibm.com>
4545
4546         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
4547         real.c: Remove references to IEEE 754R.
4548         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
4549         * doc/libgcc.texi (Decimal float library routines): Likewise.
4550
4551 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4552
4553         * targhooks.h (struct gcc_target): New member unwind_word_mode.
4554         (default_unwind_word_mode): Add prototype.
4555         * targhooks.c (default_unwind_word_mode): New function.
4556         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
4557         instead of word_mode.
4558         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
4559         (TARGET_INITIALIZER): Use it.
4560
4561         * c-common.c (handle_mode_attribute): Support "unwind_word"
4562         mode attribute.
4563         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
4564
4565         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
4566         word_mode to access SjLj_Function_Context member "data".
4567         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
4568         conversion from targetm.eh_return_filter_mode () to
4569         targetm.unwind_word_mode () if they differ.
4570
4571         * builtin-types.def (BT_UNWINDWORD): New primitive type.
4572         (BT_FN_UNWINDWORD_PTR): New function type.
4573         (BT_FN_WORD_PTR): Remove.
4574         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
4575         * except.c (expand_builtin_extend_pointer): Convert pointer to
4576         targetm.unwind_word_mode () instead of word_mode.
4577
4578         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
4579         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
4580         (spu_unwind_word_mode): New function.
4581         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
4582         (TARGET_UNWIND_WORD_MODE): Define.
4583         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
4584
4585 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4586
4587         * config/spu/spu.c (reg_align): Remove.
4588         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
4589         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
4590         (spu_split_store): Likewise.
4591
4592 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
4593
4594         * gcc/tree-vn.c: Fix typo in comment.
4595
4596 2008-06-18  Jan Hubicka  <jh@suse.cz>
4597
4598         * cgraphunit.c (cgraph_optimize): Output debug info when doing
4599         toplevel reorder too.
4600
4601 2008-06-18  Jan Hubicka  <jh@suse.cz>
4602
4603         * c-opts.c (c_common_post_options): PCH is not compatible with
4604         no-unit-at-a-time.
4605         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
4606         -fno-toplevel-reorder by default now.
4607
4608 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4609
4610         PR documentation/30739
4611         * doc/install.texi (Prerequisites): Document dependency on awk.
4612
4613 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
4614             Ian Lance Taylor  <iant@google.com>
4615
4616         PR rtl-optimization/35604
4617         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
4618         only want to change jump destinations, not eventual label comparisons.
4619
4620 2008-06-16  Jan Hubicka  <jh@suse.cz>
4621
4622         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
4623         syntax errors.
4624         (cgraph_analyze_function): Likewise.
4625
4626 2008-06-16  Jan Hubicka  <jh@suse.cz>
4627
4628         * cgraph.h (cgraph_mark_if_needed): New function.
4629         * cgraphunit.c (cgraph_mark_if_needed): New function.
4630         * c-decl.c (duplicate_decl): Use it.
4631
4632 2008-06-16  Jan Hubicka  <jh@suse.cz>
4633
4634         * cgraph.c (cgraph_add_new_function): When in expansion state, do
4635         lowering.
4636
4637 2008-06-16  Jan Hubicka  <jh@suse.cz>
4638
4639         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
4640
4641 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
4642             Kazu Hirata  <kazu@codesourcery.com>
4643             Maxim Kuvyrkov  <maxim@codesourcery.com
4644
4645         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
4646         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
4647         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
4648         EXTRA_SPEC_FUNCTIONS.
4649         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
4650         (DRIVER_SELF_SPECS): Adjust.
4651         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
4652         * config/mips/st.h, config/mips/t-st: New.
4653         * config/mips/driver-native.c, config/mips/x-native: New.
4654         * doc/invoke.texi (MIPS): Document 'native' value for -march and
4655         -mtune options.
4656
4657 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
4658
4659         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
4660         from it.
4661         (ISA_HAS_FP_CONDMOVE): New macro.
4662         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
4663         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
4664         (ISA_HAS_NMADD3_NMSUB3): New macro.
4665         * config/mips/mips.c (mips_rtx_costs): Update.
4666         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
4667         compiling for ST Loongson 2E/2F.
4668         (madd<mode>): Rename to madd4<mode>.  Update.
4669         (madd3<mode>): New pattern.
4670         (msub<mode>): Rename to msub4<mode>.  Update.
4671         (msub3<mode>): New pattern.
4672         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
4673         (nmadd3<mode>): New pattern.
4674         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
4675         (nmadd3<mode>_fastmath): New pattern.
4676         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
4677         (nmsub3<mode>): New pattern.
4678         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
4679         (nmsub3<mode>_fastmath): New pattern.
4680         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
4681
4682 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
4683
4684         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
4685         (DF_REF_INSN_INFO): New.
4686         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
4687         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
4688         with a NULL DF_REF_INSN_INFO.
4689         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
4690         DF_INSN_SET.
4691         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
4692         DF_INSN_INFO_EQ_USES): New.
4693         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
4694         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
4695         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
4696         * df-core.c: Update comment for above changes.
4697         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
4698         DF_INSN_UID_* macros.
4699         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
4700         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
4701         insn rtx.  Update all callers.
4702         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
4703         df_ref_create_structure, df_insn_refs_collect): Likewise.
4704         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
4705         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
4706         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
4707         macros to access the insn refs.
4708         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
4709         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
4710         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
4711         for accessing the refs.
4712         (try_fwprop_subst): Likewise.
4713         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
4714         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
4715         for accessing the refs.
4716         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
4717         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
4718         to look at the insn refs.
4719         (record_uses): Likewise.
4720         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
4721         function anymore.
4722         (mark_artificial_uses): Don't mark_insn for artificial refs.
4723         (mark_reg_rependencies): Likewise.
4724
4725         * doc/rtl.texi: Remove documentation of ADDRESSOF.
4726
4727 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4728
4729         * configure: Regenerate.
4730
4731 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4732
4733         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
4734         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4735         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4736
4737 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4738
4739         * config/avr/avr.c (avr_mcu_t): Add attiny167.
4740         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4741         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4742
4743 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4744
4745         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
4746         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4747         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4748
4749 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4750
4751         * tree-ssa-sccvn.c: Fix format of comments.
4752
4753 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4754
4755         * cgraph.c: Remove unneeded forward declarations of eq_node()
4756         and hash_node().
4757
4758 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
4759
4760         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
4761         REG_RETVAL notes.
4762         (see_update_relevancy): Likewise.
4763         * fwprop.c (try_fwprop_subst): Likewise.
4764         * rtlanal.c (noop_move_p): Likewise.
4765         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
4766         notes to non-existing libcall blocks.
4767         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
4768         Remove orig_set.
4769         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
4770         (dead_libcall_p): Remove.
4771         (delete_trivially_dead_insns): Don't use it.
4772         * web.c (union_defs): Remove comment about keeping nops.
4773         * gcse.c (hash_scan_insn): Don't take libcall pointers.
4774         (compute_hash_table_work): Don't track libcall notes.
4775         (do_local_cprop): Don't take libcall pointers.  Don't update
4776         libcall notes.
4777         (adjust_libcall_notes): Deleted.
4778         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
4779         ever have existed in the first place).
4780         (replace_store_insn): Don't try to remove libcall notes.
4781         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
4782         (resolve_reg_notes): Don't call them.
4783         (resolve_simple_move): Likewise.
4784         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
4785         Don't remove REG_RETVAL notes.
4786         * emit-rtl.c (try_split): Don't update libcall notes.
4787         (emit_copy_of_insn_after): Dito.
4788         * cselib.c (cselib_current_insn_in_libcall): Remove.
4789         (cselib_process_insn): Don't set/clear it.
4790         (new_elt_loc_list): Don't record it.
4791         (cselib_init): Don't initialize it.
4792         * cselib.c (struct elt_loc_list): Remove in_libcall field.
4793         * loop-invariant.c (find_invariant_insn): Don't look for libcall
4794         notes.
4795         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
4796         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
4797         (init_deps): Don't initialize it.
4798         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
4799         * combine.c (delete_noop_moves): Don't update libcall notes.
4800         (can_combine_p): Remove now pointless #if 0 block.
4801         (try_combine): Remove another obsolete #if 0 block.
4802         (distribute_notes): Don't distribute libcall notes.
4803         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
4804         * dce.c (libcall_dead_p): Remove.
4805         (delete_unmarked_insns): Don't handle libcall blocks.
4806         (preserve_libcall_for_dce): Remove.
4807         (prescan_insns_for_dce): Don't special-case libcall block insns.
4808         * reload1 (reload): Don't handle libcall notes.
4809         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
4810         documentation.
4811
4812 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4813
4814         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
4815         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4816         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4817
4818 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4819
4820         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
4821         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4822         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4823
4824 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4825
4826         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
4827
4828 2008-06-16  Ira Rosen  <irar@il.ibm.com>
4829
4830         PR tree-optimization/36493
4831         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
4832         the arguments list. Use VECTYPE to create vector pointer.
4833         (vectorizable_store): Fail if accesses through a pointer to vectype
4834         do not alias the original memory reference operands.
4835         Call vect_create_data_ref_ptr without the removed argument.
4836         (vectorizable_load): Likewise.
4837         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
4838         removed argument.
4839
4840 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
4841
4842         PR target/36336
4843         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
4844         reg_equiv_constant.
4845
4846 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4847
4848         * config/mips/loongson2ef.md: New file.
4849         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4850         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4851         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4852         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
4853         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
4854         and loongson_2f.
4855         (loongson2ef.md): New include.
4856         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
4857         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
4858         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
4859         (loongson_gt_<mode>, loongson_extract_halfword)
4860         (loongson_insert_halfword_0, loongson_insert_halfword_2)
4861         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
4862         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
4863         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
4864         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
4865         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
4866         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
4867         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
4868         (vec_interleave_low<mode>): Define type attribute.
4869         * config/mips/mips.c (mips_ls2): New static variable.
4870         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
4871         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
4872         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
4873         Implement target scheduling hooks.
4874         (mips_multipass_dfa_lookahead): Update to handle tuning for
4875         Loongson 2E/2F.
4876         (mips_sched_init): Initialize data for Loongson scheduling.
4877         (mips_ls2_variable_issue): New static function.
4878         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
4879         Add sanity check.
4880         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
4881         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
4882         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
4883         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
4884         Handle ST Loongson 2E/2F cores.
4885         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
4886
4887 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4888
4889         * omp-low.c (extract_omp_for_data): Fix comment typo.
4890         * c.opt: Fix typo.
4891
4892 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4893
4894         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
4895         FIXME note about gcc/config.guess.
4896         * doc/options.texi (Option file format): Remove non-ASCII bytes.
4897         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
4898         * doc/cppopts.texi: Likewise.
4899         * doc/extend.texi: Likewise.
4900         * doc/gcc.texi: Likewise.
4901         * doc/gccint.texi: Likewise.
4902         * doc/gcov.texi: Likewise.
4903         * doc/gty.texi: Likewise.
4904         * doc/hostconfig.texi: Likewise.
4905         * doc/install.texi: Likewise.
4906         * doc/invoke.texi: Likewise.
4907         * doc/loop.texi: Likewise.
4908         * doc/makefile.texi: Likewise.
4909         * doc/md.texi: Likewise.
4910         * doc/passes.texi: Likewise.
4911         * doc/tm.texi: Likewise.
4912         * doc/tree-ssa.texi: Likewise.
4913         * doc/trouble.texi: Likewise.
4914
4915 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
4916             Nathan Sidwell  <nathan@codesourcery.com>
4917             Maxim Kuvyrkov  <maxim@codesourcery.com>
4918             Richard Sandiford  <rdsandiford@googlemail.com>
4919
4920         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
4921         * config/mips/mips-protos.h (mips_expand_vector_init): New.
4922         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
4923         builtins.
4924         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
4925         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
4926         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
4927         V8QImode cases.
4928         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
4929         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
4930         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
4931         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
4932         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
4933         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
4934         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
4935         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
4936         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
4937         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
4938         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
4939         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
4940         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
4941         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
4942         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
4943         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
4944         (mips_builtins): Add Loongson builtins.
4945         (mips_loongson_2ef_bdesc): New.
4946         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
4947         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
4948         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
4949         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
4950         New.
4951         (mips_expand_vector_init): New.
4952         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
4953         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
4954         if appropriate.
4955         * config/mips/mips.md: Add unspec numbers for Loongson
4956         builtins.  Include loongson.md.
4957         (MOVE64): Include Loongson vector modes.
4958         (SPLITF): Include Loongson vector modes.
4959         (HALFMODE): Handle Loongson vector modes.
4960         * config/mips/loongson.md: New.
4961         * config/mips/loongson.h: New.
4962         * config.gcc: Add loongson.h header for mips*-*-* targets.
4963         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
4964
4965 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
4966
4967         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
4968         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
4969         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
4970         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
4971         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
4972         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
4973         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
4974         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
4975         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
4976         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
4977         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
4978         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
4979         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
4980         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
4981         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
4982         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
4983         Remove use_fixproto=yes.
4984         (ia64*-*-hpux*): Remove comment about using fixproto.
4985         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
4986
4987 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4988
4989         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
4990         library rebuilds.
4991         * configure: Regenerate.
4992
4993 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
4994
4995         PR middle-end/36520
4996         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
4997         before evaluating it.
4998
4999 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
5000
5001         PR c/36507
5002         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
5003         nested inline functions.
5004         (start_decl, start_function): Don't invert DECL_EXTERNAL
5005         for nested inline functions.
5006
5007 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
5008
5009         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
5010         splits that must be made for correctness.
5011
5012 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
5013
5014         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
5015         (AVAIL_NON_MIPS16): Likewise.
5016         (mips_builtin_description): Replace target_flags with a predicate.
5017         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
5018         (dspr2_32): New availability predicates.
5019         (MIPS_BUILTIN): New macro.
5020         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
5021         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
5022         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
5023         Replace the TARGET_FLAGS parameters with AVAIL parameters.
5024         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
5025         (mips_dsp_32only_bdesc): Merge into...
5026         (mips_builtins): ...this new array.
5027         (mips_bdesc_map, mips_bdesc_arrays): Delete.
5028         (mips_init_builtins): Update after above changes.
5029         (mips_expand_builtin_1): Merge into...
5030         (mips_expand_builtin): ...here and update after above changes.
5031
5032 2008-06-12  Paul Brook  <paul@codesourcery.com>
5033
5034         * longlong.h (__arm__): Define count_leading_zeros.
5035         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
5036         (clzsi2, clzdi2): New functions.
5037         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
5038         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
5039         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
5040         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
5041         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
5042         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
5043         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
5044         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
5045         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
5046         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
5047
5048 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
5049
5050         * config/m68k/m68k.c (m68k_tune_flags): New.
5051         (override_options): Compute m68k_tune_flags.
5052         (MULL_COST, MULW_COST): Update for various variants of CFV2.
5053         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
5054
5055 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5056
5057         PR middle-end/36506
5058         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
5059
5060 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
5061
5062         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
5063         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
5064
5065 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
5066
5067         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
5068         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
5069
5070 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
5071
5072         PR middle-end/36506
5073         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
5074         reductions.
5075
5076 2008-06-12  Richard Guenther  <rguenther@suse.de>
5077
5078         PR tree-optimization/36345
5079         * tree-flow.h (struct ptr_info_def): Align escape_mask,
5080         add memory_tag_needed flag.
5081         (may_alias_p): Declare.
5082         * tree-ssa-alias.c (may_alias_p): Export.
5083         (set_initial_properties): Use memory_tag_needed flag.
5084         (update_reference_counts): Likewise.
5085         (reset_alias_info): Reset memory_tag_needed flag.
5086         (create_name_tags): Check memory_tag_needed flag.
5087         (dump_points_to_info_for): Dump it.
5088         * tree-ssa-structalias.c (struct variable_info): Remove
5089         directly_dereferenced flag.
5090         (new_var_info): Do not initialize it.
5091         (process_constraint_1): Do not set it.
5092         (update_alias_info): Set is_dereferenced flag.
5093         (set_uids_in_ptset): Use may_alias_p.
5094         (set_used_smts): Check memory_tag_needed flag.
5095         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
5096         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
5097         memory_tag_needed flag.
5098         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
5099         from broken design.
5100
5101 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
5102
5103         * config/i386/i386.c (ix86_compute_frame_layout): Disable
5104         red zone for w64 abi.
5105         (ix86_expand_prologue): Likewise.
5106         (ix86_force_to_memory): Likewise.
5107         (ix86_free_from_memory): Likewise.
5108
5109 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
5110
5111         PR target/36425
5112         * config/rs6000/rs6000.c (rs6000_override_options): Set
5113         rs6000_isel conditionally to the absence of comand line override.
5114         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
5115         Remove duplicate rs6000_isel setting.
5116         * config/rs6000/eabispe.h: Ditto.
5117
5118 2008-06-11  Richard Guenther  <rguenther@suse.de>
5119
5120         * alias.c (get_alias_set): Use the element alias-set for arrays.
5121         (record_component_aliases): For arrays and vectors do nothing.
5122         * c-common.c (strict_aliasing_warning): Handle the cases
5123         of alias set zero explicitly.
5124         * Makefile.in (dfp.o-warn): Add -Wno-error.
5125
5126 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
5127
5128         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
5129         tune_32 tune_64.
5130         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
5131         tune_32 tune_64 to supported_defaults.  Allow values not
5132         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
5133         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
5134         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
5135         with_cpu_64 to generic for 64-bit-supporting configurations, not
5136         with_cpu.  Remove FIXMEs.
5137         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
5138         --with-arch-64, --with-tune-32, --with-tune-64): Document.
5139         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
5140         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
5141         arch_32 and arch_64.
5142
5143 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
5144             Olivier Hainque  <hainque@adacore.com>
5145
5146         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
5147         Use DECL_SIZE_UNIT to retrieve the size of the field.
5148
5149 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
5150
5151         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
5152         with function calls after declarations.  Lay out
5153         neon_float_type_node before further use.
5154
5155 2008-06-11  Richard Guenther  <rguenther@suse.de>
5156
5157         * tree-flow.h (may_point_to_global_var): Declare.
5158         * tree-ssa-alias.c (may_point_to_global_var): New function.
5159         * tree-ssa-sink.c (is_hidden_global_store): Use it.
5160
5161 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
5162
5163         * configure.ac: Teach that fido supports .debug_line.
5164         * configure: Regenerate.
5165
5166 2008-06-10  Tom Tromey  <tromey@redhat.com>
5167
5168         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
5169         debug hook.
5170
5171 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
5172
5173         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
5174         (encode_decimal64, decode_decimal64, encode_decimal128,
5175         decode_decimal128): Reverse order of 32-bit parts of value if host
5176         and target endianness differ.
5177
5178 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
5179
5180         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
5181         Avoid division by 0.
5182         (tree_mod_pow2_value_transform): Likewise.
5183         (tree_ic_transform): Likewise.
5184         (tree_stringops_transform): Likewise.
5185         (tree_mod_subtract_transform): Likewise.
5186         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
5187         (copy_edges_for_bb): Likewise.
5188         (initialize_cfun): Likewise.
5189
5190 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
5191
5192         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
5193         nonmemory_operand. Add "N" operand constraint.
5194         (*btsi): Ditto.
5195         (*jcc_btdi_mask_rex64): New instruction and split pattern.
5196         (*jcc_btsi_mask): Ditto.
5197         (*jcc_btsi_mask_1): Ditto.
5198
5199 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
5200
5201         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
5202         TYPE_CANONICAL for copied element type.
5203
5204 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
5205
5206         PR target/36473
5207         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
5208         Add m_CORE2 and m_GENERIC.
5209         * config/i386/predicates.md (bt_comparison_operator): New predicate.
5210         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
5211         (*btsi): Ditto.
5212         (*jcc_btdi_rex64): New instruction and split pattern.
5213         (*jcc_btsi): Ditto.
5214         (*jcc_btsi_1): Ditto.
5215         (*btsq): Fix Intel asm dialect operand order.
5216         (*btrq): Ditto.
5217         (*btcq): Ditto.
5218
5219 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
5220
5221         PR middle-end/36447
5222         * simplify-rtx.c (simplify_subreg): Add check for shift count
5223         greater than size.
5224
5225 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
5226
5227         * doc/md.texi: Synchronize with later constraints.md change.
5228         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
5229         with a C implementation.
5230         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
5231         MFLO handling.
5232         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
5233         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
5234         when moving to and from MD_REGNUM.
5235         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
5236         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
5237         Handle byte and halfword moves.
5238         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
5239         separately.
5240         * config/mips/constraints.md (h): Turn into NO_REGS.
5241         (l, x): Update documentation.
5242         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
5243         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
5244         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
5245         (HILO): New mode iterator.
5246         (MOVE128): Add TI.
5247         (any_div): New code iterator.
5248         (u): Extend code attribute to div and udiv.
5249         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
5250         d_operand in the splitters.  Remove redundant CONST_INT checks.
5251         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
5252         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
5253         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
5254         accordingly, using normal moves instead of unspecs to move LO into
5255         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
5256         (<u>mulsidi3): Handle expansion in C code.
5257         (<u>mulsidi3_32bit_internal): Rename to...
5258         (<u>mulsidi3_32bit): ...this.
5259         (<u>mulsidi3_32bit_r4000): Fix insn separator.
5260         (*<u>mulsidi3_64bit): Rename to...
5261         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
5262         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
5263         to set LO and HI to the multiplication result.  Use a normal move
5264         for MFLO and an unspec for MFHI.
5265         (*<u>mulsidi3_64bit_parts): Replace with...
5266         (<u>mulsidi3_64bit_hilo): ...this new instruction.
5267         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
5268         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
5269         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
5270         instead of HI.  Split the instruction into a separate multiplication
5271         and MFHI if !TARGET_FIX_R4000.
5272         (<su>muldi3_highpart): Likewise.
5273         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
5274         and the "=h" clobber.
5275         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
5276         (<u>mulditi3): New expander.
5277         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
5278         (madsi): Remove "=h" clobber.
5279         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
5280         Force the modulus result to be a GPR and split the instruction into
5281         a division followed by an MFHI after reload.
5282         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
5283         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
5284         the MIPS16 HIGH define_split.
5285         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
5286         of acc<->gpr moves to "multi".
5287         (*movdi_64bit): Replace the single "x" alternative with
5288         alternatives for moving into and out of "a".
5289         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
5290         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
5291         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
5292         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
5293         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
5294         (movti): New expander.
5295         (*movti, *movti_mips16): New insns.
5296         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
5297         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
5298         (mthi<GPR:mode>_<HILO:mode>): Likewise.
5299         * config/mips/predicates.md (fpr_operand): Delete.
5300         (d_operand): New predicate.
5301
5302 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
5303
5304         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
5305         failure on some Bourne shells.
5306         (x86_64-*-*): Ditto.
5307
5308 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
5309
5310         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
5311
5312 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
5313
5314         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
5315         (sparc-sun-solaris2*): Likewise.
5316
5317 2008-06-09  Arnaud Charlet  <charlet@adacore.com
5318
5319         * doc/install.texi: Update requirements to build the Ada compiler.
5320
5321 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
5322
5323         * df-scan.c (struct df_scan_problem_data): Remove the
5324         mw_link_pool alloc pool.
5325         (df_scan_free_internal): Don't free it.
5326         (df_scan_alloc): Don't allocate it.
5327         * df.h (struct df_link): Update comment.
5328
5329 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
5330
5331         * except.h: Correct checks for when SJLJ exceptions must be used.
5332
5333 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5334
5335         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
5336         default.
5337
5338 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
5339
5340         PR tree-optimization/36218
5341         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
5342         configure for the build system.
5343         (BUILD_LDFLAGS): Define.
5344         * configure: Regenerate.
5345         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
5346
5347 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
5348
5349         PR target/36424
5350         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
5351         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
5352         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
5353
5354 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
5355
5356         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
5357
5358 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
5359
5360         * config.gcc (Obsolete configurations): Remove list of
5361         configurations.
5362         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
5363         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
5364         targets matched by those patterns.
5365         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
5366         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
5367         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
5368         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
5369         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5370         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
5371         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
5372         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
5373         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
5374         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
5375         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
5376         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
5377         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
5378         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
5379         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
5380         Make code for Solaris 7 and greater unconditional for Solaris.
5381         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
5382         Remove --with-* handling.
5383         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
5384         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
5385         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
5386         LINK_OS_WINDISS_SPEC): Remove.
5387         * config/rs6000/sysv4.opt (mwindiss): Remove.
5388         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
5389         * configure: Regenerate.
5390         * doc/cpp.texi: Don't mention BeOS.
5391         * doc/extend.texi (interrupt): Don't mention MS1.
5392         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
5393         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
5394         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
5395         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
5396         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
5397         Remove.
5398         * doc/invoke.texi (MT Options): Remove.
5399         (-mwindiss): Remove.
5400         (CRIS Options): Remove cris-axis-aout references.
5401         (HPPA Options): Don't mention hppa1.1-*-pro.
5402         * doc/md.texi: (MorphoTech family): Remove.
5403         * libgcc2.c: Don't handle UWIN.
5404         * config/alpha/t-unicosmk: Remove.
5405         * config/alpha/unicosmk.h: Remove.
5406         * config/arm/kaos-arm.h: Remove.
5407         * config/arm/kaos-strongarm.h: Remove.
5408         * config/arm/strongarm-coff.h: Remove.
5409         * config/arm/strongarm-elf.h: Remove.
5410         * config/arm/strongarm-pe.h: Remove.
5411         * config/arm/t-strongarm-pe: Remove.
5412         * config/arm/t-xscale-coff: Remove.
5413         * config/arm/t-xscale-elf: Remove.
5414         * config/arm/xscale-coff.h: Remove.
5415         * config/arm/xscale-elf.h: Remove.
5416         * config/chorus.h: Remove.
5417         * config/cris/aout.h: Remove.
5418         * config/cris/aout.opt: Remove.
5419         * config/cris/t-aout: Remove.
5420         * config/i386/beos-elf.h: Remove.
5421         * config/i386/kaos-i386.h: Remove.
5422         * config/i386/ptx4-i.h: Remove.
5423         * config/i386/sco5.h: Remove.
5424         * config/i386/sco5.opt: Remove.
5425         * config/i386/sysv4-cpp.h: Remove.
5426         * config/i386/sysv5.h: Remove.
5427         * config/i386/t-beos: Remove.
5428         * config/i386/t-sco5: Remove.
5429         * config/i386/t-uwin: Remove.
5430         * config/i386/uwin.asm: Remove.
5431         * config/i386/uwin.h: Remove.
5432         * config/kaos.h: Remove.
5433         * config/mips/windiss.h: Remove.
5434         * config/mt: Remove directory.
5435         * config/pa/pa-osf.h: Remove.
5436         * config/pa/pa-pro-end.h: Remove.
5437         * config/pa/t-pro: Remove.
5438         * config/ptx4.h: Remove.
5439         * config/rs6000/beos.h: Remove.
5440         * config/rs6000/kaos-ppc.h: Remove.
5441         * config/rs6000/t-beos: Remove.
5442         * config/rs6000/windiss.h: Remove.
5443         * config/sh/kaos-sh.h: Remove.
5444         * config/sol2-6.h: Remove.
5445         * config/sparc/sol26-sld.h: Remove.
5446         * config/sparc/sysv4-only.h: Remove.
5447         * config/vax/bsd.h: Remove.
5448         * config/vax/t-memfuncs: Remove.
5449         * config/vax/ultrix.h: Remove.
5450         * config/vax/vaxv.h: Remove.
5451         * config/windiss.h: Remove.
5452
5453 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
5454
5455         PR rtl-optimization/36438
5456         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
5457         for vector shifts with constant scalar shift operands.
5458
5459 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
5460
5461         * doc/invoke.texi: Document -march=xlr.
5462         * config/mips/xlr.md: New file.
5463         * config/mips/mips.md: Include it.
5464         (cpu): Add "xlr".
5465         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
5466         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
5467         (mips_rtx_cost_data): Likewise.
5468
5469 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
5470
5471         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
5472         PRE_INC and PRE_DEC cases.
5473
5474 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
5475
5476         PR rtl-optimization/36419
5477         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
5478         the emitting jump insn.
5479
5480         PR target/36362
5481         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
5482         is not bool, boolify the whole *expr_p and convert to the desired type.
5483
5484 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
5485
5486         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
5487         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
5488         Add omp_private_outer_ref hook, add another argument to
5489         omp_clause_default_ctor hook.
5490         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
5491         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
5492         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
5493         hook_tree_tree_tree_tree_null.
5494         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
5495         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
5496         * hooks.c (hook_tree_tree_tree_tree_null): New function.
5497         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
5498         * tree.def (OMP_TASK): New tree code.
5499         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
5500         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
5501         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
5502         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
5503         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
5504         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
5505         OMP_CLAUSE_COLLAPSE_EXPR): Define.
5506         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5507         (OMP_DIRECTIVE_P): Add OMP_TASK.
5508         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
5509         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
5510         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
5511         and OMP_CLAUSE_UNTIED entries.
5512         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
5513         num_ops to 2.
5514         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5515         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
5516         * tree-pretty-print.c (dump_omp_clause): Handle
5517         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
5518         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5519         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
5520         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
5521         warning about unsigned iterators.  Change decl/init/cond/incr
5522         arguments to TREE_VECs, check arguments for all collapsed loops.
5523         (c_finish_omp_taskwait): New function.
5524         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
5525         ws_clauses.
5526         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
5527         default_function_array_conversion on init.  Add par_clauses argument.
5528         If decl is present in parallel's lastprivate clause, change it to
5529         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
5530         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
5531         collapse count in clauses.
5532         (c_parser_omp_for, c_parser_omp_parallel): Adjust
5533         c_parser_omp_for_loop callers.
5534         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
5535         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
5536         (c_parser_omp_clause_name): Handle collapse and untied clauses.
5537         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
5538         functions.
5539         (c_parser_omp_clause_schedule): Handle schedule(auto).
5540         Include correct location in the error message.
5541         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
5542         and PRAGMA_OMP_CLAUSE_UNTIED.
5543         (OMP_TASK_CLAUSE_MASK): Define.
5544         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
5545         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
5546         * tree-nested.c (convert_nonlocal_omp_clauses,
5547         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
5548         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
5549         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5550         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
5551         OMP_CLAUSE_DECL.
5552         (conver_nonlocal_reference, convert_local_reference,
5553         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
5554         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
5555         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
5556         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
5557         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
5558         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
5559         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
5560         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
5561         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5562         OMP_CLAUSE_UNTIED.
5563         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
5564         * c-common.h (c_finish_omp_taskwait): New prototype.
5565         * gimple-low.c (lower_stmt): Handle OMP_TASK.
5566         * tree-parloops.c (create_parallel_loop): Create 1 entry
5567         vectors for OMP_FOR_{INIT,COND,INCR}.
5568         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
5569         (make_edges): Handle OMP_TASK.
5570         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
5571         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5572         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
5573         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
5574         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
5575         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5576         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5577         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
5578         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
5579         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
5580         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
5581         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
5582         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
5583         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
5584         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
5585         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
5586         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
5587         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
5588         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
5589         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
5590         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
5591         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
5592         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
5593         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
5594         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
5595         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
5596         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
5597         original iterator is present in lastprivate clause or if
5598         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
5599         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5600         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
5601         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
5602         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
5603         if it is set, lookup var in outer contexts too.  Handle
5604         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
5605         to be implicitly determined firstprivate for task regions.
5606         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
5607         if it is set, lookup var in outer contexts too.  Set
5608         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
5609         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
5610         OMP_CLAUSE_UNTIED.  Take region_type as last argument
5611         instead of in_parallel and in_combined_parallel.
5612         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
5613         Adjust callers.
5614         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
5615         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
5616         (new_omp_context): Set default_kind to
5617         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
5618         (omp_region_type): New enum.
5619         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
5620         fields, add region_type.
5621         (new_omp_context): Take region_type as argument instead of is_parallel
5622         and is_combined_parallel.
5623         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
5624         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
5625         ctx->is_combined_parallel checks.
5626         (gimplify_omp_task): New function.
5627         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5628         OMP_CLAUSE_UNTIED.
5629         * omp-low.c (extract_omp_for_data): Use schedule(static)
5630         for schedule(auto).  Handle pointer and unsigned iterators.
5631         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
5632         Add loops argument.  Extract data for collapsed OMP_FOR loops.
5633         (expand_parallel_call): Assert sched_kind isn't auto,
5634         map runtime schedule to index 3.
5635         (struct omp_for_data_loop): New type.
5636         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
5637         Add loop, loops, collapse and iter_type fields.
5638         (workshare_safe_to_combine_p): Disallow combined for if
5639         iter_type is unsigned long long.  Don't combine collapse > 1 loops
5640         unless all bounds and steps are constant.  Adjust extract_omp_for_data
5641         caller.
5642         (expand_omp_for_generic): Handle pointer, unsigned and long long
5643         iterators.  Handle collapsed OMP_FOR loops.  Adjust
5644         for struct omp_for_data changes.  If libgomp function doesn't return
5645         boolean_type_node, add comparison of the return value with 0.
5646         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
5647         pointer, unsigned and long long iterators.  Adjust for struct
5648         omp_for_data changes.
5649         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
5650         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
5651         unsigned long long.  Allocate loops array, pass it to
5652         extract_omp_for_data.  For collapse > 1 loops use always
5653         expand_omp_for_generic.
5654         (omp_context): Add sfield_map and srecord_type fields.
5655         (is_task_ctx, lookup_sfield): New functions.
5656         (use_pointer_for_field): Use is_task_ctx helper.  Change first
5657         argument's type from const_tree to tree.  Clarify comment.
5658         In OMP_TASK disallow copy-in/out sharing.
5659         (build_sender_ref): Call lookup_sfield instead of lookup_field.
5660         (install_var_field): Add mask argument.  Populate both record_type
5661         and srecord_type if needed.
5662         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
5663         in srecord_type.
5664         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
5665         and DECL_FIELD_OFFSET.
5666         (scan_sharing_clauses): Adjust install_var_field callers.  For
5667         firstprivate clauses on explicit tasks allocate the var by value in
5668         record_type unconditionally, rather than by reference.
5669         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
5670         Use is_taskreg_ctx instead of is_parallel_ctx.
5671         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5672         (create_omp_child_function_name): Add task_copy argument, use
5673         *_omp_cpyfn* names if it is true.
5674         (create_omp_child_function): Add task_copy argument, if true create
5675         *_omp_cpyfn* helper function.
5676         (scan_omp_parallel): Adjust create_omp_child_function callers.
5677         Rename parallel_nesting_level to taskreg_nesting_level.
5678         (scan_omp_task): New function.
5679         (lower_rec_input_clauses): Don't run constructors for firstprivate
5680         explicit task vars which are initialized by *_omp_cpyfn*.
5681         Pass outer var ref to omp_clause_default_ctor hook if
5682         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
5683         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
5684         OMP_CLAUSE_REDUCTION_INIT.
5685         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
5686         avoid duplicate setting of fields.  Handle
5687         OMP_CLAUSE_PRIVATE_OUTER_REF.
5688         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
5689         copy-out if TREE_READONLY, only copy-in.
5690         (expand_task_copyfn): New function.
5691         (expand_task_call): New function.
5692         (struct omp_taskcopy_context): New type.
5693         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
5694         New functions.
5695         (lower_omp_parallel): Rename to...
5696         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
5697         Call create_task_copyfn if srecord_type is needed.  Adjust
5698         sender_decl type.
5699         (task_shared_vars): New variable.
5700         (check_omp_nesting_restrictions): Warn if work-sharing,
5701         barrier, master or ordered region is closely nested inside OMP_TASK.
5702         Add warnings for barrier if closely nested inside of work-sharing,
5703         ordered, or master region.
5704         (scan_omp_1): Call check_omp_nesting_restrictions even for
5705         GOMP_barrier calls.  Rename parallel_nesting_level to
5706         taskreg_nesting_level.  Handle OMP_TASK.
5707         (lower_lastprivate_clauses): Even if some lastprivate is found on a
5708         work-sharing construct, continue looking for them on parent parallel
5709         construct.
5710         (lower_omp_for_lastprivate): Add lastprivate clauses
5711         to the beginning of dlist rather than end.  Adjust for struct
5712         omp_for_data changes.
5713         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
5714         not after it.  Handle collapsed OMP_FOR loops, adjust for
5715         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
5716         (get_ws_args_for): Adjust extract_omp_for_data caller.
5717         (scan_omp_for): Handle collapsed OMP_FOR
5718         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5719         (lower_omp_single_simple): If libgomp function doesn't return
5720         boolean_type_node, add comparison of the return value with 0.
5721         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
5722         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
5723         (parallel_nesting_level): Rename to...
5724         (taskreg_nesting_level): ... this.
5725         (is_taskreg_ctx): New function.
5726         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
5727         of is_parallel_ctx.
5728         (execute_lower_omp): Rename parallel_nesting_level to
5729         taskreg_nesting_level.
5730         (expand_omp_parallel): Rename to...
5731         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
5732         Call omp_task_call for OMP_TASK regions.
5733         (expand_omp): Adjust caller, handle OMP_TASK.
5734         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
5735
5736         * bitmap.c (bitmap_default_obstack_depth): New variable.
5737         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
5738         if argument is NULL and bitmap_default_obstack is already initialized.
5739         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
5740         at the end.
5741         * matrix-reorg.c (matrix_reorg): Likewise.
5742
5743 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
5744
5745         * config/i386/i386.md (*indirect_jump): Macroize using P
5746         mode iterator.  Remove !TARGET_64BIT from insn constraints.
5747         (*tablejump_1): Ditto.
5748         (*indirect_jump_rex64): Remove insn pattern.
5749         (*tablejump_1_rex64): Ditto.
5750         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
5751         and eh_return_si insn patterns.
5752
5753 2008-06-06  Richard Guenther  <rguenther@suse.de>
5754
5755         * tree-ssa-structalias.c (merge_smts_into): Remove.
5756         (find_what_p_points_to): Do not bother to compute the
5757         points-to set for pt_anything pointers.
5758         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
5759         for pt_anything pointers is ok.
5760
5761 2008-06-06  Jan Hubicka  <jh@suse.cz>
5762
5763         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
5764
5765 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5766
5767         * cgraph.c: Fix typos in comments.
5768         (cgraph_availability_names): Fix string typo.
5769         * fold-const.c: Fix typos in comments.
5770         (fold_binary): Fix typo in warning.
5771         * genautomata.c: Fix typos in comments.
5772         (check_presence_pattern_sets): Fix typo in local variable.
5773         (output_description): Fix typo in output.
5774         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
5775         * hwint.h: Likewise.
5776         * matrix-reorg.c (check_allocation_function): Likewise.
5777         * omega.c (smooth_weird_equations): Likewise.
5778         * auto-inc-dec.c: Fix typos in comments.
5779         * bb-reorder.c: Likewise.
5780         * builtins.c: Likewise.
5781         * c-common.c: Likewise.
5782         * c-cppbuiltin.c: Likewise.
5783         * c-parser.c: Likewise.
5784         * c-pretty-print.c: Likewise.
5785         * cfgcleanup.c: Likewise.
5786         * cfgexpand.c: Likewise.
5787         * cfghooks.c: Likewise.
5788         * cfglayout.c: Likewise.
5789         * cfgloopmanip.c: Likewise.
5790         * cgraphunit.c: Likewise.
5791         * coverage.c: Likewise.
5792         * dbxout.c: Likewise.
5793         * df-byte-scan.c: Likewise.
5794         * df-core.c: Likewise.
5795         * df-problems.c: Likewise.
5796         * df-scan.c: Likewise.
5797         * dfp.c: Likewise.
5798         * dominance.c: Likewise.
5799         * domwalk.c: Likewise.
5800         * dse.c: Likewise.
5801         * dwarf2out.c: Likewise.
5802         * emit-rtl.c: Likewise.
5803         * et-forest.c: Likewise.
5804         * function.c: Likewise.
5805         * function.h: Likewise.
5806         * gcc.c: Likewise.
5807         * gcov-io.c: Likewise.
5808         * gcov.c: Likewise.
5809         * gcse.c: Likewise.
5810         * genattrtab.c: Likewise.
5811         * ggc-page.c: Likewise.
5812         * gimplify.c: Likewise.
5813         * gthr-lynx.h: Likewise.
5814         * haifa-sched.c: Likewise.
5815         * ipa-cp.c: Likewise.
5816         * ipa-inline.c: Likewise.
5817         * ipa-prop.h: Likewise.
5818         * ipa-pure-const.c: Likewise.
5819         * ipa-struct-reorg.c: Likewise.
5820         * ipa-struct-reorg.h: Likewise.
5821         * ipa-type-escape.c: Likewise.
5822         * ipa.c: Likewise.
5823         * loop-doloop.c: Likewise.
5824         * mips-tfile.c: Likewise.
5825         * mkmap-flat.awk: Likewise.
5826         * mkmap-symver.awk: Likewise.
5827         * modulo-sched.c: Likewise.
5828         * omp-low.c: Likewise.
5829         * optabs.c: Likewise.
5830         * optabs.h: Likewise.
5831         * opts.c: Likewise.
5832         * passes.c: Likewise.
5833         * postreload-gcse.c: Likewise.
5834         * postreload.c: Likewise.
5835         * predict.c: Likewise.
5836         * pretty-print.h: Likewise.
5837         * profile.c: Likewise.
5838         * protoize.c: Likewise.
5839         * ra-conflict.c: Likewise.
5840         * real.c: Likewise.
5841         * recog.c: Likewise.
5842         * regclass.c: Likewise.
5843         * regs.h: Likewise.
5844         * reload.c: Likewise.
5845         * rtl-error.c: Likewise.
5846         * rtlanal.c: Likewise.
5847         * scan.h: Likewise.
5848         * sched-rgn.c: Likewise.
5849         * see.c: Likewise.
5850         * stmt.c: Likewise.
5851         * target.h: Likewise.
5852         * tree-dfa.c: Likewise.
5853         * tree-eh.c: Likewise.
5854         * tree-flow-inline.h: Likewise.
5855         * tree-inline.c: Likewise.
5856         * tree-into-ssa.c: Likewise.
5857         * tree-loop-distribution.c: Likewise.
5858         * tree-nested.c: Likewise.
5859         * tree-parloops.c: Likewise.
5860         * tree-pass.h: Likewise.
5861         * tree-pretty-print.c: Likewise.
5862         * tree-profile.c: Likewise.
5863         * tree-scalar-evolution.c: Likewise.
5864         * tree-sra.c: Likewise.
5865         * tree-ssa-alias-warnings.c: Likewise.
5866         * tree-ssa-ccp.c: Likewise.
5867         * tree-ssa-coalesce.c: Likewise.
5868         * tree-ssa-dom.c: Likewise.
5869         * tree-ssa-dse.c: Likewise.
5870         * tree-ssa-forwprop.c: Likewise.
5871         * tree-ssa-live.c: Likewise.
5872         * tree-ssa-live.h: Likewise.
5873         * tree-ssa-loop-im.c: Likewise.
5874         * tree-ssa-loop-ivopts.c: Likewise.
5875         * tree-ssa-loop-niter.c: Likewise.
5876         * tree-ssa-loop-prefetch.c: Likewise.
5877         * tree-ssa-phiopt.c: Likewise.
5878         * tree-ssa-phiprop.c: Likewise.
5879         * tree-ssa-sccvn.c: Likewise.
5880         * tree-ssa-ter.c: Likewise.
5881         * tree-ssa-threadupdate.c: Likewise.
5882         * tree-ssa.c: Likewise.
5883         * tree-vect-analyze.c: Likewise.
5884         * tree-vect-transform.c: Likewise.
5885         * tree-vectorizer.c: Likewise.
5886         * tree-vn.c: Likewise.
5887         * tree-vrp.c: Likewise.
5888         * tree.c: Likewise.
5889         * tree.def: Likewise.
5890         * tree.h: Likewise.
5891         * unwind-dw2-fde.c: Likewise.
5892         * unwind.inc: Likewise.
5893         * value-prof.c: Likewise.
5894         * vmsdbgout.c: Likewise.
5895
5896 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
5897
5898         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
5899         always place FP constants in the TOC for TARGET_POWERPC64.
5900         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
5901
5902 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
5903
5904         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
5905         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
5906         enable for TARGET_E500_DOUBLE.
5907         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
5908         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
5909         floating-point modes like integer modes for E500 double.
5910         (rs6000_legitimate_offset_address_p): Likewise.
5911         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
5912         addressing for DDmode for E500 double.
5913         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
5914         modes as using 64-bits of registers for E500 double.
5915         (spe_build_register_parallel): Do not handle DDmode or TDmode.
5916         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
5917         specially for E500 double.
5918         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
5919         TDmode for E500 double.
5920         (rs6000_gimplify_va_arg): Only handle SDmode in registers
5921         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
5922         (rs6000_split_multireg_move): Do not handle TDmode specially for
5923         E500 double.
5924         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
5925         using 64-bit registers for E500 double.
5926         (emit_frame_save): Do not handle DDmode specially for E500 double.
5927         (gen_frame_mem_offset): Likewise.
5928         (rs6000_function_value): Do not call spe_build_register_parallel
5929         for DDmode or TDmode.
5930         (rs6000_libcall_value): Likewise.
5931         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
5932         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
5933         for E500 double.
5934
5935 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5936
5937         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
5938         in comments.
5939
5940 2008-06-04  Junjie Gu <jgu@tensilica.com>
5941
5942         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
5943         comparison for frame pointers.
5944
5945 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5946
5947         PR target/27386
5948         * config/avr/avr.h (PUSH_ROUNDING): Remove.
5949
5950 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5951
5952         PR target/30243
5953         * builtins.c (expand_builtin_signbit): Don't take lowpart when
5954         register is already smaller or equal to required mode.
5955
5956 2008-06-04  Xinliang David Li  <davidxl@google.com>
5957
5958         * tree-call-cdce.c: New file.
5959         (cond_dead_built_in_calls): New static variable.
5960         (input_domain): New struct.
5961         (check_pow): New function.
5962         (check_builtin_call): Ditto.
5963         (check_target_format): Ditto.
5964         (is_call_dce_candidate): Ditto.
5965         (gen_one_condition): Ditto.
5966         (gen_conditions_for_domain): Ditto.
5967         (get_domain): Ditto.
5968         (gen_conditions_for_pow_cst_base): Ditto.
5969         (gen_conditions_for_pow_int_base): Ditto.
5970         (gen_conditions_for_pow): Ditto.
5971         (get_no_error_domain): Ditto.
5972         (gen_shrink_wrap_conditions): Ditto.
5973         (shrink_wrap_one_built_in_call): Ditto.
5974         (shink_wrap_conditional_dead_built_in_calls): Ditto.
5975         (tree_call_cdce): Ditto.
5976         (gate_call_cdce): Ditto.
5977         (pass_call_cdce): New gimple pass.
5978         * passes.c: (init_optimization_passes): New pass.
5979         * tree-pass.h: New pass declaration.
5980         * opts.c (decode_options): New flag setting.
5981         * common.opt: Add -ftree-builtin-call-dce flag.
5982         * Makefile.in: Add new source file.
5983         * tempvar.def: New tv_id.
5984         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
5985
5986 2008-06-04  Richard Guenther  <rguenther@suse.de>
5987
5988         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
5989         (is_call_clobbered): Always check var_ann->call_clobbered.
5990         (mark_call_clobbered): Always set var_ann->call_clobbered.
5991         (clear_call_clobbered): Always clear var_ann->call_clobbered.
5992         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
5993         (reset_alias_info): Clear call clobbering info on MTAGs and
5994         globals as well.
5995         (set_pt_anything): Set pt_global_mem.
5996         (create_tag_raw): Adjust comment.
5997         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
5998
5999 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
6000             Maxim Kuvyrkov  <maxim@codesourcery.com>
6001
6002         * config/m68k/m68k.opt (mxgot): New option.
6003         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
6004         (m68k_output_addr_const_extra): New.
6005         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
6006         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
6007         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
6008         * doc/invoke.texi (M680x0 Options): Document -mxgot.
6009
6010 2008-06-04  Richard Guenther  <rguenther@suse.de>
6011
6012         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
6013         negative or non-representable offsets.
6014
6015 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
6016
6017         * config/i386/i386.c (ix86_gen_leave): New.
6018         (ix86_gen_pop1): Likewise.
6019         (ix86_gen_add3): Likewise.
6020         (ix86_gen_sub3): Likewise.
6021         (ix86_gen_sub3_carry): Likewise.
6022         (ix86_gen_one_cmpl2): Likewise.
6023         (ix86_gen_monitor): Likewise.
6024         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
6025         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
6026         ix86_gen_one_cmpl2 and ix86_gen_monitor.
6027         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
6028         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
6029         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
6030         (ix86_expand_epilogue): Updated.
6031         (print_operand): Handle integer register operand for 'z'.
6032         (ix86_expand_strlensi_unroll_1): Likewise.
6033         (ix86_expand_strlen): Likewise.
6034         (ix86_expand_builtin): Likewise.
6035         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
6036         mov{q}/mov{l} and add{q}/add{l}.
6037
6038 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
6039
6040         * config/i386/i386.md (P): New mode iterator.
6041         (SFmode push_operand splitter): Macroize DImode and SImode pushes
6042         using P mode iterator.
6043         (DFmode push_operand splitter): Ditto.
6044         (XFmode push_operand splitter): Ditto.
6045         (DFmode float_extend SFmode push_operand splitter): Ditto.
6046         (XFmode float_extend SFmode push_operand splitter): Do not generate
6047         SImode pushes for 64bit target.  Macroize Dimode and SImode
6048         pushes using P mode iterator.
6049         (XFmode float_extend DFmode push_operand splitter): Ditto.
6050
6051 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
6052
6053         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
6054         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
6055         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
6056         return type to int.
6057         (ix86_call_abi_override): Remove check for call_used_regs.
6058
6059 2008-06-03  Richard Guenther  <rguenther@suse.de>
6060
6061         * tree-ssa-structalias.c (find_func_aliases): Add constraints
6062         for the lhs of calls if the return type contains pointers.
6063
6064 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
6065
6066         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
6067         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
6068         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
6069         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
6070         of cfun and DEFAULT_ABI to deceide abi mode.
6071         (DEFAULT_ABI): New.
6072         (REG_PARM_STACK_SPACE): Removed.
6073         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
6074         (STACK_BOUNDARY): Use default target to deceide stack boundary.
6075         * config/i386/i386-protos.h (ix86_cfun_abi): New.
6076         (ix86_function_abi): Likewise.
6077         (ix86_function_type_abi): Likewise.
6078         (ix86_call_abi_override): Likewise.
6079         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
6080         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
6081         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
6082         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
6083         specific defines.
6084         (X86_64_REGPARM_MAX): New.
6085         (X86_64_SSE_REGPARM_MAX): New.
6086         (X64_REGPARM_MAX): New.
6087         (X64_SSE_REGPARM_MAX): New.
6088         (X86_32_REGPARM_MAX): New.
6089         (X86_32_SSE_REGPARM_MAX): New.
6090         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
6091         (ix86_function_regparm): Handle user calling abi.
6092         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
6093         by DEFAULT_ABI versus SYSV_ABI check.
6094         (ix86_reg_parm_stack_space): New.
6095         (ix86_function_type_abi): New.
6096         (ix86_call_abi_override): New.
6097         (ix86_function_abi): New.
6098         (ix86_cfun_abi): New.
6099         (init_cumulative_args): Call abi specific initialization.
6100         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
6101         (function_arg_64): Extend SSE_REGPARM_MAX check.
6102         (function_arg (): Remove TARGET_64BIT_MS_ABI.
6103         (ix86_pass_by_reference): Likewise.
6104         (ix86_function_value_regno_p): Likewise.
6105         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
6106         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
6107         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
6108         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
6109         (setup_incoming_varargs_64): Adjust regparm for call abi.
6110         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
6111         (ix86_va_start): Likewise.
6112         (ix86_gimplify_va_arg): Likewise.
6113         (ix86_expand_prologue): Likewise.
6114         (output_pic_addr_const): Likewise.
6115         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
6116         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
6117         (x86_output_mi_thunk): Likewise.
6118         (x86_function_profiler): Likewise.
6119         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
6120         (SYSV_ABI, MS_ABI): New constants.
6121         (DEFAULT_ABI): New.
6122         (init_regs): Add prototype of function in regclass.c file.
6123         (OVERRIDE_ABI_FORMAT): New.
6124         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
6125         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
6126         (OUTGOING_REG_PARM_STACK_SPACE): New.
6127         (ix86_reg_parm_stack_space): New prototype.
6128         (CUMULATIVE_ARGS): Add call_abi member.
6129         (machine_function): Add call_abi member.
6130         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
6131         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
6132
6133 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
6134
6135         PR target/34879
6136         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
6137         (avr_builtin_setjmp_frame_value): New function.
6138         * config/avr/avr.md (nonlocal_goto_receiver): Define.
6139         (nonlocal_goto): Define.
6140
6141 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
6142
6143         * config/mips/mips.c (mips_emit_loadgp): Return early if
6144         there is nothing do to, otherwise emit a blockage if
6145         !TARGET_EXPLICIT_RELOCS || crtl->profile.
6146         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
6147
6148 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6149
6150         * configure.ac: Drop unneeded backslash ending up in config.in.
6151         * acinclude.m4: Likewise.
6152         * config.in: Regenerate.
6153
6154 2008-05-26  Jan Hubicka  <jh@suse.cz>
6155
6156         * predict.c (maybe_hot_frequency_p): Break out of...
6157         (maybe_hot_bb_p): ... here.
6158         (maybe_hot_edge_p): New.
6159         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
6160         * basic-block.h (maybe_hot_edge_p): Declare.
6161
6162 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
6163
6164         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
6165         (*cmpfp_<mode>_cc): Ditto.
6166         (*fp_jcc_8<mode>_387): Ditto.
6167         (*fop_<MODEF:mode>_2_i387): Ditto.
6168         (*fop_<MODEF:mode>_3_i387): Ditto.
6169         (*fop_xf_2_i387): Ditto.
6170         (*fop_xf_3_i387): Ditto.
6171
6172 2008-06-02  Tomas Bily  <tbily@suse.cz>
6173
6174         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
6175
6176 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6177
6178         * config/mips/mips.c (mips_valid_offset_p): New function.
6179         (mips_valid_lo_sum_p): Likewise.
6180         (mips_classify_address): Use them.
6181         (mips_force_address): New function.
6182         (mips_legitimize_address): Use it.
6183         * config/mips/mips.md (MOVE128): New mode iterator.
6184         (movtf): Require TARGET_64BIT.  Remove empty strings.
6185         (*movtf_internal): Rename to...
6186         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
6187         of "R" and use {,fp}{load,store} attributes instead of "multi".
6188         Use a separate define_split.
6189         (*movtf_mips16): New pattern.
6190
6191 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6192
6193         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
6194         * config/mips/mips.c (mips_expand_before_return): New function.
6195         (mips_expand_epilogue): Call it.
6196         * config/mips/mips.md (return): Turn into a define_expand.
6197         (*return): New insn.
6198
6199 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
6200
6201         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
6202         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
6203         functions.  Do not emit uses and clobbers of CONCATs; individually
6204         use and clobber their operands.
6205         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
6206         gen_clobber, emit_use and gen_use.
6207         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
6208         (expand_builtin_return): Likewise.
6209         * cfgbuild.c (count_basic_blocks): Likewise.
6210         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6211         * explow.c (emit_stack_restore): Likewise.
6212         * expmed.c (extract_bit_field_1): Likewise.
6213         * expr.c (convert_move, emit_move_complex_parts): Likewise.
6214         (emit_move_multi_word, store_constructor): Likewise.
6215         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
6216         (thread_prologue_and_epilogue_insns): Likewise.
6217         * lower-subreg.c (resolve_simple_move): Likewise.
6218         * optabs.c (widen_operand, expand_binop): Likewise.
6219         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
6220         * reload.c (find_reloads): Likewise.
6221         * reload1.c (eliminate_regs_in_insn): Likewise.
6222         * stmt.c (expand_nl_goto_receiver): Likewise.
6223         * config/alpha/alpha.md (builtin_longjmp): Likewise.
6224         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
6225         * config/arm/arm.c (arm_load_pic_register): Likewise.
6226         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
6227         * config/arm/arm.md (untyped_return): Likewise.
6228         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
6229         * config/avr/avr.c (expand_prologue): Likewise.
6230         * config/bfin/bfin.c (do_unlink): Likewise.
6231         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
6232         * config/cris/cris.c (cris_expand_prologue): Likewise.
6233         * config/darwin.c (machopic_indirect_data_reference): Likewise.
6234         (machopic_legitimize_pic_address): Likewise.
6235         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
6236         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
6237         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
6238         (ix86_expand_convert_uns_didf_sse): Likewise.
6239         (ix86_expand_vector_init_general): Likewise.
6240         * config/ia64/ia64.md (eh_epilogue): Likewise.
6241         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
6242         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
6243         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
6244         (config/iq2000/iq2000.c): Likewise.
6245         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
6246         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6247         (builtin_longjmp): Likewise.
6248         * config/mn10300/mn10300.md (call, call_value): Likewise.
6249         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
6250         * config/pdp11/pdp11.md (abshi2): Likewise.
6251         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
6252         * config/s390/s390.c (s390_emit_prologue): Likewise.
6253         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
6254         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
6255         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
6256         * config/sh/sh.c (prepare_move_operands): Likewise.
6257         (output_stack_adjust, sh_expand_epilogue): Likewise.
6258         (sh_set_return_address, sh_expand_t_scc): Likewise.
6259         * config/sparc/sparc.c (load_pic_register): Likewise.
6260         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
6261         * config/spu/spu.c (spu_expand_epilogue): Likewise.
6262         * config/v850/v850.c (expand_epilogue): Likewise.
6263
6264 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
6265
6266         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
6267         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
6268         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
6269         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
6270         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
6271         stack pointer register.
6272         (output_movhi): Remove code for interrupt specific writing to the
6273         stack pointer register.
6274
6275 2008-05-31  Richard Guenther  <rguenther@suse.de>
6276
6277         PR tree-optimization/34244
6278         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
6279         (tree_expr_nonzero_warnv_p): Likewise.
6280         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
6281         ssa_name_nonnegative_p.
6282         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
6283         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
6284         not tree_expr_nonzero_warnv_p.
6285
6286         PR tree-optimization/36262
6287         Revert
6288         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
6289
6290         PR tree-optimization/34244
6291         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
6292         (record_numbers_of_iterations): New function.
6293         (execute_vrp): Cache the numbers of iterations of loops.
6294         * tree-scalar-evolution.c (scev_reset_except_niters):
6295         New function.
6296         (scev_reset): Use scev_reset_except_niters.
6297         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
6298
6299 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
6300
6301         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6302         __WORKAROUND_RETS when appropriate.
6303
6304 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
6305
6306         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
6307         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
6308         mode iterator.
6309         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
6310         *fop_df_comm_sse insn patterns using MODEF mode iterator.
6311         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
6312         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
6313         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
6314         *fop_df_1_mixed insn patterns using MODEF mode iterator.
6315         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
6316         *fop_df_1_sse insn patterns using MODEF mode iterator.
6317         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
6318         *fop_df_1_i387 insn patterns using MODEF mode iterator.
6319         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
6320         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
6321         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
6322         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
6323         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
6324         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
6325         (*fop_xf_4_i387): Use <MODE> for mode attribute.
6326         (*fop_xf_5_i387): Ditto.
6327         (*fop_xf_6_i387): Ditto.
6328
6329 2008-05-30  Richard Guenther  <rguenther@suse.de>
6330
6331         * builtins.c (build_string_literal): Avoid generating
6332         a non-gimple_val result.
6333
6334 2008-05-30  DJ Delorie  <dj@redhat.com>
6335
6336         * exec-tool.in: Use an environment variable (private) instead of a
6337         file (shared) as a semaphore, so as to not break parallel builds.
6338
6339 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
6340
6341         * optabs.c (maybe_encapsulate_block): Remove.
6342         (emit_libcall_block): Adjust accordingly.
6343         * optabs.h (maybe_encapsulate_block): Remove prototype.
6344
6345         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
6346         Don't use maybe_encapsulate_block.
6347
6348 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
6349
6350         * config/rs6000/rs6000.c (rs6000_legitimize_address,
6351         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
6352         rtx is a SYMBOL_REF before calling get_pool_constant.
6353
6354 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
6355
6356         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
6357
6358 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
6359
6360         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
6361         rather than OS names to choose INO_T_EQ definition.
6362         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
6363         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
6364
6365 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
6366
6367         PR target/36348
6368         * config/darwin-f.c: New.
6369         * config/t-darwin: Added rule to build darwin-f.o.
6370         * config.gcc: Defined new variable, fortran_target_objs.
6371         (*-*-darwin*): Set fortran_target_objs.
6372         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
6373         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
6374         * configure: Regenerated.
6375
6376 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6377
6378         PR target/35771
6379         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
6380         canonical type if needed.
6381
6382 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
6383
6384         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
6385
6386 2008-05-29  Richard Guenther  <rguenther@suse.de>
6387
6388         PR tree-optimization/36343
6389         PR tree-optimization/36346
6390         PR tree-optimization/36347
6391         * tree-flow.h (clobber_what_p_points_to): Declare.
6392         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
6393         pointed-to variable is dereferenced is irrelevant to whether
6394         the pointer can access the pointed-to variable.
6395         (clobber_what_p_points_to): New function.
6396         * tree-ssa-alias.c (set_initial_properties): Use it.
6397         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
6398         call clobber check for NMTs.
6399
6400 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
6401
6402         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
6403         for printing gcov_type.
6404
6405 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
6406
6407         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
6408         and the eh region information.
6409         * value-prof.c (gimple_move_stmt_histograms): New function.
6410         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
6411
6412 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
6413
6414         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
6415
6416 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
6417
6418         * value-prof.c (tree_ic_transform): Print counts.
6419         * tree-profile.c (tree_gen_ic_func_profiler):
6420         Clear __gcov_indreict_call_callee variable to avoid misattribution
6421         of the profile.
6422
6423 2008-05-28  Rafael Espindola  <espindola@google.com>
6424
6425         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
6426         invalid sharing.
6427
6428 2008-05-28  Richard Guenther  <rguenther@suse.de>
6429
6430         PR tree-optimization/36339
6431         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
6432         and clobbering code out of the loop.
6433
6434 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
6435
6436         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
6437         letters defined.
6438
6439         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
6440         s390_contiguous_bitmask_p, s390_symref_operand_p,
6441         s390_check_symref_alignment, s390_reload_larl_operand,
6442         s390_reload_symref_address): New functions.
6443         (s390_branch_condition_mnemonic): Support compare and branch
6444         instructions.
6445         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
6446         and 'W' constraints.
6447         (s390_secondary_reload): Add secondary reloads for unaligned
6448         symbol refs or symbol refs to floating point or QI/TI mode
6449         integer values.
6450         (legitimate_address_p): Accept symbol references as addresses.
6451         (s390_expand_insv): Use rotate and insert selected bits
6452         instruction for insv when building for z10.
6453         (print_operand_address): Handle symbol ref addresses.
6454         (print_operand): Output modifier 'c' added for signed byte values.
6455         (s390_encode_section_info): Mark symbol refs with
6456         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
6457
6458         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
6459         (length attribute): RRF, RRR have 4 byte length.
6460         (FPALL, INTALL): New mode iterators added.
6461         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
6462         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
6463         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
6464         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
6465         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
6466         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
6467         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
6468         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
6469         instructions.
6470         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
6471         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
6472         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
6473         reload<INTALL:mode><P:mode>_toreg_z10,
6474         reload<FPALL:mode><P:mode>_tomem_z10,
6475         reload<FPALL:mode><P:mode>_toreg_z10,
6476         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
6477         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
6478         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
6479         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
6480         definition.
6481         (movmem, clrmem, cmpmem): New splitters added.
6482
6483         * config/s390/predicates.md (larl_operand): Use
6484         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
6485         SYMBOL_REF_ALIGN1_P.
6486         (s390_signed_integer_comparison,
6487         s390_unsigned_integer_comparison): New predicates.
6488
6489         * config/s390/s390-protos.h (s390_check_symref_alignment,
6490         s390_contiguous_bitmask_p, s390_reload_larl_operand,
6491         s390_reload_symref_address,
6492         s390_compare_and_branch_condition_mask): Prototypes added.
6493
6494         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
6495         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
6496         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
6497
6498 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
6499
6500         * config/s390/s390.c (z10_cost): New cost function for z10.
6501         (s390_handle_arch_option, override_options): Support -march=z10 switch.
6502         (s390_issue_rate): Adjust issue rate for z10.
6503         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
6504         (processor_flags): Add PF_Z10.
6505         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
6506         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
6507         * gcc/config.gcc: Add z10.
6508
6509 2008-05-28  Richard Guenther  <rguenther@suse.de>
6510
6511         PR tree-optimization/36291
6512         * tree-flow. h (struct gimple_df): Remove var_anns member.
6513         * tree-flow-inline.h (gimple_var_anns): Remove.
6514         (var_ann): Simplify.
6515         * tree-dfa.c (create_var_ann): Simplify.
6516         (remove_referenced_var): Clear alias info from var_anns of globals.
6517         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
6518         (delete_tree_ssa): Clear alias info from var_anns of globals.
6519         Do not free var_anns.
6520         (var_ann_eq): Remove.
6521         (var_ann_hash): Likewise.
6522
6523 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
6524
6525         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
6526         and loongson2f entries.
6527         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
6528         * config/mips/mips.h (processor_type): Add Loongson-2E
6529         and Loongson-2F entries.
6530         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
6531         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
6532         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
6533         * doc/invoke.texi (MIPS Options): Document loongson2e
6534         and loongson2f processor names.
6535
6536 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
6537
6538         PR target/35767
6539         PR target/35771
6540         * config/i386/i386.c (ix86_function_arg_boundary): Use
6541         alignment of canonical type.
6542         (ix86_expand_vector_move): Check unaligned memory access for
6543         all SSE modes.
6544
6545 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
6546
6547         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
6548         Moved to the front of file.
6549
6550 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
6551             H.J. Lu  <hongjiu.lu@intel.com>
6552
6553         * dwarf2out.c (current_fde): New.
6554         (add_cfi): Use it.
6555         (lookup_cfa:): Likewise.
6556         (dwarf2out_end_epilogue): Likewise.
6557         (dwarf2out_note_section_used): Likewise.
6558
6559 2008-05-27  Michael Matz  <matz@suse.de>
6560
6561         PR c++/27975
6562         * c.opt (Wenum-compare): New warning option.
6563         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
6564
6565 2008-05-27  Michael Matz  <matz@suse.de>
6566
6567         PR middle-end/36326
6568         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
6569         non-BLKmode types.
6570         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
6571         into memory as tail calls.
6572
6573 2008-05-27  Richard Guenther  <rguenther@suse.de>
6574
6575         PR tree-optimization/36339
6576         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
6577         pointers cause all addressable variables to be call clobbered.
6578
6579 2008-05-27  Richard Guenther  <rguenther@suse.de>
6580
6581         PR tree-optimization/36245
6582         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
6583
6584 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6585
6586         * config/s390/s390.md: Replace all occurences of the 'm'
6587         constraint with 'RT'.
6588
6589 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6590
6591         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
6592         definitions added.
6593         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
6594         "*movdi_64".
6595         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
6596         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
6597         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
6598
6599 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6600
6601         * reload.c: (find_reloads): Skip alternatives according to the
6602         "enabled" attribute. Constify the constraint variable.
6603         * recog.c (get_attr_enabled): Add default implementation.
6604         (extract_insn): Set the alternative_enabled_p array
6605         in the recog_data struct.
6606         (preprocess_constraints, constrain_operands): Skip
6607         alternatives according to the "enabled" attribute
6608         * recog.h (struct recog_data): New field alternative_enabled_p.
6609         (skip_alternative): New inline function.
6610         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
6611         (record_reg_classes): Skip alternative according to the
6612         "enabled" attribute.
6613
6614         * doc/md.texi: Add documention for the "enabled" attribute.
6615
6616 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6617
6618         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
6619         * postreload.c (reload_cse_simplify_operands): Replace 'm'
6620         constraint with TARGET_MEM_CONSTRAINT.
6621         * recog.c (asm_operand_ok, preprocess_constraints,
6622         constrain_operands): Likewise.
6623         * regclass.c (record_reg_classes): Likewise.
6624         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
6625         * reload1.c (maybe_fix_stack_asms): Likewise.
6626         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
6627         * recog.h: Adjust comment.
6628         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
6629         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
6630         * doc/md.texi: Add a note to description of 'm' constraint.
6631         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
6632
6633 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6634
6635         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
6636         that the bitfield is of integral type before testing its precision.
6637
6638 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
6639             Sa Liu  <saliu@de.ibm.com>
6640
6641         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
6642         __modti3, __udivti3, __umodti3 and __udivmodti4.
6643         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
6644         that implement TImode mul and div functions.
6645         * config/spu/multi3.c: New. Implement __multi3.
6646         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
6647         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
6648         functions on SPU.
6649
6650 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
6651
6652         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
6653         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
6654         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
6655         tls_sysv_suffix): New mode and mode attribute iterators.
6656         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
6657         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
6658         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
6659         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
6660         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
6661         iterators.
6662
6663 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6664
6665         PR tree-optimization/36329
6666         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
6667         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
6668         * cgraphbuild.c (initialize_inline_failed): Use the latter
6669         macro in lieu of the former.
6670         * ipa-inline.c (cgraph_mark_inline): Likewise.
6671         (cgraph_decide_inlining_of_small_function): Likewise.
6672         (cgraph_decide_inlining): Likewise.
6673         (cgraph_decide_inlining_incrementally): Likewise.
6674
6675 2008-05-26  Tristan Gingold  <gingold@adacore.com>
6676             Anatoly Sokolov  <aesok@post.ru>
6677
6678         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
6679         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
6680         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
6681         optimization for 'avr6' architecture.
6682
6683 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
6684
6685         PR target/34932
6686         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
6687
6688 2008-05-26  Richard Guenther  <rguenther@suse.de>
6689
6690         * tree-ssa-sccvn.c (expr_has_constants): Declare.
6691         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
6692
6693 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
6694
6695         PR middle-end/36253
6696         * caller-save.c (insert_restore): Verify alignment of spill space.
6697         (insert_save): Likewise.
6698         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
6699         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
6700         (STACK_SLOT_ALIGNMENT): Likewise.
6701         * function.c (LOCAL_ALIGNMENT): Removed.
6702         (get_stack_local_alignment): New.
6703         (assign_stack_local): Use it.  Set alignment on stack slot.
6704         (assign_stack_temp_for_type): Use get_stack_local_alignment.
6705         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
6706         (STACK_SLOT_ALIGNMENT): New.
6707         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
6708         stack slot in XFmode.
6709
6710         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
6711
6712 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
6713
6714         PR/36321
6715         * config/i386/i386.md (allocate_stack_worker_64): Make sure
6716         argument operand in rax isn't removed.
6717
6718 2008-05-26  Richard Guenther  <rguenther@suse.de>
6719
6720         PR middle-end/36300
6721         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
6722         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
6723
6724 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6725
6726         PR bootstrap/36331
6727         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
6728
6729 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
6730
6731         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
6732         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
6733
6734 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6735
6736         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
6737         build a trampoline if we don't want one.
6738         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
6739         return zero for nested functions if we don't want a trampoline.
6740
6741 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6742
6743         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
6744
6745 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6746
6747         PR fortran/18428
6748         * c.opt: Removed undocumented option '-lang-fortran'.
6749         * c-common.h: Removed global variable 'lang_fortran'.
6750         * c-opts.c (c_common_handle_option): Removed code to handle
6751         option '-lang-fortran'. Updated includes.
6752         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
6753         definition of '__GFORTRAN__'.
6754         (define__GNUC__): Reimplemented to use BASEVER and
6755         cpp_define_formatted.
6756         (builtin_define_with_value_n): Removed.
6757         * c-incpath.h: Renamed to ...
6758         * incpath.h: ... this.
6759         * c-incpath.c: Renamed to ...
6760         * incpath.c: ... this. Updated includes.
6761         * fix-header.c: Updated includes.
6762         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
6763         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
6764         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
6765
6766 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6767
6768         * tree.h: Update the table of flags used on tree nodes.
6769         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
6770         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
6771         (FORCED_LABEL): Add access check.
6772         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
6773         (ASM_INPUT_P): Likewise.
6774         (ASM_VOLATILE_P): Likewise.
6775         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
6776         (OMP_SECTION_LAST): Access private_flag directly.
6777         (OMP_RETURN_NOWAIT): Likewise.
6778         (OMP_PARALLEL_COMBINED): Likewise.
6779         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
6780         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
6781         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
6782         deprecated_flag directly.
6783
6784 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6785
6786         * final.c (frame_pointer_needed): Removed.
6787         * flags.h (frame_pointer_needed): Likewise.
6788
6789         * function.h (rtl_data): Add frame_pointer_needed.
6790         (frame_pointer_needed): New.
6791
6792 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
6793
6794         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
6795
6796 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
6797
6798         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
6799         SRC is a REG.
6800
6801 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
6802
6803         * c-common.c (strip_array_types): Move function to..
6804         * tree.c: ..here.
6805         (get_inner_array_type): Delete.
6806         * c-common.h (strip_array_types): Move declaration to..
6807         * tree.h: ..here.
6808         (get_inner_array_type): Delete.
6809         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
6810         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6811         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6812         * config/pa/pa.c (emit_move_sequence): Likewise.
6813
6814 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6815
6816         * config/i386/i386.md (*sse_prologue_save_insn): Set length
6817         attribute to 34.
6818
6819 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
6820
6821         * function.c: Include target hook for nonlocal_goto frame value.
6822
6823 2008-05-24  Richard Guenther  <rguenther@suse.de>
6824
6825         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
6826         variable can be only accessed through a pointer or a union.
6827
6828 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6829
6830         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
6831         * doc/extend.texi: Likewise.
6832
6833 2008-05-23  DJ Delorie  <dj@redhat.com>
6834
6835         * config/m32c/jump.md (untyped_call): Add.
6836
6837         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
6838         for A24 to PSImode.
6839         (m32c_address_cost): Detail costs for indirect offsets.
6840
6841 2008-05-23  Rafael Espindola  <espindola@google.com>
6842
6843         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
6844         if a node is a SUBREG.
6845         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
6846         is a SUBREG.
6847
6848 2008-05-23  Paul Brook  <paul@codesourcery.com>
6849             Carlos O'Donell  <carlos@codesourcery.com>
6850
6851         * doc/extend.texi: Clarify use of __attribute__((naked)).
6852         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6853         * target.h (gcc_target): Add allocate_stack_slots_for_args.
6854         * function.c (use_register_for_decl): Use
6855         targetm.calls.allocate_stack_slots_for_args.
6856         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6857         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
6858         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
6859
6860 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
6861
6862         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
6863
6864 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
6865
6866         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
6867         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
6868         is only rounded once.
6869
6870 2008-05-23  Richard Guenther  <rguenther@suse.de>
6871
6872         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
6873
6874 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
6875             Jakub Jelinek  <jakub@redhat.com>
6876
6877         PR target/36079
6878         * configure.ac: Handle --enable-cld.
6879         * configure: Regenerated.
6880         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
6881         * config/i386/i386.h (struct machine_function): Add needs_cld field.
6882         (ix86_current_function_needs_cld): New define.
6883         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
6884         (cld): New isns pattern.
6885         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
6886         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
6887         * config/i386/i386.opt (mcld): New option.
6888         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
6889         TARGET_CLD and ix86_current_function_needs_cld.
6890         (override_options): Use -mcld by default for 32-bit code if
6891         USE_IX86_CLD.
6892
6893         * doc/install.texi (Options specification): Document --enable-cld.
6894         * doc/invoke.texi (Machine Dependent Options)
6895         [i386 and x86-64 Options]: Add -mcld option.
6896         (Intel 386 and AMD x86-64 Options): Document -mcld option.
6897
6898 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
6899         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
6900         (return_in_memory_64): Likewise.
6901         (return_in_memory_ms_64): Likewise.
6902
6903 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6904
6905         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
6906         * builtins.c (fold_builtin_fpclassify): New.
6907         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
6908         * builtins.def (BUILT_IN_FPCLASSIFY): New.
6909         * c-common.c (handle_type_generic_attribute): Adjust to accept
6910         fixed arguments before an elipsis.
6911         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
6912         * doc/extend.texi: Document __builtin_fpclassify.
6913
6914 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
6915
6916         * omp-low.c (gate_expand_omp_ssa): Remove.
6917         (pass_expand_omp_ssa): Remove.
6918         (gate_expand_omp): Do not check for flag_openmp_ssa.
6919         * common.opt (-fopenmp-ssa): Remove.
6920         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
6921
6922 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
6923
6924         * config/sh/sh.opt (mfixed-range): New option.
6925         * config/sh/sh-protos.h (sh_fix_range): Declare.
6926         * config/sh/sh.c (sh_fix_range): New function.
6927         * config/sh/sh.h (sh_fixed_range_str): Declare.
6928         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
6929         is not empty.
6930         * doc/invoke.texi (SH Options): Document -mfixed-range.
6931
6932 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
6933
6934         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
6935         it before the redeclaration.
6936
6937 2008-05-22  Anatoly Sokolov <aesok@post.ru>
6938
6939         * config/avr/avr.c (get_sequence_length): Add new function.
6940         (expand_prologue, expand_epilogue): Remove duplicate code.
6941
6942 2008-05-22  Rafael Espindola  <espindola@google.com>
6943
6944         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
6945         sharing.
6946
6947 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6948
6949         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
6950         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
6951
6952         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
6953         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
6954         (vect_update_misalignment_for_peel): Likewise.
6955         (vector_alignment_reachable_p): Likewise.
6956         * tree-vect-transform.c (vectorizable_load): Likewise.
6957         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
6958         (get_vectype_for_scalar_type): Pass mode of scalar_type
6959         to UNITS_PER_SIMD_WORD.
6960
6961         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
6962         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6963         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6964         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6965         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6966
6967 2008-05-22  Ira Rosen  <irar@il.ibm.com>
6968
6969         PR tree-optimization/36293
6970         * tree-vect-transform.c (vect_transform_strided_load): Don't check
6971         if the first load must be skipped because of a gap.
6972
6973 2008-05-22  Richard Guenther  <rguenther@suse.de>
6974
6975         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
6976         more cases of offset disambiguation that is possible if
6977         strict-aliasing rules apply.
6978         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6979         for basic offset and type-based disambiguation.
6980
6981 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6982
6983         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6984         ix86_expand_vector_set on V16QImode for SSE4.1.
6985
6986 2008-05-21  Tom Tromey  <tromey@redhat.com>
6987
6988         * c.opt (Wimport): Mark as undocumented.
6989         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6990         -Wno-import.
6991         (Warning Options): Likewise.
6992         * doc/cppopts.texi: Don't mention -Wimport.
6993
6994 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
6995
6996         PR tree-optimization/36287
6997         PR tree-optimization/36286
6998         * lambda-code.c (build_access_matrix): Do not use the loop->num
6999         for computing the number of induction variables: use the loop depth
7000         instead.
7001
7002 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
7003
7004         PR/36280
7005         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
7006         option -f(no-)leading-underscore.
7007
7008 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7009
7010         * config/i386/i386.c (ix86_expand_vector_init_general): Use
7011         GET_MODE_NUNITS (mode).
7012
7013 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
7014
7015         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
7016         (-mmulhw): Add 464 to description.
7017         (-mdlmzb): Likewise.
7018         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
7019         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
7020         464fp entries.
7021         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
7022         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
7023         * config/rs6000/rs6000.md: Update comments for 464.
7024
7025 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
7026
7027         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
7028
7029 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7030
7031         * config/i386/sse.md (vec_extractv4sf): Removed.
7032         (vec_extractv2df): Likewise.
7033         (vec_extractv2di): Likewise.
7034         (vec_extractv4si): Likewise.
7035         (vec_extractv8hi): Likewise.
7036         (vec_extractv16qi): Likewise.
7037         (vec_extract<mode>): New.
7038
7039 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7040
7041         * config/i386/sse.md (vec_setv4sf): Removed.
7042         (vec_setv2df): Likewise.
7043         (vec_setv2di): Likewise.
7044         (vec_setv4si): Likewise.
7045         (vec_setv8hi): Likewise.
7046         (vec_setv16qi): Likewise.
7047         (vec_set<mode>): New.
7048
7049 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7050
7051         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
7052         goto for vec_concat and vec_interleave.
7053
7054 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7055
7056         * config/i386/sse.md (vec_initv4sf): Removed.
7057         (vec_initv2df): Likewise.
7058         (vec_initv2di): Likewise.
7059         (vec_initv4si): Likewise.
7060         (vec_initv8hi): Likewise.
7061         (vec_initv16qi): Likewise.
7062         (vec_init<mode>): New.
7063
7064 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
7065
7066         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
7067
7068 2008-05-21  Tom Tromey  <tromey@redhat.com>
7069
7070         * ggc-zone.c (lookup_page_table_if_allocated): New function.
7071         (zone_find_object_offset): Likewise.
7072         (gt_ggc_m_S): Likewise.
7073         (highest_bit): Likewise.
7074         * ggc-page.c (gt_ggc_m_S): New function.
7075         * stringpool.c (string_stack): Remove.
7076         (init_stringpool): Update.
7077         (ggc_alloc_string): Use ggc_alloc.
7078         (maybe_delete_ident): New function.
7079         (ggc_purge_stringpool): Likewise.
7080         (gt_ggc_m_S): Remove.
7081         * ggc-common.c (ggc_protect_identifiers): New global.
7082         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
7083         ggc_protect_identifiers.
7084         * ggc.h (ggc_protect_identifiers): Declare.
7085         (gt_ggc_m_S): Update.
7086         (ggc_purge_stringpool): Declare.
7087         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
7088         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
7089         special case.
7090         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
7091
7092 2008-05-21  David S. Miller  <davem@davemloft.net>
7093
7094         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
7095         tmake_file.
7096
7097 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
7098
7099         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
7100         once finished.
7101
7102 2008-05-20  David Daney  <ddaney@avtrex.com>
7103
7104         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
7105         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
7106         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7107         UNSPEC_UPDATE_GOT_VERSION): Renumber.
7108         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
7109         (atomic_hiqi_op): New define_code_iterator.
7110         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
7111         mips_expand_compare_and_swap_12.
7112         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
7113         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
7114         (sync_<optab><mode>, sync_old_<optab><mode>,
7115         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
7116         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
7117         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
7118         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
7119         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
7120         (test_and_set_12): New insn.
7121         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
7122         sync_new_<optab><mode>, sync_old_nand<mode>,
7123         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
7124         clobber to operand 0 for SI and DI mode insns.
7125         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
7126         mips_gen_fn_4): New typedefs.
7127         (mips_gen_fn_ptrs): Define new union type.
7128         (mips_expand_compare_and_swap_12): Remove declaration.
7129         (mips_expand_atomic_qihi): Declare function.
7130         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
7131         (mips_expand_atomic_qihi): ... this.  Use new generator function
7132         parameter.
7133         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
7134         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
7135         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
7136         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
7137         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
7138         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
7139         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
7140         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
7141         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
7142         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
7143         New macros.
7144
7145 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
7146
7147         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
7148         the missing break.
7149
7150 2008-05-20  Anatoly Sokolov <aesok@post.ru>
7151
7152         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
7153         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
7154         (avr_attribute_table): Add 'OS_main' function attribute.
7155         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
7156         functions with 'OS_main' attribute.
7157
7158 2008-05-20  Richard Guenther  <rguenther@suse.de>
7159
7160         PR tree-optimization/35204
7161         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
7162         helper, split out from ...
7163         (DFS): ... here.  Make the DFS walk non-recursive.
7164
7165 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
7166             Jan Sjodin  <jan.sjodin@amd.com>
7167
7168         PR tree-optimization/36181
7169         * tree-parloops.c (loop_has_vector_phi_nodes): New.
7170         (parallelize_loops): Don't parallelize when the loop has vector
7171         phi nodes.
7172
7173 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
7174             Sebastian Pop  <sebastian.pop@amd.com>
7175
7176         * tree-loop-linear.c (gather_interchange_stats): Look in the access
7177         matrix, and never look at the tree representation of the memory
7178         accesses.
7179         (linear_transform_loops): Computes parameters and access matrices.
7180         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
7181         when fails.
7182         (access_matrix_get_index_for_parameter): New.
7183         * tree-data-ref.h (struct access_matrix): New.
7184         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
7185         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
7186         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
7187         am_vector_index_for_loop): New.
7188         (struct data_reference): Add field access_matrix.
7189         (DR_ACCESS_MATRIX): New.
7190         (compute_data_dependences_for_loop): Update declaration.
7191         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
7192         * lambda.h (lambda_vector_vec_p): Declared.
7193         * lambda-code.c: Depend on pointer-set.h.
7194         (lambda_collect_parameters_from_af, lambda_collect_parameters,
7195         av_for_af_base, av_for_af, build_access_matrix,
7196         lambda_compute_access_matrices): New.
7197         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
7198
7199 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
7200
7201         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
7202         $SOURCEDIR/include.
7203
7204 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
7205             Sebastian Pop  <sebastian.pop@amd.com>
7206
7207         PR tree-optimization/36206
7208         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
7209         FOLD_CONVERSIONS.
7210         (instantiate_scev_1): Rename flags to fold_conversions.
7211         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
7212         outeside instantiation_loop.
7213         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
7214         (evolution_function_is_affine_or_constant_p): Removed.
7215         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
7216         instantiate_scev.
7217         (analyze_siv_subscript): Pass in the loop nest number.
7218         Call evolution_function_is_affine_in_loop instead of
7219         evolution_function_is_affine_p.
7220         (analyze_overlapping_iterations): Pass in the loop nest number.
7221
7222 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
7223             Sebastian Pop  <sebastian.pop@amd.com>
7224
7225         PR tree-optimization/36206
7226         * tree-chrec.h (chrec_fold_op): New.
7227         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
7228         and other trees.
7229
7230 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
7231
7232         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
7233         (DIRS_EQ): New.
7234         (remove_duplicates): Do not set inode on non-inode systems.
7235         Use DIRS_EQ.
7236
7237 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
7238
7239         * config.gcc (tm_file): Update comments about relative pathnames.
7240
7241 2008-05-20  Richard Guenther  <rguenther@suse.de>
7242
7243         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
7244         * tree-ssa-sccvn.c (process_scc): Likewise.
7245         * tree-ssa-sink.c (execute_sink_code): Likewise.
7246         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
7247         * tree-vrp.c (process_assert_insertions): Likewise.
7248         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7249         (perform_tree_ssa_dce): Likewise.
7250         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
7251         (dump_dominator_optimization_stats): Likewise.
7252         * tree-vectorizer.c (vectorize_loops): Likewise.
7253
7254 2008-05-20  Richard Guenther  <rguenther@suse.de>
7255
7256         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
7257
7258 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
7259
7260         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
7261         (ix86_i386elf_return_in_memory): Likewise.
7262         (ix86_i386interix_return_in_memory): Likewise.
7263         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
7264         (SUBTARGET_RETURN_IN_MEMORY): New.
7265         * config/i386/i386elf.h: Likewise.
7266         * config/i386/ptx4-i.h: Likewise.
7267         * config/i386/sol2-10.h: Likewise.
7268         * config/i386/sysv4.h: Likewise.
7269         * config/i386/vx-common.h: Likewise.
7270         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
7271         * config/i386/i386.c (ix86_return_in_memory): Made static and
7272         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
7273         (ix86_i386elf_return_in_memory): Removed.
7274         (ix86_i386interix_return_in_memory): Removed.
7275         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
7276         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
7277
7278 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
7279
7280         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
7281
7282 2008-05-19  Xinliang David Li  <davidxl@google.com>
7283
7284         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
7285         * opts.c: Ditto.
7286         * common.opt: Ditto.
7287         * doc/invoke.texi: Ditto.
7288
7289 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
7290
7291         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
7292         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
7293
7294 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7295
7296         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
7297         sizes of operand array from 8/4 to 4/2.
7298         (ix86_expand_vector_init_general): Change size of operand array
7299         from 32 to 16.  Remove op0, op1 and half_mode.
7300
7301 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7302
7303         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
7304         (ix86_expand_vector_init_interleave): Likewise.
7305         (ix86_expand_vector_init_general): Use them.  Assert
7306         word_mode == SImode when n_words == 4.
7307
7308 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
7309
7310         * config/i386/i386.c (ix86_secondary_reload): New static function.
7311         (TARGET_SECONDARY_RELOAD): New define.
7312         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
7313         * config/i386/i386.md (reload_outqi): Remove.
7314
7315 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7316
7317         PR middle-end/35509
7318         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
7319         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
7320         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
7321         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
7322         (fold_builtin_1): Likewise.
7323         * builtins.def (BUILT_IN_ISINF_SIGN): New.
7324         c-common.c (check_builtin_function_arguments): Handle
7325         BUILT_IN_ISINF_SIGN.
7326         * doc/extend.texi: Document __builtin_isinf_sign.
7327         * fold-const.c (operand_equal_p): Handle COND_EXPR.
7328
7329 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
7330
7331         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
7332         EH cleanup at the end of the pass, search for those that have been
7333         turned into forwarder blocks and do the cleanup on their successor.
7334
7335 2008-05-18  Richard Guenther  <rguenther@suse.de>
7336
7337         * tree-cfg.c (verify_gimple_expr): Allow conversions from
7338         pointers to sizetype and vice versa.
7339
7340 2008-05-18 Xinliang David Li   <davidxl@google.com>
7341
7342         * gcc/tree-ssa-dce.c: Coding style fix.
7343         (check_pow): Documentation comment.
7344         (check_log): Documenation comment. Coding style fix.
7345         (is_unnecessary_except_errno_call): Ditto.
7346         (gen_conditions_for_pow): Ditto.
7347         (gen_conditions_for_log): Ditto.
7348         (gen_shrink_wrap_conditions): Ditto.
7349         (shrink_wrap_one_built_in_calls): Ditto.
7350         * gcc/doc/invoke.texi: Better documentation string.
7351         * ChangeLog: Fix wrong change log entries from
7352         May 17 checkin on function call DCE.
7353
7354 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
7355
7356         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
7357
7358 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
7359
7360         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
7361         * df-problems.c (simulation routines): Fixed block comment to
7362         properly say how to add forwards scanning functions.
7363
7364 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
7365
7366         * tree-inline.c (setup_one_parameter): Remove dead code.
7367
7368 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
7369
7370         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
7371         a BIT_AND_EXPR only for an INTEGER_TYPE.
7372
7373 2008-05-17 Xinliang David Li   <davidxl@google.com>
7374
7375         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
7376         (check_pow, check_log, is_unnecessary_except_errno_call): New
7377         functions to check for eliminating math functions that are pure
7378         except for setting errno.
7379         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
7380         general condition expressions for shrink-wrapping pow/log calls.
7381         (gen_shrink_wrap_conditions): Ditto.
7382         (shrink_wrap_one_built_in_call): Ditto.
7383         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
7384         (mark_operand_necessary): If debugging, output if OP is necessary.
7385         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
7386         unnecessary.
7387         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
7388         opt level >= 2.
7389         * gcc/common.opt: New user flag -ftree-builtin-dce.
7390         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
7391
7392 2008-05-16  David S. Miller  <davem@davemloft.net>
7393
7394         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
7395         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7396
7397 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
7398
7399         PR target/36246
7400         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
7401
7402 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7403
7404         * ifcvt.c (dead_or_predicable): Rename
7405         df_simulate_one_insn_backwards to df_simulate_one_insn.
7406         * recog.c (peephole2_optimize): Ditto.
7407         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
7408         Ditto.
7409         * df.h: Rename df_simulate_one_insn_backwards to
7410         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
7411         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
7412         scanning of defs and uses.
7413         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
7414         (df_simulate_one_insn_forwards): Removed.
7415
7416 2008-05-16  Doug Kwan  <dougkwan@google.com>
7417
7418         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
7419         QNaN & SNaN.
7420         (real_from_string): Handle NaNs and Inf as approriate.
7421
7422 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
7423
7424         * doc/gty.texi (Source Files Containing Type Information): Note
7425         that headers should appear first in the gtfiles list.
7426
7427 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7428
7429         * tree.def (COND_EXEC): Properly documented this code.
7430
7431 2008-05-16  Diego Novillo  <dnovillo@google.com>
7432
7433         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
7434         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
7435         the new field.
7436
7437 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7438
7439         * tree-ssa-dse (max_stmt_uid): Removed.
7440         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
7441         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
7442         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
7443         * function.h (cfun.last_stmt_uid): New field.
7444         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
7445         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
7446         New functions.
7447         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
7448         (create_stmt_ann): Initialize the ann->uid field.
7449         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
7450         with new calls.
7451         * tree-flow.h (renumber_gimple_stmt_uids): New function.
7452
7453 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
7454
7455         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
7456         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
7457         (init_empty_tree_cfg): Call it.
7458
7459 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7460
7461         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
7462         Update all users.
7463
7464 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7465
7466         * doc/invoke.text (-fdump-tree-*-verbose): New option.
7467         * tree-dump.c (dump_options): New verbose option.
7468         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
7469         Add verbose dump.
7470         * tree-pass.h (TDF_VERBOSE): New dump flag.
7471         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
7472         (tree-flow.h): Added include.
7473         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
7474
7475 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
7476
7477         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
7478
7479         From Jie Zhang  <jie.zhang@analog.com>
7480         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7481         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
7482         mcpu=bf561-none and mcpu=bf561-0.2.
7483         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7484         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7485         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7486         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7487         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
7488         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
7489         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
7490         option.
7491         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
7492         (cputype_selected): Remove.
7493         (bfin_handle_option): Don't use cputype_selected.
7494         (override_options): When no mcpu option, enable all workarounds.
7495         Don't use bfin_workarounds.
7496         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
7497         processor type.
7498         (DEFAULT_CPU_TYPE): Don't define.
7499
7500 2008-05-16  Richard Guenther  <rguenther@suse.de>
7501
7502         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
7503         on deletion of the last stmt.
7504
7505 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7506
7507         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
7508         V8HImode for SSE2 and V16QImode for SSE4.1.
7509
7510 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
7511
7512         * cgraph.h (compute_inline_parameters): Made public.
7513         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
7514         variable_generate_summary, function_write_summary,
7515         variable_write_summary, variable_read_summary.  Added generate_summary,
7516         write_summary, read_summary.
7517         * cgraphunit.c (cgraph_process_new_functions): Changed call from
7518         pass_ipa_inline.function_generate_summary, to
7519         compute_inline_parameters.
7520         * ipa-inline.c (compute_inline_parameters): Made public and added
7521         node parameter.
7522         (compute_inline_parameters_for_current): New function.
7523         (pass_inline_param): Now calls compute_inline_parameters_for_current.
7524         (inline_generate_summary): Removed parameter and made to loop over
7525         all cgraph nodes.
7526         (pass_ipa_inline): Updated for new IPA_PASS structure.
7527         * passes.c (execute_ipa_summary_passes): Now is called once per
7528         pass rather than once per node*pass.
7529
7530 2008-05-15  Anatoly Sokolov <aesok@post.ru>
7531
7532         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
7533         avr_have_mul_p, avr_asm_only_p): Remove variables.
7534         (avr_override_options): Remove initialization of removed variables.
7535         (avr_file_start):  Convert removed variables to fields of
7536         'struct base_arch_s *avr_current_arch'.
7537         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
7538         (AVR_HAVE_MUL): (Ditto.).
7539         (AVR_HAVE_MOVW): (Ditto.).
7540         (AVR_HAVE_LPMX): (Ditto.).
7541         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
7542         avr_asm_only_p): Remove declaration.
7543
7544 2008-05-15  Diego Novillo  <dnovillo@google.com>
7545
7546         * config/arm/arm.c (arm_return_in_memory): Fix return type.
7547         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
7548
7549 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
7550
7551         PR middle-end/36194
7552         * combine.c (check_conversion): Rename back to check_promoted_subreg.
7553         Don't call record_truncated_value from here.
7554         (record_truncated_value): Turn it into a for_each_rtx callback.
7555         (record_truncated_values): New function.
7556         (combine_instructions): Call note_uses with record_truncated_values.
7557         Change name of check_conversion to check_promoted_subreg.
7558
7559 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
7560
7561         * doc/sourcebuild.texi: Document support for torture tests.
7562
7563 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
7564
7565         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
7566         to alternative 4 of operand 2.
7567
7568 2008-05-15  Richard Guenther  <rguenther@suse.de>
7569
7570         * tree-pass.h (current_pass): Declare.
7571         (get_pass_for_id): Likewise.
7572         * passes.c (passes_by_id, passes_by_id_size): New globals.
7573         (set_pass_for_id): New function.
7574         (get_pass_for_id): Likewise.
7575         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
7576         (execute_function_todo): Flush per function statistics.
7577         * toplev.c (compile_file): Init statistics.
7578         (general_init): Do early statistics initialization.
7579         (finalize): Finish statistics.
7580         * statistics.h (statistics_early_init): Declare.
7581         (statistics_init): Likewise.
7582         (statistics_fini): Likewise.
7583         (statistics_fini_pass): Likewise.
7584         (statistics_counter_event): Likewise.
7585         (statistics_histogram_event): Likewise.
7586         * statistics.c: New file.
7587         * Makefile.in (OBJS-common): Add statistics.o.
7588         (statistics.o): Add dependencies.
7589         * doc/invoke.texi (-fdump-statistics): Document.
7590
7591         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
7592         (insert): Likewise.
7593         (execute_pre): Use statistics_counter_event.
7594         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
7595         (substitute_and_fold): Increment it.  Use statistics_counter_event.
7596
7597 2008-05-15  Diego Novillo  <dnovillo@google.com>
7598
7599         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
7600
7601         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
7602         * tree-ssa-alias.c (new_type_alias): Remove references to
7603         sub-variables from comment.
7604         * tree-ssa-operands.c (swap_tree_operands): Likewise.
7605
7606 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7607
7608         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
7609         attribute to 1 only for insertps alternative.
7610
7611 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
7612
7613         * config/bfin/bfin.md (loadbytes): New pattern.
7614         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
7615         (bfin_init_builtins): Initialize it.
7616         (bdesc_1arg): Add it.
7617
7618 2008-05-15  Sa Liu  <saliu@de.ibm.com>
7619
7620         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
7621         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
7622         * testsuite/lib/target-supports.exp: Add
7623         check_effective_target_fortran_integer_16.
7624
7625 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
7626
7627         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
7628         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
7629         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
7630         (TARGET_RETURN_IN_MEMORY): Define.
7631
7632 2008-05-15  Richard Guenther  <rguenther@suse.de>
7633
7634         PR middle-end/36244
7635         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
7636         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
7637         represent unmodifiable vars.
7638
7639 2008-05-15  Richard Guenther  <rguenther@suse.de>
7640
7641         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
7642         INDIRECT_REF and TARGET_MEM_REF.
7643         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7644         TARGET_MEM_REF.
7645
7646 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
7647             H.J. Lu  <hongjiu.lu@intel.com>
7648
7649         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
7650         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
7651         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
7652         insn alternatives.  Add missing alternatives.
7653         (*vec_concatv2di_rex64_sse4_1): Likewise.
7654         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
7655         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
7656         Require TARGET_SSE.
7657
7658 2008-05-15  Richard Guenther  <rguenther@suse.de>
7659
7660         PR tree-optimization/36009
7661         PR tree-optimization/36204
7662         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
7663         (determine_invariantness_stmt): Record the loop a store is
7664         always executed in.
7665         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
7666         dependency.
7667
7668 2008-05-15  Richard Guenther  <rguenther@suse.de>
7669
7670         PR tree-optimization/34330
7671         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
7672         through the pointer will alias the SMT.
7673
7674 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
7675
7676         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
7677
7678 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7679
7680         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
7681
7682 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7683             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
7684
7685         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
7686         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
7687         (vashl_optab): New optab for vector/vector shifts.
7688         (vashr_optab): Ditto.
7689         (vlshr_optab): Ditto.
7690         (vrotl_optab): Ditto.
7691         (vrotr_optab): Ditto.
7692         (optab_subtype): New enum for optab_for_tree_code call.
7693         (optab_for_tree_code): Add enum optab_subtype argument.
7694
7695         * optabs.c (optab_for_tree_code): Take an additional argument to
7696         distinguish between a vector shift by a scalar and vector shift by
7697         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
7698         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
7699         vector shift by a vector.
7700         (expand_widen_pattern_expr): Pass additional argument to
7701         optab_for_tree_code.
7702
7703         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
7704         vrotl_optab, vrotr_optab.
7705
7706         * expr.c (expand_expr_real_1): Update calls to
7707         optab_for_tree_code to distinguish between vector shifted by a
7708         scalar and vector shifted by a vector.
7709         * tree-vectorizer.c (supportable_widening_operation): Ditto.
7710         (supportable_narrowing_operation): Ditto.
7711         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
7712         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
7713         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
7714         (vect_create_epilog_for_reduction): Ditto.
7715         (vectorizable_reduction): Ditto.
7716         (vectorizable_operation): Ditto.
7717         (vect_strided_store_supported): Ditto.
7718         (vect_strided_load_supported): Ditto.
7719         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
7720         * expmed.c (expand_shift): Ditto.
7721
7722         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
7723         scalar type.
7724         (ashr@var{m}3): Ditto.
7725         (vashl@var{m}3): Document new vector/vector shift standard name.
7726         (vashr@var{m}3): Ditto.
7727         (vlshr@var{m}3): Ditto.
7728         (vrotl@var{m}3): Ditto.
7729         (vrotr@var{m}3): Ditto.
7730
7731         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
7732         (PPERM_INVERT): Ditto.
7733         (PPERM_REVERSE): Ditto.
7734         (PPERM_REV_INV): Ditto.
7735         (PPERM_ZERO): Ditto.
7736         (PPERM_ONES): Ditto.
7737         (PPERM_SIGN): Ditto.
7738         (PPERM_INV_SIGN): Ditto.
7739         (PPERM_SRC1): Ditto.
7740         (PPERM_SRC2): Ditto.
7741
7742         * config/i386/sse.md (mulv2di3): Add SSE5 support.
7743         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
7744         allows a memory operand to be the value being added, and split it
7745         to improve vectorization.
7746         (sse5_pmacsdqh_mem): Ditto.
7747         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
7748         (sse5_mulv2div2di3_high): Ditto.
7749         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
7750         (vec_pack_trunc_v4si): Ditto.
7751         (vec_pack_trunc_v2di): Ditto.
7752         (sse5_pcmov_<mode>): Remove code that tried to use use
7753         andps/andnps instead of pcmov.
7754         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
7755         pmacsdqh instructions.
7756         (vec_widen_smult_lo_v4si): Ditto.
7757
7758         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
7759         (PPERM_INVERT): Ditto.
7760         (PPERM_REVERSE): Ditto.
7761         (PPERM_REV_INV): Ditto.
7762         (PPERM_ZERO): Ditto.
7763         (PPERM_ONES): Ditto.
7764         (PPERM_SIGN): Ditto.
7765         (PPERM_INV_SIGN): Ditto.
7766         (PPERM_SRC1): Ditto.
7767         (PPERM_SRC2): Ditto.
7768         (ix86_expand_sse_movcc): Move the SSE5 test after the if
7769         true/false tests.
7770         (ix86_expand_int_vcond): If SSE5 generate all possible integer
7771         comparisons.
7772         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
7773         says ignore whether the last reference is a memory operand.
7774
7775 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7776             Paolo Bonzini <bonzini at gnu dot org>
7777
7778         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
7779         shift patterns.
7780
7781         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
7782         (vlshr<mode>3): Rename from vlshr<mode>3.
7783         (vashr<mode>3): Rename from vashr<mode>3.
7784         (mulv4sf3): Change the names of vector shift patterns.
7785         (mulv4si3): Ditto.
7786         (negv4sf2): Ditt.
7787
7788         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
7789         shift insns.
7790
7791         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
7792         (SI_SHLHI): Ditto.
7793         (SI_SHL): Ditto.
7794         (SI_SHLI): Ditto.
7795         (SI_ROTH): Ditto.
7796         (SI_ROTHI): Ditto.
7797         (SI_ROT): Ditto.
7798         (SI_ROTI): Ditto.
7799         (SPU_RL_0): Ditto.
7800         (SPU_RL_1): Ditto.
7801         (SPU_RL_2): Ditto.
7802         (SPU_RL_3): Ditto.
7803         (SPU_RL_4): Ditto.
7804         (SPU_RL_5): Ditto.
7805         (SPU_RL_6): Ditto.
7806         (SPU_RL_7): Ditto.
7807         (SPU_SL_0): Ditto.
7808         (SPU_SL_1): Ditto.
7809         (SPU_SL_2): Ditto.
7810         (SPU_SL_3): Ditto.
7811         (SPU_SL_4): Ditto.
7812         (SPU_SL_5): Ditto.
7813         (SPU_SL_6): Ditto.
7814         (SPU_SL_7): Ditto.
7815
7816         * config/spu/spu.md (v): New iterator macro to add v for vector types.
7817         (floatunssidf2_internal): Change vector/vector shift names.
7818         (floatunsdidf2_internal): Ditto.
7819         (mulv8hi3): Ditto.
7820         (ashrdi3): Ditto.
7821         (ashrti3): Ditto.
7822         (cgt_df): Ditto.
7823         (cgt_v2df): Ditto.
7824         (dftsv): Ditto.
7825         (vashl<mode>3): Rename from ashl<mode>3.
7826         (vashr<mode>3): Rename from ashr<mode>3.
7827         (vlshr<mode>3): Rename from lshr<mode>3.
7828         (vrotl<mode>3): Rename from rotl<mode>3.
7829
7830 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7831
7832         PR target/36224
7833         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
7834         multiply gives the wrong value when doing widening multiplies.
7835         (vec_widen_smult_lo_v4si): Ditto.
7836
7837 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7838
7839         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
7840         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
7841         emit_library_call_value.
7842         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
7843         * tree.h (ECF_LIBCALL_BLOCK): Removed.
7844         * calls.c (initialize_argument_information, precompute_arguments,
7845         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
7846         (precompute_arguments): Removed flags parameter.
7847         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
7848
7849 2008-05-14  Richard Guenther  <rguenther@suse.de>
7850
7851         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
7852         Make sure to register the store if the use is a PHI_NODE.
7853
7854 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7855
7856         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
7857         memory if the component is to be referenced in BLKmode according
7858         to get_inner_reference.
7859
7860 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
7861
7862         * calls.c (emit_library_call_value_1): Restore code clearing
7863         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
7864
7865 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7866             Nicolas Roche  <roche@adacore.com>
7867
7868         * configure.ac: Add support for a "gcc_subdir" variable in
7869         config-lang.in, to denote a subdirectory where the language/GCC
7870         integration files are to be found.
7871         * configure: Regenerate.
7872
7873 2008-05-14  Ira Rosen  <irar@il.ibm.com>
7874
7875         PR tree-optimization/36098
7876         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
7877         value for the first load in the group in case of a gap.
7878         (vect_build_slp_tree): Check that there are no gaps in loads.
7879
7880 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7881
7882         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
7883         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
7884         expand_copysign_bit, ): Change call to emit_no_conflict_block to
7885         emit_insn and remove unneeded code to construct extra args.
7886         (emit_no_conflict_block): Removed.
7887         * optabls.h: (emit_no_conflict_block): Removed.
7888         * cse.c (cse_extended_basic_block): Remove search for
7889         REG_NO_CONFLICT note.
7890         * global.c: Removed incorrect comment added in revision 117.
7891         * expr.c (convert_move): Change call to emit_no_conflict_block to
7892         emit_insn.
7893         * recog.c: Change comments so that they do not mention
7894         REG_NO_CONFLICT.
7895         * local_alloc.c (combine_regs): Removed last parameter.
7896         (no_conflict_p): Removed.
7897         (block_alloc): Removed note, no_conflict_combined_regno and set
7898         local vars. Removed all code to process REG_NO_CONFLICT blocks.
7899         (combine_regs): Removed already_dead and code to look for
7900         REG_NO_CONFLICT notes.
7901         * lower_subreg (remove_retval_note): Removed code to look for
7902         REG_NO_CONFLICT block.
7903         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
7904         (resolve_clobber): Remove code to process libcalls that have
7905         REG_NO_CONFLICT notes.
7906         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
7907         case.
7908         * combine.c (can_combine_p, distribute_notes):  Removed
7909         REG_NO_CONFLICT case.
7910         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
7911         to emit_insns.
7912         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
7913         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
7914         Ditto.
7915         * reg-notes.def (NO_CONFLICT): Removed.
7916
7917 2008-05-14  David S. Miller  <davem@davemloft.net>
7918
7919         * config/sparc/sparc.c (sparc_profile_hook): If
7920         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
7921         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
7922         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7923
7924 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7925
7926         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
7927
7928 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
7929
7930         PR target/36222
7931         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
7932         and op1 expansion before vector concat to have less live pseudos.
7933
7934 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
7935
7936         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
7937         ix86_expand_vector_set if supported.
7938
7939 2008-05-13  Diego Novillo  <dnovillo@google.com>
7940             Kenneth Zadeck  <zadeck@naturalbridge.com>
7941
7942         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
7943
7944         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
7945         phinodes_print_statistics, init_ssanames, fini_ssanames,
7946         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
7947         release_ssa_name, release_defs, replace_ssa_name_symbol,
7948         ssanames_print_statistics): Move ...
7949         * tree-flow.h: ... here.
7950         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
7951         Use FN instead of cfun.
7952         (make_ssa_name_fn): Rename from make_ssa_name.
7953         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
7954         * tree-flow-inline.h (make_ssa_name): Move from
7955         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
7956         * omp-low.c (expand_omp_parallel):
7957         * tree-flow-inline.h (redirect_edge_var_map_result):
7958         * tree-ssa.c (init_tree_ssa): Add argument FN.
7959         Use it instead of cfun.  Update all users.
7960
7961 2008-05-13  Tom Tromey  <tromey@redhat.com>
7962
7963         PR preprocessor/22168:
7964         * doc/cpp.texi (Top): Update menu.
7965         (Alternatives to Wrapper #ifndef): New node.
7966         (Other Directives): Document deprecation.
7967         (Obsolete Features): Remove menu.
7968         (Assertions): Merge node into Obsolete Features.
7969         (Obsolete once-only headers): Move earlier; rename to Alternatives
7970         to Wrapper #ifndef.
7971         * doc/cppopts.texi: Update.
7972         * c.opt (Wdeprecated): Enable for C and ObjC.
7973         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7974         (C++ Dialect Options): Move -Wno-deprecated from here to...
7975         (Warning Options): ... here.
7976
7977 2008-05-13  Richard Guenther  <rguenther@suse.de>
7978
7979         PR middle-end/36227
7980         * fold-const.c (fold_sign_changed_comparison): Do not allow
7981         changes in pointer-ness.
7982
7983 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7984
7985         PR target/24713
7986         * config/sh/sh.c (sh_expand_prologue): Don't clear
7987         RTX_FRAME_RELATED_P for push insns.
7988
7989 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
7990
7991         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7992
7993 2008-05-12  Anatoly Sokolov <aesok@post.ru>
7994
7995         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7996         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7997         Use 'machine->is_leaf' instead of 'leaf_func_p'.
7998
7999 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
8000
8001         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
8002         (*vec_concatv4sf_sse): This.
8003         (*sse2_concatv2si): Renamed to ...
8004         (*vec_concatv2si_sse2): This.
8005         (*sse1_concatv2si): Renamed to ...
8006         (*vec_concatv2si_sse): This.
8007         (*vec_concatv2di_rex): Renamed to ...
8008         (*vec_concatv2di_rex64): This.
8009         (*vec_concatv2si_sse4_1): New.
8010         (*vec_concatv2di_rex64_sse4_1): Likewise.
8011
8012 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
8013
8014         PR rtl-optimization/36111
8015         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
8016         that was created for swappable operands.
8017
8018 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
8019
8020         PR ada/36001
8021         * Makefile.in: Substitute GNATMAKE and GNATBIND.
8022         * configure.ac: Add call to ACX_PROG_GNAT.
8023
8024 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
8025
8026         * optc-gen.awk: Fix comment typo.
8027
8028 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
8029
8030         * pretty-print.c (pp_integer_with_precision): Use
8031         HOST_LONG_LONG_FORMAT.
8032
8033 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
8034
8035         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
8036
8037 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8038
8039         * config/i386/i386.c (bdesc_ptest): Removed.
8040         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
8041         (bdesc_args): Add __builtin_ia32_ptestz128,
8042         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
8043         (ix86_init_mmx_sse_builtins): Updated.
8044         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
8045         (ix86_expand_builtin): Updated.
8046
8047 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
8048
8049         * tree-cfg.c (valid_fixed_convert_types_p): New function.
8050         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
8051
8052 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
8053
8054         * value-prof.c (interesting_stringop_to_profile): Do not
8055         return early for BUILT_IN_MEMPCPY.
8056
8057 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
8058
8059         * calls.c (expand_call): Don't use callgraph to increase
8060         preferred_stack_boundary.
8061
8062         * cgraph.h (cgraph_rtl_info): Use unsigned on
8063         preferred_incoming_stack_boundary.
8064
8065         * final.c (rest_of_clean_state): Use unsigned on
8066         preferred_stack_boundary.
8067
8068 2008-05-09  Tom Tromey  <tromey@redhat.com>
8069
8070         PR preprocessor/22231:
8071         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
8072         proceeding.
8073
8074 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
8075
8076         PR tree-optimization/36129
8077         * tree-ssa-ccp.c: Include value-prof.h.
8078         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
8079         built-in function was folded to a constant.
8080         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
8081
8082 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
8083             Sebastian Pop  <sebastian.pop@amd.com>
8084
8085         * tree-scalar-evolution.c: Document instantiate_scev.
8086         (instantiate_parameters_1): Renamed instantiate_scev_1.
8087         Don't use the same loop for instantiation_loop and evolution_loop.
8088         (instantiate_scev): New.
8089         (instantiate_parameters): Moved...
8090         (resolve_mixers): Update call to instantiate_scev_1 to pass the
8091         same loop twice.  Maintains the semantics for this function.
8092         * tree-scalar-evolution.h (instantiate_scev): Declare.
8093         (instantiate_parameters): ...here.  Now static inline.
8094         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
8095         instead of resolve_mixers.
8096
8097 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
8098
8099         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
8100
8101 2008-05-09  Tomas Bily  <tbily@suse.cz>
8102
8103         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
8104         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
8105         * tree-ssa-structalias.c (get_constraint_for): Likewise.
8106         * c-common.c (c_common_truthvalue_conversion): Likewise.
8107         * tree-object-size.c (compute_object_offset): Likewise.
8108         * tree-inline.c (estimate_num_insns_1): Likewise.
8109         * varasm.c (const_hash_1, compare_constant, copy_constant)
8110         (compute_reloc_for_constant, output_addressed_constants)
8111         (initializer_constant_valid_p): Likewise.
8112         * c-omp.c (check_omp_for_incr_expr): Likewise.
8113         * gimplify.c (gimplify_expr): Likewise.
8114         * c-typeck.c (c_finish_return): Likewise.
8115         * tree-vectorizer.c (supportable_widening_operation)
8116         (supportable_narrowing_operation): Likewise.
8117         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
8118         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
8119         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
8120         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
8121         (descr_info_loc): Likewise.
8122         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8123         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
8124         (fold_unary): Likewise.
8125         * builtins.c (get_pointer_alignment): Likewise.
8126         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
8127         (instantiate_parameters_1): Likewise.
8128         * tree.c (expr_align, stabilize_reference): Likewise.
8129         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
8130         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
8131         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
8132         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8133         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
8134         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
8135         Likewise.
8136         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
8137         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
8138         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
8139         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
8140         (forward_propagate_comparison)
8141         (tree_ssa_forward_propagate_single_use_vars): Likewise.
8142         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
8143         * emit-rtl.c (component_ref_for_mem_expr)
8144         (set_mem_attributes_minus_bitpos): Likewise.
8145         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
8146         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
8147         Likewise.
8148         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
8149         (build_function_call, pointer_diff, build_compound_expr)
8150         (c_finish_return): Likewise.
8151         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
8152         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
8153         Likewise.
8154         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
8155         * expr.c (is_aligning_offset): Likewise.
8156         * tree-ssa-alias.c (is_escape_site): Likewise.
8157         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
8158         (check_all_va_list_escapes): Likewise.
8159         * tree-ssa-loop-ivopts.c (determine_base_object)
8160         (determine_common_wider_type): Likewise.
8161         * dojump.c (do_jump): Likewise.
8162         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
8163         * tree-gimple.c (is_gimple_cast): Likewise.
8164         * fold-const.c (decode_field_reference, )
8165         (fold_sign_changed_comparison, fold_unary, fold_comparison)
8166         (fold_binary): Likewise.
8167         * tree-ssa-alias-warnings.c (find_alias_site_helper)
8168         (already_warned_in_frontend_p): Likewise.
8169         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
8170         * tree.c (really_constant_p, get_unwidened): Likewise.
8171         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
8172         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
8173         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
8174         Likewise.
8175         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
8176         CONVERT_EXPR_P.
8177         (CONVERT_EXPR_P): Define.
8178         (CASE_CONVERT): Define.
8179
8180 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
8181
8182         PR middle-end/36117
8183         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
8184         (delete_unmarked_insns): When deleting a call, call
8185         delete_unreachable_blocks.
8186         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8187         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
8188
8189 2008-05-08  Richard Guenther  <rguenther@suse.de>
8190
8191         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
8192         (-ftree-salias): Likewise.
8193         (salias-max-implicit-fields): Remove param documentation.
8194         (salias-max-array-elements): Likewise.
8195         * tree-pass.h (pass_create_structure_vars): Remove.
8196         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8197         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8198         * tree-ssa-alias.c (create_structure_vars): Remove.
8199         (gate_structure_vars): Likewise.
8200         (pass_create_structure_vars): Likewise.
8201         (gate_build_alias): Likewise.
8202         (pass_build_alias): Adjust to run always and dump the function.
8203         * common.opt (ftree-salias): Hide.
8204         * passes.c (init_optimization_passes): Remove
8205         pass_create_structure_vars, adjust comment.
8206         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8207         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8208         * opts.c (decode_options): Do not set flag_tree_salias.
8209         (common_handle_option): Add OPT_ftree_salias to the backward
8210         compatibility section.
8211
8212 2008-05-08  Richard Guenther  <rguenther@suse.de>
8213
8214         * tree-flow-inline.h (var_can_have_subvars): Move ...
8215         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
8216         * tree-flow.h (var_can_have_subvars): Remove.
8217         (push_fields_onto_fieldstack): Remove.
8218         (sort_fieldstack): Likewise.
8219         (struct fieldoff): Move ...
8220         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
8221         alias_set and base_for_components fields.
8222         (sort_fieldstack): Make static.
8223         (push_fields_onto_fieldstack): Likewise.  Remove code that
8224         handles anything but RECORD_TYPEs.  Remove alias_set and
8225         base_for_components handling.
8226         (create_variable_info_for): Adjust.
8227
8228 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
8229
8230         * common.opt (Wframe-larger-than=): Shorten the help message
8231         to one line.
8232         * doc/invoke.texi (Wframe-larger-than=): Add more description.
8233
8234 2008-05-08  Rafael Espindola  <espindola@google.com>
8235
8236         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
8237         trap.
8238         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
8239         trap and that both operands are gimple values.
8240         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
8241         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
8242         is a fp operation.
8243
8244 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
8245
8246         * read-rtl.c (join_c_conditions): Return the first string if the
8247         two strings are equal.
8248
8249 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
8250
8251         * gensupport.h (pred_data): Add a "num_codes" field.
8252         (add_predicate_code): Declare.
8253         * gensupport.c (add_predicate_code): New function.
8254         (std_pred_table): Add an "allows_const_p" field.
8255         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
8256         Remove the (incomplete) list of such codes from the codes field.
8257         (init_predicate_table): Use add_predicate_code.  Add all
8258         RTX_CONST_OBJs if allows_const_p is true.
8259         * genrecog.c (process_define_predicate): Use add_predicate_code.
8260
8261 2008-05-08  David Daney  <ddaney@avtrex.com>
8262             Richard Sandiford  <rsandifo@nildram.co.uk>
8263
8264         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
8265         special case of constant zero operands.
8266         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
8267         old and new values.  Special case constant zero values.
8268         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
8269         fails.
8270         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
8271         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
8272
8273 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
8274
8275         PR target/36090
8276         * simplify-rtx.c (simplify_plus_minus): Create CONST of
8277         similar RTX_CONST_OBJ before CONST_INT.
8278
8279 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
8280
8281         * stmt.c (expand_stack_restore): Change sa mode if needed.
8282
8283 2008-05-08  Richard Guenther  <rguenther@suse.de>
8284
8285         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
8286         return type to bool.
8287         (ix86_sol10_return_in_memory): Likewise.
8288         (ix86_i386elf_return_in_memory): Likewise.
8289         (ix86_i386interix_return_in_memory): Likewise.
8290         * config/i386/i386.c (ix86_return_in_memory): Likewise.
8291         (ix86_sol10_return_in_memory): Likewise.
8292         (ix86_i386elf_return_in_memory): Likewise.
8293         (ix86_i386interix_return_in_memory): Likewise.
8294
8295 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
8296
8297         PR bootstrap/36180
8298         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
8299         fndecl argument.
8300         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
8301         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
8302         declared in front.
8303
8304 2008-05-08  Richard Guenther  <rguenther@suse.de>
8305
8306         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
8307         * tree-data-ref.h (struct dr_alias): Remove subvars field.
8308         (DR_SUBVARS): Remove.
8309         * tree-dfa.c (dump_subvars_for): Remove.
8310         (debug_subvars_for): Likewise.
8311         (dump_variable): Do not dump subvars.
8312         (remove_referenced_var): Do not remove subvars.
8313         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
8314         (lookup_subvars_for_var): Remove.
8315         (get_subvars_for_var): Likewise.
8316         (get_subvars_at): Likewise.
8317         (get_first_overlapping_subvar): Likewise.
8318         (overlap_subvar): Likewise.
8319         * tree-flow.h (subvar_t): Remove.
8320         (struct var_ann_d): Remove subvars field.
8321         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
8322         argument.  Remove special handling of SFTs.
8323         (compute_tag_properties): Likewise.
8324         (set_initial_properties): Likewise.
8325         (compute_call_clobbered): Likewise.
8326         (count_mem_refs): Likewise.
8327         (compute_memory_partitions): Likewise.
8328         (compute_flow_insensitive_aliasing): Likewise.
8329         (setup_pointers_and_addressables): Likewise.
8330         (new_type_alias): Likewise.
8331         (struct used_part): Remove.
8332         (used_portions): Likewise.
8333         (struct used_part_map): Likewise.
8334         (used_part_map_eq): Likewise.
8335         (used_part_map_hash): Likewise.
8336         (free_used_part_map): Likewise.
8337         (up_lookup): Likewise.
8338         (up_insert): Likewise.
8339         (get_or_create_used_part_for): Likewise.
8340         (create_sft): Likewise.
8341         (create_overlap_variables_for): Likewise.
8342         (find_used_portions): Likewise.
8343         (create_structure_vars): Likewise.
8344         * tree.def (STRUCT_FIELD_TAG): Remove.
8345         * tree.h (MTAG_P): Adjust.
8346         (struct tree_memory_tag): Remove base_for_components and
8347         unpartitionable flags.
8348         (struct tree_struct_field_tag): Remove.
8349         (SFT_PARENT_VAR): Likewise.
8350         (SFT_OFFSET): Likewise.
8351         (SFT_SIZE): Likewise.
8352         (SFT_NONADDRESSABLE_P): Likewise.
8353         (SFT_ALIAS_SET): Likewise.
8354         (SFT_UNPARTITIONABLE_P): Likewise.
8355         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
8356         (union tree_node): Remove sft field.
8357         * alias.c (get_alias_set): Remove special handling of SFTs.
8358         * print-tree.c (print_node): Remove handling of SFTs.
8359         * tree-dump.c (dequeue_and_dump): Likewise.
8360         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
8361         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
8362         * tree-predcom.c (set_alias_info): Do not set subvars.
8363         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
8364         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
8365         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
8366         (add_vars_for_offset): Remove.
8367         (add_virtual_operand): Remove special handling of SFTs.
8368         (add_call_clobber_ops): Likewise.
8369         (add_call_read_ops): Likewise.
8370         (get_asm_expr_operands): Likewise.
8371         (get_modify_stmt_operands): Likewise.
8372         (get_expr_operands): Likewise.
8373         (add_to_addressable_set): Likewise.
8374         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
8375         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8376         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
8377         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
8378         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
8379         (tree_node_structure): Likewise.
8380         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
8381         handling of SFTs.
8382         (find_what_p_points_to): Likewise.
8383
8384 2008-05-08  Sa Liu  <saliu@de.ibm.com>
8385
8386         * config/spu/spu.md: Fixed subti3 pattern.
8387
8388 2008-05-08  Richard Guenther  <rguenther@suse.de>
8389
8390         PR middle-end/36154
8391         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8392         sure to create a representative for trailing arrays for PTA.
8393
8394 2008-05-08  Richard Guenther  <rguenther@suse.de>
8395
8396         PR middle-end/36172
8397         * fold-const.c (operand_equal_p): Two objects which types
8398         differ in pointerness are not equal.
8399
8400 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
8401
8402         * calls.c (compute_argument_block_size): Add argument tree fndecl.
8403         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
8404         (emit_library_call_value_1): Add new variable fndecl initialized by
8405         NULL_TREE. It should be the decl type of orgfun, but this information
8406         seems not to be available here, so it uses the default calling abi.
8407         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
8408         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
8409         by TARGET_RETURN_IN_MEMORY.
8410         * config/i386/i386-interix.h: Likewise.
8411         * config/i386/i386.h: Likewise.
8412         * config/i386/i386elf.h: Likewise.
8413         * config/i386/ptx4-i.h: Likewise.
8414         * config/i386/sol2-10.h: Likewise.
8415         * config/i386/sysv4.h: Likewise.
8416         * config/i386/vx-common.h: Likewise.
8417         * config/cris/cris.h: Removed #if 0 clause.
8418         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
8419         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
8420         argument.
8421         (ix86_sol10_return_in_memory): Likewise.
8422         (ix86_i386elf_return_in_memory): New.
8423         (ix86_i386interix_return_in_memory): New.
8424         * config/mt/mt-protos.h (mt_return_in_memory): New.
8425         * config/mt/mt.c: Likewise.
8426         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8427         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
8428         * config/bfin/bfin.h: Likewise.
8429         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
8430         argument.
8431         * config/bfin/bfin.c: Likewise.
8432         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8433         * config/alpha/unicosmk.h: Likewise.
8434         * config/i386/cygming.h: Likewise.
8435         * config/iq2000/iq2000.h: Likewise.
8436         * config/mips/mips.h: Likewise.
8437         * config/mn10300/mn10300.h: Likewise.
8438         * config/rs6000/rs6000.h: Likewise.
8439         * config/score/score.h: Likewise.
8440         * config/spu/spu.h: Likewise.
8441         * config/v850/v850.h: Likewise.
8442         * defaults.h: Likewise.
8443         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
8444         * expr.c (emit_block_move): Adjust use of
8445         OUTGOING_REG_PARM_STACK_SPACE.
8446         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
8447         OUTGOING_REG_PARM_STACK_SPACE.
8448         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
8449
8450 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
8451
8452         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
8453         on OMP_RETURN for OMP_FOR.
8454
8455         PR debug/35896
8456         * dwarf2out.c (dw_expand_expr, common_check): Removed.
8457         (fortran_common): New function.
8458         (gen_variable_die): Call fortran_common instead of common_check,
8459         adjust for it returning tree instead of rtx.  Formatting.
8460
8461 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
8462
8463         PR rtl/7335
8464         PR rtl/33826
8465         * see.c (see_copy_insn): Copy new pure const attributes for new call.
8466         * c-decl.c (merge_decls): Ditto.
8467         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
8468         to RTL_CONST_OR_PURE_CALL_P.
8469         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
8470         Initialized DECL_LOOPING_CONST_PURE.
8471         (process_call_operands): Set tree_side_effects properly.
8472         * tree.h (TREE_READONLY_DECL_P): Removed.
8473         (DECL_IS_PURE): Renamed to DECL_PURE_P.
8474         (DECL_LOOPING_OR_CONST_P): New macro.
8475         (struct tree_function_decl): Added looping_const_or_pure_p.
8476         (ECF_*) Renumbered.
8477         (ECF_LOOPING_OR_CONST_P): New macro.
8478         * rtlanal.c (pure_const_p): Removed.
8479         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
8480         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
8481         to RTL_CONST_CALL_P.
8482         * ipa-pure-const.c (pure_const_state_e): Added looping field.
8483         (check_decl, check_tree, check_call, scan_function): Initialize
8484         looping.
8485         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
8486         (static_execute): Set looping true for recursive functions.
8487         Undo setting state to IPA_NEITHER for recursive functions.
8488         * cse.c (cse_insn):
8489         * ifcvt.c (noce_can_store_speculate_p): Changed
8490         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
8491         RTL_CONST_OR_PURE_CALL_P.
8492         * dse.c (scan_insn): Ditto.
8493         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
8494         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
8495         RTL_CONST_OR_PURE_CALL_P.
8496         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
8497         pure_call_p to RTL_CONST_CALL_P.
8498         * gimplify.c (gimplify_call_expr): Clear side effects for
8499         non-looping pure and constant calls.
8500         * calls.c (emit_call_1): Set rtl flags from ecf flags.
8501         (flags_from_decl_or_type): Set ecf flags from decl flags.
8502         (initialize_argument_information): Turn off
8503         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
8504         Change const to pure if callee_copies is true rather than just
8505         turning off const.
8506         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
8507         way of marking pure calls.
8508         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
8509         Remove hack that was supposed to fix pr7335 and remove old
8510         way of marking pure calls.
8511         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
8512         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
8513         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
8514         RTL_CONST_OR_PURE_CALL_P.
8515         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
8516         * loop-invariant.c (find_exits, find_invariant_bb): Changed
8517         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
8518         * sched-deps.c (schedule_analyze): Ditto.
8519         * rtl.h (struct rtx_def): Use call field, unchanging field, and
8520         return_val field of calls to represent pure and const function info.
8521         (CONST_OR_PURE_CALL_P): Deleted macro.
8522         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8523         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
8524         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
8525         TREE_READONLY.
8526         * tree-optimize.c (execute_fixup_cfg): Added test for
8527         ECF_LOOPING_CONST_OR_PURE.
8528         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
8529         DECL_PURE_P.
8530         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
8531         effects for looping pure or const calls.
8532         (verify_gimple_expr): Added verification code.
8533         * config/alpha/alpha.c (alpha_legitimize_address,
8534         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
8535         RTL_CONST_CALL_P.
8536         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
8537         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
8538         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
8539         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
8540         RTL_CONST_OR_PURE_CALL_P.
8541         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
8542         and const calls to be deleted.
8543
8544 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
8545
8546         PR target/35714
8547         * config/i386/mmx.md (mmx_subv2sf3): New expander.
8548         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
8549         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
8550         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8551         to handle nonimmediate operands.
8552         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
8553         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
8554         to handle nonimmediate operands.
8555         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
8556         (mmx_pmulhrwv4hi3): New expander.  Use
8557         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8558         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
8559         (sse2_umulv1siv1di3): New expander.  Use
8560         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8561         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
8562         (mmx_eq<mode>3): New expander.  Use
8563         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8564         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
8565         (mmx_uavgv8qi3): New expander.  Use
8566         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8567         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
8568         (mmx_uavgv4hi3): New expander.  Use
8569         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8570
8571         * config/i386/sse.md
8572         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
8573         to handle nonimmediate operands.
8574         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
8575         to handle nonimmediate operands.
8576         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
8577         to handle nonimmediate operands.
8578         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
8579         to handle nonimmediate operands.
8580         (sse2_unpckhpd_exp): New expander.  Use
8581         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8582         (sse2_unpcklpd_exp): New expander.  Use
8583         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8584         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
8585         to handle nonimmediate operands.
8586         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
8587         to handle nonimmediate operands.
8588         (*sse2_<plusminus_insn><mode>3): Rename from
8589         sse2_<plusminus_insn><mode>3 insn pattern.
8590         (sse2_<plusminus_insn><mode>3): New expander.  Use
8591         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8592         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
8593         (sse2_umulv2siv2di3): New expander.  Use
8594         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8595         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
8596         (sse4_1_mulv2siv2di3): New expander.  Use
8597         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8598         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
8599         (sse2_pmaddwd): New expander.  Use
8600         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8601         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
8602         (sse2_eq<mode>3): New expander.  Use
8603         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8604         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
8605         (sse4_1_eqv2di3): New expander.  Use
8606         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8607         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8608         (sse2_uavgv16qi3): New expander.  Use
8609         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8610         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8611         (sse2_uavgv16qi3): New expander.  Use
8612         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8613         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
8614         (sse2_uavgv8hi3): New expander.  Use
8615         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8616         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
8617         (ssse3_pmulhrswv8hi3): New expander.  Use
8618         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8619         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
8620         (ssse3_pmulhrswv4hi3): New expander.  Use
8621         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8622
8623         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
8624         (<sse>_vmmul<mode>3): Ditto.
8625         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
8626         (divv2df3): Ditto.
8627         (ssse3_pmaddubsw128): Use register_operand for operand 1.
8628         (ssse3_pmaddubsw): Ditto.
8629
8630         * config/i386/i386.c (struct_builtin_description)
8631         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
8632         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
8633         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
8634         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
8635         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
8636         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
8637         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
8638         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
8639         (ix86_fixup_binary_operands): Assert that src1
8640         and src2 must have the same mode when swapped.
8641         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
8642         and ix86_binary_operator_ok.  Do not force operands in registers
8643         when optimizing.
8644
8645 2008-05-07  Jan Hubicka  <jh@suse.cz>
8646
8647         * cgraph.c (dump_cgraph_node): Update.
8648         * cgraph.h (cgraph_local_info): Break out inline summary.
8649         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
8650         hook.
8651         * ipa-inline (inline_summary): New accestor function.
8652         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
8653         cgraph_decide_inlining, compute_inline_parameters): Update.
8654         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
8655
8656 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8657
8658         Cleanup ColdFire scheduling support and add V4 pipeline model.
8659
8660         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
8661         (define_attr cpu): Add cfv4 value.
8662         (define_attr type, define_attr type1): Merge into a single 'type'
8663         attribute.  Update all uses.
8664         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
8665         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
8666         Update all uses.
8667         (define_attr opx_mem, define_attr opy_mem): Remove.
8668         (define_attr op_mem): Clean up, update comment.
8669         (define_attr size): Use specific values instead of general int.
8670         (define_attr guess, define_attr split): Remove.  Update all uses.
8671         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
8672         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
8673         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
8674         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
8675         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
8676         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
8677         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
8678         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
8679         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
8680         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
8681         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
8682         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
8683         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
8684         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
8685         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
8686         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
8687         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
8688         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
8689         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
8690         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
8691         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
8692         Update or set attributes.
8693         (stack_tie): New fake instruction.
8694
8695         * config/m68k/m68k.h (TUNE_CFV4): New macro.
8696         (m68k_sched_attr_size): Update declaration.
8697         (m68k_sched_attr_type2): Remove.
8698         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
8699         Declare new bypass predicates.
8700
8701         * config/m68k/m68k.c (m68k_sched_issue_rate,
8702         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
8703         implementations.
8704         (TARGET_SCHED_ISSUE_RATE,
8705         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
8706         (override_options): Handle scheduling for ColdFire V4 core.
8707         (m68k_expand_prologue): Emit stack_tie.
8708         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
8709         'OP_TYPE_FPN'.  Update all uses.
8710         (sched_guess_p): Remove.
8711         (sched_address_type): Handle symbolic addresses.
8712         (sched_get_operand): New static function.
8713         (sched_operand_type): Merge into sched_attr_op_type.
8714         (sched_attr_op_type): Handle FP registers, handle quick constants,
8715         update.
8716         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
8717         (m68k_sched_attr_size): Update.  Move logic to ...
8718         (sched_get_attr_size_int): New static function.
8719         (sched_get_opxy_mem_type): New static function.
8720         (m68k_sched_attr_op_mem): Update.
8721         (m68k_sched_attr_type2): Remove.
8722         (sched_cfv4_bypass_data): New static variable.
8723         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
8724         (m68k_sched_issue_rate): Implement scheduler hook.
8725         (struct _sched_ib: enabled_p): New field.
8726         (m68k_sched_variable_issue): Update.  Handle V4.
8727         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
8728         sched_dump_class_func_t, sched_dump_split_class,
8729         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
8730         sched_dump_dfa_class, m68k_sched_dump): Remove.
8731         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
8732         hook.
8733         (m68k_sched_init_global): Remove statisctics dumping, introduce
8734         sanity check that all instructions have pipeline reservations.  Handle
8735         ColdFire V4 core.
8736         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8737         Handle ColdFire V4 core.
8738         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
8739         New static functions.
8740         (m68k_sched_address_bypass_p): New bypass predicate.
8741         (sched_get_indexed_address_scale): New static function.
8742         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
8743
8744         * cf.md: Update comments.
8745         (define_attr type2): Remove.  Use 'type' attribute instead.
8746         Update all uses.
8747         (cf_ib): Rename to cfv123_ib.  Update all uses.
8748         (cf_oep): Rename to cfv123_oep.  Update all uses.
8749         (cf_chr): Rename to cfv123_chr.  Update all uses.
8750         (cf_mem): Rename to cfv123_mem.  Update all uses.
8751         (cf_mac): Move to more appropriate place.
8752         (cfv123_guess): New automaton and cpu_unit.
8753         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
8754         Update uses of 'size' attribute.  Handle before reload scheduling.
8755         (cfv123_guess): New dummy reservation for unhandled instructions.
8756         (cfv4_*): Pipeline description of ColdFire V4 core.
8757         (ignore): New reservation to handle 'ignore' type.
8758
8759 2008-05-07  Ian Lance Taylor  <iant@google.com>
8760
8761         PR middle-end/36013
8762         * gimplify.c (find_single_pointer_decl_1): Don't look through
8763         indirections.
8764         (find_single_pointer_decl): Adjust comments.
8765
8766 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
8767
8768         PR middle-end/36137
8769         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
8770         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
8771
8772         PR middle-end/36106
8773         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
8774         integral type rather than floating point, then VIEW_CONVERT_EXPR
8775         to the floating point type.
8776
8777 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
8778
8779         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
8780         TFmode op0 to register.
8781
8782 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
8783
8784         * c-decl.c (grokdeclarator): Comment typo.
8785
8786 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
8787
8788         * tree-flow.h: Remove prototype for computed_goto_p.
8789         * tree-cfg.c (computed_goto_p): Make static.
8790
8791 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
8792
8793         PR target/35657
8794         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
8795         (contains_aligned_value_p): This.  Handle _Decimal128.
8796         (ix86_function_arg_boundary): Only align _Decimal128 to its
8797         natural boundary and handle it properly.
8798
8799 2008-05-06  Martin Jambor  <mjambor@suse.cz>
8800
8801         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
8802         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
8803         (ipcp_method_set_orig_node): Removed.
8804         (ipcp_cval_get_cvalue_type): Removed.
8805         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
8806         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
8807         (ipcp_cval_set_cvalue_type): Removed.
8808         (ipcp_cval_get_cvalue): Removed.
8809         (ipcp_cval_set_cvalue): Removed.
8810         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
8811         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
8812         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
8813         (ipcp_cval_meet): Renamed to ipa_lattice_meet
8814         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
8815         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
8816         (ipcp_get_ith_lattice): Changed parameters.
8817         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
8818         (ipcp_lattice_from_jfunc): Changed parameters.
8819         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
8820         (ipcp_method_cval_print): Added temporary variable info.
8821         (ipcp_redirect): Removed already unused local variable caller.
8822         (ipcp_redirect): New temporary variable orig_callee_info
8823         (ipcp_redirect): Removed newly unused local variable callee.
8824         (ipcp_redirect): Removed (a bit confusing) local variable type.
8825         (ipcp_insert_stage): Added local variable info.
8826         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
8827         renamed too
8828         (ipcp_formal_create): Removed.
8829         (ipcp_method_cval_set): Removed.
8830         (ipcp_propagate_stage): Renamed lattice variables.
8831         (ipcp_method_cval_set_cvalue_type): Removed.
8832         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
8833         (ipcp_print_all_lattices): Changed printed strings to refer to
8834         lattices rather than cvals.
8835         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
8836         (ipcp_propagate_const): Changed formal parameters.
8837         (build_const_val): Changed formal parameters.
8838         (ipcp_insert_stage): Removed useless variable cvalue
8839         (build_const_val): Changed formal parameters.
8840         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
8841         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
8842         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
8843         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
8844         (ipcp_print_func_profile_counts): Changed string from "method" to
8845         "function"
8846         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
8847         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
8848         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
8849         (ipcp_structures_print): Renamed to ipcp_print_all_structures
8850         (ipcp_profile_print): Renamed to ipcp_print_profile_data
8851         (ipcp_lat_is_const): Changed parameters and made inline.
8852         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
8853         (ipcp_redirect): Renamed to ipcp_need_redirect_p
8854         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
8855         the predicate condition directly
8856         (ipcp_propagate_stage): Added local variable args. Removed local
8857         variable callee.  (Both are mere code simplifications.)
8858         (ipcp_method_dont_insert_const): Renamed to
8859         ipcp_node_not_modifiable_p.
8860         (ipcp_node_not_modifiable_p): Made inline.
8861         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
8862         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
8863         (ipcp_print_all_lattices): Removed variable cvalue
8864         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
8865         Updated comments.
8866
8867 2008-05-06  Olivier Hainque  <hainque@adacore.com>
8868
8869         * tree-sra.c (try_instantiate_multiple_fields): Early return
8870         if field has POINTER_TYPE.
8871
8872 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
8873
8874         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
8875         by using 'q' specifier for instruction.
8876         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
8877
8878 2008-05-06  Anatoly Sokolov <aesok@post.ru>
8879
8880         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8881         Change mode of zero_extract from QImode to HImode.
8882         (sign bit tests peepholes): (Ditto.).
8883
8884 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
8885
8886         * config/i386/mmx.md: Remove double backslashes from asm templates.
8887         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
8888         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8889         to handle nonimmediate operands.
8890         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
8891         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8892         to handle nonimmediate operands.
8893         (*mmx_<code>v2sf3_finite): New insn pattern.
8894         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
8895         (mmx_<code>v2sf3): New expander.  Use
8896         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8897         (mmx_<plusminus_insn><mode>3): New expander.  Use
8898         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8899         (*mmx_<plusminus_insn><mode>3): New insn pattern.
8900         (mmx_add<mode>3): Removed.
8901         (mmx_ssadd<mode>3): Ditto.
8902         (mmx_usadd<mode>3): Ditto.
8903         (mmx_sub<mode>3): Ditto.
8904         (mmx_sssub<mode>3): Ditto.
8905         (mmx_ussub<mode>3): Ditto.
8906         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
8907         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
8908         to handle nonimmediate operands.
8909         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
8910         insn pattern.
8911         (mmx_smulv4hi3_highpart): New expander.  Use
8912         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8913         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
8914         insn pattern.
8915         (mmx_umulv4hi3_highpart): New expander.  Use
8916         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8917         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
8918         (mmx_<code>v4hi3): New expander.  Use
8919         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8920         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
8921         (mmx_<code>v8qi3): New expander.  Use
8922         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8923         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
8924         (mmx_<code><mode>3): New expander.  Use
8925         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8926
8927 2008-05-05  Jan Hubicka  <jh@suse.cz>
8928
8929         PR tree-optimization/36118
8930         * passes.c (pass_init_dump_file): Fix dump header.
8931
8932 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8933
8934         PR middle-end/36141
8935         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
8936         VCE for function decls.
8937
8938 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8939
8940         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
8941
8942 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8943
8944         * config/i386/i386.md (sat_plusminus): New.
8945         (plusminus_insn): Likewise.
8946         (plusminus_mnemonic): Likewise.
8947         (addsub): Removed.
8948         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
8949         (*<addsub><mode>3_cc_overflow): Renamed to ...
8950         (*<plusminus_insn><mode>3_cc_overflow): This.
8951         (*<addsub>si3_zext_cc_overflow): Renamed to ...
8952         (*<plusminus_insn>si3_zext_cc_overflow): This.
8953
8954         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
8955         (<plusminus_insn><mode>3): This.
8956         (*<addsub><mode>3): Renamed to ...
8957         (*<plusminus_insn><mode>3): This.
8958         (<sse>_vm<addsub><mode>3): Renamed to ...
8959         (<sse>_vm<plusminus_insn><mode>3): This.
8960         (sse3_h<addsub>v4sf3): Renamed to ...
8961         (sse3_h<plusminus_insn>v4sf3): This.
8962         (sse3_h<addsub>v2df3): Renamed to ...
8963         (sse3_h<plusminus_insn>v2df3): This.
8964         (<plusminus_insn><mode>3): New.
8965         (*<plusminus_insn><mode>3): Likewise.
8966         (sse2_<plusminus_insn><mode>3): Likewise.
8967         (add<mode>): Removed.
8968         (*add<mode>3): Likewise.
8969         (sse2_ssadd<mode>3): Likewise.
8970         (sse2_usadd<mode>3): Likewise.
8971         (sub<mode>3): Likewise.
8972         (*sub<mode>3): Likewise.
8973         (sse2_sssub<mode>3): Likewise.
8974         (sse2_ussub<mode>3): Likewise.
8975
8976 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
8977
8978         * gthr-single.h: Add in required interface elements as per gthr.h.
8979         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8980         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8981         Generalize UNUSED macro.
8982         (__gthread_once): Add.
8983         (__gthread_key_create): Add.
8984         (__gthread_key_delete): Add.
8985         (__gthread_getspecific): Add.
8986         (__gthread_setspecific): Add.
8987
8988 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
8989
8990         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8991         the same size types for the indirect reference on the rhs, then
8992         create a VCE.
8993
8994 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
8995
8996         * config/i386/i386.md
8997         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8998         one insn template instead of template series.
8999         (*xordi_1_rex64): Ditto.
9000         (*xordi_2_rex64): Ditto.
9001
9002 2008-05-05  Ira Rosen  <irar@il.ibm.com>
9003
9004         PR tree-optimization/36119
9005         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
9006         in case of SLP.
9007
9008 2008-06-04  Jan Hubicka  <jh@suse.cz>
9009
9010         tree-optimization/36100
9011         * tree-pass.h (pass_O0_always_inline): Declare.
9012         * ipa-inline.c (inline_transform): Remove dead code.
9013         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
9014         pass_O0_always_inline): New.
9015         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
9016
9017 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
9018
9019         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
9020         mnemonic in this_param move for TARGET_64BIT.
9021
9022 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
9023
9024         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
9025         (*strmovsi_rex_1): Ditto.
9026         (*strsetsi_1): Ditto.
9027         (*strsetsi_rex_1): Ditto.
9028
9029         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
9030         adddicc expanders using SWI mode iterator.
9031
9032 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9033
9034         PR target/36121
9035         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
9036         argument handling.
9037
9038 2008-05-04  David S. Miller  <davem@davemloft.net>
9039
9040         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
9041         (sparc*-*-linux*): Use linux.h in tm_file.
9042         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
9043         compiler defaulting to 32-bit.
9044         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
9045         no longer needed.
9046         * config/sparc/linux.h: Remove definitions now obtained
9047         properly from linux.h
9048         * config/sparc/linux64.h: Likewise.
9049         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
9050         don't want this setting for 32-bit builds in a biarch compiler.
9051         * doc/install.texi: Add sparc-linux to list of targets
9052         supporting --enable-targets=all.
9053
9054 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
9055
9056         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
9057
9058 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
9059
9060         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
9061         after V4SI_FTYPE_V8HI.
9062         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
9063         case V4SI_FTYPE_V2DF.
9064
9065 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
9066
9067         * doc/invoke.texi (max-flow-memory-locations): Removed.
9068         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
9069
9070 2008-05-03  Richard Guenther  <rguenther@suse.de>
9071
9072         PR middle-end/34973
9073         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
9074
9075 2008-05-02  David S. Miller  <davem@davemloft.net>
9076
9077         * config.gcc (need_64bit_hwint): Document libcpp dependency.
9078
9079 2008-05-02  Simon Baldwin <simonb@google.com>
9080
9081         PR bootstrap/36108
9082         * c-common.h (warn_array_subscript_range): Removed.
9083         * c-common.c (warn_array_subscript_range): Ditto.
9084         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
9085         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
9086
9087 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
9088
9089         * config/i386/i386.c (ix86_special_builtin_type): New.
9090         (bdesc_special_args): Likewise.
9091         (ix86_expand_special_args_builtin): Likewise.
9092         (ix86_init_mmx_sse_builtins): Updated.
9093         (ix86_expand_builtin): Updated.
9094         (ix86_expand_store_builtin): Removed.
9095         (ix86_expand_unop_builtin): Likewise.
9096
9097         * config/i386/mm3dnow.h (__v2sf): Moved to ...
9098         * config/i386/mmintrin.h (__v2sf): Here.
9099
9100         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
9101         const __v2sf.
9102         (_mm_loadl_pi): Likewise.
9103         (_mm_storeh_pi): Replace __v2si with __v2sf.
9104         (_mm_storel_pi): Likewise.
9105
9106         * doc/extend.texi: Correct __builtin_ia32_loadhps,
9107         __builtin_ia32_loadlps, __builtin_ia32_storehps,
9108         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
9109         __builtin_ia32_loadlpd.
9110
9111 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
9112
9113         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
9114         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
9115         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
9116         (ix86_init_mmx_sse_builtins): Updated.
9117         (ix86_expand_args_builtin): Likewise.
9118         (ix86_expand_builtin): Likewise.
9119         (ix86_expand_unop1_builtin): Renamed to ...
9120         (ix86_expand_unop_vec_merge_builtin): This.
9121
9122 2008-05-01  Jan Hubicka  <jh@suse.cz>
9123
9124         PR bootstrap/36100
9125         * ipa-inline.c (inline_generate_summary): Make static.
9126         (inline_transform): Do not call inlining at -O0; make static.
9127         * passes.c (execute_todo): Add sanity check.
9128         (execute_one_ipa_transform_pass): Execute proper flags.
9129
9130 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
9131
9132         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
9133         (DECL_NONADDRESSABLE_P): Likewise.
9134         * alias.c (record_component_aliases): Fix comment.
9135
9136 2008-05-01  Simon Baldwin <simonb@google.com>
9137
9138         * c-common.h (warn_array_subscript_range): New function.
9139         * c-common.c (warn_array_subscript_range): Ditto.
9140         * tree-vrp.c (check_array_ref): Corrected code to agree with
9141         comment, ignoring only arrays of size 0 or size 1.
9142         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
9143
9144 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
9145
9146         * config/i386/i386.c (ix86_builtin_type): Replace
9147         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
9148         (bdesc_args): Updated.
9149         (ix86_init_mmx_sse_builtins): Likewise.
9150         (ix86_expand_args_builtin): Likewise.
9151
9152         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
9153         with __v1di.
9154
9155         * doc/extend.texi: Correct __builtin_ia32_palignr.
9156
9157 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
9158
9159         PR target/36095
9160         * config/i386/i386.c (bdesc_crc32): Removed.
9161         (ix86_expand_crc32): Likewise.
9162         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
9163         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
9164         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
9165         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
9166         UINT_FTYPE_UINT_UCHAR.
9167         (bdesc_args): Updated. Add crc32 builtins.
9168         (ix86_init_mmx_sse_builtins): Updated.
9169         (ix86_expand_args_builtin): Updated to support subreg.
9170
9171         * doc/extend.texi: Correct __builtin_ia32_crc32di.
9172
9173 2008-05-01  Jan Hubicka  <jh@suse.cz>
9174
9175         * tree-pass.h (opt_pass): Add IPA_PASS.
9176         (varpool_node, cgraph_node): Forward declare.
9177         (ipa_opt_pass): Define.
9178         (pass_ipa_inline): Turn into ipa_opt_pass.
9179         (pass_apply_inline): Remove.
9180         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
9181         (apply_inline): Turn into ....
9182         (inline_transform): ... this one.
9183         (inline_generate_summary): New function.
9184         (pass_apply_inline): Remove.
9185         * function.h (ipa_opt_pass): Forward declare structure; typedef;
9186         vector.
9187         (struct function): Add ipa_transforms_to_apply.
9188         * passes.c (register_one_dump_file): Work on IPA_PASS.
9189         (init_optimization_passes): Remove pass_inline_parameters and
9190         pass_apply_inline.
9191         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
9192         (execute_one_pass) ... here; apply transforms when possible.
9193         (add_ipa_transform_pass, execute_ipa_summary_asses,
9194         execute_one_ipa_transform_pass): New.
9195         (execute_ipa_pass_list): Update for IPA_PASS type.
9196
9197 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
9198
9199         * config/i386/i386.c (ix86_builtin_type): Add
9200         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
9201         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
9202         (bdesc_args): Add SSE4a builtins.
9203         (ix86_init_mmx_sse_builtins): Updated.
9204         (ix86_expand_args_builtin): Likewise.
9205         (ix86_expand_builtin): Likewise.
9206
9207 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
9208
9209         * config/i386/i386.c (ix86_builtin_type): Add
9210         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
9211         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
9212         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
9213         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
9214         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
9215         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
9216         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
9217         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
9218         and DI_FTYPE_DI_DI_INT.
9219         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
9220         (ix86_init_mmx_sse_builtins): Updated.
9221         (ix86_expand_args_builtin): Likewise.
9222         (ix86_expand_builtin): Likewise.
9223         (ix86_expand_binop_imm_builtin): Removed.
9224
9225         * doc/extend.texi: Correct __builtin_ia32_palignr128.
9226
9227 2008-04-30  Richard Guenther  <rguenther@suse.de>
9228
9229         PR tree-optimization/32921
9230         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
9231
9232 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
9233
9234         * config/arm/arm.c (arm_unwind_emit): Use
9235         crtl->all_throwers_are_sibcalls instead of
9236         cfun->all_throwers_are_sibcalls.
9237         (arm_output_fn_unwind): Likewise.
9238         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
9239         instead of cfun->uses_pic_offset_table.
9240         (frv_expand_prologue): Likewise.
9241         (frv_frame_pointer_required): Likewise.
9242         (frv_expand_fdpic_call): Likewise.
9243         (frv_emit_movsi): Likewise.
9244         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
9245         cfun->returns_pcc_struct instead of
9246         current_function_returns_pcc_struct.
9247         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
9248         instead of cfun->calls_eh_return.
9249         (m32c_pushm_popm): Likewise.
9250         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
9251         "extern" declaration.
9252
9253 2008-04-30  Richard Guenther  <rguenther@suse.de>
9254
9255         PR tree-optimization/21636
9256         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
9257         constant address.
9258         (evaluate_stmt): Print the likely value.
9259         (ccp_visit_stmt): Avoid excessive vertical spacing.
9260
9261 2008-04-30  Rafael Espindola  <espindola@google.com>
9262
9263         * builtins.c (fold_call_expr): Return realret.
9264         * tree-ssa-threadedge.c
9265         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
9266         __builtin_object_size.
9267
9268 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
9269
9270         * gcc.c (wrapper_string): New variable.
9271         (insert_wrapper): New function.
9272         (execute): New option -wrapper.
9273         * doc/invoke.texi (Overall Options): New driver option -wrapper.
9274
9275 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
9276
9277         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
9278         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
9279         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
9280         from...
9281         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
9282         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
9283         config/rs6000/e500crtres64gprctr.asm,
9284         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
9285         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
9286         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
9287         config/rs6000/e500crtsav64gprctr.asm,
9288         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
9289         config/rs6000/e500crtsavg64gprctr.asm: New files.
9290         * config/rs6000/t-ppccomm: Add build rules for new files.
9291         (LIB2FUNCS_STATIC_EXTRA): Add new files.
9292         * config/rs6000/t-netbsd: Add build rules for new files.
9293         (LIB2FUNCS_STATIC_EXTRA): New variable.
9294         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
9295         (CRTSAVRES_DEFAULT_SPEC): Likewise.
9296         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
9297
9298 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
9299
9300         * config/i386/i386.c (ix86_builtin_type): Add
9301         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
9302         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
9303         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
9304         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
9305         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
9306         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
9307         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
9308         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
9309         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
9310         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
9311         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
9312         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
9313         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
9314         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
9315         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
9316         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
9317         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
9318         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
9319         V1DI_FTYPE_V2SI_V2SI.
9320         (bdesc_2arg): Moved to ...
9321         (bdesc_args): Here.
9322         (ix86_init_mmx_sse_builtins): Updated.
9323         (ix86_expand_args_builtin): Updated.  Take a pointer
9324         to const struct builtin_description.  Handle comparison
9325         builtin functions.
9326         (ix86_expand_sse_compare): Take a new argument for swapping operands.
9327         (ix86_expand_builtin): Updated.
9328
9329         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
9330         (ssse3_pmaddubsw128): This.
9331         (ssse3_pmaddubswv4hi3): Renamed to ...
9332         (ssse3_pmaddubsw): This.
9333
9334         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
9335         (__builtin_ia32_packssdw128): Likewise.
9336         (__builtin_ia32_packuswb128): Likewise.
9337         (__builtin_ia32_pmaddubsw): Likewise.
9338         (__builtin_ia32_pmaddubsw128): Likewise.
9339
9340 2008-04-30  Richard Guenther  <rguenther@suse.de>
9341
9342         PR tree-optimization/14847
9343         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
9344         (recognize_bits_test): Use it.
9345         (recognize_single_bit_test): Likewise.
9346
9347 2008-04-30  Martin Jambor  <mjambor@suse.cz>
9348
9349         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
9350         instead of setting number of formal parameters to zero.
9351         (ipcp_init_stage): Do not set the number of actual parameters to zero
9352         either.
9353         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
9354         which are called with variable number of arguments.
9355         (ipcp_insert_stage): Explicitely skipping all nodes which are
9356         called with variable number of arguments.
9357         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
9358         number of parameters.
9359
9360         * ipa-prop.h (struct ipa_node_params): Added flag
9361         called_with_var_arguments
9362         (ipa_set_param_count): Added.  Changed sole setter to use it.
9363         (ipa_get_param_count): Added.  All readers of param_count
9364         converted to use it instead.
9365         (ipa_set_called_with_variable_arg): Added.
9366         (ipa_is_called_with_var_arguments): Added.
9367         (ipa_get_ith_param): Added.  All readers of param_decls converted
9368         to use it instead.
9369         (ipa_set_cs_argument_count): Added, sole writer to argument_count
9370         changed to use it.
9371         (ipa_get_cs_argument_count): Added, all readers of argument_count
9372         changed to cal it.
9373         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
9374         to use it.
9375
9376         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
9377         (struct ipcp_lattice): Renamed cval_type to type
9378         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
9379
9380         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
9381         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
9382         (ipcp_insert_stage): Changed the type of variable cvalue to tree
9383         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
9384         (build_const_val): Changed the type of parameter cvalue to tree
9385         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
9386         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
9387
9388         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
9389         constant
9390
9391         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
9392         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
9393         (ipa_add_method): Renamed to ipa_push_func_to_list
9394         (ipa_remove_method): Renamed to ipa_pop_func_from_list
9395         (ipa_callsite_param_count): Removed.
9396         (ipa_callsite_param_count_set): Removed.
9397         (ipa_callsite_param): Removed.
9398         (ipa_callsite_callee): Removed.
9399         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
9400         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
9401         (ipa_method_formal_count): Removed.
9402         (ipa_method_formal_count_set): Removed.
9403         (ipa_method_get_tree): Removed.
9404         (ipa_method_tree_map_create): Removed.
9405         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
9406         (ipa_create_param_decls_array): Creates the array itself
9407         (ipa_create_param_decls_array): Temporary variable info instead of
9408         a few dereferences.
9409         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
9410         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
9411         (get_type): Removed.
9412         (ipa_jf_get_info_type): Removed.
9413         (ipa_node_create): Renamed to ipa_create_node_params
9414         (ipa_free): Renamed to ipa_free_all_node_params
9415         (ipa_nodes_create): Renamed to ipa_create_all_node_params
9416         (ipa_edges_create): Renamed to ipa_create_all_edge_args
9417         (ipa_edges_free): Renamed to ipa_free_all_edge_args
9418         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
9419         (ipa_free_all_node_params): Deallocation to jump_functions moved to
9420         ipa_free_all_edge_args
9421         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
9422         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
9423         (ipa_create_methodlist_node): Removed.
9424         (ipa_methodlist_method): Removed.
9425         (ipa_methodlist_method_set): Removed.
9426         (ipa_methodlist_next_method): Removed.
9427         (ipa_methodlist_next_method_set): Removed.
9428         (ipa_method_is_modified): Removed.
9429         (ipa_method_modify_create): Removed.
9430         (ipa_method_modify_init): Temporary variable info instead of a few
9431         dereferences.
9432         (ipa_detect_param_modifications): Temporary variable info instead of
9433         a few dereferences.
9434         (ipa_compute_jump_functions): Temporary variable info instead of
9435         a few dereferences.
9436         (ipa_method_modify_set): Removed.
9437         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
9438         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
9439         than craph_node as the first parameter.
9440         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
9441         (ipa_method_modify_init): Removed.
9442         (ipa_compute_jump_functions): Added a temp variable instead of
9443         repeatadly dereferencing the cgraph_edge.aux pointer
9444         (ipa_callsite_param_set_type): Removed.
9445         (ipa_compute_jump_functions): i renamed to index and moved to
9446         an inner block
9447         (ipa_callsite_param_set_info_type_formal): Removed.
9448         (ipa_callsite_param_set_info_type): Removed.
9449         (ipa_callsite_param_map_create): Removed.
9450         (ipa_callsite_tree): Removed.
9451         (ipa_callsite_caller): Removed.
9452         (ipa_pop_func_from_list): return_method removed to return_func
9453
9454         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
9455         prefixed all values with IPA_. Changed all users.
9456         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
9457         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
9458         and FORMAL_IPATYPE IPA_PASS_THROUGH.
9459         (union parameter_info): Renamed to jump_func_value.
9460         (union jump_func_value): Renamed value to constant
9461         (struct ipa_jump_func): Renamed info_type to value
9462         (struct ipa_node): Renamed to ipa_node_params
9463         (struct ipa_node_params): Renamed ipa_arg_num to param_count
9464         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
9465         (struct ipa_node_params): Renamed ipa_mod to modified_flags
9466         (struct ipa_edge): Renamed to ipa_edge_args
9467         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
9468         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
9469         (struct ipa_methodlist): Renamed to ipa_func_list
9470         (struct ipa_func_list): method_p renamed to node, next_method
9471         renamed to next
9472         (ipa_methodlist_p): Removed, switched all users to struct pointer
9473         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
9474
9475 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
9476
9477         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
9478         (rs6000_emit_epilogue): Use backchain to restore only when we
9479         have a large frame.  Make use of frame pointer to restore if we
9480         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
9481
9482 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
9483
9484         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
9485         Add mode to zero_extract.
9486         (sign bit tests peepholes): (Ditto.).
9487
9488 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
9489
9490         * config/i386/i386.c (ix86_builtins): Replace Prescott New
9491         Instructions in comments with SSE3.
9492         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
9493         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
9494         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
9495         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
9496         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
9497         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
9498         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
9499         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
9500         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
9501         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
9502         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
9503         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
9504         (bdesc_sse_args): Renamed to ...
9505         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
9506         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
9507         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
9508         IX86_BUILTIN_FABSQ.
9509         (bdesc_1arg): Moved to ...
9510         (bdesc_args): Here.
9511         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
9512         Instructions in comments with SSE3.
9513         (ix86_expand_sse_operands_builtin): Renamed to ...
9514         (ix86_expand_args_builtin): This.  Updated.
9515         (ix86_expand_unop1_builtin): Update comments.
9516         (ix86_expand_builtin): Updated.
9517
9518 2008-04-29  Richard Guenther  <rguenther@suse.de>
9519
9520         PR tree-optimization/36078
9521         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9522         Update virtual SSA form after cleaning up the CFG.
9523
9524 2008-04-29  Richard Guenther  <rguenther@suse.de>
9525
9526         PR middle-end/15255
9527         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
9528
9529 2008-04-29  Richard Guenther  <rguenther@suse.de>
9530
9531         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
9532         (compute_may_aliases): Do not call finalize_ref_all_pointers.
9533         (compute_flow_insensitive_aliasing): Do not treat
9534         PTR_IS_REF_ALL pointers special.
9535         (get_smt_for): Likewise.
9536         (may_alias_p): Re-structure.
9537         (is_escape_site): A ref-all pointer conversion is not an escape site.
9538         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
9539         PTR_IS_REF_ALL pointers special.
9540         * tree-ssa-structalias.h (struct alias_info): Remove
9541         ref_all_symbol_mem_tag field.
9542         (PTR_IS_REF_ALL): Remove.
9543
9544 2008-04-29  Richard Guenther  <rguenther@suse.de>
9545
9546         PR middle-end/36077
9547         * fold-const.c (extract_muldiv_1): In combining division constants
9548         make sure to never overflow.
9549
9550 2008-04-29  Nick Clifton  <nickc@redhat.com>
9551
9552         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
9553
9554 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9555
9556         PR bootstrap/35169
9557         * optc-gen.awk: Work around HP-UX/IA awk bug.
9558
9559 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
9560
9561         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
9562         2008-04-25 commit.
9563
9564 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
9565
9566         PR target/36073
9567         * config/i386/i386.md
9568         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
9569         Change operand 1 predicate to nonimmediate_operand.
9570
9571 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
9572
9573         PR debug/36060
9574         * dwarf2out.c (struct die_struct): Mark as chain_circular through
9575         die_sub field.
9576         * gengtype.c (walk_type, write_func_for_structure): Handle
9577         chain_circular.
9578         * doc/gty.texi: Document chain_circular.
9579
9580 2008-04-28  Richard Guenther  <rguenther@suse.de>
9581
9582         PR tree-optimization/36066
9583         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
9584         SCEV and loop.
9585
9586 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
9587
9588         PR target/36064
9589         * config/i386/i386.md
9590         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
9591         Use match_scratch instead of match_operand for operands 3 and 4.
9592
9593 2008-04-27  Richard Guenther  <rguenther@suse.de>
9594
9595         PR tree-optimization/18754
9596         PR tree-optimization/34223
9597         * tree-pass.h (pass_complete_unrolli): Declare.
9598         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
9599         loop size before and after unconditionally of UL_NO_GROWTH in effect.
9600         Rewrite loop into loop closed SSA form if it is not already.
9601         (tree_unroll_loops_completely): Re-structure to iterate over
9602         innermost loops with intermediate CFG cleanups.
9603         Unroll outermost loops only if requested or the code does not grow
9604         doing so.
9605         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
9606         loops are available.
9607         (tree_vectorize): Instead do so here.
9608         (tree_complete_unroll): Also unroll outermost loops.
9609         (tree_complete_unroll_inner): New function.
9610         (gate_tree_complete_unroll_inner): Likewise.
9611         (pass_complete_unrolli): New pass.
9612         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
9613         uses outside of the loop.
9614         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
9615         form if it is available.
9616         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
9617         * passes.c (init_optimization_passes): Schedule complete inner
9618         loop unrolling pass before the first CCP pass after final inlining.
9619
9620 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
9621
9622         * targhooks.h (default_emutls_var_fields,
9623         default_emutls_var_init): Declare.
9624         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
9625         * target.h (struct gcc_target): Add struct emutls member.
9626         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
9627         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
9628         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
9629         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
9630         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
9631         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
9632         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
9633         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
9634         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
9635         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
9636         emit debug information.
9637         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
9638         * varasm.c: Include targhooks.h.
9639         (emutls_object_section, emutls_tmpl_section): New.
9640         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
9641         (EMUTLS_SEPARATOR): New.
9642         (prefix_name): New.
9643         (get_emutls_object_name): New.
9644         (default_emutls_var_fields): New, broken out of ...
9645         (get_emutls_object_type): ... here.  Adjust to use target hooks.
9646         (get_emutls_init_templ_addr): Adjust to use target hooks.
9647         (emutls_decl): Adjust to use target hooks.
9648         (emutls_finish): Likewise.
9649         (default_emutls_var_init): New, broken out of ...
9650         (assemble_variable): ... here.  Adjust to use target hooks.
9651         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
9652         SECCAT_EMUTLS_TMPL.
9653         * c-common.c (handle_section_attribute): Prevent overriding
9654         sections for emulated tls with special sections.
9655         * config/i386/i386.c (x86_64_elf_select_section): Add
9656         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
9657         (x86_64_elf_unique_section): Likewise.
9658         * config/vxworks.c: Include tree.h.
9659         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
9660         (vxworks_override_options): Set TLS scheme.
9661         * doc/tm.texi (Emulated TLS): New node.
9662
9663 2008-04-26  Simon Baldwin <simonb@google.com>
9664
9665         PR c/35652
9666         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
9667         with propagated string constants.
9668
9669 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
9670
9671         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
9672         constraint for operand 2 when operand 0 is memory operand.
9673         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
9674         operand 0 is memory operand.
9675         (fix_trunc<mode>_i387_with_temp): Ditto.
9676         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
9677         operand 2 when operand 1 is memory operand.
9678         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
9679         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
9680         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
9681         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
9682         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
9683         operands 2,3 and 4 when operand 1 is memory operand.
9684         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
9685         is memory operand.
9686         (fistdi2_floor_with_temp): Ditto.
9687         (fist<mode>2_floor_with_temp): Ditto.
9688         (fistdi2_ceil_with_temp): Ditto.
9689         (fist<mode>2_ceil_with_temp): Ditto.
9690         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
9691
9692 2008-04-26  David Daney  <ddaney@avtrex.com>
9693
9694         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
9695         unspec_volitile.
9696         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
9697         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
9698         UNSPEC_UPDATE_GOT_VERSION): Renumber.
9699         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
9700         (compare_and_swap_12): New insn.
9701         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
9702         * config/mips/mips.c (mips_force_binary): New function.
9703         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
9704         (mips_expand_compare_and_swap_12): New function.
9705         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
9706
9707 2008-04-25  Jan Hubicka  <jh@suse.cz>
9708
9709         PR testsuite/35843
9710         * cfgexpand.c (pass_expand): Turn into RTL pass.
9711         * passes.c (execute_one_pass): Do pass typechecking after execution.
9712         * tree-pass.h (pass_expand): Turn into RTL pass.
9713
9714         * function.h (struct rtl_data): Move here fields
9715         accesses_prior_frames, calls_eh_return, saves_all_registers,
9716         has_nonlocal_goto, has_asm_statement, is_thunk,
9717         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
9718         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
9719         arg_pointer_save_area_init from struct function; turn into bool.
9720         (struct function): Move
9721         calls_eh_return, saves_all_registers, has_nonlocal_goto,
9722         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
9723         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
9724         tail_call_emit, arg_pointer_save_area_init
9725         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
9726         (current_function_returns_struct, current_function_returns_pcc_struct,
9727         current_function_calls_setjmp, current_function_calls_alloca,
9728         current_function_accesses_prior_frames,
9729         current_function_calls_eh_return, current_function_is_thunk,
9730         current_function_stdarg, current_function_profile,
9731         current_function_limit_stack, current_function_uses_pic_offset_table,
9732         current_function_uses_const_pool, current_function_has_nonlocal_label,
9733         current_function_saves_all_registers,
9734         current_function_has_nonlocal_goto,
9735         current_function_has_asm_statement): Remove accesor macros.
9736         * ra-conflict.c (global_conflicts): Update.
9737         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
9738         (suitable_for_tail_call_opt_p): Update.
9739         * builtins.c (expand_builtin_return_addr): Update.
9740         (expand_builtin_setjmp_setup): Update.
9741         (expand_builtin_nonlocal_goto): Update.
9742         * final.c (final_start_function): Update.
9743         (profile_function): Update.
9744         (leaf_function_p): Update.
9745         (only_leaf_regs_used): Update.
9746         * df-scan.c (df_get_exit_block_use_set): Update.
9747         * dojump.c (clear_pending_stack_adjust): Update.
9748         * tree-stdarg.c (gate_optimize_stdarg): Update.
9749         * gimple-low.c (lower_function_body): Update.
9750         * global.c (compute_regsets): Update.
9751         (global_alloc): Update.
9752         * dwarf2out.c (dwarf2out_begin_prologue): Update.
9753         * expr.c (expand_assignment): Update.
9754         * dse.c (dse_step0): Update.
9755         (dse_step1): Update.
9756         * c-decl.c (store_parm_decls): Update.
9757         * local-alloc.c (combine_regs): Update.
9758         (find_free_reg): Update.
9759         * function.c (assign_parms_augmented_arg_list): Update.
9760         (assign_parm_find_data_types): Update.
9761         (assign_parms): Update.
9762         (allocate_struct_function): Update.
9763         (expand_function_start): Update.
9764         (expand_function_end): Update.
9765         (get_arg_pointer_save_area): Update.
9766         (thread_prologue_and_epilogue_insns): Update.
9767         (rest_of_match_asm_constraints): Update.
9768         * stor-layout.c (variable_size): Update.
9769         * gcse.c (gcse_main): Update.
9770         (bypass_jumps): Update.
9771         * gimplify.c (gimplify_function_tree): Update.
9772         * calls.c (emit_call_1): Update.
9773         (expand_call): Update.
9774         * bt-load.c (compute_defs_uses_and_gen): Update.
9775         * except.c (sjlj_assign_call_site_values): Update.
9776         (sjlj_emit_function_enter): Update.
9777         (can_throw_external): Update.
9778         (set_nothrow_function_flags): Update.
9779         (expand_builtin_unwind_init): Update.
9780         (expand_eh_return): Update.
9781         (convert_to_eh_region_ranges): Update.
9782         (output_function_exception_table): Update.
9783         * emit-rtl.c (gen_tmp_stack_mem): Update.
9784         * cfgexpand.c (expand_used_vars): Update.
9785         (tree_expand_cfg): Update.
9786         * cfgcleanup.c (rest_of_handle_jump): Update.
9787         * explow.c (allocate_dynamic_stack_space): Update.
9788         * varasm.c (assemble_start_function): Update.
9789         (force_const_mem): Update.
9790         (mark_constant_pool): Update.
9791         * tree-optimize.c (tree_rest_of_compilation): Update.
9792         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
9793         * tree-cfg.c (notice_special_calls): Update.
9794         (is_ctrl_altering_stmt): Update.
9795         (tree_can_make_abnormal_goto): Update.
9796         (tree_purge_dead_abnormal_call_edges): Update.
9797         * config/alpha/predicates.md: Update.
9798         * config/alpha/alpha.c (alpha_sa_mask): Update.
9799         (alpha_sa_size): Update.
9800         (alpha_does_function_need_gp): Update.
9801         (alpha_expand_prologue): Update.
9802         (alpha_start_function): Update.
9803         (alpha_output_function_end_prologue): Update.
9804         (alpha_expand_epilogue): Update.
9805         * config/frv/frv.c (frv_stack_info): Update.
9806         (frv_expand_epilogue): Update.
9807         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
9808         (s390_register_info): Update.
9809         (s390_frame_info): Update.
9810         (s390_init_frame_layout): Update.
9811         (s390_can_eliminate): Update.
9812         (save_gprs): Update.
9813         * config/spu/spu.c (spu_split_immediate): Update.
9814         (need_to_save_reg): Update.
9815         (spu_expand_prologue): Update.
9816         (spu_expand_epilogue): Update.
9817         * config/sparc/sparc.md: Update.
9818         * config/sparc/sparc.c (eligible_for_return_delay): Update.
9819         (sparc_tls_got): Update.
9820         (legitimize_pic_address): Update.
9821         (sparc_emit_call_insn): Update.
9822         (sparc_expand_prologue): Update.
9823         (output_return): Update.
9824         (print_operand): Update.
9825         (sparc_function_ok_for_sibcall): Update.
9826         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
9827         * config/m32r/m32r.md: Update.
9828         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
9829         (m32r_compute_frame_size): Update.
9830         (m32r_expand_prologue): Update.
9831         (m32r_expand_epilogue): Update.
9832         (m32r_legitimize_pic_address): Update.
9833         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
9834         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9835         * config/i386/i386.c (ix86_frame_pointer_required): Update.
9836         (gen_push): Update.
9837         (ix86_save_reg): Update.
9838         (ix86_compute_frame_layout): Update.
9839         (ix86_expand_prologue): Update.
9840         (ix86_expand_epilogue): Update.
9841         * config/sh/sh.c (output_stack_adjust): Update.
9842         (calc_live_regs): Update.
9843         (sh5_schedule_saves): Update.
9844         (sh_expand_prologue): Update.
9845         (sh_expand_epilogue): Update.
9846         (sh_setup_incoming_varargs): Update.
9847         (sh_allocate_initial_value): Update.
9848         (sh_get_pr_initial_val): Update.
9849         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
9850         * config/sh/sh.md (label:): Update.
9851         * config/avr/avr.c (out_movhi_mr_r): Update.
9852         * config/crx/crx.h (enum): Update.
9853         * config/xtensa/xtensa.h (along): Update.
9854         * config/stormy16/stormy16.c Update.
9855         (xstormy16_compute_stack_layout): Update.
9856         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
9857         (fr30_expand_prologue): Update.
9858         * config/cris/cris.c (cris_conditional_register_usage): Update.
9859         (cris_reg_saved_in_regsave_area): Update.
9860         (cris_initial_frame_pointer_offset): Update.
9861         (cris_simple_epilogue): Update.
9862         (cris_expand_prologue): Update.
9863         (cris_expand_epilogue): Update.
9864         (cris_expand_pic_call_address): Update.
9865         (cris_asm_output_symbol_ref): Update.
9866         (cris_asm_output_label_ref): Update.
9867         * config/cris/cris.md Update.
9868         * config/iq2000/iq2000.c (compute_frame_size): Update.
9869         (iq2000_expand_epilogue): Update.
9870         * config/mt/mt.h (save_direction): Update.
9871         * config/mn10300/mn10300.c (mn10300_function_value): Update.
9872         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9873         (ia64_secondary_reload_class): Update.
9874         * config/m68k/m68k.c (m68k_save_reg): Update.
9875         (m68k_expand_prologue): Update.
9876         (m68k_expand_epilogue): Update.
9877         (legitimize_pic_address): Update.
9878         * config/rs6000/rs6000.c (rs6000_got_register): Update.
9879         (first_reg_to_save): Update.
9880         (first_altivec_reg_to_save): Update.
9881         (compute_vrsave_mask): Update.
9882         (compute_save_world_info): Update.
9883         (rs6000_stack_info): Update.
9884         (spe_func_has_64bit_regs_p): Update.
9885         (rs6000_ra_ever_killed): Update.
9886         (rs6000_emit_eh_reg_restore): Update.
9887         (rs6000_emit_allocate_stack): Update.
9888         (rs6000_emit_prologue): Update.
9889         (rs6000_emit_epilogue): Update.
9890         (rs6000_output_function_epilogue): Update.
9891         (output_profile_hook): Update.
9892         (rs6000_elf_declare_function_name): Update.
9893         * config/rs6000/rs6000.h (rs6000_args): Update.
9894         * config/rs6000/rs6000.md: Update.
9895         * config/mcore/mcore.c (mcore_expand_prolog): Update.
9896         * config/arc/arc.c (arc_output_function_epilogue): Update.
9897         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
9898         * config/darwin.c (machopic_function_base_name): Update.
9899         * config/score/score3.c (score3_compute_frame_size): Update.
9900         (rpush): Update.
9901         (rpop): Update.
9902         (score3_epilogue): Update.
9903         * config/score/score7.c (score7_compute_frame_size): Update.
9904         (score7_prologue): Update.
9905         (score7_epilogue): Update.
9906         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
9907         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9908         * config/arm/arm.c (use_return_insn): Update.
9909         (require_pic_register): Update.
9910         (arm_load_pic_register): Update.
9911         (arm_compute_save_reg0_reg12_mask): Update.
9912         (arm_compute_save_reg_mask): Update.
9913         (thumb1_compute_save_reg_mask): Update.
9914         (output_return_instruction): Update.
9915         (arm_output_function_prologue): Update.
9916         (arm_output_epilogue): Update.
9917         (arm_get_frame_offsets): Update.
9918         (arm_expand_prologue): Update.
9919         (thumb_pushpop): Update.
9920         (thumb_exit): Update.
9921         (thumb1_expand_prologue): Update.
9922         (thumb1_expand_epilogue): Update.
9923         (arm_unwind_emit): Update.
9924         (arm_output_fn_unwind): Update.
9925         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
9926         * config/arm/arm.md: Update.
9927         * config/pa/pa.md: Update.
9928         * config/pa/pa.c (legitimize_pic_address): Update.
9929         (compute_frame_size): Update.
9930         (hppa_expand_prologue): Update.
9931         (hppa_expand_epilogue): Update.
9932         (borx_reg_operand): Update.
9933         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
9934         (HARD_REGNO_RENAME_OK): Update.
9935         * config/mips/mips.c (mips_global_pointer): Update.
9936         (mips_save_reg_p): Update.
9937         (mips_compute_frame_info): Update.
9938         (mips_frame_pointer_required): Update.
9939         (mips_expand_prologue): Update.
9940         (mips_expand_epilogue): Update.
9941         (mips_can_use_return_insn): Update.
9942         (mips_reorg_process_insns): Update.
9943         * config/v850/v850.c (compute_register_save_size): Update.
9944         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
9945         * config/mmix/mmix.c (along): Update.
9946         (mmix_expand_epilogue): Update.
9947         * config/bfin/bfin.c (legitimize_pic_address): Update.
9948         (must_save_p): Update.
9949         (stack_frame_needed_p): Update.
9950         (add_to_reg): Update.
9951         (bfin_expand_prologue): Update.
9952         * stmt.c (expand_asm_operands): Update.
9953         * reload1.c (reload): Update.
9954         (init_elim_table): Update.
9955
9956 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
9957
9958         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
9959
9960 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
9961
9962         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
9963         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
9964         (mov<mode>): Removed.
9965         (*movv4sf_internal): Likewise.
9966         (*movv2df_internal): Likewise.
9967
9968 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
9969
9970         * config.gcc (crx-*-elf): Remove deprecation.
9971
9972 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
9973
9974         * config/i386/cygming-crtend.c (register_frame_ctor): Register
9975         __gcc_deregister_frame with atexit.
9976         (deregister_frame_dtor): Remove.
9977
9978 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
9979             Nathan Sidwell  <nathan@codesourcery.com>
9980
9981         * config/rs6000/rs6000.opt (mspe): Remove Var property.
9982         (misel): Likewise.
9983         * config/rs6000/rs6000.h (rs6000_spe): Declare.
9984         (rs6000_isel): Likewise.
9985         * config/rs6000/rs6000.c (rs6000_spe): New variable.
9986         (rs6000_isel): New variable.
9987         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9988
9989 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9990
9991         PR c++/35758
9992         * c-common.c (handle_vector_size_attribute): Call
9993         lang_hooks.types.reconstruct_complex_type instead of
9994         reconstruct_complex_type.
9995         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9996         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9997         * langhooks.h (struct lang_hooks_for_types): Add
9998         reconstruct_complex_type hook.
9999         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
10000         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
10001
10002 2008-04-24  Richard Guenther  <rguenther@suse.de>
10003
10004         * c-common.h (check_builtin_function_arguments): Declare.
10005         * c-common.c (validate_nargs): New function.
10006         (check_builtin_function_arguments): Likewise.
10007         * c-typeck.c (build_function_call): Call
10008         check_builtin_function_arguments.
10009         * builtins.c (fold_builtin_classify): Remove error reporting code.
10010         (fold_builtin_unordered_cmp): Likewise.
10011         (fold_builtin_1): Likewise.
10012         (fold_builtin_n): Likewise.
10013
10014 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
10015
10016         PR tree-optimization/36008
10017         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
10018         the original op1, rather than delta by step.
10019
10020 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
10021             Sebastian Pop  <sebastian.pop@amd.com>
10022
10023         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
10024         eliminate_local_variables_stmt, eliminate_local_variables,
10025         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
10026         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
10027         of code delimited by two edges in the CFG.
10028         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
10029         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
10030         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
10031         the case of parallelisation of reductions.
10032         (expr_invariant_in_region_p): New.
10033
10034         * tree-flow.h (gather_blocks_in_sese_region): Declared.
10035         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
10036
10037 2008-04-24  Ira Rosen  <irar@il.ibm.com>
10038             Richard Guenther  <rguenther@suse.de>
10039
10040         PR tree-optimization/36034
10041         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
10042         incapable of dealing with loads with gaps.
10043
10044 2008-04-24  Rafael Espindola  <espindola@google.com>
10045
10046         * tree-flow.h (vrp_evaluate_conditional): Change signature.
10047         * tree-ssa-propagate.c (fold_predicate_in): Update call to
10048         vrp_evaluate_conditional.
10049         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
10050         (vrp_evaluate_conditional): Split the cond argument.
10051         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
10052         (simplify_stmt_for_jump_threading): Update call to
10053         vrp_evaluate_conditional.
10054
10055 2008-04-24  Ira Rosen  <irar@il.ibm.com>
10056
10057         PR tree-optimization/35982
10058         * tree-vect-analyze.c (vect_check_interleaving): Check that the
10059         interleaved data-refs are of the same type.
10060
10061 2008-04-24  Danny Smith  <dannysmith@users.net>
10062
10063         * c-format.c (check_format_info_main): Use strncmp rather than a
10064         magic prefix to handle multichar length specs.
10065         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
10066         Don't prefix "I64" and "I32" with '\0'.
10067
10068 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
10069
10070         PR target/36015
10071         * config/i386/i386.c (init_cumulative_args): Don't pass anything
10072         in registers for -m32 only if stdarg_p (fntype).
10073
10074 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
10075
10076         PR rtl-optimization/36006
10077         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
10078         temp to op0 in order to avoid invalid rtx sharing.
10079
10080 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
10081
10082         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
10083         check TREE_INVARIANT.
10084         * tree-gimple.c (is_gimple_address): New.
10085         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
10086         * tree-gimple.h (is_gimple_address): New.
10087         * tree.h (decl_address_invariant_p): New.
10088         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
10089         (build_string): Likewise.
10090         (decl_address_invariant_p): New, from is_gimple_invariant_address.
10091         (tree_invariant_p_1): Likewise.
10092         (save_expr): Use it.
10093         (tree_invariant_p): New.
10094         (skip_simple_arithmetic): Use it.
10095         (stabilize_reference_1): Use it.
10096         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
10097         simplify.
10098         (build1_stat): Drop code to compute TREE_INVARIANT.
10099         (build2_stat): Drop code to compute TREE_INVARIANT.
10100         (build3_stat): Drop code to compute TREE_INVARIANT.
10101         (build4_stat): Drop code to compute TREE_INVARIANT.
10102         (build5_stat): Drop code to compute TREE_INVARIANT.
10103         (build7_stat): Drop code to compute TREE_INVARIANT.
10104         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
10105         * tree.h (struct tree_base): Remove invariant_flag.
10106         (TREE_INVARIANT): Remove.
10107         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
10108         (fold_builtin_expect): Check TREE_CONSTANT.
10109         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
10110         * c-tree.h (c_expr_to_decl): Drop third parameter.
10111         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
10112         (build_c_cast): Don't set TREE_INVARIANT.
10113         (pop_init_level): Don't set TREE_INVARIANT.
10114         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
10115         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
10116         TREE_CONSTANT.
10117         (gimplify_init_constructor): Don't set TREE_INVARIANT.
10118         (gimplify_addr_expr): Adjust comment.
10119         * tree-mudflap.c (mf_build_string):
10120         * print-tree.c (print_node): Don't print TREE_INVARIANT.
10121         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
10122         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
10123         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
10124         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
10125         * langhooks.h (struct lang_hooks): Drop third parameter from
10126         expr_to_decl.
10127
10128 2008-04-23  Richard Guenther  <rguenther@suse.de>
10129
10130         PR tree-optimization/27799
10131         PR tree-optimization/32921
10132         PR tree-optimization/32624
10133         * tree-ssa-structalias.c (merge_smts_into): Only merge the
10134         SMTs aliases and the tag itself into the solution.
10135         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
10136         merge the points-to solution back into the SMT aliases.
10137         (may_alias_p): Use alias_set_subset_of instead of
10138         aliases_conflict_p.  A pointer which points to
10139         memory with alias set zero may access any variable.
10140
10141 2008-04-23  Richard Guenther  <rguenther@suse.de>
10142
10143         * alias.c (alias_set_subset_of): Correctly handle asking
10144         if zero is a subset of an alias set with zero child.
10145         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
10146         (compute_flow_insensitive_aliasing): Correctly walk all
10147         pointers.  Do not unnecessarily union sets.
10148
10149 2008-04-23  Richard Guenther  <rguenther@suse.de>
10150
10151         PR middle-end/36021
10152         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
10153
10154 2008-04-22  Tomas Bily  <tbily@suse.cz>
10155
10156         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
10157         unreachable case.
10158         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
10159         NON_LVALUE_EXPR.
10160         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10161         * tree-ssa-structalias.c (get_constraint_for): Likewise.
10162         * tree-inline.c (estimate_num_insns_1): Likewise.
10163         * varasm.c (const_hash_1, compare_constant, copy_constant)
10164         (compute_reloc_for_constant, output_addressed_constants): Likewise.
10165         * emit-rtl.c (component_ref_for_mem_expr)
10166         (set_mem_attributes_minus_bitpos): Likewise.
10167         * expr.c (highest_pow2_factor, expand_expr_real_1, )
10168         (is_aligning_offset): Likewise.
10169         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
10170         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
10171         * dojump.c (do_jump): Likewise.
10172         * builtins.c (get_pointer_alignment, get_memory_rtx)
10173         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
10174         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
10175
10176 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
10177
10178         PR rtl-optimization/36017
10179         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
10180         expanding the library call.
10181
10182 2008-04-22  Ian Lance Taylor  <iant@google.com>
10183
10184         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
10185         than size_in_bytes.
10186
10187 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
10188
10189         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
10190         of LR/CTR moves for Power6.
10191
10192 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
10193
10194         PR middle-end/36003
10195         * passes.c (init_optimization_passes): Remove
10196         pass_fast_rtl_byte_dce.
10197
10198 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
10199
10200         PR target/29096
10201         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
10202         builtin functions to generate faster code.
10203         (_mm_cvtpu16_ps): Ditto.
10204         (_mm_cvtpi32x2_ps): Ditto.
10205
10206 2008-04-22  Nick Clifton  <nickc@redhat.com>
10207
10208         * common.opt (ftree-loop-distribution): Add Optimization
10209         attribute.
10210
10211         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
10212         (frv_expand_builtin_va_start): Likewise.
10213
10214         * config/arm/arm.c (thumb_find_work_register): Fix location of
10215         argument register count.
10216
10217 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
10218
10219         Support scheduling for ColdFire V1 and V3 microarchitecture.
10220         Improve scheduling of multiplication instructions.
10221
10222         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
10223         (mac): New instruction attribute.
10224         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
10225         (m68k_sched_mac): New variable.
10226         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
10227         Handle cfv1 and cfv3.
10228         (max_insn_size): New static variable.
10229         (struct _sched_ib): New type.
10230         (sched_ib): New static variable.
10231         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
10232         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
10233         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
10234         Update.
10235         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
10236         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
10237         new variables.  Update.
10238         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
10239         Add modeling of cfv3 instruction buffer.  Update.
10240         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
10241         * config/m68k/m68k.h (TUNE_CFV3): New macro.
10242         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
10243         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
10244         a particular reservation applies to.
10245         (type2): Reorganize attribute values.  Rename alu to alu_reg,
10246         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
10247         to mul_l and mul_w.
10248         (cf_ib_*): Simplify description of instruction buffer.
10249         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
10250         (cf_mem): Split into cf_mem1 and cf_mem2.
10251         (cf_v2_move_??): Rename to cfv12_alu_??.
10252         (cf_v2_move_l_??): Rename to cfv12_omove_??.
10253         (cf_v2_mul_??): Remove reservations.
10254         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
10255         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
10256         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
10257         appropriate place.
10258         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
10259         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
10260         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
10261         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
10262         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
10263         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
10264         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
10265         expansions of the above reservations for instructions of sizes
10266         1, 2 and 3 words.
10267
10268 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
10269
10270         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
10271
10272 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
10273
10274         * coverage.c: Include tree-pass.h.
10275         (coverage_counter_alloc): Print da_file_name to the dump file.
10276
10277 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
10278
10279         * sbitmap.c (sbitmap_range_empty_p): New function.
10280         * sbitmap.h (sbitmap_range_empty_p): New function.
10281         * bitmap.h: Now includes obstack.h.
10282
10283 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
10284             Kenneth Zadeck  <zadeck@naturalbridge.com>
10285
10286         * dbgcnt.def (ra_byte_scan): Added.
10287         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
10288         when the last hit happens for a counter.
10289         * timevar.def (TV_DF_BYTE_LR): New variable.
10290         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
10291         * passes.c (pass_fast_rtl_byte_dce): New pass.
10292         * fwprop.c (update_df): Added mode to call df_ref_create.
10293         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10294         DF_REF_EXTRACT_OFFSET.
10295         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
10296         DF_BYTE_LR_OUT, df_byte_lr): New macro.
10297         (df_mm): New enum.
10298         (df_ref_extract): Added mode field.
10299         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
10300         DF_REF_EXTRACT_OFFSET.
10301         (DF_REF_EXTRACT_MODE): New macro.
10302         (df_byte_lr_bb_info): New structure.
10303         (df_print_byte_regset, df_compute_accessed_bytes,
10304         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
10305         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
10306         df_byte_lr_simulate_uses,
10307         df_byte_lr_simulate_artificial_refs_at_top,
10308         df_byte_lr_simulate_artificial_refs_at_end,
10309         df_compute_accessed_bytes): New function.
10310         (df_ref_create): Add parameter.
10311         (df_byte_lr_get_bb_info): New inline function.
10312         * df-scan.c (df_ref_record, df_uses_record,
10313         df_ref_create_structure): Added mode parameter.
10314         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
10315         df_defs_record, df_uses_record, df_get_conditional_uses,
10316         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
10317         df_entry_block_defs_collect, df_exit_block_uses_collect):
10318         Added mode parameter to calls to df_ref_record, df_uses_record,
10319         df_ref_create_structure.
10320         (df_ref_equal_p, df_ref_compare): Added test for modes.
10321         (df_ref_create_structure): Added code to set mode.  Renamed
10322         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10323         DF_REF_EXTRACT_OFFSET.
10324         * df-core.c (df_print_byte_regset): New function.
10325         * df-byte-scan.c: New file.
10326         * df-problems.c (df_rd_transfer_function): Removed unnecessary
10327         calls to BITMAP_FREE.
10328         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
10329         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
10330         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
10331         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
10332         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
10333         df_byte_lr_local_compute, df_byte_lr_init,
10334         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
10335         df_byte_lr_transfer_function, df_byte_lr_free,
10336         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
10337         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
10338         df_byte_lr_simulate_uses,
10339         df_byte_lr_simulate_artificial_refs_at_top,
10340         df_byte_lr_simulate_artificial_refs_at_end): New function.
10341         * dce.c (byte_dce_process_block): New function.
10342         (dce_process_block): au is now passed in rather than computed
10343         locally.  Changed loops that look at artificial defs to not look
10344         for conditional or partial ones, because there never are any.
10345         (fast_dce): Now is able to drive byte_dce_process_block or
10346         dce_process_block depending on the kind of dce being done.
10347         (rest_of_handle_fast_dce): Add parameter to fast_dce.
10348         (rest_of_handle_fast_byte_dce): New function.
10349         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
10350         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
10351
10352 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
10353
10354         PR fortran/35019
10355         * gcc.h: Added fortran options that take arguments to
10356         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
10357         macros.
10358
10359 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
10360
10361         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
10362         scalarization if on the LHS and not a full access.
10363
10364 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10365
10366         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
10367
10368 2008-04-18  Rafael Espindola  <espindola@google.com>
10369
10370         * tree-vrp.c (find_case_label_index): Fix the binary search.
10371         (find_case_label_range): New.
10372         (vrp_visit_switch_stmt): Use find_case_label_range.
10373         (simplify_switch_using_ranges): Use find_case_label_range.
10374
10375 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
10376
10377         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
10378         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
10379
10380 2008-04-18  Tom Tromey  <tromey@redhat.com>
10381
10382         PR libcpp/15500:
10383         * doc/cpp.texi (Implementation-defined behavior): Mention
10384         -finput-charset.
10385
10386 2008-04-18  Ian Lance Taylor  <iant@google.com>
10387
10388         * fold-const.c (pointer_may_wrap_p): New static function.
10389         (fold_comparison): Add another test for pointer overflow.  Use
10390         pointer_may_wrap_p to disable some false positives.
10391
10392 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
10393
10394         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
10395         (fname_as_string): Match updated cpp_interpret_string prototype.
10396         (fix_string_type): Support char16_t* and char32_t*.
10397         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
10398         derivative) nodes.  Register as builtin if C++0x.
10399         (c_parse_error): Support CPP_CHAR{16,32}.
10400         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
10401         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
10402         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
10403         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
10404         CTI_CHAR32_ARRAY_TYPE>: New elements.
10405         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
10406         char32_type_node, signed_char32_type_node, char16_array_type_node,
10407         char32_array_type_node): New defines.
10408         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
10409         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
10410         (lex_string): Support CPP_STRING{16,32}, match updated
10411         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
10412         (lex_charconst): Support CPP_CHAR{16,32}.
10413         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
10414         and CPP_STRING{16,32}.
10415
10416 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
10417
10418         PR bootstrap/35457
10419         * aclocal.m4: Regenerate.
10420         * configure: Regenerate.
10421
10422 2008-04-18  Jan Hubicka  <jh@suse.cz>
10423
10424         * except.c (dw2_size_of_call_site_table,
10425         sjlj_size_of_call_site_table): Use vector API for call_site_record.
10426
10427         * cgraphbuild.c (build_cgraph_edges): Update.
10428         * tree-pass.h: Update comment.
10429         * final.c (leaf_function_p): Update.
10430         (leaf_renumber_regs): Update.
10431         (rest_of_clean_state): Update.
10432         * omp-low.c (expand_omp_parallel): Update.
10433         * ipa-reference.c (analyze_function): Update.
10434         * reorg.c (find_end_label): Update.
10435         (optimize_skip): Update.
10436         (fill_simple_delay_slots): Update.
10437         (fill_simple_delay_slots): Update.
10438         (make_return_insns): Update.
10439         (dbr_schedule): Update.
10440         * gimple-low.c (record_vars_into): Update.
10441         * cfgbuild.c (make_edges): Update.
10442         * function.c (assign_stack_local): Update.
10443         (assign_parm_adjust_stack_rtl): Update.
10444         (locate_and_pad_parm): Update.
10445         (allocate_struct_function): Do not initialize stack_alignment_needed
10446         and preferred_stack_boundary here.
10447         (stack_protect_prologue): Update.
10448         (stack_protect_epilogue): Update.
10449         (expand_function_start): Initialize stack_alignment_needed,
10450         preferred_stack_boundary and max_jumptable_ents.
10451         (expand_function_end): Update.
10452         (free_after_compilation): Do not NULLify epilogue_delay_list.
10453         * function.h (struct rtl_data): Add stack_protect_guard,
10454         stack_alignment_needed,
10455         preferred_stack_boundary, epilogue_delay_list.
10456         (struct function): Remove value_histograms, stack_alignment_needed,
10457         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
10458         last_label_uid,
10459         unexpanded_var_list, stack_protect_guard.
10460         (current_function_epilogue_delay_list): Remove.
10461         * ipa-type-escape.c (analyze_function): Update.
10462         * gimplify.c (pop_gimplify_context): Update comment.
10463         * calls.c (expand_call): Update.
10464         (emit_library_call_value_1): Update.
10465         * except.c (set_nothrow_function_flags): Update.
10466         * cfgexpand.c (get_decl_align_unit): Update.
10467         (create_stack_guard): Update.
10468         (estimated_stack_frame_size): Update.
10469         (expand_used_vars): Update.
10470         (tree_expand_cfg): Free histogram earliers, init expansion variables.
10471         * explow.c (allocate_dynamic_stack_space): Update.
10472         * tree-ssa-live.c (remove_unused_locals): Update.
10473         * varasm.c (mark_constant_pool): Update.
10474         * tree-inline.c (remap_decls): Update.
10475         (initialize_cfun): Update.
10476         (declare_return_variable): Update.
10477         (inline_forbidden_p): Update.
10478         (expand_call_inline): Update.
10479         (declare_inline_vars): Update.
10480         (tree_function_versioning): Update.
10481         * tree-flow.h (value_histograms): New.
10482         (VALUE_HISTOGRAMS): New macro.
10483         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
10484         last_label_uid.
10485         * tree-cfg.c (set_bb_for_stmt): Update.
10486         (replace_by_duplicate_decl): Update.
10487         (move_block_to_fn): Update.
10488         (new_label_mapper): Update.
10489         (dump_function_to_file): Update.
10490         * ipa-struct-reorg.c (build_data_structure): Update.
10491         * cfgrtl.c (print_rtl_with_bb): Update.
10492         * reload1.c (reload): Update.
10493         (reload): Update.
10494         * config/i386/i386.c (setup_incoming_varargs_64,
10495         ix86_compute_frame_layout): Update.
10496         * config/arc/arc.c (arc_output_function_epilogue): Update.
10497
10498 2008-04-18  Marius Strobl <marius@FreeBSD.org>
10499
10500         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
10501         for FreeBSD as well.
10502         * gthr-posix95.h: Likewise.
10503
10504 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
10505
10506         PR rtl-optimization/35838
10507         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
10508         out the byte offset of the first subreg.
10509
10510 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
10511
10512         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
10513         to split_ti instead of three separate calls with single member arrays.
10514         (subti3 splitter): Ditto.
10515         (adddi3 splitter): Ditto with split_di.
10516         (subdi3 splitter): Ditto.
10517         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
10518         two separate calls with single member arrays.  Swap match_dup
10519         operands 1 and 2 to better fit into the array.
10520         (negdi2 splitter): Ditto with split_di.
10521         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
10522         two separate calls with single member arrays.  Swap match_dup operands
10523         6 and 7 to better fit into the array.
10524
10525 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
10526
10527         * config/i386/i386.c (sse_builtin_type): New.
10528         (bdesc_sse_args): Likewise.
10529         (bdesc_sse_3arg): Removed.
10530         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10531         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
10532         IX86_BUILTIN_ROUNDPS.
10533         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
10534         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
10535         IX86_BUILTIN_ROUNDPS.
10536         (ix86_expand_sse_4_operands_builtin): Removed.
10537         (ix86_expand_sse_operands_builtin): New.
10538         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
10539         and CODE_FOR_sse4_1_roundps.
10540         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10541         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
10542
10543 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
10544
10545         PR target/35907
10546         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
10547         regs before frame pop when needed.  If use_backchain_to_restore_sp
10548         then load backchain into a temp reg to restore vr and vrsave.  Add
10549         code to restore vr after frame pop if possible.
10550
10551 2008-04-17  Richard Guenther  <rguenther@suse.de>
10552
10553         * tree-vn.c (expressions_equal_p): Do not check type
10554         equality or compatibility before calling operand_equal_p.
10555         * fold-const.c (operand_equal_p): Check equivalence of
10556         integer constants before bailing out due to signedness or
10557         precision differences.
10558         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
10559         spurious differences in type qualification.  Ignore types
10560         for COMPONENT_REFs at all.
10561
10562 2008-04-17  Christian Bruel  <christian.bruel@st.com>
10563
10564         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
10565         msw_skip comparison.
10566
10567 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
10568
10569         PR c/35739
10570         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
10571         reg type.
10572
10573         PR tree-optimization/35899
10574         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
10575         rather than TREE_OPERAND.
10576
10577 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
10578
10579         PR target/35944
10580         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
10581         temporary registers.  Change operand predicate to general_operand.
10582         (remainderxf3): Ditto.
10583
10584 2008-04-16  Richard Guenther  <rguenther@suse.de>
10585
10586         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
10587         * tree-affine.c (aff_combination_expand): Look through some
10588         conversions.
10589
10590 2008-04-15  Doug Kwan  <dougkwan@google.com>
10591
10592         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
10593         for hex printing.
10594         * tree-pretty-print.c (dump_generic_node): Ditto.
10595         * final.c (output_addr_const): Ditto.
10596         * dwarf2out.c (output_cfi): Ditto.
10597         * c-pretty-print.c (pp_c_integer_constant): Ditto.
10598         * print-rtl.c (print_rtx): Ditto.
10599         * print-tree.c (print_node_brief, print_node): Ditto.
10600         * c-common.c (match_case_to_enum_1): Ditto.
10601         * sched-vis.c (print_value): Ditto.
10602         * config/i386/i386.c (print_operand): Cast to long unsigned int
10603         for hex printing.
10604
10605 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
10606         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
10607         MS Windows VirtualProtect function.
10608
10609 2008-04-15  Jan Hubicka  <jh@suse.cz>
10610
10611         * gengtype.c (write_root): Param_is argument is OK.
10612         * expr.c (expand_expr_real_1): Update call of get_exception_*.
10613         * function.h: Include varray.h
10614         (rtl_eh): New stucture based on except.c one.
10615         (call_site_record): New forward declaration and vector type.
10616         * calls.c (emit_call_1): Do not call
10617         note_current_region_may_contain_throw.
10618         * except.c (eh_status): Remove cur_region, try_region since they are
10619         unused.
10620         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
10621         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
10622         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
10623         Remove call_site_data_used, call_site_data_size.
10624         Turn call_site_record into vector in function.h.
10625         (note_current_region_may_contain_throw): Remove.
10626         (get_exception_pointer, get_exception_filter): Do not take struct
10627         function argument; update.
10628         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
10629         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
10630         build_post_landing_pads, dw2_build_landing_pads,
10631         sjlj_assign_call_site_values, sjlj_mark_call_sites,
10632         sjlj_emit_function_enter, sjlj_emit_function_enter,
10633         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
10634         sjlj_build_landing_pads, finish_eh_generation,
10635         remove_exception_handler_label, remove_eh_handler,
10636         maybe_remove_eh_handler, add_reachable_handler,
10637         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
10638         add_action_record, collect_one_action_chain, add_call_site,
10639         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
10640         sjlj_output_call_site_table, output_function_exception_table,
10641         * except.h (note_current_region_may_contain_throw): Remove
10642         (get_exception_pointer, get_exception_filter): Do not take struct
10643         function argument.
10644         * Makefile.in (GTFILES): Put varargs before struct function.
10645
10646 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10647
10648         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
10649         punt for STRING_CST.
10650         (get_constraint_for): Deal with STRING_CST here instead.
10651
10652 2008-04-15  Richard Guenther  <rguenther@suse.de>
10653
10654         * tree-ssa-propagate.c (substitute_and_fold): Substitute
10655         statements in a basic-block with a backward walk.  Do not
10656         substitute into dead statements but instead remove those.
10657
10658 2008-04-15  Richard Guenther  <rguenther@suse.de>
10659
10660         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
10661         to zero, thus disable creation of SFTs.
10662
10663 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10664
10665         * tree-predcom.c (suitable_reference_p): Return false if the
10666         reference can throw.
10667
10668 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
10669
10670         PR c/35751
10671         * c-decl.c (finish_decl): If extern or static var has variable
10672         size, set TREE_TYPE (decl) to error_mark_node.
10673
10674 2008-04-15  Rafael Espindola  <espindola@google.com>
10675
10676         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
10677         variable arg1.
10678
10679 2008-04-15  Richard Guenther  <rguenther@suse.de>
10680
10681         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
10682         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
10683         (visit_reference_op_load): Do walk vuse-vdef chains on
10684         vn_reference_lookup.
10685         (visit_reference_op_store): But do not here.
10686         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
10687         vn_reference_lookup.
10688         (vn_lookup_with_vuses): But do so here.
10689
10690 2008-04-14  Ian Lance Taylor  <iant@google.com>
10691
10692         * fold-const.c (fold_overflow_warning): Remove assertion.
10693
10694 2008-04-15  Ben Elliston  <bje@au.ibm.com>
10695
10696         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
10697         temp1 local variables.
10698
10699 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
10700
10701         PR target/35661
10702         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
10703         ".text.unlikely" section as executable.
10704
10705 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
10706
10707         * config/ia64/ia64.c (rtx_needs_barrier): Handle
10708         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
10709         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
10710         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
10711         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
10712         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
10713         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
10714
10715 2008-04-14  Ian Lance Taylor  <iant@google.com>
10716
10717         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
10718         * fold-const.c (fold_comparison): If appropriate, test
10719         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
10720         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
10721         reassociating a pointer type.
10722         * doc/invoke.texi (Optimize Options): Document that
10723         -fstrict-overflow applies to pointer wraparound.
10724
10725 2008-04-13  Jan Hubicka  <jh@suse.cz>
10726
10727         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
10728
10729 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
10730
10731         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
10732         we are going to "save the world".
10733
10734 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
10735
10736         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
10737         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
10738         operand 0 constraint, not "=".
10739
10740 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
10741
10742         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
10743
10744 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10745
10746         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
10747         of size of positions_needed * CHAR_BIT.
10748
10749 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10750
10751         PR middle-end/35897
10752         * dse.c (store_info): Change positions_needed to unsigned
10753         HOST_WIDE_INT.
10754         (lowpart_bitmask): New.
10755         (record_store): Cast to unsigned HOST_WIDE_INT for
10756         positions_needed.  Assert width <= size of positions_needed *
10757         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
10758         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
10759         lowpart_bitmask to set mask.
10760
10761 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
10762
10763         * config/bfin/constraints.md: New file.
10764         * config/bfin/bfin.md: Include it.
10765         (adddi3): Use satisfies_constraint functions instead of the old macros.
10766         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
10767         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
10768         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
10769         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
10770         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
10771         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
10772         EXTRA_CONSTRAINT): Delete.
10773         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
10774         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
10775         of the old macros.
10776         * config/bfin/bfin.c: Include "tm-constrs.h".
10777         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
10778         Use satisfies_constraint functions instead of the old macros.
10779         * doc/md.texi (Blackfin Constraints): Update file name reference.
10780
10781 2008-04-11  Richard Guenther  <rguenther@suse.de>
10782
10783         PR tree-optimization/35869
10784         * tree-vrp.c (execute_vrp): Move switch statement update after
10785         jump threading.  Schedule another cfg cleanup run.
10786
10787 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
10788
10789         PR c/35744
10790         * attribs.c (decl_attributes): Return early on errorneous node.
10791
10792 2008-04-10  Oleg Ryjkov  <olegr@google.com>
10793
10794         * tree.h (struct tree_base): Added a new flag default_def_flag.
10795         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
10796
10797 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
10798
10799         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
10800
10801 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10802
10803         PR target/35768
10804         * pa.md: Define mode iterator P.  Define mode attribute dwc.
10805         (dcacheflush): Update pattern to use iterator P and attribute dwc.
10806         (icacheflush): Likewise.
10807         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
10808         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
10809
10810 2008-04-11  Ben Elliston  <bje@au.ibm.com>
10811
10812         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
10813
10814 2008-04-10  Rafael Espindola  <espindola@google.com>
10815
10816         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
10817         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
10818         (extract_range_from_expr): The same.
10819
10820 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10821
10822         * config/mips/mips.md (GPR2): New mode iterator.
10823         (seq): Add comment.
10824         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
10825         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
10826         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
10827         Rewrite these to take two modes, the mode of comparison and the
10828         mode of the destination.
10829         * config/mips/mips.c (mips_expand_scc): Instead of having
10830         paradoxical subreg as destination, expand "narrowing" scc if mode
10831         of comparison is SI and target is requested in DI mode.
10832         (mips_emit_int_order_test): Update comment.  Make mode of
10833         comparison match CMP0 rather than TARGET.  When creating inverse
10834         target use mode of TARGET.
10835
10836 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10837
10838         * gcov-dump.c (tag_summary): Only print summaries for the first
10839         GCOV_COUNTERS_SUMMABLE counters.
10840
10841 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
10842
10843         * config/i386/i386.md (absneg): New code iterator.
10844         (absnegprefix): New code attribute.
10845         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
10846         patterns using absneg code iterator.
10847         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
10848         using absneg code iterator.
10849         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
10850         *neg<mode>2 patterns using absneg code iterator.
10851         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10852         *negextendsfdf2 patterns using absneg code iterator.
10853         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
10854         *negextendsfxf2 patterns using absneg code iterator.
10855         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10856         *negextendsfdf2 patterns using absneg code iterator.
10857         * config/i386/sse.md (<code><mode>2): Macroize expander from
10858         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
10859
10860 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
10861
10862         * config/s390/s390.h: Remove the remains of the recent search
10863         & replace action of current_function_outgoing_args_size.
10864
10865 2008-04-10  Ira Rosen  <irar@il.ibm.com>
10866
10867         PR tree-optimization/35821
10868         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
10869         NEW_STMT_LIST is not NULL.
10870
10871 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
10872
10873         PR libstdc++/35597
10874         * toplev.c (process_options): Remove -ffunction-sections debugging
10875         warning.
10876
10877 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
10878
10879         PR middle-end/PR28690
10880         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
10881         than gen_rtx_fmt_ee to perform more canonicalizations.
10882
10883 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10884
10885         PR driver/35665
10886         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
10887
10888 2008-04-09  Richard Guenther  <rguenther@suse.de>
10889
10890         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
10891         (dump_function_to_file): Dump function arguments with types.
10892
10893 2008-04-08  Richard Guenther  <rguenther@suse.de>
10894
10895         * fold-const.c (fold_widened_comparison): Do not allow
10896         sign-changes that change the result.
10897
10898 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
10899
10900         PR target/35839
10901         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
10902         kinds of indirect references.
10903
10904 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
10905
10906         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
10907         GNU Fortran language string.
10908
10909 2008-04-08  Rafael Espindola  <espindola@google.com>
10910
10911         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
10912         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
10913         * tree.h (tree_call_nonnegative_warnv_p): New.
10914
10915 2008-04-08  Jan Hubicka  <jh@suse.cz>
10916
10917         * function.c (free_after_compilation): Clear out regno_reg_rtx
10918         pointer.
10919
10920 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
10921
10922         Revert
10923         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10924
10925         PR middle-end/PR28690
10926         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
10927         same precedence as REG_POINTER and MEM_POINTER operands.
10928
10929 2008-04-08  Richard Guenther  <rguenther@suse.de>
10930
10931         PR middle-end/35834
10932         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
10933         for adding index to base.
10934
10935 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
10936
10937         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
10938         (MINGW_ENABLE_EXECUTE_STACK): New.
10939         (IN_LIBGCC2): For libgcc include windows.h file for
10940         function declarations.
10941
10942 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
10943
10944         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
10945         and tem2 if tem1 is not a REG or MULT.
10946
10947 2008-04-08  Jan Hubicka  <jh@suse.cz>
10948
10949         * function.h (incomming_args): Break out of struct function.
10950         (function_subsections): Break out of struct function.
10951         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
10952         return_rtx and hard_reg_initial_vals from struct function.
10953         Kill inl_max_label_num.
10954         (current_function_pops_args, current_function_args_info,
10955         current_function_args_size, current_function_args_size,
10956         current_function_pretend_args_size,
10957         current_function_outgoing_args_size,
10958         current_function_internal_arg_pointer, current_function_return_rtx):
10959         Kill compatibility accestor macros.
10960         * builtins.c (expand_builtin_apply_args_1): Update.
10961         (expand_builtin_next_arg): Update.
10962         * df-scan.c (df_get_call_refs): Update.
10963         * dbxout.c (dbxout_function_end): Update.
10964         * dwarf2out.c (dwarf2out_switch_text_section): Update.
10965         (output_line_info): Update.
10966         (secname_for_decl): Update.
10967         (dwarf2out_var_location): Update.
10968         * function.c (free_after_compilation): Update.
10969         (assign_parm_find_stack_rtl): Update.
10970         (assign_parms): Update.
10971         (expand_dummy_function_end): Update.
10972         (expand_function_end): Update.
10973         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10974         (expand_call): Update.
10975         (emit_library_call_value_1): Update.
10976         (store_one_arg): Update.
10977         * varasm.c (initialize_cold_section_name): Update.
10978         (unlikely_text_section): Update.
10979         (unlikely_text_section_p): Update.
10980         (assemble_start_function): Update.
10981         (assemble_end_function): Update.
10982         (default_section_type_flags): Update.
10983         (switch_to_section): Update.
10984         * integrate.c (set_decl_abstract_flags): Update.
10985         (get_hard_reg_initial_val): Update.
10986         (has_hard_reg_initial_val): Update.
10987         (allocate_initial_values): Update.
10988         * resource.c (init_resource_info): Update.
10989         * config/alpha/alpha.c (NUM_ARGS): Update.
10990         (direct_return): Update.
10991         (alpha_va_start): Update.
10992         (alpha_sa_size): Update.
10993         (alpha_initial_elimination_offset): Update.
10994         (alpha_expand_prologue): Update.
10995         (alpha_start_function): Update.
10996         (alpha_expand_epilogue): Update.
10997         (unicosmk_initial_elimination_offset):
10998         * config/alpha/alpha.md (call expander): Update.
10999         * config/s390/s390.c (s390_register_info): Update.
11000         (s390_register_info): Update.
11001         (s390_frame_info): Update.
11002         (s390_initial_elimination_offset): Update.
11003         (s390_build_builtin_va_list): Update.
11004         (s390_va_start): Update.
11005         * config/spu/spu.c (direct_return): Update.
11006         (spu_expand_prologue): Update.
11007         (spu_initial_elimination_offset): Update.
11008         (spu_build_builtin_va_list): Update.
11009         (spu_va_start): Update.
11010         * config/sparc/sparc.c (sparc_init_modes): Update.
11011         (sparc_compute_frame_size): Update.
11012         (function_value): Update.
11013         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
11014         * config/i386/i386.md (return expander): Update.
11015         * config/i386/i386.c (ix86_va_start): Update.
11016         (ix86_can_use_return_insn_p): Update.
11017         (ix86_compute_frame_layout): Update.
11018         (ix86_expand_epilogue): Update.
11019         * config/sh/sh.c (output_stack_adjust): Update.
11020         (calc_live_regs): Update.
11021         (sh_expand_prologue): Update.
11022         (sh_builtin_saveregs): Update.
11023         (sh_va_start): Update.
11024         (initial_elimination_offset): Update.
11025         (sh_allocate_initial_value): Update.
11026         (sh_function_ok_for_sibcall): Update.
11027         (sh_get_pr_initial_val): Update.
11028         * config/sh/sh.md (return expander): Update.
11029         * config/avr/avr.c (frame_pointer_required_p): UPdate.
11030         * config/crx/crx.c (crx_compute_frame): UPdate.
11031         (crx_initial_elimination_offset): UPdate.
11032         * config/xtensa/xtensa.c (compute_frame_size): Update
11033         (xtensa_builtin_saveregs): Update.
11034         (xtensa_va_start): Update.
11035         (order_regs_for_local_alloc): Update.
11036         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
11037         (xstormy16_expand_builtin_va_start): Update.
11038         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
11039         * config/m68hc11/m68hc11.md (return expanders): Update.
11040         * config/m68hc11/m68hc11.c (expand_prologue): Update.
11041         (expand_epilogue): Update.
11042         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
11043         (cris_simple_epilogue): Update.
11044         (cris_expand_prologue): Update.
11045         (cris_expand_epilogue): Update.
11046         * config/iq2000/iq2000.c (iq2000_va_start): Update.
11047         (compute_frame_size): Update.
11048         * config/mt/mt.c (mt_compute_frame_size): Update.
11049         * config/mn10300/mn10300.c (expand_prologue): Update.
11050         (expand_epilogue): Update.
11051         (initial_offset): Update.
11052         (mn10300_builtin_saveregs):
11053         * config/mn10300/mn10300.md (return expander): Update.
11054         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
11055         (ia64_initial_elimination_offset): Update.
11056         (ia64_initial_elimination_offset): Update.
11057         (ia64_expand_prologue): Update.
11058         * config/m68k/m68k.md (return expander): Update.
11059         * config/rs6000/rs6000.c (rs6000_va_start): Update.
11060         (rs6000_stack_info): Update.
11061         * config/mcore/mcore.c (layout_mcore_frame): Update.
11062         (mcore_expand_prolog): Update.
11063         * config/arc/arc.c (arc_compute_frame_size): Update.
11064         * config/score/score3.c (score3_compute_frame_size): Update.
11065         * config/score/score7.c (score7_compute_frame_size): Update.
11066         * config/arm/arm.c (use_return_insn): Update.
11067         (thumb_find_work_register): Update.
11068         (arm_compute_save_reg_mask): Update.
11069         (arm_output_function_prologue): Update.
11070         (arm_output_epilogue): Update.
11071         (arm_size_return_regs): Update.
11072         (arm_get_frame_offsets): Update.
11073         (arm_expand_prologue): Update.
11074         (thumb_exit): Update.
11075         (thumb_unexpanded_epilogue): Update.
11076         (thumb1_output_function_prologue): Update.
11077         * config/pa/pa.md (return expander): Update.
11078         * config/pa/pa.c (compute_frame_size): Update.
11079         (hppa_builtin_saveregs): Update.
11080         * config/mips/mips.c (mips_va_start): Update.
11081         (mips16_build_function_stub): Update.
11082         (mips_compute_frame_info): Update.
11083         (mips_restore_gp): Update.
11084         (mips_output_function_prologue): Update.
11085         (mips_expand_prologue): Update.
11086         * config/v850/v850.c (compute_frame_size): Update.
11087         (expand_prologue): * config/mmix/mmix.c (along): update.
11088         (mmix_initial_elimination_offset): update.
11089         (mmix_reorg): update.
11090         (mmix_use_simple_return): update.
11091         (mmix_expand_prologue): update.
11092         (mmix_expand_epilogue): Update.
11093         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
11094         (emit_link_insn): Update.
11095
11096 2008-04-08  Anatoly Sokolov <aesok@post.ru>
11097
11098         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
11099         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
11100         instructions.
11101         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
11102         atmega103 device.
11103
11104 2008-04-07  Jan Hubicka  <jh@suse.cz>
11105
11106         * function.h (rtl): Rename to x_rtl.
11107         (crtl): New define.
11108         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11109         frame_offset, stack_check_probe_note, arg_pointer_save_area,
11110         used_temp_slots avail_temp_slots, temp_slot_level,
11111         nonlocal_goto_handler_labels): Update accesstors.
11112         (rtl): New global variable.
11113         (struct function): Move some fileds to rtl_data.
11114         (get_arg_pointer_save_area): Update prototype.
11115         * builtins.c (expand_builtin_setjmp_receiver): Update call of
11116         get_arg_pointer_save_area.
11117         * expr.c (init_expr): Update
11118         * function.c (get_frame_size): Update
11119         (assign_stack_local): Update
11120         (expand_function_end): Update.
11121         (get_art_pointer_save_area): Update
11122         * function.h
11123         * emit-rtl.c (rtl): Declare.
11124         (regno_reg_rtx): Declare.
11125         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11126         Update.
11127         (gen_reg_rtx): Update.
11128         * varasm.c (n_deferred_constatns): Update accestor.
11129         (init_varasm_status): Do not allocate varasm_status.
11130         (force_const_mem, get_pool_size, output_constant_pool): Update.
11131         * stmt.c (force_label_rtx): Do not use x_ prefixes.
11132         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11133         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
11134         * sparc/sparc.h (INIT_EXPANDERS): Update.
11135         * ia64/ia64.h (INIT_EXPANDERS): Update.
11136
11137 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
11138
11139         * reload.c (push_secondary_reload): Add missing break to for loop.
11140
11141 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
11142
11143         PR middle-end/PR28690
11144         * rtlanal.c: Update copyright years.
11145         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
11146         as REG_POINTER and MEM_POINTER operands.
11147         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
11148         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
11149         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
11150         * gcse.c: Update copyright years.
11151         (pre_delete): Call gen_reg_rtx_and_attrs.
11152         (hoist_code): Likewise.
11153         (build_store_vectors): Likewise.
11154         (delete_store): Likewise.
11155         * loop-invariant.c (move_invariant_reg): Likewise.
11156         Update copyright years.
11157
11158 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
11159
11160         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
11161         control string instead of quoted.
11162
11163 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
11164
11165         * doc/rtl.texi: Rewrite of subreg section.
11166
11167 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
11168
11169         PR/35842
11170         * config/i386/i386.c (legitimize_pic_address): Add treating
11171         of dllimport SYM_REF's.
11172         (legitimize_dllimport_symbol): Add prototype.
11173
11174 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11175
11176         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
11177         reference in constructor with non self-referential type.
11178
11179 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
11180
11181         Removal of Return with Depressed Stack Pointer support
11182         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
11183         (ECF_SP_DEPRESSED): Likewise.
11184         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
11185         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
11186         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11187         (expand_call): Do not test ECF_SP_DEPRESSED.
11188         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11189         * function.c (keep_stack_depressed): Delete.
11190         (handle_epilogue_set): Likewise.
11191         (update_epilogue_consts): Likewise.
11192         (emit_equiv_load): Likewise.
11193         (thread_prologue_and_epilogue_insns): Remove support for Return with
11194         Depressed Stack Pointer.
11195         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11196
11197 2008-04-06  Richard Guenther  <rguenther@suse.de>
11198
11199         PR tree-optimization/35400
11200         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
11201         information from SSA_NAMEs.
11202
11203 2008-04-06  Anatoly Sokolov <aesok@post.ru>
11204
11205         * config/avr/avr.h (avr_mega_p): Remove declaration.
11206         (AVR_MEGA): Remove macro.
11207         * config/avr/avr.c (avr_mega_p): Remove variable.
11208         (avr_override_options): Remove inicializion of avr_mega_p.
11209         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11210         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11211         (avr_jump_mode): (Ditto.).
11212         (avr_output_progmem_section_asm_op): (Ditto.).
11213         (avr_asm_init_sections): (Ditto.).
11214         (avr_asm_init_sections): (Ditto.).
11215         (avr_rtx_costs): (Ditto.).
11216         * config/avr/avr.md: (Ditto.).
11217         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
11218         '__AVR_MEGA__'.
11219
11220 2008-04-06  Richard Guenther  <rguenther@suse.de>
11221
11222         PR tree-optimization/35842
11223         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
11224         is_gimple_invariant_address.
11225
11226 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11227
11228         * gcc.c (default_compilers): Sync Fortran extensions list with
11229         that in fortran/lang-specs.h.
11230         * doc/invoke.texi: Likewise.
11231         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
11232         * dwarf2out.c (gen_compile_unit_die): Likewise.
11233
11234 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
11235
11236         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
11237
11238 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
11239
11240         PR target/12329
11241         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
11242         attribute is used for nested functions.
11243
11244 2008-04-05  Jan Hubicka  <jh@suse.cz>
11245
11246         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
11247
11248         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
11249         letter argument.
11250         (dump_files): Update.
11251         (enable_rtl_dump_file): Do not accept letter argument.
11252         * tree-pass.h (dump_file_info): Remove letter argument.
11253         * toplev.c (decode_d_option): Update -da handling.
11254         * toplev.h (enable_rtl_dump_file): Update prototype.
11255         * passes.c (register_one_dump_file): Do not accept IPA argument; work
11256         it out based on pass type.
11257         (register_dump_files_1): Likewise.
11258         (init_optimization_passes): Update register_one_dump_file calls.
11259         (execute_one_pass): Sanity check that IPA passes are called at IPA
11260         level and RTL passes at RTL level.
11261         (execute_pass_list): IPA pass can not be after or subpass of
11262         GIMPLE/RTL pass.
11263         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
11264         disallov RTL subpasses of IPA subpasses.
11265
11266 2008-04-05  Ben Elliston  <bje@au.ibm.com>
11267
11268         * tree-cfg.c (need_fake_edge_p): Return false for calls to
11269         builtins that return exactly once and do not throw. Cache call to
11270         call_expr_flags.
11271
11272 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
11273
11274         PR rtl-optimization/34916
11275         PR middle-end/35519
11276         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
11277         between instruction pairs.
11278
11279 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
11280
11281         * doc/invoke.texi: Document -mbitops for SH.
11282         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
11283         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
11284         * config/sh/sh.c (print_operand): Add %t operand code.
11285         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
11286         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
11287         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
11288         (extendqihi2): Likewise.
11289         (movqi_i): Likewise.
11290         (insv): Use bset, bclr and bst instructions for SH2A if possible.
11291         (extv): Use bld instruction for SH2A if possible.
11292         (extzv): Likewise.
11293         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
11294         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
11295         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
11296         (bset.b, bclr.b): Define peepholes.
11297         * config/sh/sh.opt (mbitops): New option.
11298
11299 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
11300
11301         PR target/35620
11302         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
11303         and view convert expression.
11304
11305 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
11306
11307         PR target/35364
11308         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
11309
11310 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
11311
11312         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
11313
11314         * config/i386/cpuid.h (bit_AES): New.
11315         (bit_PCLMUL): Likewise.
11316
11317         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
11318         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
11319         SSE2 if AES or PCLMUL is enabled.
11320         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
11321         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11322         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
11323         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
11324         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
11325         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
11326         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11327         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
11328         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
11329         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
11330         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
11331         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
11332         __builtin_ia32_aeskeygenassist128 and
11333         __builtin_ia32_pclmulqdq128.
11334         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
11335         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
11336         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
11337
11338         * config/i386/i386.h (TARGET_AES): New.
11339         (TARGET_PCLMUL): Likewise.
11340         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
11341
11342         * config/i386/i386.md (UNSPEC_AESENC): New.
11343         (UNSPEC_AESENCLAST): Likewise.
11344         (UNSPEC_AESDEC): Likewise.
11345         (UNSPEC_AESDECLAST): Likewise.
11346         (UNSPEC_AESIMC): Likewise.
11347         (UNSPEC_AESKEYGENASSIST): Likewise.
11348         (UNSPEC_PCLMUL): Likewise.
11349
11350         * config/i386/i386.opt (maes): New.
11351         (mpclmul): Likewise.
11352
11353         * config/i386/sse.md (aesenc): New pattern.
11354         (aesenclast): Likewise.
11355         (aesdec): Likewise.
11356         (aesdeclast): Likewise.
11357         (aesimc): Likewise.
11358         (aeskeygenassist): Likewise.
11359         (pclmulqdq): Likewise.
11360
11361         * config/i386/wmmintrin.h: New.
11362
11363         * doc/extend.texi: Document AES and PCLMUL built-in function.
11364
11365         * doc/invoke.texi: Document -maes and -mpclmul.
11366
11367 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
11368
11369         * function.c (free_after_parsing): Replace with
11370         cxx_push_function_context from C++ front-end.
11371         (allocate_struct_function): Don't call langhook.
11372         * langhooks.h (struct lang_hooks_for_functions): Delete.
11373         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
11374         member "function".
11375         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
11376         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
11377         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
11378         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
11379         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
11380         remove LANG_HOOKS_FUNCTION_INITIALIZER.
11381         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
11382
11383         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
11384         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
11385
11386 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
11387
11388         PR c/35440
11389         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
11390         for all types.
11391
11392 2008-04-04  Richard Guenther  <rguenther@suse.de>
11393
11394         PR middle-end/35823
11395         * fold-const.c (optimize_minmax_comparison): Use the correct
11396         type for the constant in the simplified comparison.
11397
11398 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
11399
11400         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
11401         Pass L2 size as "--param l2-cache-size" to the compiler.
11402         (decode_l2_cache): New function to decode L2 cache parameters using
11403         0x8000006 extended cpuid function.
11404         (detect_caches_amd): Determine parameters of L2 cache using
11405         decode_l2_caches function.
11406         (decode_caches_intel): Decode L2 cache parameters.
11407         (detect_caches_intel): Determine L2 cache parameters using
11408         decode_caches_intel and decode_l2_caches functions.
11409
11410 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
11411
11412         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
11413         secondary input reload for subword loads from the constant pool.
11414
11415 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
11416
11417         PR target/35713
11418         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
11419           constants of the appropriate size for runtime calculations.
11420
11421         PR c/35712
11422         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
11423           decimal-float literal constant zero.
11424
11425 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
11426
11427         PR c/35738
11428         * c-parser.c (c_parser_omp_atomic): Call
11429         default_function_array_conversion on the RHS.
11430
11431         PR middle-end/35818
11432         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
11433         call is_variable_sized if decl has incomplete type.
11434
11435 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
11436
11437         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
11438
11439 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
11440
11441         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
11442         iterators.
11443         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
11444         (sgt<u>): Merge sgt and sgtu into new expander.
11445         (sgt, sgtu): Remove expanders.
11446         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
11447         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
11448         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
11449         *sgtu_<mode>_mips16 into new pattern.
11450         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
11451         (sge<u>): Merge sge and sgeu into new expander.
11452         (sge, sgeu): Remove expanders.
11453         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
11454         new pattern.
11455         (*sge_<mode>, second *sge_<mode>): Remove patterns.
11456         (slt<u>): Merge slt and sltu into new expander.
11457         (slt, sltu): Remove expanders.
11458         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
11459         (*slt_<mode>, *sltu_<mode>): Remove patterns.
11460         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
11461         *sltu_<mode>_mips16 into new pattern.
11462         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
11463         (sle<u>): Merge sle and sleu into new expander.
11464         (sle, sleu): Remove expanders.
11465         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
11466         (*sle_<mode>, *sleu_<mode>): Remove patterns.
11467         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
11468         *sleu_<mode>_mips16 into new pattern.
11469         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
11470
11471 2008-04-03  Jan Hubicka  <jh@suse.cz>
11472
11473         PR tree-optimization/35795
11474         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
11475         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11476         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11477         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11478         * score/score3.c (score3_output_mi_thunk): Likewise.
11479         * score/score7.c (score7_output_mi_thunk): Likewise.
11480         * mips/mips.c (mips_output_mi_thunk): Likewise.
11481
11482 2008-04-03  Richard Guenther  <rguenther@suse.de>
11483
11484         * tree-vrp.c (extract_range_from_unary_expr): Handle all
11485         conversions.  Simplify code.
11486
11487 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
11488
11489         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
11490
11491 2008-04-03  Tom Tromey  <tromey@redhat.com>
11492             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11493
11494         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11495         * config/bfin/t-bfin-linux (generated_files): Add
11496         linux-sysroot-suffix.h.
11497         * doc/install.texi (Prerequisites): Require make 3.80.
11498         * doc/sourcebuild.texi (Front End Directory): Document new
11499         variable.
11500         * Makefile.in (generated_files): New variable.
11501         (ALL_HOST_OBJS): New variable.
11502         ($(ALL_HOST_OBJS)): New target.
11503
11504 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
11505
11506         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
11507         (remap_block): Call id->transform_lang_insert_block instead
11508         of langhook.
11509         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
11510         Set id.transform_lang_insert_block to NULL.
11511         (clone_body): Move to cp/optimize.c
11512         * tree-inline.h (struct copy_body_data): Change
11513         transform_lang_insert_block to function pointer.
11514         (copy_generic_body, copy_decl_no_change): Export.
11515         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
11516         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
11517         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
11518
11519         * c-tree.h (insert_block): Kill.
11520         * c-decl.c (insert_block): Kill.
11521
11522 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
11523
11524         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11525         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11526         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
11527         argument.
11528         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
11529         argument, call {push,pop}_function_context from here.
11530         * c-parser.c: Use c_{push,pop}_function_context.
11531
11532         * function.c (push_function_context_to): Move meat ...
11533         (push_function_context): ... here.  Simplify.
11534         * function.c (pop_function_context_from): Move meat ...
11535         (pop_function_context): ... here.  Simplify.
11536         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
11537         leave_nested).
11538         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11539         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11540         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
11541         * tree.h (push_function_context_to, pop_function_context_from): Remove.
11542
11543 2008-04-03  Ben Elliston  <bje@au.ibm.com>
11544
11545         * expmed.c (extract_force_align_mem_bit_field): Remove.
11546
11547 2008-04-03  Richard Guenther  <rguenther@suse.de>
11548
11549         PR middle-end/35800
11550         * expr.h (try_casesi): Adjust prototype.
11551         * expr.c (try_casesi): Take fallback label as extra parameter.
11552         Use that for gen_casesi if default_label is NULL.
11553         * stmt.c (expand_case): Pass fallback label to try_casesi,
11554         make sure to fill gaps with a fallback label if default_label
11555         is not present.
11556
11557 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
11558
11559         PR target/35801
11560         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
11561
11562 2008-04-03  Ben Elliston  <bje@au.ibm.com>
11563
11564         * expmed.c (extract_split_bit_field): Remove if (0) code.
11565         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
11566         (do_ds_constraint): Likewise.
11567
11568 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
11569
11570         * doc/cppopts.texi (-dU): Document.
11571         * c-common.h (flag_dump_macros): Update comment.
11572         * c-opts.c (handle_OPT_d): Handle -dU.
11573         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
11574         dump_queued_macros, cb_used_define, cb_used_undef): New.
11575         (init_pp_output): Handle -dU.
11576         (cb_line_change): Call dump_queued_macros.
11577         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
11578
11579 2008-04-02  Anatoly Sokolov <aesok@post.ru>
11580
11581         * config/avr/predicates.md (io_address_operand): New predicate.
11582         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
11583         * config/avr/avr.c (avr_io_address_p): Remove function.
11584         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
11585         'avr_io_address_p' function.
11586         (out_movhi_r_mr): (Ditto.).
11587         (out_movqi_mr_r): (Ditto.).
11588         (out_movhi_mr_r): (Ditto.).
11589         (avr_address_cost): (Ditto.).
11590
11591 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
11592
11593         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
11594         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
11595         in 32bit mode when XMM registers are available to avoid store
11596         forwarding stalls.
11597         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
11598         corresponding post-reload splitters.
11599
11600 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
11601
11602         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
11603         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
11604         __builtin_ia32_roundss.
11605         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
11606         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
11607         __builtin_ia32_roundss.
11608         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
11609         IX86_BUILTIN_SHUFPD here.
11610
11611 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
11612
11613         * config/i386/i386.md (plogic): New.
11614         (plogicprefix): Likewise.
11615
11616         * config/i386/mmx.md (mmx_<code><mode>3): New.
11617         (mmx_and<mode>3): Removed.
11618         (mmx_ior<mode>3): Likewise.
11619         (mmx_xor<mode>3): Likewise.
11620
11621         * config/i386/sse.md (<code><mode>3): New.
11622         (*<code><mode>3): Likewise.
11623         (*<code><mode>3): Likewise.
11624         (<code><mode>3): Likewise.
11625         (*sse_<code><mode>3): Likewise.
11626         (*sse2_<code><mode>3): Likewise.
11627         (<code>tf3): Likewise.
11628         (*<code>tf3): Likewise.
11629         (and<mode>3): Likewise.
11630         (*and<mode>3): Likewise.
11631         (ior<mode>3): Removed.
11632         (*ior<mode>3): Likewise.
11633         (xor<mode>3): Likewise.
11634         (*xor<mode>3): Likewise.
11635         (*and<mode>3): Likewise.
11636         (*ior<mode>3): Likewise.
11637         (*xor<mode>3): Likewise.
11638         (and<mode>3): Likewise.
11639         (*sse_and<mode>3): Likewise.
11640         (*sse2_and<mode>3): Likewise.
11641         (andtf3): Likewise.
11642         (*andtf3): Likewise.
11643         (ior<mode>3): Likewise.
11644         (*sse_ior<mode>3): Likewise.
11645         (*sse2_ior<mode>3): Likewise.
11646         (iortf3): Likewise.
11647         (*iortf3): Likewise.
11648         (xor<mode>3): Likewise.
11649         (*sse_xor<mode>3): Likewise.
11650         (*sse2_xor<mode>3): Likewise.
11651         (xortf3): Likewise.
11652         (*xortf3): Likewise.
11653
11654 2008-04-02  Richard Guenther  <rguenther@suse.de>
11655
11656         PR tree-optimization/14495
11657         PR tree-optimization/34793
11658         * tree-vrp.c (struct switch_update): New structure.
11659         (to_remove_edges, to_update_switch_stmts): New VECs.
11660         (simplify_switch_using_ranges): New function.  Remove not taken
11661         case labels and edges.
11662         (simplify_stmt_using_ranges): Call it.
11663         (identify_jump_threads): Mark edges we have queued for removal
11664         so we don't thread them.
11665         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
11666         case label vector.
11667         * tree-cfg.c (group_case_labels): Deal with missing default label.
11668         (tree_verify_flow_info): Allow missing default label.
11669         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
11670         (emit_case_nodes): Likewise.
11671         (expand_case): Do not rely on the default label to be present.
11672         * expr.c (try_casesi): Deal with NULL default_label.
11673         (do_tablejump): Likewise.
11674
11675 2008-04-02  Richard Guenther  <rguenther@suse.de>
11676
11677         PR tree-optimization/14495
11678         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
11679         SWITCH_EXPR here ...
11680         (vrp_visit_switch_stmt): ... but here (new function).
11681         (find_case_label_index): New helper function.
11682         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
11683
11684 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11685
11686         * fwprop.c: Fix ISO-C99ism.
11687
11688 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11689
11690         PR bootstrap/35752
11691         * Makefile.in (objdir): Set it here.
11692         * configure.ac: Not here.  Find dynamic linker characteristics.
11693         * exec-tool.in: Use them.
11694         * aclocal.m4: Regenerate.
11695         * configure: Regenerate.
11696
11697 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11698
11699         * expr.c (expand_var): Delete it.
11700         * expr.h (expand_var): Delete prototype.
11701         * function.c (expand_function_start): Use expand_decl instead.
11702         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
11703         langhook.
11704
11705 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
11706
11707         PR rtl-optimization/35542
11708         * fwprop.c (forward_propagate_and_simplify): Replace
11709         loc_reg_mentioned_in_p with reg_mentioned_p.
11710
11711 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11712
11713         PR rtl-optimization/35281
11714         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
11715         (propagate_rtx_1): Handle PR_HANDLE_MEM.
11716         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
11717         (varying_mem_p): Move above propagate_rtx.
11718         (all_uses_available_at): Do not check MEMs.
11719
11720 2008-04-02  Rafael Espindola  <espindola@google.com>
11721
11722         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
11723         (register_edge_assert_for_2): Split the cond argument.
11724         (register_edge_assert_for_1): Adjust for the change in
11725         register_edge_assert_for_2.
11726         (register_edge_assert_for): Split the cond argument.
11727         (find_switch_asserts): Adjust for the change in
11728         register_edge_assert_for.
11729
11730 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
11731
11732         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
11733         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
11734         offsets for 64-bit mingw.
11735         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
11736         abi for x86_64-pc-mingw.
11737
11738 2008-04-02  Richard Guenther  <rguenther@suse.de>
11739
11740         * tree-vrp.c (extract_range_from_assert): Make sure to not
11741         produce range min/max with TREE_OVERFOW set.
11742         If merging a anti-range and a range keep the anti-range if
11743         the range covers all values of the type.
11744         (register_edge_assert_for_2): Only allow sign-changing
11745         conversions in detecting canonical range checks.  Also
11746         register an assert for the unsigned name if useful.
11747
11748         PR tree-optimization/35787
11749         * tree-vrp.c (vrp_val_max): New function.
11750         (vrp_val_min): Likewise.
11751         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
11752         (vrp_val_is_min): Likewise.
11753         (supports_overflow_infinity): Use vrp_val_{min,max}.
11754         (negative_overflow_infinity): Likewise.
11755         (positive_overflow_infinity): Likewise.
11756         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
11757         (is_positive_overflow_infinity): Likewise.
11758         (is_overflow_infinity): Likewise.
11759         (avoid_overflow_infinity): Use vrp_val_{min,max} and
11760         vrp_val_is_{min,max}.
11761         (set_and_canonicalize_value_range): Canonicalize anti-ranges
11762         to ranges if possible.  Avoid empty ranges.
11763
11764 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11765
11766         PR middle-end/35705
11767         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
11768         the expression is a function address.
11769
11770 2008-04-01  George Helffrich  <george@gcc.gnu.org>
11771
11772         PR fortran/35154, fortran/23057
11773         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
11774         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
11775         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
11776         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
11777         in common.
11778         (dbxout_syms): Check for COMMON-based symbol and wrap in
11779         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
11780         in bracket for efficiency.
11781
11782         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
11783         using DW_TAG_common_block + member offset.
11784         (add_pubname_string): New function.
11785         (dw_expand_expr): New function to find block name and offset for
11786         COMMON var.
11787         (common_check): New function to check whether symbol in Fortran COMMON.
11788         (gen_variable_die): If COMMON, use DW_TAG_common_block.
11789
11790 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
11791
11792         PR c/35436
11793         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
11794
11795 2008-04-02  Ben Elliston  <bje@au.ibm.com>
11796
11797         * config/v850/v850.md (casesi): Remove if (0) code.
11798         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11799         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11800
11801 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
11802
11803         * config/i386/i386.md (rex64suffix): New mode attribute.
11804         (floathi<mode>2): Disable expander for SSE math.
11805         (*floathi<mode>2_1): New insn insn_and_split pattern.
11806         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
11807         corresponding post-reload splitters.
11808         (*floathi<mode>2_i387): New macroized insn pattern.
11809         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
11810         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
11811         insn_and_split pattern.
11812         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
11813         New macroized instruction patterns and corresponding post-reload
11814         splitters.
11815         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
11816         and corresponding post-reload splitters.
11817         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
11818         New macroized instruction patterns.
11819         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
11820         macroized instruction patterns and corresponding post-reload splitters.
11821         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
11822         corresponding post-reload splitters.
11823         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
11824         New macroized instruction patterns.
11825         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
11826         corresponding post-reload splitters.
11827         (*floatsi<mode>2_i387): New macroized instruction patterns.
11828
11829 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
11830
11831         * config/i386/i386.md (smaxmin): New.
11832         (umaxmin): Likewise.
11833         (maxminiprefix): Likewise.
11834         (maxminfprefix): Likewise.
11835         (<code><mode>3): Likewise.
11836         (smin<mode>3): Removed.
11837         (smax<mode>3): Likewise.
11838
11839         * config/i386/mmx.md (mmx_<code>v2sf3): New.
11840         (mmx_<code>v4hi3): Likewise.
11841         (mmx_<code>v8qi3): Likewise.
11842         (mmx_smaxv2sf3): Removed.
11843         (mmx_sminv2sf3): Likewise.
11844         (mmx_umaxv8qi3): Likewise.
11845         (mmx_smaxv4hi3): Likewise.
11846         (mmx_uminv8qi3): Likewise.
11847         (mmx_sminv4hi3): Likewise.
11848
11849         * config/i386/sse.md (<addsub><mode>3): New.
11850         (*<addsub><mode>3): Likewise.
11851         (<sse>_vm<addsub><mode>3): Likewise.
11852         (<maxmin><mode>3): Likewise.
11853         (*<maxmin><mode>3_finite): Likewise.
11854         (*<maxmin><mode>3): Likewise.
11855         (<sse>_vm<maxmin><mode>3): Likewise.
11856         (sse3_h<addsub>v4sf3): Likewise.
11857         (sse3_h<addsub>v2df3): Likewise.
11858         (<maxmin>v16qi3): Likewise.
11859         (*<maxmin>v16qi3): Likewise.
11860         (<maxmin>v8hi3): Likewise.
11861         (*<maxmin>v8hi3): Likewise.
11862         (*sse4_1_<maxmin><mode>3): Likewise.
11863         (*sse4_1_<maxmin><mode>3): Likewise.
11864         (add<mode>3): Removed.
11865         (*add<mode>3): Likewise.
11866         (<sse>_vmadd<mode>3): Likewise.
11867         (sub<mode>3): Likewise.
11868         (*sub<mode>3): Likewise.
11869         (<sse>_vmsub<mode>3): Likewise.
11870         (smin<mode>3): Likewise.
11871         (*smin<mode>3_finite): Likewise.
11872         (*smin<mode>3): Likewise.
11873         (<sse>_vmsmin<mode>3): Likewise.
11874         (smax<mode>3): Likewise.
11875         (*smax<mode>3_finite): Likewise.
11876         (*smax<mode>3): Likewise.
11877         (<sse>_vmsmax<mode>3): Likewise.
11878         (sse3_haddv4sf3): Likewise.
11879         (sse3_haddv2df3): Likewise.
11880         (sse3_hsubv4sf3): Likewise.
11881         (sse3_hsubv2df3): Likewise.
11882         (umaxv16qi3): Likewise.
11883         (*umaxv16qi3): Likewise.
11884         (smaxv8hi3): Likewise.
11885         (*smaxv8hi3): Likewise.
11886         (*sse4_1_smax<mode>3): Likewise.
11887         (*sse4_1_umax<mode>3): Likewise.
11888         (uminv16qi3): Likewise.
11889         (*uminv16qi3): Likewise.
11890         (sminv8hi3): Likewise.
11891         (*sminv8hi3): Likewise.
11892         (*sse4_1_smin<mode>3): Likewise.
11893         (*sse4_1_umin<mode>3): Likewise.
11894
11895 2008-04-01  Rafael Espindola  <espindola@google.com>
11896
11897         * tree-cfg.c (verify_expr): remove in_phi.
11898         (verify_stmt): Don't call walk_tree with verify_expr. Use
11899         is_gimple_min_invariant instead of is_gimple_val.
11900
11901 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
11902
11903         * doc/include/gpl_v3.texi: Update for manpage generation.
11904         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
11905         gpl.texi.
11906         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
11907         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
11908         gpl_v3.texi instead of gpl.texi.
11909         (gpl.pod): New.
11910
11911 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
11912
11913         PR pch/13675
11914         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
11915
11916 2008-04-01  Rafael Espindola  <espindola@google.com>
11917
11918         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
11919         (extract_code_and_val_from_cond): Use
11920         extract_code_and_val_from_cond_with_ops.
11921
11922 2008-04-01  Jan Hubicka  <jh@suse.cz>
11923
11924         * function.c (free_after_compilation): Free epilogue_delay_list.
11925         (prepare_function_start): Assert that previous compilation was freed.
11926
11927 2008-04-01  Jan Hubicka  <jh@suse.cz>
11928             Jim Wilson  <wilson@tuliptree.org>
11929             Andreas Tobler <andreast@gcc.gnu.org>
11930
11931         PR middle-end/35781
11932         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
11933         rtl.emit instead cfun->emit.
11934         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
11935         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
11936
11937 2008-04-01  Ben Elliston  <bje@au.ibm.com>
11938
11939         * doc/c-tree.texi (Function Basics): Fix grammatical error.
11940
11941 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
11942
11943         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
11944         New options
11945         (fprofile-use): Add var flag_profile_use
11946         * coverage.c (coverage_begin_output): Do not open a gcno file for
11947         output only if -ftest-coverage is set.
11948         Do not add getpwd() to gcda file path.
11949         (build_gcov_info): Check the new flag
11950         flag_profile_datafile_relative_path.
11951         (coverage_init): Use profile_data_prefix.
11952         Read profile counter only if flag_profile_use is set.
11953         * opts.c (common_handle_option): New option fprofile-use=,
11954         fprofile-dir=, fprofile-generate=.
11955         * toplev.c (profile_data_prefix): New variable definition.
11956         * toplev.h (profile_data_prefix): New declaration.
11957         * doc/invoke.tex (Option Summary, Optimization Options):
11958         Add new options.
11959
11960 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
11961
11962         * varasm.c (output_constant_pool_1): In LABEL_REF check,
11963         use tmp consistently.
11964
11965         PR target/35695
11966         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
11967         * config/ia64/ia64.c (rtx_needs_barrier): Handle
11968         UNSPEC_FR_RECIP_APPROX_RES.
11969         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11970
11971 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
11972
11973         PR c/35750
11974         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11975
11976 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11977
11978         PR middle-end/30186
11979         * fold-const.c (fold_indirect_ref_1): Support accessing non first
11980         element of the vector via a pointer.
11981
11982 2008-03-31  Ian Lance Taylor  <iant@google.com>
11983
11984         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11985
11986 2008-03-31  Jan Hubicka  <jh@suse.cz>
11987
11988         * builtins.c (expand_builtin_setjmp_receiver): Update call of
11989         get_arg_pointer_save_area.
11990         * expr.c (init_expr): Just clear out rtl.expr.
11991         * function.c (free_after_compilation): Clear out whole RTL structure.
11992         (get_func_frame_size): Merge into ...
11993         (get_frame_size): ... this one.
11994         (assign_stack_local_1): Merge into ...
11995         (assign_stack_local): ... this one.
11996         (expand_function_end): Update call of get_arg_pointer_save_area.
11997         (get_art_pointer_save_area): Remove cfun argument.
11998         * function.h (emit_status): regno_pointer_align does not need length
11999         attribute. Move x_regno_reg_rtx to ...
12000         (regno_reg_rtx): ... new global array.
12001         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
12002         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
12003         apply_args_value, forced_labels, stack_pointer_delta):
12004         Update accestors.
12005         (struct varasm_status): Move here from varasm.c
12006         (struct rtl_data): New. Move here some fields from struct function.
12007         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
12008         frame_offset, stack_check_probe_note, arg_pointer_save_area,
12009         used_temp_slots avail_temp_slots, temp_slot_level,
12010         nonlocal_goto_handler_labels): Update accesstors.
12011         (rtl): New global variable.
12012         (struct function): Move some fileds to rtl_data.
12013         (get_arg_pointer_save_area): Update prototype.
12014         * emit-rtl.c (rtl): Declare.
12015         (regno_reg_rtx): Declare.
12016         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
12017         Update.
12018         (gen_reg_rtx): Update.
12019         (init_virtual_regs): Do not tate emit_status argument.
12020         (init_emit): Do not allocate emit.
12021         * varasm.c (varasm_statuc): Move to function.h.
12022         (n_deferred_constatns): Update accestor.
12023         (init_varasm_status): Do not allocate varasm_status.
12024         (force_const_mem, get_pool_size, output_constant_pool): Update.
12025         * stmt.c (force_label_rtx): Do not use x_ prefixes.
12026         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
12027
12028 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
12029
12030         PR rtl-optimization/35729
12031         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
12032         references.
12033
12034 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
12035
12036         PR target/32000
12037         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
12038         load/store if memory is unaligned.
12039         (*movti_rex64): Likewise.
12040
12041         * config/i386/predicates.md (misaligned_operand): New.
12042
12043 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
12044
12045         PR tree-opt/35431
12046         * tree-ssa-phiopt.c (conditional_replacement): Return early for
12047         complex types.
12048
12049 2008-03-31  Jan Beulich  <jbeulich@novell.com>
12050
12051         * config/ia64/constraints.md: Add 'j' constraint.
12052         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
12053         (movdi_internal): Likewise.
12054
12055 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
12056
12057         PR c/35748
12058         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
12059
12060 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
12061
12062         PR target/35757
12063         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
12064         proper error message for the third argument on blendpd and
12065         blendps.
12066
12067         * config/i386/sse.md (blendbits): New.
12068         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
12069
12070 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
12071
12072         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
12073
12074 2008-03-30  Richard Guenther  <rguenther@suse.de>
12075
12076         PR middle-end/31023
12077         * fold-const.c (fold_sign_changed_comparison): Do leave
12078         conversions to base-types alone.
12079
12080 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12081
12082         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
12083         the link register if one altivec register is be saved.
12084
12085 2008-03-30  Ben Elliston  <bje@au.ibm.com>
12086
12087         * final.c (final_scan_insn): Remove if (0) code.
12088
12089 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
12090
12091         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
12092
12093 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
12094
12095         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
12096         of V4SFmode to ix86_binary_operator_ok.
12097
12098 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
12099
12100         * config/i386/i386.c (override_options): Initialize
12101         ix86_veclib_handler to ix86_veclibabi_svml when
12102         -mveclibabi=svml is used.
12103         (ix86_veclibabi_svml): New function for SVML ABI style
12104         vectorization support.
12105         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
12106
12107 2008-03-28  Rafael Espindola  <espindola@google.com>
12108
12109         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
12110         (tree_binary_nonnegative_warnv_p): Make it public.
12111         (tree_single_nonnegative_warnv_p): Make it public.
12112         (tree_invalid_nonnegative_warnv_p): Make it public.
12113         (tree_unary_nonzero_warnv_p): Make it public.
12114         (tree_binary_nonzero_warnv_p): Make it public
12115         (tree_single_nonzero_warnv_p): Make it public.
12116         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
12117         (extract_range_from_binary_expr): Split the expr argument.
12118         (extract_range_from_unary_expr): Split the expr argument.
12119         (extract_range_from_comparison): Split the expr argument.
12120         (extract_range_from_expr): Use the new aux functions.
12121         (vrp_evaluate_conditional_warnv): Use
12122         vrp_evaluate_conditional_warnv_with_ops.
12123         * tree.h (tree_unary_nonzero_warnv_p): Declare.
12124         (tree_binary_nonzero_warnv_p): Declare.
12125         (tree_single_nonzero_warnv_p): Declare.
12126         (tree_expr_nonzero_warnv_p): Declare.
12127         (tree_unary_nonnegative_warnv_p): Declare.
12128         (tree_binary_nonnegative_warnv_p): Declare.
12129         (tree_single_nonnegative_warnv_p): Declare.
12130         (tree_invalid_nonnegative_warnv_p): Declare.
12131
12132 2008-03-28  Richard Guenther  <rguenther@suse.de>
12133
12134         PR tree-optimization/30317
12135         PR tree-optimization/30911
12136         PR tree-optimization/34793
12137         * tree-vrp.c (set_and_canonicalize_value_range): New function.
12138         (struct assert_locus_d): New member EXPR.
12139         (register_new_assert_for): Add EXPR parameter to support
12140         ASSERT_EXPR <name, expr OP limit>.
12141         (register_edge_assert_for_1): Adjust callers.
12142         (find_assert_locations): Likewise.
12143         (process_assert_insertions_for): Build condition from expression.
12144         (extract_range_from_assert): Handle ASSERT_EXPRs
12145         of the form ASSERT_EXPR <name, expr OP limit>.
12146         (register_edge_assert_for_2): New helper registering
12147         asserts for comparisons.  Recognize range tests of the form
12148         (unsigned)i - CST1 OP CST2.
12149         (register_edge_assert_for_1): Use it.
12150         (register_edge_assert_for): Likewise.
12151         (needs_overflow_infinity): Integer sub-types
12152         do not need overflow infinities.
12153         (vrp_val_is_max): The extreme values of integer sub-types
12154         are those of the base type.
12155         (vrp_val_is_min): Likewise.
12156         * tree.def (ASSERT_EXPR): Document extra allowed conditional
12157         expressions.
12158
12159 2008-03-28  Nick Clifton  <nickc@redhat.com>
12160
12161         PR target/31110
12162         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
12163         Return GENERAL_REGS for stack adjustment reloads.
12164
12165 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12166
12167         PR target/31334
12168         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
12169         const_vector when all the vectors are constant.
12170
12171 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
12172
12173         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
12174         comparisons.
12175         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
12176         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
12177         (scc_sf): New.
12178         (s<code>_sf): Use new scc_sf attribute for opcode names.
12179
12180 2008-03-27  Tom Tromey  <tromey@redhat.com>
12181
12182         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
12183         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
12184         config/spu/t-spu-elf, config/i386/t-interix,
12185         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
12186         config/i386/x-darwin, config/i386/x-mingw32,
12187         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
12188         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
12189         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
12190         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
12191         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
12192         config/rs6000/x-darwin, config/rs6000/t-rs6000,
12193         config/score/t-score-elf, config/arm/t-strongarm-pe,
12194         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
12195         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
12196         Revert automatic dependency patch.
12197
12198 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
12199
12200         PR target/35657
12201         * config/i386/i386.c (ix86_function_arg_boundary): Align
12202         decimal floating point to its natural boundary.
12203
12204 2008-03-27  Richard Guenther  <rguenther@suse.de>
12205
12206         PR middle-end/35716
12207         * fold-const.c (fold_comparison): Restrict distinct decl
12208         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
12209         solely rely on operand_equal_p.
12210
12211 2008-03-27  Richard Guenther  <rguenther@suse.de>
12212
12213         PR c/32511
12214         * c-common.c (handle_weak_attribute): Reject combination of
12215         weak and inline.
12216
12217 2008-03-27  Richard Guenther  <rguenther@suse.de>
12218
12219         PR tree-optimization/32810
12220         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
12221         conversions from DECL_INITIAL.
12222         (fold_const_aggregate_ref): Likewise from constructor elements.
12223
12224 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
12225
12226         * tree-affine.h (aff_combination_expand): Declare.
12227         (get_inner_reference_aff): Likewise.
12228         * tree-affine.c (aff_combination_expand): Split out from
12229         tree_to_aff_combination_expand.
12230         (get_inner_reference_aff): New function.
12231         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
12232         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
12233         (struct lim_aux_data): sm_done field removed.
12234         (mem_ref_loc_p, mem_ref_locs_p): New types.
12235         (struct mem_ref): Added id, stored, accesses_in_loop,
12236         indep_loop, dep_loop, indep_ref, dep_ref fields.
12237         Removed is_stored, locs and next fields.
12238         (memory_accesses): New variable.
12239         (movement_possibility): Do not allow moving statements
12240         that store to memory.
12241         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
12242         New functions.
12243         (determine_max_movement): For statements with memory references,
12244         find the outermost loop in that the reference is independent.
12245         (move_computations_stmt): Mark the virtual operands for renaming.
12246         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
12247         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
12248         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
12249         add_vop_ref_mapping, create_vop_ref_mapping_loop,
12250         create_vop_ref_mapping, analyze_memory_references,
12251         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
12252         get_all_locs_in_loop, ref_always_accessed_p,
12253         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
12254         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
12255         store_motion_loop, store_motion): New functions.
12256         (struct vop_to_refs_elt): New type.
12257         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
12258         memref_hash, memref_eq, hoist_memory_references): Rewritten.
12259         (schedule_sm): Replaced by...
12260         (execute_sm): ... this.
12261         (determine_lsm_ref, hoist_memory_references,
12262         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
12263         find_more_ref_vops, free_mem_ref, free_mem_refs,
12264         determine_lsm_loop, determine_lsm): Removed.
12265         (tree_ssa_lim_finalize): Free data structures used by store motion.
12266         (tree_ssa_lim): Call analyze_memory_references.  Use
12267         store_motion instead of determine_lsm.
12268
12269 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
12270
12271         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
12272         rename tmake_file to m68hc11/t-m68hc11.
12273         (mcore): Set inhibit_libc to true.
12274         * config.host (alpha*-dec-*vms*): Set extra_programs.
12275         (interix3*): Don't use host_xmake_file.
12276         * configure.ac: Let config.gcc override inhibit_libc.
12277         * configure: Regenerate.
12278
12279         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
12280         * config/t-openbsd-thread: Remove commented out lines.
12281
12282         * config/x-interix: Remove.
12283
12284         * config/m68hc11/t-m68hc11-gas: Rename to...
12285         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
12286
12287         * config/mcore/t-mcore: Remove T_CFLAGS.
12288         * config/mcore/t-mcore-pe: Likewise.
12289
12290 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
12291
12292         * configure.ac: Replace custom __GNU_SOURCE test with
12293         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
12294         * aclocal.m4: Regenerate.
12295         * configure: Regenerate.
12296         * config.in: Regenerate.
12297
12298 2008-03-27  Richard Guenther  <rguenther@suse.de>
12299
12300         * fold-const.c (target.h): Include.
12301         (fold_comparison): Fold comparison of addresses of decls
12302         that bind locally or of constants.  Consolidate address folding code.
12303         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
12304         results from fold_binary_to_constant.
12305         (compare_values_warnv): Likewise.
12306
12307 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
12308
12309         PR middle-end/35429
12310         * fold-const.c (fold_truthop): Check for integeral types when folding
12311         a == 0 && b == 0 and a != 0 || b != 0 .
12312
12313 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
12314
12315         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
12316
12317 2008-03-26  Andreas Schwab  <schwab@suse.de>
12318
12319         * doc/invoke.texi: Fix use of @item vs. @itemx.
12320
12321 2008-03-26  Tom Tromey  <tromey@redhat.com>
12322
12323         * Makefile.in (build/gensupport.o, build/print-rtl.o,
12324         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
12325         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
12326         build/gencodes.o, build/genconditions.o, build/genconfig.o,
12327         build/genconstants.o, build/genemit.o, build/genextract.o,
12328         build/genflags.o, build/genmddeps.o, build/genopinit.o,
12329         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
12330         options.h.
12331
12332 2008-03-26  Richard Guenther  <rguenther@suse.de>
12333
12334         Revert
12335         2008-03-26  Richard Guenther  <rguenther@suse.de>
12336
12337         * fold-const.c (target.h): Include.
12338         (fold_comparison): Fold comparison of addresses of two decls
12339         that bind locally.  Consolidate address folding code.
12340
12341 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12342
12343         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
12344         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
12345         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
12346         dconstsqrt2, dconstthird, dconste and/or dconst10.
12347         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
12348         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
12349         dconstsqrt2, dconste): Delete.
12350         (init_emit_once): Likewise.  Simplify initializing dconstm1.
12351         Constify variable.
12352         * real.c (get_real_const): New.
12353         * real.h (dconst3, dconst10, dconstm2, dconstthird,
12354         dconstsqrt2, dconste): Delete.
12355         (real_value_const, get_real_const): New.
12356
12357 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
12358
12359         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
12360
12361         * config/i386/i386.c (ix86_function_arg_boundary): Check
12362         BIGGEST_ALIGNMENT instead of 128.
12363         (setup_incoming_varargs_64): Likewise.
12364
12365 2008-03-26  Tom Tromey  <tromey@redhat.com>
12366
12367         * Makefile.in (DEPFILES): Add missing '/'.
12368
12369 2008-03-26  Richard Guenther  <rguenther@suse.de>
12370
12371         * fold-const.c (target.h): Include.
12372         (fold_comparison): Fold comparison of addresses of two decls
12373         that bind locally.  Consolidate address folding code.
12374
12375 2008-03-26  Nick Clifton  <nickc@redhat.com>
12376
12377         PR target/31232
12378         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
12379         not allow INT+INT as a legitimate addressing mode.
12380
12381 2008-03-26  Richard Guenther  <rguenther@suse.de>
12382
12383         * tree-flow.h (widen_bitfield): Remove declaration.
12384         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
12385         (widen_bitfield): Remove function.
12386         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
12387         code.
12388
12389 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12390
12391         PR target/31558
12392         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
12393         error_mark_node's.
12394
12395 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
12396
12397         PR rtl-optimization/35232
12398         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
12399         (forget_old_reloads_1, forget_marked_reloads): Don't clear
12400         reg_reloaded_call_part_clobbered here.
12401         (reload_regs_reach_end_p): New function.
12402         (reload_reg_rtx_for_input): New variable.
12403         (reload_reg_rtx_for_output): Likewise.
12404         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
12405         when reassigning a pseudo register.  Load reloadreg from
12406         reload_reg_rtx_for_input, moving the mode and register
12407         calculation to...
12408         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
12409         instead of the original when deciding whether an input reload
12410         would be a no-op or whether an output reload can be deleted.
12411         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
12412         when setting up new_spill_reg_store.  Load it from
12413         reload_reg_rtx_for_output, moving the mode and register
12414         calculation to...
12415         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
12416         instead of the original when deciding whether an output reload
12417         would be a no-op.  Do the same when modifying insn notes.
12418         Use rtx_equal_p instead of == to compare the registers.
12419         (inherit_piecemeal_p): Take a mode and two register numbers
12420         as argument.
12421         (emit_reload_insns): Clear new_spill_reg_store for every hard
12422         register in the reload register.  Remove spill registers
12423         from reg_reloaded_valid before considering whether to record
12424         inheritance information for them.  Use reload_reg_rtx_for_output
12425         instead of reg_rtx when recording output reloads.  Use
12426         reload_reg_rtx_for_input instead of reg_rtx when recording
12427         input reloads.  Set or clear reg_reloaded_call_part_clobbered
12428         at the same time as setting reg_reloaded_valid.
12429         (delete_output_reload): Add a new_reload_reg parameter and use it
12430         instead of rld[j].reg_rtx.
12431         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
12432         calls accordingly.
12433
12434 2008-03-25  Tom Tromey  <tromey@redhat.com>
12435
12436         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
12437         (build/genattr.o): Likewise.
12438         (build/genattrtab.o): Likewise.
12439         (build/gencodes.o): Likewise.
12440         (build/genconfig.o): Likewise.
12441         (build/genconstants.o): Likewise.
12442         (build/genemit.o): Likewise.
12443         (build/genextract.o): Likewise.
12444         (build/genflags.o): Likewise.
12445
12446 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
12447
12448         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
12449         instead of size_int for integer types.
12450         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
12451         to match type of MINUS_EXPR.
12452
12453 2008-03-25  Tom Tromey  <tromey@redhat.com>
12454
12455         * configure: Rebuilt.
12456         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
12457         Makefile.
12458
12459 2008-03-25  Tom Tromey  <tromey@redhat.com>
12460
12461         * config/x-solaris (host-solaris.o): Update.
12462         * config/x-linux (host-linux.o): Update.
12463         * config/x-hpux (host-hpux.o): Update.
12464         * config/x-darwin (host-darwin.o): Update.
12465         * config/v850/t-v850e (v850-c.o): Update.
12466         * config/v850/t-v850 (v850-c.o): Update.
12467         * config/t-vxworks (vxworks.o): Update.
12468         * config/t-sol2 (sol2-c.o, sol2.o): Update.
12469         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
12470         * config/spu/t-spu-elf (spu-c.o): Update.
12471         (spu.o): Remove.
12472         * config/sh/t-symbian (sh-c.o): Update.
12473         (symbian.o): Update.
12474         * config/sh/t-sh (sh-c.o): Update.
12475         * config/score/t-score-elf (score7.o, score3.o): Update.
12476         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
12477         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
12478         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
12479         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
12480         (rs6000.o): Remove.
12481         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
12482         * config/m32c/t-m32c (m32c-pragma.o): Update.
12483         * config/ia64/t-ia64 (ia64-c.o): Update.
12484         * config/i386/x-mingw32 (host-mingw32.o): Update.
12485         * config/i386/x-i386 (driver-i386.o): Update.
12486         * config/i386/x-darwin (host-i386-darwin.o): Update.
12487         * config/i386/x-cygwin (host-cygwin.o): Update.
12488         * config/i386/t-nwld (nwld.o): Update.
12489         * config/i386/t-netware (netware.o): Update.
12490         * config/i386/t-interix (winnt.o): Update.
12491         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
12492         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
12493         msformat-c.o): Update.
12494         * config/bfin/t-bfin-linux (generated_files): Add
12495         linux-sysroot-suffix.h.
12496         * config/arm/t-wince-pe (pe.o): Update.
12497         * config/arm/t-strongarm-pe (pe.o): Update.
12498         * config/arm/t-pe (pe.o): Update.
12499         * config/arm/t-arm (arm-c.o): Update.
12500         * doc/install.texi (Prerequisites): Require make 3.80.
12501         * Makefile.in: Remove .o targets.
12502         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
12503         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
12504         (simple_generated_h, simple_generated_c): Move earlier.
12505         (generated_files): New variable.
12506         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
12507         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
12508         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
12509         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
12510         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
12511         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
12512         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
12513         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
12514         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
12515         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
12516         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
12517         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
12518         (.c.o): Remove.
12519         (COMPILE.base, COMPILE): New variables.
12520         (%.o): New pattern rule.
12521         (ALL_HOST_OBJS): New variable.
12522         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
12523         (dummy-checksum.o, cc1-checksum.o): Remove.
12524         (DRIVER_SHLIB): New variable.
12525         (DRIVER_DEFINES): Use it.
12526         (gencondmd.c): Move out of build/.
12527         (s-conditions): Update.
12528         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
12529         (ALL_BUILD_OBJS): Likewise.
12530         (build/%.o): Use BUILDCOMPILE.
12531         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
12532         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
12533         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
12534         build/gencheck.o, build/gencodes.o, build/genconditions.o,
12535         build/genconfig.o, build/genconstants.o, build/genemit.o,
12536         build/genextract.o, build/genflags.o, build/genmddeps.o,
12537         build/genopinit.o, build/genoutput.o, build/genpeep.o,
12538         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
12539         build/gen-protos.o, build/scan.o, build/fix-header.o,
12540         build/scan-decls.o): Simplify.
12541         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
12542         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
12543         prefix.o, toplev.o): Reduce to variable setting.
12544         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
12545         ($(out_object_file), gcc-options.o): New targets.
12546         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
12547         * configure: Rebuilt.
12548         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
12549         * doc/sourcebuild.texi (Front End Directory): Document new variable.
12550
12551 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
12552
12553         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
12554         complain when we hit an error, return ERROR_MARK_NODE.
12555
12556 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
12557
12558         * config/sh/constraints.md (Pso, Psz): New constraints.
12559         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
12560         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
12561
12562 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
12563
12564         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
12565         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
12566
12567 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
12568
12569         * config/sh/sh.md (prefetch): Add condition for SH2A target.
12570         (prefetch_sh2a): New.
12571
12572 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
12573             Naveen.H.S  <naveen.hs@kpitcummins.com>
12574
12575         * config/sh/constraints.md (I28): New constraint.
12576         * config/sh/sh.c (broken_move): Add support for movi20s.
12577         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
12578
12579 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
12580             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
12581             Naveen.H.S  <naveen.hs@kpitcummins.com>
12582
12583         * config/sh/sh.c (SH_ATTRIBUTES): Define.
12584         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
12585         (print_operand): Handle resbank in %@ operand code.
12586         (sh_encode_section_info): New.
12587         (push_regs): Add conditions for resbank.
12588         (sh_expand_epilogue): Likewise.
12589         (sh_insert_attributes): Likewise.
12590         (sh_attribute_table): Likewise.
12591         (sh_handle_resbank_handler_attribute): New.
12592         (sh2a_handle_function_vector_handler_attribute): New.
12593         (sh2a_is_function_vector_call): New.
12594         (sh2a_get_function_vector_number): New.
12595         (sh2a_function_vector_p): New.
12596         (sh_cfun_resbank_handler_p): New.
12597         * config/sh/sh.md (calli): Emit jsr/n if possible.
12598         (calli_tbr_rel): New.
12599         (calli_pcrel): Emit jsr/n if possible.
12600         (return_i): Emit rts/n if possible.
12601         (call_valuei_tbr_rel): New.
12602         (call_valuei_pcrel): Add condition for SH2A target.
12603         (call_value): Likewise.
12604         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
12605         (sh2a_get_function_vector_number): Likewise.
12606         (sh2a_is_function_vector_call): Likewise.
12607         * doc/extend.texi: Document TBR relative addressing of SH2A.
12608         (resbank): Add description for SH2A.
12609
12610 2008-03-24  Richard Guenther  <rguenther@suse.de>
12611
12612         PR c/22371
12613         * gimplify.c (gimplify_modify_expr): For frontend type-correct
12614         pointer assignments change conversions according to middle-end rules.
12615         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
12616         * configure.ac: Include type checking in yes.
12617         * configure: Regenerate.
12618
12619 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12620
12621         * diagnostic.c (diagnostic_count_diagnostic): Delete.
12622         (diagnostic_report_diagnostic): Update. Handle ICEs here.
12623
12624 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
12625
12626         * gthr-vxworks.h (UNUSED): Define.
12627
12628 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
12629
12630         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
12631
12632 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
12633
12634         * doc/extend.texi (Function Attributes): Add missing comma in the
12635         example of the "alloc_size" attribute.
12636
12637 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
12638
12639         Revert:
12640         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12641
12642         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12643         32bit host.
12644
12645         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
12646
12647         PR target/35496
12648         * stor-layout.c (update_alignment_for_field): Set minimum alignment
12649         of the underlying type of a MS bitfield layout to the natural
12650         alignment of the type.
12651
12652         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
12653
12654         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12655         to their natural alignment to avoid store forwarding stalls.
12656
12657 2008-03-22  Richard Guenther  <rguenther@suse.de>
12658
12659         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
12660         For PHI nodes verify the address is invariant.
12661         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
12662         (get_symbol_constant_value): Use is_gimple_min_invariant.
12663         (maybe_fold_stmt_indirect): Likewise.
12664
12665 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
12666
12667         PR rtl-optimization/33927
12668         * Makefile.in (dse.o): Depend on $(TM_P_H).
12669         * expr.h (extract_low_bits): Declare.
12670         * expmed.c (extract_low_bits): New function.
12671         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
12672         * dse.c: Include tm_p.h.
12673         (find_shift_sequence): Remove the read_reg argument and return the
12674         read value.  Emit the instructions instead of returning them.
12675         Iterate on new_mode rather than calculating it each time.
12676         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
12677         source to NEW_MODE and extract_low_bits to convert the shifted
12678         value to READ_MODE.
12679         (replace_read): Allow the load and store to have different mode
12680         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
12681         or extraction instructions before trying the replacement.  Update
12682         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
12683
12684 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
12685
12686         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12687         to their natural alignment to avoid store forwarding stalls.
12688
12689 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12690
12691         PR target/27946
12692         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
12693         encouraging but not allowing gprs for input;
12694         change the input constraint to !f#r.
12695         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
12696         gprs for output;
12697         change the output constraint to !f#r.
12698
12699 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
12700
12701         PR target/13958
12702         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
12703         corresponding post-reload splitters.
12704         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
12705         when x87 FP math is selected.
12706         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
12707         New function prototype.
12708         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
12709         unreachable function to ease macroization of insn patterns.
12710
12711 2008-03-21  Martin Jambor  <mjambor@suse.cz>
12712
12713         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
12714         reference dumps if ddr is NULL or dependence is unknown.
12715
12716 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12717
12718         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
12719         unsigned extension into account.
12720         (ATOMIC_COMPARE_AND_SWAP): Likewise.
12721         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
12722         Do computations on a scratch register.
12723
12724 2008-03-21  Richard Guenther  <rguenther@suse.de>
12725
12726         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12727         Use is_gimple_min_invariant instead of TREE_INVARIANT.
12728         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
12729         * tree-ssa-dom.c (record_equality): Likewise.
12730         * tree-inline.c (copy_body_r): Likewise.
12731         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
12732         TREE_INVARIANT.
12733
12734 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12735
12736         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
12737         as 'delete_unused' argument.
12738
12739 2008-03-20  Richard Guenther  <rguenther@suse.de>
12740
12741         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
12742         special casing of constant qualifiers.
12743         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
12744         care about them in general.
12745         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
12746         regardless of their type.
12747         (fold_stmt_r): Forcefully fold *& if we end up with that.
12748
12749 2008-03-20  Paul Brook  <paul@codesourcery.com>
12750
12751         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
12752         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
12753         linker flags.
12754         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
12755         definition.
12756         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
12757         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
12758
12759 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
12760
12761         * common.opt (Wmudflap): New option.
12762         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
12763         (mx_register_decls): Likewise.
12764         (mudflap_finish_file): Likewise.
12765         * doc/invoke.texi: Document -Wno-mudflap.
12766
12767 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
12768
12769         * c-format.c (replace_format_name_to_system_name): New.
12770         (cmp_attribs): New.
12771         (convert_format_name_to_system_name): New.
12772         (decode_format_attr): Add use of convert_format_name_to_system_name.
12773         (format_types_orig): Add gnu_ prefix to names.
12774         (check_format_info_main): Special treating of \0 escaped names for
12775         supporting multi-character format specifiers as I32, I64.
12776         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
12777         (gnu_target_overrides_format_attributes): New.
12778         * c-format.h: Add structure target_ovr_attr to hold
12779         system specific formatter names.
12780         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
12781         msformat-c.o file to c_target_objs and cxx_target_objs.
12782         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12783         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
12784         (TARGET_N_FORMAT_TYPES): New.
12785         * config/i386/msformat-c.c: New.
12786         * config/i386/t-cygming: Add build rule for msformat-c.o.
12787         * doc/extend.texi: Add new format names gnu_* and ms_* and
12788         further details.
12789         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12790
12791 2008-03-20  Ira Rosen  <irar@il.ibm.com>
12792
12793         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
12794         optimizations turned on under -O3.
12795         (ftree-vectorize): Add that the flag is turned on with -O3.
12796
12797 2008-03-20  Ben Elliston  <bje@au.ibm.com>
12798
12799         * regmove.c (try_auto_increment): Fix spelling error in comment.
12800         * final.c (final_scan_insn): Likewise.
12801
12802 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
12803
12804         PR target/14552
12805         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
12806         allocator preferences for "y" and "r" class registers.
12807         ("*mov<mode>_internal"): Ditto.
12808         ("*movv2sf_internal_rex64"): Ditto.
12809         ("*movv2sf_internal"): Ditto.
12810
12811 2008-03-19  Michael Matz  <matz@suse.de>
12812
12813         PR middle-end/35616
12814         * calls.c (expand_call): Check overlap of arguments with call
12815         address for sibcalls.
12816
12817 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
12818
12819         PR target/35496
12820         * stor-layout.c (update_alignment_for_field): Set minimum alignment
12821         of the underlying type of a MS bitfield layout to the natural
12822         alignment of the type.
12823
12824 2008-03-19  Jan Hubicka  <jh@suse.cz>
12825
12826         PR other/35094
12827         * toplev.c (decode_d_option): Handle all CPP flags.
12828         * tree-vrp.c: Update tree_pass descriptors.
12829         * regrename.c: Update tree_pass descriptors.
12830         * fwprop.c: Update tree_pass descriptors.
12831         * doc/invoke.texi: Remove documentation of dropped -d? flags.
12832         * tree-into-ssa.c: Update tree_pass descriptors.
12833         * tree-dump.c: Update tree_pass descriptors.
12834         * tree-complex.c: Update tree_pass descriptors.
12835         * tree-dump.h: Update tree_pass descriptors.
12836         * see.c: Update tree_pass descriptors.
12837         * cgraphbuild.c: Update tree_pass descriptors.
12838         * tracer.c: Update tree_pass descriptors.
12839         * tree-loop-distribution.c: Update tree_pass descriptors.
12840         * cgraph.c: Update tree_pass descriptors.
12841         * postreload-gcse.c: Update tree_pass descriptors.
12842         * postreload.c: Update tree_pass descriptors.
12843         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
12844         * tree-tailcall.c: Update tree_pass descriptors.
12845         * tree-pass.h (tree_opt_pass): Rename to ...
12846         (opt_pass) ... this one; add "type" field and remove letter field.
12847         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
12848         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
12849         all_lowering_passes): Update declaration.
12850         * ipa-cp.c: Update tree_pass descriptors.
12851         * final.c: Update tree_pass descriptors.
12852         * omp-low.c: Update tree_pass descriptors.
12853         * tree-ssa-dse.c: Update tree_pass descriptors.
12854         * ipa-reference.c: Update tree_pass descriptors.
12855         * tree-ssa-uncprop.c: Update tree_pass descriptors.
12856         * auto-inc-dec.c: Update tree_pass descriptors.
12857         * reorg.c: Update tree_pass descriptors.
12858         * cgraphunit.c: Update tree_pass descriptors.
12859         * tree-ssa-copyrename.c: Update tree_pass descriptors.
12860         * tree-ssa-ccp.c: Update tree_pass descriptors.
12861         * df-core.c: Update tree_pass descriptors.
12862         * mode-switching.c: Update tree_pass descriptors.
12863         * tree-nomudflap.c: Update tree_pass descriptors.
12864         * modulo-sched.c: Update tree_pass descriptors.
12865         * ipa-pure-const.c: Update tree_pass descriptors.
12866         * cse.c: Update tree_pass descriptors.
12867         * web.c: Update tree_pass descriptors.
12868         * tree-stdarg.c: Update tree_pass descriptors.
12869         * tree-ssa-math-opts.c: Update tree_pass descriptors.
12870         * tree-ssa-dom.c: Update tree_pass descriptors.
12871         * tree-nrv.c: Update tree_pass descriptors.
12872         * tree-ssa-alias.c: Update tree_pass descriptors.
12873         * loop-init.c: Update tree_pass descriptors.
12874         * gimple-low.c: Update tree_pass descriptors.
12875         * ipa-inline.c: Update tree_pass descriptors.
12876         * tree-ssa-sink.c: Update tree_pass descriptors.
12877         * global.c: Update tree_pass descriptors.
12878         * ifcvt.c: Update tree_pass descriptors.
12879         * jump.c: Update tree_pass descriptors.
12880         * predict.c: Update tree_pass descriptors.
12881         * tree-ssa-loop.c: Update tree_pass descriptors.
12882         * recog.c: Update tree_pass descriptors.
12883         * dse.c: Update tree_pass descriptors.
12884         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
12885         * tree-eh.c: Update tree_pass descriptors.
12886         * regmove.c: Update tree_pass descriptors.
12887         * local-alloc.c
12888         * function.c: Update tree_pass descriptors.
12889         * tree-vectorizer.c: Update tree_pass descriptors.
12890         * gcse.c: Update tree_pass descriptors.
12891         * ipa-type-escape.c: Update tree_pass descriptors.
12892         * tree-if-conv.c: Update tree_pass descriptors.
12893         * init-regs.c: Update tree_pass descriptors.
12894         * ipa.c: Update tree_pass descriptors.
12895         * tree-ssa-phiopt.c: Update tree_pass descriptors.
12896         * rtl-factoring.c: Update tree_pass descriptors.
12897         * lower-subreg.c: Update tree_pass descriptors.
12898         * bt-load.c: Update tree_pass descriptors.
12899         * tree-dfa.c: Update tree_pass descriptors.
12900         * except.c: Update tree_pass descriptors.
12901         * emit-rtl.c: Update tree_pass descriptors.
12902         * cfgexpand.c: Update tree_pass descriptors.
12903         * tree-cfgcleanup.c: Update tree_pass descriptors.
12904         * cfgcleanup.c: Update tree_pass descriptors.
12905         * tree-ssa-pre.c: Update tree_pass descriptors.
12906         * tree-sra.c: Update tree_pass descriptors.
12907         * tree-mudflap.c: Update tree_pass descriptors.
12908         * tree-ssa-copy.c: Update tree_pass descriptors.
12909         * cfglayout.c: Update tree_pass descriptors.
12910         * tree-ssa-forwprop.c: Update tree_pass descriptors.
12911         * tree-ssa-dce.c: Update tree_pass descriptors.
12912         * tree-ssa.c: Update tree_pass descriptors.
12913         * regclass.c: Update tree_pass descriptors.
12914         * integrate.c: Update tree_pass descriptors.
12915         * tree-optimize.c: Update tree_pass descriptors.
12916         * tree-ssa-phiprop.c: Update tree_pass descriptors.
12917         * tree-object-size.c: Update tree_pass descriptors.
12918         * combine.c: Update tree_pass descriptors.
12919         * tree-outof-ssa.c: Update tree_pass descriptors.
12920         * bb-reorder.c: Update tree_pass descriptors.
12921         * stack-ptr-mod.c: Update tree_pass descriptors.
12922         * var-tracking.c: Update tree_pass descriptors.
12923         * tree-profile.c: Update tree_pass descriptors.
12924         * tree-vect-generic.c: Update tree_pass descriptors.
12925         * reg-stack.c: Update tree_pass descriptors.
12926         * sched-rgn.c: Update tree_pass descriptors.
12927         * tree-ssa-structalias.c: Update tree_pass descriptors.
12928         * tree-cfg.c: Update tree_pass descriptors.
12929         * passes.c (current_pass): Update declaration.
12930         (finish_optimization_passes): Update.
12931         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
12932         (register_one_dump_file, register_dump_files_1, next_pass_1):
12933         Update arguments.
12934         (init_optimization_passes): Update handling of new types.
12935         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
12936         * ipa-struct-reorg.c: Update tree_pass descriptors.
12937         * tree-ssa-reassoc.c: Update tree_pass descriptors.
12938         * combine-stack-adj.c: Update tree_pass descriptors.
12939         * cfgrtl.c: Update tree_pass descriptors.
12940         * dce.c: Update tree_pass descriptors.
12941         * tree-ssanames.c: Update tree_pass descriptors.
12942
12943 2008-03-19  Richard Guenther  <rguenther@suse.de>
12944
12945         PR middle-end/35609
12946         * tree-ssa.c (walk_data): New structure.
12947         (warn_uninitialized_var): If not always_executed warn with "maybe"
12948         instead of "is".
12949         (execute_early_warn_uninitialized): Compute post-dominators.
12950         Initialize always_executed before processing each basic block.
12951
12952 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
12953
12954         PR target/35504
12955         * config/i386/i386.c (x86_this_parameter): Calculate correct location
12956         of "this" pointer when "regparm = N" or "fastcall" is in effect.
12957
12958 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12959
12960         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
12961
12962 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
12963
12964         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
12965         is true.
12966         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
12967         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
12968         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
12969         target after ignore has been set, and move there also the commputation
12970         of subtarget and original_target.
12971         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12972         (LANG_HOOKS_INITIALIZER): Remove it.
12973         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12974
12975 2008-03-18  Richard Guenther  <rguenther@suse.de>
12976
12977         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12978         found an expression with constants, note that in the VN for the lhs.
12979         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12980         fold them to constants if possible.  Run cleanup_cfg if done so.
12981         (execute_pre): Return todo.
12982         (do_pre): Likewise.
12983         (execute_fre): Likewise.
12984         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12985         of constants.
12986         (get_prop_source_stmt): Look through pointer conversions.
12987
12988 2008-03-18  Jan Hubicka  <jh@suse.cz>
12989
12990         * tree-pretty-print.c: Include predict.h.
12991         (dump_generic_node): Dump predictor.
12992         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12993         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12994         * gimple-low.c (lower_stmt): Likewise.
12995         * expr.c (expand_expr_real): Likewise.
12996         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12997         them.
12998         (build_predict_expr, build_predict_expr): New.
12999         * predict.h (predictor_name, build_predict_expr): Update.
13000         * c-typeck.c (c_finish_bc_stmt): Add prediction.
13001         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
13002         * predict.def (PRED_CONTINUE): Update hitrate.
13003         * tree.def (PREDICT_EXPR): Define.
13004         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
13005         do not handle BIND_EXPR.
13006         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
13007         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
13008         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
13009         operands.
13010
13011 2008-03-18  Michael Matz  <matz@suse.de>
13012
13013         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
13014
13015 2008-03-18  Richard Guenther  <rguenther@suse.de>
13016
13017         * tree-gimple.h (is_gimple_invariant_address): Declare.
13018         (is_gimple_constant): Likewise.
13019         * tree-gimple.c (is_gimple_constant): New function.
13020         (is_gimple_invariant_address): Likewise.
13021         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
13022         and is_gimple_invariant_address.
13023         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
13024         previous change.
13025         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
13026         an addressable base.
13027
13028 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
13029
13030         PR middle-end/35611
13031         * gimplify.c (gimplify_expr): Gimplify second operand of
13032         OMP_ATOMIC_LOAD.
13033
13034 2008-03-17  Richard Guenther  <rguenther@suse.de>
13035
13036         PR tree-optimization/19637
13037         * fold-const.c (fold_unary): Remove restrictions of removing
13038         intermediate pointer-conversions (P2)(P1)P0.
13039         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
13040         conversion to void pointer.
13041         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
13042
13043 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
13044
13045         PR debug/31510
13046         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
13047         emulated thread local variables.
13048
13049 2008-03-16  Richard Guenther  <rguenther@suse.de>
13050
13051         PR middle-end/35607
13052         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
13053         expand TREE_INVARIANT operations that are not gimple invariant.
13054
13055 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
13056
13057         * doc/extend.texi (Alignment): Say that the ABI controls
13058         the __alignof__ for non-strict-alignment targets rather
13059         than being a recommendation.
13060
13061 2008-03-15  Paul Brook  <paul@codesourcery.com>
13062
13063         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
13064         annotations.
13065         (arm_output_fn_unwind): Mark functions that can not be unwound.
13066
13067 2008-03-15  Paul Brook  <paul@codesourcery.com>
13068
13069         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
13070         extension instructions.
13071
13072 2008-03-15  Richard Guenther  <rguenther@suse.de>
13073
13074         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
13075         and fold constant aggregate refs.
13076         (fold_const_aggregate_ref): Handle string constants
13077         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
13078         (evaluate_stmt): Simplify now that ccp_fold folds constant
13079         aggregate refs.
13080
13081 2008-03-15  Paul Brook  <paul@codesourcery.com>
13082
13083         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
13084         (extzv): Use gen_extzv_t2.
13085         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
13086
13087 2008-03-15  Richard Guenther  <rguenther@suse.de>
13088
13089         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
13090         (fold_const_aggregate_ref): Likewise.
13091         (get_value): Return NULL if we don't have any values.
13092         (ccp_finalize): Set const_val to NULL after freeing it.
13093         * tree-flow.h (get_symbol_constant_value): Declare.
13094         (fold_const_aggregate_ref): Likewise.
13095         * tree-ssa-sccvn.c (try_to_simplify): Use them.
13096
13097 2008-03-15  Richard Guenther  <rguenther@suse.de>
13098
13099         PR middle-end/35593
13100         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
13101         to not produce negative array indices if not allowed.  Add
13102         parameter to indicate that.
13103         (maybe_fold_offset_to_component_ref): Allow negative array
13104         indices only for the first member of a structure.
13105         (maybe_fold_offset_to_reference): Allow negative array indices.
13106         (maybe_fold_stmt_addition): Likewise.
13107
13108 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
13109             Anatoly Sokolov <aesok@post.ru>
13110
13111         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
13112         (avr_arch): Add ARCH_AVR6.
13113         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
13114         (initial_elimination_offset): Initialize and use 'avr_pc_size'
13115         instead of fixed value 2.
13116         (print_operand_address): Use gs() asm specifier instead of pm().
13117         (avr_assemble_integer): (Ditto.).
13118         (avr_output_addr_vec_elt): (Ditto.).
13119         (print_operand): Handle "!" code.
13120         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
13121         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
13122         (AVR_HAVE_EIJMP_EICALL): Define.
13123         (AVR_3_BYTE_PC): Redefine.
13124         (AVR_2_BYTE_PC): (Ditto.).
13125         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
13126         (LINK_SPEC): Add atmega2560 and atmega2561.
13127         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
13128         (crtm2561.o).
13129         * config/avr/avr.md (call_insn): Use eicall instead of icall
13130         for 3 byte PC devices.
13131         (call_value_insn): (Ditto.).
13132         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
13133         (indirect_jump): Use only for for 2 byte PC devices.
13134         (*tablejump): (Ditto.).
13135         (*indirect_jump_avr6): Add insn.
13136         (*tablejump_rjmp): Don't use for 3 byte PC devices.
13137         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
13138         instead of ijmp for 3 byte PC devices.
13139         (__tablejump2__): (Ditto.).
13140         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
13141         (MULITLIB_DIRNAMES): (Ditto.).
13142         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
13143
13144 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
13145
13146         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
13147         "sse2_umulsidi3".  Use V1DI mode for operand 0.
13148         ("mmx_psadbw"): Use V1DI mode for operand 0.
13149         * config/i386/i386-modes.def (V1SI): New vector mode.
13150         * config/i386/i386.c (struct builtin_description)
13151         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
13152         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
13153         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
13154         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
13155         v1di_ftype_v8qi_v8qi type.
13156         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
13157
13158         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
13159         __builtin_ia32_pmuludq]: Fix the mode of return value.
13160
13161 2008-03-15  Richard Guenther  <rguenther@suse.de>
13162
13163         PR middle-end/35595
13164         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
13165         being a PHI_NODE.
13166
13167 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
13168
13169         * doc/invoke.texi (Option Summary, Xtensa Options): Document
13170         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
13171         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
13172         unless TARGET_SERIALIZE_VOLATILE is enabled.
13173         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
13174         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
13175         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
13176
13177 2008-03-14  Richard Guenther  <rguenther@suse.de>
13178
13179         PR tree-optimization/34172
13180         * tree-flow.h (refs_may_alias_p): Declare.
13181         (get_single_def_stmt): Likewise.
13182         (get_single_def_stmt_from_phi): Likewise.
13183         (get_single_def_stmt_with_phi): Likewise.
13184         * tree-dfa.c (refs_may_alias_p): New function.
13185         (get_single_def_stmt): Likewise.
13186         (get_single_def_stmt_from_phi): Likewise.
13187         (get_single_def_stmt_with_phi): Likewise.
13188         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
13189         (vn_reference_lookup_1): New helper function.
13190         (vn_reference_lookup): Walk the virtual use-def chain to
13191         continue searching for a match if the def does not alias the
13192         reference we are looking for.
13193
13194 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
13195
13196         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
13197         archive and Perzl.  Update The Written Word listing.
13198
13199 2008-03-14  Richard Guenther  <rguenther@suse.de>
13200
13201         PR tree-optimization/34043
13202         PR tree-optimization/33989
13203         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
13204         when doing FRE.
13205         (bitmap_find_leader): Use extra argument to verify dominance
13206         relationship inside a basic-block.
13207         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
13208         (find_leader_in_sets): Adjust.
13209         (create_component_ref_by_pieces): Take extra argument for
13210         dominance check, handle lookup failures.
13211         (find_or_generate_expression): Likewise.
13212         (create_expression_by_pieces): Likewise.
13213         (insert_into_preds_of_block): Adjust.
13214         (create_value_expr_from): If asked for, verify all operands
13215         are in the blocks AVAIL_OUT set.
13216         (make_values_for_stmt): Check for SSA_NAMEs that are life
13217         over an abnormal edge.
13218         (compute_avail): Remove such check.
13219         (do_SCCVN_insertion): New function.
13220         (eliminate): If we do not find a leader suitable for replacement
13221         insert a replacement expression from SCCVN if available.
13222         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
13223         (struct vn_ssa_aux): Add needs_insertion flag.
13224         * tree-ssa-sccvn.c (may_insert): New global flag.
13225         (copy_reference_ops_from_ref): Value-number union member access
13226         based on its size, not type and member if insertion is allowed.
13227         (visit_reference_op_load): For a weak match from union type
13228         punning lookup a view-converted value and insert a SSA_NAME
13229         for that value if that is not found.
13230         (visit_use): Make dumps shorter.  Do not disallow value numbering
13231         SSA_NAMEs that are life over an abnormal edge to constants.
13232         (free_scc_vn): Release inserted SSA_NAMEs.
13233         (run_scc_vn): New flag to specify whether insertion is allowed.
13234         Process SSA_NAMEs in forward order.
13235         * tree-ssa-loop-im.c (for_each_index): Handle invariant
13236         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
13237         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
13238         pointer type to/from integral types that do not change the
13239         precision to regular conversions.
13240
13241 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
13242
13243         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13244         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13245         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
13246         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
13247         input arguments and the mode of return value.  Built-in functions
13248         that operate on whole 64-bit MMX register now use V1DI mode.
13249
13250 2008-03-13  Alon Dayan  <alond@il.ibm.com>
13251             Olga Golovanevsky  <olga@il.ibm.com>
13252
13253         PR tree-optimization/35041
13254         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
13255         to locate the right position in a statement.
13256
13257 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
13258
13259         PR target/34000
13260         PR target/35553
13261         * config/i386/xmmintrin.h:  Change all static inline functions to
13262         extern inline and add __gnu_inline__ attribute.
13263         * config/i386/bmintrin.h: Ditto.
13264         * config/i386/smmintrin.h: Ditto.
13265         * config/i386/tmmintrin.h: Ditto.
13266         * config/i386/mmintrin-common.h: Ditto.
13267         * config/i386/ammintrin.h: Ditto.
13268         * config/i386/emmintrin.h: Ditto.
13269         * config/i386/pmmintrin.h: Ditto.
13270         * config/i386/mmintrin.h: Ditto.
13271         * config/i386/mm3dnow.h: Ditto.
13272
13273 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
13274
13275         PR middle-end/35185
13276         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
13277         (lower_omp_2): New function.
13278         (lower_omp_1, lower_omp): Rewritten.
13279
13280 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
13281
13282         PR 35054
13283         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
13284         with the phrase "Microsoft Windows compilers".
13285         (Push/Pop Macro Pragmas): New subsection. Document
13286         #pragma push_macro and pragma pop_macro.
13287
13288 2008-03-12  Paul Brook  <paul@codesourcery.com>
13289
13290         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
13291
13292 2008-03-12  Paul Brook  <paul@codesourcery.com>
13293
13294         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
13295         (thumb2_alusi3_short): Exclude PLUS and MINUS.
13296         (thumb2_addsi_shortim): Rename ...
13297         (thumb2_addsi_short): ... to this.  Allow register operands.
13298         (thumb2_subsi_short): New pattern.
13299         (thumb2_one_cmplsi2_short,
13300         thumb2_negsi2_short): New patterns and peepholes.
13301
13302 2008-03-12  Paul Brook  <paul@codesourcery.com>
13303
13304         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
13305
13306 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
13307
13308         * config/i386/i386.md (int_cond): New code iterator.
13309         (fp_cond): Ditto.
13310         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
13311         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
13312         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
13313         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
13314         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
13315         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
13316         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
13317         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
13318
13319 2008-03-12  Paul Brook  <paul@codesourcery.com>
13320
13321         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
13322         instead of {arm,thumb}_compute_save_reg_mask.
13323         (output_return_instruction): Ditto.
13324         (thumb_unexpanded_epilogue): Ditto.
13325         (thumb1_expand_prologue): Ditto.
13326         (thumb1_output_function_prologue): Ditto.
13327         (arm_set_return_address): Ditto.
13328         (thumb_set_return_address): Ditto.
13329         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
13330         regs to achieve stack alignment.
13331         (thumb1_compute_save_reg_mask): Fix compiler warning.
13332         (arm_output_epilogue): Use offsets->saved_regs_mask.
13333         Adjust stack pointer by poping call clobered registers.
13334         (arm_expand_prologue): Use offsets->saved_regs_mask.
13335         Adjust stack pointer by pushing extra registers.
13336         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
13337
13338 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
13339
13340         PR tree-opt/35422
13341         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
13342         conversion to the operands of a multiplication.
13343
13344 2008-03-12  Richard Guenther  <rguenther@suse.de>
13345
13346         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
13347         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
13348         * timevar.def (TV_TREE_PHIPROP): Add.
13349         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
13350         pass description.  Use TV_TREE_PHIPROP.
13351         * tree-ssa-forwprop.c: Remove phiprop code.
13352
13353 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
13354
13355         PR middle-end/35549
13356         * omp-low.c (maybe_lookup_decl): Constify first argument.
13357         (use_pointer_for_field): Change last argument from bool to
13358         omp_context *.  Disallow shared copy-in/out in nested
13359         parallel if decl is shared in outer parallel too.
13360         (build_outer_var_ref, scan_sharing_clauses,
13361         lower_rec_input_clauses, lower_copyprivate_clauses,
13362         lower_send_clauses, lower_send_shared_vars): Adjust callers.
13363
13364 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
13365             Ira Rosen  <irar@il.ibm.com>
13366
13367         * tree-vectorizer.c (free_stmt_vec_info): New function.
13368         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
13369         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
13370         * tree-vectorizer.h (free_stmt_vec_info): Declare.
13371         * tree-vect-transform.c (vectorizable_conversion): Free
13372         vec_oprnds0 if it was allocated.
13373         (vect_permute_store_chain): Remove unused VECs.
13374         (vectorizable_store): Free VECs that are allocated in the..
13375         function.
13376         (vect_transform_strided_load, vectorizable_load): Likewise.
13377         (vect_remove_stores): Simplify the code.
13378         (vect_transform_loop): Move code to vect_remove_stores().
13379         Call vect_remove_stores() and free_stmt_vec_info().
13380
13381 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13382
13383         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
13384         TARGET_HPUX.  Revise comment.
13385         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
13386         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
13387         Use sr4 variant of `be' instruction when not generating PIC code.
13388         (attr_length_call): Adjust for above change.
13389
13390 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13391
13392         * ipa-reference.c (static_execute): Remove module_statics_const and
13393         associated setting code.
13394
13395 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
13396
13397         PR target/35540
13398         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
13399         predicate for operand 1.
13400         (paritysi2_cmp): Use register_operand predicate for operand 2.
13401         Use earlyclobber modifier for operand 1.  Remove support for
13402         memory operands.
13403         (paritydi2_cmp): Use register_operand predicate for operand 3.
13404         Use earlyclobber modifier for operand 1.  Remove support for
13405         memory operands.
13406
13407 2008-03-11  Paul Brook  <paul@codesourcery.com>
13408             Vladimir Prus  <vladimir@codesourcery.com>
13409
13410         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
13411         (arm_compute_save_reg0_reg12_mask): Always
13412         check if register 11 must be saved.  Always safe hard frame pointer
13413         when frame_pointer_needeed.
13414         (arm_compute_save_reg_mask): Save IP and PC
13415         only with apcs frames.
13416         (arm_output_epilogue): Adjust Thumb2 codepath to
13417         be also invoked and work for ARM non-apcs frames.
13418         (arm_expand_prologue): Don't bother saving IP
13419         for non-apcs frame, since it's not clobbered by
13420         prologue code.  Implement non-apcs frame
13421         layout.
13422
13423 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
13424
13425         PR rtl-optimization/35281
13426         * expr.c (convert_move): Use a new pseudo for the intermediate
13427         from_mode->word_mode result.
13428
13429 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
13430
13431         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
13432         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
13433         * toplev.c (compile_file): Don't call it.
13434
13435 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
13436
13437         PR middle-end/35526
13438         * expr.c (store_expr): Call emit_block_move if the mode
13439         of "temp" RTX is BLKmode.
13440
13441 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13442             Richard Guenther  <rguenther@suse.de>
13443
13444         PR tree-optimization/31358
13445         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
13446         the step with a NULL_TREE.
13447         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
13448         to sizetype if type is a pointer type.
13449         (add_candidate_1): Don't convert the base and step to
13450         the generic type if the orginal type is a pointer type.
13451         (add_iv_value_candidates): Use sizetype for the step
13452         if type is a pointer type.
13453         (cand_value_at): Likewise.
13454         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
13455         for pointer types.
13456         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
13457         Don't convert the tem affine to the type.
13458         (add_elt_to_tree): Use sizetype for the step if a pointer.
13459         Use POINTER_PLUS_EXPR for pointers.
13460         (aff_combination_to_tree): Use sizetype for the step if a
13461         pointer.
13462
13463 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
13464
13465         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
13466         Remove commutativity hint.
13467
13468 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
13469
13470         PR c/35438
13471         PR c/35439
13472         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
13473         errorneous type.  Check that v is a VAR_DECL.
13474
13475         PR middle-end/35099
13476         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
13477
13478 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
13479
13480         PR tree-optimization/35494
13481         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
13482         may be overriden at link and run time.
13483
13484 2008-03-10  Richard Guenther  <rguenther@suse.de>
13485
13486         PR tree-optimization/34677
13487         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
13488         (poolify_tree): Likewise.
13489         (modify_expr_template): Likewise.
13490         (poolify_modify_stmt): Likewise.
13491         (insert_fake_stores): Handle all component-ref style stores
13492         in addition to INDIRECT_REF.  Also handle complex types.
13493         Do not poolify the inserted load.
13494         (realify_fake_stores): Do not rebuild the tree but only
13495         make it a SSA_NAME copy.
13496         (init_pre): Remove initialzation of modify_expr_template.
13497         Do not allocate modify_expr_node_pool.
13498         (fini_pre): Do not free modify_expr_node_pool.
13499
13500 2008-03-10  Paul Brook  <paul@codesourcery.com>
13501
13502         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
13503         to avoid conflicts.
13504
13505 2008-03-10  Paul Brook  <paul@codesourcery.com>
13506             Mark Shinwell  <shinwell@codesourcery.com>
13507
13508         * config/arm/cortex-r4.md: New.
13509         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
13510         insn attributes.
13511         * config/arm/arm.md: Include cortex-r4.md.
13512         (insn): Add smmls, sdiv and udiv values.
13513         (generic_sched): Don't use generic scheduling for Cortex-R4.
13514         (arm_issue_rate): New function.
13515         (TARGET_SCHED_ISSUE_RATE): Define.
13516
13517 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
13518
13519         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
13520
13521 2008-03-10  Richard Guenther  <rguenther@suse.de>
13522
13523         * tree-ssa-pre.c (get_sccvn_value): Simplify.
13524         (compute_avail): Do not add stmt uses to AVAIL_OUT.
13525
13526 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
13527
13528         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
13529         Set default to true.
13530
13531 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13532
13533         * c.opt (Wsynth): Deprecate.
13534         * doc/invoke.texi (Option Summary, Warning Options): Document
13535         -Wno-format-contains-nul.
13536
13537 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
13538
13539         PR target/35496
13540         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
13541         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
13542
13543 2008-03-09  Ira Rosen  <irar@il.ibm.com>
13544
13545         * config/rs6000/rs6000.c (builtin_description): Rename vector
13546         left shift operations.
13547         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
13548         (altivec_vsl<VI_char>): Rename to ...
13549         (ashl<mode>3): ... new name.
13550         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
13551         gen_ashlv4si3.
13552         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
13553
13554 2008-03-08  Richard Guenther  <rguenther@suse.de>
13555
13556         * coverage.h (tree_coverage_counter_addr): Declare.
13557         * coverage.c (tree_coverage_counter_addr): New function.
13558         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
13559         before using again.
13560         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
13561         (tree_gen_one_value_profiler): Likewise.
13562         (tree_gen_ic_profiler): Likewise.
13563         (tree_gen_average_profiler): Likewise.
13564         (tree_gen_ior_profiler): Likewise.
13565
13566 2008-03-08  Richard Guenther  <rguenther@suse.de>
13567
13568         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
13569         (vn_binary_op_insert): Likewise.
13570         (vn_unary_op_lookup): Likewise.
13571         (vn_unary_op_insert): Likewise.
13572         (vn_nary_op_lookup): Declare.
13573         (vn_nary_op_insert): Likewise.
13574         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
13575         and binary hashes, use a single obstack for unary_op_pool
13576         and binary_op_pool.
13577         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
13578         a single struct vn_nary_op_s.  Store tree code length and
13579         a variable number of operands.
13580         (struct vn_reference_op_struct): Remove unused op2.
13581         (vn_reference_op_eq): Do not compare op2.
13582         (vn_reference_op_compute_hash): Do not compute hash of op2.
13583         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
13584         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
13585         with vn_nary_op_compute_hash.
13586         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
13587         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
13588         vn_nary_op_lookup.
13589         (vn_unary_op_insert, vn_binary_op_insert): Replace with
13590         vn_nary_op_insert.
13591         (visit_unary_op): Call nary functions.
13592         (visit_binary_op): Likewise.
13593         (process_scc): Adjust for struct vn_tables_s changes.
13594         (allocate_vn_table): Likewise.
13595         (free_vn_table): Likewise.
13596         * tree-vn.c (vn_add): Call nary functions.
13597         (vn_lookup): Likewise.
13598
13599 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
13600
13601         PR target/35498
13602         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
13603         wdst back after sync_compare_and_swapqhi_internal.
13604
13605 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
13606
13607         PR target/22152
13608         * config/i386/i386-modes.def (V1DI): New vector mode.
13609         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
13610         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
13611         (MMXMODE248): Ditto.
13612         (MMXMODE): Add V1DI mode.
13613         (mmxvecsize): Change DI mode to V1DI mode.
13614         ("mov<mode>): Use MMXMODEI8 mode iterator.
13615         ("*mov<mode>_internal_rex64"): Ditto.
13616         ("*mov<mode>_internal"): Ditto.
13617         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
13618         ("mmx_sub<mode>3"): Ditto.
13619         ("mmx_adddi3"): Remove insn pattern.
13620         ("mmx_subdi3"): Ditto.
13621         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
13622         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
13623         ("mmx_ashl<mode>3"): Ditto.
13624         ("mmx_lshrdi3"): Remove insn pattern.
13625         ("mmx_ashldi3"): Ditto.
13626         * config/i386/i386.c (classify_argument): Handle V1DImode.
13627         (function_arg_advance_32): Ditto.
13628         (function_arg_32): Ditto.
13629         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
13630         mmx_addv1di3 insn pattern.
13631         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
13632         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
13633         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
13634         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
13635         Remove definitions of built-in functions.
13636         (V1DI_type_node): New node.
13637         (v1di_ftype_v1di_int): Ditto.
13638         (v1di_ftype_v1di_v1di): Ditto.
13639         (v2si_ftype_v2si_si): Ditto.
13640         (v4hi_ftype_v4hi_di): Remove node.
13641         (v2si_ftype_v2si_di): Ditto.
13642         (ix86_init_mmx_sse_builtins): Handle V1DImode.
13643         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
13644         Redefine builtins using def_builtin_const with *_ftype_*_int node.
13645         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
13646         Add new builtins using def_builtin_const.
13647         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
13648         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
13649         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
13650         * config/i386/mmintrin.h (__v1di): New typedef.
13651         (_mm_add_si64): Cast arguments to __v1di type.
13652         (_mm_sub_si64): Ditto.
13653         (_mm_sll_pi16): Cast __count to __v4hi type.
13654         (_mm_sll_pi32): Cast __count to __v2si type.
13655         (_mm_sll_si64): Cast arguments to __v1di type.
13656         (_mm_srl_pi16): Cast __count to __v4hi type.
13657         (_mm_srl_pi32): Cast __count to __v2si type.
13658         (_mm_srl_si64): Cast arguments to __v1di type.
13659         (_mm_sra_pi16): Cast __count to __v4hi type.
13660         (_mm_sra_pi32): Cast __count to __v2si type.
13661         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
13662         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
13663         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
13664         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
13665         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
13666         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
13667         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
13668         (_mm_srai_pi32): Use __builtin_ia32_psradi.
13669         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
13670         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13671         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13672         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
13673
13674 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
13675
13676         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
13677
13678 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
13679
13680         PR target/35373
13681         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
13682         reg+const addressing for Altivec modes.  Don't generate reg+reg
13683         addressing for TFmode or TDmode quantities.
13684
13685 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
13686
13687         * c-common.c (vector_types_convertible_p): Call langhook
13688         instead of comptypes.
13689
13690 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13691
13692         PR tree-opt/35402
13693         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
13694         integral and scalar float variables which have a
13695         NULL DECL_INITIAL.
13696
13697 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
13698
13699         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
13700         dwarf_register_span hook when emitting unwind information for
13701         register-to-memory saves.
13702         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
13703         (rs6000_frame_related): Remove call to spe_synthesize_frame.
13704
13705 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
13706
13707         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
13708         for the same VAR_DECL.
13709
13710 2008-03-06  Tom Tromey  <tromey@redhat.com>
13711
13712         * treelang: Delete.
13713         * doc/standards.texi (Standards): Don't mention treelang.
13714         * doc/invoke.texi (Overall Options): Don't mention treelang.
13715         * doc/install.texi (Prerequisites): Don't mention bison or
13716         treelang.
13717         (Configuration): Don't mention treelang.
13718         (Building): Likewise.
13719         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
13720
13721 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
13722
13723         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
13724         word-extractions out of a multi-word object.
13725
13726 2008-03-06  Richard Guenther  <rguenther@suse.de>
13727
13728         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
13729         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
13730         result type and precision.
13731         * expr.c (get_inner_reference): Set unsignedp based on the result
13732         type of BIT_FIELD_REF.
13733         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
13734         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
13735         (try_instantiate_multiple_fields): Likewise.  Use the correct type
13736         for BIT_FIELD_REF.
13737         (sra_build_assignment): Likewise.
13738         (sra_build_elt_assignment): Likewise.
13739         (sra_explode_bitfield_assignment): Likewise.
13740         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
13741         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
13742         set BIT_FIELD_REF_UNSIGNED.
13743         (vectorizable_load): Likewise.
13744
13745 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
13746
13747         * cse.c (cse_extended_basic_block): Invalidate artificial defs
13748         at bb start.
13749
13750 2008-03-06  Richard Guenther  <rguenther@suse.de>
13751
13752         * alias.c (struct alias_set_entry): Move has_zero_child field
13753         to pack with alias_set.
13754
13755 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13756
13757         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13758         32bit host.
13759
13760 2008-03-05  Ian Lance Taylor  <iant@google.com>
13761
13762         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
13763
13764 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
13765
13766         * fwprop.c (update_df): Support width and offset parameters of
13767         df_ref_create.
13768         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
13769         global_conflicts): Change DF_REF_EXTRACT to either
13770         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13771         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13772         * df-scan.c (df_ref_record, df_defs_record,
13773         df_ref_create_structure, df_def_record_1, df_uses_record,
13774         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
13775         df_bb_refs_collect, df_entry_block_defs_collect,
13776         df_exit_block_uses_collect): Support new width and offset fields.
13777         (ref_extract_pool): New storage pool.
13778         (df_free_ref): New function.
13779         (df_reg_chain_unlink, df_free_collection_rec,
13780         df_sort_and_compress_refs): Call df_free_ref.
13781         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
13782         of df_ref_extract.
13783         (df_ref_create_structure): Allocate df_ref_extract if offset and
13784         width fields are used.
13785         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
13786         (df_uses_record): Get offset and width from ZERO_EXTRACT
13787         and SIGN_EXTRACT.
13788         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
13789         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13790         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13791         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
13792         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13793         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13794         (df_ref_extract): New structure.
13795         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
13796         (df_ref_create): Add width and offset parameters.
13797
13798 2008-03-05  Richard Guenther  <rguenther@suse.de>
13799
13800         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13801         Use ranges_overlap_p.
13802         (offset_overlaps_with_access): Rename
13803         to ranges_overlap_p and move ...
13804         * tree-flow-inline.h (ranges_overlap_p): ... here.
13805
13806         * tree.h (get_inner_reference, handled_component_p): Update
13807         comments.
13808
13809         * tree.h (record_component_aliases, get_alias_set,
13810         alias_sets_conflict_p, alias_sets_must_conflict_p,
13811         objects_must_conflict_p): Move declarations ...
13812         * alias.h (record_component_aliases, get_alias_set,
13813         alias_sets_conflict_p, alias_sets_must_conflict_p,
13814         objects_must_conflict_p): ... here.
13815         Include coretypes.h.
13816         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
13817
13818 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
13819
13820         * cfg.c: Include tree-flow.h.
13821         (remove_edge_raw): Call redirect_edge_var_map_clear.
13822         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
13823         * tree-flow-inline.h (redirect_edge_var_map_def): New.
13824         (redirect_edge_var_map_result): New.
13825         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
13826         PENDING_STMT use with redirect_edge_var_map_*.
13827         * tree-ssa.c (edge_var_maps): New definition.
13828         (redirect_edge_var_map_add): New.
13829         (redirect_edge_var_map_clear): New.
13830         (redirect_edge_var_map_dup): New.
13831         (redirect_edge_var_map_vector): New.
13832         (redirect_edge_var_map_destroy): New.
13833         (ssa_redirect_edge): Replace PENDING_STMT use with
13834         redirect_edge_var_map_*.
13835         (flush_pending_stmts): Same.
13836         (delete_tree_ssa): Destroy edge var map.
13837         * tree-flow.h (struct _edge_var_map): New.
13838         Define edge_var_map vector type.
13839         Declare redirect_edge_var_map_* prototypes.
13840         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
13841         * tree-cfg.c (reinstall_phi_args): Replace
13842         PENDING_STMT use with redirect_edge_var_map_*.
13843
13844 2008-03-05  Richard Guenther  <rguenther@suse.de>
13845
13846         PR tree-optimization/35472
13847         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
13848         whose single use_stmt has a overlapping set of loaded and
13849         stored symbols as that use_stmt might be a noop assignment then.
13850
13851 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
13852
13853         * gthr-rtems.h: Implement __gthread_mutex_destroy.
13854
13855 2008-03-05  Richard Guenther  <rguenther@suse.de>
13856
13857         PR c++/35336
13858         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
13859         should be constants.
13860         * tree-cfg.c (verify_expr): Verify it.
13861         * fold-const.c (fold_truthop): Remove code generating
13862         BIT_FIELD_REFs of structure bases.
13863         (fold_binary): Likewise.
13864         (fold_ternary): Position and size of BIT_FIELD_REFs are
13865         always host integers.
13866         (make_bit_field_ref): Remove.
13867         (optimize_bit_field_compare): Remove.
13868         (all_ones_mask_p): Remove.
13869
13870 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
13871
13872         PR gcc/33009
13873         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
13874         (split_block_and_df_analyze): New. Split basic block and rebuild
13875         dataflow.
13876         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
13877         SPLIT_BLOCK.
13878         (split_pattern_seq): Likewise.
13879         (erase_matching_seqs): Likewise.
13880         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
13881
13882 2008-03-04  Geoff Keating  <geoffk@apple.com>
13883
13884         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
13885         declaration and code.
13886         (tree_invalid_nonnegative_warnv_p): Likewise.
13887
13888 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
13889
13890         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
13891         examples.  Truncate option-names then causing overfull hbox.
13892
13893 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13894
13895         PR target/35222
13896         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
13897         on hpux10.
13898         * configure: Rebuilt.
13899
13900 2008-03-04  Rafael Espindola  <espindola@google.com>
13901
13902         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
13903         (tree_unary_nonnegative_warnv_p): New.
13904         (tree_binary_nonnegative_warnv_p): New.
13905         (tree_single_nonnegative_warnv_p): New.
13906         (tree_invalid_nonnegative_warnv_p): New.
13907         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
13908
13909 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13910
13911         PR 28322
13912         * opts.c (handle_option): Postpone 'unknown option' errors only for
13913         warning options.
13914
13915 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13916
13917         PR target/35453
13918         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
13919         (_SIDD_XXX): This.
13920
13921 2008-03-04  Rafael Espindola  <espindola@google.com>
13922
13923         * fold-const.c (tree_unary_nonzero_warnv_p): New.
13924         (tree_binary_nonzero_warnv_p): New.
13925         (tree_single_nonzero_warnv_p): New.
13926         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
13927
13928 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
13929
13930         PR middle-end/35456
13931         * fold-const.c (fold_cond_expr_with_comparison): Prevent
13932         transformations for modes that have signed zeros.
13933         * ifcvt.c (noce_try_abs): Ditto.
13934
13935 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
13936
13937         * config/i386/i386.c (override_options): Force
13938         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
13939
13940 2008-03-04  Jan Hubicka  <jh@suse.cz>
13941
13942         PR c++/35262
13943         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
13944         in last commit.
13945
13946 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13947
13948         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
13949         label to probe the stack.
13950
13951 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13952
13953         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
13954         (__gthr_win32_mutex_destroy): Declare.
13955         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
13956         __gthr_win32_mutex_destroy.
13957         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
13958
13959 2008-03-03  Jan Hubicka  <jh@suse.cz>
13960
13961         PR c++/35262
13962         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
13963         aggressive on inlining cold calls.
13964
13965 2008-03-03  Richard Guenther  <rguenther@suse.de>
13966
13967         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
13968         struct copies into the expression table.
13969         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
13970         (try_to_simplify): Likewise.
13971         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13972         integral and pointer arguments which do not change the
13973         precision to NOP_EXPRs.
13974         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13975         VIEW_CONVERT_EXPR case.
13976
13977 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
13978
13979         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13980         defined in a loop at depth 0 is invariant.
13981         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13982         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13983         be called at loop depth 0.
13984
13985 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
13986
13987         PR driver/35420
13988         * gcc.c (process_command): Update copyright notice dates.
13989         * gcov.c (print_version): Likewise.
13990         * gcov-dump.c (print_version): Likewise.
13991         * mips-tfile.c (main): Likewise.
13992         * mips-tdump.c (main): Likewise.
13993
13994 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13995
13996         PR 24924
13997         * c-common.c (flag_permissive): Delete.
13998         (constant_expression_warnings): Check flags first.
13999         (constant_expression_error): New.
14000         * c-common.h (flag_permissive): Delete.
14001         (constant_expression_error): Declare.
14002         * flags.h (flag_permissive): Declare. Update description.
14003         * diagnostic.c (pedwarn): Update.
14004         (permerror): New.
14005         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
14006         (permissive_error_kind): New.
14007         * toplev.c (flag_permissive): Define. Update description.
14008         * toplev.h (permissive_error_kind): Declare.
14009         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
14010         (pedwarn_c90): Use pedantic_warning_kind.
14011         * c-opts.c (c_common_post_options): flag_permissive does not affect
14012         flag_pedantic_errors.
14013
14014 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
14015
14016         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
14017         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
14018         __absvsi2, __absvDI2): Use unsigned arithmetic.
14019
14020 2008-03-02  Andi Kleen  <ak@suse.de>
14021             Richard Guenther  <rguenther@suse.de>
14022
14023         * struct-equiv.c: Remove file.
14024         * cfg_cleanup.c (condjump_equiv_p): Remove.
14025         * Makefile.in (OBJS-common): Remove struct-equiv.o.
14026         (struct-equiv.o): Remove rule.
14027         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
14028         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
14029         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
14030
14031 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
14032
14033         * ifcvt.c (noce_process_if_block): Try to handle only the then
14034         block if the else block exists but isn't suitable.
14035
14036 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
14037
14038         PR gcc/35063
14039         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
14040         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
14041         regression from previous patch.
14042
14043 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
14044
14045         PR gcc/35063
14046         * gthr.h: Add __gthread_mutex_destroy as a function that must be
14047         implemented.
14048         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
14049         * gthr-single.h (__gthread_mutex_destroy): Likewise.
14050         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
14051         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
14052         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
14053         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
14054         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
14055         (__gthread_mutex_destroy_function): Rename to
14056         __gthread_mutex_destroy.
14057         * gthr-dce.h (__gthread_mutex_destroy): Call
14058         pthread_mutex_destroy.
14059         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
14060         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
14061         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
14062
14063 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
14064
14065         * df-scan.c (df_ref_chain_change_bb): Simplify.
14066         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
14067         set_block_for_insn if there's any change.
14068         * df.h ((df_insn_change_bb): Fix prototype.
14069         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
14070         df_insn_change_bb, don't call set_block_for_insn.
14071         * emit-rtl.c (reorder_insns): Likewise.
14072         * haifa-sched.c (move_insn): Likewise.
14073
14074 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
14075
14076         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
14077
14078 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
14079
14080         * tree-flow-inline.h (next_readonly_imm_use): Return
14081         NULL_USE_OPERAND_P after the end.
14082
14083 2008-03-01  Richard Guenther  <rguenther@suse.de>
14084
14085         PR tree-optimization/35411
14086         * tree-sra.c (sra_build_assignment): Split conversion to
14087         final type to a separate statement if we are not assigning
14088         to a register.
14089
14090 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
14091
14092         * fold-const.c (fold_convertible_p): Correct the logic to follow
14093         that in fold_convert().
14094
14095 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
14096
14097         PR c++/35315
14098         * tree-inline.c (build_duplicate_type): When we make a
14099         duplicate type, make it unique in the canonical types system.
14100
14101 2008-02-29  Tom Tromey  <tromey@redhat.com>
14102
14103         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
14104         input_file_stack_history, input_file_stack_restored): Remove.
14105         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
14106         * input.h (struct file_stack): Remove.
14107         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
14108         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
14109         Likewise.
14110         * diagnostic.h (struct diagnostic_context) <last_module>: Change
14111         type.
14112         (diagnostic_last_module_changed): Add 'map' argument.
14113         (diagnostic_set_last_function): Likewise.
14114         * diagnostic.c (undiagnostic_report_current_module): Iterate using
14115         line map, not input_file_stack.
14116         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
14117
14118 2008-02-29  Paul Brook  <paul@codesourcery.com>
14119
14120         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
14121
14122 2008-02-29  Paul Brook  <paul@codesourcery.com>
14123
14124         * config/arm/ieee754-df.S (muldf3): Use RET macros.
14125
14126 2008-02-29  Richard Guenther  <rguenther@suse.de>
14127
14128         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
14129         vn_lookup_or_add.
14130         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
14131         value for comparing for a store match.
14132         (simplify_unary_expression): Do nothing for SSA_NAMEs.
14133         (try_to_simplify): Do not do a full-blown reference lookup.
14134
14135 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
14136
14137         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
14138         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
14139
14140         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
14141
14142 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
14143
14144         * tree-loop-linear.c (try_interchange_loops): Compare memory access
14145         strides against cache sizes.
14146
14147 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
14148
14149         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
14150         constant to fpul.
14151
14152 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
14153
14154         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
14155         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
14156         is smaller than the original promoted value.
14157         (simplify_subreg): If OP is a SUBREG, try to preserve its
14158         SUBREG_PROMOTED_VAR_P information.
14159
14160 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
14161
14162         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
14163         (VN_INFO_GET): Allocate new objects on the obstack.
14164         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
14165         for rpo_numbers_temp, for consistency.
14166         (free_scc_vn): Free the obstack.
14167
14168 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
14169
14170         * doc/invoke.texi: Document -ftree-loop-distribution.
14171         * tree-loop-distribution.c: New.
14172         * tree-pass.h (pass_loop_distribution): New.
14173         * graphds.h (struct graph): Add htab_t indices.
14174         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
14175         * tree-vectorizer.c (rename_variables_in_loop): Extern.
14176         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
14177         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
14178         * tree-data-ref.c (debug_data_dependence_relations): New.
14179         (dump_data_dependence_relation): Also print data references.
14180         (free_data_ref): Extern.
14181         (same_access_functions): Moved...
14182         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
14183         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14184         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
14185         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
14186         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
14187         (stmts_from_loop): Skip LABEL_EXPR.
14188         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
14189         New.
14190         (build_rdg): Initialize rdg->indices htab.
14191         (free_rdg, stores_from_loop, ref_base_address,
14192         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
14193         have_similar_memory_accesses_1, ref_base_address_1,
14194         remove_similar_memory_refs): New.
14195         * tree-data-ref.h: Depend on tree-chrec.h.
14196         (debug_data_dependence_relations, free_data_ref): Declared.
14197         (same_access_functions): ... here.
14198         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
14199         New.
14200         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
14201         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
14202         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
14203         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14204         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
14205         rdg_vertex_for_stmt): Declared.
14206         (struct rdg_edge): Add level.
14207         (RDGE_LEVEL): New.
14208         (free_rdg, stores_from_loop, remove_similar_memory_refs,
14209         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
14210         Declared.
14211         (rdg_has_similar_memory_accesses): New.
14212         * tree-vect-analyze.c: Remove unused static decls.
14213         * lambda.h (dependence_level): New.
14214         * common.opt (ftree-loop-distribution): New.
14215         * tree-flow.h (mark_virtual_ops_in_bb,
14216         slpeel_tree_duplicate_loop_to_edge_cfg,
14217         rename_variables_in_loop): Declared.
14218         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
14219         (OBJS-common): Add tree-loop-distribution.o.
14220         (tree-loop-distribution.o): New rule.
14221         * tree-cfg.c (mark_virtual_ops_in_bb): New.
14222         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
14223         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
14224
14225 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
14226
14227         PR target/33963
14228         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
14229         other than structures and unions.
14230
14231 2008-02-28  Richard Guenther  <rguenther@suse.de>
14232
14233         Revert:
14234         2008-02-26  Richard Guenther  <rguenther@suse.de>
14235
14236         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14237         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14238         (lookup_decl_from_uid): Declare.
14239         (remove_decl_from_map): Likewise.
14240         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14241         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14242         (decl_for_uid_map): New global hashtable mapping DECL_UID
14243         to the decl tree.
14244         (init_ttree): Allocate it.
14245         (insert_decl_to_uid_decl_map): New helper function.
14246         (make_node_stat): Insert new decls into the map.
14247         (copy_node_stat): Likewise.
14248         (lookup_decl_from_uid): New function.
14249         (remove_decl_from_map): Likewise.
14250         (print_decl_for_uid_map_statistics): New helper.
14251         (dump_tree_statistics): Call it.
14252
14253         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14254         (referenced_var_iterator): Adjust.
14255         (FOR_EACH_REFERENCED_VAR): Adjust.
14256         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14257         (num_referenced_vars): Adjust.
14258         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14259         (first_referenced_var): Remove.
14260         (end_referenced_vars_p): Likewise.
14261         (next_referenced_var): Likewise.
14262         (referenced_var_iterator_set): New helper function.
14263         * tree-dfa.c (referenced_var_lookup): Adjust.
14264         (referenced_var_check_and_insert): Likewise.
14265         (remove_referenced_var): Likewise.
14266         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14267         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14268         (verify_call_clobbering): Likewise.
14269         (verify_memory_partitions): Likewise.
14270         (init_tree_ssa): Allocate bitmap instead of hashtable for
14271         referenced_vars.
14272         (delete_tree_ssa): Adjust.
14273         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14274         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14275         (compute_tag_properties): Likewise.
14276         (set_initial_properties): Likewise.
14277         (find_partition_for): Likewise.
14278         (update_reference_counts): Likewise.
14279         (dump_may_aliases_for): Likewise.
14280         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14281         (add_call_clobber_ops): Likewise.
14282         (add_call_read_ops): Likewise.
14283         (get_asm_expr_operands): Likewise.
14284         * tree-into-ssa.c (dump_decl_set): Likewise.
14285         (update_ssa): Likewise.
14286         * tree-sra.c (scan_function): Likewise.
14287         (decide_instantiations): Likewise.
14288         (scalarize_parms): Likewise.
14289         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14290         (dsa_named_for): Likewise.
14291         * tree-ssa-structalias.c (update_alias_info): Likewise.
14292         (merge_smts_into): Likewise.
14293
14294 2008-02-27  David Daney  <ddaney@avtrex.com>
14295
14296         PR target/34409
14297         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
14298         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
14299         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
14300         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
14301         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
14302
14303 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
14304
14305         PR target/25477
14306         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
14307         (BUILT_IN_NEXTTOWARD): Remove.
14308         (BUILT_IN_NEXTTOWARDF): Ditto.
14309         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
14310         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
14311
14312 2008-02-27  Tom Tromey  <tromey@redhat.com>
14313
14314         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
14315         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
14316
14317 2008-02-27  Jan Beulich  <jbeulich@novell.com>
14318
14319         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
14320         update the respective field on newdecl.
14321
14322 2008-02-27  Revital Eres  <eres@il.ibm.com>
14323
14324         PR rtl-optimization/34999
14325         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
14326         crossing edges that ends with a call insn.
14327         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
14328         call insn and clear the EDGE_CROSSING flag of the crossing edge
14329         when fixing fallthru edges.
14330
14331 2008-02-27  Richard Guenther  <rguenther@suse.de>
14332
14333         PR middle-end/35390
14334         * fold-const.c (fold_unary): Return the correct argument,
14335         converted to the result type.
14336
14337 2008-02-27  Richard Guenther  <rguenther@suse.de>
14338
14339         PR middle-end/34971
14340         * expr.c (expand_expr_real_1): Assert on rotates that operate
14341         on partial modes.
14342         * fold-const.c (fold_binary): Use the types precision, not the
14343         bitsize of the mode if folding rotate expressions.  Build rotates
14344         only for full modes.
14345
14346 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
14347
14348         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
14349         and CPP_PRAGMA_EOL.
14350         * c-pragma.c (pragma_ns_name): New typedef.
14351         (registered_pp_pragmas): New variable.
14352         (c_pp_lookup_pragma): New function.
14353         (c_register_pragma_1): If flag_preprocess_only, do nothing
14354         for non-expanded pragmas, for expanded ones push pragma's
14355         namespace and name into registered_pp_pragmas vector.
14356         (c_invoke_pragma_handler): Register OpenMP pragmas even when
14357         flag_preprocess_only, don't register GCC pch_preprocess
14358         pragma if flag_preprocess_only.
14359         * c-opts.c (c_common_init): Call init_pragma even if
14360         flag_preprocess_only.
14361         * c-pragma.c (c_pp_lookup_pragma): New prototype.
14362         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
14363         cpp_register_pragma if flag_preprocess_only.
14364
14365 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14366
14367         PR c/28800
14368         * c-parser.c (c_parser_translation_unit): Warn for empty
14369         translation unit, not empty source file.
14370
14371 2008-02-26  Paul Brook  <paul@codesourcery.com>
14372
14373         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
14374         operand for Thumb-2.
14375         * config/arm/arm.h (reg_class): Add CORE_REGS.
14376         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
14377         (BASE_REG_CLASS): Use CORE_REGS.
14378         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
14379         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
14380         (REGNO_OK_FOR_INDEX_P): Exclude SP.
14381         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
14382         ARM_REGNO_OK_FOR_INDEX_P.
14383         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
14384         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
14385         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
14386         (ldm/stm peepholes): Ditto.
14387         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
14388         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
14389         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
14390         * config/arm/constraints.md: Enable "k" constraint on ARM.
14391
14392 2008-02-27  Ben Elliston  <bje@au.ibm.com>
14393
14394         * config/rs6000/rs6000.c: Annotate cache line size field in all
14395         instances of struct processor_costs.
14396
14397 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
14398
14399         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
14400         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
14401         jump_bypass): New counters.
14402         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
14403         * dce.c (gate_ud_dce): Same.
14404         (gate_fast_dce): Same.
14405         * dse.c (gate_dse1): New function.
14406         (gate_dse2): New function.
14407         (gate_dse): Merge results of new gate functions.
14408         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
14409         (gate_handle_jump_bypass): Add dbg_cnt.
14410         (gate_handle_gcse): Add dbg_cnt.
14411         * ifcvt.c (gate_handle_if_conversion): Same.
14412         (gate_handle_if_after_combine): Same.
14413         (gate_handle_if_after_reload): Same.
14414         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
14415
14416 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
14417
14418         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
14419         line sizes.
14420         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
14421
14422 2008-02-26  Jason Merrill  <jason@redhat.com>
14423
14424         PR c++/35315
14425         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
14426         alone if it's the naming decl for the type's main variant.
14427
14428 2008-02-26  Tom Tromey  <tromey@redhat.com>
14429
14430         * system.h (USE_MAPPED_LOCATION): Poison.
14431         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
14432         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
14433         (make_goto_expr_edges): Likewise.
14434         (remove_bb): Likewise.
14435         (execute_warn_function_return): Likewise.
14436         * basic-block.h (struct edge_def) <goto_locus>: Change type to
14437         location_t.
14438         * c-common.c (fname_decl): Remove old location code.
14439         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
14440         location code.
14441         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
14442         variant.
14443         (ASM_INPUT_SOURCE_LOCATION): Likewise.
14444         (gen_rtx_ASM_INPUT): Likewise.
14445         (gen_rtx_ASM_INPUT_loc): Likewise.
14446         (get_rtx_asm_OPERANDS): Remove.
14447         * cfglayout.c (insn_locators_alloc): Remove old location code.
14448         (set_curr_insn_source_location): Likewise.
14449         (curr_insn_locator): Likewise.
14450         * print-tree.c (print_node): Remove old location code.
14451         * tree-mudflap.c (mf_varname_tree): Remove old location code.
14452         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
14453         * cfgexpand.c (expand_gimple_cond_expr): Don't use
14454         location_from_locus.
14455         (construct_exit_block): Remove old location code.
14456         * emit-rtl.c (force_next_line_note): Remove old location code.
14457         * profile.c (branch_prob): Remove old location code.
14458         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
14459         LOC_LINE): Remove old-location variants.
14460         * langhooks.c (lhd_print_error_function): Remove old location
14461         code.
14462         * configure, config.in: Rebuilt.
14463         * configure.ac (--enable-mapped-location): Remove.
14464         * c-decl.c (c_init_decl_processing): Remove old location code.
14465         (finish_function): Likewise.
14466         * recog.c (decode_asm_operands): Remove old location code.
14467         * c-pch.c (c_common_read_pch): Remove old location code.
14468         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
14469         variants.
14470         * gimple-low.c (lower_function_body): Remove old location code.
14471         * toplev.c (unknown_location): Remove.
14472         (push_srcloc): Remove old-location variant.
14473         (process_options): Remove old location code.
14474         (lang_dependent_init): Likewise.
14475         * input.h (UNKNOWN_LOCATION): Move definition.
14476         (location_t): Undeprecate.
14477         (source_locus): Remove.
14478         (location_from_locus): Remove.
14479         (struct location_s): Remove.
14480         Remove all old-location code.
14481         (input_line, input_filename): Remove.
14482         * final.c (final_scan_insn): Remove old location code.
14483         * diagnostic.c (diagnostic_build_prefix): Remove
14484         USE_MAPPED_LOCATION test.
14485         * tree.h (gimple_stmt) <locus>: Now a location_t.
14486         (tree_exp) <locus>: Likewise.
14487         (DECL_IS_BUILTIN): Remove old-location variant.
14488         (annotate_with_file_line, annotate_with_locus): Likewise.
14489         (expr_locus, set_expr_locus): Update.
14490         * tree.c (build1_stat): Remove old location code.
14491         (last_annotated_node): Remove.
14492         (annotate_with_file_line): Remove old-location variant.
14493         (annotate_with_locus): Likewise.
14494         (expr_location): Remove old location code.
14495         (set_expr_location): Likewise.
14496         (expr_has_location): Likewise.
14497         (expr_locus): Likewise.
14498         (set_expr_locus): Likewise.
14499         (expr_filename): Don't use location_from_locus.
14500         (expr_lineno): Likewise.
14501         * rtl-error.c (location_for_asm): Remove old location code.
14502         * c-lex.c (cb_line_change): Remove old location code.
14503         (fe_file_change): Likewise.
14504         (cb_def_pragma): Likewise.
14505         (c_lex_with_flags): Likewise.
14506         * gengtype.c (do_typedef): Don't special-case location types.
14507         (define_location_structures): Remove.
14508         (main): Don't call define_location_structures.
14509         * tree-pretty-print.c (dump_implicit_edges): Remove old location
14510         code.
14511
14512 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14513
14514         PR 26264
14515         * builtins.def (BUILT_IN_STDARG_START): Remove.
14516         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
14517         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
14518         * tree-inline.c (inline_forbidden_p_1): Likewise.
14519
14520 2008-02-26  Richard Guenther  <rguenther@suse.de>
14521
14522         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14523         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14524         (lookup_decl_from_uid): Declare.
14525         (remove_decl_from_map): Likewise.
14526         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14527         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14528         (decl_for_uid_map): New global hashtable mapping DECL_UID
14529         to the decl tree.
14530         (init_ttree): Allocate it.
14531         (insert_decl_to_uid_decl_map): New helper function.
14532         (make_node_stat): Insert new decls into the map.
14533         (copy_node_stat): Likewise.
14534         (lookup_decl_from_uid): New function.
14535         (remove_decl_from_map): Likewise.
14536         (print_decl_for_uid_map_statistics): New helper.
14537         (dump_tree_statistics): Call it.
14538
14539         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14540         (referenced_var_iterator): Adjust.
14541         (FOR_EACH_REFERENCED_VAR): Adjust.
14542         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14543         (num_referenced_vars): Adjust.
14544         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14545         (first_referenced_var): Remove.
14546         (end_referenced_vars_p): Likewise.
14547         (next_referenced_var): Likewise.
14548         (referenced_var_iterator_set): New helper function.
14549         * tree-dfa.c (referenced_var_lookup): Adjust.
14550         (referenced_var_check_and_insert): Likewise.
14551         (remove_referenced_var): Likewise.
14552         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14553         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14554         (verify_call_clobbering): Likewise.
14555         (verify_memory_partitions): Likewise.
14556         (init_tree_ssa): Allocate bitmap instead of hashtable for
14557         referenced_vars.
14558         (delete_tree_ssa): Adjust.
14559         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14560         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14561         (compute_tag_properties): Likewise.
14562         (set_initial_properties): Likewise.
14563         (find_partition_for): Likewise.
14564         (update_reference_counts): Likewise.
14565         (dump_may_aliases_for): Likewise.
14566         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14567         (add_call_clobber_ops): Likewise.
14568         (add_call_read_ops): Likewise.
14569         (get_asm_expr_operands): Likewise.
14570         * tree-into-ssa.c (dump_decl_set): Likewise.
14571         (update_ssa): Likewise.
14572         * tree-sra.c (scan_function): Likewise.
14573         (decide_instantiations): Likewise.
14574         (scalarize_parms): Likewise.
14575         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14576         (dsa_named_for): Likewise.
14577         * tree-ssa-structalias.c (update_alias_info): Likewise.
14578         (merge_smts_into): Likewise.
14579
14580 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14581
14582         PR 34351
14583         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
14584         * c-opts.c (c_common_handle_option): Wall enables
14585         Wvolatile-register-var.
14586         * common.opt: Move Wvolatile-register-var to...
14587         * c.opt: ...here.
14588
14589 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14590
14591         * common.opt (Wlarger-than=): New.
14592         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
14593         -Wlarger-than=.
14594         * opts.c (common_handle_option): Handle -Wlarger-than=.
14595         * optc-gen.awk: Likewise.
14596         * opth-gen.awk: Likewise.
14597         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
14598         * tree-optimize.c (tree_rest_of_compilation): Likewise.
14599
14600 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14601
14602         * c-common.c (match_case_to_enum_1): Add appropriate
14603         OPT_W* parameter to warning.
14604         (c_do_switch_warnings): Likewise.
14605         * c-typeck.c (warning_init): Add one more parameter following
14606         'warning' function.
14607         (push_init_level): Update call to warning_init.
14608         (pop_init_level): Likewise.
14609         (add_pending_init): Likewise.
14610         (output_init_element: Likewise.
14611
14612 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14613
14614         PR 28322
14615         * toplev.c (toplev_main): If there are warnings or error, print
14616         errors for ignored options.
14617         * opts.c (ignored_options): New static variable.
14618         (postpone_unknown_option_error): New.
14619         (print_ignored_options): New.
14620         (handle_option): Postpone errors for unknown -Wno-* options.
14621         * opts.h (print_ignored_options): Declare.
14622
14623 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
14624
14625         * config/mips/mips.md (loadgp_blockage, blockage): Change type
14626         to "ghost".
14627
14628 2008-02-25  Richard Guenther  <rguenther@suse.de>
14629
14630         Revert:
14631         2008-02-25  Richard Guenther  <rguenther@suse.de>
14632
14633         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14634         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14635         (lookup_decl_from_uid): Declare.
14636         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14637         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14638         (decl_for_uid_map): New global hashtable mapping DECL_UID
14639         to the decl tree.
14640         (init_ttree): Allocate it.
14641         (insert_decl_to_uid_decl_map): New helper function.
14642         (make_node_stat): Insert new decls into the map.
14643         (copy_node_stat): Likewise.
14644         (lookup_decl_from_uid): New function.
14645         (print_decl_for_uid_map_statistics): New helper.
14646         (dump_tree_statistics): Call it.
14647
14648         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14649         (referenced_var_iterator): Adjust.
14650         (FOR_EACH_REFERENCED_VAR): Adjust.
14651         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14652         (num_referenced_vars): Adjust.
14653         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14654         (first_referenced_var): Remove.
14655         (end_referenced_vars_p): Likewise.
14656         (next_referenced_var): Likewise.
14657         (referenced_var_iterator_set): New helper function.
14658         * tree-dfa.c (referenced_var_lookup): Adjust.
14659         (referenced_var_check_and_insert): Likewise.
14660         (remove_referenced_var): Likewise.
14661         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14662         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14663         (verify_call_clobbering): Likewise.
14664         (verify_memory_partitions): Likewise.
14665         (init_tree_ssa): Allocate bitmap instead of hashtable for
14666         referenced_vars.
14667         (delete_tree_ssa): Adjust.
14668         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14669         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14670         (compute_tag_properties): Likewise.
14671         (set_initial_properties): Likewise.
14672         (find_partition_for): Likewise.
14673         (update_reference_counts): Likewise.
14674         (dump_may_aliases_for): Likewise.
14675         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14676         (add_call_clobber_ops): Likewise.
14677         (add_call_read_ops): Likewise.
14678         (get_asm_expr_operands): Likewise.
14679         * tree-into-ssa.c (dump_decl_set): Likewise.
14680         (update_ssa): Likewise.
14681         * tree-sra.c (scan_function): Likewise.
14682         (decide_instantiations): Likewise.
14683         (scalarize_parms): Likewise.
14684         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14685         (dsa_named_for): Likewise.
14686         * tree-ssa-structalias.c (update_alias_info): Likewise.
14687         (merge_smts_into): Likewise.
14688
14689 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
14690
14691         PR fortran/29549
14692         * doc/invoke.texi (-fcx-limited-range): Document new option.
14693         * toplev.c (process_options): Handle -fcx-fortran-rules.
14694         * common.opt: Add documentation for -fcx-fortran-rules.
14695
14696 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
14697
14698         PR c/35162
14699         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
14700         actual behaviour and C99.
14701
14702 2008-02-26  Ben Elliston  <bje@au.ibm.com>
14703
14704         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
14705         (ASM_CPU_POWER6_SPEC): Likewise.
14706         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
14707         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
14708         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
14709
14710 2008-02-25  Richard Guenther  <rguenther@suse.de>
14711
14712         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14713         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14714         (lookup_decl_from_uid): Declare.
14715         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14716         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14717         (decl_for_uid_map): New global hashtable mapping DECL_UID
14718         to the decl tree.
14719         (init_ttree): Allocate it.
14720         (insert_decl_to_uid_decl_map): New helper function.
14721         (make_node_stat): Insert new decls into the map.
14722         (copy_node_stat): Likewise.
14723         (lookup_decl_from_uid): New function.
14724         (print_decl_for_uid_map_statistics): New helper.
14725         (dump_tree_statistics): Call it.
14726
14727         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14728         (referenced_var_iterator): Adjust.
14729         (FOR_EACH_REFERENCED_VAR): Adjust.
14730         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14731         (num_referenced_vars): Adjust.
14732         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14733         (first_referenced_var): Remove.
14734         (end_referenced_vars_p): Likewise.
14735         (next_referenced_var): Likewise.
14736         (referenced_var_iterator_set): New helper function.
14737         * tree-dfa.c (referenced_var_lookup): Adjust.
14738         (referenced_var_check_and_insert): Likewise.
14739         (remove_referenced_var): Likewise.
14740         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14741         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14742         (verify_call_clobbering): Likewise.
14743         (verify_memory_partitions): Likewise.
14744         (init_tree_ssa): Allocate bitmap instead of hashtable for
14745         referenced_vars.
14746         (delete_tree_ssa): Adjust.
14747         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14748         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14749         (compute_tag_properties): Likewise.
14750         (set_initial_properties): Likewise.
14751         (find_partition_for): Likewise.
14752         (update_reference_counts): Likewise.
14753         (dump_may_aliases_for): Likewise.
14754         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14755         (add_call_clobber_ops): Likewise.
14756         (add_call_read_ops): Likewise.
14757         (get_asm_expr_operands): Likewise.
14758         * tree-into-ssa.c (dump_decl_set): Likewise.
14759         (update_ssa): Likewise.
14760         * tree-sra.c (scan_function): Likewise.
14761         (decide_instantiations): Likewise.
14762         (scalarize_parms): Likewise.
14763         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14764         (dsa_named_for): Likewise.
14765         * tree-ssa-structalias.c (update_alias_info): Likewise.
14766         (merge_smts_into): Likewise.
14767
14768 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
14769
14770         PR target/35258
14771         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
14772         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
14773         * alias.h (nonoverlapping_memrefs_p): Likewise.
14774
14775 2008-02-25  Jan Beulich  <jbeulich@novell.com>
14776
14777         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
14778         * config/i386/netware-libgcc.exp: Add __bswap?i2,
14779         __emultls_get_address, __emultls_register_common,
14780         __floatundi?f, and _Unwind_GetIPInfo.
14781         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
14782         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
14783         (gen_regparm_prefix): Likewise.
14784         (i386_nlm_encode_section_info): Sync with
14785         config/i386/winnt.c:i386_pe_encode_section_info().
14786         (i386_nlm_maybe_mangle_decl_assembler_name): New.
14787         i386_nlm_mangle_decl_assembler_name): New.
14788         (netware_override_options): New.
14789         * config/i386/netware.h (netware_override_options): Declare.
14790         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
14791         (i386_nlm_mangle_decl_assembler_name): Declare.
14792         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
14793
14794 2008-02-25  Ben Elliston  <bje@au.ibm.com>
14795
14796         PR other/32948
14797         * c-decl.c (grokdeclarator): Remove unused local variables
14798         `typedef_type' and `type_as_written'.
14799         * bb-reorder.c
14800         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
14801         unused local variable `has_hot_blocks'.
14802         (fix_crossing_conditional_branches): Remove unused local variable
14803         `prev_bb'.
14804
14805 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
14806
14807         PR middle-end/19984
14808         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
14809         using DEF_C99_BUILTIN.
14810         (BUILT_IN_NANF): Ditto.
14811         (BUILT_IN_NANL): Ditto.
14812
14813 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
14814             Revital Eres  <eres@il.ibm.com>
14815
14816         * modulo-sched.c (calculate_must_precede_follow): Address TODO
14817         regarding the order of two dependent insns in the same row.
14818
14819 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
14820
14821         * stor-layout.c (layout_decl): Do not bump the alignment of a
14822         bit-field to more than byte alignment if it is packed.
14823
14824 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
14825
14826         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
14827         e300c2 and e300c3.
14828
14829 2008-02-24  Diego Novillo  <dnovillo@google.com>
14830
14831         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
14832
14833         PR 33738
14834         * tree-vrp.c (vrp_evaluate_conditional): With
14835         -Wtype-limits, emit a warning when comparing against a
14836         constant outside the natural range of OP0's type.
14837         * c.opt (Wtype-limits): Move ...
14838         * common.opt (Wtype-limits): ... here.
14839
14840 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
14841
14842         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
14843         * config/rs6000/e300c2c3.md: New file.
14844         * config/rs6000/rs6000.c (processor_costs): Add new costs for
14845         e300c2 and e300c3.
14846         (rs6000_override_options): Add e300c2 and e300c3 cases to
14847         processor_target_table. Do not allow usage of Altivec or Spe
14848         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
14849         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
14850         * config/rs6000/rs6000.h (processor_type): Add
14851         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
14852         (ASM_CPU_SPEC): Add e300c2 and e300c3.
14853         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
14854         and ppce300c3. Include e300c2c3.md.
14855
14856 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
14857
14858         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
14859         instead of TARGET_STRICT_ALIGN.
14860
14861 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
14862
14863         * explow.c (memory_address): Assert that the generated address is
14864         valid.
14865
14866 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
14867
14868         PR target/25477
14869         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
14870         * config/darwin-ppc-ldouble-patch.def: New file.
14871         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
14872         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
14873         SUBTARGET_INIT_BUILTINS if defined.
14874         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
14875         New functions.
14876
14877 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14878
14879         PR rtl-opt/33512
14880         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
14881         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
14882
14883 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14884
14885         PR pch/35027
14886         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
14887         file" warning condtional on -Winvalid-PCH.
14888
14889 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
14890
14891         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
14892
14893 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
14894
14895         PR target/22076
14896         PR target/34256
14897         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
14898         prevent reload from using MMX registers.
14899         (*mov<mode>_internal): Ditto.
14900         (*movv2sf_internal_rex64): Ditto.
14901         (*movv2sf_internal): Ditto.
14902
14903 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14904
14905         PR documentation/31569
14906         * doc/install.texi2html: Use makeinfo --no-number-sections.
14907
14908 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14909
14910         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
14911         ensure that we can address an entire entity > 8 bytes.  Don't
14912         generate reg+reg addressing for such data.
14913
14914 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14915
14916         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
14917         strings when optimizing for size, unless the target cares about
14918         alignment.
14919
14920 2008-02-22  Tom Tromey  <tromey@redhat.com>
14921
14922         * regclass.c (current_pass): Remove declaration.
14923
14924 2008-02-22  Anatoly Sokolov <aesok@post.ru>
14925
14926         * config/avr/libgcc.S (__RAMPZ__): Define.
14927         (__do_copy_data): Add for devices with 128KB code memory.
14928
14929 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14930
14931         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14932         Use spe_abi.
14933         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
14934
14935 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
14936
14937         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
14938         GENNONACR_REGS.
14939
14940 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14941
14942         PR c/19999
14943         * c-typeck.c (build_binary_op): Warn about floating point
14944         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
14945
14946 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
14947
14948         PR target/34526
14949         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
14950         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
14951         add vrsave.
14952         (rs6000_override_options): Set altivec_abi as default, not override,
14953         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
14954         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
14955         is used; use new member spe_abi.
14956         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
14957         spe_abi and altivec_abi.
14958
14959 2008-02-22  Tomas Bily  <tbily@suse.cz>
14960
14961         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
14962
14963 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14964
14965         PR bootstrap/35273
14966         * config.build (build_file_translate): Set to `CMD //c' only if
14967         it works.
14968         * Makefile.in (build_file_translate): Improve comment.
14969
14970 2008-02-21  Jan Hubicka  <jh@suse.cz>
14971
14972         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14973         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14974         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14975
14976 2008-02-21  Michael Matz  <matz@suse.de>
14977
14978         PR target/35264
14979         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14980
14981 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
14982
14983         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14984         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14985         as insn constraint.
14986         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14987         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14988         SSE_VEC_FLOAT_MODE_P as insn constraint.
14989         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14990         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14991         sse4a_movntdf using MODEF mode iterator.
14992         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14993         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14994         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14995         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14996         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14997         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14998         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14999
15000 2008-02-21  Richard Guenther  <rguenther@suse.de>
15001
15002         * tree.def (PAREN_EXPR): New tree code.
15003         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
15004         and PAREN_EXPR.
15005         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
15006         * expr.c (expand_expr_real_1): Likewise.
15007         * tree-inline.c (estimate_num_insns_1): Likewise.
15008         * tree-complex.c (expand_complex_move): Likewise.
15009         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
15010         as plain x.
15011
15012 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
15013
15014         PR target/35225
15015         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
15016
15017 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
15018
15019         PR target/35190
15020         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
15021
15022         * config/sh/sh.c (find_barrier): Don't go past
15023         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
15024
15025 2008-02-20  DJ Delorie  <dj@redhat.com>
15026
15027         * config/h8300/h8300.md (insv): Force source operand to be a register.
15028
15029         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
15030         as a jump, not as a plain insn.
15031
15032 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
15033
15034         * doc/invoke.texi (Warning Options): Add new option
15035         -Wframe-larger-than=.
15036         (-Wframe-larger-than): Document.
15037
15038         * flags.h (warn_frame_larger_than, frame_larger_than_size):
15039         Add declarations for new option variables.
15040
15041         * final.c (final_start_function): Check the frame size
15042         before emission and issue a Wframe-larger-than warning.
15043
15044         * opts.c (warn_frame_larger_than, frame_larger_than_size):
15045         Add definitions for new option variables.
15046         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
15047
15048         * common.opt (Wframe-larger-than=): New option.
15049
15050 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
15051
15052         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
15053         (<sse>_div<mode>3): Ditto.
15054         (<sse>_vmdiv<mode>3): Ditto.
15055         (<sse>_vmsqrt<mode>2): Ditto.
15056         (*smax<mode>3): Ditto.
15057         (sse5_frcz<mode>2): Ditto.
15058         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
15059         as insn constraint.
15060
15061 2008-02-20  Richard Guenther  <rguenther@suse.de>
15062
15063         PR middle-end/35265
15064         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
15065         be happy with INTEGRAL_TYPE_P.
15066
15067 2008-02-20  Richard Guenther  <rguenther@suse.de>
15068
15069         * fold-const.c (split_tree): Associate floatig-point expressions
15070         if flag_associative_math is set.
15071
15072 2008-02-20  Richard Guenther  <rguenther@suse.de>
15073
15074         * tree.h (fold_real_zero_addition_p): Declare.
15075         * fold-const.c (fold_real_zero_addition_p): Export.
15076         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
15077         floating-point operations with zero and one.
15078
15079 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
15080
15081         * doc/install.texi: Correct references to CFLAGS, replacing them
15082         with BOOT_CFLAGS.  Document flags used during bootstrap for
15083         target libraries.
15084
15085 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
15086
15087         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
15088         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
15089         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
15090         insn constraint.
15091         (smin<mode>3): Ditto from similar patterns.
15092         (smax<mode>3): Ditto.
15093         (*ieee_smin<mode>3): Ditto.
15094         (*ieee_smax<mode>3): Ditto.
15095         * config/i386/sse.md (sse): New mode attribute.
15096         (mov<mode>): Macroize expander from movv4sf and movv2df using
15097         SSEMODEF2P mode iterator.
15098         (<sse>_movnt<mode>): Ditto from similar patterns. Use
15099         SSE_VEC_FLOAT_MODE_P as insn constraint.
15100         (storent<mode>): Ditto.
15101         (storent<mode>): Macroize expander from storentsf and storentdf using
15102         MODEF mode iterator.
15103         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
15104         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
15105         (abs<mode>2): Ditto from similar patterns.
15106         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
15107         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
15108         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
15109         (<sse>_vmsqrt<mode>2): Ditto.
15110         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
15111         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
15112         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
15113         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
15114         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
15115         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
15116         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
15117         insn constraint.
15118         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
15119         iterator and SSE_FLOAT_MODE_P as insn constraint.
15120         (<sse>_ucomi): Ditto from similar patterns.
15121         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
15122         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
15123         SSE_VEC_FLOAT_MODE_P as insn constraint.
15124         (vcond<mode>): Ditto from similar patterns.
15125         (and<mode>3, *and<mode>3): Ditto.
15126         (<sse>_nand<mode>3): Ditto.
15127         (ior<mode>3, *ior<mode>3): Ditto.
15128         (xor<mode>3, *xor<mode>3): Ditto.
15129         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
15130         iterator and SSE_FLOAT_MODE_P as insn constraint.
15131         (*nand<mode>3): Ditto from similar patterns.
15132         (*ior<mode>3): Ditto.
15133         (*xor<mode>3): Ditto.
15134
15135 2008-02-20  Ira Rosen  <irar@il.ibm.com>
15136
15137         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
15138         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
15139         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
15140
15141 2008-02-19  Jan Hubicka  <jh@suse.cz>
15142
15143         * predict.c (tree_bb_level_predictions): Remove variable next
15144         mistakely introduced by previous commit.
15145
15146 2008-02-19  Jan Hubicka  <jh@suse.cz>
15147
15148         * predict.c (predict_paths_leading_to): Rewrite.
15149         (predict_paths_for_bb): New.
15150         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
15151
15152 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15153
15154         PR bootstrap/35218
15155         * Makefile.in (build_file_translate): New.
15156         (gcc-vers.texi): Use it for translating $(abs_srcdir).
15157         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
15158         * configure.ac (build_file_translate): Substitute it.
15159         * configure: Regenerate.
15160
15161 2008-02-19  Jan Hubicka  <jh@suse.cz>
15162
15163         PR rtl-optimization/34408
15164         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
15165         invalid sharing.
15166
15167 2008-02-19  Jan Hubicka  <jh@suse.cz>
15168
15169         PR middle-end/28779
15170         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
15171         call_expr.
15172
15173 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
15174
15175         PR Ada/35186
15176         * config/i386/i386-modes.def: Revert the last DI alignment
15177         change until Ada people can look into it.
15178
15179 2008-02-19  Nick Clifton  <nickc@redhat.com>
15180
15181         * opts.c (print_specific_help): Fix typo in --help text.
15182
15183 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
15184
15185         PR target/35239
15186         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
15187         32-bit inline asm without asm alternatives for host GCC < 3.0.
15188
15189 2008-02-19  Richard Guenther  <rguenther@suse.de>
15190
15191         PR tree-optimization/34989
15192         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
15193         Allow propagation to INDIRECT_REF if we can simplify only.
15194
15195 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15196
15197         * c-common.c (warn_for_collisions_1): Use appropriate option when
15198         warning.
15199
15200 2008-02-19  Nick Clifton  <nickc@redhat.com>
15201
15202         PR other/31349
15203         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
15204         (handle_options): Fix indentation.
15205         (print_filtered_help): If no language-specific options were
15206         displayed tell the user how to list all the options supported by
15207         the language's front-end.
15208         (print_specific_help): Fix indentation and remove duplicate line.
15209         (common_handle_option): Handle the -v option.
15210         For --help enable the display of undocumented options if the -v
15211         switch has been included on the command line.
15212         For --help= check for overlaps in the arguments between the option
15213         classes and the language names and issue a warning when they
15214         cannot be disambiguated.
15215         * c.opt (v): Pass on to the common option handler.
15216
15217 2008-02-19  Revital Eres  <eres@il.ibm.com>
15218
15219         * modulo-sched.c (sms_schedule): Change dump message when
15220         create_ddg function fails.
15221         (try_scheduling_node_in_cycle): Rename row to cycle.
15222         (print_partial_schedule): Rename CYCLE to ROW.
15223
15224 2008-02-19  Christian Bruel  <christian.bruel@st.com>
15225             Zdenek Dvorak  <ook@ucw.cz>
15226
15227         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
15228
15229 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
15230
15231         PR target/33555
15232         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
15233         (*x86_movdicc_0_m1_se): Ditto.
15234
15235 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
15236
15237         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
15238         (CMPtype): Define as __gcc_CMPtype.
15239         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
15240         (CMPtype): Define as __gcc_CMPtype.
15241
15242 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
15243
15244         Support valgrind 3.3 for --enable-checking=valgrind.
15245         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
15246         here.
15247         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
15248         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
15249         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
15250         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
15251         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
15252         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
15253         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
15254         respectively.
15255         * ggc-zone.c: Similar.
15256         * ggc-page.c: Similar.
15257
15258 2008-02-19  Paul Brook  <paul@codesourcery.com>
15259
15260         PR target/35071
15261         * config/arm/ieee754-df.S: Fix do_it typo.
15262         * config/arm/ieee754-sf.S: Fix do_it typo.
15263
15264 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
15265
15266         PR target/35189
15267         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
15268         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
15269         (OPTION_MASK_ISA_SSE_SET): Likewise.
15270         (OPTION_MASK_ISA_SSE2_SET): Likewise.
15271         (OPTION_MASK_ISA_SSE3_SET): Likewise.
15272         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
15273         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
15274         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
15275         (OPTION_MASK_ISA_SSE4_SET): Likewise.
15276         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
15277         (OPTION_MASK_ISA_SSE5_SET): Likewise.
15278         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
15279         (OPTION_MASK_ISA_MMX_UNSET): Updated.
15280         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
15281         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
15282         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
15283         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
15284         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
15285         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
15286         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
15287         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
15288         (OPTION_MASK_ISA_SSE4): Removed.
15289         (ix86_handle_option): Turn on bits in ix86_isa_flags and
15290         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
15291         (override_options): Don't turn on implied SSE/MMX bits in
15292         ix86_isa_flags.
15293
15294 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
15295
15296         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
15297         32bit host.
15298
15299 2008-02-18  Joey Ye  <joey.ye@intel.com>
15300
15301         PR middle-end/34921
15302         * tree-nested.c (insert_field_into_struct): Set type alignment
15303         to field alignment if the former is less than the latter.
15304
15305 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
15306
15307         * BASE-VER: Set to 4.4.0.
15308
15309 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15310
15311         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
15312         * doc/cfg.texi: Likewise.
15313         * doc/extend.texi: Likewise.
15314         * doc/gty.texi: Likewise.
15315         * doc/invoke.texi: Likewise.
15316         * doc/loop.texi: Likewise.
15317         * doc/md.texi: Likewise.
15318         * doc/passes.texi: Likewise.
15319         * doc/rtl.texi: Likewise.
15320         * doc/sourcebuild.texi: Likewise.
15321         * doc/tm.texi: Likewise.
15322         * doc/tree-ssa.texi: Likewise.
15323
15324 2008-02-17  Richard Guenther  <rguenther@suse.de>
15325
15326         PR middle-end/35227
15327         * tree-complex.c (init_parameter_lattice_values): Handle parameters
15328         without default definition.
15329
15330 2008-02-17  Richard Guenther  <rguenther@suse.de>
15331
15332         PR tree-optimization/35231
15333         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
15334         if A | B != 1.
15335
15336 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
15337
15338         Revert:
15339         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15340         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15341         libgcc_cmp_return mode.
15342
15343 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15344
15345         PR c/28368
15346         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
15347
15348 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
15349
15350         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
15351         multilibs.
15352
15353 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15354
15355         * doc/c-tree.texi: Use `@.' where appropriate.
15356         * doc/extend.texi: Likewise.
15357         * doc/install.texi: Likewise.
15358         * doc/invoke.texi: Likewise.
15359         * doc/loop.texi: Likewise.
15360         * doc/makefile.texi: Likewise.
15361         * doc/md.texi: Likewise.
15362         * doc/passes.texi: Likewise.
15363         * doc/standards.texi: Likewise.
15364         * doc/tm.texi: Likewise.
15365
15366 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
15367
15368         PR middle-end/35196
15369         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
15370         in entry_bb.
15371         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
15372         rather than in entry_bb.
15373
15374 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15375
15376         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15377         libgcc_cmp_return mode.
15378
15379 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
15380
15381         PR middle-end/35130
15382         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
15383         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
15384
15385 2008-02-15  Richard Guenther  <rguenther@suse.de>
15386             Zdenek Dvorak  <ook@ucw.cz>
15387
15388         PR tree-optimization/35164
15389         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
15390         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
15391         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
15392         Only propagate addresses which do not have abnormal SSA_NAMEs
15393         in their operands.
15394
15395 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
15396
15397         PR target/35088
15398         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
15399
15400 2008-02-15  Jan Hubicka  <jh@suse.cz>
15401
15402         PR middle-end/35149
15403         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
15404
15405 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15406
15407         PR middle-end/34621
15408         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
15409         when calculating alignment_pad.
15410
15411 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15412
15413         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
15414         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
15415         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
15416         and STACK_BOUNDARY define.
15417
15418 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
15419
15420         PR preprocessor/35061
15421         * c-pragma.c (handle_pragma_pop_macro): Check that
15422         pushed_macro_table has been allocated.
15423
15424 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
15425
15426         PR middle-end/35136
15427         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
15428         (force_gimple_operand): Likewise.
15429         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
15430         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
15431         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
15432         (find_interesting_uses_address): Check addressability and alignment
15433         of the base expression only after substituting bases of IVs into it.
15434
15435 2008-02-14  Michael Matz  <matz@suse.de>
15436
15437         PR target/34930
15438         * function.c (instantiate_virtual_regs_in_insn): Reload address
15439         before falling back to reloading the whole operand.
15440
15441 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
15442
15443         * config/s390/s390.c (s390_mainpool_start): Emit the pool
15444         before the first section switch note.
15445
15446 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15447
15448         * doc/bugreport.texi: Update copyright years.
15449         * doc/c-tree.texi: Likewise.
15450         * doc/cfg.texi: Likewise.
15451         * doc/cpp.texi: Likewise.
15452         * doc/cppinternals.texi: Likewise.
15453         * doc/fragments.texi: Likewise.
15454         * doc/frontends.texi: Likewise.
15455         * doc/gcc.texi: Likewise.
15456         * doc/gty.texi: Likewise.
15457         * doc/hostconfig.texi: Likewise.
15458         * doc/implement-c.texi: Likewise.
15459         * doc/libgcc.texi: Likewise.
15460         * doc/loop.texi: Likewise.
15461         * doc/makefile.texi: Likewise.
15462         * doc/options.texi: Likewise.
15463         * doc/passes.texi: Likewise.
15464         * doc/rtl.texi: Likewise.
15465         * doc/sourcebuild.texi: Likewise.
15466         * doc/standards.texi: Likewise.
15467         * doc/tree-ssa.texi: Likewise.
15468         * doc/trouble.texi: Likewise.
15469
15470         * doc/extend.texi: Use @: or add comma where appropriate.
15471         * doc/invoke.texi: Likewise.
15472         * doc/tm.texi: Likewise.
15473
15474 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
15475
15476         PR target/34393
15477         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
15478         to a reg.
15479
15480 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
15481
15482         * doc/md.texi (clz, ctz): Add reference.
15483         * doc/rtl.texi (clz, ctz): Likewise.
15484
15485 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15486
15487         PR other/35148
15488         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
15489         srcdir.
15490
15491 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
15492
15493         * config/s390/s390.c (struct constant_pool): New field
15494         emit_pool_after added.
15495         (s390_mainpool_start): Set the emit_pool_after flag according
15496         to the section switch notes.
15497         (s390_mainpool_finish): Consider emit_pool_after when emitting
15498         the literal pool at the end of the function.
15499         (s390_chunkify_start): Force literal pool splits at section
15500         switch notes.
15501
15502 2008-02-13  Michael Matz  <matz@suse.de>
15503
15504         PR debug/35065
15505         * var-tracking.c (clobber_variable_part): Correctly traverse the
15506         list.
15507
15508 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15509
15510         PR 29673
15511         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
15512         Add -fdump-ipa-inline.
15513         * tree-dump.c (dump_files): Remove tree-inlined dump.
15514         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
15515
15516 2008-02-12  Richard Guenther  <rguenther@suse.de>
15517
15518         PR tree-optimization/35171
15519         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
15520         default defs.
15521
15522 2008-02-12  Richard Guenther  <rguenther@suse.de>
15523
15524         PR middle-end/35163
15525         * fold-const.c (fold_widened_comparison): Use get_unwidened in
15526         value-preserving mode.  Disallow final truncation.
15527
15528 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
15529
15530         PR middle-end/35136
15531         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
15532         code from here to...
15533         (force_gimple_operand): ...here.
15534
15535 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
15536
15537         PR c++/35144
15538         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
15539         non-compatible pointers.
15540         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
15541         different FIELD_DECLs, try harder by comparing field offsets, sizes
15542         and types.
15543
15544         PR inline-asm/35160
15545         * function.c (match_asm_constraints_1): Don't replace the same input
15546         multiple times.
15547
15548 2008-02-12  Anatoly Sokolov <aesok@post.ru>
15549
15550         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
15551         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
15552         (expand_epilogue): Restore RAMPZ register.
15553         * config/avr/avr.md (RAMPZ_ADDR): New constant.
15554
15555 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
15556
15557         * config/i386/cygwin.asm: (__alloca): Correct calling
15558         convention and alignment.
15559         (__chkstk): Force 8 byte stack alignment.
15560
15561 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
15562             Richard Guenther  <rguenther@suse.de>
15563
15564         PR tree-optimization/33992
15565         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
15566         the zero we compare against.
15567
15568 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
15569
15570         PR libfortran/35063
15571         * gthr-win32.h (__gthread_mutex_destroy_function): New function
15572         to CloseHandle after unlocking to prevent accumulation of handle
15573         count.
15574
15575 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15576
15577         PR middle_end/34150
15578         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
15579         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
15580         and update LABEL_NUSES during and after reload.
15581
15582 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
15583
15584         PR middle-end/34627
15585         * combine.c (simplify_if_then_else): Make sure the comparison is
15586         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
15587
15588 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
15589
15590         PR bootstrap/35051
15591         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
15592         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
15593         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
15594         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
15595         * tree.h (get_type_static_bounds): Likewise.
15596
15597 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15598
15599         * doc/invoke.texi (Option Summary, C++ Dialect Options)
15600         (Objective-C and Objective-C++ Dialect Options, Warning Options):
15601         Make -Wfoo language annotations match what the compiler outputs.
15602
15603 2008-02-08  Sa Liu  <saliu@de.ibm.com>
15604
15605         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
15606         intrinsics spu_convts, spu_convtu, spu_convtf.
15607
15608 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
15609
15610         * doc/extend.texi (Function Attributes) <noinline>: Mention
15611         asm ("") as method to keep calls.
15612
15613 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15614
15615         PR other/32754
15616         * doc/options.texi (Options): Replace references to opts.sh with
15617         optc-gen.awk.
15618         * opts-common.c: Likewise.
15619         * optc-gen.awk: Likewise.
15620
15621 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
15622
15623         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
15624
15625 2008-02-07  Richard Henderson  <rth@redhat.com>
15626
15627         PR rtl-opt/33410
15628         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
15629         EXPR_LIST for the REG_EQUAL instead of a comparison with a
15630         funny mode.
15631
15632 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
15633
15634         PR tree-optimization/35085
15635         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
15636         for operand entry oe2 in addition to operand entry oe3 in order to
15637         expose more opportunities for vectorizer sum reduction.
15638
15639 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15640
15641         PR other/35107
15642         * Makefile.in (LIBS): Remove $(GMPLIBS).
15643         (cc1-dummy, cc1): Add $(GMPLIBS).
15644
15645 2008-02-06  Jan Hubicka  <jh@suse.cz>
15646
15647         PR target/23322
15648         * i386.md (moddf_integer): Do not produce partial memory stalls for
15649         targets where it hurts.
15650
15651 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
15652
15653         PR target/35083
15654         * optabs.c (expand_float): Do not check for decimal modes when
15655         expanding unsigned integer through signed conversion.
15656
15657 2008-02-06  Nick Clifton  <nickc@redhat.com>
15658
15659         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
15660         inside the clobber with a match_operand and duplicated operand
15661         number in the constraint.
15662         (ineqbranchsi): Delete redundant comment.
15663
15664 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
15665
15666         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
15667         builtin_define ("__USE_INIT_FINI__").
15668         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
15669         -msx multilibs.
15670         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
15671
15672 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15673
15674         PR documentation/30330
15675         * doc/invoke.texi (C++ Dialect Options)
15676         (Objective-C and Objective-C++ Dialect Options, Warning Options):
15677         For each warning option -Wfoo that allows -Wno-foo, ensure both
15678         -Wfoo and -Wno-foo are listed in the option index.  Fix index
15679         entry of -Wswitch-default, index -Wnormalized= including the
15680         `=', and -Wlarger-than-@var{len} including @var{len}.
15681
15682 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
15683
15684         * config/i386/i386.md (floatunssisf2): Use
15685         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
15686         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
15687         Macroize expander using MODEF mode iterator.
15688
15689 2008-02-05  Diego Novillo  <dnovillo@google.com>
15690
15691         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
15692
15693         PR 33738
15694         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
15695
15696 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15697
15698         PR other/35070
15699         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
15700
15701 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
15702
15703         PR target/35084
15704         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
15705         to indicate if a message should be generated.
15706         (init_cumulative_args): Updated.
15707         (function_value_32): Likewise.
15708
15709 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
15710
15711         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
15712
15713 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
15714
15715         PR target/35083
15716         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
15717         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
15718
15719 2008-02-04  Diego Novillo  <dnovillo@google.com>
15720
15721         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
15722
15723         PR 33738
15724         * tree-vrp.c (vrp_evaluate_conditional): With
15725         -Wtype-limits, emit a warning when comparing against a
15726         constant outside the natural range of OP0's type.
15727
15728 2008-02-04  Richard Guenther  <rguenther@suse.de>
15729
15730         PR middle-end/33631
15731         * expr.c (count_type_elements): Give for unions instead of
15732         guessing.
15733
15734 2008-02-04  Richard Guenther  <rguenther@suse.de>
15735
15736         PR middle-end/35043
15737         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
15738         to TYPE_DOMAINs base type instead of using bitsizetype here.
15739
15740 2008-02-03  Jason Merrill  <jason@redhat.com>
15741
15742         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
15743
15744 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15745
15746         PR other/29972
15747         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
15748         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
15749         (RS/6000 and PowerPC Options): Fix typos and markup.
15750         * doc/passes.texi (Tree-SSA passes): Likewise.
15751
15752 2008-02-02  Michael Matz  <matz@suse.de>
15753
15754         PR target/35045
15755         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
15756         from record_last_reg_set_info.
15757         (record_last_reg_set_info): Take an RTX argument, iterate over all
15758         constituent hardregs.
15759         (record_last_set_info, record_opr_changes): Change calls to
15760         new signature or to record_last_reg_set_info_regno.
15761
15762 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
15763
15764         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
15765
15766 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
15767
15768         PR rtl-optimization/34773
15769         * reg-notes.def (EQUAL): Mention significance of combination of
15770         REG_EQUAL and REG_RETVAL.
15771         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
15772         insn that has a REG_RETVAL.
15773
15774 2008-02-01  Roger Sayle  <roger@eyesopen.com>
15775
15776         PR bootstrap/33781
15777         * configure.ac (--enable-fixed-point): Disable unless explicitly
15778         requested on IRIX.
15779         * configure: Regenerate.
15780
15781 2008-02-01  Richard Guenther  <rguenther@suse.de>
15782
15783         PR other/35042
15784         * invoke.texi (-finline-limit): Remove no longer true parts
15785         of the documentation.  Note that there is no default value.
15786
15787 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
15788             Mark Mitchell  <mark@codesourcery.com>
15789             Ben Elliston  <bje@au.ibm.com>
15790
15791         PR c/29326
15792         * doc/extend.texi (Other Builtins): Document.
15793
15794 2008-01-31  Tom Browder <tom.browder@gmail.com>
15795
15796         * doc/c-tree.texi (Types): Fix grammar.
15797         (Expression trees): Ditto.
15798         * doc/passes.texi (Tree-SSA passes): Ditto.
15799
15800         * doc/configterms.texi (Configure Terms): Fix typo.
15801         * doc/cpp.texi (Common Predefined Macros): Ditto.
15802         * doc/md.texi (Machine Constraints): Ditto.
15803
15804         * doc/makefile.texi (Makefile): Add comma.
15805
15806 2008-01-31  Tom Browder  <tom.browder@gmail.com>
15807             Gerald Pfeifer  <gerald@pfeifer.com>
15808
15809         * doc/sourcebuild.texi (Front End): Remove references to CVS
15810         and CVSROOT/modules.
15811         (Texinfo Manuals): Replace reference to CVS by one to SVN.
15812         (Back End): Remove reference to CVS.
15813
15814 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15815
15816         PR target/34900
15817         * config/mips/mips.c (gen_load_const_gp): New function, taking a
15818         comment from...
15819         (mips16_gp_pseudo_reg): ...here.
15820         * config/mips/mips.md (load_const_gp): Replace with...
15821         (load_const_gp_<mode>): ...this :P-based insn.
15822
15823 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15824
15825         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
15826         options. Minor fixes.
15827         (-std): Move reference to standards closer to where language
15828         standards are first mentioned.
15829
15830 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15831
15832         PR rtl-optimization/34995
15833         * reload.c (alternative_allows_const_pool_ref): Take an rtx
15834         parameter and return a bool.  If the rtx parameter is nonnull,
15835         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
15836         (find_reloads): Update call accordingly.  Pass the new operand
15837         if it needed no address reloads, otherwise pass null.
15838
15839 2008-01-30  Richard Henderson  <rth@redhat.com>
15840
15841         PR c/34993
15842         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
15843         for unbounded arrays.
15844
15845 2008-01-30  Silvius Rus  <rus@google.com>
15846
15847         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
15848
15849 2008-01-30  Jan Hubicka  <jh@suse.cz>
15850
15851         PR target/34982
15852         * i386.c (init_cumulative_args): Use real function declaration when
15853         calling locally.
15854
15855 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
15856
15857         PR rtl-optimization/34998
15858         * global.c (build_insn_chain): Treat non-subreg_lowpart
15859         SUBREGs of pseudos as clobbering all the words covered by the
15860         SUBREG, not just all the bytes.
15861         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
15862         original df_ref rather than an extract parameter.
15863         (global_conflicts): Update call accordingly.
15864
15865 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
15866
15867         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
15868         the overflow check to make it easier to read.
15869         (__fixtfdi): Change the type of the ll member in union
15870         long_double to UDItype_x.
15871
15872 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
15873
15874         PR middle-end/34969
15875         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
15876         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
15877         * tree-inline.c (fold_marked_statements): Call
15878         cgraph_update_edges_for_call_stmt if folding a call statement.
15879         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
15880         debug_generic_stmt calls, reset it back afterwards.
15881
15882         PR c/35017
15883         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
15884         static decls.
15885         * c-typeck.c (build_external_ref): Don't pedwarn about
15886         static vars in current function's scope.
15887
15888 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
15889
15890         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
15891
15892 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
15893
15894         PR c/35002
15895         * ipa-struct-reorg.c: Fix spelling.
15896         * params.def: Ditto.
15897
15898 2008-01-29  Richard Guenther  <rguenther@suse.de>
15899
15900         PR middle-end/35006
15901         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
15902         field.
15903         * tree-inline.c (remap_type): Increment remapping_type_depth
15904         around remapping types.
15905         (copy_body_r): Only add referenced variables if they are referenced
15906         from code, not types.
15907
15908 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
15909
15910         PR c++/34055
15911         PR c++/34103
15912         PR c++/34219
15913         PR c++/34606
15914         PR c++/34753
15915         PR c++/34754
15916         PR c++/34755
15917         PR c++/34919
15918         PR c++/34961
15919         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
15920         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
15921
15922 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
15923
15924         PR target/34412
15925         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
15926         pointer for tiny stack.
15927
15928 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15929
15930         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
15931
15932 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15933
15934         * config/vx-common.h: Fix typo in comment.
15935
15936 2008-01-28  Ian Lance Taylor  <iant@google.com>
15937
15938         PR c++/34862
15939         PR c++/33407
15940         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15941         coalesce pointers if they have different DECL_NO_TBAA_P values.
15942         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
15943         between variables with different DECL_NO_TBAA_P values.
15944
15945 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
15946
15947         PR 31535
15948         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
15949         are not legitimate small data references on SPE targets.
15950
15951 2008-01-28  David Daney  <ddaney@avtrex.com>
15952
15953         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
15954
15955 2008-01-28  David Daney  <ddaney@avtrex.com>
15956
15957         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
15958
15959 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
15960
15961         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
15962         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
15963         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
15964         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
15965         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15966         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
15967         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
15968         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
15969
15970 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15971
15972         * basic-block.h (condjump_equiv_p): Fix comment.
15973
15974 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15975
15976         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15977         print_generic_stmt_indented): Fix comment.
15978
15979 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15980
15981         * configure.ac (__stack_chk_fail): Add detecion for availability
15982         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15983         * configure: Regenerate.
15984
15985 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
15986
15987         PR middle-end/34688
15988         * final.c (output_addr_const): Handle TRUNCATE.
15989
15990 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
15991
15992         PR target/34711
15993         * tree-ssa-loop-ivopts.c (comp_cost): New type.
15994         (zero_cost, infinite_cost): New constants.
15995         (struct cost_pair): Change type of cost to comp_cost.
15996         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15997         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15998         New functions.
15999         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
16000         split_address_cost, ptr_difference_cost, difference_cost,
16001         get_computation_cost_at, get_computation_cost,
16002         determine_use_iv_cost_generic, determine_use_iv_cost_address,
16003         determine_use_iv_cost_condition, determine_use_iv_costs,
16004         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
16005         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
16006         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
16007         Change type of cost to comp_cost.
16008         (determine_iv_cost): Increase cost of non-original ivs, instead
16009         of decreasing the cost of original ones.
16010         (get_address_cost): Indicate the complexity of the addressing mode
16011         in comp_cost.
16012         (try_add_cand_for): Prefer using ivs not specific to some object.
16013         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
16014
16015 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
16016             Janis Johnson  <janis187@us.ibm.com>
16017
16018         PR target/34814
16019         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
16020         (TARGET_INSTANTIATE_DECLS): Likewise.
16021         * target.h (expand_to_rtl_hook): New target hook.
16022         (instantiate_decls): Likewise.
16023         * function.c (instantiate_decl): Make non-static.  Rename to...
16024         (instantiate_decl_rtl): ... this.
16025         (instantiate_expr): Use instantiate_decl_rtl.
16026         (instantiate_decls_1): Likewise.
16027         (instantiate_decls): Likewise.
16028         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
16029         * function.h (instantiate_decl_rtl): Add prototype.
16030         * cfgexpand.c (target.h): New include.
16031         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
16032         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
16033         (TARGET_INSTANTIATE_DECLS): Likewise.
16034         (TARGET_INITIALIZER): New target hooks added.
16035         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
16036         New prototype.
16037         * config/rs6000/rs6000.c (tree-flow.h): New include.
16038         (machine_function): Add sdmode_stack_slot field.
16039         (rs6000_alloc_sdmode_stack_slot): New function.
16040         (rs6000_instantiate_decls): Likewise.
16041         (rs6000_secondary_memory_needed_rtx): Likewise.
16042         (rs6000_check_sdmode): Likewise.
16043         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
16044         (TARGET_INSTANTIATE_DECLS): Likewise.
16045         (rs6000_hard_regno_mode_ok): Allow SDmode.
16046         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
16047         (rs6000_emit_move): Handle SDmode.
16048         (function_arg_advance): Likewise.
16049         (function_arg): Likewise.
16050         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
16051         SDmode var args for 32-bit compiles.
16052         (rs6000_secondary_reload_class): Handle SDmode.
16053         (rs6000_output_function_epilogue): Likewise.
16054         (rs6000_function_value): Simplify if statement.
16055         (rs6000_libcall_value): Likewise.
16056         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
16057         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
16058         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
16059         (movsd_hardfloat): New define_insn.
16060         (movsd_softfloat): Likewise.
16061         (movsd_store): Likewise.
16062         (movsd_load): Likewise.
16063         (extendsddd2): Likewise.
16064         (extendsdtd2): Likewise.
16065         (truncddsd2): Likewise.
16066         (movdd_hardfloat64): Fixup comment.
16067         (UNSPEC_MOVSD_LOAD): New constant.
16068         (UNSPEC_MOVSD_STORE): Likewise.
16069
16070 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
16071
16072         PR c++/34965
16073         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
16074         TRUTH_XOR_EXPR.
16075         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
16076         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
16077         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
16078         and TRUTH_XOR_EXPR.
16079
16080 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
16081
16082         PR target/34794
16083         * config.gcc: Separate AIX 5.3 from AIX 6.1.
16084         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16085         __LONGDOUBLE128 too.
16086         * config/rs6000/aix61.h: New file.
16087
16088 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
16089
16090         PR rtl-optimization/34959
16091         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
16092         popcount and parity rtxes the same mode as their operand.
16093         Truncate or extend the result to the return value's mode
16094         if necessary.
16095
16096 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
16097
16098         PR target/34981
16099         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
16100         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
16101         to GOT_VERSION_REGNUM.
16102         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
16103         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
16104         * config/mips/mips.c (mips_emit_call_insn): New function.
16105         (mips_call_tls_get_addr): Call mips_expand_call directly.
16106         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
16107         emit_call_insn.
16108         (mips16_build_call_stub): Likewise.  Return the call insn or null.
16109         (mips_expand_call): Update the call to mips16_build_call_stub
16110         accordingly and a remove redundant condition.  Assert that MIPS16
16111         stubs do not use lazy binding.  Use mips_emit_call_insn and return
16112         the call insn.
16113         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
16114         TARGET_USE_GOT.
16115         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
16116         (mips_avoid_hazard): Remove hazard_set handling.
16117         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
16118         (UNSPEC_RESTORE_GP): ...this.
16119         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
16120         (FAKE_CALL_REGNO): Rename to...
16121         (GOT_VERSION_REGNUM): ...this.
16122         (type): Add "ghost" value.  Add an associated insn reservation.
16123         (hazard_set): Remove.
16124         (exception_receiver): Rename to...
16125         (restore_gp): ...this and update the unspec identifier accordingly.
16126         (exception_receiver, nonlocal_got_receiver): New expanders.
16127         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
16128         FAKE_CALL_REGNO.  Remove hazard_set attribute.
16129         (set_got_version, update_got_version): New patterns.
16130
16131 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
16132
16133         PR target/34970
16134         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
16135
16136 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
16137
16138         PR other/31955
16139         * doc/install.texi2html: Generate gcc-vers.texi.
16140
16141 2008-01-25  DJ Delorie  <dj@redhat.com>
16142
16143         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
16144
16145 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
16146
16147         * config/c4x: Remove directory.
16148         * config.gcc (crx-*, mt-*): Mark obsolete.
16149         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
16150         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
16151         sh-*-rtemscoff*): Remove cases.
16152         * defaults.h (C4X_FLOAT_FORMAT): Remove.
16153         * real.c (encode_c4x_single, decode_c4x_single,
16154         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
16155         c4x_extended_format): Remove.
16156         * real.h (c4x_single_format, c4x_extended_format): Remove.
16157         * doc/extend.texi (interrupt, naked): Remove mention of attributes
16158         on C4x.
16159         (Pragmas): Remove comment about c4x pragmas.
16160         * doc/install.texi (c4x): Remove target-specific instructions.
16161         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
16162         * doc/md.texi (Machine Constraints): Remove C4x documentation.
16163         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
16164         refer to C4x source files as examples.
16165         (C4X_FLOAT_FORMAT): Remove documentation.
16166
16167 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
16168
16169         * config/bfin/bfin.c (override_options): Reorder tests so that
16170         flag_pic gets enabled for -msep-data.
16171
16172 2008-01-25  Richard Guenther  <rguenther@suse.de>
16173
16174         PR middle-end/32244
16175         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
16176         to its bitfield precision if required.
16177
16178 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
16179
16180         PR middle-end/33880
16181         * tree-nested.c (walk_omp_for): New function.
16182         (convert_nonlocal_reference, convert_local_reference): Call
16183         walk_omp_for on OMP_FOR.
16184         (convert_call_expr): Call walk_body on OMP_FOR's
16185         OMP_FOR_PRE_INIT_BODY.
16186
16187 2008-01-25  Richard Guenther  <rguenther@suse.de>
16188
16189         PR tree-optimization/34966
16190         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
16191         default defs and PHI_NODEs we have to insert after the
16192         defining statement.
16193
16194 2008-01-24  Nick Clifton  <nickc@redhat.com>
16195
16196         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
16197         Provide a default definition.
16198         (LIBGCC2_UNITS_PER_WORD): Likewise.
16199
16200         * config/stormy16/stormy16.c: Include df.h for the prototype
16201         for df_regs_ever_live_p.
16202         (xstormy16_expand_builtin_va_start): Convert the stack offset
16203         into a component_ref and then use POINTER_PLUS_EXPR to add it
16204         to the incoming_virtual_args_rtx.
16205         (xstormy16_gimplify_va_arg_expr): Rename to
16206         xstormy16_gimplify_va_arg_expr.
16207         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
16208         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
16209         xstormy16_gimplify_va_arg_expr.
16210         Fix up some formatting issues.
16211
16212         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
16213         Move to predicates.md.
16214         (xs_hi_general_operand): Likewise.
16215         (xs_hi_nonmemory_operand): Likewise.
16216         * config/stormy16/predicates.md:
16217         (xstormy16_carry_plus_operand): New predicate.
16218         (xs_hi_general_operand): New predicate.
16219         (xs_hi_nonmemory_operand): New predicate.
16220         * config/stormy16/stormy16-protos.h:
16221         (xstormy16_carry_plus_operand): Delete prototype.
16222         (xs_hi_general_operand): Likewise.
16223         (xs_hi_nonmemory_operand): Likewise.
16224
16225         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
16226         modifiers as they are no longer needed and they can trigger
16227         reload spill failures.
16228
16229         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
16230         with a match_operand in order to help reload.
16231
16232         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
16233         constraint with 'e' for the 8th alternative as this version of
16234         the mov.w instruction only accepts the lower 8 registers.
16235
16236 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
16237
16238         PR target/34856
16239         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
16240         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
16241         vector elements.
16242
16243 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
16244
16245         PR middle-end/33333
16246         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
16247
16248 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
16249
16250         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
16251         New functions.
16252         (remove_structure): Update allocations list before removing structure.
16253
16254 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
16255
16256         * ipa-struct-reorg.c (is_safe_cond_expr,
16257         create_new_stmts_for_cond_expr): Use integer_zerop function,
16258         that recognize not only zero-pointer, but zero-integer too.
16259
16260 2008-01-25  Ben Elliston  <bje@au.ibm.com>
16261
16262         PR other/22232
16263         * fixproto: Escape "." in sed expression that strips leading "./".
16264
16265 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
16266
16267         PR driver/34904
16268         * gcc.c (SWITCH_OK): Removed.
16269         (SWITCH_LIVE): Changed to bit.
16270         (SWITCH_FALSE): Likewise.
16271         (SWITCH_IGNORE): Likewise.
16272         (switchstr): Change live_cond to unsigned int.
16273         (process_command): Replace SWITCH_OK with 0.
16274         (do_self_spec): Likewise.
16275         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
16276         (give_switch): Likewise.
16277         (used_arg): Likewise.
16278         (do_spec_1): Set the SWITCH_IGNORE bit.
16279         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
16280         bits.  Set the SWITCH_LIVE bit.
16281
16282 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
16283
16284         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
16285
16286 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
16287
16288         PR tree-optimization/34472
16289         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
16290         parameter to a "bool *" and set *DATA to false if there is
16291         an unsafe access.  Do not delete the structure here.
16292         (check_cond_exprs): Delete it here instead.
16293         (check_cond_exprs, exclude_cold_structs): Do not increase
16294         I when removing a structure.
16295
16296 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
16297
16298         PR target/34856
16299         * config/i386/i386.c (ix86_expand_vector_init): Consider only
16300         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
16301
16302 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
16303
16304         PR middle-end/34934
16305         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
16306         a fixed vector for stack.
16307
16308 2008-01-24  Ben Elliston  <bje@au.ibm.com>
16309
16310         PR c++/25701
16311         * doc/gcc.texi (Software development): Add a direntry for g++.
16312
16313 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
16314
16315         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
16316         stale and straggling -fforce-addr comments above.
16317
16318         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
16319         define.
16320         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
16321         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
16322
16323 2008-01-23  Michael Matz  <matz@suse.de>
16324
16325         PR debug/34895
16326         * dwarf2out.c (force_type_die): Use modified_type_die instead of
16327         gen_type_die.
16328
16329 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
16330
16331         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
16332         malloc result type.
16333
16334 2008-01-23 Anatoly Sokolov <aesok@post.ru>
16335
16336         * config/avr/avr.c (avr_current_arch): New variable.
16337         (avr_arch_types): Add 'avr31' and 'avr51' entries.
16338         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
16339         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
16340         (avr_override_options): Init 'avr_current_arch'.
16341         (base_arch_s): Move from here...
16342         * config/avr/avr.h (base_arch_s): ... here. Add new members
16343         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
16344         'mega' to 'have_jmp_call'.
16345         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
16346         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
16347         macros.
16348         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
16349         architectures.
16350         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16351         MULTILIB_MATCHES): Ditto.
16352
16353 2008-01-23  Richard Guenther  <rguenther@suse.de>
16354
16355         PR middle-end/31529
16356         * cgraphunit.c (cgraph_reset_node): Always mark the node
16357         not reachable if it is not queued already.
16358
16359 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
16360
16361         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
16362         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
16363         (cputype_selected): New static variable.
16364         (bfin_handle_option): Set it if -mcpu is used.
16365         (override_option): Select default set of workarounds if no cpu type
16366         selected on the command line.
16367         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
16368
16369         From  Michael Frysinger  <michael.frysinger@analog.com>
16370         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
16371         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
16372
16373         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
16374         for bf547, bf523, bf524, and bf526.
16375         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
16376         bf526.
16377         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16378         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
16379         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
16380         __ADSPBF547__ and __ADSPBF54x__ for bf547.
16381         * doc/invoke.texi (Blackfin Options): Document that
16382         -mcpu now accept bf547, bf523, bf524, and bf526.
16383
16384 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
16385
16386         PR rtl-optimization/34628
16387         * combine.c (try_combine): Stop and undo after the first combination
16388         if an autoincrement side-effect on the first insn has effectively
16389         been lost.
16390
16391 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
16392
16393         PR target/34529
16394         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
16395         Offset addresses are not valid for Altivec or paired float modes.
16396
16397 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
16398
16399         PR c++/34607
16400         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
16401         if DECL_INITIAL (decl) is error_mark_node.
16402
16403         PR c++/34914
16404         * c-common.c (handle_vector_size_attribute): Only allow
16405         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
16406         the same way as pointer, array etc. types.
16407         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
16408
16409         PR c++/34917
16410         * tree.c (build_type_attribute_qual_variant): Call
16411         build_qualified_type if attributes are equal, but quals are not.
16412
16413 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16414
16415         PR 32102
16416         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
16417         * flags.h (warn_strict_aliasing): Remove.
16418         (warn_strict_overflow): Remove.
16419         * opts.c (warn_strict_aliasing): Remove.
16420         (warn_strict_overflow): Remove.
16421         * c-opts.c (c_common_handle_option): -Wall only sets
16422         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
16423         (c_common_post_options): Give default values to -Wstrict-aliasing
16424         and -Wstrict-overflow if they are uninitialized.
16425         * common.opt (Wstrict-aliasing): Specify Var and Init.
16426         (Wstrict-overflow): Likewise.
16427
16428 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
16429
16430         PR rtl-optimization/26854
16431         PR rtl-optimization/34400
16432         PR rtl-optimization/34884
16433         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
16434         DF_RD->gen.
16435         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
16436         (df_rd_bb_info.expanded_lr_out): Deleted
16437         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
16438         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
16439         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16440         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16441         Removed code to allocate, initialize or free expanded_lr_out.
16442         (df_rd_bb_local_compute_process_def): Restructured to make more
16443         understandable.
16444         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
16445         sets if the sets are being trimmed.
16446
16447 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
16448
16449         PR bootstrap/32287
16450         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
16451         (as_vers): Likewise.
16452         * configure: Regenerated.
16453
16454 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16455
16456         PR middle-end/33092
16457         * tree-pass.h (pass_build_alias): New pass.
16458         * tree-ssa-alias.c (gate_build_alias): New.
16459         (pass_build_alias): New.
16460         * passes.c (init_optimization_passes): Add pass_build_alias after
16461         pass_create_structure_vars.
16462
16463 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
16464
16465         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
16466         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
16467         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
16468         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
16469         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
16470         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
16471         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
16472         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
16473         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
16474         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
16475         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
16476         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
16477         * config/s390/s390.md (FP_ALL): New mode iterator.
16478         (_d): New mode attribute.
16479         ("*signbit<mode>2>"): Changed mode of first operand.
16480         ("isinf<mode>2"): Changed mode of first operand.
16481         ("*TDC_insn"): Adaptation for DFP modes.
16482
16483 2008-01-22  Ben Elliston  <bje@au.ibm.com>
16484
16485         * tree.c (check_qualified_type): Improve function description.
16486
16487 2008-01-21  Jason Merrill  <jason@redhat.com>
16488
16489         PR c++/34196
16490         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
16491         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
16492         if it is set.
16493
16494 2008-01-21  DJ Delorie  <dj@redhat.com>
16495
16496         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
16497         return zero.
16498
16499 2008-01-21  Richard Guenther  <rguenther@suse.de>
16500
16501         PR middle-end/34856
16502         * tree-cfg.c (verify_expr): Allow all invariant expressions
16503         instead of just constant class ones as reference argument.
16504         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
16505         like any other constant.
16506         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16507
16508 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
16509
16510         * regmove.c (fixup_match_1): Update call crossed frequencies.
16511
16512 2008-01-21  Richard Guenther  <rguenther@suse.de>
16513
16514         PR c/34885
16515         * tree-inline.c (setup_one_parameter): Deal with mismatched
16516         types using a VIEW_CONVERT_EXPR.
16517
16518 2008-01-21  Alon Dayan  <alond@il.ibm.com>
16519             Olga Golovanevsky  <olga@il.ibm.com>
16520
16521         PR tree-optimization/34701
16522         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
16523         when the structure size is not a power of 2.
16524
16525 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
16526
16527         * doc/install.texi: Add doc for --enable-checking=df.
16528
16529 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
16530
16531         PR rtl-optimization/34808
16532         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
16533
16534 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
16535
16536         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
16537         input.
16538
16539 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
16540
16541         PR rtl-optimization/26854
16542         PR rtl-optimization/34400
16543         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
16544         DF_RD->gen.
16545         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
16546         (df_rd_bb_info.expanded_lr_out): New.
16547         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
16548         * loop_iv.c (iv_analysis_loop_init): Ditto.
16549         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16550         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16551         Added code to allocate, initialize or free expanded_lr_out.
16552         (df_rd_bb_local_compute_process_def): Restructured to make
16553         more understandable.
16554         (df_rd_confluence_n): Add code to do nothing with fake edges and
16555         code to no apply invalidate_by_call sets if the sets are being trimmed.
16556         (df_lr_local_finalize): Renamed to df_lr_finalize.
16557         (df_live_local_finalize): Renamed to df_live_finalize.
16558
16559 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
16560
16561         PR target/34831
16562         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
16563         deciding whether to use reciprocal instructions.
16564
16565 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
16566
16567         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
16568         dwarf2out_note_section_used if cold_text_section is NULL.
16569
16570 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
16571
16572         PR gcov-profile/34610
16573         * tree-cfg.c (make_edges): Mark both outgoing edges from
16574         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
16575         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
16576         from OMP_FOR and OMP_CONTINUE outgoing edges.
16577
16578         * tree-profile.c (tree_profiling): Return early if
16579         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
16580         at the end.
16581         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
16582         from cfun to child_cfun.
16583         * function.h (struct function): Add after_tree_profile bit.
16584
16585 2008-01-19 Anatoly Sokolov <aesok@post.ru>
16586
16587         * config/avr/avr.S (_exit): Disable interrupt.
16588
16589 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
16590             Steven Bosscher  <stevenb.gcc@gmail.com>
16591
16592         PR rtl-optimization/26854
16593         PR rtl-optimization/34400
16594         * df-problems.c (df_live_scratch): New scratch bitmap.
16595         (df_live_alloc): Allocate df_live_scratch when doing df_live.
16596         (df_live_reset): Clear the proper bitmaps.
16597         (df_live_bb_local_compute): Only process the artificial defs once
16598         since the order is not important.
16599         (df_live_init): Init the df_live sets only with the variables
16600         found live by df_lr.
16601         (df_live_transfer_function): Use the df_lr sets to prune the
16602         df_live sets as they are being computed.
16603         (df_live_free): Free df_live_scratch.
16604
16605 2008-01-18  Ian Lance Taylor  <iant@google.com>
16606
16607         * common.opt: Add fmerge-debug-strings.
16608         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
16609         flag_merge_debug_strings rather than flag_merge_constants.
16610         * doc/invoke.texi (Option Summary): Mention
16611         -fmerge-debug-strings.
16612         (Debugging Options): Document -fmerge-debug-strings.
16613
16614 2008-01-18  Ian Lance Taylor  <iant@google.com>
16615
16616         PR c++/33407
16617         * tree.h (DECL_IS_OPERATOR_NEW): Define.
16618         (struct tree_function_decl): Add new field operator_new_flag.
16619         * tree-inline.c (expand_call_inline): When inlining a call to
16620         operator new, force the return value to go into a variable, and
16621         set DECL_NO_TBAA_P on that variable.
16622         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
16623
16624 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
16625
16626         PR debug/34484
16627         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
16628         DWARF2_DEBUGGING_INFO.
16629         (dwarf2out_note_section_used): Ditto.  Add prototype.
16630         (have_multiple_function_sections, text_section_used,
16631         cold_text_section_used, *cold_text_sections): Move declarations
16632         before their uses.
16633
16634 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
16635
16636         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
16637         field and add signal_ra.
16638         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
16639         assignments to frame state pc.  Move end of stack check after
16640         MD_FALLBACK_FRAME_STATE_FOR.
16641         (uw_update_context_1): Use frame state signal_regs if set, instead
16642         of checking signal_frame flag.
16643         (uw_update_context): Use frame state signal_ra if set.
16644         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
16645         * config/xtensa/linux-unwind.h: New file.
16646
16647 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
16648
16649         * modulo-sched.c (get_sched_window): Fix comment typo.
16650
16651 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
16652
16653         PR tree-optimization/34648
16654         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
16655
16656 2008-01-17  Anatoly Sokolov <aesok@post.ru>
16657
16658         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
16659         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
16660
16661 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
16662
16663         PR rtl-optimization/34400
16664         * df-core.c (df_worklist_dataflow_overeager,
16665         df_worklist_dataflow_doublequeue): New functions.
16666         (df_worklist_dataflow): Two different worklist solvers.
16667         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
16668         New param.
16669
16670 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16671
16672         PR testsuite/34821
16673         * doc/invoke.texi: Document the dependence on pthread for fopenmp
16674         and ftree-parallelize-loops.
16675
16676 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
16677
16678         PR rtl-optimization/34826
16679         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
16680
16681 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
16682
16683         * global.c (find_reg): Mark the eh regs as used if necessary.
16684         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
16685         * ra.h (struct allocno): no_eh_reg field added.  Changed
16686         no_stack_reg type to bitfield.
16687
16688 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
16689
16690         * tree.c (substitute_in_expr): Add missing 'break'.
16691
16692 2008-01-17  Richard Guenther  <rguenther@suse.de>
16693
16694         PR tree-optimization/34825
16695         * tree-ssa-math-opts.c (is_division_by): Do not recognize
16696         x / x as division to handle.
16697
16698 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16699
16700         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
16701         "-pthread" is specified.
16702         * pa-hpux11.h (LIB_SPEC): Likewise.
16703
16704 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
16705             Peter Bergner  <bergner@vnet.ibm.com>
16706
16707         PR rtl-optimization/33796
16708         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
16709
16710 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16711
16712         PR libgfortran/34699
16713         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
16714         static links.
16715         * pa-hpux10.h (LINK_SPEC): Likewise.
16716         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
16717
16718 2008-01-16  Richard Guenther  <rguenther@suse.de>
16719
16720         PR middle-end/32628
16721         * fold-const.c (fold_convert_const_int_from_int): Do not
16722         set overflow if that occured only because of a sign extension
16723         change when converting from/to a sizetype with the same
16724         precision and signedness.
16725
16726 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16727
16728         PR debug/34249
16729         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
16730         location address to the correct place.  Update copyright year.
16731
16732 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16733
16734         * lambda-code.c (lambda_transform_legal_p): Handle the case of
16735         no dependences in the dependence_relations vector.
16736
16737 2008-01-16  Jan Hubicka  <jh@suse.cz>
16738
16739         PR rtl-optimization/31396
16740         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
16741         * cfg.c (dump_reg_info): Print it.
16742         * regs.h (struct reg_info_t): add freq_calls_crossed.
16743         (REG_FREQ_CALLS_CROSSED): New macro.
16744         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
16745         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
16746         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
16747         regmove_optimize): Update call crossed frequencies.
16748         * local-alloc.c (struct qty): Add freq_calls_crossed.
16749         (alloc_qty): Copute freq_calls_crossed.
16750         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
16751         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
16752         * ra.h (struct allocno): Add freq_calls_crossed.
16753
16754 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16755
16756         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
16757         libgomp when compiling with ftree-parallelize-loops.
16758         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
16759
16760 2008-01-16  Richard Guenther  <rguenther@suse.de>
16761
16762         PR tree-optimization/34769
16763         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
16764         * tree.c (int_cst_value): Instead make this function more
16765         permissive in what it accepts as valid input.  Document this
16766         function always sign-extends the value.
16767
16768 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
16769             Richard Guenther  <rguenther@suse.de>
16770
16771         PR c/34668
16772         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
16773         (gimple_fold_indirect_ref_rhs): ... this.
16774         (gimple_fold_indirect_ref): New function with foldings
16775         that preserve lvalueness.
16776         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
16777         * tree-flow.h (gimple_fold_indirect_ref): Declare.
16778         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
16779         to fold an INDIRECT_REF, fall back to the old use of
16780         fold_indirect_ref_1.
16781
16782 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16783
16784         * tree-data-ref.c (subscript_dependence_tester_1): Call
16785         free_conflict_function.
16786         (compute_self_dependence): Same.
16787
16788 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16789
16790         PR debug/34249
16791         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
16792         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
16793         function global.
16794         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
16795         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
16796         for DWARF2_UNWIND_INFO targets.
16797
16798 2008-01-16  Richard Guenther  <rguenther@suse.de>
16799
16800         PR c/34768
16801         * c-typeck.c (common_pointer_type): Do not merge inconsistent
16802         type qualifiers for function types.
16803
16804 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
16805
16806         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
16807         loop_iterator li from previous commit.
16808
16809 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
16810
16811         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
16812
16813 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16814
16815         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
16816         (parallelize_loops): Don't parallelize irreducible components.
16817
16818 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16819
16820         PR c++/24924
16821         * c-opts (c_common_post_options): Do not enable CPP
16822         flag_pedantic_errors by default.
16823
16824 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
16825
16826         PR rtl-optimization/31944
16827         * cse.c (remove_pseudo_from_table): New function.
16828         (merge_equiv_classes): Use above function to remove pseudo-registers.
16829         (invalidate): Likewise.
16830
16831 2008-01-13  Richard Guenther  <rguenther@suse.de>
16832
16833         PR middle-end/34601
16834         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
16835         instead of TYPE_MODE to deal with calls from expand_one_error_var.
16836
16837 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
16838
16839         * gcse.c (cprop_jump): Call validate_unshare_change instead of
16840         validate_change to unshare the source of the PC set.
16841
16842 2008-01-12  Jan Hubicka  <jh@suse.cz>
16843
16844         PR middle-end/32135
16845         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
16846         references above array bounds.  This might trigger bounds checks for
16847         pointers to arrays.
16848
16849 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16850
16851         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
16852         new_replaceable_dependencies.
16853
16854 2008-01-12  Doug Kwan  <dougkwan@google.com>
16855
16856         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
16857         instead of OPT_Wreturn_type in warning due to ignored return type
16858         qualifiers.
16859         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
16860         options included in -Wextra.
16861         * c.opt: New option -Wignored_qualifiers.
16862         * doc/invoke.texi (Warning Options, -Wextra): Add new option
16863         -Wignore_qualifiers.
16864         (-Wignored-qualifiers): Document.
16865         (-Wreturn-type): Remove description of functionality now handled
16866         by -Wignored-qualifiers.
16867
16868 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
16869
16870         PR ada/33788
16871         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
16872         NOP_EXPR if it is between integral types with the same precision.
16873
16874 2008-01-12  Jan Hubicka  <jh@suse.cz>
16875
16876         PR other/28023
16877         * invoke.texi (max-inline-recursive-depth): Fix default value.
16878
16879 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
16880
16881         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
16882         correct type.
16883
16884 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
16885
16886         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
16887
16888 2008-01-11  James E. Wilson  <wilson@specifix.com>
16889
16890         PR target/26015
16891         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
16892
16893 2008-01-11  Anatoly Sokolov <aesok@post.ru>
16894
16895         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
16896         save/restore frame pointer register and don't use 'call-prologues'
16897         optimization in function with "OS_task" attribute.
16898
16899 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
16900
16901         PR middle-end/31309
16902         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
16903         when copying to memory.
16904
16905 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
16906
16907         PR rtl-optimization/30905
16908         * cfgcleanup.c: Include dce.h
16909         (crossjumps_occured): New global variable.
16910         (try_crossjump_bb): Exit loop after finding a fallthru edge.
16911         If something changed, set crossjumps_occured to true.
16912         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
16913         Don't add/remove fake edges to exit here...
16914         (cleanup_cfg): ...but do it here, when crossjumping.
16915         Run a fast DCE when successful crossjumps occured in the latest
16916         iteration of try_optimize_cfg.
16917
16918 2008-01-11  Richard Guenther  <rguenther@suse.de>
16919
16920         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
16921         (struct vn_unary_op_s): Likewise.
16922         (vn_reference_insert): Free old reference on hash collision.
16923
16924 2008-01-10  Raksit Ashok  <raksit@google.com>
16925
16926         PR rtl-optimization/27971
16927         * combine.c (find_split_point): Split PLUS expressions which are
16928         inside a MEM rtx, and whose first operand is complex.
16929
16930 2008-01-10  DJ Delorie  <dj@redhat.com>
16931
16932         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
16933         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
16934         (m32c_hard_regno_ok): Call the underlying function.
16935
16936 2008-01-10  Richard Guenther  <rguenther@suse.de>
16937
16938         PR middle-end/34683
16939         * tree-cfg.c (tree_merge_blocks): Do not go through the
16940         full-blown folding and stmt updating path if we just deal
16941         with virtual operands.
16942         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
16943         test for abnormal SSA_NAMEs.
16944
16945 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
16946
16947         PR middle-end/34641
16948         * reload.c (push_reload): Add assertions.  All constants from
16949         reg_equiv_constant should have been used for replacing the respective
16950         pseudo earlier.
16951         (find_reloads_address): Invoke find_reloads_address_part for
16952         constant taken from the reg_equiv_constant array.
16953
16954 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
16955
16956         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
16957         field (valnum) the first in the struct.  Replace bools with
16958         unit bit fields.
16959
16960 2008-01-10  Richard Guenther  <rguenther@suse.de>
16961
16962         PR tree-optimization/34651
16963         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
16964         types and ordering for masking and converting.
16965
16966 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
16967
16968         PR tree-optimization/34017
16969         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
16970         also for PHI_NODE expressions.
16971
16972 2008-01-09  Jan Hubicka  <jh@suse.cz>
16973
16974         PR tree-optimization/34708
16975         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16976         based on number of case labels.
16977         (init_inline_once): Remove switch_cost.
16978         * tree-inline.h (eni_weights_d): Remove switch_cost.
16979
16980 2008-01-09  Richard Guenther  <rguenther@suse.de>
16981         Andrew Pinski  <andrew_pinski@playstation.sony.com>
16982
16983         PR middle-end/30132
16984         * gimplify.c (gimplify_cond_expr): Do not create an addressable
16985         temporary if an rvalue is ok or an lvalue is not required.
16986
16987 2008-01-09  Richard Guenther  <rguenther@suse.de>
16988
16989         PR middle-end/34458
16990         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16991         adjust return type.
16992
16993 2008-01-09  Richard Guenther  <rguenther@suse.de>
16994
16995         PR middle-end/34679
16996         * tree.c (host_integerp): Check for sizetype only if the
16997         type is an integer type.
16998
16999 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
17000
17001         PR debug/26364
17002         * opts.c (decode_options): Disable inlining of functions called
17003         once if not in unit-at-a-time mode.
17004
17005 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
17006
17007         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
17008
17009 2008-01-08  Richard Guenther  <rguenther@suse.de>
17010
17011         PR middle-end/31863
17012         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
17013         out early if the result will be unused.
17014
17015 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
17016
17017         PR target/34709
17018         Revert:
17019
17020         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
17021         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
17022         for TARGET_RECIP.
17023
17024 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
17025
17026         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
17027         for vectorization tuned.
17028
17029 2008-01-08  Richard Guenther  <rguenther@suse.de>
17030
17031         PR tree-optimization/34683
17032         * tree-ssa-operands.c (operand_build_cmp): Export.
17033         * tree-ssa-operands.h (operand_build_cmp): Declare.
17034         * tree-vn.c (vuses_compare): Remove.
17035         (sort_vuses): Use operand_build_cmp.
17036         (sort_vuses_heap): Likewise.
17037         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
17038         to re-use old VEC if available.  Do not sort already sorted VUSEs.
17039         (vdefs_to_vec): Do not sort already sorted VDEFs.
17040
17041 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
17042
17043         PR middle-end/34694
17044         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
17045
17046 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
17047
17048         PR target/34702
17049         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
17050         limitations of reciprocal sequences on x86 targets.
17051
17052 2008-01-08  Richard Guenther  <rguenther@suse.de>
17053
17054         PR tree-optimization/34683
17055         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
17056
17057 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
17058
17059         PR target/34622
17060         * config/darwin.c (darwin_mergeable_string_section): Don't use
17061         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
17062
17063 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
17064
17065         PR target/34682
17066         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
17067         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
17068         predicates of op0 and op1 to register_operand.
17069         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
17070         expander using X87MODEF mode iterator.  Change predicates of
17071         op0 and op1 to register_operand.
17072         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
17073         corresponding patterns and macroize using MODEF macro.  Change
17074         predicates of op0 and op1 to register_operand and remove
17075         "m" constraint. Disparage "r" alternative with "!".
17076         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
17077         macroize using X87MODEF macro.  Change predicates of op0 and op1
17078         to register_operand and remove "m" constraint.  Disparage "r"
17079         alternative with "!".
17080         (absneg splitter with memory operands): Remove.
17081         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
17082         patterns and macroize using X87MODEF mode iterator.
17083         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
17084         Change predicate of op1 to register_operand.
17085         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
17086         for memory operands.
17087
17088 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
17089
17090         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
17091
17092 2008-01-07  Richard Guenther  <rguenther@suse.de>
17093
17094         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
17095         fields.
17096
17097 2008-01-07  Richard Guenther  <rguenther@suse.de>
17098
17099         PR tree-optimization/34683
17100         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
17101         VOPs of the needed size to save memory.  Use VEC_quick_push
17102         to save compile-time.
17103         (vdefs_to_vec): Likewise.
17104
17105 2008-01-07  Sa Liu  <saliu@de.ibm.com>
17106
17107         * config/spu/spu.md (divdf3): Genetate inline code for double
17108         division.  The implementation doesn't handle INF or NAN, therefore it
17109         only applies when -ffinite-math-only is given.
17110
17111 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
17112
17113         PR libstdc++/34680
17114         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
17115         * doc/cpp.texi ([Common Predefined Macros]): Document.
17116
17117 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
17118
17119         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
17120         order to use commutative addition instead of subtraction.
17121
17122 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17123             Mircea Namolaru  <namolaru@il.ibm.com>
17124             Vladimir Yanovsky  <yanov@il.ibm.com>
17125             Revital Eres  <eres@il.ibm.com>
17126
17127         PR tree-optimization/34263
17128         * tree-outof-ssa.c (process_single_block_loop_latch,
17129         contains_tree_r): New functions.
17130         (analyze_edges_for_bb): Call process_single_block_loop_latch
17131         function to empty single-basic-block latch block if possible.
17132
17133 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
17134
17135         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
17136         for TARGET_RECIP.
17137         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
17138
17139 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
17140
17141         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
17142
17143 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
17144
17145         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
17146
17147 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
17148
17149         PR tree-optimization/34618
17150         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
17151         flag from T.
17152
17153 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
17154
17155         PR target/34673
17156         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
17157         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
17158         Update copyright year.
17159
17160         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
17161         Update copyright year.
17162         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
17163         using NR fixup.
17164
17165 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
17166
17167         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
17168         edge does not point to current bb before changing need_assert.
17169
17170 2008-01-04  Richard Guenther  <rguenther@suse.de>
17171
17172         PR middle-end/34029
17173         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
17174         for verifying purposes if they are is_gimple_min_invariant.
17175
17176 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
17177
17178         PR tree-optimization/34448
17179         PR tree-optimization/34465
17180         * gimplify.c (gimplify_init_constructor): Add new parameter
17181         notify_temp_creation.  Use it.
17182         (gimplify_modify_expr_rhs): Take volatiles into account when
17183         optimizing constructors.
17184         Do not optimize constructors if gimplify_init_constructor will dump to
17185         memory.
17186         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
17187         * gcc.c-torture/compile/pr34448.c: New.
17188
17189 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
17190
17191         PR gcov-profile/34609
17192         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
17193         return_slot if result is TREE_ADDRESSABLE.
17194
17195 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
17196
17197         * config/mips/mips.md (sqrt_condition): Tweak comment.
17198         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
17199
17200 2008-01-03  Tom Tromey  <tromey@redhat.com>
17201
17202         PR c/34457
17203         * c-common.c (c_type_hash): Handle VLAs.
17204
17205 2008-01-03  Jan Hubicka  <jh@suse.cz>
17206
17207         PR tree-optimization/31081
17208         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
17209         0 when inlining and not inlining to first basic block.
17210         (remap_decl): When var is initialized to 0, don't set default_def.
17211         (expand_call_inline): Set entry_bb.
17212         * tree-inline.h (copy_body_data): Add entry_bb.
17213
17214 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
17215
17216         PR c++/34619
17217         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
17218         before returning.
17219
17220         PR tree-optimization/29484
17221         * tree-inline.c (inline_forbidden_p_2): New function.
17222         (inline_forbidden_p): Disallow inlining if some static var
17223         has an address of a local LABEL_DECL in its initializer.
17224         * doc/extend.texi (Labels as Values): Document &&foo behaviour
17225         vs. inlining.
17226
17227 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
17228
17229         PR tree-optimization/34635
17230         * tree-data-ref.c (add_other_self_distances): Make sure that the
17231         evolution step is constant.
17232
17233 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
17234
17235         PR middle-end/34608
17236         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
17237
17238 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
17239
17240         * tree-sra.c (scalarize_init): Insert the generate_element_init
17241         statements after the generate_element_zero statements.
17242
17243 2008-01-02  Richard Guenther  <rguenther@suse.de>
17244
17245         PR middle-end/34093
17246         PR middle-end/31976
17247         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
17248         for very large number of operands instead of ICEing.
17249
17250 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
17251
17252         PR target/34013
17253         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
17254         while stack probing.
17255
17256 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
17257
17258         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
17259         in C++0x mode.
17260
17261 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
17262
17263         PR libmudflap/26442
17264         * tree-mudflap.c (mx_register_decls): Guard warning by
17265         !DECL_ARTIFICIAL check.
17266
17267 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
17268
17269         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
17270         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
17271         sse5_perm<mode>): Fix constraints.