OSDN Git Service

2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
4
5 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
6             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
7
8         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
9         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
10         (vashl_optab): New optab for vector/vector shifts.
11         (vashr_optab): Ditto.
12         (vlshr_optab): Ditto.
13         (vrotl_optab): Ditto.
14         (vrotr_optab): Ditto.
15         (optab_subtype): New enum for optab_for_tree_code call.
16         (optab_for_tree_code): Add enum optab_subtype argument.
17
18         * optabs.c (optab_for_tree_code): Take an additional argument to
19         distinguish between a vector shift by a scalar and vector shift by
20         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
21         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
22         vector shift by a vector.
23         (expand_widen_pattern_expr): Pass additional argument to
24         optab_for_tree_code.
25
26         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
27         vrotl_optab, vrotr_optab.
28
29         * expr.c (expand_expr_real_1): Update calls to
30         optab_for_tree_code to distinguish between vector shifted by a
31         scalar and vector shifted by a vector.
32         * tree-vectorizer.c (supportable_widening_operation): Ditto.
33         (supportable_narrowing_operation): Ditto.
34         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
35         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
36         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
37         (vect_create_epilog_for_reduction): Ditto.
38         (vectorizable_reduction): Ditto.
39         (vectorizable_operation): Ditto.
40         (vect_strided_store_supported): Ditto.
41         (vect_strided_load_supported): Ditto.
42         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
43         * expmed.c (expand_shift): Ditto.
44
45         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
46         scalar type.
47         (ashr@var{m}3): Ditto.
48         (vashl@var{m}3): Document new vector/vector shift standard name.
49         (vashr@var{m}3): Ditto.
50         (vlshr@var{m}3): Ditto.
51         (vrotl@var{m}3): Ditto.
52         (vrotr@var{m}3): Ditto.
53
54         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from
55         i386.c.
56         (PPERM_INVERT): Ditto.
57         (PPERM_REVERSE): Ditto.
58         (PPERM_REV_INV): Ditto.
59         (PPERM_ZERO): Ditto.
60         (PPERM_ONES): Ditto.
61         (PPERM_SIGN): Ditto.
62         (PPERM_INV_SIGN): Ditto.
63         (PPERM_SRC1): Ditto.
64         (PPERM_SRC2): Ditto.
65
66         * config/i386/sse.md (mulv2di3): Add SSE5 support.
67         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
68         allows a memory operand to be the value being added, and split it
69         to improve vectorization.
70         (sse5_pmacsdqh_mem): Ditto.
71         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
72         (sse5_mulv2div2di3_high): Ditto.
73         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
74         (vec_pack_trunc_v4si): Ditto.
75         (vec_pack_trunc_v2di): Ditto.
76         (sse5_pcmov_<mode>): Remove code that tried to use use
77         andps/andnps instead of pcmov.
78         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
79         pmacsdqh instructions.
80         (vec_widen_smult_lo_v4si): Ditto.
81
82         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
83         (PPERM_INVERT): Ditto.
84         (PPERM_REVERSE): Ditto.
85         (PPERM_REV_INV): Ditto.
86         (PPERM_ZERO): Ditto.
87         (PPERM_ONES): Ditto.
88         (PPERM_SIGN): Ditto.
89         (PPERM_INV_SIGN): Ditto.
90         (PPERM_SRC1): Ditto.
91         (PPERM_SRC2): Ditto.
92         (ix86_expand_sse_movcc): Move the SSE5 test after the if
93         true/false tests.
94         (ix86_expand_int_vcond): If SSE5 generate all possible integer
95         comparisons.
96         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
97         says ignore whether the last reference is a memory operand.
98
99 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
100             Paolo Bonzini <bonzini at gnu dot org>
101
102         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
103         shift patterns.
104
105         * config/rs6000/altivec.md (vashl<mode>3): Rename from
106         ashl<mode>3.
107         (vlshr<mode>3): Rename from vlshr<mode>3.
108         (vashr<mode>3): Rename from vashr<mode>3.
109         (mulv4sf3): Change the names of vector shift patterns.
110         (mulv4si3): Ditto.
111         (negv4sf2): Ditt.
112
113         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
114         shift insns.
115
116         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift
117         insns.
118         (SI_SHLHI): Ditto.
119         (SI_SHL): Ditto.
120         (SI_SHLI): Ditto.
121         (SI_ROTH): Ditto.
122         (SI_ROTHI): Ditto.
123         (SI_ROT): Ditto.
124         (SI_ROTI): Ditto.
125         (SPU_RL_0): Ditto.
126         (SPU_RL_1): Ditto.
127         (SPU_RL_2): Ditto.
128         (SPU_RL_3): Ditto.
129         (SPU_RL_4): Ditto.
130         (SPU_RL_5): Ditto.
131         (SPU_RL_6): Ditto.
132         (SPU_RL_7): Ditto.
133         (SPU_SL_0): Ditto.
134         (SPU_SL_1): Ditto.
135         (SPU_SL_2): Ditto.
136         (SPU_SL_3): Ditto.
137         (SPU_SL_4): Ditto.
138         (SPU_SL_5): Ditto.
139         (SPU_SL_6): Ditto.
140         (SPU_SL_7): Ditto.
141
142         * config/spu/spu.md (v): New iterator macro to add v for vector types.
143         (floatunssidf2_internal): Change vector/vector shift names.
144         (floatunsdidf2_internal): Ditto.
145         (mulv8hi3): Ditto.
146         (ashrdi3): Ditto.
147         (ashrti3): Ditto.
148         (cgt_df): Ditto.
149         (cgt_v2df): Ditto.
150         (dftsv): Ditto.
151         (vashl<mode>3): Rename from ashl<mode>3.
152         (vashr<mode>3): Rename from ashr<mode>3.
153         (vlshr<mode>3): Rename from lshr<mode>3.
154         (vrotl<mode>3): Rename from rotl<mode>3.
155
156 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
157
158         PR target/36224
159         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using
160         unsigned multiply gives the wrong value when doing widening
161         multiplies.
162         (vec_widen_smult_lo_v4si): Ditto.
163
164 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
165
166         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
167         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
168         emit_library_call_value. 
169         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
170         * tree.h (ECF_LIBCALL_BLOCK): Removed.
171         * calls.c (initialize_argument_information, precompute_arguments, 
172         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
173         (precompute_arguments): Removed flags parameter.
174         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
175         
176 2008-05-14  Richard Guenther  <rguenther@suse.de>
177
178         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
179         Make sure to register the store if the use is a PHI_NODE.
180
181 2008-05-14  Olivier Hainque  <hainque@adacore.com>
182
183         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
184         memory if the component is to be referenced in BLKmode according
185         to get_inner_reference.
186
187 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
188
189         * calls.c (emit_library_call_value_1): Restore code clearing
190         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence
191         once.
192
193 2008-05-14  Olivier Hainque  <hainque@adacore.com>
194             Nicolas Roche  <roche@adacore.com>
195
196         * configure.ac: Add support for a "gcc_subdir" variable in
197         config-lang.in, to denote a subdirectory where the language/GCC
198         integration files are to be found.
199         * configure: Regenerate.
200
201 2008-05-14  Ira Rosen  <irar@il.ibm.com>
202
203         PR tree-optimization/36098
204         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
205         value for the first load in the group in case of a gap.
206         (vect_build_slp_tree): Check that there are no gaps in loads.
207
208 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
209
210         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
211         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
212         expand_copysign_bit, ): Change call to emit_no_conflict_block to
213         emit_insn and remove unneeded code to construct extra args.
214         (emit_no_conflict_block): Removed.
215         * optabls.h: (emit_no_conflict_block): Removed.
216         * cse.c (cse_extended_basic_block): Remove search for
217         REG_NO_CONFLICT note.  
218         * global.c: Removed incorrect comment added in revision 117.
219         * expr.c (convert_move): Change call to emit_no_conflict_block to
220         emit_insn.
221         * recog.c: Change comments so that they do not mention
222         REG_NO_CONFLICT.
223         * local_alloc.c (combine_regs): Removed last parameter.
224         (no_conflict_p): Removed.
225         (block_alloc): Removed note, no_conflict_combined_regno and set
226         local vars. Removed all code to process REG_NO_CONFLICT blocks.
227         (combine_regs): Removed already_dead and code to look for
228         REG_NO_CONFLICT notes.
229         * lower_subreg (remove_retval_note): Removed code to look for
230         REG_NO_CONFLICT block.
231         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
232         (resolve_clobber): Remove code to process libcalls that have
233         REG_NO_CONFLICT notes.
234         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
235         case.
236         * combine.c (can_combine_p, distribute_notes):  Removed REG_NO_CONFLICT
237         case.
238         * config/cris/cris.md (movdi pattern): Changed
239         emit_no_conflict_block to emit_insns.
240         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
241         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
242         Ditto. 
243         * reg-notes.def (NO_CONFLICT): Removed.
244         
245 2008-05-14  David S. Miller  <davem@davemloft.net>
246
247         * config/sparc/sparc.c (sparc_profile_hook): If
248         NO_PROFILE_COUNTERS, don't generate and pass a label
249         into mcount.
250         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
251         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
252
253 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
254
255         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
256
257 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
258
259         PR target/36222
260         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
261         and op1 expansion before vector concat to have less live pseudos.
262
263 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
264
265         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
266         ix86_expand_vector_set if supported.
267
268 2008-05-13  Diego Novillo  <dnovillo@google.com>
269             Kenneth Zadeck  <zadeck@naturalbridge.com>
270
271         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
272
273         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
274         phinodes_print_statistics, init_ssanames, fini_ssanames,
275         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
276         release_ssa_name, release_defs, replace_ssa_name_symbol,
277         ssanames_print_statistics): Move ...
278         * tree-flow.h: ... here.
279         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
280         Use FN instead of cfun.
281         (make_ssa_name_fn): Rename from make_ssa_name.
282         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
283         * tree-flow-inline.h (make_ssa_name): Move from
284         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
285         * omp-low.c (expand_omp_parallel):
286         * tree-flow-inline.h (redirect_edge_var_map_result):
287         * tree-ssa.c (init_tree_ssa): Add argument FN.  Use it instead of cfun.
288         Update all users.
289
290 2008-05-13  Tom Tromey  <tromey@redhat.com>
291
292         PR preprocessor/22168:
293         * doc/cpp.texi (Top): Update menu.
294         (Alternatives to Wrapper #ifndef): New node.
295         (Other Directives): Document deprecation.
296         (Obsolete Features): Remove menu.
297         (Assertions): Merge node into Obsolete Features.
298         (Obsolete once-only headers): Move earlier; rename to Alternatives
299         to Wrapper #ifndef.
300         * doc/cppopts.texi: Update.
301         * c.opt (Wdeprecated): Enable for C and ObjC.
302         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
303         (C++ Dialect Options): Move -Wno-deprecated from here to...
304         (Warning Options): ... here.
305
306 2008-05-13  Richard Guenther  <rguenther@suse.de>
307
308         PR middle-end/36227
309         * fold-const.c (fold_sign_changed_comparison): Do not allow
310         changes in pointer-ness.
311
312 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
313
314         PR target/24713
315         * config/sh/sh.c (sh_expand_prologue): Don't clear
316         RTX_FRAME_RELATED_P for push insns.
317
318 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
319
320         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
321
322 2008-05-12  Anatoly Sokolov <aesok@post.ru>
323
324         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
325         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
326         Use 'machine->is_leaf' instead of 'leaf_func_p'.
327
328 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
329
330         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
331         (*vec_concatv4sf_sse): This.
332         (*sse2_concatv2si): Renamed to ...
333         (*vec_concatv2si_sse2): This.
334         (*sse1_concatv2si): Renamed to ...
335         (*vec_concatv2si_sse): This.
336         (*vec_concatv2di_rex): Renamed to ...
337         (*vec_concatv2di_rex64): This.
338         (*vec_concatv2si_sse4_1): New.
339         (*vec_concatv2di_rex64_sse4_1): Likewise.
340
341 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
342
343         PR rtl-optimization/36111
344         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
345         that was created for swappable operands.
346
347 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
348
349         PR ada/36001
350         * Makefile.in: Substitute GNATMAKE and GNATBIND.
351         * configure.ac: Add call to ACX_PROG_GNAT.
352
353 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
354
355         * optc-gen.awk: Fix comment typo.
356
357 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
358
359         * pretty-print.c (pp_integer_with_precision): Use
360         HOST_LONG_LONG_FORMAT.
361
362 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
363
364         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
365                 
366 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
367
368         * config/i386/i386.c (bdesc_ptest): Removed.
369         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
370         (bdesc_args): Add __builtin_ia32_ptestz128,
371         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
372         (ix86_init_mmx_sse_builtins): Updated.
373         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
374         (ix86_expand_builtin): Updated.
375
376 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
377
378         * tree-cfg.c (valid_fixed_convert_types_p): New function.
379         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
380
381 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
382
383         * value-prof.c (interesting_stringop_to_profile): Do not
384         return early for BUILT_IN_MEMPCPY.
385
386 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
387
388         * calls.c (expand_call): Don't use callgraph to increase
389         preferred_stack_boundary.
390
391         * cgraph.h (cgraph_rtl_info): Use unsigned on
392         preferred_incoming_stack_boundary.
393
394         * final.c (rest_of_clean_state): Use unsigned on
395         preferred_stack_boundary.
396
397 2008-05-09  Tom Tromey  <tromey@redhat.com>
398
399         PR preprocessor/22231:
400         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
401         proceeding.
402
403 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
404
405         PR tree-optimization/36129
406         * tree-ssa-ccp.c: Include value-prof.h.
407         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
408         built-in function was folded to a constant.
409         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
410
411 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
412             Sebastian Pop  <sebastian.pop@amd.com>
413
414         * tree-scalar-evolution.c: Document instantiate_scev.
415         (instantiate_parameters_1): Renamed instantiate_scev_1.
416         Don't use the same loop for instantiation_loop and evolution_loop.
417         (instantiate_scev): New.
418         (instantiate_parameters): Moved...
419         (resolve_mixers): Update call to instantiate_scev_1 to pass the
420         same loop twice.  Maintains the semantics for this function.
421         * tree-scalar-evolution.h (instantiate_scev): Declare.
422         (instantiate_parameters): ...here.  Now static inline.
423         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
424         instead of resolve_mixers.
425
426 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
427
428         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
429
430 2008-05-09  Tomas Bily  <tbily@suse.cz>
431
432         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
433         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
434         * tree-ssa-structalias.c (get_constraint_for): Likewise.
435         * c-common.c (c_common_truthvalue_conversion): Likewise.
436         * tree-object-size.c (compute_object_offset): Likewise.
437         * tree-inline.c (estimate_num_insns_1): Likewise.
438         * varasm.c (const_hash_1, compare_constant, copy_constant)
439         (compute_reloc_for_constant, output_addressed_constants)
440         (initializer_constant_valid_p): Likewise.
441         * c-omp.c (check_omp_for_incr_expr): Likewise.
442         * gimplify.c (gimplify_expr): Likewise.
443         * c-typeck.c (c_finish_return): Likewise.
444         * tree-vectorizer.c (supportable_widening_operation)
445         (supportable_narrowing_operation): Likewise.
446         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
447         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
448         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
449         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
450         (descr_info_loc): Likewise.
451         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
452         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
453         (fold_unary): Likewise.
454         * builtins.c (get_pointer_alignment): Likewise.
455         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
456         (instantiate_parameters_1): Likewise.
457         * tree.c (expr_align, stabilize_reference): Likewise.
458         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
459         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
460         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
461         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
462         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
463         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
464         Likewise.
465         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
466         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
467         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
468         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
469         (forward_propagate_comparison)
470         (tree_ssa_forward_propagate_single_use_vars): Likewise.
471         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
472         * emit-rtl.c (component_ref_for_mem_expr)
473         (set_mem_attributes_minus_bitpos): Likewise.
474         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
475         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
476         Likewise.
477         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
478         (build_function_call, pointer_diff, build_compound_expr)
479         (c_finish_return): Likewise.
480         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
481         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
482         Likewise.
483         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
484         * expr.c (is_aligning_offset): Likewise.
485         * tree-ssa-alias.c (is_escape_site): Likewise.
486         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
487         (check_all_va_list_escapes): Likewise.
488         * tree-ssa-loop-ivopts.c (determine_base_object)
489         (determine_common_wider_type): Likewise.
490         * dojump.c (do_jump): Likewise.
491         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
492         * tree-gimple.c (is_gimple_cast): Likewise.
493         * fold-const.c (decode_field_reference, )
494         (fold_sign_changed_comparison, fold_unary, fold_comparison)
495         (fold_binary): Likewise.
496         * tree-ssa-alias-warnings.c (find_alias_site_helper)
497         (already_warned_in_frontend_p): Likewise.
498         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
499         * tree.c (really_constant_p, get_unwidened): Likewise.
500         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
501         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
502         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
503         Likewise.
504         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
505         CONVERT_EXPR_P.
506         (CONVERT_EXPR_P): Define.
507         (CASE_CONVERT): Define.
508         
509 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
510
511         PR middle-end/36117
512         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
513         (delete_unmarked_insns): When deleting a call, call
514         delete_unreachable_blocks.
515         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
516         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
517
518 2008-05-08  Richard Guenther  <rguenther@suse.de>
519
520         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
521         (-ftree-salias): Likewise.
522         (salias-max-implicit-fields): Remove param documentation.
523         (salias-max-array-elements): Likewise.
524         * tree-pass.h (pass_create_structure_vars): Remove.
525         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
526         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
527         * tree-ssa-alias.c (create_structure_vars): Remove.
528         (gate_structure_vars): Likewise.
529         (pass_create_structure_vars): Likewise.
530         (gate_build_alias): Likewise.
531         (pass_build_alias): Adjust to run always and dump the function.
532         * common.opt (ftree-salias): Hide.
533         * passes.c (init_optimization_passes): Remove
534         pass_create_structure_vars, adjust comment.
535         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
536         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
537         * opts.c (decode_options): Do not set flag_tree_salias.
538         (common_handle_option): Add OPT_ftree_salias to the backward
539         compatibility section.
540
541 2008-05-08  Richard Guenther  <rguenther@suse.de>
542
543         * tree-flow-inline.h (var_can_have_subvars): Move ...
544         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
545         * tree-flow.h (var_can_have_subvars): Remove.
546         (push_fields_onto_fieldstack): Remove.
547         (sort_fieldstack): Likewise.
548         (struct fieldoff): Move ...
549         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
550         alias_set and base_for_components fields.
551         (sort_fieldstack): Make static.
552         (push_fields_onto_fieldstack): Likewise.  Remove code that
553         handles anything but RECORD_TYPEs.  Remove alias_set and
554         base_for_components handling.
555         (create_variable_info_for): Adjust.
556
557 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
558
559         * common.opt (Wframe-larger-than=): Shorten the help message
560         to one line.
561         * doc/invoke.texi (Wframe-larger-than=): Add more description.
562
563 2008-05-08  Rafael Espindola  <espindola@google.com>
564
565         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
566         trap.
567         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
568         trap and that both operands are gimple values.
569         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
570         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
571         is a fp operation.
572
573 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
574
575         * read-rtl.c (join_c_conditions): Return the first string if the
576         two strings are equal.
577
578 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
579
580         * gensupport.h (pred_data): Add a "num_codes" field.
581         (add_predicate_code): Declare.
582         * gensupport.c (add_predicate_code): New function.
583         (std_pred_table): Add an "allows_const_p" field.
584         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
585         Remove the (incomplete) list of such codes from the codes field.
586         (init_predicate_table): Use add_predicate_code.  Add all
587         RTX_CONST_OBJs if allows_const_p is true.
588         * genrecog.c (process_define_predicate): Use add_predicate_code.
589
590 2008-05-08  David Daney  <ddaney@avtrex.com>
591             Richard Sandiford  <rsandifo@nildram.co.uk>
592         
593         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
594         special case of constant zero operands.
595         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
596         old and new values.  Special case constant zero values.
597         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
598         fails.
599         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
600         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
601
602 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
603
604         PR target/36090
605         * simplify-rtx.c (simplify_plus_minus): Create CONST of
606         similar RTX_CONST_OBJ before CONST_INT.
607
608 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
609
610         * stmt.c (expand_stack_restore): Change sa mode if needed.
611
612 2008-05-08  Richard Guenther  <rguenther@suse.de>
613
614         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
615         return type to bool.
616         (ix86_sol10_return_in_memory): Likewise.
617         (ix86_i386elf_return_in_memory): Likewise.
618         (ix86_i386interix_return_in_memory): Likewise.
619         * config/i386/i386.c (ix86_return_in_memory): Likewise.
620         (ix86_sol10_return_in_memory): Likewise.
621         (ix86_i386elf_return_in_memory): Likewise.
622         (ix86_i386interix_return_in_memory): Likewise.
623
624 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
625
626         PR bootstrap/36180
627         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
628         fndecl argument.
629         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
630         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
631         declared in front.
632
633 2008-05-08  Richard Guenther  <rguenther@suse.de>
634
635         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
636         * tree-data-ref.h (struct dr_alias): Remove subvars field.
637         (DR_SUBVARS): Remove.
638         * tree-dfa.c (dump_subvars_for): Remove.
639         (debug_subvars_for): Likewise.
640         (dump_variable): Do not dump subvars.
641         (remove_referenced_var): Do not remove subvars.
642         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
643         (lookup_subvars_for_var): Remove.
644         (get_subvars_for_var): Likewise.
645         (get_subvars_at): Likewise.
646         (get_first_overlapping_subvar): Likewise.
647         (overlap_subvar): Likewise.
648         * tree-flow.h (subvar_t): Remove.
649         (struct var_ann_d): Remove subvars field.
650         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
651         argument.  Remove special handling of SFTs.
652         (compute_tag_properties): Likewise.
653         (set_initial_properties): Likewise.
654         (compute_call_clobbered): Likewise.
655         (count_mem_refs): Likewise.
656         (compute_memory_partitions): Likewise.
657         (compute_flow_insensitive_aliasing): Likewise.
658         (setup_pointers_and_addressables): Likewise.
659         (new_type_alias): Likewise.
660         (struct used_part): Remove.
661         (used_portions): Likewise.
662         (struct used_part_map): Likewise.
663         (used_part_map_eq): Likewise.
664         (used_part_map_hash): Likewise.
665         (free_used_part_map): Likewise.
666         (up_lookup): Likewise.
667         (up_insert): Likewise.
668         (get_or_create_used_part_for): Likewise.
669         (create_sft): Likewise.
670         (create_overlap_variables_for): Likewise.
671         (find_used_portions): Likewise.
672         (create_structure_vars): Likewise.
673         * tree.def (STRUCT_FIELD_TAG): Remove.
674         * tree.h (MTAG_P): Adjust.
675         (struct tree_memory_tag): Remove base_for_components and
676         unpartitionable flags.
677         (struct tree_struct_field_tag): Remove.
678         (SFT_PARENT_VAR): Likewise.
679         (SFT_OFFSET): Likewise.
680         (SFT_SIZE): Likewise.
681         (SFT_NONADDRESSABLE_P): Likewise.
682         (SFT_ALIAS_SET): Likewise.
683         (SFT_UNPARTITIONABLE_P): Likewise.
684         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
685         (union tree_node): Remove sft field.
686         * alias.c (get_alias_set): Remove special handling of SFTs.
687         * print-tree.c (print_node): Remove handling of SFTs.
688         * tree-dump.c (dequeue_and_dump): Likewise.
689         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
690         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
691         * tree-predcom.c (set_alias_info): Do not set subvars.
692         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
693         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
694         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
695         (add_vars_for_offset): Remove.
696         (add_virtual_operand): Remove special handling of SFTs.
697         (add_call_clobber_ops): Likewise.
698         (add_call_read_ops): Likewise.
699         (get_asm_expr_operands): Likewise.
700         (get_modify_stmt_operands): Likewise.
701         (get_expr_operands): Likewise.
702         (add_to_addressable_set): Likewise.
703         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
704         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
705         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
706         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
707         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
708         (tree_node_structure): Likewise.
709         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
710         handling of SFTs.
711         (find_what_p_points_to): Likewise.
712
713 2008-05-08  Sa Liu  <saliu@de.ibm.com>
714
715         * config/spu/spu.md: Fixed subti3 pattern.
716
717 2008-05-08  Richard Guenther  <rguenther@suse.de>
718
719         PR middle-end/36154
720         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
721         sure to create a representative for trailing arrays for PTA.
722
723 2008-05-08  Richard Guenther  <rguenther@suse.de>
724
725         PR middle-end/36172
726         * fold-const.c (operand_equal_p): Two objects which types
727         differ in pointerness are not equal.
728
729 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
730
731         * calls.c (compute_argument_block_size): Add argument tree fndecl.
732         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
733         (emit_library_call_value_1): Add new variable fndecl initialized by
734         NULL_TREE. It should be the decl type of orgfun, but this information
735         seems not to be available here, so it uses the default calling abi.
736         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
737         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
738         by TARGET_RETURN_IN_MEMORY.
739         * config/i386/i386-interix.h: Likewise.
740         * config/i386/i386.h: Likewise.
741         * config/i386/i386elf.h: Likewise.
742         * config/i386/ptx4-i.h: Likewise.
743         * config/i386/sol2-10.h: Likewise.
744         * config/i386/sysv4.h: Likewise.
745         * config/i386/vx-common.h: Likewise.
746         * config/cris/cris.h: Removed #if 0 clause.
747         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
748         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
749         argument.
750         (ix86_sol10_return_in_memory): Likewise.
751         (ix86_i386elf_return_in_memory): New.
752         (ix86_i386interix_return_in_memory): New.
753         * config/mt/mt-protos.h (mt_return_in_memory): New.
754         * config/mt/mt.c: Likewise.
755         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
756         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
757         * config/bfin/bfin.h: Likewise.
758         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
759         argument.
760         * config/bfin/bfin.c: Likewise.
761         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
762         * config/alpha/unicosmk.h: Likewise.
763         * config/i386/cygming.h: Likewise.
764         * config/iq2000/iq2000.h: Likewise.
765         * config/mips/mips.h: Likewise.
766         * config/mn10300/mn10300.h: Likewise.
767         * config/rs6000/rs6000.h: Likewise.
768         * config/score/score.h: Likewise.
769         * config/spu/spu.h: Likewise.
770         * config/v850/v850.h: Likewise.
771         * defaults.h: Likewise.
772         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
773         * expr.c (emit_block_move): Adjust use of
774         OUTGOING_REG_PARM_STACK_SPACE.
775         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
776         OUTGOING_REG_PARM_STACK_SPACE.
777         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
778
779 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
780
781         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
782         on OMP_RETURN for OMP_FOR.
783
784         PR debug/35896
785         * dwarf2out.c (dw_expand_expr, common_check): Removed.
786         (fortran_common): New function.
787         (gen_variable_die): Call fortran_common instead of common_check,
788         adjust for it returning tree instead of rtx.  Formatting.
789
790 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
791
792         PR rtl/7335
793         PR rtl/33826
794         * see.c (see_copy_insn): Copy new pure const attributes for new call.
795         * c-decl.c (merge_decls): Ditto.
796         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
797         to RTL_CONST_OR_PURE_CALL_P.
798         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
799         Initialized DECL_LOOPING_CONST_PURE.
800         (process_call_operands): Set tree_side_effects properly.
801         * tree.h (TREE_READONLY_DECL_P): Removed.
802         (DECL_IS_PURE): Renamed to DECL_PURE_P.
803         (DECL_LOOPING_OR_CONST_P): New macro.
804         (struct tree_function_decl): Added looping_const_or_pure_p.
805         (ECF_*) Renumbered.
806         (ECF_LOOPING_OR_CONST_P): New macro.
807         * rtlanal.c (pure_const_p): Removed.
808         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
809         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
810         to RTL_CONST_CALL_P.
811         * ipa-pure-const.c (pure_const_state_e): Added looping field.
812         (check_decl, check_tree, check_call, scan_function): Initialize
813         looping.
814         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
815         (static_execute): Set looping true for recursive functions.
816         Undo setting state to IPA_NEITHER for recursive functions.
817         * cse.c (cse_insn): 
818         * ifcvt.c (noce_can_store_speculate_p): Changed
819         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
820         RTL_CONST_OR_PURE_CALL_P.
821         * dse.c (scan_insn): Ditto.
822         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
823         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
824         RTL_CONST_OR_PURE_CALL_P.
825         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
826         pure_call_p to RTL_CONST_CALL_P.
827         * gimplify.c (gimplify_call_expr): Clear side effects for
828         non-looping pure and constant calls.
829         * calls.c (emit_call_1): Set rtl flags from ecf flags.
830         (flags_from_decl_or_type): Set ecf flags from decl flags.
831         (initialize_argument_information): Turn off
832         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
833         Change const to pure if callee_copies is true rather than just
834         turning off const.
835         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
836         way of marking pure calls.
837         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
838         Remove hack that was supposed to fix pr7335 and remove old
839         way of marking pure calls.
840         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
841         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
842         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
843         RTL_CONST_OR_PURE_CALL_P.
844         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
845         * loop-invariant.c (find_exits, find_invariant_bb): Changed
846         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
847         * sched-deps.c (schedule_analyze): Ditto.
848         * rtl.h (struct rtx_def): Use call field, unchanging field, and
849         return_val field of calls to represent pure and const function info.
850         (CONST_OR_PURE_CALL_P): Deleted macro.
851         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
852         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
853         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
854         TREE_READONLY.
855         * tree-optimize.c (execute_fixup_cfg): Added test for
856         ECF_LOOPING_CONST_OR_PURE.
857         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
858         DECL_PURE_P.
859         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
860         effects for looping pure or const calls.
861         (verify_gimple_expr): Added verification code. 
862         * config/alpha/alpha.c (alpha_legitimize_address,
863         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
864         RTL_CONST_CALL_P.
865         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
866         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
867         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
868         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
869         RTL_CONST_OR_PURE_CALL_P.
870         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
871         and const calls to be deleted.
872
873 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
874
875         PR target/35714
876         * config/i386/mmx.md (mmx_subv2sf3): New expander.
877         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
878         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
879         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
880         to handle nonimmediate operands.
881         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
882         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
883         to handle nonimmediate operands.
884         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
885         (mmx_pmulhrwv4hi3): New expander.  Use
886         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
887         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
888         (sse2_umulv1siv1di3): New expander.  Use
889         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
890         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
891         (mmx_eq<mode>3): New expander.  Use
892         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
893         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
894         (mmx_uavgv8qi3): New expander.  Use
895         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
896         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
897         (mmx_uavgv4hi3): New expander.  Use
898         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
899
900         * config/i386/sse.md
901         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
902         to handle nonimmediate operands.
903         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
904         to handle nonimmediate operands.
905         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
906         to handle nonimmediate operands.
907         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
908         to handle nonimmediate operands.
909         (sse2_unpckhpd_exp): New expander.  Use
910         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
911         (sse2_unpcklpd_exp): New expander.  Use
912         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
913         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
914         to handle nonimmediate operands.
915         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
916         to handle nonimmediate operands.
917         (*sse2_<plusminus_insn><mode>3): Rename from
918         sse2_<plusminus_insn><mode>3 insn pattern.
919         (sse2_<plusminus_insn><mode>3): New expander.  Use
920         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
921         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
922         (sse2_umulv2siv2di3): New expander.  Use
923         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
924         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
925         (sse4_1_mulv2siv2di3): New expander.  Use
926         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
927         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
928         (sse2_pmaddwd): New expander.  Use
929         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
930         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
931         (sse2_eq<mode>3): New expander.  Use
932         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
933         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
934         (sse4_1_eqv2di3): New expander.  Use
935         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
936         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
937         (sse2_uavgv16qi3): New expander.  Use
938         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
939         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
940         (sse2_uavgv16qi3): New expander.  Use
941         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
942         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
943         (sse2_uavgv8hi3): New expander.  Use
944         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
945         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
946         (ssse3_pmulhrswv8hi3): New expander.  Use
947         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
948         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
949         (ssse3_pmulhrswv4hi3): New expander.  Use
950         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
951
952         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
953         (<sse>_vmmul<mode>3): Ditto.
954         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
955         (divv2df3): Ditto.
956         (ssse3_pmaddubsw128): Use register_operand for operand 1.
957         (ssse3_pmaddubsw): Ditto.
958
959         * config/i386/i386.c (struct_builtin_description)
960         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
961         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
962         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
963         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
964         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
965         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
966         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
967         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
968         (ix86_fixup_binary_operands): Assert that src1
969         and src2 must have the same mode when swapped.
970         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
971         and ix86_binary_operator_ok.  Do not force operands in registers
972         when optimizing.
973
974 2008-05-07  Jan Hubicka  <jh@suse.cz>
975
976         * cgraph.c (dump_cgraph_node): Update.
977         * cgraph.h (cgraph_local_info): Break out inline summary.
978         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
979         hook.
980         * ipa-inline (inline_summary): New accestor function.
981         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
982         cgraph_decide_inlining, compute_inline_parameters): Update.
983         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
984
985 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
986
987         Cleanup ColdFire scheduling support and add V4 pipeline model.
988
989         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
990         (define_attr cpu): Add cfv4 value.
991         (define_attr type, define_attr type1): Merge into a single 'type'
992         attribute.  Update all uses.
993         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
994         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
995         Update all uses.
996         (define_attr opx_mem, define_attr opy_mem): Remove.
997         (define_attr op_mem): Clean up, update comment.
998         (define_attr size): Use specific values instead of general int.
999         (define_attr guess, define_attr split): Remove.  Update all uses.
1000         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
1001         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
1002         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
1003         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
1004         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
1005         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
1006         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
1007         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
1008         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
1009         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
1010         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
1011         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
1012         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
1013         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
1014         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
1015         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
1016         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
1017         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
1018         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
1019         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
1020         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
1021         Update or set attributes.
1022         (stack_tie): New fake instruction.
1023
1024         * config/m68k/m68k.h (TUNE_CFV4): New macro.
1025         (m68k_sched_attr_size): Update declaration.
1026         (m68k_sched_attr_type2): Remove.
1027         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
1028         Declare new bypass predicates.
1029
1030         * config/m68k/m68k.c (m68k_sched_issue_rate,
1031         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
1032         implementations.
1033         (TARGET_SCHED_ISSUE_RATE,
1034         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
1035         (override_options): Handle scheduling for ColdFire V4 core.
1036         (m68k_expand_prologue): Emit stack_tie.
1037         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
1038         'OP_TYPE_FPN'.  Update all uses.
1039         (sched_guess_p): Remove.
1040         (sched_address_type): Handle symbolic addresses.
1041         (sched_get_operand): New static function.
1042         (sched_operand_type): Merge into sched_attr_op_type.
1043         (sched_attr_op_type): Handle FP registers, handle quick constants,
1044         update.
1045         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
1046         (m68k_sched_attr_size): Update.  Move logic to ...
1047         (sched_get_attr_size_int): New static function.
1048         (sched_get_opxy_mem_type): New static function.
1049         (m68k_sched_attr_op_mem): Update.
1050         (m68k_sched_attr_type2): Remove.
1051         (sched_cfv4_bypass_data): New static variable.
1052         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
1053         (m68k_sched_issue_rate): Implement scheduler hook.
1054         (struct _sched_ib: enabled_p): New field.
1055         (m68k_sched_variable_issue): Update.  Handle V4.
1056         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
1057         sched_dump_class_func_t, sched_dump_split_class,
1058         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
1059         sched_dump_dfa_class, m68k_sched_dump): Remove.
1060         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
1061         hook.
1062         (m68k_sched_init_global): Remove statisctics dumping, introduce
1063         sanity check that all instructions have pipeline reservations.  Handle
1064         ColdFire V4 core.
1065         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
1066         Handle ColdFire V4 core.
1067         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
1068         New static functions.
1069         (m68k_sched_address_bypass_p): New bypass predicate.
1070         (sched_get_indexed_address_scale): New static function.
1071         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
1072
1073         * cf.md: Update comments.
1074         (define_attr type2): Remove.  Use 'type' attribute instead.
1075         Update all uses.
1076         (cf_ib): Rename to cfv123_ib.  Update all uses.
1077         (cf_oep): Rename to cfv123_oep.  Update all uses.
1078         (cf_chr): Rename to cfv123_chr.  Update all uses.
1079         (cf_mem): Rename to cfv123_mem.  Update all uses.
1080         (cf_mac): Move to more appropriate place.
1081         (cfv123_guess): New automaton and cpu_unit.
1082         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
1083         Update uses of 'size' attribute.  Handle before reload scheduling.
1084         (cfv123_guess): New dummy reservation for unhandled instructions.
1085         (cfv4_*): Pipeline description of ColdFire V4 core.
1086         (ignore): New reservation to handle 'ignore' type.
1087
1088 2008-05-07  Ian Lance Taylor  <iant@google.com>
1089
1090         PR middle-end/36013
1091         * gimplify.c (find_single_pointer_decl_1): Don't look through
1092         indirections.
1093         (find_single_pointer_decl): Adjust comments.
1094
1095 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1096
1097         PR middle-end/36137
1098         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
1099         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
1100
1101         PR middle-end/36106
1102         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
1103         integral type rather than floating point, then VIEW_CONVERT_EXPR
1104         to the floating point type.
1105
1106 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
1107
1108         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
1109         TFmode op0 to register.
1110
1111 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
1112
1113         * c-decl.c (grokdeclarator): Comment typo.
1114
1115 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
1116
1117         * tree-flow.h: Remove prototype for computed_goto_p.
1118         * tree-cfg.c (computed_goto_p): Make static.
1119
1120 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
1121
1122         PR target/35657
1123         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
1124         (contains_aligned_value_p): This.  Handle _Decimal128.
1125         (ix86_function_arg_boundary): Only align _Decimal128 to its
1126         natural boundary and handle it properly.
1127
1128 2008-05-06  Martin Jambor  <mjambor@suse.cz>
1129
1130         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
1131         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
1132         (ipcp_method_set_orig_node): Removed.
1133         (ipcp_cval_get_cvalue_type): Removed.
1134         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
1135         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
1136         (ipcp_cval_set_cvalue_type): Removed.
1137         (ipcp_cval_get_cvalue): Removed.
1138         (ipcp_cval_set_cvalue): Removed.
1139         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
1140         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
1141         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
1142         (ipcp_cval_meet): Renamed to ipa_lattice_meet
1143         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
1144         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
1145         (ipcp_get_ith_lattice): Changed parameters.
1146         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
1147         (ipcp_lattice_from_jfunc): Changed parameters.
1148         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
1149         (ipcp_method_cval_print): Added temporary variable info.
1150         (ipcp_redirect): Removed already unused local variable caller.
1151         (ipcp_redirect): New temporary variable orig_callee_info
1152         (ipcp_redirect): Removed newly unused local variable callee.
1153         (ipcp_redirect): Removed (a bit confusing) local variable type.
1154         (ipcp_insert_stage): Added local variable info.
1155         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
1156         renamed too
1157         (ipcp_formal_create): Removed.
1158         (ipcp_method_cval_set): Removed.
1159         (ipcp_propagate_stage): Renamed lattice variables.
1160         (ipcp_method_cval_set_cvalue_type): Removed.
1161         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
1162         (ipcp_print_all_lattices): Changed printed strings to refer to 
1163         lattices rather than cvals.
1164         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
1165         (ipcp_propagate_const): Changed formal parameters.
1166         (build_const_val): Changed formal parameters.
1167         (ipcp_insert_stage): Removed useless variable cvalue
1168         (build_const_val): Changed formal parameters.
1169         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
1170         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
1171         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
1172         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
1173         (ipcp_print_func_profile_counts): Changed string from "method" to 
1174         "function"
1175         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
1176         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
1177         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
1178         (ipcp_structures_print): Renamed to ipcp_print_all_structures
1179         (ipcp_profile_print): Renamed to ipcp_print_profile_data
1180         (ipcp_lat_is_const): Changed parameters and made inline.
1181         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
1182         (ipcp_redirect): Renamed to ipcp_need_redirect_p
1183         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
1184         the predicate condition directly
1185         (ipcp_propagate_stage): Added local variable args. Removed local
1186         variable callee.  (Both are mere code simplifications.)
1187         (ipcp_method_dont_insert_const): Renamed to
1188         ipcp_node_not_modifiable_p.
1189         (ipcp_node_not_modifiable_p): Made inline.
1190         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
1191         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
1192         (ipcp_print_all_lattices): Removed variable cvalue
1193         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
1194         Updated comments.
1195
1196 2008-05-06  Olivier Hainque  <hainque@adacore.com>
1197
1198         * tree-sra.c (try_instantiate_multiple_fields): Early return
1199         if field has POINTER_TYPE.
1200
1201 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
1202
1203         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
1204         by using 'q' specifier for instruction.
1205         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
1206
1207 2008-05-06  Anatoly Sokolov <aesok@post.ru>
1208
1209         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
1210         Change mode of zero_extract from QImode to HImode.
1211         (sign bit tests peepholes): (Ditto.).
1212
1213 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
1214
1215         * config/i386/mmx.md: Remove double backslashes from asm templates.
1216         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
1217         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
1218         to handle nonimmediate operands.
1219         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
1220         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
1221         to handle nonimmediate operands.
1222         (*mmx_<code>v2sf3_finite): New insn pattern.
1223         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
1224         (mmx_<code>v2sf3): New expander.  Use
1225         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1226         (mmx_<plusminus_insn><mode>3): New expander.  Use
1227         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1228         (*mmx_<plusminus_insn><mode>3): New insn pattern.
1229         (mmx_add<mode>3): Removed.
1230         (mmx_ssadd<mode>3): Ditto.
1231         (mmx_usadd<mode>3): Ditto.
1232         (mmx_sub<mode>3): Ditto.
1233         (mmx_sssub<mode>3): Ditto.
1234         (mmx_ussub<mode>3): Ditto.
1235         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
1236         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
1237         to handle nonimmediate operands.
1238         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
1239         insn pattern.
1240         (mmx_smulv4hi3_highpart): New expander.  Use
1241         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1242         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
1243         insn pattern.
1244         (mmx_umulv4hi3_highpart): New expander.  Use
1245         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1246         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
1247         (mmx_<code>v4hi3): New expander.  Use
1248         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1249         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
1250         (mmx_<code>v8qi3): New expander.  Use
1251         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1252         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
1253         (mmx_<code><mode>3): New expander.  Use
1254         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
1255
1256 2008-05-05  Jan Hubicka  <jh@suse.cz>
1257
1258         PR tree-optimization/36118
1259         * passes.c (pass_init_dump_file): Fix dump header.
1260
1261 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1262
1263         PR middle-end/36141
1264         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
1265         VCE for function decls.
1266
1267 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
1268
1269         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
1270
1271 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
1272
1273         * config/i386/i386.md (sat_plusminus): New.
1274         (plusminus_insn): Likewise.
1275         (plusminus_mnemonic): Likewise.
1276         (addsub): Removed.
1277         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
1278         (*<addsub><mode>3_cc_overflow): Renamed to ...
1279         (*<plusminus_insn><mode>3_cc_overflow): This.
1280         (*<addsub>si3_zext_cc_overflow): Renamed to ...
1281         (*<plusminus_insn>si3_zext_cc_overflow): This.
1282
1283         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
1284         (<plusminus_insn><mode>3): This.
1285         (*<addsub><mode>3): Renamed to ...
1286         (*<plusminus_insn><mode>3): This.
1287         (<sse>_vm<addsub><mode>3): Renamed to ...
1288         (<sse>_vm<plusminus_insn><mode>3): This.
1289         (sse3_h<addsub>v4sf3): Renamed to ...
1290         (sse3_h<plusminus_insn>v4sf3): This.
1291         (sse3_h<addsub>v2df3): Renamed to ...
1292         (sse3_h<plusminus_insn>v2df3): This.
1293         (<plusminus_insn><mode>3): New.
1294         (*<plusminus_insn><mode>3): Likewise.
1295         (sse2_<plusminus_insn><mode>3): Likewise.
1296         (add<mode>): Removed.
1297         (*add<mode>3): Likewise.
1298         (sse2_ssadd<mode>3): Likewise.
1299         (sse2_usadd<mode>3): Likewise.
1300         (sub<mode>3): Likewise.
1301         (*sub<mode>3): Likewise.
1302         (sse2_sssub<mode>3): Likewise.
1303         (sse2_ussub<mode>3): Likewise.
1304
1305 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
1306
1307         * gthr-single.h: Add in required interface elements as per gthr.h.
1308         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
1309         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
1310         Generalize UNUSED macro. 
1311         (__gthread_once): Add.
1312         (__gthread_key_create): Add.
1313         (__gthread_key_delete): Add.
1314         (__gthread_getspecific): Add.
1315         (__gthread_setspecific): Add.
1316         
1317 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
1318
1319         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
1320         the same size types for the indirect reference on the rhs, then
1321         create a VCE.
1322
1323 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
1324
1325         * config/i386/i386.md
1326         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
1327         one insn template instead of template series.
1328         (*xordi_1_rex64): Ditto.
1329         (*xordi_2_rex64): Ditto.
1330
1331 2008-05-05  Ira Rosen  <irar@il.ibm.com>
1332
1333         PR tree-optimization/36119
1334         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
1335         in case of SLP.
1336
1337 2008-06-04  Jan Hubicka  <jh@suse.cz>
1338
1339         tree-optimization/36100
1340         * tree-pass.h (pass_O0_always_inline): Declare.
1341         * ipa-inline.c (inline_transform): Remove dead code.
1342         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
1343         pass_O0_always_inline): New.
1344         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
1345
1346 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
1347
1348         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
1349         mnemonic in this_param move for TARGET_64BIT.
1350
1351 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
1352
1353         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
1354         (*strmovsi_rex_1): Ditto.
1355         (*strsetsi_1): Ditto.
1356         (*strsetsi_rex_1): Ditto.
1357
1358         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
1359         adddicc expanders using SWI mode iterator.
1360
1361 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1362
1363         PR target/36121
1364         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
1365         argument handling.
1366
1367 2008-05-04  David S. Miller  <davem@davemloft.net>
1368
1369         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
1370         (sparc*-*-linux*): Use linux.h in tm_file.
1371         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
1372         compiler defaulting to 32-bit.
1373         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
1374         no longer needed.
1375         * config/sparc/linux.h: Remove definitions now obtained
1376         properly from linux.h
1377         * config/sparc/linux64.h: Likewise.
1378         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
1379         don't want this setting for 32-bit builds in a biarch compiler.
1380         * doc/install.texi: Add sparc-linux to list of targets
1381         supporting --enable-targets=all.
1382
1383 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
1384
1385         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
1386
1387 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
1388
1389         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
1390         after V4SI_FTYPE_V8HI.
1391         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
1392         case V4SI_FTYPE_V2DF.
1393
1394 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
1395
1396         * doc/invoke.texi (max-flow-memory-locations): Removed.
1397         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
1398         
1399 2008-05-03  Richard Guenther  <rguenther@suse.de>
1400
1401         PR middle-end/34973
1402         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
1403
1404 2008-05-02  David S. Miller  <davem@davemloft.net>
1405
1406         * config.gcc (need_64bit_hwint): Document libcpp dependency.
1407
1408 2008-05-02  Simon Baldwin <simonb@google.com>
1409
1410         PR bootstrap/36108
1411         * c-common.h (warn_array_subscript_range): Removed.
1412         * c-common.c (warn_array_subscript_range): Ditto.
1413         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
1414         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
1415
1416 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1417
1418         * config/i386/i386.c (ix86_special_builtin_type): New.
1419         (bdesc_special_args): Likewise.
1420         (ix86_expand_special_args_builtin): Likewise.
1421         (ix86_init_mmx_sse_builtins): Updated.
1422         (ix86_expand_builtin): Updated.
1423         (ix86_expand_store_builtin): Removed.
1424         (ix86_expand_unop_builtin): Likewise.
1425
1426         * config/i386/mm3dnow.h (__v2sf): Moved to ...
1427         * config/i386/mmintrin.h (__v2sf): Here.
1428
1429         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
1430         const __v2sf.
1431         (_mm_loadl_pi): Likewise.
1432         (_mm_storeh_pi): Replace __v2si with __v2sf.
1433         (_mm_storel_pi): Likewise.
1434
1435         * doc/extend.texi: Correct __builtin_ia32_loadhps,
1436         __builtin_ia32_loadlps, __builtin_ia32_storehps,
1437         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
1438         __builtin_ia32_loadlpd.
1439
1440 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1441
1442         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
1443         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
1444         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
1445         (ix86_init_mmx_sse_builtins): Updated.
1446         (ix86_expand_args_builtin): Likewise.
1447         (ix86_expand_builtin): Likewise.
1448         (ix86_expand_unop1_builtin): Renamed to ...
1449         (ix86_expand_unop_vec_merge_builtin): This.
1450
1451 2008-05-01  Jan Hubicka  <jh@suse.cz>
1452
1453         PR bootstrap/36100
1454         * ipa-inline.c (inline_generate_summary): Make static.
1455         (inline_transform): Do not call inlining at -O0; make static.
1456         * passes.c (execute_todo): Add sanity check.
1457         (execute_one_ipa_transform_pass): Execute proper flags.
1458
1459 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
1460
1461         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
1462         (DECL_NONADDRESSABLE_P): Likewise.
1463         * alias.c (record_component_aliases): Fix comment.
1464
1465 2008-05-01  Simon Baldwin <simonb@google.com>
1466
1467         * c-common.h (warn_array_subscript_range): New function.
1468         * c-common.c (warn_array_subscript_range): Ditto.
1469         * tree-vrp.c (check_array_ref): Corrected code to agree with
1470         comment, ignoring only arrays of size 0 or size 1.
1471         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
1472
1473 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1474
1475         * config/i386/i386.c (ix86_builtin_type): Replace
1476         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
1477         (bdesc_args): Updated.
1478         (ix86_init_mmx_sse_builtins): Likewise.
1479         (ix86_expand_args_builtin): Likewise.
1480
1481         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
1482         with __v1di.
1483
1484         * doc/extend.texi: Correct __builtin_ia32_palignr.
1485
1486 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1487
1488         PR target/36095
1489         * config/i386/i386.c (bdesc_crc32): Removed.
1490         (ix86_expand_crc32): Likewise.
1491         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
1492         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
1493         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
1494         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
1495         UINT_FTYPE_UINT_UCHAR.
1496         (bdesc_args): Updated. Add crc32 builtins.
1497         (ix86_init_mmx_sse_builtins): Updated.
1498         (ix86_expand_args_builtin): Updated to support subreg.
1499
1500         * doc/extend.texi: Correct __builtin_ia32_crc32di.
1501
1502 2008-05-01  Jan Hubicka  <jh@suse.cz>
1503
1504         * tree-pass.h (opt_pass): Add IPA_PASS.
1505         (varpool_node, cgraph_node): Forward declare.
1506         (ipa_opt_pass): Define.
1507         (pass_ipa_inline): Turn into ipa_opt_pass.
1508         (pass_apply_inline): Remove.
1509         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
1510         (apply_inline): Turn into ....
1511         (inline_transform): ... this one.
1512         (inline_generate_summary): New function.
1513         (pass_apply_inline): Remove.
1514         * function.h (ipa_opt_pass): Forward declare structure; typedef;
1515         vector.
1516         (struct function): Add ipa_transforms_to_apply.
1517         * passes.c (register_one_dump_file): Work on IPA_PASS.
1518         (init_optimization_passes): Remove pass_inline_parameters and
1519         pass_apply_inline.
1520         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
1521         (execute_one_pass) ... here; apply transforms when possible.
1522         (add_ipa_transform_pass, execute_ipa_summary_asses,
1523         execute_one_ipa_transform_pass): New.
1524         (execute_ipa_pass_list): Update for IPA_PASS type.
1525
1526 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1527
1528         * config/i386/i386.c (ix86_builtin_type): Add
1529         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
1530         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
1531         (bdesc_args): Add SSE4a builtins.
1532         (ix86_init_mmx_sse_builtins): Updated.
1533         (ix86_expand_args_builtin): Likewise.
1534         (ix86_expand_builtin): Likewise.
1535
1536 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
1537
1538         * config/i386/i386.c (ix86_builtin_type): Add
1539         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
1540         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
1541         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
1542         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
1543         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
1544         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
1545         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
1546         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
1547         and DI_FTYPE_DI_DI_INT.
1548         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
1549         (ix86_init_mmx_sse_builtins): Updated.
1550         (ix86_expand_args_builtin): Likewise.
1551         (ix86_expand_builtin): Likewise.
1552         (ix86_expand_binop_imm_builtin): Removed.
1553
1554         * doc/extend.texi: Correct __builtin_ia32_palignr128.
1555
1556 2008-04-30  Richard Guenther  <rguenther@suse.de>
1557
1558         PR tree-optimization/32921
1559         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
1560
1561 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
1562
1563         * config/arm/arm.c (arm_unwind_emit): Use
1564         crtl->all_throwers_are_sibcalls instead of
1565         cfun->all_throwers_are_sibcalls.
1566         (arm_output_fn_unwind): Likewise.
1567         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
1568         instead of cfun->uses_pic_offset_table.
1569         (frv_expand_prologue): Likewise.
1570         (frv_frame_pointer_required): Likewise.
1571         (frv_expand_fdpic_call): Likewise.
1572         (frv_emit_movsi): Likewise.
1573         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
1574         cfun->returns_pcc_struct instead of
1575         current_function_returns_pcc_struct.
1576         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
1577         instead of cfun->calls_eh_return.
1578         (m32c_pushm_popm): Likewise.
1579         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
1580         "extern" declaration.
1581
1582 2008-04-30  Richard Guenther  <rguenther@suse.de>
1583
1584         PR tree-optimization/21636
1585         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
1586         constant address.
1587         (evaluate_stmt): Print the likely value.
1588         (ccp_visit_stmt): Avoid excessive vertical spacing.
1589
1590 2008-04-30  Rafael Espindola  <espindola@google.com>
1591
1592         * builtins.c (fold_call_expr): Return realret.
1593         * tree-ssa-threadedge.c
1594         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
1595         __builtin_object_size.
1596
1597 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
1598
1599         * gcc.c (wrapper_string): New variable.
1600         (insert_wrapper): New function.
1601         (execute): New option -wrapper.
1602         * doc/invoke.texi (Overall Options): New driver option -wrapper.
1603
1604 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
1605
1606         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
1607         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
1608         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
1609         from...
1610         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
1611         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
1612         config/rs6000/e500crtres64gprctr.asm,
1613         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
1614         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
1615         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
1616         config/rs6000/e500crtsav64gprctr.asm,
1617         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
1618         config/rs6000/e500crtsavg64gprctr.asm: New files.
1619         * config/rs6000/t-ppccomm: Add build rules for new files.
1620         (LIB2FUNCS_STATIC_EXTRA): Add new files.
1621         * config/rs6000/t-netbsd: Add build rules for new files.
1622         (LIB2FUNCS_STATIC_EXTRA): New variable.
1623         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
1624         (CRTSAVRES_DEFAULT_SPEC): Likewise.
1625         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
1626
1627 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
1628
1629         * config/i386/i386.c (ix86_builtin_type): Add
1630         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
1631         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
1632         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
1633         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
1634         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
1635         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
1636         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
1637         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
1638         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
1639         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
1640         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
1641         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
1642         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
1643         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
1644         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
1645         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
1646         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
1647         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
1648         V1DI_FTYPE_V2SI_V2SI.
1649         (bdesc_2arg): Moved to ...
1650         (bdesc_args): Here.
1651         (ix86_init_mmx_sse_builtins): Updated.
1652         (ix86_expand_args_builtin): Updated.  Take a pointer
1653         to const struct builtin_description.  Handle comparison
1654         builtin functions.
1655         (ix86_expand_sse_compare): Take a new argument for swapping operands.
1656         (ix86_expand_builtin): Updated.
1657
1658         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
1659         (ssse3_pmaddubsw128): This.
1660         (ssse3_pmaddubswv4hi3): Renamed to ...
1661         (ssse3_pmaddubsw): This.
1662
1663         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
1664         (__builtin_ia32_packssdw128): Likewise.
1665         (__builtin_ia32_packuswb128): Likewise.
1666         (__builtin_ia32_pmaddubsw): Likewise.
1667         (__builtin_ia32_pmaddubsw128): Likewise.
1668
1669 2008-04-30  Richard Guenther  <rguenther@suse.de>
1670
1671         PR tree-optimization/14847
1672         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
1673         (recognize_bits_test): Use it.
1674         (recognize_single_bit_test): Likewise.
1675
1676 2008-04-30  Martin Jambor  <mjambor@suse.cz>
1677
1678         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
1679         instead of setting number of formal parameters to zero.
1680         (ipcp_init_stage): Do not set the number of actual parameters to zero 
1681         either.
1682         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
1683         which are called with variable number of arguments.
1684         (ipcp_insert_stage): Explicitely skipping all nodes which are
1685         called with variable number of arguments.
1686         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
1687         number of parameters.
1688
1689         * ipa-prop.h (struct ipa_node_params): Added flag
1690         called_with_var_arguments
1691         (ipa_set_param_count): Added.  Changed sole setter to use it.
1692         (ipa_get_param_count): Added.  All readers of param_count
1693         converted to use it instead.
1694         (ipa_set_called_with_variable_arg): Added.
1695         (ipa_is_called_with_var_arguments): Added.
1696         (ipa_get_ith_param): Added.  All readers of param_decls converted
1697         to use it instead.
1698         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
1699         changed to use it. 
1700         (ipa_get_cs_argument_count): Added, all readers of argument_count
1701         changed to cal it.
1702         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
1703         to use it.
1704         
1705         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
1706         (struct ipcp_lattice): Renamed cval_type to type
1707         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
1708
1709         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
1710         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
1711         (ipcp_insert_stage): Changed the type of variable cvalue to tree
1712         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
1713         (build_const_val): Changed the type of parameter cvalue to tree
1714         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
1715         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
1716         
1717         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
1718         constant 
1719
1720         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
1721         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
1722         (ipa_add_method): Renamed to ipa_push_func_to_list
1723         (ipa_remove_method): Renamed to ipa_pop_func_from_list
1724         (ipa_callsite_param_count): Removed.
1725         (ipa_callsite_param_count_set): Removed.
1726         (ipa_callsite_param): Removed.
1727         (ipa_callsite_callee): Removed.
1728         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
1729         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
1730         (ipa_method_formal_count): Removed.
1731         (ipa_method_formal_count_set): Removed.
1732         (ipa_method_get_tree): Removed.
1733         (ipa_method_tree_map_create): Removed.
1734         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
1735         (ipa_create_param_decls_array): Creates the array itself
1736         (ipa_create_param_decls_array): Temporary variable info instead of 
1737         a few dereferences.
1738         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
1739         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
1740         (get_type): Removed.
1741         (ipa_jf_get_info_type): Removed.
1742         (ipa_node_create): Renamed to ipa_create_node_params
1743         (ipa_free): Renamed to ipa_free_all_node_params
1744         (ipa_nodes_create): Renamed to ipa_create_all_node_params
1745         (ipa_edges_create): Renamed to ipa_create_all_edge_args
1746         (ipa_edges_free): Renamed to ipa_free_all_edge_args
1747         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
1748         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
1749         ipa_free_all_edge_args
1750         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
1751         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
1752         (ipa_create_methodlist_node): Removed.
1753         (ipa_methodlist_method): Removed.
1754         (ipa_methodlist_method_set): Removed.
1755         (ipa_methodlist_next_method): Removed.
1756         (ipa_methodlist_next_method_set): Removed.
1757         (ipa_method_is_modified): Removed.
1758         (ipa_method_modify_create): Removed.
1759         (ipa_method_modify_init): Temporary variable info instead of a few 
1760         dereferences.
1761         (ipa_detect_param_modifications): Temporary variable info instead of 
1762         a few dereferences.
1763         (ipa_compute_jump_functions): Temporary variable info instead of 
1764         a few dereferences.
1765         (ipa_method_modify_set): Removed.
1766         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
1767         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
1768         than craph_node as the first parameter.
1769         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
1770         (ipa_method_modify_init): Removed.
1771         (ipa_compute_jump_functions): Added a temp variable instead of 
1772         repeatadly dereferencing the cgraph_edge.aux pointer
1773         (ipa_callsite_param_set_type): Removed.
1774         (ipa_compute_jump_functions): i renamed to index and moved to 
1775         an inner block
1776         (ipa_callsite_param_set_info_type_formal): Removed.
1777         (ipa_callsite_param_set_info_type): Removed.
1778         (ipa_callsite_param_map_create): Removed.
1779         (ipa_callsite_tree): Removed.
1780         (ipa_callsite_caller): Removed.
1781         (ipa_pop_func_from_list): return_method removed to return_func
1782
1783         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
1784         prefixed all values with IPA_. Changed all users.
1785         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
1786         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
1787         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
1788         (union parameter_info): Renamed to jump_func_value.
1789         (union jump_func_value): Renamed value to constant
1790         (struct ipa_jump_func): Renamed info_type to value
1791         (struct ipa_node): Renamed to ipa_node_params
1792         (struct ipa_node_params): Renamed ipa_arg_num to param_count
1793         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
1794         (struct ipa_node_params): Renamed ipa_mod to modified_flags
1795         (struct ipa_edge): Renamed to ipa_edge_args
1796         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
1797         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
1798         (struct ipa_methodlist): Renamed to ipa_func_list
1799         (struct ipa_func_list): method_p renamed to node, next_method
1800         renamed to next
1801         (ipa_methodlist_p): Removed, switched all users to struct pointer
1802         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
1803
1804 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
1805
1806         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
1807         (rs6000_emit_epilogue): Use backchain to restore only when we
1808         have a large frame.  Make use of frame pointer to restore if we
1809         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
1810
1811 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
1812
1813         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
1814         Add mode to zero_extract.
1815         (sign bit tests peepholes): (Ditto.).
1816
1817 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
1818
1819         * config/i386/i386.c (ix86_builtins): Replace Prescott New
1820         Instructions in comments with SSE3.
1821         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
1822         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
1823         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
1824         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
1825         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
1826         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
1827         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
1828         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
1829         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
1830         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
1831         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
1832         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
1833         (bdesc_sse_args): Renamed to ...
1834         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
1835         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
1836         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
1837         IX86_BUILTIN_FABSQ.
1838         (bdesc_1arg): Moved to ...
1839         (bdesc_args): Here.
1840         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
1841         Instructions in comments with SSE3.
1842         (ix86_expand_sse_operands_builtin): Renamed to ...
1843         (ix86_expand_args_builtin): This.  Updated.
1844         (ix86_expand_unop1_builtin): Update comments.
1845         (ix86_expand_builtin): Updated.
1846
1847 2008-04-29  Richard Guenther  <rguenther@suse.de>
1848
1849         PR tree-optimization/36078
1850         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
1851         Update virtual SSA form after cleaning up the CFG.
1852
1853 2008-04-29  Richard Guenther  <rguenther@suse.de>
1854
1855         PR middle-end/15255
1856         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
1857
1858 2008-04-29  Richard Guenther  <rguenther@suse.de>
1859
1860         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
1861         (compute_may_aliases): Do not call finalize_ref_all_pointers.
1862         (compute_flow_insensitive_aliasing): Do not treat
1863         PTR_IS_REF_ALL pointers special.
1864         (get_smt_for): Likewise.
1865         (may_alias_p): Re-structure.
1866         (is_escape_site): A ref-all pointer conversion is not an escape site.
1867         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
1868         PTR_IS_REF_ALL pointers special.
1869         * tree-ssa-structalias.h (struct alias_info): Remove
1870         ref_all_symbol_mem_tag field.
1871         (PTR_IS_REF_ALL): Remove.
1872
1873 2008-04-29  Richard Guenther  <rguenther@suse.de>
1874
1875         PR middle-end/36077
1876         * fold-const.c (extract_muldiv_1): In combining division constants
1877         make sure to never overflow.
1878
1879 2008-04-29  Nick Clifton  <nickc@redhat.com>
1880
1881         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
1882
1883 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1884
1885         PR bootstrap/35169
1886         * optc-gen.awk: Work around HP-UX/IA awk bug.
1887
1888 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
1889
1890         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
1891         2008-04-25 commit.
1892
1893 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
1894
1895         PR target/36073
1896         * config/i386/i386.md
1897         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
1898         Change operand 1 predicate to nonimmediate_operand.
1899
1900 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
1901
1902         PR debug/36060
1903         * dwarf2out.c (struct die_struct): Mark as chain_circular through
1904         die_sub field.
1905         * gengtype.c (walk_type, write_func_for_structure): Handle
1906         chain_circular.
1907         * doc/gty.texi: Document chain_circular.
1908
1909 2008-04-28  Richard Guenther  <rguenther@suse.de>
1910
1911         PR tree-optimization/36066
1912         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
1913         SCEV and loop.
1914
1915 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
1916
1917         PR target/36064
1918         * config/i386/i386.md
1919         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
1920         Use match_scratch instead of match_operand for operands 3 and 4.
1921
1922 2008-04-27  Richard Guenther  <rguenther@suse.de>
1923
1924         PR tree-optimization/18754
1925         PR tree-optimization/34223
1926         * tree-pass.h (pass_complete_unrolli): Declare.
1927         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
1928         loop size before and after unconditionally of UL_NO_GROWTH in effect.
1929         Rewrite loop into loop closed SSA form if it is not already.
1930         (tree_unroll_loops_completely): Re-structure to iterate over
1931         innermost loops with intermediate CFG cleanups.
1932         Unroll outermost loops only if requested or the code does not grow
1933         doing so.
1934         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
1935         loops are available.
1936         (tree_vectorize): Instead do so here.
1937         (tree_complete_unroll): Also unroll outermost loops.
1938         (tree_complete_unroll_inner): New function.
1939         (gate_tree_complete_unroll_inner): Likewise.
1940         (pass_complete_unrolli): New pass.
1941         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
1942         uses outside of the loop.
1943         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
1944         form if it is available.  
1945         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
1946         * passes.c (init_optimization_passes): Schedule complete inner
1947         loop unrolling pass before the first CCP pass after final inlining.
1948
1949 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
1950
1951         * targhooks.h (default_emutls_var_fields,
1952         default_emutls_var_init): Declare.
1953         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
1954         * target.h (struct gcc_target): Add struct emutls member.
1955         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
1956         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
1957         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
1958         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
1959         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
1960         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
1961         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
1962         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
1963         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
1964         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
1965         emit debug information.
1966         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
1967         * varasm.c: Include targhooks.h.
1968         (emutls_object_section, emutls_tmpl_section): New.
1969         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
1970         (EMUTLS_SEPARATOR): New.
1971         (prefix_name): New.
1972         (get_emutls_object_name): New.
1973         (default_emutls_var_fields): New, broken out of ...
1974         (get_emutls_object_type): ... here.  Adjust to use target hooks.
1975         (get_emutls_init_templ_addr): Adjust to use target hooks.
1976         (emutls_decl): Adjust to use target hooks.
1977         (emutls_finish): Likewise.
1978         (default_emutls_var_init): New, broken out of ...
1979         (assemble_variable): ... here.  Adjust to use target hooks.
1980         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
1981         SECCAT_EMUTLS_TMPL.
1982         * c-common.c (handle_section_attribute): Prevent overriding
1983         sections for emulated tls with special sections.
1984         * config/i386/i386.c (x86_64_elf_select_section): Add
1985         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
1986         (x86_64_elf_unique_section): Likewise.
1987         * config/vxworks.c: Include tree.h.
1988         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
1989         (vxworks_override_options): Set TLS scheme.
1990         * doc/tm.texi (Emulated TLS): New node.
1991
1992 2008-04-26  Simon Baldwin <simonb@google.com>
1993
1994         PR c/35652
1995         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
1996         with propagated string constants.
1997
1998 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
1999
2000         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
2001         constraint for operand 2 when operand 0 is memory operand.
2002         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
2003         operand 0 is memory operand.
2004         (fix_trunc<mode>_i387_with_temp): Ditto.
2005         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
2006         operand 2 when operand 1 is memory operand.
2007         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
2008         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
2009         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
2010         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
2011         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
2012         operands 2,3 and 4 when operand 1 is memory operand.
2013         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
2014         is memory operand.
2015         (fistdi2_floor_with_temp): Ditto.
2016         (fist<mode>2_floor_with_temp): Ditto.
2017         (fistdi2_ceil_with_temp): Ditto.
2018         (fist<mode>2_ceil_with_temp): Ditto.
2019         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
2020
2021 2008-04-26  David Daney  <ddaney@avtrex.com>
2022
2023         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
2024         unspec_volitile.
2025         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
2026         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
2027         UNSPEC_UPDATE_GOT_VERSION): Renumber.
2028         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
2029         (compare_and_swap_12): New insn.
2030         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
2031         * config/mips/mips.c (mips_force_binary): New function.
2032         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
2033         (mips_expand_compare_and_swap_12): New function.
2034         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
2035
2036 2008-04-25  Jan Hubicka  <jh@suse.cz>
2037
2038         PR testsuite/35843
2039         * cfgexpand.c (pass_expand): Turn into RTL pass.
2040         * passes.c (execute_one_pass): Do pass typechecking after execution.
2041         * tree-pass.h (pass_expand): Turn into RTL pass.
2042
2043         * function.h (struct rtl_data): Move here fields
2044         accesses_prior_frames, calls_eh_return, saves_all_registers,
2045         has_nonlocal_goto, has_asm_statement, is_thunk,
2046         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
2047         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
2048         arg_pointer_save_area_init from struct function; turn into bool.
2049         (struct function): Move
2050         calls_eh_return, saves_all_registers, has_nonlocal_goto,
2051         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
2052         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
2053         tail_call_emit, arg_pointer_save_area_init
2054         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
2055         (current_function_returns_struct, current_function_returns_pcc_struct,
2056         current_function_calls_setjmp, current_function_calls_alloca,
2057         current_function_accesses_prior_frames,
2058         current_function_calls_eh_return, current_function_is_thunk,
2059         current_function_stdarg, current_function_profile,
2060         current_function_limit_stack, current_function_uses_pic_offset_table,
2061         current_function_uses_const_pool, current_function_has_nonlocal_label,
2062         current_function_saves_all_registers,
2063         current_function_has_nonlocal_goto,
2064         current_function_has_asm_statement): Remove accesor macros.
2065         * ra-conflict.c (global_conflicts): Update.
2066         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
2067         (suitable_for_tail_call_opt_p): Update.
2068         * builtins.c (expand_builtin_return_addr): Update.
2069         (expand_builtin_setjmp_setup): Update.
2070         (expand_builtin_nonlocal_goto): Update.
2071         * final.c (final_start_function): Update.
2072         (profile_function): Update.
2073         (leaf_function_p): Update.
2074         (only_leaf_regs_used): Update.
2075         * df-scan.c (df_get_exit_block_use_set): Update.
2076         * dojump.c (clear_pending_stack_adjust): Update.
2077         * tree-stdarg.c (gate_optimize_stdarg): Update.
2078         * gimple-low.c (lower_function_body): Update.
2079         * global.c (compute_regsets): Update.
2080         (global_alloc): Update.
2081         * dwarf2out.c (dwarf2out_begin_prologue): Update.
2082         * expr.c (expand_assignment): Update.
2083         * dse.c (dse_step0): Update.
2084         (dse_step1): Update.
2085         * c-decl.c (store_parm_decls): Update.
2086         * local-alloc.c (combine_regs): Update.
2087         (find_free_reg): Update.
2088         * function.c (assign_parms_augmented_arg_list): Update.
2089         (assign_parm_find_data_types): Update.
2090         (assign_parms): Update.
2091         (allocate_struct_function): Update.
2092         (expand_function_start): Update.
2093         (expand_function_end): Update.
2094         (get_arg_pointer_save_area): Update.
2095         (thread_prologue_and_epilogue_insns): Update.
2096         (rest_of_match_asm_constraints): Update.
2097         * stor-layout.c (variable_size): Update.
2098         * gcse.c (gcse_main): Update.
2099         (bypass_jumps): Update.
2100         * gimplify.c (gimplify_function_tree): Update.
2101         * calls.c (emit_call_1): Update.
2102         (expand_call): Update.
2103         * bt-load.c (compute_defs_uses_and_gen): Update.
2104         * except.c (sjlj_assign_call_site_values): Update.
2105         (sjlj_emit_function_enter): Update.
2106         (can_throw_external): Update.
2107         (set_nothrow_function_flags): Update.
2108         (expand_builtin_unwind_init): Update.
2109         (expand_eh_return): Update.
2110         (convert_to_eh_region_ranges): Update.
2111         (output_function_exception_table): Update.
2112         * emit-rtl.c (gen_tmp_stack_mem): Update.
2113         * cfgexpand.c (expand_used_vars): Update.
2114         (tree_expand_cfg): Update.
2115         * cfgcleanup.c (rest_of_handle_jump): Update.
2116         * explow.c (allocate_dynamic_stack_space): Update.
2117         * varasm.c (assemble_start_function): Update.
2118         (force_const_mem): Update.
2119         (mark_constant_pool): Update.
2120         * tree-optimize.c (tree_rest_of_compilation): Update.
2121         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
2122         * tree-cfg.c (notice_special_calls): Update.
2123         (is_ctrl_altering_stmt): Update.
2124         (tree_can_make_abnormal_goto): Update.
2125         (tree_purge_dead_abnormal_call_edges): Update.
2126         * config/alpha/predicates.md: Update.
2127         * config/alpha/alpha.c (alpha_sa_mask): Update.
2128         (alpha_sa_size): Update.
2129         (alpha_does_function_need_gp): Update.
2130         (alpha_expand_prologue): Update.
2131         (alpha_start_function): Update.
2132         (alpha_output_function_end_prologue): Update.
2133         (alpha_expand_epilogue): Update.
2134         * config/frv/frv.c (frv_stack_info): Update.
2135         (frv_expand_epilogue): Update.
2136         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
2137         (s390_register_info): Update.
2138         (s390_frame_info): Update.
2139         (s390_init_frame_layout): Update.
2140         (s390_can_eliminate): Update.
2141         (save_gprs): Update.
2142         * config/spu/spu.c (spu_split_immediate): Update.
2143         (need_to_save_reg): Update.
2144         (spu_expand_prologue): Update.
2145         (spu_expand_epilogue): Update.
2146         * config/sparc/sparc.md: Update.
2147         * config/sparc/sparc.c (eligible_for_return_delay): Update.
2148         (sparc_tls_got): Update.
2149         (legitimize_pic_address): Update.
2150         (sparc_emit_call_insn): Update.
2151         (sparc_expand_prologue): Update.
2152         (output_return): Update.
2153         (print_operand): Update.
2154         (sparc_function_ok_for_sibcall): Update.
2155         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
2156         * config/m32r/m32r.md: Update.
2157         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
2158         (m32r_compute_frame_size): Update.
2159         (m32r_expand_prologue): Update.
2160         (m32r_expand_epilogue): Update.
2161         (m32r_legitimize_pic_address): Update.
2162         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
2163         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
2164         * config/i386/i386.c (ix86_frame_pointer_required): Update.
2165         (gen_push): Update.
2166         (ix86_save_reg): Update.
2167         (ix86_compute_frame_layout): Update.
2168         (ix86_expand_prologue): Update.
2169         (ix86_expand_epilogue): Update.
2170         * config/sh/sh.c (output_stack_adjust): Update.
2171         (calc_live_regs): Update.
2172         (sh5_schedule_saves): Update.
2173         (sh_expand_prologue): Update.
2174         (sh_expand_epilogue): Update.
2175         (sh_setup_incoming_varargs): Update.
2176         (sh_allocate_initial_value): Update.
2177         (sh_get_pr_initial_val): Update.
2178         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
2179         * config/sh/sh.md (label:): Update.
2180         * config/avr/avr.c (out_movhi_mr_r): Update.
2181         * config/crx/crx.h (enum): Update.
2182         * config/xtensa/xtensa.h (along): Update.
2183         * config/stormy16/stormy16.c Update.
2184         (xstormy16_compute_stack_layout): Update.
2185         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
2186         (fr30_expand_prologue): Update.
2187         * config/cris/cris.c (cris_conditional_register_usage): Update.
2188         (cris_reg_saved_in_regsave_area): Update.
2189         (cris_initial_frame_pointer_offset): Update.
2190         (cris_simple_epilogue): Update.
2191         (cris_expand_prologue): Update.
2192         (cris_expand_epilogue): Update.
2193         (cris_expand_pic_call_address): Update.
2194         (cris_asm_output_symbol_ref): Update.
2195         (cris_asm_output_label_ref): Update.
2196         * config/cris/cris.md Update.
2197         * config/iq2000/iq2000.c (compute_frame_size): Update.
2198         (iq2000_expand_epilogue): Update.
2199         * config/mt/mt.h (save_direction): Update.
2200         * config/mn10300/mn10300.c (mn10300_function_value): Update.
2201         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
2202         (ia64_secondary_reload_class): Update.
2203         * config/m68k/m68k.c (m68k_save_reg): Update.
2204         (m68k_expand_prologue): Update.
2205         (m68k_expand_epilogue): Update.
2206         (legitimize_pic_address): Update.
2207         * config/rs6000/rs6000.c (rs6000_got_register): Update.
2208         (first_reg_to_save): Update.
2209         (first_altivec_reg_to_save): Update.
2210         (compute_vrsave_mask): Update.
2211         (compute_save_world_info): Update.
2212         (rs6000_stack_info): Update.
2213         (spe_func_has_64bit_regs_p): Update.
2214         (rs6000_ra_ever_killed): Update.
2215         (rs6000_emit_eh_reg_restore): Update.
2216         (rs6000_emit_allocate_stack): Update.
2217         (rs6000_emit_prologue): Update.
2218         (rs6000_emit_epilogue): Update.
2219         (rs6000_output_function_epilogue): Update.
2220         (output_profile_hook): Update.
2221         (rs6000_elf_declare_function_name): Update.
2222         * config/rs6000/rs6000.h (rs6000_args): Update.
2223         * config/rs6000/rs6000.md: Update.
2224         * config/mcore/mcore.c (mcore_expand_prolog): Update.
2225         * config/arc/arc.c (arc_output_function_epilogue): Update.
2226         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
2227         * config/darwin.c (machopic_function_base_name): Update.
2228         * config/score/score3.c (score3_compute_frame_size): Update.
2229         (rpush): Update.
2230         (rpop): Update.
2231         (score3_epilogue): Update.
2232         * config/score/score7.c (score7_compute_frame_size): Update.
2233         (score7_prologue): Update.
2234         (score7_epilogue): Update.
2235         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
2236         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
2237         * config/arm/arm.c (use_return_insn): Update.
2238         (require_pic_register): Update.
2239         (arm_load_pic_register): Update.
2240         (arm_compute_save_reg0_reg12_mask): Update.
2241         (arm_compute_save_reg_mask): Update.
2242         (thumb1_compute_save_reg_mask): Update.
2243         (output_return_instruction): Update.
2244         (arm_output_function_prologue): Update.
2245         (arm_output_epilogue): Update.
2246         (arm_get_frame_offsets): Update.
2247         (arm_expand_prologue): Update.
2248         (thumb_pushpop): Update.
2249         (thumb_exit): Update.
2250         (thumb1_expand_prologue): Update.
2251         (thumb1_expand_epilogue): Update.
2252         (arm_unwind_emit): Update.
2253         (arm_output_fn_unwind): Update.
2254         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
2255         * config/arm/arm.md: Update.
2256         * config/pa/pa.md: Update.
2257         * config/pa/pa.c (legitimize_pic_address): Update.
2258         (compute_frame_size): Update.
2259         (hppa_expand_prologue): Update.
2260         (hppa_expand_epilogue): Update.
2261         (borx_reg_operand): Update.
2262         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
2263         (HARD_REGNO_RENAME_OK): Update.
2264         * config/mips/mips.c (mips_global_pointer): Update.
2265         (mips_save_reg_p): Update.
2266         (mips_compute_frame_info): Update.
2267         (mips_frame_pointer_required): Update.
2268         (mips_expand_prologue): Update.
2269         (mips_expand_epilogue): Update.
2270         (mips_can_use_return_insn): Update.
2271         (mips_reorg_process_insns): Update.
2272         * config/v850/v850.c (compute_register_save_size): Update.
2273         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
2274         * config/mmix/mmix.c (along): Update.
2275         (mmix_expand_epilogue): Update.
2276         * config/bfin/bfin.c (legitimize_pic_address): Update.
2277         (must_save_p): Update.
2278         (stack_frame_needed_p): Update.
2279         (add_to_reg): Update.
2280         (bfin_expand_prologue): Update.
2281         * stmt.c (expand_asm_operands): Update.
2282         * reload1.c (reload): Update.
2283         (init_elim_table): Update.
2284
2285 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
2286         
2287         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
2288         
2289 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
2290
2291         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
2292         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
2293         (mov<mode>): Removed.
2294         (*movv4sf_internal): Likewise.
2295         (*movv2df_internal): Likewise.
2296
2297 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
2298
2299         * config.gcc (crx-*-elf): Remove deprecation.
2300
2301 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
2302
2303         * config/i386/cygming-crtend.c (register_frame_ctor): Register
2304         __gcc_deregister_frame with atexit.
2305         (deregister_frame_dtor): Remove.
2306
2307 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
2308             Nathan Sidwell  <nathan@codesourcery.com>
2309
2310         * config/rs6000/rs6000.opt (mspe): Remove Var property.
2311         (misel): Likewise.
2312         * config/rs6000/rs6000.h (rs6000_spe): Declare.
2313         (rs6000_isel): Likewise.
2314         * config/rs6000/rs6000.c (rs6000_spe): New variable.
2315         (rs6000_isel): New variable.
2316         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
2317
2318 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2319
2320         PR c++/35758
2321         * c-common.c (handle_vector_size_attribute): Call
2322         lang_hooks.types.reconstruct_complex_type instead of
2323         reconstruct_complex_type.
2324         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
2325         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
2326         * langhooks.h (struct lang_hooks_for_types): Add
2327         reconstruct_complex_type hook.
2328         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
2329         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
2330
2331 2008-04-24  Richard Guenther  <rguenther@suse.de>
2332
2333         * c-common.h (check_builtin_function_arguments): Declare.
2334         * c-common.c (validate_nargs): New function.
2335         (check_builtin_function_arguments): Likewise.
2336         * c-typeck.c (build_function_call): Call
2337         check_builtin_function_arguments.
2338         * builtins.c (fold_builtin_classify): Remove error reporting code.
2339         (fold_builtin_unordered_cmp): Likewise.
2340         (fold_builtin_1): Likewise.
2341         (fold_builtin_n): Likewise.
2342
2343 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2344
2345         PR tree-optimization/36008
2346         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
2347         the original op1, rather than delta by step.
2348
2349 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
2350             Sebastian Pop  <sebastian.pop@amd.com>
2351
2352         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
2353         eliminate_local_variables_stmt, eliminate_local_variables,
2354         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
2355         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
2356         of code delimited by two edges in the CFG.
2357         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
2358         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
2359         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
2360         the case of parallelisation of reductions.
2361         (expr_invariant_in_region_p): New.
2362
2363         * tree-flow.h (gather_blocks_in_sese_region): Declared.
2364         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
2365
2366 2008-04-24  Ira Rosen  <irar@il.ibm.com>
2367             Richard Guenther  <rguenther@suse.de>
2368
2369         PR tree-optimization/36034
2370         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
2371         incapable of dealing with loads with gaps.
2372
2373 2008-04-24  Rafael Espindola  <espindola@google.com>
2374
2375         * tree-flow.h (vrp_evaluate_conditional): Change signature.
2376         * tree-ssa-propagate.c (fold_predicate_in): Update call to
2377         vrp_evaluate_conditional.
2378         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
2379         (vrp_evaluate_conditional): Split the cond argument.
2380         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
2381         (simplify_stmt_for_jump_threading): Update call to
2382         vrp_evaluate_conditional.
2383
2384 2008-04-24  Ira Rosen  <irar@il.ibm.com>
2385
2386         PR tree-optimization/35982
2387         * tree-vect-analyze.c (vect_check_interleaving): Check that the
2388         interleaved data-refs are of the same type.
2389
2390 2008-04-24  Danny Smith  <dannysmith@users.net>
2391
2392         * c-format.c (check_format_info_main): Use strncmp rather than a
2393         magic prefix to handle multichar length specs.
2394         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
2395         Don't prefix "I64" and "I32" with '\0'.
2396
2397 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
2398
2399         PR target/36015
2400         * config/i386/i386.c (init_cumulative_args): Don't pass anything
2401         in registers for -m32 only if stdarg_p (fntype).
2402
2403 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
2404
2405         PR rtl-optimization/36006
2406         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
2407         temp to op0 in order to avoid invalid rtx sharing.
2408
2409 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
2410
2411         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
2412         check TREE_INVARIANT.
2413         * tree-gimple.c (is_gimple_address): New.
2414         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
2415         * tree-gimple.h (is_gimple_address): New.
2416         * tree.h (decl_address_invariant_p): New.
2417         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
2418         (build_string): Likewise.
2419         (decl_address_invariant_p): New, from is_gimple_invariant_address.
2420         (tree_invariant_p_1): Likewise.
2421         (save_expr): Use it.
2422         (tree_invariant_p): New.
2423         (skip_simple_arithmetic): Use it.
2424         (stabilize_reference_1): Use it.
2425         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
2426         simplify.
2427         (build1_stat): Drop code to compute TREE_INVARIANT.
2428         (build2_stat): Drop code to compute TREE_INVARIANT.
2429         (build3_stat): Drop code to compute TREE_INVARIANT.
2430         (build4_stat): Drop code to compute TREE_INVARIANT.
2431         (build5_stat): Drop code to compute TREE_INVARIANT.
2432         (build7_stat): Drop code to compute TREE_INVARIANT.
2433         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
2434         * tree.h (struct tree_base): Remove invariant_flag.
2435         (TREE_INVARIANT): Remove.
2436         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
2437         (fold_builtin_expect): Check TREE_CONSTANT.
2438         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
2439         * c-tree.h (c_expr_to_decl): Drop third parameter.
2440         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
2441         (build_c_cast): Don't set TREE_INVARIANT.
2442         (pop_init_level): Don't set TREE_INVARIANT.
2443         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
2444         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
2445         TREE_CONSTANT.
2446         (gimplify_init_constructor): Don't set TREE_INVARIANT.
2447         (gimplify_addr_expr): Adjust comment.
2448         * tree-mudflap.c (mf_build_string):
2449         * print-tree.c (print_node): Don't print TREE_INVARIANT.
2450         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
2451         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
2452         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
2453         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
2454         * langhooks.h (struct lang_hooks): Drop third parameter from
2455         expr_to_decl.
2456
2457 2008-04-23  Richard Guenther  <rguenther@suse.de>
2458
2459         PR tree-optimization/27799
2460         PR tree-optimization/32921
2461         PR tree-optimization/32624
2462         * tree-ssa-structalias.c (merge_smts_into): Only merge the
2463         SMTs aliases and the tag itself into the solution.
2464         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
2465         merge the points-to solution back into the SMT aliases.
2466         (may_alias_p): Use alias_set_subset_of instead of
2467         aliases_conflict_p.  A pointer which points to
2468         memory with alias set zero may access any variable.
2469
2470 2008-04-23  Richard Guenther  <rguenther@suse.de>
2471
2472         * alias.c (alias_set_subset_of): Correctly handle asking
2473         if zero is a subset of an alias set with zero child.
2474         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
2475         (compute_flow_insensitive_aliasing): Correctly walk all
2476         pointers.  Do not unnecessarily union sets.
2477
2478 2008-04-23  Richard Guenther  <rguenther@suse.de>
2479
2480         PR middle-end/36021
2481         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
2482
2483 2008-04-22  Tomas Bily  <tbily@suse.cz>
2484
2485         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
2486         unreachable case.
2487         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
2488         NON_LVALUE_EXPR.
2489         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
2490         * tree-ssa-structalias.c (get_constraint_for): Likewise.
2491         * tree-inline.c (estimate_num_insns_1): Likewise.
2492         * varasm.c (const_hash_1, compare_constant, copy_constant)
2493         (compute_reloc_for_constant, output_addressed_constants): Likewise.
2494         * emit-rtl.c (component_ref_for_mem_expr)
2495         (set_mem_attributes_minus_bitpos): Likewise.
2496         * expr.c (highest_pow2_factor, expand_expr_real_1, )
2497         (is_aligning_offset): Likewise.
2498         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
2499         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
2500         * dojump.c (do_jump): Likewise.
2501         * builtins.c (get_pointer_alignment, get_memory_rtx)
2502         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
2503         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
2504
2505 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
2506
2507         PR rtl-optimization/36017
2508         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
2509         expanding the library call.
2510
2511 2008-04-22  Ian Lance Taylor  <iant@google.com>
2512
2513         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
2514         than size_in_bytes.
2515
2516 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
2517
2518         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
2519         of LR/CTR moves for Power6.
2520
2521 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
2522
2523         PR middle-end/36003
2524         * passes.c (init_optimization_passes): Remove
2525         pass_fast_rtl_byte_dce.
2526         
2527 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
2528
2529         PR target/29096
2530         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
2531         builtin functions to generate faster code.
2532         (_mm_cvtpu16_ps): Ditto.
2533         (_mm_cvtpi32x2_ps): Ditto.
2534
2535 2008-04-22  Nick Clifton  <nickc@redhat.com>
2536
2537         * common.opt (ftree-loop-distribution): Add Optimization
2538         attribute.
2539
2540         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
2541         (frv_expand_builtin_va_start): Likewise.
2542
2543         * config/arm/arm.c (thumb_find_work_register): Fix location of
2544         argument register count.
2545
2546 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2547
2548         Support scheduling for ColdFire V1 and V3 microarchitecture.
2549         Improve scheduling of multiplication instructions.
2550
2551         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
2552         (mac): New instruction attribute.
2553         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
2554         (m68k_sched_mac): New variable.
2555         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
2556         Handle cfv1 and cfv3.
2557         (max_insn_size): New static variable.
2558         (struct _sched_ib): New type.
2559         (sched_ib): New static variable.
2560         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
2561         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
2562         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
2563         Update.
2564         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
2565         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
2566         new variables.  Update.
2567         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2568         Add modeling of cfv3 instruction buffer.  Update.
2569         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
2570         * config/m68k/m68k.h (TUNE_CFV3): New macro.
2571         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
2572         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
2573         a particular reservation applies to.
2574         (type2): Reorganize attribute values.  Rename alu to alu_reg,
2575         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
2576         to mul_l and mul_w.
2577         (cf_ib_*): Simplify description of instruction buffer.
2578         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
2579         (cf_mem): Split into cf_mem1 and cf_mem2.
2580         (cf_v2_move_??): Rename to cfv12_alu_??.
2581         (cf_v2_move_l_??): Rename to cfv12_omove_??.
2582         (cf_v2_mul_??): Remove reservations.
2583         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
2584         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
2585         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
2586         appropriate place.
2587         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
2588         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
2589         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
2590         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
2591         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
2592         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
2593         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
2594         expansions of the above reservations for instructions of sizes
2595         1, 2 and 3 words.
2596
2597 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2598
2599         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
2600
2601 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
2602
2603         * coverage.c: Include tree-pass.h.
2604         (coverage_counter_alloc): Print da_file_name to the dump file.
2605
2606 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
2607
2608         * sbitmap.c (sbitmap_range_empty_p): New function.
2609         * sbitmap.h (sbitmap_range_empty_p): New function.
2610         * bitmap.h: Now includes obstack.h.
2611
2612 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
2613             Kenneth Zadeck  <zadeck@naturalbridge.com>
2614
2615         * dbgcnt.def (ra_byte_scan): Added.
2616         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
2617         when the last hit happens for a counter.  
2618         * timevar.def (TV_DF_BYTE_LR): New variable.
2619         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
2620         * passes.c (pass_fast_rtl_byte_dce): New pass.
2621         * fwprop.c (update_df): Added mode to call df_ref_create.
2622         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2623         DF_REF_EXTRACT_OFFSET.
2624         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
2625         DF_BYTE_LR_OUT, df_byte_lr): New macro.
2626         (df_mm): New enum.
2627         (df_ref_extract): Added mode field.
2628         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
2629         DF_REF_EXTRACT_OFFSET.
2630         (DF_REF_EXTRACT_MODE): New macro.
2631         (df_byte_lr_bb_info): New structure.
2632         (df_print_byte_regset, df_compute_accessed_bytes, 
2633         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
2634         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
2635         df_byte_lr_simulate_uses,
2636         df_byte_lr_simulate_artificial_refs_at_top,
2637         df_byte_lr_simulate_artificial_refs_at_end,
2638         df_compute_accessed_bytes): New function.
2639         (df_ref_create): Add parameter.
2640         (df_byte_lr_get_bb_info): New inline function.
2641         * df-scan.c (df_ref_record, df_uses_record,
2642         df_ref_create_structure): Added mode parameter.
2643         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
2644         df_defs_record, df_uses_record, df_get_conditional_uses,
2645         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
2646         df_entry_block_defs_collect, df_exit_block_uses_collect):
2647         Added mode parameter to calls to df_ref_record, df_uses_record,
2648         df_ref_create_structure.
2649         (df_ref_equal_p, df_ref_compare): Added test for modes.
2650         (df_ref_create_structure): Added code to set mode.  Renamed
2651         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
2652         DF_REF_EXTRACT_OFFSET.
2653         * df-core.c (df_print_byte_regset): New function.
2654         * df-byte-scan.c: New file.
2655         * df-problems.c (df_rd_transfer_function): Removed unnecessary
2656         calls to BITMAP_FREE.  
2657         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
2658         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
2659         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
2660         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
2661         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
2662         df_byte_lr_local_compute, df_byte_lr_init,
2663         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
2664         df_byte_lr_transfer_function, df_byte_lr_free, 
2665         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
2666         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
2667         df_byte_lr_simulate_uses,
2668         df_byte_lr_simulate_artificial_refs_at_top,
2669         df_byte_lr_simulate_artificial_refs_at_end): New function.
2670         * dce.c (byte_dce_process_block): New function.
2671         (dce_process_block): au is now passed in rather than computed
2672         locally.  Changed loops that look at artificial defs to not look
2673         for conditional or partial ones, because there never are any.  
2674         (fast_dce): Now is able to drive byte_dce_process_block or 
2675         dce_process_block depending on the kind of dce being done.
2676         (rest_of_handle_fast_dce): Add parameter to fast_dce.
2677         (rest_of_handle_fast_byte_dce): New function.
2678         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
2679         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
2680
2681 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
2682
2683         PR fortran/35019
2684         * gcc.h: Added fortran options that take arguments to
2685         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
2686         macros.
2687
2688 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2689
2690         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
2691         scalarization if on the LHS and not a full access.
2692
2693 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2694
2695         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
2696
2697 2008-04-18  Rafael Espindola  <espindola@google.com>
2698
2699         * tree-vrp.c (find_case_label_index): Fix the binary search.
2700         (find_case_label_range): New.
2701         (vrp_visit_switch_stmt): Use find_case_label_range.
2702         (simplify_switch_using_ranges): Use find_case_label_range.
2703
2704 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
2705
2706         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
2707         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
2708
2709 2008-04-18  Tom Tromey  <tromey@redhat.com>
2710
2711         PR libcpp/15500:
2712         * doc/cpp.texi (Implementation-defined behavior): Mention
2713         -finput-charset.
2714
2715 2008-04-18  Ian Lance Taylor  <iant@google.com>
2716
2717         * fold-const.c (pointer_may_wrap_p): New static function.
2718         (fold_comparison): Add another test for pointer overflow.  Use
2719         pointer_may_wrap_p to disable some false positives.
2720
2721 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
2722           
2723         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
2724         (fname_as_string): Match updated cpp_interpret_string prototype.
2725         (fix_string_type): Support char16_t* and char32_t*.
2726         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
2727         derivative) nodes.  Register as builtin if C++0x.
2728         (c_parse_error): Support CPP_CHAR{16,32}.
2729         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
2730         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
2731         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
2732         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
2733         CTI_CHAR32_ARRAY_TYPE>: New elements.
2734         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
2735         char32_type_node, signed_char32_type_node, char16_array_type_node,
2736         char32_array_type_node): New defines.
2737         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
2738         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
2739         (lex_string): Support CPP_STRING{16,32}, match updated
2740         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
2741         (lex_charconst): Support CPP_CHAR{16,32}.
2742         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
2743         and CPP_STRING{16,32}.
2744
2745 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2746
2747         PR bootstrap/35457
2748         * aclocal.m4: Regenerate.
2749         * configure: Regenerate.
2750
2751 2008-04-18  Jan Hubicka  <jh@suse.cz>
2752
2753         * except.c (dw2_size_of_call_site_table,
2754         sjlj_size_of_call_site_table): Use vector API for call_site_record.
2755
2756         * cgraphbuild.c (build_cgraph_edges): Update.
2757         * tree-pass.h: Update comment.
2758         * final.c (leaf_function_p): Update.
2759         (leaf_renumber_regs): Update.
2760         (rest_of_clean_state): Update.
2761         * omp-low.c (expand_omp_parallel): Update.
2762         * ipa-reference.c (analyze_function): Update.
2763         * reorg.c (find_end_label): Update.
2764         (optimize_skip): Update.
2765         (fill_simple_delay_slots): Update.
2766         (fill_simple_delay_slots): Update.
2767         (make_return_insns): Update.
2768         (dbr_schedule): Update.
2769         * gimple-low.c (record_vars_into): Update.
2770         * cfgbuild.c (make_edges): Update.
2771         * function.c (assign_stack_local): Update.
2772         (assign_parm_adjust_stack_rtl): Update.
2773         (locate_and_pad_parm): Update.
2774         (allocate_struct_function): Do not initialize stack_alignment_needed
2775         and preferred_stack_boundary here.
2776         (stack_protect_prologue): Update.
2777         (stack_protect_epilogue): Update.
2778         (expand_function_start): Initialize stack_alignment_needed,
2779         preferred_stack_boundary and max_jumptable_ents.
2780         (expand_function_end): Update.
2781         (free_after_compilation): Do not NULLify epilogue_delay_list.
2782         * function.h (struct rtl_data): Add stack_protect_guard,
2783         stack_alignment_needed,
2784         preferred_stack_boundary, epilogue_delay_list.
2785         (struct function): Remove value_histograms, stack_alignment_needed,
2786         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
2787         last_label_uid,
2788         unexpanded_var_list, stack_protect_guard.
2789         (current_function_epilogue_delay_list): Remove.
2790         * ipa-type-escape.c (analyze_function): Update.
2791         * gimplify.c (pop_gimplify_context): Update comment.
2792         * calls.c (expand_call): Update.
2793         (emit_library_call_value_1): Update.
2794         * except.c (set_nothrow_function_flags): Update.
2795         * cfgexpand.c (get_decl_align_unit): Update.
2796         (create_stack_guard): Update.
2797         (estimated_stack_frame_size): Update.
2798         (expand_used_vars): Update.
2799         (tree_expand_cfg): Free histogram earliers, init expansion variables.
2800         * explow.c (allocate_dynamic_stack_space): Update.
2801         * tree-ssa-live.c (remove_unused_locals): Update.
2802         * varasm.c (mark_constant_pool): Update.
2803         * tree-inline.c (remap_decls): Update.
2804         (initialize_cfun): Update.
2805         (declare_return_variable): Update.
2806         (inline_forbidden_p): Update.
2807         (expand_call_inline): Update.
2808         (declare_inline_vars): Update.
2809         (tree_function_versioning): Update.
2810         * tree-flow.h (value_histograms): New.
2811         (VALUE_HISTOGRAMS): New macro.
2812         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
2813         last_label_uid.
2814         * tree-cfg.c (set_bb_for_stmt): Update.
2815         (replace_by_duplicate_decl): Update.
2816         (move_block_to_fn): Update.
2817         (new_label_mapper): Update.
2818         (dump_function_to_file): Update.
2819         * ipa-struct-reorg.c (build_data_structure): Update.
2820         * cfgrtl.c (print_rtl_with_bb): Update.
2821         * reload1.c (reload): Update.
2822         (reload): Update.
2823         * config/i386/i386.c (setup_incoming_varargs_64,
2824         ix86_compute_frame_layout): Update.
2825         * config/arc/arc.c (arc_output_function_epilogue): Update.
2826
2827 2008-04-18  Marius Strobl <marius@FreeBSD.org>
2828
2829         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
2830         for FreeBSD as well.
2831         * gthr-posix95.h: Likewise.
2832
2833 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
2834
2835         PR rtl-optimization/35838
2836         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
2837         out the byte offset of the first subreg.
2838
2839 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
2840
2841         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
2842         to split_ti instead of three separate calls with single member arrays.
2843         (subti3 splitter): Ditto.
2844         (adddi3 splitter): Ditto with split_di.
2845         (subdi3 splitter): Ditto.
2846         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
2847         two separate calls with single member arrays.  Swap match_dup
2848         operands 1 and 2 to better fit into the array.
2849         (negdi2 splitter): Ditto with split_di.
2850         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
2851         two separate calls with single member arrays.  Swap match_dup operands
2852         6 and 7 to better fit into the array.
2853
2854 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
2855
2856         * config/i386/i386.c (sse_builtin_type): New.
2857         (bdesc_sse_args): Likewise.
2858         (bdesc_sse_3arg): Removed.
2859         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
2860         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
2861         IX86_BUILTIN_ROUNDPS.
2862         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
2863         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
2864         IX86_BUILTIN_ROUNDPS.
2865         (ix86_expand_sse_4_operands_builtin): Removed.
2866         (ix86_expand_sse_operands_builtin): New.
2867         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
2868         and CODE_FOR_sse4_1_roundps.
2869         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
2870         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
2871
2872 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
2873
2874         PR target/35907
2875         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
2876         regs before frame pop when needed.  If use_backchain_to_restore_sp
2877         then load backchain into a temp reg to restore vr and vrsave.  Add
2878         code to restore vr after frame pop if possible.
2879
2880 2008-04-17  Richard Guenther  <rguenther@suse.de>
2881
2882         * tree-vn.c (expressions_equal_p): Do not check type
2883         equality or compatibility before calling operand_equal_p.
2884         * fold-const.c (operand_equal_p): Check equivalence of
2885         integer constants before bailing out due to signedness or
2886         precision differences.
2887         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
2888         spurious differences in type qualification.  Ignore types
2889         for COMPONENT_REFs at all.
2890
2891 2008-04-17  Christian Bruel  <christian.bruel@st.com>
2892
2893         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
2894         msw_skip comparison.
2895         
2896 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
2897
2898         PR c/35739
2899         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
2900         reg type.
2901
2902         PR tree-optimization/35899
2903         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
2904         rather than TREE_OPERAND.
2905
2906 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
2907
2908         PR target/35944
2909         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
2910         temporary registers.  Change operand predicate to general_operand.
2911         (remainderxf3): Ditto.
2912
2913 2008-04-16  Richard Guenther  <rguenther@suse.de>
2914
2915         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
2916         * tree-affine.c (aff_combination_expand): Look through some
2917         conversions.
2918
2919 2008-04-15  Doug Kwan  <dougkwan@google.com>
2920
2921         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
2922         for hex printing.
2923         * tree-pretty-print.c (dump_generic_node): Ditto.
2924         * final.c (output_addr_const): Ditto.
2925         * dwarf2out.c (output_cfi): Ditto.
2926         * c-pretty-print.c (pp_c_integer_constant): Ditto.
2927         * print-rtl.c (print_rtx): Ditto.
2928         * print-tree.c (print_node_brief, print_node): Ditto.
2929         * c-common.c (match_case_to_enum_1): Ditto.
2930         * sched-vis.c (print_value): Ditto.
2931         * config/i386/i386.c (print_operand): Cast to long unsigned int
2932         for hex printing.
2933
2934 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
2935         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
2936         MS Windows VirtualProtect function.
2937
2938 2008-04-15  Jan Hubicka  <jh@suse.cz>
2939
2940         * gengtype.c (write_root): Param_is argument is OK.
2941         * expr.c (expand_expr_real_1): Update call of get_exception_*.
2942         * function.h: Include varray.h
2943         (rtl_eh): New stucture based on except.c one.
2944         (call_site_record): New forward declaration and vector type.
2945         * calls.c (emit_call_1): Do not call
2946         note_current_region_may_contain_throw.
2947         * except.c (eh_status): Remove cur_region, try_region since they are
2948         unused.
2949         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
2950         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
2951         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
2952         Remove call_site_data_used, call_site_data_size.
2953         Turn call_site_record into vector in function.h.
2954         (note_current_region_may_contain_throw): Remove.
2955         (get_exception_pointer, get_exception_filter): Do not take struct
2956         function argument; update.
2957         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
2958         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
2959         build_post_landing_pads, dw2_build_landing_pads,
2960         sjlj_assign_call_site_values, sjlj_mark_call_sites,
2961         sjlj_emit_function_enter, sjlj_emit_function_enter, 
2962         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
2963         sjlj_build_landing_pads, finish_eh_generation,
2964         remove_exception_handler_label, remove_eh_handler,
2965         maybe_remove_eh_handler, add_reachable_handler,
2966         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
2967         add_action_record, collect_one_action_chain, add_call_site,
2968         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
2969         sjlj_output_call_site_table, output_function_exception_table,
2970         * except.h (note_current_region_may_contain_throw): Remove
2971         (get_exception_pointer, get_exception_filter): Do not take struct
2972         function argument.
2973         * Makefile.in (GTFILES): Put varargs before struct function.
2974
2975 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
2976
2977         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
2978         punt for STRING_CST.
2979         (get_constraint_for): Deal with STRING_CST here instead.
2980
2981 2008-04-15  Richard Guenther  <rguenther@suse.de>
2982
2983         * tree-ssa-propagate.c (substitute_and_fold): Substitute
2984         statements in a basic-block with a backward walk.  Do not
2985         substitute into dead statements but instead remove those.
2986
2987 2008-04-15  Richard Guenther  <rguenther@suse.de>
2988
2989         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
2990         to zero, thus disable creation of SFTs.
2991
2992 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
2993
2994         * tree-predcom.c (suitable_reference_p): Return false if the
2995         reference can throw.
2996
2997 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
2998
2999         PR c/35751
3000         * c-decl.c (finish_decl): If extern or static var has variable
3001         size, set TREE_TYPE (decl) to error_mark_node.
3002
3003 2008-04-15  Rafael Espindola  <espindola@google.com>
3004
3005         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
3006         variable arg1.
3007
3008 2008-04-15  Richard Guenther  <rguenther@suse.de>
3009
3010         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
3011         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
3012         (visit_reference_op_load): Do walk vuse-vdef chains on
3013         vn_reference_lookup.
3014         (visit_reference_op_store): But do not here.
3015         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
3016         vn_reference_lookup.
3017         (vn_lookup_with_vuses): But do so here.
3018
3019 2008-04-14  Ian Lance Taylor  <iant@google.com>
3020
3021         * fold-const.c (fold_overflow_warning): Remove assertion.
3022
3023 2008-04-15  Ben Elliston  <bje@au.ibm.com>
3024
3025         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
3026         temp1 local variables.
3027
3028 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
3029
3030         PR target/35661
3031         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
3032         ".text.unlikely" section as executable.
3033
3034 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
3035
3036         * config/ia64/ia64.c (rtx_needs_barrier): Handle
3037         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
3038         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
3039         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
3040         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
3041         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
3042         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
3043
3044 2008-04-14  Ian Lance Taylor  <iant@google.com>
3045
3046         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
3047         * fold-const.c (fold_comparison): If appropriate, test
3048         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
3049         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
3050         reassociating a pointer type.
3051         * doc/invoke.texi (Optimize Options): Document that
3052         -fstrict-overflow applies to pointer wraparound.
3053
3054 2008-04-13  Jan Hubicka  <jh@suse.cz>
3055
3056         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
3057
3058 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
3059
3060         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
3061         we are going to "save the world".
3062
3063 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
3064
3065         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
3066         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
3067         operand 0 constraint, not "=".
3068
3069 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
3070
3071         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
3072
3073 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
3074
3075         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
3076         of size of positions_needed * CHAR_BIT.
3077
3078 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
3079
3080         PR middle-end/35897
3081         * dse.c (store_info): Change positions_needed to unsigned
3082         HOST_WIDE_INT.
3083         (lowpart_bitmask): New.
3084         (record_store): Cast to unsigned HOST_WIDE_INT for
3085         positions_needed.  Assert width <= size of positions_needed *
3086         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
3087         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
3088         lowpart_bitmask to set mask.
3089
3090 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3091
3092         * config/bfin/constraints.md: New file.
3093         * config/bfin/bfin.md: Include it.
3094         (adddi3): Use satisfies_constraint functions instead of the old macros.
3095         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
3096         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
3097         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
3098         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
3099         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
3100         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
3101         EXTRA_CONSTRAINT): Delete.
3102         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
3103         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
3104         of the old macros.
3105         * config/bfin/bfin.c: Include "tm-constrs.h".
3106         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
3107         Use satisfies_constraint functions instead of the old macros.
3108         * doc/md.texi (Blackfin Constraints): Update file name reference.
3109
3110 2008-04-11  Richard Guenther  <rguenther@suse.de>
3111
3112         PR tree-optimization/35869
3113         * tree-vrp.c (execute_vrp): Move switch statement update after
3114         jump threading.  Schedule another cfg cleanup run.
3115
3116 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
3117
3118         PR c/35744
3119         * attribs.c (decl_attributes): Return early on errorneous node.
3120
3121 2008-04-10  Oleg Ryjkov  <olegr@google.com>
3122
3123         * tree.h (struct tree_base): Added a new flag default_def_flag.
3124         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
3125
3126 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
3127
3128         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
3129
3130 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3131
3132         PR target/35768
3133         * pa.md: Define mode iterator P.  Define mode attribute dwc.
3134         (dcacheflush): Update pattern to use iterator P and attribute dwc.
3135         (icacheflush): Likewise.
3136         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
3137         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
3138
3139 2008-04-11  Ben Elliston  <bje@au.ibm.com>
3140
3141         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
3142
3143 2008-04-10  Rafael Espindola  <espindola@google.com>
3144
3145         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
3146         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
3147         (extract_range_from_expr): The same.
3148
3149 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
3150
3151         * config/mips/mips.md (GPR2): New mode iterator.
3152         (seq): Add comment.
3153         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
3154         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
3155         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
3156         Rewrite these to take two modes, the mode of comparison and the
3157         mode of the destination.
3158         * config/mips/mips.c (mips_expand_scc): Instead of having
3159         paradoxical subreg as destination, expand "narrowing" scc if mode
3160         of comparison is SI and target is requested in DI mode.
3161         (mips_emit_int_order_test): Update comment.  Make mode of
3162         comparison match CMP0 rather than TARGET.  When creating inverse
3163         target use mode of TARGET.
3164
3165 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
3166
3167         * gcov-dump.c (tag_summary): Only print summaries for the first
3168         GCOV_COUNTERS_SUMMABLE counters.
3169
3170 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
3171
3172         * config/i386/i386.md (absneg): New code iterator.
3173         (absnegprefix): New code attribute.
3174         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
3175         patterns using absneg code iterator.
3176         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
3177         using absneg code iterator.
3178         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
3179         *neg<mode>2 patterns using absneg code iterator.
3180         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
3181         *negextendsfdf2 patterns using absneg code iterator.
3182         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
3183         *negextendsfxf2 patterns using absneg code iterator.
3184         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
3185         *negextendsfdf2 patterns using absneg code iterator.
3186         * config/i386/sse.md (<code><mode>2): Macroize expander from
3187         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
3188
3189 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
3190
3191         * config/s390/s390.h: Remove the remains of the recent search
3192         & replace action of current_function_outgoing_args_size.
3193
3194 2008-04-10  Ira Rosen  <irar@il.ibm.com>
3195
3196         PR tree-optimization/35821
3197         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
3198         NEW_STMT_LIST is not NULL.
3199
3200 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
3201
3202         PR libstdc++/35597
3203         * toplev.c (process_options): Remove -ffunction-sections debugging
3204         warning.
3205
3206 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
3207
3208         PR middle-end/PR28690
3209         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
3210         than gen_rtx_fmt_ee to perform more canonicalizations.
3211
3212 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3213
3214         PR driver/35665
3215         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
3216
3217 2008-04-09  Richard Guenther  <rguenther@suse.de>
3218
3219         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
3220         (dump_function_to_file): Dump function arguments with types.
3221
3222 2008-04-08  Richard Guenther  <rguenther@suse.de>
3223
3224         * fold-const.c (fold_widened_comparison): Do not allow
3225         sign-changes that change the result.
3226
3227 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
3228
3229         PR target/35839
3230         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
3231         kinds of indirect references.
3232
3233 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
3234
3235         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
3236         GNU Fortran language string.
3237
3238 2008-04-08  Rafael Espindola  <espindola@google.com>
3239
3240         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
3241         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
3242         * tree.h (tree_call_nonnegative_warnv_p): New.
3243
3244 2008-04-08  Jan Hubicka  <jh@suse.cz>
3245
3246         * function.c (free_after_compilation): Clear out regno_reg_rtx
3247         pointer.
3248
3249 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
3250
3251         Revert
3252         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
3253
3254         PR middle-end/PR28690
3255         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
3256         same precedence as REG_POINTER and MEM_POINTER operands.
3257
3258 2008-04-08  Richard Guenther  <rguenther@suse.de>
3259
3260         PR middle-end/35834
3261         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
3262         for adding index to base.
3263
3264 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
3265
3266         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
3267         (MINGW_ENABLE_EXECUTE_STACK): New.
3268         (IN_LIBGCC2): For libgcc include windows.h file for
3269         function declarations.
3270
3271 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
3272
3273         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
3274         and tem2 if tem1 is not a REG or MULT.
3275
3276 2008-04-08  Jan Hubicka  <jh@suse.cz>
3277
3278         * function.h (incomming_args): Break out of struct function.
3279         (function_subsections): Break out of struct function.
3280         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
3281         return_rtx and hard_reg_initial_vals from struct function.
3282         Kill inl_max_label_num.
3283         (current_function_pops_args, current_function_args_info,
3284         current_function_args_size, current_function_args_size,
3285         current_function_pretend_args_size,
3286         current_function_outgoing_args_size,
3287         current_function_internal_arg_pointer, current_function_return_rtx):
3288         Kill compatibility accestor macros.
3289         * builtins.c (expand_builtin_apply_args_1): Update.
3290         (expand_builtin_next_arg): Update.
3291         * df-scan.c (df_get_call_refs): Update.
3292         * dbxout.c (dbxout_function_end): Update.
3293         * dwarf2out.c (dwarf2out_switch_text_section): Update.
3294         (output_line_info): Update.
3295         (secname_for_decl): Update.
3296         (dwarf2out_var_location): Update.
3297         * function.c (free_after_compilation): Update.
3298         (assign_parm_find_stack_rtl): Update.
3299         (assign_parms): Update.
3300         (expand_dummy_function_end): Update.
3301         (expand_function_end): Update.
3302         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
3303         (expand_call): Update.
3304         (emit_library_call_value_1): Update.
3305         (store_one_arg): Update.
3306         * varasm.c (initialize_cold_section_name): Update.
3307         (unlikely_text_section): Update.
3308         (unlikely_text_section_p): Update.
3309         (assemble_start_function): Update.
3310         (assemble_end_function): Update.
3311         (default_section_type_flags): Update.
3312         (switch_to_section): Update.
3313         * integrate.c (set_decl_abstract_flags): Update.
3314         (get_hard_reg_initial_val): Update.
3315         (has_hard_reg_initial_val): Update.
3316         (allocate_initial_values): Update.
3317         * resource.c (init_resource_info): Update.
3318         * config/alpha/alpha.c (NUM_ARGS): Update.
3319         (direct_return): Update.
3320         (alpha_va_start): Update.
3321         (alpha_sa_size): Update.
3322         (alpha_initial_elimination_offset): Update.
3323         (alpha_expand_prologue): Update.
3324         (alpha_start_function): Update.
3325         (alpha_expand_epilogue): Update.
3326         (unicosmk_initial_elimination_offset):
3327         * config/alpha/alpha.md (call expander): Update.
3328         * config/s390/s390.c (s390_register_info): Update.
3329         (s390_register_info): Update.
3330         (s390_frame_info): Update.
3331         (s390_initial_elimination_offset): Update.
3332         (s390_build_builtin_va_list): Update.
3333         (s390_va_start): Update.
3334         * config/spu/spu.c (direct_return): Update.
3335         (spu_expand_prologue): Update.
3336         (spu_initial_elimination_offset): Update.
3337         (spu_build_builtin_va_list): Update.
3338         (spu_va_start): Update.
3339         * config/sparc/sparc.c (sparc_init_modes): Update.
3340         (sparc_compute_frame_size): Update.
3341         (function_value): Update.
3342         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
3343         * config/i386/i386.md (return expander): Update.
3344         * config/i386/i386.c (ix86_va_start): Update.
3345         (ix86_can_use_return_insn_p): Update.
3346         (ix86_compute_frame_layout): Update.
3347         (ix86_expand_epilogue): Update.
3348         * config/sh/sh.c (output_stack_adjust): Update.
3349         (calc_live_regs): Update.
3350         (sh_expand_prologue): Update.
3351         (sh_builtin_saveregs): Update.
3352         (sh_va_start): Update.
3353         (initial_elimination_offset): Update.
3354         (sh_allocate_initial_value): Update.
3355         (sh_function_ok_for_sibcall): Update.
3356         (sh_get_pr_initial_val): Update.
3357         * config/sh/sh.md (return expander): Update.
3358         * config/avr/avr.c (frame_pointer_required_p): UPdate.
3359         * config/crx/crx.c (crx_compute_frame): UPdate.
3360         (crx_initial_elimination_offset): UPdate.
3361         * config/xtensa/xtensa.c (compute_frame_size): Update
3362         (xtensa_builtin_saveregs): Update.
3363         (xtensa_va_start): Update.
3364         (order_regs_for_local_alloc): Update.
3365         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
3366         (xstormy16_expand_builtin_va_start): Update.
3367         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
3368         * config/m68hc11/m68hc11.md (return expanders): Update.
3369         * config/m68hc11/m68hc11.c (expand_prologue): Update.
3370         (expand_epilogue): Update.
3371         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
3372         (cris_simple_epilogue): Update.
3373         (cris_expand_prologue): Update.
3374         (cris_expand_epilogue): Update.
3375         * config/iq2000/iq2000.c (iq2000_va_start): Update.
3376         (compute_frame_size): Update.
3377         * config/mt/mt.c (mt_compute_frame_size): Update.
3378         * config/mn10300/mn10300.c (expand_prologue): Update.
3379         (expand_epilogue): Update.
3380         (initial_offset): Update.
3381         (mn10300_builtin_saveregs):
3382         * config/mn10300/mn10300.md (return expander): Update.
3383         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
3384         (ia64_initial_elimination_offset): Update.
3385         (ia64_initial_elimination_offset): Update.
3386         (ia64_expand_prologue): Update.
3387         * config/m68k/m68k.md (return expander): Update.
3388         * config/rs6000/rs6000.c (rs6000_va_start): Update.
3389         (rs6000_stack_info): Update.
3390         * config/mcore/mcore.c (layout_mcore_frame): Update.
3391         (mcore_expand_prolog): Update.
3392         * config/arc/arc.c (arc_compute_frame_size): Update.
3393         * config/score/score3.c (score3_compute_frame_size): Update.
3394         * config/score/score7.c (score7_compute_frame_size): Update.
3395         * config/arm/arm.c (use_return_insn): Update.
3396         (thumb_find_work_register): Update.
3397         (arm_compute_save_reg_mask): Update.
3398         (arm_output_function_prologue): Update.
3399         (arm_output_epilogue): Update.
3400         (arm_size_return_regs): Update.
3401         (arm_get_frame_offsets): Update.
3402         (arm_expand_prologue): Update.
3403         (thumb_exit): Update.
3404         (thumb_unexpanded_epilogue): Update.
3405         (thumb1_output_function_prologue): Update.
3406         * config/pa/pa.md (return expander): Update.
3407         * config/pa/pa.c (compute_frame_size): Update.
3408         (hppa_builtin_saveregs): Update.
3409         * config/mips/mips.c (mips_va_start): Update.
3410         (mips16_build_function_stub): Update.
3411         (mips_compute_frame_info): Update.
3412         (mips_restore_gp): Update.
3413         (mips_output_function_prologue): Update.
3414         (mips_expand_prologue): Update.
3415         * config/v850/v850.c (compute_frame_size): Update.
3416         (expand_prologue): * config/mmix/mmix.c (along): update.
3417         (mmix_initial_elimination_offset): update.
3418         (mmix_reorg): update.
3419         (mmix_use_simple_return): update.
3420         (mmix_expand_prologue): update.
3421         (mmix_expand_epilogue): Update.
3422         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
3423         (emit_link_insn): Update.
3424
3425 2008-04-08  Anatoly Sokolov <aesok@post.ru>
3426
3427         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
3428         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
3429         instructions.
3430         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
3431         atmega103 device.
3432
3433 2008-04-07  Jan Hubicka  <jh@suse.cz>
3434
3435         * function.h (rtl): Rename to x_rtl.
3436         (crtl): New define.
3437         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
3438         frame_offset, stack_check_probe_note, arg_pointer_save_area,
3439         used_temp_slots avail_temp_slots, temp_slot_level,
3440         nonlocal_goto_handler_labels): Update accesstors.
3441         (rtl): New global variable.
3442         (struct function): Move some fileds to rtl_data.
3443         (get_arg_pointer_save_area): Update prototype.
3444         * builtins.c (expand_builtin_setjmp_receiver): Update call of
3445         get_arg_pointer_save_area.
3446         * expr.c (init_expr): Update
3447         * function.c (get_frame_size): Update
3448         (assign_stack_local): Update
3449         (expand_function_end): Update.
3450         (get_art_pointer_save_area): Update
3451         * function.h 
3452         * emit-rtl.c (rtl): Declare.
3453         (regno_reg_rtx): Declare.
3454         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
3455         Update.
3456         (gen_reg_rtx): Update.
3457         * varasm.c (n_deferred_constatns): Update accestor.
3458         (init_varasm_status): Do not allocate varasm_status.
3459         (force_const_mem, get_pool_size, output_constant_pool): Update.
3460         * stmt.c (force_label_rtx): Do not use x_ prefixes.
3461         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
3462         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
3463         * sparc/sparc.h (INIT_EXPANDERS): Update.
3464         * ia64/ia64.h (INIT_EXPANDERS): Update.
3465
3466 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
3467
3468         * reload.c (push_secondary_reload): Add missing break to for loop.
3469
3470 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
3471
3472         PR middle-end/PR28690
3473         * rtlanal.c: Update copyright years.
3474         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
3475         as REG_POINTER and MEM_POINTER operands.
3476         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
3477         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
3478         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
3479         * gcse.c: Update copyright years.
3480         (pre_delete): Call gen_reg_rtx_and_attrs.
3481         (hoist_code): Likewise.
3482         (build_store_vectors): Likewise.
3483         (delete_store): Likewise.
3484         * loop-invariant.c (move_invariant_reg): Likewise.
3485         Update copyright years.
3486
3487 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
3488
3489         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
3490         control string instead of quoted.
3491
3492 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
3493
3494         * doc/rtl.texi: Rewrite of subreg section.
3495
3496 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
3497
3498         PR/35842
3499         * config/i386/i386.c (legitimize_pic_address): Add treating
3500         of dllimport SYM_REF's.
3501         (legitimize_dllimport_symbol): Add prototype.
3502
3503 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3504
3505         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
3506         reference in constructor with non self-referential type.
3507
3508 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
3509
3510         Removal of Return with Depressed Stack Pointer support
3511         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
3512         (ECF_SP_DEPRESSED): Likewise.
3513         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
3514         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
3515         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3516         (expand_call): Do not test ECF_SP_DEPRESSED.
3517         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3518         * function.c (keep_stack_depressed): Delete.
3519         (handle_epilogue_set): Likewise.
3520         (update_epilogue_consts): Likewise.
3521         (emit_equiv_load): Likewise.
3522         (thread_prologue_and_epilogue_insns): Remove support for Return with
3523         Depressed Stack Pointer.
3524         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
3525
3526 2008-04-06  Richard Guenther  <rguenther@suse.de>
3527
3528         PR tree-optimization/35400
3529         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
3530         information from SSA_NAMEs.
3531
3532 2008-04-06  Anatoly Sokolov <aesok@post.ru>
3533
3534         * config/avr/avr.h (avr_mega_p): Remove declaration.
3535         (AVR_MEGA): Remove macro.
3536         * config/avr/avr.c (avr_mega_p): Remove variable.
3537         (avr_override_options): Remove inicializion of avr_mega_p.
3538         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3539         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
3540         (avr_jump_mode): (Ditto.).
3541         (avr_output_progmem_section_asm_op): (Ditto.).
3542         (avr_asm_init_sections): (Ditto.).
3543         (avr_asm_init_sections): (Ditto.).
3544         (avr_rtx_costs): (Ditto.).
3545         * config/avr/avr.md: (Ditto.).
3546         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
3547         '__AVR_MEGA__'.
3548
3549 2008-04-06  Richard Guenther  <rguenther@suse.de>
3550
3551         PR tree-optimization/35842
3552         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
3553         is_gimple_invariant_address.
3554
3555 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3556
3557         * gcc.c (default_compilers): Sync Fortran extensions list with
3558         that in fortran/lang-specs.h.
3559         * doc/invoke.texi: Likewise.
3560         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
3561         * dwarf2out.c (gen_compile_unit_die): Likewise.
3562
3563 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
3564
3565         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
3566
3567 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
3568
3569         PR target/12329
3570         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
3571         attribute is used for nested functions.
3572
3573 2008-04-05  Jan Hubicka  <jh@suse.cz>
3574
3575         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
3576
3577         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
3578         letter argument.
3579         (dump_files): Update.
3580         (enable_rtl_dump_file): Do not accept letter argument.
3581         * tree-pass.h (dump_file_info): Remove letter argument.
3582         * toplev.c (decode_d_option): Update -da handling.
3583         * toplev.h (enable_rtl_dump_file): Update prototype.
3584         * passes.c (register_one_dump_file): Do not accept IPA argument; work
3585         it out based on pass type.
3586         (register_dump_files_1): Likewise.
3587         (init_optimization_passes): Update register_one_dump_file calls.
3588         (execute_one_pass): Sanity check that IPA passes are called at IPA
3589         level and RTL passes at RTL level.
3590         (execute_pass_list): IPA pass can not be after or subpass of
3591         GIMPLE/RTL pass.
3592         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
3593         disallov RTL subpasses of IPA subpasses.
3594
3595 2008-04-05  Ben Elliston  <bje@au.ibm.com>
3596
3597         * tree-cfg.c (need_fake_edge_p): Return false for calls to
3598         builtins that return exactly once and do not throw. Cache call to
3599         call_expr_flags.
3600
3601 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
3602
3603         PR rtl-optimization/34916
3604         PR middle-end/35519
3605         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
3606         between instruction pairs.
3607
3608 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
3609
3610         * doc/invoke.texi: Document -mbitops for SH.
3611         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
3612         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
3613         * config/sh/sh.c (print_operand): Add %t operand code.
3614         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
3615         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
3616         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
3617         (extendqihi2): Likewise.
3618         (movqi_i): Likewise.
3619         (insv): Use bset, bclr and bst instructions for SH2A if possible.
3620         (extv): Use bld instruction for SH2A if possible.
3621         (extzv): Likewise.
3622         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
3623         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
3624         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
3625         (bset.b, bclr.b): Define peepholes.
3626         * config/sh/sh.opt (mbitops): New option.
3627
3628 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
3629
3630         PR target/35620
3631         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
3632         and view convert expression.
3633
3634 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
3635
3636         PR target/35364
3637         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
3638
3639 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
3640
3641         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
3642
3643         * config/i386/cpuid.h (bit_AES): New.
3644         (bit_PCLMUL): Likewise.
3645
3646         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
3647         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
3648         SSE2 if AES or PCLMUL is enabled.
3649         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
3650         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
3651         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
3652         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
3653         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
3654         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
3655         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
3656         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
3657         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
3658         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
3659         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
3660         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
3661         __builtin_ia32_aeskeygenassist128 and
3662         __builtin_ia32_pclmulqdq128.
3663         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
3664         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
3665         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
3666
3667         * config/i386/i386.h (TARGET_AES): New.
3668         (TARGET_PCLMUL): Likewise.
3669         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
3670
3671         * config/i386/i386.md (UNSPEC_AESENC): New.
3672         (UNSPEC_AESENCLAST): Likewise.
3673         (UNSPEC_AESDEC): Likewise.
3674         (UNSPEC_AESDECLAST): Likewise.
3675         (UNSPEC_AESIMC): Likewise.
3676         (UNSPEC_AESKEYGENASSIST): Likewise.
3677         (UNSPEC_PCLMUL): Likewise.
3678
3679         * config/i386/i386.opt (maes): New.
3680         (mpclmul): Likewise.
3681
3682         * config/i386/sse.md (aesenc): New pattern.
3683         (aesenclast): Likewise.
3684         (aesdec): Likewise.
3685         (aesdeclast): Likewise.
3686         (aesimc): Likewise.
3687         (aeskeygenassist): Likewise.
3688         (pclmulqdq): Likewise.
3689
3690         * config/i386/wmmintrin.h: New.
3691
3692         * doc/extend.texi: Document AES and PCLMUL built-in function.
3693
3694         * doc/invoke.texi: Document -maes and -mpclmul.
3695
3696 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
3697
3698         * function.c (free_after_parsing): Replace with
3699         cxx_push_function_context from C++ front-end.
3700         (allocate_struct_function): Don't call langhook.
3701         * langhooks.h (struct lang_hooks_for_functions): Delete.
3702         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
3703         member "function".
3704         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
3705         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
3706         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
3707         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
3708         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
3709         remove LANG_HOOKS_FUNCTION_INITIALIZER.
3710         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
3711
3712         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
3713         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
3714         
3715 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
3716
3717         PR c/35440
3718         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
3719         for all types.
3720
3721 2008-04-04  Richard Guenther  <rguenther@suse.de>
3722
3723         PR middle-end/35823
3724         * fold-const.c (optimize_minmax_comparison): Use the correct
3725         type for the constant in the simplified comparison.
3726
3727 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
3728
3729         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
3730         Pass L2 size as "--param l2-cache-size" to the compiler.
3731         (decode_l2_cache): New function to decode L2 cache parameters using
3732         0x8000006 extended cpuid function.
3733         (detect_caches_amd): Determine parameters of L2 cache using
3734         decode_l2_caches function.
3735         (decode_caches_intel): Decode L2 cache parameters.
3736         (detect_caches_intel): Determine L2 cache parameters using
3737         decode_caches_intel and decode_l2_caches functions.
3738
3739 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
3740
3741         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
3742         secondary input reload for subword loads from the constant pool.
3743
3744 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
3745
3746         PR target/35713
3747         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
3748           constants of the appropriate size for runtime calculations.
3749
3750         PR c/35712
3751         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
3752           decimal-float literal constant zero.
3753
3754 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
3755
3756         PR c/35738
3757         * c-parser.c (c_parser_omp_atomic): Call
3758         default_function_array_conversion on the RHS.
3759
3760         PR middle-end/35818
3761         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
3762         call is_variable_sized if decl has incomplete type.
3763
3764 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
3765
3766         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
3767
3768 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
3769
3770         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
3771         iterators.
3772         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
3773         (sgt<u>): Merge sgt and sgtu into new expander.
3774         (sgt, sgtu): Remove expanders.
3775         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
3776         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
3777         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
3778         *sgtu_<mode>_mips16 into new pattern.
3779         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
3780         (sge<u>): Merge sge and sgeu into new expander.
3781         (sge, sgeu): Remove expanders.
3782         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
3783         new pattern.
3784         (*sge_<mode>, second *sge_<mode>): Remove patterns.
3785         (slt<u>): Merge slt and sltu into new expander.
3786         (slt, sltu): Remove expanders.
3787         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
3788         (*slt_<mode>, *sltu_<mode>): Remove patterns.
3789         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
3790         *sltu_<mode>_mips16 into new pattern.
3791         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
3792         (sle<u>): Merge sle and sleu into new expander.
3793         (sle, sleu): Remove expanders.
3794         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
3795         (*sle_<mode>, *sleu_<mode>): Remove patterns.
3796         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
3797         *sleu_<mode>_mips16 into new pattern.
3798         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
3799
3800 2008-04-03  Jan Hubicka  <jh@suse.cz>
3801
3802         PR tree-optimization/35795
3803         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
3804         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3805         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3806         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
3807         * score/score3.c (score3_output_mi_thunk): Likewise.
3808         * score/score7.c (score7_output_mi_thunk): Likewise.
3809         * mips/mips.c (mips_output_mi_thunk): Likewise.
3810
3811 2008-04-03  Richard Guenther  <rguenther@suse.de>
3812
3813         * tree-vrp.c (extract_range_from_unary_expr): Handle all
3814         conversions.  Simplify code.
3815
3816 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
3817
3818         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
3819
3820 2008-04-03  Tom Tromey  <tromey@redhat.com>
3821             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3822
3823         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
3824         * config/bfin/t-bfin-linux (generated_files): Add
3825         linux-sysroot-suffix.h.
3826         * doc/install.texi (Prerequisites): Require make 3.80.
3827         * doc/sourcebuild.texi (Front End Directory): Document new
3828         variable.
3829         * Makefile.in (generated_files): New variable.
3830         (ALL_HOST_OBJS): New variable.
3831         ($(ALL_HOST_OBJS)): New target.
3832
3833 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
3834
3835         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
3836         (remap_block): Call id->transform_lang_insert_block instead
3837         of langhook.
3838         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
3839         Set id.transform_lang_insert_block to NULL.
3840         (clone_body): Move to cp/optimize.c
3841         * tree-inline.h (struct copy_body_data): Change
3842         transform_lang_insert_block to function pointer.
3843         (copy_generic_body, copy_decl_no_change): Export.
3844         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
3845         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
3846         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
3847
3848         * c-tree.h (insert_block): Kill.
3849         * c-decl.c (insert_block): Kill.
3850
3851 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
3852
3853         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3854         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
3855         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
3856         argument.
3857         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
3858         argument, call {push,pop}_function_context from here.
3859         * c-parser.c: Use c_{push,pop}_function_context.
3860
3861         * function.c (push_function_context_to): Move meat ...
3862         (push_function_context): ... here.  Simplify.
3863         * function.c (pop_function_context_from): Move meat ...
3864         (pop_function_context): ... here.  Simplify.
3865         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
3866         leave_nested).
3867         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3868         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
3869         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
3870         * tree.h (push_function_context_to, pop_function_context_from): Remove.
3871
3872 2008-04-03  Ben Elliston  <bje@au.ibm.com>
3873
3874         * expmed.c (extract_force_align_mem_bit_field): Remove.
3875
3876 2008-04-03  Richard Guenther  <rguenther@suse.de>
3877
3878         PR middle-end/35800
3879         * expr.h (try_casesi): Adjust prototype.
3880         * expr.c (try_casesi): Take fallback label as extra parameter.
3881         Use that for gen_casesi if default_label is NULL.
3882         * stmt.c (expand_case): Pass fallback label to try_casesi,
3883         make sure to fill gaps with a fallback label if default_label
3884         is not present.
3885
3886 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
3887
3888         PR target/35801
3889         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
3890
3891 2008-04-03  Ben Elliston  <bje@au.ibm.com>
3892
3893         * expmed.c (extract_split_bit_field): Remove if (0) code.
3894         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
3895         (do_ds_constraint): Likewise.
3896
3897 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
3898
3899         * doc/cppopts.texi (-dU): Document.
3900         * c-common.h (flag_dump_macros): Update comment.
3901         * c-opts.c (handle_OPT_d): Handle -dU.
3902         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
3903         dump_queued_macros, cb_used_define, cb_used_undef): New.
3904         (init_pp_output): Handle -dU.
3905         (cb_line_change): Call dump_queued_macros.
3906         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
3907
3908 2008-04-02  Anatoly Sokolov <aesok@post.ru>
3909
3910         * config/avr/predicates.md (io_address_operand): New predicate. 
3911         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
3912         * config/avr/avr.c (avr_io_address_p): Remove function.
3913         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
3914         'avr_io_address_p' function.
3915         (out_movhi_r_mr): (Ditto.).
3916         (out_movqi_mr_r): (Ditto.).
3917         (out_movhi_mr_r): (Ditto.).
3918         (avr_address_cost): (Ditto.).
3919
3920 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
3921
3922         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
3923         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
3924         in 32bit mode when XMM registers are available to avoid store
3925         forwarding stalls.
3926         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
3927         corresponding post-reload splitters.
3928
3929 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
3930
3931         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
3932         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
3933         __builtin_ia32_roundss.
3934         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
3935         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
3936         __builtin_ia32_roundss.
3937         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
3938         IX86_BUILTIN_SHUFPD here.
3939
3940 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
3941
3942         * config/i386/i386.md (plogic): New.
3943         (plogicprefix): Likewise.
3944
3945         * config/i386/mmx.md (mmx_<code><mode>3): New.
3946         (mmx_and<mode>3): Removed.
3947         (mmx_ior<mode>3): Likewise.
3948         (mmx_xor<mode>3): Likewise.
3949
3950         * config/i386/sse.md (<code><mode>3): New.
3951         (*<code><mode>3): Likewise.
3952         (*<code><mode>3): Likewise.
3953         (<code><mode>3): Likewise.
3954         (*sse_<code><mode>3): Likewise.
3955         (*sse2_<code><mode>3): Likewise.
3956         (<code>tf3): Likewise.
3957         (*<code>tf3): Likewise.
3958         (and<mode>3): Likewise.
3959         (*and<mode>3): Likewise.
3960         (ior<mode>3): Removed.
3961         (*ior<mode>3): Likewise.
3962         (xor<mode>3): Likewise.
3963         (*xor<mode>3): Likewise.
3964         (*and<mode>3): Likewise.
3965         (*ior<mode>3): Likewise.
3966         (*xor<mode>3): Likewise.
3967         (and<mode>3): Likewise.
3968         (*sse_and<mode>3): Likewise.
3969         (*sse2_and<mode>3): Likewise.
3970         (andtf3): Likewise.
3971         (*andtf3): Likewise.
3972         (ior<mode>3): Likewise.
3973         (*sse_ior<mode>3): Likewise.
3974         (*sse2_ior<mode>3): Likewise.
3975         (iortf3): Likewise.
3976         (*iortf3): Likewise.
3977         (xor<mode>3): Likewise.
3978         (*sse_xor<mode>3): Likewise.
3979         (*sse2_xor<mode>3): Likewise.
3980         (xortf3): Likewise.
3981         (*xortf3): Likewise.
3982
3983 2008-04-02  Richard Guenther  <rguenther@suse.de>
3984
3985         PR tree-optimization/14495
3986         PR tree-optimization/34793
3987         * tree-vrp.c (struct switch_update): New structure.
3988         (to_remove_edges, to_update_switch_stmts): New VECs.
3989         (simplify_switch_using_ranges): New function.  Remove not taken
3990         case labels and edges.
3991         (simplify_stmt_using_ranges): Call it.
3992         (identify_jump_threads): Mark edges we have queued for removal
3993         so we don't thread them.
3994         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
3995         case label vector.
3996         * tree-cfg.c (group_case_labels): Deal with missing default label.
3997         (tree_verify_flow_info): Allow missing default label.
3998         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
3999         (emit_case_nodes): Likewise.
4000         (expand_case): Do not rely on the default label to be present.
4001         * expr.c (try_casesi): Deal with NULL default_label.
4002         (do_tablejump): Likewise.
4003
4004 2008-04-02  Richard Guenther  <rguenther@suse.de>
4005
4006         PR tree-optimization/14495
4007         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
4008         SWITCH_EXPR here ...
4009         (vrp_visit_switch_stmt): ... but here (new function).
4010         (find_case_label_index): New helper function.
4011         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
4012
4013 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
4014
4015         * fwprop.c: Fix ISO-C99ism.
4016
4017 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
4018
4019         PR bootstrap/35752
4020         * Makefile.in (objdir): Set it here.
4021         * configure.ac: Not here.  Find dynamic linker characteristics.
4022         * exec-tool.in: Use them.
4023         * aclocal.m4: Regenerate.
4024         * configure: Regenerate.
4025
4026 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
4027
4028         * expr.c (expand_var): Delete it.
4029         * expr.h (expand_var): Delete prototype.
4030         * function.c (expand_function_start): Use expand_decl instead.
4031         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
4032         langhook.
4033
4034 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
4035
4036         PR rtl-optimization/35542
4037         * fwprop.c (forward_propagate_and_simplify): Replace
4038         loc_reg_mentioned_in_p with reg_mentioned_p.
4039
4040 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
4041
4042         PR rtl-optimization/35281
4043         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
4044         (propagate_rtx_1): Handle PR_HANDLE_MEM.
4045         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
4046         (varying_mem_p): Move above propagate_rtx.
4047         (all_uses_available_at): Do not check MEMs.
4048
4049 2008-04-02  Rafael Espindola  <espindola@google.com>
4050
4051         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
4052         (register_edge_assert_for_2): Split the cond argument.
4053         (register_edge_assert_for_1): Adjust for the change in
4054         register_edge_assert_for_2.
4055         (register_edge_assert_for): Split the cond argument.
4056         (find_switch_asserts): Adjust for the change in
4057         register_edge_assert_for.
4058
4059 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
4060
4061         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
4062         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
4063         offsets for 64-bit mingw.
4064         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
4065         abi for x86_64-pc-mingw.
4066
4067 2008-04-02  Richard Guenther  <rguenther@suse.de>
4068
4069         * tree-vrp.c (extract_range_from_assert): Make sure to not
4070         produce range min/max with TREE_OVERFOW set.
4071         If merging a anti-range and a range keep the anti-range if
4072         the range covers all values of the type.
4073         (register_edge_assert_for_2): Only allow sign-changing
4074         conversions in detecting canonical range checks.  Also
4075         register an assert for the unsigned name if useful.
4076
4077         PR tree-optimization/35787
4078         * tree-vrp.c (vrp_val_max): New function.
4079         (vrp_val_min): Likewise.
4080         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
4081         (vrp_val_is_min): Likewise.
4082         (supports_overflow_infinity): Use vrp_val_{min,max}.
4083         (negative_overflow_infinity): Likewise.
4084         (positive_overflow_infinity): Likewise.
4085         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
4086         (is_positive_overflow_infinity): Likewise.
4087         (is_overflow_infinity): Likewise.
4088         (avoid_overflow_infinity): Use vrp_val_{min,max} and
4089         vrp_val_is_{min,max}.
4090         (set_and_canonicalize_value_range): Canonicalize anti-ranges
4091         to ranges if possible.  Avoid empty ranges.
4092
4093 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4094
4095         PR middle-end/35705
4096         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
4097         the expression is a function address.
4098
4099 2008-04-01  George Helffrich  <george@gcc.gnu.org>
4100
4101         PR fortran/35154, fortran/23057
4102         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
4103         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
4104         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
4105         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
4106         in common.
4107         (dbxout_syms): Check for COMMON-based symbol and wrap in
4108         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
4109         in bracket for efficiency.
4110
4111         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
4112         using DW_TAG_common_block + member offset.
4113         (add_pubname_string): New function.
4114         (dw_expand_expr): New function to find block name and offset for
4115         COMMON var.
4116         (common_check): New function to check whether symbol in Fortran COMMON.
4117         (gen_variable_die): If COMMON, use DW_TAG_common_block.
4118
4119 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
4120
4121         PR c/35436
4122         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
4123
4124 2008-04-02  Ben Elliston  <bje@au.ibm.com>
4125
4126         * config/v850/v850.md (casesi): Remove if (0) code.
4127         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4128         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
4129
4130 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
4131
4132         * config/i386/i386.md (rex64suffix): New mode attribute.
4133         (floathi<mode>2): Disable expander for SSE math.
4134         (*floathi<mode>2_1): New insn insn_and_split pattern.
4135         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
4136         corresponding post-reload splitters.
4137         (*floathi<mode>2_i387): New macroized insn pattern.
4138         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
4139         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
4140         insn_and_split pattern.
4141         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
4142         New macroized instruction patterns and corresponding post-reload
4143         splitters.
4144         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
4145         and corresponding post-reload splitters.
4146         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
4147         New macroized instruction patterns.
4148         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
4149         macroized instruction patterns and corresponding post-reload splitters.
4150         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
4151         corresponding post-reload splitters.
4152         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
4153         New macroized instruction patterns.
4154         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
4155         corresponding post-reload splitters.
4156         (*floatsi<mode>2_i387): New macroized instruction patterns.
4157
4158 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
4159
4160         * config/i386/i386.md (smaxmin): New.
4161         (umaxmin): Likewise.
4162         (maxminiprefix): Likewise.
4163         (maxminfprefix): Likewise.
4164         (<code><mode>3): Likewise.
4165         (smin<mode>3): Removed.
4166         (smax<mode>3): Likewise.
4167
4168         * config/i386/mmx.md (mmx_<code>v2sf3): New.
4169         (mmx_<code>v4hi3): Likewise.
4170         (mmx_<code>v8qi3): Likewise.
4171         (mmx_smaxv2sf3): Removed.
4172         (mmx_sminv2sf3): Likewise.
4173         (mmx_umaxv8qi3): Likewise.
4174         (mmx_smaxv4hi3): Likewise.
4175         (mmx_uminv8qi3): Likewise.
4176         (mmx_sminv4hi3): Likewise.
4177
4178         * config/i386/sse.md (<addsub><mode>3): New.
4179         (*<addsub><mode>3): Likewise.
4180         (<sse>_vm<addsub><mode>3): Likewise.
4181         (<maxmin><mode>3): Likewise.
4182         (*<maxmin><mode>3_finite): Likewise.
4183         (*<maxmin><mode>3): Likewise.
4184         (<sse>_vm<maxmin><mode>3): Likewise.
4185         (sse3_h<addsub>v4sf3): Likewise.
4186         (sse3_h<addsub>v2df3): Likewise.
4187         (<maxmin>v16qi3): Likewise.
4188         (*<maxmin>v16qi3): Likewise.
4189         (<maxmin>v8hi3): Likewise.
4190         (*<maxmin>v8hi3): Likewise.
4191         (*sse4_1_<maxmin><mode>3): Likewise.
4192         (*sse4_1_<maxmin><mode>3): Likewise.
4193         (add<mode>3): Removed.
4194         (*add<mode>3): Likewise.
4195         (<sse>_vmadd<mode>3): Likewise.
4196         (sub<mode>3): Likewise.
4197         (*sub<mode>3): Likewise.
4198         (<sse>_vmsub<mode>3): Likewise.
4199         (smin<mode>3): Likewise.
4200         (*smin<mode>3_finite): Likewise.
4201         (*smin<mode>3): Likewise.
4202         (<sse>_vmsmin<mode>3): Likewise.
4203         (smax<mode>3): Likewise.
4204         (*smax<mode>3_finite): Likewise.
4205         (*smax<mode>3): Likewise.
4206         (<sse>_vmsmax<mode>3): Likewise.
4207         (sse3_haddv4sf3): Likewise.
4208         (sse3_haddv2df3): Likewise.
4209         (sse3_hsubv4sf3): Likewise.
4210         (sse3_hsubv2df3): Likewise.
4211         (umaxv16qi3): Likewise.
4212         (*umaxv16qi3): Likewise.
4213         (smaxv8hi3): Likewise.
4214         (*smaxv8hi3): Likewise.
4215         (*sse4_1_smax<mode>3): Likewise.
4216         (*sse4_1_umax<mode>3): Likewise.
4217         (uminv16qi3): Likewise.
4218         (*uminv16qi3): Likewise.
4219         (sminv8hi3): Likewise.
4220         (*sminv8hi3): Likewise.
4221         (*sse4_1_smin<mode>3): Likewise.
4222         (*sse4_1_umin<mode>3): Likewise.
4223
4224 2008-04-01  Rafael Espindola  <espindola@google.com>
4225
4226         * tree-cfg.c (verify_expr): remove in_phi.
4227         (verify_stmt): Don't call walk_tree with verify_expr. Use
4228         is_gimple_min_invariant instead of is_gimple_val.
4229
4230 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
4231
4232         * doc/include/gpl_v3.texi: Update for manpage generation.
4233         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
4234         gpl.texi.
4235         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
4236         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
4237         gpl_v3.texi instead of gpl.texi.
4238         (gpl.pod): New.
4239
4240 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
4241
4242         PR pch/13675
4243         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
4244
4245 2008-04-01  Rafael Espindola  <espindola@google.com>
4246
4247         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
4248         (extract_code_and_val_from_cond): Use
4249         extract_code_and_val_from_cond_with_ops.
4250
4251 2008-04-01  Jan Hubicka  <jh@suse.cz>
4252
4253         * function.c (free_after_compilation): Free epilogue_delay_list.
4254         (prepare_function_start): Assert that previous compilation was freed.
4255
4256 2008-04-01  Jan Hubicka  <jh@suse.cz>
4257             Jim Wilson  <wilson@tuliptree.org>
4258             Andreas Tobler <andreast@gcc.gnu.org>
4259
4260         PR middle-end/35781
4261         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
4262         rtl.emit instead cfun->emit.
4263         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
4264         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
4265
4266 2008-04-01  Ben Elliston  <bje@au.ibm.com>
4267
4268         * doc/c-tree.texi (Function Basics): Fix grammatical error.
4269
4270 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
4271
4272         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
4273         New options
4274         (fprofile-use): Add var flag_profile_use
4275         * coverage.c (coverage_begin_output): Do not open a gcno file for
4276         output only if -ftest-coverage is set.
4277         Do not add getpwd() to gcda file path.
4278         (build_gcov_info): Check the new flag
4279         flag_profile_datafile_relative_path.
4280         (coverage_init): Use profile_data_prefix.
4281         Read profile counter only if flag_profile_use is set.
4282         * opts.c (common_handle_option): New option fprofile-use=,
4283         fprofile-dir=, fprofile-generate=.
4284         * toplev.c (profile_data_prefix): New variable definition.
4285         * toplev.h (profile_data_prefix): New declaration.
4286         * doc/invoke.tex (Option Summary, Optimization Options):
4287         Add new options.
4288
4289 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
4290
4291         * varasm.c (output_constant_pool_1): In LABEL_REF check,
4292         use tmp consistently.
4293
4294         PR target/35695
4295         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
4296         * config/ia64/ia64.c (rtx_needs_barrier): Handle
4297         UNSPEC_FR_RECIP_APPROX_RES.
4298         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
4299
4300 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
4301
4302         PR c/35750
4303         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
4304
4305 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4306
4307         PR middle-end/30186
4308         * fold-const.c (fold_indirect_ref_1): Support accessing non first
4309         element of the vector via a pointer.
4310
4311 2008-03-31  Ian Lance Taylor  <iant@google.com>
4312
4313         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
4314
4315 2008-03-31  Jan Hubicka  <jh@suse.cz>
4316
4317         * builtins.c (expand_builtin_setjmp_receiver): Update call of
4318         get_arg_pointer_save_area.
4319         * expr.c (init_expr): Just clear out rtl.expr.
4320         * function.c (free_after_compilation): Clear out whole RTL structure.
4321         (get_func_frame_size): Merge into ...
4322         (get_frame_size): ... this one.
4323         (assign_stack_local_1): Merge into ...
4324         (assign_stack_local): ... this one.
4325         (expand_function_end): Update call of get_arg_pointer_save_area.
4326         (get_art_pointer_save_area): Remove cfun argument.
4327         * function.h (emit_status): regno_pointer_align does not need length
4328         attribute. Move x_regno_reg_rtx to ...
4329         (regno_reg_rtx): ... new global array.
4330         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
4331         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
4332         apply_args_value, forced_labels, stack_pointer_delta):
4333         Update accestors.
4334         (struct varasm_status): Move here from varasm.c
4335         (struct rtl_data): New. Move here some fields from struct function.
4336         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
4337         frame_offset, stack_check_probe_note, arg_pointer_save_area,
4338         used_temp_slots avail_temp_slots, temp_slot_level,
4339         nonlocal_goto_handler_labels): Update accesstors.
4340         (rtl): New global variable.
4341         (struct function): Move some fileds to rtl_data.
4342         (get_arg_pointer_save_area): Update prototype.
4343         * emit-rtl.c (rtl): Declare.
4344         (regno_reg_rtx): Declare.
4345         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
4346         Update.
4347         (gen_reg_rtx): Update.
4348         (init_virtual_regs): Do not tate emit_status argument.
4349         (init_emit): Do not allocate emit.
4350         * varasm.c (varasm_statuc): Move to function.h.
4351         (n_deferred_constatns): Update accestor.
4352         (init_varasm_status): Do not allocate varasm_status.
4353         (force_const_mem, get_pool_size, output_constant_pool): Update.
4354         * stmt.c (force_label_rtx): Do not use x_ prefixes.
4355         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
4356
4357 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
4358
4359         PR rtl-optimization/35729
4360         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
4361         references.
4362
4363 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
4364
4365         PR target/32000
4366         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
4367         load/store if memory is unaligned.
4368         (*movti_rex64): Likewise.
4369
4370         * config/i386/predicates.md (misaligned_operand): New.
4371
4372 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
4373
4374         PR tree-opt/35431
4375         * tree-ssa-phiopt.c (conditional_replacement): Return early for
4376         complex types.
4377
4378 2008-03-31  Jan Beulich  <jbeulich@novell.com>
4379
4380         * config/ia64/constraints.md: Add 'j' constraint.
4381         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
4382         (movdi_internal): Likewise.
4383
4384 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
4385
4386         PR c/35748
4387         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
4388
4389 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4390
4391         PR target/35757
4392         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
4393         proper error message for the third argument on blendpd and
4394         blendps.
4395
4396         * config/i386/sse.md (blendbits): New.
4397         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
4398
4399 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
4400
4401         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
4402
4403 2008-03-30  Richard Guenther  <rguenther@suse.de>
4404
4405         PR middle-end/31023
4406         * fold-const.c (fold_sign_changed_comparison): Do leave
4407         conversions to base-types alone.
4408
4409 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4410
4411         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
4412         the link register if one altivec register is be saved.
4413
4414 2008-03-30  Ben Elliston  <bje@au.ibm.com>
4415
4416         * final.c (final_scan_insn): Remove if (0) code.
4417
4418 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
4419
4420         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
4421
4422 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4423
4424         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
4425         of V4SFmode to ix86_binary_operator_ok.
4426
4427 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
4428
4429         * config/i386/i386.c (override_options): Initialize
4430         ix86_veclib_handler to ix86_veclibabi_svml when
4431         -mveclibabi=svml is used.
4432         (ix86_veclibabi_svml): New function for SVML ABI style
4433         vectorization support.
4434         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
4435
4436 2008-03-28  Rafael Espindola  <espindola@google.com>
4437
4438         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
4439         (tree_binary_nonnegative_warnv_p): Make it public.
4440         (tree_single_nonnegative_warnv_p): Make it public.
4441         (tree_invalid_nonnegative_warnv_p): Make it public.
4442         (tree_unary_nonzero_warnv_p): Make it public.
4443         (tree_binary_nonzero_warnv_p): Make it public
4444         (tree_single_nonzero_warnv_p): Make it public.
4445         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
4446         (extract_range_from_binary_expr): Split the expr argument.
4447         (extract_range_from_unary_expr): Split the expr argument.
4448         (extract_range_from_comparison): Split the expr argument.
4449         (extract_range_from_expr): Use the new aux functions.
4450         (vrp_evaluate_conditional_warnv): Use
4451         vrp_evaluate_conditional_warnv_with_ops.
4452         * tree.h (tree_unary_nonzero_warnv_p): Declare.
4453         (tree_binary_nonzero_warnv_p): Declare.
4454         (tree_single_nonzero_warnv_p): Declare.
4455         (tree_expr_nonzero_warnv_p): Declare.
4456         (tree_unary_nonnegative_warnv_p): Declare.
4457         (tree_binary_nonnegative_warnv_p): Declare.
4458         (tree_single_nonnegative_warnv_p): Declare.
4459         (tree_invalid_nonnegative_warnv_p): Declare.
4460
4461 2008-03-28  Richard Guenther  <rguenther@suse.de>
4462
4463         PR tree-optimization/30317
4464         PR tree-optimization/30911
4465         PR tree-optimization/34793
4466         * tree-vrp.c (set_and_canonicalize_value_range): New function.
4467         (struct assert_locus_d): New member EXPR.
4468         (register_new_assert_for): Add EXPR parameter to support
4469         ASSERT_EXPR <name, expr OP limit>.
4470         (register_edge_assert_for_1): Adjust callers.
4471         (find_assert_locations): Likewise.
4472         (process_assert_insertions_for): Build condition from expression.
4473         (extract_range_from_assert): Handle ASSERT_EXPRs
4474         of the form ASSERT_EXPR <name, expr OP limit>.
4475         (register_edge_assert_for_2): New helper registering
4476         asserts for comparisons.  Recognize range tests of the form
4477         (unsigned)i - CST1 OP CST2.
4478         (register_edge_assert_for_1): Use it.
4479         (register_edge_assert_for): Likewise.
4480         (needs_overflow_infinity): Integer sub-types
4481         do not need overflow infinities.
4482         (vrp_val_is_max): The extreme values of integer sub-types
4483         are those of the base type.
4484         (vrp_val_is_min): Likewise.
4485         * tree.def (ASSERT_EXPR): Document extra allowed conditional
4486         expressions.
4487
4488 2008-03-28  Nick Clifton  <nickc@redhat.com>
4489
4490         PR target/31110
4491         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
4492         Return GENERAL_REGS for stack adjustment reloads.
4493
4494 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4495
4496         PR target/31334
4497         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
4498         const_vector when all the vectors are constant.
4499
4500 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
4501
4502         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
4503         comparisons.
4504         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
4505         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
4506         (scc_sf): New.
4507         (s<code>_sf): Use new scc_sf attribute for opcode names.
4508
4509 2008-03-27  Tom Tromey  <tromey@redhat.com>
4510
4511         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
4512         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
4513         config/spu/t-spu-elf, config/i386/t-interix,
4514         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
4515         config/i386/x-darwin, config/i386/x-mingw32,
4516         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
4517         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
4518         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
4519         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
4520         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
4521         config/rs6000/x-darwin, config/rs6000/t-rs6000,
4522         config/score/t-score-elf, config/arm/t-strongarm-pe,
4523         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
4524         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
4525         Revert automatic dependency patch.
4526
4527 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4528
4529         PR target/35657
4530         * config/i386/i386.c (ix86_function_arg_boundary): Align
4531         decimal floating point to its natural boundary.
4532
4533 2008-03-27  Richard Guenther  <rguenther@suse.de>
4534
4535         PR middle-end/35716
4536         * fold-const.c (fold_comparison): Restrict distinct decl
4537         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
4538         solely rely on operand_equal_p.
4539
4540 2008-03-27  Richard Guenther  <rguenther@suse.de>
4541
4542         PR c/32511
4543         * c-common.c (handle_weak_attribute): Reject combination of
4544         weak and inline.
4545
4546 2008-03-27  Richard Guenther  <rguenther@suse.de>
4547
4548         PR tree-optimization/32810
4549         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
4550         conversions from DECL_INITIAL.
4551         (fold_const_aggregate_ref): Likewise from constructor elements.
4552
4553 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
4554
4555         * tree-affine.h (aff_combination_expand): Declare.
4556         (get_inner_reference_aff): Likewise.
4557         * tree-affine.c (aff_combination_expand): Split out from
4558         tree_to_aff_combination_expand.
4559         (get_inner_reference_aff): New function.
4560         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
4561         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
4562         (struct lim_aux_data): sm_done field removed.
4563         (mem_ref_loc_p, mem_ref_locs_p): New types.
4564         (struct mem_ref): Added id, stored, accesses_in_loop,
4565         indep_loop, dep_loop, indep_ref, dep_ref fields.
4566         Removed is_stored, locs and next fields.
4567         (memory_accesses): New variable.
4568         (movement_possibility): Do not allow moving statements
4569         that store to memory.
4570         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
4571         New functions.
4572         (determine_max_movement): For statements with memory references,
4573         find the outermost loop in that the reference is independent.
4574         (move_computations_stmt): Mark the virtual operands for renaming.
4575         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
4576         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
4577         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
4578         add_vop_ref_mapping, create_vop_ref_mapping_loop,
4579         create_vop_ref_mapping, analyze_memory_references,
4580         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
4581         get_all_locs_in_loop, ref_always_accessed_p,
4582         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
4583         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
4584         store_motion_loop, store_motion): New functions.
4585         (struct vop_to_refs_elt): New type.
4586         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
4587         memref_hash, memref_eq, hoist_memory_references): Rewritten.
4588         (schedule_sm): Replaced by...
4589         (execute_sm): ... this.
4590         (determine_lsm_ref, hoist_memory_references,
4591         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
4592         find_more_ref_vops, free_mem_ref, free_mem_refs,
4593         determine_lsm_loop, determine_lsm): Removed.
4594         (tree_ssa_lim_finalize): Free data structures used by store motion.
4595         (tree_ssa_lim): Call analyze_memory_references.  Use
4596         store_motion instead of determine_lsm.
4597
4598 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
4599
4600         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
4601         rename tmake_file to m68hc11/t-m68hc11.
4602         (mcore): Set inhibit_libc to true.
4603         * config.host (alpha*-dec-*vms*): Set extra_programs.
4604         (interix3*): Don't use host_xmake_file.
4605         * configure.ac: Let config.gcc override inhibit_libc.
4606         * configure: Regenerate.
4607
4608         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
4609         * config/t-openbsd-thread: Remove commented out lines.
4610         
4611         * config/x-interix: Remove.
4612
4613         * config/m68hc11/t-m68hc11-gas: Rename to...
4614         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
4615
4616         * config/mcore/t-mcore: Remove T_CFLAGS.
4617         * config/mcore/t-mcore-pe: Likewise.
4618
4619 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
4620
4621         * configure.ac: Replace custom __GNU_SOURCE test with
4622         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
4623         * aclocal.m4: Regenerate.
4624         * configure: Regenerate.
4625         * config.in: Regenerate.
4626
4627 2008-03-27  Richard Guenther  <rguenther@suse.de>
4628
4629         * fold-const.c (target.h): Include.
4630         (fold_comparison): Fold comparison of addresses of decls
4631         that bind locally or of constants.  Consolidate address folding code.
4632         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
4633         results from fold_binary_to_constant.
4634         (compare_values_warnv): Likewise.
4635
4636 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
4637
4638         PR middle-end/35429
4639         * fold-const.c (fold_truthop): Check for integeral types when folding
4640         a == 0 && b == 0 and a != 0 || b != 0 .
4641
4642 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4643
4644         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
4645
4646 2008-03-26  Andreas Schwab  <schwab@suse.de>
4647
4648         * doc/invoke.texi: Fix use of @item vs. @itemx.
4649
4650 2008-03-26  Tom Tromey  <tromey@redhat.com>
4651
4652         * Makefile.in (build/gensupport.o, build/print-rtl.o,
4653         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
4654         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
4655         build/gencodes.o, build/genconditions.o, build/genconfig.o,
4656         build/genconstants.o, build/genemit.o, build/genextract.o,
4657         build/genflags.o, build/genmddeps.o, build/genopinit.o,
4658         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
4659         options.h.
4660
4661 2008-03-26  Richard Guenther  <rguenther@suse.de>
4662
4663         Revert
4664         2008-03-26  Richard Guenther  <rguenther@suse.de>
4665
4666         * fold-const.c (target.h): Include.
4667         (fold_comparison): Fold comparison of addresses of two decls
4668         that bind locally.  Consolidate address folding code.
4669
4670 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4671
4672         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
4673         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
4674         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
4675         dconstsqrt2, dconstthird, dconste and/or dconst10.
4676         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
4677         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
4678         dconstsqrt2, dconste): Delete.
4679         (init_emit_once): Likewise.  Simplify initializing dconstm1.
4680         Constify variable.
4681         * real.c (get_real_const): New.
4682         * real.h (dconst3, dconst10, dconstm2, dconstthird,
4683         dconstsqrt2, dconste): Delete.
4684         (real_value_const, get_real_const): New.
4685
4686 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
4687
4688         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
4689
4690         * config/i386/i386.c (ix86_function_arg_boundary): Check
4691         BIGGEST_ALIGNMENT instead of 128.
4692         (setup_incoming_varargs_64): Likewise.
4693
4694 2008-03-26  Tom Tromey  <tromey@redhat.com>
4695
4696         * Makefile.in (DEPFILES): Add missing '/'.
4697
4698 2008-03-26  Richard Guenther  <rguenther@suse.de>
4699
4700         * fold-const.c (target.h): Include.
4701         (fold_comparison): Fold comparison of addresses of two decls
4702         that bind locally.  Consolidate address folding code.
4703
4704 2008-03-26  Nick Clifton  <nickc@redhat.com>
4705
4706         PR target/31232
4707         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
4708         not allow INT+INT as a legitimate addressing mode.
4709
4710 2008-03-26  Richard Guenther  <rguenther@suse.de>
4711
4712         * tree-flow.h (widen_bitfield): Remove declaration.
4713         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
4714         (widen_bitfield): Remove function.
4715         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
4716         code.
4717
4718 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4719
4720         PR target/31558
4721         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
4722         error_mark_node's.
4723
4724 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
4725
4726         PR rtl-optimization/35232
4727         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
4728         (forget_old_reloads_1, forget_marked_reloads): Don't clear
4729         reg_reloaded_call_part_clobbered here.
4730         (reload_regs_reach_end_p): New function.
4731         (reload_reg_rtx_for_input): New variable.
4732         (reload_reg_rtx_for_output): Likewise.
4733         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
4734         when reassigning a pseudo register.  Load reloadreg from 
4735         reload_reg_rtx_for_input, moving the mode and register
4736         calculation to...
4737         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
4738         instead of the original when deciding whether an input reload
4739         would be a no-op or whether an output reload can be deleted.
4740         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
4741         when setting up new_spill_reg_store.  Load it from
4742         reload_reg_rtx_for_output, moving the mode and register
4743         calculation to...
4744         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
4745         instead of the original when deciding whether an output reload
4746         would be a no-op.  Do the same when modifying insn notes.
4747         Use rtx_equal_p instead of == to compare the registers.
4748         (inherit_piecemeal_p): Take a mode and two register numbers
4749         as argument.
4750         (emit_reload_insns): Clear new_spill_reg_store for every hard
4751         register in the reload register.  Remove spill registers
4752         from reg_reloaded_valid before considering whether to record
4753         inheritance information for them.  Use reload_reg_rtx_for_output
4754         instead of reg_rtx when recording output reloads.  Use
4755         reload_reg_rtx_for_input instead of reg_rtx when recording
4756         input reloads.  Set or clear reg_reloaded_call_part_clobbered
4757         at the same time as setting reg_reloaded_valid.
4758         (delete_output_reload): Add a new_reload_reg parameter and use it
4759         instead of rld[j].reg_rtx.
4760         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
4761         calls accordingly.
4762
4763 2008-03-25  Tom Tromey  <tromey@redhat.com>
4764
4765         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
4766         (build/genattr.o): Likewise.
4767         (build/genattrtab.o): Likewise.
4768         (build/gencodes.o): Likewise.
4769         (build/genconfig.o): Likewise.
4770         (build/genconstants.o): Likewise.
4771         (build/genemit.o): Likewise.
4772         (build/genextract.o): Likewise.
4773         (build/genflags.o): Likewise.
4774
4775 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
4776         
4777         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
4778         instead of size_int for integer types.
4779         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
4780         to match type of MINUS_EXPR.
4781         
4782 2008-03-25  Tom Tromey  <tromey@redhat.com>
4783
4784         * configure: Rebuilt.
4785         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
4786         Makefile.
4787
4788 2008-03-25  Tom Tromey  <tromey@redhat.com>
4789
4790         * config/x-solaris (host-solaris.o): Update.
4791         * config/x-linux (host-linux.o): Update.
4792         * config/x-hpux (host-hpux.o): Update.
4793         * config/x-darwin (host-darwin.o): Update.
4794         * config/v850/t-v850e (v850-c.o): Update.
4795         * config/v850/t-v850 (v850-c.o): Update.
4796         * config/t-vxworks (vxworks.o): Update.
4797         * config/t-sol2 (sol2-c.o, sol2.o): Update.
4798         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
4799         * config/spu/t-spu-elf (spu-c.o): Update.
4800         (spu.o): Remove.
4801         * config/sh/t-symbian (sh-c.o): Update.
4802         (symbian.o): Update.
4803         * config/sh/t-sh (sh-c.o): Update.
4804         * config/score/t-score-elf (score7.o, score3.o): Update.
4805         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
4806         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
4807         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
4808         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
4809         (rs6000.o): Remove.
4810         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
4811         * config/m32c/t-m32c (m32c-pragma.o): Update.
4812         * config/ia64/t-ia64 (ia64-c.o): Update.
4813         * config/i386/x-mingw32 (host-mingw32.o): Update.
4814         * config/i386/x-i386 (driver-i386.o): Update.
4815         * config/i386/x-darwin (host-i386-darwin.o): Update.
4816         * config/i386/x-cygwin (host-cygwin.o): Update.
4817         * config/i386/t-nwld (nwld.o): Update.
4818         * config/i386/t-netware (netware.o): Update.
4819         * config/i386/t-interix (winnt.o): Update.
4820         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
4821         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
4822         msformat-c.o): Update.
4823         * config/bfin/t-bfin-linux (generated_files): Add
4824         linux-sysroot-suffix.h.
4825         * config/arm/t-wince-pe (pe.o): Update.
4826         * config/arm/t-strongarm-pe (pe.o): Update.
4827         * config/arm/t-pe (pe.o): Update.
4828         * config/arm/t-arm (arm-c.o): Update.
4829         * doc/install.texi (Prerequisites): Require make 3.80.
4830         * Makefile.in: Remove .o targets.
4831         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
4832         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
4833         (simple_generated_h, simple_generated_c): Move earlier.
4834         (generated_files): New variable.
4835         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
4836         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
4837         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
4838         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
4839         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
4840         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
4841         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
4842         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
4843         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
4844         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
4845         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
4846         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
4847         (.c.o): Remove.
4848         (COMPILE.base, COMPILE): New variables.
4849         (%.o): New pattern rule.
4850         (ALL_HOST_OBJS): New variable.
4851         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
4852         (dummy-checksum.o, cc1-checksum.o): Remove.
4853         (DRIVER_SHLIB): New variable.
4854         (DRIVER_DEFINES): Use it.
4855         (gencondmd.c): Move out of build/.
4856         (s-conditions): Update.
4857         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
4858         (ALL_BUILD_OBJS): Likewise.
4859         (build/%.o): Use BUILDCOMPILE.
4860         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
4861         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
4862         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
4863         build/gencheck.o, build/gencodes.o, build/genconditions.o,
4864         build/genconfig.o, build/genconstants.o, build/genemit.o,
4865         build/genextract.o, build/genflags.o, build/genmddeps.o,
4866         build/genopinit.o, build/genoutput.o, build/genpeep.o,
4867         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
4868         build/gen-protos.o, build/scan.o, build/fix-header.o,
4869         build/scan-decls.o): Simplify.
4870         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
4871         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
4872         prefix.o, toplev.o): Reduce to variable setting.
4873         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
4874         ($(out_object_file), gcc-options.o): New targets.
4875         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
4876         * configure: Rebuilt.
4877         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
4878         * doc/sourcebuild.texi (Front End Directory): Document new variable.
4879
4880 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
4881
4882         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
4883         complain when we hit an error, return ERROR_MARK_NODE.
4884
4885 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
4886
4887         * config/sh/constraints.md (Pso, Psz): New constraints.
4888         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
4889         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
4890
4891 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
4892
4893         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
4894         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
4895
4896 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
4897
4898         * config/sh/sh.md (prefetch): Add condition for SH2A target.
4899         (prefetch_sh2a): New.   
4900
4901 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
4902             Naveen.H.S  <naveen.hs@kpitcummins.com>
4903
4904         * config/sh/constraints.md (I28): New constraint.
4905         * config/sh/sh.c (broken_move): Add support for movi20s.
4906         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
4907
4908 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
4909             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
4910             Naveen.H.S  <naveen.hs@kpitcummins.com>
4911
4912         * config/sh/sh.c (SH_ATTRIBUTES): Define.
4913         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
4914         (print_operand): Handle resbank in %@ operand code.
4915         (sh_encode_section_info): New.
4916         (push_regs): Add conditions for resbank.
4917         (sh_expand_epilogue): Likewise.
4918         (sh_insert_attributes): Likewise.
4919         (sh_attribute_table): Likewise.
4920         (sh_handle_resbank_handler_attribute): New.
4921         (sh2a_handle_function_vector_handler_attribute): New.
4922         (sh2a_is_function_vector_call): New.
4923         (sh2a_get_function_vector_number): New.
4924         (sh2a_function_vector_p): New.
4925         (sh_cfun_resbank_handler_p): New.
4926         * config/sh/sh.md (calli): Emit jsr/n if possible.
4927         (calli_tbr_rel): New.
4928         (calli_pcrel): Emit jsr/n if possible.
4929         (return_i): Emit rts/n if possible.
4930         (call_valuei_tbr_rel): New.
4931         (call_valuei_pcrel): Add condition for SH2A target.
4932         (call_value): Likewise.
4933         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
4934         (sh2a_get_function_vector_number): Likewise.
4935         (sh2a_is_function_vector_call): Likewise.
4936         * doc/extend.texi: Document TBR relative addressing of SH2A.
4937         (resbank): Add description for SH2A.
4938
4939 2008-03-24  Richard Guenther  <rguenther@suse.de>
4940
4941         PR c/22371
4942         * gimplify.c (gimplify_modify_expr): For frontend type-correct
4943         pointer assignments change conversions according to middle-end rules.
4944         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
4945         * configure.ac: Include type checking in yes.
4946         * configure: Regenerate.
4947
4948 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4949
4950         * diagnostic.c (diagnostic_count_diagnostic): Delete.
4951         (diagnostic_report_diagnostic): Update. Handle ICEs here.
4952         
4953 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
4954
4955         * gthr-vxworks.h (UNUSED): Define.
4956
4957 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
4958
4959         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
4960
4961 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
4962
4963         * doc/extend.texi (Function Attributes): Add missing comma in the
4964         example of the "alloc_size" attribute.
4965         
4966 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
4967
4968         Revert:
4969         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
4970
4971         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
4972         32bit host.
4973
4974         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
4975
4976         PR target/35496
4977         * stor-layout.c (update_alignment_for_field): Set minimum alignment
4978         of the underlying type of a MS bitfield layout to the natural
4979         alignment of the type.
4980
4981         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
4982
4983         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
4984         to their natural alignment to avoid store forwarding stalls.
4985
4986 2008-03-22  Richard Guenther  <rguenther@suse.de>
4987
4988         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
4989         For PHI nodes verify the address is invariant.
4990         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
4991         (get_symbol_constant_value): Use is_gimple_min_invariant.
4992         (maybe_fold_stmt_indirect): Likewise.
4993
4994 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
4995
4996         PR rtl-optimization/33927
4997         * Makefile.in (dse.o): Depend on $(TM_P_H).
4998         * expr.h (extract_low_bits): Declare.
4999         * expmed.c (extract_low_bits): New function.
5000         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
5001         * dse.c: Include tm_p.h.
5002         (find_shift_sequence): Remove the read_reg argument and return the
5003         read value.  Emit the instructions instead of returning them.
5004         Iterate on new_mode rather than calculating it each time.
5005         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
5006         source to NEW_MODE and extract_low_bits to convert the shifted
5007         value to READ_MODE.
5008         (replace_read): Allow the load and store to have different mode
5009         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
5010         or extraction instructions before trying the replacement.  Update
5011         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
5012
5013 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
5014
5015         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
5016         to their natural alignment to avoid store forwarding stalls.
5017
5018 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5019
5020         PR target/27946
5021         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
5022         encouraging but not allowing gprs for input;
5023         change the input constraint to !f#r.
5024         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
5025         gprs for output;
5026         change the output constraint to !f#r.
5027
5028 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
5029
5030         PR target/13958
5031         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
5032         corresponding post-reload splitters.
5033         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
5034         when x87 FP math is selected.
5035         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
5036         New function prototype.
5037         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
5038         unreachable function to ease macroization of insn patterns.
5039
5040 2008-03-21  Martin Jambor  <mjambor@suse.cz>
5041
5042         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
5043         reference dumps if ddr is NULL or dependence is unknown.
5044
5045 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
5046
5047         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
5048         unsigned extension into account.
5049         (ATOMIC_COMPARE_AND_SWAP): Likewise.
5050         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
5051         Do computations on a scratch register.
5052
5053 2008-03-21  Richard Guenther  <rguenther@suse.de>
5054
5055         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5056         Use is_gimple_min_invariant instead of TREE_INVARIANT.
5057         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
5058         * tree-ssa-dom.c (record_equality): Likewise.
5059         * tree-inline.c (copy_body_r): Likewise.
5060         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
5061         TREE_INVARIANT.
5062
5063 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
5064
5065         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
5066         as 'delete_unused' argument.
5067
5068 2008-03-20  Richard Guenther  <rguenther@suse.de>
5069
5070         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
5071         special casing of constant qualifiers.
5072         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
5073         care about them in general.
5074         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
5075         regardless of their type.
5076         (fold_stmt_r): Forcefully fold *& if we end up with that.
5077
5078 2008-03-20  Paul Brook  <paul@codesourcery.com>
5079
5080         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
5081         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
5082         linker flags.
5083         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
5084         definition.
5085         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
5086         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
5087
5088 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
5089
5090         * common.opt (Wmudflap): New option.
5091         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
5092         (mx_register_decls): Likewise.
5093         (mudflap_finish_file): Likewise.
5094         * doc/invoke.texi: Document -Wno-mudflap.
5095
5096 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
5097
5098         * c-format.c (replace_format_name_to_system_name): New.
5099         (cmp_attribs): New.
5100         (convert_format_name_to_system_name): New.
5101         (decode_format_attr): Add use of convert_format_name_to_system_name.
5102         (format_types_orig): Add gnu_ prefix to names.
5103         (check_format_info_main): Special treating of \0 escaped names for
5104         supporting multi-character format specifiers as I32, I64.
5105         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
5106         (gnu_target_overrides_format_attributes): New.
5107         * c-format.h: Add structure target_ovr_attr to hold
5108         system specific formatter names.
5109         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
5110         msformat-c.o file to c_target_objs and cxx_target_objs.
5111         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
5112         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
5113         (TARGET_N_FORMAT_TYPES): New.
5114         * config/i386/msformat-c.c: New.
5115         * config/i386/t-cygming: Add build rule for msformat-c.o.
5116         * doc/extend.texi: Add new format names gnu_* and ms_* and
5117         further details.
5118         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
5119
5120 2008-03-20  Ira Rosen  <irar@il.ibm.com>
5121
5122         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
5123         optimizations turned on under -O3.
5124         (ftree-vectorize): Add that the flag is turned on with -O3.
5125
5126 2008-03-20  Ben Elliston  <bje@au.ibm.com>
5127
5128         * regmove.c (try_auto_increment): Fix spelling error in comment.
5129         * final.c (final_scan_insn): Likewise.
5130
5131 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
5132
5133         PR target/14552
5134         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
5135         allocator preferences for "y" and "r" class registers.
5136         ("*mov<mode>_internal"): Ditto.
5137         ("*movv2sf_internal_rex64"): Ditto.
5138         ("*movv2sf_internal"): Ditto.
5139
5140 2008-03-19  Michael Matz  <matz@suse.de>
5141
5142         PR middle-end/35616
5143         * calls.c (expand_call): Check overlap of arguments with call
5144         address for sibcalls.
5145
5146 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
5147
5148         PR target/35496
5149         * stor-layout.c (update_alignment_for_field): Set minimum alignment
5150         of the underlying type of a MS bitfield layout to the natural
5151         alignment of the type.
5152
5153 2008-03-19  Jan Hubicka  <jh@suse.cz>
5154
5155         PR other/35094
5156         * toplev.c (decode_d_option): Handle all CPP flags.
5157         * tree-vrp.c: Update tree_pass descriptors.
5158         * regrename.c: Update tree_pass descriptors.
5159         * fwprop.c: Update tree_pass descriptors.
5160         * doc/invoke.texi: Remove documentation of dropped -d? flags.
5161         * tree-into-ssa.c: Update tree_pass descriptors.
5162         * tree-dump.c: Update tree_pass descriptors.
5163         * tree-complex.c: Update tree_pass descriptors.
5164         * tree-dump.h: Update tree_pass descriptors.
5165         * see.c: Update tree_pass descriptors.
5166         * cgraphbuild.c: Update tree_pass descriptors.
5167         * tracer.c: Update tree_pass descriptors.
5168         * tree-loop-distribution.c: Update tree_pass descriptors.
5169         * cgraph.c: Update tree_pass descriptors.
5170         * postreload-gcse.c: Update tree_pass descriptors.
5171         * postreload.c: Update tree_pass descriptors.
5172         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
5173         * tree-tailcall.c: Update tree_pass descriptors.
5174         * tree-pass.h (tree_opt_pass): Rename to ...
5175         (opt_pass) ... this one; add "type" field and remove letter field.
5176         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
5177         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
5178         all_lowering_passes): Update declaration.
5179         * ipa-cp.c: Update tree_pass descriptors.
5180         * final.c: Update tree_pass descriptors.
5181         * omp-low.c: Update tree_pass descriptors.
5182         * tree-ssa-dse.c: Update tree_pass descriptors.
5183         * ipa-reference.c: Update tree_pass descriptors.
5184         * tree-ssa-uncprop.c: Update tree_pass descriptors.
5185         * auto-inc-dec.c: Update tree_pass descriptors.
5186         * reorg.c: Update tree_pass descriptors.
5187         * cgraphunit.c: Update tree_pass descriptors.
5188         * tree-ssa-copyrename.c: Update tree_pass descriptors.
5189         * tree-ssa-ccp.c: Update tree_pass descriptors.
5190         * df-core.c: Update tree_pass descriptors.
5191         * mode-switching.c: Update tree_pass descriptors.
5192         * tree-nomudflap.c: Update tree_pass descriptors.
5193         * modulo-sched.c: Update tree_pass descriptors.
5194         * ipa-pure-const.c: Update tree_pass descriptors.
5195         * cse.c: Update tree_pass descriptors.
5196         * web.c: Update tree_pass descriptors.
5197         * tree-stdarg.c: Update tree_pass descriptors.
5198         * tree-ssa-math-opts.c: Update tree_pass descriptors.
5199         * tree-ssa-dom.c: Update tree_pass descriptors.
5200         * tree-nrv.c: Update tree_pass descriptors.
5201         * tree-ssa-alias.c: Update tree_pass descriptors.
5202         * loop-init.c: Update tree_pass descriptors.
5203         * gimple-low.c: Update tree_pass descriptors.
5204         * ipa-inline.c: Update tree_pass descriptors.
5205         * tree-ssa-sink.c: Update tree_pass descriptors.
5206         * global.c: Update tree_pass descriptors.
5207         * ifcvt.c: Update tree_pass descriptors.
5208         * jump.c: Update tree_pass descriptors.
5209         * predict.c: Update tree_pass descriptors.
5210         * tree-ssa-loop.c: Update tree_pass descriptors.
5211         * recog.c: Update tree_pass descriptors.
5212         * dse.c: Update tree_pass descriptors.
5213         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
5214         * tree-eh.c: Update tree_pass descriptors.
5215         * regmove.c: Update tree_pass descriptors.
5216         * local-alloc.c
5217         * function.c: Update tree_pass descriptors.
5218         * tree-vectorizer.c: Update tree_pass descriptors.
5219         * gcse.c: Update tree_pass descriptors.
5220         * ipa-type-escape.c: Update tree_pass descriptors.
5221         * tree-if-conv.c: Update tree_pass descriptors.
5222         * init-regs.c: Update tree_pass descriptors.
5223         * ipa.c: Update tree_pass descriptors.
5224         * tree-ssa-phiopt.c: Update tree_pass descriptors.
5225         * rtl-factoring.c: Update tree_pass descriptors.
5226         * lower-subreg.c: Update tree_pass descriptors.
5227         * bt-load.c: Update tree_pass descriptors.
5228         * tree-dfa.c: Update tree_pass descriptors.
5229         * except.c: Update tree_pass descriptors.
5230         * emit-rtl.c: Update tree_pass descriptors.
5231         * cfgexpand.c: Update tree_pass descriptors.
5232         * tree-cfgcleanup.c: Update tree_pass descriptors.
5233         * cfgcleanup.c: Update tree_pass descriptors.
5234         * tree-ssa-pre.c: Update tree_pass descriptors.
5235         * tree-sra.c: Update tree_pass descriptors.
5236         * tree-mudflap.c: Update tree_pass descriptors.
5237         * tree-ssa-copy.c: Update tree_pass descriptors.
5238         * cfglayout.c: Update tree_pass descriptors.
5239         * tree-ssa-forwprop.c: Update tree_pass descriptors.
5240         * tree-ssa-dce.c: Update tree_pass descriptors.
5241         * tree-ssa.c: Update tree_pass descriptors.
5242         * regclass.c: Update tree_pass descriptors.
5243         * integrate.c: Update tree_pass descriptors.
5244         * tree-optimize.c: Update tree_pass descriptors.
5245         * tree-ssa-phiprop.c: Update tree_pass descriptors.
5246         * tree-object-size.c: Update tree_pass descriptors.
5247         * combine.c: Update tree_pass descriptors.
5248         * tree-outof-ssa.c: Update tree_pass descriptors.
5249         * bb-reorder.c: Update tree_pass descriptors.
5250         * stack-ptr-mod.c: Update tree_pass descriptors.
5251         * var-tracking.c: Update tree_pass descriptors.
5252         * tree-profile.c: Update tree_pass descriptors.
5253         * tree-vect-generic.c: Update tree_pass descriptors.
5254         * reg-stack.c: Update tree_pass descriptors.
5255         * sched-rgn.c: Update tree_pass descriptors.
5256         * tree-ssa-structalias.c: Update tree_pass descriptors.
5257         * tree-cfg.c: Update tree_pass descriptors.
5258         * passes.c (current_pass): Update declaration.
5259         (finish_optimization_passes): Update.
5260         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
5261         (register_one_dump_file, register_dump_files_1, next_pass_1):
5262         Update arguments.
5263         (init_optimization_passes): Update handling of new types.
5264         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
5265         * ipa-struct-reorg.c: Update tree_pass descriptors.
5266         * tree-ssa-reassoc.c: Update tree_pass descriptors.
5267         * combine-stack-adj.c: Update tree_pass descriptors.
5268         * cfgrtl.c: Update tree_pass descriptors.
5269         * dce.c: Update tree_pass descriptors.
5270         * tree-ssanames.c: Update tree_pass descriptors.
5271
5272 2008-03-19  Richard Guenther  <rguenther@suse.de>
5273
5274         PR middle-end/35609
5275         * tree-ssa.c (walk_data): New structure.
5276         (warn_uninitialized_var): If not always_executed warn with "maybe"
5277         instead of "is".
5278         (execute_early_warn_uninitialized): Compute post-dominators.
5279         Initialize always_executed before processing each basic block.
5280
5281 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
5282
5283         PR target/35504
5284         * config/i386/i386.c (x86_this_parameter): Calculate correct location
5285         of "this" pointer when "regparm = N" or "fastcall" is in effect.
5286
5287 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5288
5289         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
5290
5291 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
5292
5293         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
5294         is true.
5295         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
5296         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
5297         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
5298         target after ignore has been set, and move there also the commputation
5299         of subtarget and original_target.
5300         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
5301         (LANG_HOOKS_INITIALIZER): Remove it.
5302         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
5303
5304 2008-03-18  Richard Guenther  <rguenther@suse.de>
5305
5306         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
5307         found an expression with constants, note that in the VN for the lhs.
5308         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
5309         fold them to constants if possible.  Run cleanup_cfg if done so.
5310         (execute_pre): Return todo.
5311         (do_pre): Likewise.
5312         (execute_fre): Likewise.
5313         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
5314         of constants.
5315         (get_prop_source_stmt): Look through pointer conversions.
5316
5317 2008-03-18  Jan Hubicka  <jh@suse.cz>
5318
5319         * tree-pretty-print.c: Include predict.h.
5320         (dump_generic_node): Dump predictor.
5321         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
5322         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
5323         * gimple-low.c (lower_stmt): Likewise.
5324         * expr.c (expand_expr_real): Likewise.
5325         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
5326         them.
5327         (build_predict_expr, build_predict_expr): New.
5328         * predict.h (predictor_name, build_predict_expr): Update.
5329         * c-typeck.c (c_finish_bc_stmt): Add prediction.
5330         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
5331         * predict.def (PRED_CONTINUE): Update hitrate.
5332         * tree.def (PREDICT_EXPR): Define.
5333         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
5334         do not handle BIND_EXPR.
5335         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
5336         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
5337         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
5338         operands.
5339
5340 2008-03-18  Michael Matz  <matz@suse.de>
5341
5342         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
5343
5344 2008-03-18  Richard Guenther  <rguenther@suse.de>
5345
5346         * tree-gimple.h (is_gimple_invariant_address): Declare.
5347         (is_gimple_constant): Likewise.
5348         * tree-gimple.c (is_gimple_constant): New function.
5349         (is_gimple_invariant_address): Likewise.
5350         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
5351         and is_gimple_invariant_address.
5352         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
5353         previous change.
5354         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
5355         an addressable base.
5356
5357 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
5358
5359         PR middle-end/35611
5360         * gimplify.c (gimplify_expr): Gimplify second operand of
5361         OMP_ATOMIC_LOAD.
5362
5363 2008-03-17  Richard Guenther  <rguenther@suse.de>
5364
5365         PR tree-optimization/19637
5366         * fold-const.c (fold_unary): Remove restrictions of removing
5367         intermediate pointer-conversions (P2)(P1)P0.
5368         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
5369         conversion to void pointer.
5370         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
5371
5372 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
5373
5374         PR debug/31510
5375         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
5376         emulated thread local variables.
5377
5378 2008-03-16  Richard Guenther  <rguenther@suse.de>
5379
5380         PR middle-end/35607
5381         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5382         expand TREE_INVARIANT operations that are not gimple invariant.
5383
5384 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
5385
5386         * doc/extend.texi (Alignment): Say that the ABI controls
5387         the __alignof__ for non-strict-alignment targets rather
5388         than being a recommendation.
5389
5390 2008-03-15  Paul Brook  <paul@codesourcery.com>
5391
5392         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
5393         annotations.
5394         (arm_output_fn_unwind): Mark functions that can not be unwound.
5395
5396 2008-03-15  Paul Brook  <paul@codesourcery.com>
5397
5398         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
5399         extension instructions.
5400
5401 2008-03-15  Richard Guenther  <rguenther@suse.de>
5402
5403         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
5404         and fold constant aggregate refs.
5405         (fold_const_aggregate_ref): Handle string constants
5406         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
5407         (evaluate_stmt): Simplify now that ccp_fold folds constant
5408         aggregate refs.
5409
5410 2008-03-15  Paul Brook  <paul@codesourcery.com>
5411
5412         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
5413         (extzv): Use gen_extzv_t2.
5414         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
5415
5416 2008-03-15  Richard Guenther  <rguenther@suse.de>
5417
5418         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
5419         (fold_const_aggregate_ref): Likewise.
5420         (get_value): Return NULL if we don't have any values.
5421         (ccp_finalize): Set const_val to NULL after freeing it.
5422         * tree-flow.h (get_symbol_constant_value): Declare.
5423         (fold_const_aggregate_ref): Likewise.
5424         * tree-ssa-sccvn.c (try_to_simplify): Use them.
5425
5426 2008-03-15  Richard Guenther  <rguenther@suse.de>
5427
5428         PR middle-end/35593
5429         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
5430         to not produce negative array indices if not allowed.  Add
5431         parameter to indicate that.
5432         (maybe_fold_offset_to_component_ref): Allow negative array
5433         indices only for the first member of a structure.
5434         (maybe_fold_offset_to_reference): Allow negative array indices.
5435         (maybe_fold_stmt_addition): Likewise.
5436
5437 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
5438             Anatoly Sokolov <aesok@post.ru>
5439
5440         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
5441         (avr_arch): Add ARCH_AVR6.
5442         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
5443         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
5444         instead of fixed value 2.
5445         (print_operand_address): Use gs() asm specifier instead of pm().
5446         (avr_assemble_integer): (Ditto.).
5447         (avr_output_addr_vec_elt): (Ditto.).
5448         (print_operand): Handle "!" code.
5449         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
5450         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
5451         (AVR_HAVE_EIJMP_EICALL): Define.
5452         (AVR_3_BYTE_PC): Redefine.
5453         (AVR_2_BYTE_PC): (Ditto.).
5454         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
5455         (LINK_SPEC): Add atmega2560 and atmega2561.
5456         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
5457         (crtm2561.o).
5458         * config/avr/avr.md (call_insn): Use eicall instead of icall 
5459         for 3 byte PC devices.
5460         (call_value_insn): (Ditto.).
5461         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
5462         (indirect_jump): Use only for for 2 byte PC devices.
5463         (*tablejump): (Ditto.).
5464         (*indirect_jump_avr6): Add insn.
5465         (*tablejump_rjmp): Don't use for 3 byte PC devices.
5466         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
5467         instead of ijmp for 3 byte PC devices.
5468         (__tablejump2__): (Ditto.).
5469         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
5470         (MULITLIB_DIRNAMES): (Ditto.). 
5471         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
5472
5473 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
5474
5475         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
5476         "sse2_umulsidi3".  Use V1DI mode for operand 0.
5477         ("mmx_psadbw"): Use V1DI mode for operand 0.
5478         * config/i386/i386-modes.def (V1SI): New vector mode.
5479         * config/i386/i386.c (struct builtin_description)
5480         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
5481         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
5482         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
5483         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
5484         v1di_ftype_v8qi_v8qi type.
5485         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
5486
5487         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
5488         __builtin_ia32_pmuludq]: Fix the mode of return value.
5489
5490 2008-03-15  Richard Guenther  <rguenther@suse.de>
5491
5492         PR middle-end/35595
5493         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
5494         being a PHI_NODE.
5495
5496 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
5497         
5498         * doc/invoke.texi (Option Summary, Xtensa Options): Document
5499         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
5500         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
5501         unless TARGET_SERIALIZE_VOLATILE is enabled.
5502         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
5503         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
5504         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
5505
5506 2008-03-14  Richard Guenther  <rguenther@suse.de>
5507
5508         PR tree-optimization/34172
5509         * tree-flow.h (refs_may_alias_p): Declare.
5510         (get_single_def_stmt): Likewise.
5511         (get_single_def_stmt_from_phi): Likewise.
5512         (get_single_def_stmt_with_phi): Likewise.
5513         * tree-dfa.c (refs_may_alias_p): New function.
5514         (get_single_def_stmt): Likewise.
5515         (get_single_def_stmt_from_phi): Likewise.
5516         (get_single_def_stmt_with_phi): Likewise.
5517         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
5518         (vn_reference_lookup_1): New helper function.
5519         (vn_reference_lookup): Walk the virtual use-def chain to
5520         continue searching for a match if the def does not alias the
5521         reference we are looking for.
5522
5523 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
5524
5525         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
5526         archive and Perzl.  Update The Written Word listing.
5527
5528 2008-03-14  Richard Guenther  <rguenther@suse.de>
5529
5530         PR tree-optimization/34043
5531         PR tree-optimization/33989
5532         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
5533         when doing FRE.
5534         (bitmap_find_leader): Use extra argument to verify dominance
5535         relationship inside a basic-block.
5536         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
5537         (find_leader_in_sets): Adjust.
5538         (create_component_ref_by_pieces): Take extra argument for
5539         dominance check, handle lookup failures.
5540         (find_or_generate_expression): Likewise.
5541         (create_expression_by_pieces): Likewise.
5542         (insert_into_preds_of_block): Adjust.
5543         (create_value_expr_from): If asked for, verify all operands
5544         are in the blocks AVAIL_OUT set.
5545         (make_values_for_stmt): Check for SSA_NAMEs that are life
5546         over an abnormal edge.
5547         (compute_avail): Remove such check.
5548         (do_SCCVN_insertion): New function.
5549         (eliminate): If we do not find a leader suitable for replacement
5550         insert a replacement expression from SCCVN if available.
5551         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
5552         (struct vn_ssa_aux): Add needs_insertion flag.
5553         * tree-ssa-sccvn.c (may_insert): New global flag.
5554         (copy_reference_ops_from_ref): Value-number union member access
5555         based on its size, not type and member if insertion is allowed.
5556         (visit_reference_op_load): For a weak match from union type
5557         punning lookup a view-converted value and insert a SSA_NAME
5558         for that value if that is not found.
5559         (visit_use): Make dumps shorter.  Do not disallow value numbering
5560         SSA_NAMEs that are life over an abnormal edge to constants.
5561         (free_scc_vn): Release inserted SSA_NAMEs.
5562         (run_scc_vn): New flag to specify whether insertion is allowed.
5563         Process SSA_NAMEs in forward order.
5564         * tree-ssa-loop-im.c (for_each_index): Handle invariant
5565         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
5566         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
5567         pointer type to/from integral types that do not change the
5568         precision to regular conversions.
5569
5570 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
5571
5572         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
5573         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
5574         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
5575         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
5576         input arguments and the mode of return value.  Built-in functions
5577         that operate on whole 64-bit MMX register now use V1DI mode.
5578
5579 2008-03-13  Alon Dayan  <alond@il.ibm.com>
5580             Olga Golovanevsky  <olga@il.ibm.com>
5581
5582         PR tree-optimization/35041
5583         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
5584         to locate the right position in a statement.
5585
5586 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
5587
5588         PR target/34000
5589         PR target/35553
5590         * config/i386/xmmintrin.h:  Change all static inline functions to
5591         extern inline and add __gnu_inline__ attribute.
5592         * config/i386/bmintrin.h: Ditto.
5593         * config/i386/smmintrin.h: Ditto.
5594         * config/i386/tmmintrin.h: Ditto.
5595         * config/i386/mmintrin-common.h: Ditto.
5596         * config/i386/ammintrin.h: Ditto.
5597         * config/i386/emmintrin.h: Ditto.
5598         * config/i386/pmmintrin.h: Ditto.
5599         * config/i386/mmintrin.h: Ditto.
5600         * config/i386/mm3dnow.h: Ditto.
5601
5602 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
5603
5604         PR middle-end/35185
5605         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
5606         (lower_omp_2): New function.
5607         (lower_omp_1, lower_omp): Rewritten.
5608
5609 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
5610
5611         PR 35054
5612         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
5613         with the phrase "Microsoft Windows compilers".
5614         (Push/Pop Macro Pragmas): New subsection. Document
5615         #pragma push_macro and pragma pop_macro.
5616
5617 2008-03-12  Paul Brook  <paul@codesourcery.com>
5618
5619         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
5620
5621 2008-03-12  Paul Brook  <paul@codesourcery.com>
5622
5623         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
5624         (thumb2_alusi3_short): Exclude PLUS and MINUS.
5625         (thumb2_addsi_shortim): Rename ...
5626         (thumb2_addsi_short): ... to this.  Allow register operands.
5627         (thumb2_subsi_short): New pattern.
5628         (thumb2_one_cmplsi2_short,
5629         thumb2_negsi2_short): New patterns and peepholes.
5630
5631 2008-03-12  Paul Brook  <paul@codesourcery.com>
5632
5633         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
5634
5635 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
5636
5637         * config/i386/i386.md (int_cond): New code iterator.
5638         (fp_cond): Ditto.
5639         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
5640         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
5641         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
5642         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
5643         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
5644         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
5645         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
5646         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
5647
5648 2008-03-12  Paul Brook  <paul@codesourcery.com>
5649
5650         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
5651         instead of {arm,thumb}_compute_save_reg_mask.
5652         (output_return_instruction): Ditto.
5653         (thumb_unexpanded_epilogue): Ditto.
5654         (thumb1_expand_prologue): Ditto.
5655         (thumb1_output_function_prologue): Ditto.
5656         (arm_set_return_address): Ditto.
5657         (thumb_set_return_address): Ditto.
5658         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
5659         regs to achieve stack alignment.
5660         (thumb1_compute_save_reg_mask): Fix compiler warning.
5661         (arm_output_epilogue): Use offsets->saved_regs_mask.
5662         Adjust stack pointer by poping call clobered registers.
5663         (arm_expand_prologue): Use offsets->saved_regs_mask.
5664         Adjust stack pointer by pushing extra registers.
5665         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
5666
5667 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
5668
5669         PR tree-opt/35422
5670         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
5671         conversion to the operands of a multiplication.
5672
5673 2008-03-12  Richard Guenther  <rguenther@suse.de>
5674
5675         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
5676         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
5677         * timevar.def (TV_TREE_PHIPROP): Add.
5678         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
5679         pass description.  Use TV_TREE_PHIPROP.
5680         * tree-ssa-forwprop.c: Remove phiprop code.
5681
5682 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
5683
5684         PR middle-end/35549
5685         * omp-low.c (maybe_lookup_decl): Constify first argument.
5686         (use_pointer_for_field): Change last argument from bool to
5687         omp_context *.  Disallow shared copy-in/out in nested
5688         parallel if decl is shared in outer parallel too.
5689         (build_outer_var_ref, scan_sharing_clauses,
5690         lower_rec_input_clauses, lower_copyprivate_clauses,
5691         lower_send_clauses, lower_send_shared_vars): Adjust callers.
5692
5693 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
5694             Ira Rosen  <irar@il.ibm.com>
5695
5696         * tree-vectorizer.c (free_stmt_vec_info): New function.
5697         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
5698         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
5699         * tree-vectorizer.h (free_stmt_vec_info): Declare.
5700         * tree-vect-transform.c (vectorizable_conversion): Free
5701         vec_oprnds0 if it was allocated.
5702         (vect_permute_store_chain): Remove unused VECs.
5703         (vectorizable_store): Free VECs that are allocated in the..
5704         function.
5705         (vect_transform_strided_load, vectorizable_load): Likewise.
5706         (vect_remove_stores): Simplify the code.
5707         (vect_transform_loop): Move code to vect_remove_stores().
5708         Call vect_remove_stores() and free_stmt_vec_info().
5709
5710 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5711
5712         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
5713         TARGET_HPUX.  Revise comment.
5714         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
5715         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
5716         Use sr4 variant of `be' instruction when not generating PIC code.
5717         (attr_length_call): Adjust for above change.
5718
5719 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5720
5721         * ipa-reference.c (static_execute): Remove module_statics_const and
5722         associated setting code.
5723
5724 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
5725
5726         PR target/35540
5727         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
5728         predicate for operand 1.
5729         (paritysi2_cmp): Use register_operand predicate for operand 2.
5730         Use earlyclobber modifier for operand 1.  Remove support for
5731         memory operands.
5732         (paritydi2_cmp): Use register_operand predicate for operand 3.
5733         Use earlyclobber modifier for operand 1.  Remove support for
5734         memory operands.
5735
5736 2008-03-11  Paul Brook  <paul@codesourcery.com>
5737             Vladimir Prus  <vladimir@codesourcery.com>
5738
5739         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
5740         (arm_compute_save_reg0_reg12_mask): Always
5741         check if register 11 must be saved.  Always safe hard frame pointer
5742         when frame_pointer_needeed.
5743         (arm_compute_save_reg_mask): Save IP and PC
5744         only with apcs frames.
5745         (arm_output_epilogue): Adjust Thumb2 codepath to
5746         be also invoked and work for ARM non-apcs frames.
5747         (arm_expand_prologue): Don't bother saving IP
5748         for non-apcs frame, since it's not clobbered by
5749         prologue code.  Implement non-apcs frame
5750         layout.
5751
5752 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
5753
5754         PR rtl-optimization/35281
5755         * expr.c (convert_move): Use a new pseudo for the intermediate
5756         from_mode->word_mode result.
5757
5758 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
5759
5760         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
5761         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
5762         * toplev.c (compile_file): Don't call it.
5763
5764 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
5765
5766         PR middle-end/35526
5767         * expr.c (store_expr): Call emit_block_move if the mode
5768         of "temp" RTX is BLKmode.
5769
5770 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5771             Richard Guenther  <rguenther@suse.de>
5772
5773         PR tree-optimization/31358
5774         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
5775         the step with a NULL_TREE.
5776         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
5777         to sizetype if type is a pointer type.
5778         (add_candidate_1): Don't convert the base and step to
5779         the generic type if the orginal type is a pointer type.
5780         (add_iv_value_candidates): Use sizetype for the step
5781         if type is a pointer type.
5782         (cand_value_at): Likewise.
5783         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
5784         for pointer types.
5785         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
5786         Don't convert the tem affine to the type.
5787         (add_elt_to_tree): Use sizetype for the step if a pointer.
5788         Use POINTER_PLUS_EXPR for pointers.
5789         (aff_combination_to_tree): Use sizetype for the step if a
5790         pointer.
5791
5792 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
5793
5794         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
5795         Remove commutativity hint.
5796
5797 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
5798
5799         PR c/35438
5800         PR c/35439
5801         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
5802         errorneous type.  Check that v is a VAR_DECL.
5803
5804         PR middle-end/35099
5805         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
5806
5807 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
5808
5809         PR tree-optimization/35494
5810         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
5811         may be overriden at link and run time.
5812
5813 2008-03-10  Richard Guenther  <rguenther@suse.de>
5814
5815         PR tree-optimization/34677
5816         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
5817         (poolify_tree): Likewise.
5818         (modify_expr_template): Likewise.
5819         (poolify_modify_stmt): Likewise.
5820         (insert_fake_stores): Handle all component-ref style stores
5821         in addition to INDIRECT_REF.  Also handle complex types.
5822         Do not poolify the inserted load.
5823         (realify_fake_stores): Do not rebuild the tree but only
5824         make it a SSA_NAME copy.
5825         (init_pre): Remove initialzation of modify_expr_template.
5826         Do not allocate modify_expr_node_pool.
5827         (fini_pre): Do not free modify_expr_node_pool.
5828
5829 2008-03-10  Paul Brook  <paul@codesourcery.com>
5830
5831         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
5832         to avoid conflicts.
5833
5834 2008-03-10  Paul Brook  <paul@codesourcery.com>
5835             Mark Shinwell  <shinwell@codesourcery.com>
5836
5837         * config/arm/cortex-r4.md: New.
5838         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
5839         insn attributes.
5840         * config/arm/arm.md: Include cortex-r4.md.
5841         (insn): Add smmls, sdiv and udiv values.
5842         (generic_sched): Don't use generic scheduling for Cortex-R4.
5843         (arm_issue_rate): New function.
5844         (TARGET_SCHED_ISSUE_RATE): Define.
5845
5846 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
5847
5848         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
5849
5850 2008-03-10  Richard Guenther  <rguenther@suse.de>
5851
5852         * tree-ssa-pre.c (get_sccvn_value): Simplify.
5853         (compute_avail): Do not add stmt uses to AVAIL_OUT.
5854
5855 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
5856
5857         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
5858         Set default to true.
5859
5860 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5861
5862         * c.opt (Wsynth): Deprecate.
5863         * doc/invoke.texi (Option Summary, Warning Options): Document
5864         -Wno-format-contains-nul.
5865
5866 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
5867
5868         PR target/35496
5869         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
5870         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
5871
5872 2008-03-09  Ira Rosen  <irar@il.ibm.com>
5873
5874         * config/rs6000/rs6000.c (builtin_description): Rename vector
5875         left shift operations.
5876         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
5877         (altivec_vsl<VI_char>): Rename to ...
5878         (ashl<mode>3): ... new name.
5879         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
5880         gen_ashlv4si3.
5881         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
5882
5883 2008-03-08  Richard Guenther  <rguenther@suse.de>
5884
5885         * coverage.h (tree_coverage_counter_addr): Declare.
5886         * coverage.c (tree_coverage_counter_addr): New function.
5887         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
5888         before using again.
5889         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
5890         (tree_gen_one_value_profiler): Likewise.
5891         (tree_gen_ic_profiler): Likewise.
5892         (tree_gen_average_profiler): Likewise.
5893         (tree_gen_ior_profiler): Likewise.
5894
5895 2008-03-08  Richard Guenther  <rguenther@suse.de>
5896
5897         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
5898         (vn_binary_op_insert): Likewise.
5899         (vn_unary_op_lookup): Likewise.
5900         (vn_unary_op_insert): Likewise.
5901         (vn_nary_op_lookup): Declare.
5902         (vn_nary_op_insert): Likewise.
5903         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
5904         and binary hashes, use a single obstack for unary_op_pool
5905         and binary_op_pool.
5906         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
5907         a single struct vn_nary_op_s.  Store tree code length and
5908         a variable number of operands.
5909         (struct vn_reference_op_struct): Remove unused op2.
5910         (vn_reference_op_eq): Do not compare op2.
5911         (vn_reference_op_compute_hash): Do not compute hash of op2.
5912         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
5913         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
5914         with vn_nary_op_compute_hash.
5915         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
5916         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
5917         vn_nary_op_lookup.
5918         (vn_unary_op_insert, vn_binary_op_insert): Replace with
5919         vn_nary_op_insert.
5920         (visit_unary_op): Call nary functions.
5921         (visit_binary_op): Likewise.
5922         (process_scc): Adjust for struct vn_tables_s changes.
5923         (allocate_vn_table): Likewise.
5924         (free_vn_table): Likewise.
5925         * tree-vn.c (vn_add): Call nary functions.
5926         (vn_lookup): Likewise.
5927
5928 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
5929
5930         PR target/35498
5931         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
5932         wdst back after sync_compare_and_swapqhi_internal.
5933
5934 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
5935
5936         PR target/22152
5937         * config/i386/i386-modes.def (V1DI): New vector mode.
5938         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
5939         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
5940         (MMXMODE248): Ditto.
5941         (MMXMODE): Add V1DI mode.
5942         (mmxvecsize): Change DI mode to V1DI mode.
5943         ("mov<mode>): Use MMXMODEI8 mode iterator.
5944         ("*mov<mode>_internal_rex64"): Ditto.
5945         ("*mov<mode>_internal"): Ditto.
5946         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
5947         ("mmx_sub<mode>3"): Ditto.
5948         ("mmx_adddi3"): Remove insn pattern.
5949         ("mmx_subdi3"): Ditto.
5950         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
5951         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
5952         ("mmx_ashl<mode>3"): Ditto.
5953         ("mmx_lshrdi3"): Remove insn pattern.
5954         ("mmx_ashldi3"): Ditto.
5955         * config/i386/i386.c (classify_argument): Handle V1DImode.
5956         (function_arg_advance_32): Ditto.
5957         (function_arg_32): Ditto.
5958         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
5959         mmx_addv1di3 insn pattern.
5960         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
5961         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
5962         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
5963         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
5964         Remove definitions of built-in functions.
5965         (V1DI_type_node): New node.
5966         (v1di_ftype_v1di_int): Ditto.
5967         (v1di_ftype_v1di_v1di): Ditto.
5968         (v2si_ftype_v2si_si): Ditto.
5969         (v4hi_ftype_v4hi_di): Remove node.
5970         (v2si_ftype_v2si_di): Ditto.
5971         (ix86_init_mmx_sse_builtins): Handle V1DImode.
5972         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
5973         Redefine builtins using def_builtin_const with *_ftype_*_int node.
5974         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
5975         Add new builtins using def_builtin_const.
5976         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
5977         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
5978         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
5979         * config/i386/mmintrin.h (__v1di): New typedef.
5980         (_mm_add_si64): Cast arguments to __v1di type.
5981         (_mm_sub_si64): Ditto.
5982         (_mm_sll_pi16): Cast __count to __v4hi type.
5983         (_mm_sll_pi32): Cast __count to __v2si type.
5984         (_mm_sll_si64): Cast arguments to __v1di type.
5985         (_mm_srl_pi16): Cast __count to __v4hi type.
5986         (_mm_srl_pi32): Cast __count to __v2si type.
5987         (_mm_srl_si64): Cast arguments to __v1di type.
5988         (_mm_sra_pi16): Cast __count to __v4hi type.
5989         (_mm_sra_pi32): Cast __count to __v2si type.
5990         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
5991         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
5992         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
5993         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
5994         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
5995         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
5996         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
5997         (_mm_srai_pi32): Use __builtin_ia32_psradi.
5998         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
5999         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
6000         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
6001         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
6002
6003 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
6004
6005         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
6006
6007 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
6008
6009         PR target/35373
6010         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
6011         reg+const addressing for Altivec modes.  Don't generate reg+reg
6012         addressing for TFmode or TDmode quantities.
6013
6014 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
6015
6016         * c-common.c (vector_types_convertible_p): Call langhook
6017         instead of comptypes.
6018
6019 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6020
6021         PR tree-opt/35402
6022         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
6023         integral and scalar float variables which have a
6024         NULL DECL_INITIAL.
6025
6026 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
6027
6028         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
6029         dwarf_register_span hook when emitting unwind information for
6030         register-to-memory saves.
6031         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
6032         (rs6000_frame_related): Remove call to spe_synthesize_frame.
6033
6034 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
6035
6036         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
6037         for the same VAR_DECL.
6038
6039 2008-03-06  Tom Tromey  <tromey@redhat.com>
6040
6041         * treelang: Delete.
6042         * doc/standards.texi (Standards): Don't mention treelang.
6043         * doc/invoke.texi (Overall Options): Don't mention treelang.
6044         * doc/install.texi (Prerequisites): Don't mention bison or
6045         treelang.
6046         (Configuration): Don't mention treelang.
6047         (Building): Likewise.
6048         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
6049
6050 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
6051
6052         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
6053         word-extractions out of a multi-word object.
6054
6055 2008-03-06  Richard Guenther  <rguenther@suse.de>
6056
6057         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
6058         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
6059         result type and precision.
6060         * expr.c (get_inner_reference): Set unsignedp based on the result
6061         type of BIT_FIELD_REF.
6062         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
6063         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
6064         (try_instantiate_multiple_fields): Likewise.  Use the correct type
6065         for BIT_FIELD_REF.
6066         (sra_build_assignment): Likewise.
6067         (sra_build_elt_assignment): Likewise.
6068         (sra_explode_bitfield_assignment): Likewise.
6069         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
6070         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
6071         set BIT_FIELD_REF_UNSIGNED.
6072         (vectorizable_load): Likewise.
6073
6074 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
6075
6076         * cse.c (cse_extended_basic_block): Invalidate artificial defs
6077         at bb start.
6078
6079 2008-03-06  Richard Guenther  <rguenther@suse.de>
6080
6081         * alias.c (struct alias_set_entry): Move has_zero_child field
6082         to pack with alias_set.
6083
6084 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
6085
6086         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
6087         32bit host.
6088
6089 2008-03-05  Ian Lance Taylor  <iant@google.com>
6090
6091         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
6092
6093 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
6094
6095         * fwprop.c (update_df): Support width and offset parameters of
6096         df_ref_create.
6097         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
6098         global_conflicts): Change DF_REF_EXTRACT to either
6099         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
6100         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
6101         * df-scan.c (df_ref_record, df_defs_record,
6102         df_ref_create_structure, df_def_record_1, df_uses_record,
6103         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
6104         df_bb_refs_collect, df_entry_block_defs_collect,
6105         df_exit_block_uses_collect): Support new width and offset fields.
6106         (ref_extract_pool): New storage pool.
6107         (df_free_ref): New function.
6108         (df_reg_chain_unlink, df_free_collection_rec,
6109         df_sort_and_compress_refs): Call df_free_ref.
6110         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
6111         of df_ref_extract.
6112         (df_ref_create_structure): Allocate df_ref_extract if offset and
6113         width fields are used.
6114         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
6115         (df_uses_record): Get offset and width from ZERO_EXTRACT 
6116         and SIGN_EXTRACT.
6117         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
6118         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
6119         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
6120         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
6121         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
6122         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
6123         (df_ref_extract): New structure.
6124         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
6125         (df_ref_create): Add width and offset parameters.
6126         
6127 2008-03-05  Richard Guenther  <rguenther@suse.de>
6128
6129         * tree-ssa-structalias.c (get_constraint_for_component_ref):
6130         Use ranges_overlap_p.
6131         (offset_overlaps_with_access): Rename
6132         to ranges_overlap_p and move ...
6133         * tree-flow-inline.h (ranges_overlap_p): ... here.
6134
6135         * tree.h (get_inner_reference, handled_component_p): Update
6136         comments.
6137
6138         * tree.h (record_component_aliases, get_alias_set,
6139         alias_sets_conflict_p, alias_sets_must_conflict_p,
6140         objects_must_conflict_p): Move declarations ...
6141         * alias.h (record_component_aliases, get_alias_set,
6142         alias_sets_conflict_p, alias_sets_must_conflict_p,
6143         objects_must_conflict_p): ... here.
6144         Include coretypes.h.
6145         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
6146
6147 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
6148
6149         * cfg.c: Include tree-flow.h.
6150         (remove_edge_raw): Call redirect_edge_var_map_clear.
6151         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
6152         * tree-flow-inline.h (redirect_edge_var_map_def): New.
6153         (redirect_edge_var_map_result): New.
6154         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
6155         PENDING_STMT use with redirect_edge_var_map_*.
6156         * tree-ssa.c (edge_var_maps): New definition.
6157         (redirect_edge_var_map_add): New.
6158         (redirect_edge_var_map_clear): New.
6159         (redirect_edge_var_map_dup): New.
6160         (redirect_edge_var_map_vector): New.
6161         (redirect_edge_var_map_destroy): New.
6162         (ssa_redirect_edge): Replace PENDING_STMT use with
6163         redirect_edge_var_map_*.
6164         (flush_pending_stmts): Same.
6165         (delete_tree_ssa): Destroy edge var map.
6166         * tree-flow.h (struct _edge_var_map): New.
6167         Define edge_var_map vector type.
6168         Declare redirect_edge_var_map_* prototypes.
6169         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
6170         * tree-cfg.c (reinstall_phi_args): Replace
6171         PENDING_STMT use with redirect_edge_var_map_*.
6172
6173 2008-03-05  Richard Guenther  <rguenther@suse.de>
6174
6175         PR tree-optimization/35472
6176         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
6177         whose single use_stmt has a overlapping set of loaded and
6178         stored symbols as that use_stmt might be a noop assignment then.
6179
6180 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
6181
6182         * gthr-rtems.h: Implement __gthread_mutex_destroy.
6183
6184 2008-03-05  Richard Guenther  <rguenther@suse.de>
6185
6186         PR c++/35336
6187         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
6188         should be constants.
6189         * tree-cfg.c (verify_expr): Verify it.
6190         * fold-const.c (fold_truthop): Remove code generating
6191         BIT_FIELD_REFs of structure bases.
6192         (fold_binary): Likewise.
6193         (fold_ternary): Position and size of BIT_FIELD_REFs are
6194         always host integers.
6195         (make_bit_field_ref): Remove.
6196         (optimize_bit_field_compare): Remove.
6197         (all_ones_mask_p): Remove.
6198
6199 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
6200
6201         PR gcc/33009
6202         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
6203         (split_block_and_df_analyze): New. Split basic block and rebuild
6204         dataflow.
6205         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
6206         SPLIT_BLOCK.
6207         (split_pattern_seq): Likewise.
6208         (erase_matching_seqs): Likewise.
6209         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
6210
6211 2008-03-04  Geoff Keating  <geoffk@apple.com>
6212
6213         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
6214         declaration and code.
6215         (tree_invalid_nonnegative_warnv_p): Likewise.
6216
6217 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
6218
6219         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
6220         examples.  Truncate option-names then causing overfull hbox.
6221
6222 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6223
6224         PR target/35222
6225         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
6226         on hpux10.
6227         * configure: Rebuilt.
6228
6229 2008-03-04  Rafael Espindola  <espindola@google.com>
6230
6231         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
6232         (tree_unary_nonnegative_warnv_p): New.
6233         (tree_binary_nonnegative_warnv_p): New.
6234         (tree_single_nonnegative_warnv_p): New.
6235         (tree_invalid_nonnegative_warnv_p): New.
6236         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
6237
6238 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6239
6240         PR 28322
6241         * opts.c (handle_option): Postpone 'unknown option' errors only for
6242         warning options.
6243
6244 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
6245
6246         PR target/35453
6247         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
6248         (_SIDD_XXX): This.
6249
6250 2008-03-04  Rafael Espindola  <espindola@google.com>
6251
6252         * fold-const.c (tree_unary_nonzero_warnv_p): New.
6253         (tree_binary_nonzero_warnv_p): New.
6254         (tree_single_nonzero_warnv_p): New.
6255         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
6256
6257 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
6258
6259         PR middle-end/35456
6260         * fold-const.c (fold_cond_expr_with_comparison): Prevent
6261         transformations for modes that have signed zeros.
6262         * ifcvt.c (noce_try_abs): Ditto.
6263
6264 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
6265
6266         * config/i386/i386.c (override_options): Force
6267         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
6268
6269 2008-03-04  Jan Hubicka  <jh@suse.cz>
6270
6271         PR c++/35262
6272         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
6273         in last commit.
6274
6275 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
6276
6277         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
6278         label to probe the stack.
6279
6280 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
6281
6282         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
6283         (__gthr_win32_mutex_destroy): Declare.
6284         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
6285         __gthr_win32_mutex_destroy.
6286         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
6287
6288 2008-03-03  Jan Hubicka  <jh@suse.cz>
6289
6290         PR c++/35262
6291         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
6292         aggressive on inlining cold calls.
6293
6294 2008-03-03  Richard Guenther  <rguenther@suse.de>
6295
6296         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
6297         struct copies into the expression table.
6298         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
6299         (try_to_simplify): Likewise.
6300         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
6301         integral and pointer arguments which do not change the
6302         precision to NOP_EXPRs.
6303         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
6304         VIEW_CONVERT_EXPR case.
6305
6306 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
6307
6308         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
6309         defined in a loop at depth 0 is invariant.
6310         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
6311         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
6312         be called at loop depth 0.
6313
6314 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
6315
6316         PR driver/35420
6317         * gcc.c (process_command): Update copyright notice dates.
6318         * gcov.c (print_version): Likewise.
6319         * gcov-dump.c (print_version): Likewise.
6320         * mips-tfile.c (main): Likewise.
6321         * mips-tdump.c (main): Likewise.
6322
6323 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6324
6325         PR 24924
6326         * c-common.c (flag_permissive): Delete.
6327         (constant_expression_warnings): Check flags first.
6328         (constant_expression_error): New.
6329         * c-common.h (flag_permissive): Delete.
6330         (constant_expression_error): Declare.
6331         * flags.h (flag_permissive): Declare. Update description.
6332         * diagnostic.c (pedwarn): Update.
6333         (permerror): New.
6334         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
6335         (permissive_error_kind): New.
6336         * toplev.c (flag_permissive): Define. Update description.
6337         * toplev.h (permissive_error_kind): Declare.
6338         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
6339         (pedwarn_c90): Use pedantic_warning_kind.
6340         * c-opts.c (c_common_post_options): flag_permissive does not affect
6341         flag_pedantic_errors.
6342
6343 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
6344
6345         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
6346         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
6347         __absvsi2, __absvDI2): Use unsigned arithmetic.
6348
6349 2008-03-02  Andi Kleen  <ak@suse.de>
6350             Richard Guenther  <rguenther@suse.de>
6351
6352         * struct-equiv.c: Remove file.
6353         * cfg_cleanup.c (condjump_equiv_p): Remove.
6354         * Makefile.in (OBJS-common): Remove struct-equiv.o.
6355         (struct-equiv.o): Remove rule.
6356         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
6357         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
6358         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
6359
6360 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6361
6362         * ifcvt.c (noce_process_if_block): Try to handle only the then
6363         block if the else block exists but isn't suitable.
6364
6365 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
6366
6367         PR gcc/35063
6368         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
6369         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
6370         regression from previous patch.
6371
6372 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
6373
6374         PR gcc/35063
6375         * gthr.h: Add __gthread_mutex_destroy as a function that must be
6376         implemented.
6377         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
6378         * gthr-single.h (__gthread_mutex_destroy): Likewise.
6379         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
6380         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
6381         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
6382         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
6383         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
6384         (__gthread_mutex_destroy_function): Rename to
6385         __gthread_mutex_destroy.
6386         * gthr-dce.h (__gthread_mutex_destroy): Call
6387         pthread_mutex_destroy.
6388         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
6389         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
6390         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
6391
6392 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6393
6394         * df-scan.c (df_ref_chain_change_bb): Simplify.
6395         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
6396         set_block_for_insn if there's any change.
6397         * df.h ((df_insn_change_bb): Fix prototype.
6398         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
6399         df_insn_change_bb, don't call set_block_for_insn.
6400         * emit-rtl.c (reorder_insns): Likewise.
6401         * haifa-sched.c (move_insn): Likewise.
6402
6403 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6404
6405         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
6406
6407 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
6408
6409         * tree-flow-inline.h (next_readonly_imm_use): Return
6410         NULL_USE_OPERAND_P after the end.
6411
6412 2008-03-01  Richard Guenther  <rguenther@suse.de>
6413
6414         PR tree-optimization/35411
6415         * tree-sra.c (sra_build_assignment): Split conversion to
6416         final type to a separate statement if we are not assigning
6417         to a register.
6418
6419 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
6420
6421         * fold-const.c (fold_convertible_p): Correct the logic to follow
6422         that in fold_convert().
6423
6424 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
6425
6426         PR c++/35315
6427         * tree-inline.c (build_duplicate_type): When we make a
6428         duplicate type, make it unique in the canonical types system.
6429
6430 2008-02-29  Tom Tromey  <tromey@redhat.com>
6431
6432         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
6433         input_file_stack_history, input_file_stack_restored): Remove.
6434         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
6435         * input.h (struct file_stack): Remove.
6436         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
6437         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
6438         Likewise.
6439         * diagnostic.h (struct diagnostic_context) <last_module>: Change
6440         type.
6441         (diagnostic_last_module_changed): Add 'map' argument.
6442         (diagnostic_set_last_function): Likewise.
6443         * diagnostic.c (undiagnostic_report_current_module): Iterate using
6444         line map, not input_file_stack.
6445         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
6446
6447 2008-02-29  Paul Brook  <paul@codesourcery.com>
6448
6449         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
6450
6451 2008-02-29  Paul Brook  <paul@codesourcery.com>
6452
6453         * config/arm/ieee754-df.S (muldf3): Use RET macros.
6454
6455 2008-02-29  Richard Guenther  <rguenther@suse.de>
6456
6457         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
6458         vn_lookup_or_add.
6459         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
6460         value for comparing for a store match.
6461         (simplify_unary_expression): Do nothing for SSA_NAMEs.
6462         (try_to_simplify): Do not do a full-blown reference lookup.
6463
6464 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6465
6466         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
6467         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
6468
6469         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
6470
6471 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
6472
6473         * tree-loop-linear.c (try_interchange_loops): Compare memory access
6474         strides against cache sizes.
6475
6476 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6477
6478         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
6479         constant to fpul.
6480
6481 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
6482
6483         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
6484         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
6485         is smaller than the original promoted value.
6486         (simplify_subreg): If OP is a SUBREG, try to preserve its
6487         SUBREG_PROMOTED_VAR_P information.
6488
6489 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
6490
6491         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
6492         (VN_INFO_GET): Allocate new objects on the obstack.
6493         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
6494         for rpo_numbers_temp, for consistency.
6495         (free_scc_vn): Free the obstack.
6496
6497 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
6498
6499         * doc/invoke.texi: Document -ftree-loop-distribution.
6500         * tree-loop-distribution.c: New.
6501         * tree-pass.h (pass_loop_distribution): New.
6502         * graphds.h (struct graph): Add htab_t indices.
6503         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
6504         * tree-vectorizer.c (rename_variables_in_loop): Extern.
6505         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
6506         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
6507         * tree-data-ref.c (debug_data_dependence_relations): New.
6508         (dump_data_dependence_relation): Also print data references.
6509         (free_data_ref): Extern.
6510         (same_access_functions): Moved...
6511         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
6512         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6513         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
6514         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
6515         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
6516         (stmts_from_loop): Skip LABEL_EXPR.
6517         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
6518         New.
6519         (build_rdg): Initialize rdg->indices htab.
6520         (free_rdg, stores_from_loop, ref_base_address,
6521         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
6522         have_similar_memory_accesses_1, ref_base_address_1,
6523         remove_similar_memory_refs): New.
6524         * tree-data-ref.h: Depend on tree-chrec.h.
6525         (debug_data_dependence_relations, free_data_ref): Declared.
6526         (same_access_functions): ... here.
6527         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
6528         New.
6529         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
6530         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
6531         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
6532         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6533         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
6534         rdg_vertex_for_stmt): Declared.
6535         (struct rdg_edge): Add level.
6536         (RDGE_LEVEL): New.
6537         (free_rdg, stores_from_loop, remove_similar_memory_refs,
6538         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
6539         Declared.
6540         (rdg_has_similar_memory_accesses): New.
6541         * tree-vect-analyze.c: Remove unused static decls.
6542         * lambda.h (dependence_level): New.
6543         * common.opt (ftree-loop-distribution): New.
6544         * tree-flow.h (mark_virtual_ops_in_bb, 
6545         slpeel_tree_duplicate_loop_to_edge_cfg,
6546         rename_variables_in_loop): Declared.
6547         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
6548         (OBJS-common): Add tree-loop-distribution.o.
6549         (tree-loop-distribution.o): New rule.
6550         * tree-cfg.c (mark_virtual_ops_in_bb): New.
6551         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
6552         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
6553
6554 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
6555
6556         PR target/33963
6557         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
6558         other than structures and unions.
6559
6560 2008-02-28  Richard Guenther  <rguenther@suse.de>
6561
6562         Revert:
6563         2008-02-26  Richard Guenther  <rguenther@suse.de>
6564
6565         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6566         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6567         (lookup_decl_from_uid): Declare.
6568         (remove_decl_from_map): Likewise.
6569         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6570         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6571         (decl_for_uid_map): New global hashtable mapping DECL_UID
6572         to the decl tree.
6573         (init_ttree): Allocate it.
6574         (insert_decl_to_uid_decl_map): New helper function.
6575         (make_node_stat): Insert new decls into the map.
6576         (copy_node_stat): Likewise.
6577         (lookup_decl_from_uid): New function.
6578         (remove_decl_from_map): Likewise.
6579         (print_decl_for_uid_map_statistics): New helper.
6580         (dump_tree_statistics): Call it.
6581
6582         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6583         (referenced_var_iterator): Adjust.
6584         (FOR_EACH_REFERENCED_VAR): Adjust.
6585         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6586         (num_referenced_vars): Adjust.
6587         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6588         (first_referenced_var): Remove.
6589         (end_referenced_vars_p): Likewise.
6590         (next_referenced_var): Likewise.
6591         (referenced_var_iterator_set): New helper function.
6592         * tree-dfa.c (referenced_var_lookup): Adjust.
6593         (referenced_var_check_and_insert): Likewise.
6594         (remove_referenced_var): Likewise.
6595         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6596         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6597         (verify_call_clobbering): Likewise.
6598         (verify_memory_partitions): Likewise.
6599         (init_tree_ssa): Allocate bitmap instead of hashtable for
6600         referenced_vars.
6601         (delete_tree_ssa): Adjust.
6602         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6603         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6604         (compute_tag_properties): Likewise.
6605         (set_initial_properties): Likewise.
6606         (find_partition_for): Likewise.
6607         (update_reference_counts): Likewise.
6608         (dump_may_aliases_for): Likewise.
6609         * tree-ssa-operands.c (add_virtual_operand): Likewise.
6610         (add_call_clobber_ops): Likewise.
6611         (add_call_read_ops): Likewise.
6612         (get_asm_expr_operands): Likewise.
6613         * tree-into-ssa.c (dump_decl_set): Likewise.
6614         (update_ssa): Likewise.
6615         * tree-sra.c (scan_function): Likewise.
6616         (decide_instantiations): Likewise.
6617         (scalarize_parms): Likewise.
6618         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
6619         (dsa_named_for): Likewise.
6620         * tree-ssa-structalias.c (update_alias_info): Likewise.
6621         (merge_smts_into): Likewise.
6622
6623 2008-02-27  David Daney  <ddaney@avtrex.com>
6624
6625         PR target/34409
6626         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
6627         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
6628         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
6629         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
6630         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
6631
6632 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
6633
6634         PR target/25477
6635         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
6636         (BUILT_IN_NEXTTOWARD): Remove.
6637         (BUILT_IN_NEXTTOWARDF): Ditto.
6638         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
6639         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
6640
6641 2008-02-27  Tom Tromey  <tromey@redhat.com>
6642
6643         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
6644         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
6645
6646 2008-02-27  Jan Beulich  <jbeulich@novell.com>
6647
6648         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
6649         update the respective field on newdecl.
6650
6651 2008-02-27  Revital Eres  <eres@il.ibm.com>
6652
6653         PR rtl-optimization/34999
6654         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
6655         crossing edges that ends with a call insn.
6656         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
6657         call insn and clear the EDGE_CROSSING flag of the crossing edge
6658         when fixing fallthru edges.
6659
6660 2008-02-27  Richard Guenther  <rguenther@suse.de>
6661
6662         PR middle-end/35390
6663         * fold-const.c (fold_unary): Return the correct argument,
6664         converted to the result type.
6665
6666 2008-02-27  Richard Guenther  <rguenther@suse.de>
6667
6668         PR middle-end/34971
6669         * expr.c (expand_expr_real_1): Assert on rotates that operate
6670         on partial modes.
6671         * fold-const.c (fold_binary): Use the types precision, not the
6672         bitsize of the mode if folding rotate expressions.  Build rotates
6673         only for full modes.
6674
6675 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
6676
6677         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
6678         and CPP_PRAGMA_EOL.
6679         * c-pragma.c (pragma_ns_name): New typedef.
6680         (registered_pp_pragmas): New variable.
6681         (c_pp_lookup_pragma): New function.
6682         (c_register_pragma_1): If flag_preprocess_only, do nothing
6683         for non-expanded pragmas, for expanded ones push pragma's
6684         namespace and name into registered_pp_pragmas vector.
6685         (c_invoke_pragma_handler): Register OpenMP pragmas even when
6686         flag_preprocess_only, don't register GCC pch_preprocess
6687         pragma if flag_preprocess_only.
6688         * c-opts.c (c_common_init): Call init_pragma even if
6689         flag_preprocess_only.
6690         * c-pragma.c (c_pp_lookup_pragma): New prototype.
6691         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
6692         cpp_register_pragma if flag_preprocess_only.
6693
6694 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6695
6696         PR c/28800
6697         * c-parser.c (c_parser_translation_unit): Warn for empty
6698         translation unit, not empty source file.
6699
6700 2008-02-26  Paul Brook  <paul@codesourcery.com>
6701
6702         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
6703         operand for Thumb-2.
6704         * config/arm/arm.h (reg_class): Add CORE_REGS.
6705         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
6706         (BASE_REG_CLASS): Use CORE_REGS.
6707         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
6708         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
6709         (REGNO_OK_FOR_INDEX_P): Exclude SP.
6710         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
6711         ARM_REGNO_OK_FOR_INDEX_P.
6712         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
6713         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
6714         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
6715         (ldm/stm peepholes): Ditto.
6716         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
6717         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
6718         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
6719         * config/arm/constraints.md: Enable "k" constraint on ARM.
6720
6721 2008-02-27  Ben Elliston  <bje@au.ibm.com>
6722
6723         * config/rs6000/rs6000.c: Annotate cache line size field in all
6724         instances of struct processor_costs.
6725
6726 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
6727
6728         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
6729         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
6730         jump_bypass): New counters.
6731         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
6732         * dce.c (gate_ud_dce): Same.
6733         (gate_fast_dce): Same.
6734         * dse.c (gate_dse1): New function.
6735         (gate_dse2): New function.
6736         (gate_dse): Merge results of new gate functions.
6737         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
6738         (gate_handle_jump_bypass): Add dbg_cnt.
6739         (gate_handle_gcse): Add dbg_cnt.
6740         * ifcvt.c (gate_handle_if_conversion): Same.
6741         (gate_handle_if_after_combine): Same.
6742         (gate_handle_if_after_reload): Same.
6743         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
6744
6745 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
6746
6747         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
6748         line sizes.
6749         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
6750
6751 2008-02-26  Jason Merrill  <jason@redhat.com>
6752
6753         PR c++/35315
6754         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
6755         alone if it's the naming decl for the type's main variant.
6756
6757 2008-02-26  Tom Tromey  <tromey@redhat.com>
6758
6759         * system.h (USE_MAPPED_LOCATION): Poison.
6760         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
6761         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
6762         (make_goto_expr_edges): Likewise.
6763         (remove_bb): Likewise.
6764         (execute_warn_function_return): Likewise.
6765         * basic-block.h (struct edge_def) <goto_locus>: Change type to
6766         location_t.
6767         * c-common.c (fname_decl): Remove old location code.
6768         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
6769         location code.
6770         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
6771         variant.
6772         (ASM_INPUT_SOURCE_LOCATION): Likewise.
6773         (gen_rtx_ASM_INPUT): Likewise.
6774         (gen_rtx_ASM_INPUT_loc): Likewise.
6775         (get_rtx_asm_OPERANDS): Remove.
6776         * cfglayout.c (insn_locators_alloc): Remove old location code.
6777         (set_curr_insn_source_location): Likewise.
6778         (curr_insn_locator): Likewise.
6779         * print-tree.c (print_node): Remove old location code.
6780         * tree-mudflap.c (mf_varname_tree): Remove old location code.
6781         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
6782         * cfgexpand.c (expand_gimple_cond_expr): Don't use
6783         location_from_locus.
6784         (construct_exit_block): Remove old location code.
6785         * emit-rtl.c (force_next_line_note): Remove old location code.
6786         * profile.c (branch_prob): Remove old location code.
6787         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
6788         LOC_LINE): Remove old-location variants.
6789         * langhooks.c (lhd_print_error_function): Remove old location
6790         code.
6791         * configure, config.in: Rebuilt.
6792         * configure.ac (--enable-mapped-location): Remove.
6793         * c-decl.c (c_init_decl_processing): Remove old location code.
6794         (finish_function): Likewise.
6795         * recog.c (decode_asm_operands): Remove old location code.
6796         * c-pch.c (c_common_read_pch): Remove old location code.
6797         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
6798         variants.
6799         * gimple-low.c (lower_function_body): Remove old location code.
6800         * toplev.c (unknown_location): Remove.
6801         (push_srcloc): Remove old-location variant.
6802         (process_options): Remove old location code.
6803         (lang_dependent_init): Likewise.
6804         * input.h (UNKNOWN_LOCATION): Move definition.
6805         (location_t): Undeprecate.
6806         (source_locus): Remove.
6807         (location_from_locus): Remove.
6808         (struct location_s): Remove.
6809         Remove all old-location code.
6810         (input_line, input_filename): Remove.
6811         * final.c (final_scan_insn): Remove old location code.
6812         * diagnostic.c (diagnostic_build_prefix): Remove
6813         USE_MAPPED_LOCATION test.
6814         * tree.h (gimple_stmt) <locus>: Now a location_t.
6815         (tree_exp) <locus>: Likewise.
6816         (DECL_IS_BUILTIN): Remove old-location variant.
6817         (annotate_with_file_line, annotate_with_locus): Likewise.
6818         (expr_locus, set_expr_locus): Update.
6819         * tree.c (build1_stat): Remove old location code.
6820         (last_annotated_node): Remove.
6821         (annotate_with_file_line): Remove old-location variant.
6822         (annotate_with_locus): Likewise.
6823         (expr_location): Remove old location code.
6824         (set_expr_location): Likewise.
6825         (expr_has_location): Likewise.
6826         (expr_locus): Likewise.
6827         (set_expr_locus): Likewise.
6828         (expr_filename): Don't use location_from_locus.
6829         (expr_lineno): Likewise.
6830         * rtl-error.c (location_for_asm): Remove old location code.
6831         * c-lex.c (cb_line_change): Remove old location code.
6832         (fe_file_change): Likewise.
6833         (cb_def_pragma): Likewise.
6834         (c_lex_with_flags): Likewise.
6835         * gengtype.c (do_typedef): Don't special-case location types.
6836         (define_location_structures): Remove.
6837         (main): Don't call define_location_structures.
6838         * tree-pretty-print.c (dump_implicit_edges): Remove old location
6839         code.
6840
6841 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6842
6843         PR 26264
6844         * builtins.def (BUILT_IN_STDARG_START): Remove.
6845         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
6846         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
6847         * tree-inline.c (inline_forbidden_p_1): Likewise.
6848         
6849 2008-02-26  Richard Guenther  <rguenther@suse.de>
6850
6851         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6852         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6853         (lookup_decl_from_uid): Declare.
6854         (remove_decl_from_map): Likewise.
6855         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6856         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6857         (decl_for_uid_map): New global hashtable mapping DECL_UID
6858         to the decl tree.
6859         (init_ttree): Allocate it.
6860         (insert_decl_to_uid_decl_map): New helper function.
6861         (make_node_stat): Insert new decls into the map.
6862         (copy_node_stat): Likewise.
6863         (lookup_decl_from_uid): New function.
6864         (remove_decl_from_map): Likewise.
6865         (print_decl_for_uid_map_statistics): New helper.
6866         (dump_tree_statistics): Call it.
6867
6868         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6869         (referenced_var_iterator): Adjust.
6870         (FOR_EACH_REFERENCED_VAR): Adjust.
6871         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6872         (num_referenced_vars): Adjust.
6873         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6874         (first_referenced_var): Remove.
6875         (end_referenced_vars_p): Likewise.
6876         (next_referenced_var): Likewise.
6877         (referenced_var_iterator_set): New helper function.
6878         * tree-dfa.c (referenced_var_lookup): Adjust.
6879         (referenced_var_check_and_insert): Likewise.
6880         (remove_referenced_var): Likewise.
6881         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6882         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6883         (verify_call_clobbering): Likewise.
6884         (verify_memory_partitions): Likewise.
6885         (init_tree_ssa): Allocate bitmap instead of hashtable for
6886         referenced_vars.
6887         (delete_tree_ssa): Adjust.
6888         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6889         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6890         (compute_tag_properties): Likewise.
6891         (set_initial_properties): Likewise.
6892         (find_partition_for): Likewise.
6893         (update_reference_counts): Likewise.
6894         (dump_may_aliases_for): Likewise.
6895         * tree-ssa-operands.c (add_virtual_operand): Likewise.
6896         (add_call_clobber_ops): Likewise.
6897         (add_call_read_ops): Likewise.
6898         (get_asm_expr_operands): Likewise.
6899         * tree-into-ssa.c (dump_decl_set): Likewise.
6900         (update_ssa): Likewise.
6901         * tree-sra.c (scan_function): Likewise.
6902         (decide_instantiations): Likewise.
6903         (scalarize_parms): Likewise.
6904         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
6905         (dsa_named_for): Likewise.
6906         * tree-ssa-structalias.c (update_alias_info): Likewise.
6907         (merge_smts_into): Likewise.
6908
6909 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6910
6911         PR 34351
6912         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
6913         * c-opts.c (c_common_handle_option): Wall enables
6914         Wvolatile-register-var.
6915         * common.opt: Move Wvolatile-register-var to...
6916         * c.opt: ...here.
6917         
6918 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6919
6920         * common.opt (Wlarger-than=): New.
6921         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
6922         -Wlarger-than=.
6923         * opts.c (common_handle_option): Handle -Wlarger-than=.
6924         * optc-gen.awk: Likewise.
6925         * opth-gen.awk: Likewise.
6926         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
6927         * tree-optimize.c (tree_rest_of_compilation): Likewise.
6928         
6929 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6930
6931         * c-common.c (match_case_to_enum_1): Add appropriate
6932         OPT_W* parameter to warning.
6933         (c_do_switch_warnings): Likewise.
6934         * c-typeck.c (warning_init): Add one more parameter following
6935         'warning' function.
6936         (push_init_level): Update call to warning_init.
6937         (pop_init_level): Likewise.
6938         (add_pending_init): Likewise.
6939         (output_init_element: Likewise.
6940
6941 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6942
6943         PR 28322
6944         * toplev.c (toplev_main): If there are warnings or error, print
6945         errors for ignored options.
6946         * opts.c (ignored_options): New static variable.
6947         (postpone_unknown_option_error): New.
6948         (print_ignored_options): New.
6949         (handle_option): Postpone errors for unknown -Wno-* options.
6950         * opts.h (print_ignored_options): Declare.
6951         
6952 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
6953
6954         * config/mips/mips.md (loadgp_blockage, blockage): Change type
6955         to "ghost".
6956
6957 2008-02-25  Richard Guenther  <rguenther@suse.de>
6958
6959         Revert:
6960         2008-02-25  Richard Guenther  <rguenther@suse.de>
6961
6962         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
6963         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
6964         (lookup_decl_from_uid): Declare.
6965         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
6966         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
6967         (decl_for_uid_map): New global hashtable mapping DECL_UID
6968         to the decl tree.
6969         (init_ttree): Allocate it.
6970         (insert_decl_to_uid_decl_map): New helper function.
6971         (make_node_stat): Insert new decls into the map.
6972         (copy_node_stat): Likewise.
6973         (lookup_decl_from_uid): New function.
6974         (print_decl_for_uid_map_statistics): New helper.
6975         (dump_tree_statistics): Call it.
6976
6977         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
6978         (referenced_var_iterator): Adjust.
6979         (FOR_EACH_REFERENCED_VAR): Adjust.
6980         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
6981         (num_referenced_vars): Adjust.
6982         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
6983         (first_referenced_var): Remove.
6984         (end_referenced_vars_p): Likewise.
6985         (next_referenced_var): Likewise.
6986         (referenced_var_iterator_set): New helper function.
6987         * tree-dfa.c (referenced_var_lookup): Adjust.
6988         (referenced_var_check_and_insert): Likewise.
6989         (remove_referenced_var): Likewise.
6990         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
6991         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6992         (verify_call_clobbering): Likewise.
6993         (verify_memory_partitions): Likewise.
6994         (init_tree_ssa): Allocate bitmap instead of hashtable for
6995         referenced_vars.
6996         (delete_tree_ssa): Adjust.
6997         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
6998         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
6999         (compute_tag_properties): Likewise.
7000         (set_initial_properties): Likewise.
7001         (find_partition_for): Likewise.
7002         (update_reference_counts): Likewise.
7003         (dump_may_aliases_for): Likewise.
7004         * tree-ssa-operands.c (add_virtual_operand): Likewise.
7005         (add_call_clobber_ops): Likewise.
7006         (add_call_read_ops): Likewise.
7007         (get_asm_expr_operands): Likewise.
7008         * tree-into-ssa.c (dump_decl_set): Likewise.
7009         (update_ssa): Likewise.
7010         * tree-sra.c (scan_function): Likewise.
7011         (decide_instantiations): Likewise.
7012         (scalarize_parms): Likewise.
7013         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7014         (dsa_named_for): Likewise.
7015         * tree-ssa-structalias.c (update_alias_info): Likewise.
7016         (merge_smts_into): Likewise.
7017
7018 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
7019
7020         PR fortran/29549
7021         * doc/invoke.texi (-fcx-limited-range): Document new option.
7022         * toplev.c (process_options): Handle -fcx-fortran-rules.
7023         * common.opt: Add documentation for -fcx-fortran-rules.
7024
7025 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
7026
7027         PR c/35162
7028         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
7029         actual behaviour and C99.
7030         
7031 2008-02-26  Ben Elliston  <bje@au.ibm.com>
7032
7033         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
7034         (ASM_CPU_POWER6_SPEC): Likewise.
7035         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
7036         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
7037         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
7038
7039 2008-02-25  Richard Guenther  <rguenther@suse.de>
7040
7041         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
7042         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
7043         (lookup_decl_from_uid): Declare.
7044         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
7045         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
7046         (decl_for_uid_map): New global hashtable mapping DECL_UID
7047         to the decl tree.
7048         (init_ttree): Allocate it.
7049         (insert_decl_to_uid_decl_map): New helper function.
7050         (make_node_stat): Insert new decls into the map.
7051         (copy_node_stat): Likewise.
7052         (lookup_decl_from_uid): New function.
7053         (print_decl_for_uid_map_statistics): New helper.
7054         (dump_tree_statistics): Call it.
7055
7056         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
7057         (referenced_var_iterator): Adjust.
7058         (FOR_EACH_REFERENCED_VAR): Adjust.
7059         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
7060         (num_referenced_vars): Adjust.
7061         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
7062         (first_referenced_var): Remove.
7063         (end_referenced_vars_p): Likewise.
7064         (next_referenced_var): Likewise.
7065         (referenced_var_iterator_set): New helper function.
7066         * tree-dfa.c (referenced_var_lookup): Adjust.
7067         (referenced_var_check_and_insert): Likewise.
7068         (remove_referenced_var): Likewise.
7069         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
7070         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7071         (verify_call_clobbering): Likewise.
7072         (verify_memory_partitions): Likewise.
7073         (init_tree_ssa): Allocate bitmap instead of hashtable for
7074         referenced_vars.
7075         (delete_tree_ssa): Adjust.
7076         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
7077         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7078         (compute_tag_properties): Likewise.
7079         (set_initial_properties): Likewise.
7080         (find_partition_for): Likewise.
7081         (update_reference_counts): Likewise.
7082         (dump_may_aliases_for): Likewise.
7083         * tree-ssa-operands.c (add_virtual_operand): Likewise.
7084         (add_call_clobber_ops): Likewise.
7085         (add_call_read_ops): Likewise.
7086         (get_asm_expr_operands): Likewise.
7087         * tree-into-ssa.c (dump_decl_set): Likewise.
7088         (update_ssa): Likewise.
7089         * tree-sra.c (scan_function): Likewise.
7090         (decide_instantiations): Likewise.
7091         (scalarize_parms): Likewise.
7092         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7093         (dsa_named_for): Likewise.
7094         * tree-ssa-structalias.c (update_alias_info): Likewise.
7095         (merge_smts_into): Likewise.
7096
7097 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
7098
7099         PR target/35258
7100         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
7101         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
7102         * alias.h (nonoverlapping_memrefs_p): Likewise.
7103
7104 2008-02-25  Jan Beulich  <jbeulich@novell.com>
7105
7106         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
7107         * config/i386/netware-libgcc.exp: Add __bswap?i2,
7108         __emultls_get_address, __emultls_register_common,
7109         __floatundi?f, and _Unwind_GetIPInfo.
7110         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
7111         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
7112         (gen_regparm_prefix): Likewise.
7113         (i386_nlm_encode_section_info): Sync with
7114         config/i386/winnt.c:i386_pe_encode_section_info().
7115         (i386_nlm_maybe_mangle_decl_assembler_name): New.
7116         i386_nlm_mangle_decl_assembler_name): New.
7117         (netware_override_options): New.
7118         * config/i386/netware.h (netware_override_options): Declare.
7119         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
7120         (i386_nlm_mangle_decl_assembler_name): Declare.
7121         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
7122
7123 2008-02-25  Ben Elliston  <bje@au.ibm.com>
7124
7125         PR other/32948
7126         * c-decl.c (grokdeclarator): Remove unused local variables
7127         `typedef_type' and `type_as_written'.
7128         * bb-reorder.c
7129         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
7130         unused local variable `has_hot_blocks'.
7131         (fix_crossing_conditional_branches): Remove unused local variable
7132         `prev_bb'.
7133         
7134 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
7135
7136         PR middle-end/19984
7137         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
7138         using DEF_C99_BUILTIN.
7139         (BUILT_IN_NANF): Ditto.
7140         (BUILT_IN_NANL): Ditto.
7141
7142 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
7143             Revital Eres  <eres@il.ibm.com>
7144
7145         * modulo-sched.c (calculate_must_precede_follow): Address TODO
7146         regarding the order of two dependent insns in the same row.
7147
7148 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7149
7150         * stor-layout.c (layout_decl): Do not bump the alignment of a
7151         bit-field to more than byte alignment if it is packed.
7152
7153 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
7154
7155         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
7156         e300c2 and e300c3.
7157
7158 2008-02-24  Diego Novillo  <dnovillo@google.com>
7159
7160         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
7161
7162         PR 33738
7163         * tree-vrp.c (vrp_evaluate_conditional): With
7164         -Wtype-limits, emit a warning when comparing against a
7165         constant outside the natural range of OP0's type.
7166         * c.opt (Wtype-limits): Move ...
7167         * common.opt (Wtype-limits): ... here.
7168
7169 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
7170
7171         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
7172         * config/rs6000/e300c2c3.md: New file.
7173         * config/rs6000/rs6000.c (processor_costs): Add new costs for
7174         e300c2 and e300c3.
7175         (rs6000_override_options): Add e300c2 and e300c3 cases to
7176         processor_target_table. Do not allow usage of Altivec or Spe
7177         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
7178         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
7179         * config/rs6000/rs6000.h (processor_type): Add
7180         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
7181         (ASM_CPU_SPEC): Add e300c2 and e300c3.
7182         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
7183         and ppce300c3. Include e300c2c3.md.
7184
7185 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
7186
7187         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
7188         instead of TARGET_STRICT_ALIGN.
7189
7190 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
7191
7192         * explow.c (memory_address): Assert that the generated address is
7193         valid.
7194
7195 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
7196
7197         PR target/25477
7198         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
7199         * config/darwin-ppc-ldouble-patch.def: New file.
7200         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
7201         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
7202         SUBTARGET_INIT_BUILTINS if defined.
7203         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
7204         New functions.
7205
7206 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7207
7208         PR rtl-opt/33512
7209         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
7210         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
7211
7212 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7213
7214         PR pch/35027
7215         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
7216         file" warning condtional on -Winvalid-PCH.
7217
7218 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
7219
7220         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
7221
7222 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
7223
7224         PR target/22076
7225         PR target/34256 
7226         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
7227         prevent reload from using MMX registers.
7228         (*mov<mode>_internal): Ditto.
7229         (*movv2sf_internal_rex64): Ditto.
7230         (*movv2sf_internal): Ditto.
7231
7232 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7233
7234         PR documentation/31569
7235         * doc/install.texi2html: Use makeinfo --no-number-sections.
7236
7237 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
7238
7239         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
7240         ensure that we can address an entire entity > 8 bytes.  Don't
7241         generate reg+reg addressing for such data.
7242
7243 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
7244
7245         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
7246         strings when optimizing for size, unless the target cares about
7247         alignment.
7248
7249 2008-02-22  Tom Tromey  <tromey@redhat.com>
7250
7251         * regclass.c (current_pass): Remove declaration.
7252
7253 2008-02-22  Anatoly Sokolov <aesok@post.ru>
7254
7255         * config/avr/libgcc.S (__RAMPZ__): Define.
7256         (__do_copy_data): Add for devices with 128KB code memory.
7257
7258 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
7259
7260         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
7261         Use spe_abi.
7262         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
7263
7264 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
7265
7266         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
7267         GENNONACR_REGS.
7268
7269 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7270
7271         PR c/19999
7272         * c-typeck.c (build_binary_op): Warn about floating point
7273         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
7274
7275 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
7276
7277         PR target/34526
7278         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
7279         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
7280         add vrsave.
7281         (rs6000_override_options): Set altivec_abi as default, not override,
7282         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
7283         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
7284         is used; use new member spe_abi.
7285         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
7286         spe_abi and altivec_abi.
7287
7288 2008-02-22  Tomas Bily  <tbily@suse.cz>
7289
7290         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
7291
7292 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7293
7294         PR bootstrap/35273
7295         * config.build (build_file_translate): Set to `CMD //c' only if
7296         it works.
7297         * Makefile.in (build_file_translate): Improve comment.
7298
7299 2008-02-21  Jan Hubicka  <jh@suse.cz>
7300
7301         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
7302         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
7303         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
7304
7305 2008-02-21  Michael Matz  <matz@suse.de>
7306
7307         PR target/35264
7308         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
7309
7310 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
7311
7312         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
7313         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
7314         as insn constraint.
7315         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
7316         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
7317         SSE_VEC_FLOAT_MODE_P as insn constraint.
7318         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
7319         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
7320         sse4a_movntdf using MODEF mode iterator.
7321         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
7322         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
7323         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
7324         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
7325         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
7326         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
7327         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
7328
7329 2008-02-21  Richard Guenther  <rguenther@suse.de>
7330
7331         * tree.def (PAREN_EXPR): New tree code.
7332         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
7333         and PAREN_EXPR.
7334         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
7335         * expr.c (expand_expr_real_1): Likewise.
7336         * tree-inline.c (estimate_num_insns_1): Likewise.
7337         * tree-complex.c (expand_complex_move): Likewise.
7338         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
7339         as plain x.
7340
7341 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7342
7343         PR target/35225
7344         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
7345
7346 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7347
7348         PR target/35190
7349         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
7350
7351         * config/sh/sh.c (find_barrier): Don't go past
7352         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
7353
7354 2008-02-20  DJ Delorie  <dj@redhat.com>
7355
7356         * config/h8300/h8300.md (insv): Force source operand to be a register.
7357
7358         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
7359         as a jump, not as a plain insn.
7360         
7361 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
7362
7363         * doc/invoke.texi (Warning Options): Add new option
7364         -Wframe-larger-than=.
7365         (-Wframe-larger-than): Document.
7366
7367         * flags.h (warn_frame_larger_than, frame_larger_than_size):
7368         Add declarations for new option variables.
7369
7370         * final.c (final_start_function): Check the frame size
7371         before emission and issue a Wframe-larger-than warning.
7372
7373         * opts.c (warn_frame_larger_than, frame_larger_than_size):
7374         Add definitions for new option variables.
7375         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
7376
7377         * common.opt (Wframe-larger-than=): New option.
7378
7379 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
7380
7381         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
7382         (<sse>_div<mode>3): Ditto.
7383         (<sse>_vmdiv<mode>3): Ditto.
7384         (<sse>_vmsqrt<mode>2): Ditto.
7385         (*smax<mode>3): Ditto.
7386         (sse5_frcz<mode>2): Ditto.
7387         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
7388         as insn constraint.
7389
7390 2008-02-20  Richard Guenther  <rguenther@suse.de>
7391
7392         PR middle-end/35265
7393         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
7394         be happy with INTEGRAL_TYPE_P.
7395
7396 2008-02-20  Richard Guenther  <rguenther@suse.de>
7397
7398         * fold-const.c (split_tree): Associate floatig-point expressions
7399         if flag_associative_math is set.
7400
7401 2008-02-20  Richard Guenther  <rguenther@suse.de>
7402
7403         * tree.h (fold_real_zero_addition_p): Declare.
7404         * fold-const.c (fold_real_zero_addition_p): Export.
7405         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
7406         floating-point operations with zero and one.
7407
7408 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
7409
7410         * doc/install.texi: Correct references to CFLAGS, replacing them
7411         with BOOT_CFLAGS.  Document flags used during bootstrap for
7412         target libraries.
7413                                 
7414 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
7415
7416         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
7417         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
7418         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
7419         insn constraint.
7420         (smin<mode>3): Ditto from similar patterns.
7421         (smax<mode>3): Ditto.
7422         (*ieee_smin<mode>3): Ditto.
7423         (*ieee_smax<mode>3): Ditto.
7424         * config/i386/sse.md (sse): New mode attribute.
7425         (mov<mode>): Macroize expander from movv4sf and movv2df using
7426         SSEMODEF2P mode iterator.
7427         (<sse>_movnt<mode>): Ditto from similar patterns. Use
7428         SSE_VEC_FLOAT_MODE_P as insn constraint.
7429         (storent<mode>): Ditto.
7430         (storent<mode>): Macroize expander from storentsf and storentdf using
7431         MODEF mode iterator.
7432         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
7433         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
7434         (abs<mode>2): Ditto from similar patterns.
7435         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
7436         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
7437         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
7438         (<sse>_vmsqrt<mode>2): Ditto.
7439         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
7440         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
7441         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
7442         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
7443         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
7444         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
7445         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
7446         insn constraint.
7447         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
7448         iterator and SSE_FLOAT_MODE_P as insn constraint.
7449         (<sse>_ucomi): Ditto from similar patterns.
7450         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
7451         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
7452         SSE_VEC_FLOAT_MODE_P as insn constraint.
7453         (vcond<mode>): Ditto from similar patterns.
7454         (and<mode>3, *and<mode>3): Ditto.
7455         (<sse>_nand<mode>3): Ditto.
7456         (ior<mode>3, *ior<mode>3): Ditto.
7457         (xor<mode>3, *xor<mode>3): Ditto.
7458         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
7459         iterator and SSE_FLOAT_MODE_P as insn constraint.
7460         (*nand<mode>3): Ditto from similar patterns.
7461         (*ior<mode>3): Ditto.
7462         (*xor<mode>3): Ditto.
7463
7464 2008-02-20  Ira Rosen  <irar@il.ibm.com>
7465
7466         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
7467         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
7468         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
7469
7470 2008-02-19  Jan Hubicka  <jh@suse.cz>
7471
7472         * predict.c (tree_bb_level_predictions): Remove variable next
7473         mistakely introduced by previous commit.
7474
7475 2008-02-19  Jan Hubicka  <jh@suse.cz>
7476
7477         * predict.c (predict_paths_leading_to): Rewrite.
7478         (predict_paths_for_bb): New.
7479         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
7480
7481 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7482
7483         PR bootstrap/35218
7484         * Makefile.in (build_file_translate): New.
7485         (gcc-vers.texi): Use it for translating $(abs_srcdir).
7486         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
7487         * configure.ac (build_file_translate): Substitute it.
7488         * configure: Regenerate.
7489
7490 2008-02-19  Jan Hubicka  <jh@suse.cz>
7491
7492         PR rtl-optimization/34408
7493         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
7494         invalid sharing.
7495
7496 2008-02-19  Jan Hubicka  <jh@suse.cz>
7497
7498         PR middle-end/28779
7499         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
7500         call_expr.
7501
7502 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
7503
7504         PR Ada/35186
7505         * config/i386/i386-modes.def: Revert the last DI alignment
7506         change until Ada people can look into it.
7507
7508 2008-02-19  Nick Clifton  <nickc@redhat.com>
7509
7510         * opts.c (print_specific_help): Fix typo in --help text.
7511
7512 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
7513
7514         PR target/35239
7515         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
7516         32-bit inline asm without asm alternatives for host GCC < 3.0.
7517
7518 2008-02-19  Richard Guenther  <rguenther@suse.de>
7519
7520         PR tree-optimization/34989
7521         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
7522         Allow propagation to INDIRECT_REF if we can simplify only.
7523
7524 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7525
7526         * c-common.c (warn_for_collisions_1): Use appropriate option when
7527         warning.
7528
7529 2008-02-19  Nick Clifton  <nickc@redhat.com>
7530
7531         PR other/31349
7532         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
7533         (handle_options): Fix indentation.
7534         (print_filtered_help): If no language-specific options were
7535         displayed tell the user how to list all the options supported by
7536         the language's front-end.
7537         (print_specific_help): Fix indentation and remove duplicate line.
7538         (common_handle_option): Handle the -v option.
7539         For --help enable the display of undocumented options if the -v
7540         switch has been included on the command line.
7541         For --help= check for overlaps in the arguments between the option
7542         classes and the language names and issue a warning when they
7543         cannot be disambiguated.
7544         * c.opt (v): Pass on to the common option handler.
7545
7546 2008-02-19  Revital Eres  <eres@il.ibm.com> 
7547
7548         * modulo-sched.c (sms_schedule): Change dump message when
7549         create_ddg function fails.
7550         (try_scheduling_node_in_cycle): Rename row to cycle.
7551         (print_partial_schedule): Rename CYCLE to ROW.
7552
7553 2008-02-19  Christian Bruel  <christian.bruel@st.com>
7554             Zdenek Dvorak  <ook@ucw.cz>
7555
7556         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
7557
7558 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
7559
7560         PR target/33555
7561         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
7562         (*x86_movdicc_0_m1_se): Ditto.
7563
7564 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
7565
7566         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
7567         (CMPtype): Define as __gcc_CMPtype.
7568         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
7569         (CMPtype): Define as __gcc_CMPtype.
7570
7571 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
7572
7573         Support valgrind 3.3 for --enable-checking=valgrind.
7574         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
7575         here.
7576         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
7577         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
7578         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
7579         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
7580         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
7581         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
7582         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
7583         respectively.
7584         * ggc-zone.c: Similar.
7585         * ggc-page.c: Similar.
7586
7587 2008-02-19  Paul Brook  <paul@codesourcery.com>
7588
7589         PR target/35071
7590         * config/arm/ieee754-df.S: Fix do_it typo.
7591         * config/arm/ieee754-sf.S: Fix do_it typo.
7592
7593 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
7594
7595         PR target/35189
7596         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
7597         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
7598         (OPTION_MASK_ISA_SSE_SET): Likewise.
7599         (OPTION_MASK_ISA_SSE2_SET): Likewise.
7600         (OPTION_MASK_ISA_SSE3_SET): Likewise.
7601         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
7602         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
7603         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
7604         (OPTION_MASK_ISA_SSE4_SET): Likewise.
7605         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
7606         (OPTION_MASK_ISA_SSE5_SET): Likewise.
7607         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
7608         (OPTION_MASK_ISA_MMX_UNSET): Updated.
7609         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
7610         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
7611         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
7612         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
7613         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
7614         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
7615         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
7616         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
7617         (OPTION_MASK_ISA_SSE4): Removed.
7618         (ix86_handle_option): Turn on bits in ix86_isa_flags and
7619         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
7620         (override_options): Don't turn on implied SSE/MMX bits in
7621         ix86_isa_flags.
7622
7623 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
7624
7625         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7626         32bit host.
7627
7628 2008-02-18  Joey Ye  <joey.ye@intel.com>
7629
7630         PR middle-end/34921
7631         * tree-nested.c (insert_field_into_struct): Set type alignment
7632         to field alignment if the former is less than the latter.
7633
7634 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
7635
7636         * BASE-VER: Set to 4.4.0.
7637
7638 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7639
7640         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
7641         * doc/cfg.texi: Likewise.
7642         * doc/extend.texi: Likewise.
7643         * doc/gty.texi: Likewise.
7644         * doc/invoke.texi: Likewise.
7645         * doc/loop.texi: Likewise.
7646         * doc/md.texi: Likewise.
7647         * doc/passes.texi: Likewise.
7648         * doc/rtl.texi: Likewise.
7649         * doc/sourcebuild.texi: Likewise.
7650         * doc/tm.texi: Likewise.
7651         * doc/tree-ssa.texi: Likewise.
7652
7653 2008-02-17  Richard Guenther  <rguenther@suse.de>
7654
7655         PR middle-end/35227
7656         * tree-complex.c (init_parameter_lattice_values): Handle parameters
7657         without default definition.
7658
7659 2008-02-17  Richard Guenther  <rguenther@suse.de>
7660
7661         PR tree-optimization/35231
7662         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
7663         if A | B != 1.
7664
7665 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
7666
7667         Revert:
7668         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
7669         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
7670         libgcc_cmp_return mode.
7671
7672 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7673
7674         PR c/28368
7675         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
7676
7677 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
7678
7679         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
7680         multilibs.
7681
7682 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7683
7684         * doc/c-tree.texi: Use `@.' where appropriate.
7685         * doc/extend.texi: Likewise.
7686         * doc/install.texi: Likewise.
7687         * doc/invoke.texi: Likewise.
7688         * doc/loop.texi: Likewise.
7689         * doc/makefile.texi: Likewise.
7690         * doc/md.texi: Likewise.
7691         * doc/passes.texi: Likewise.
7692         * doc/standards.texi: Likewise.
7693         * doc/tm.texi: Likewise.
7694
7695 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
7696
7697         PR middle-end/35196
7698         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
7699         in entry_bb.
7700         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
7701         rather than in entry_bb.
7702
7703 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
7704
7705         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
7706         libgcc_cmp_return mode.
7707
7708 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
7709
7710         PR middle-end/35130
7711         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
7712         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
7713
7714 2008-02-15  Richard Guenther  <rguenther@suse.de>
7715             Zdenek Dvorak  <ook@ucw.cz>
7716
7717         PR tree-optimization/35164
7718         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
7719         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
7720         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
7721         Only propagate addresses which do not have abnormal SSA_NAMEs
7722         in their operands.
7723
7724 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
7725
7726         PR target/35088
7727         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
7728
7729 2008-02-15  Jan Hubicka  <jh@suse.cz>
7730
7731         PR middle-end/35149
7732         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
7733
7734 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
7735
7736         PR middle-end/34621
7737         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
7738         when calculating alignment_pad.
7739
7740 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
7741
7742         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
7743         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
7744         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
7745         and STACK_BOUNDARY define.
7746
7747 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
7748
7749         PR preprocessor/35061
7750         * c-pragma.c (handle_pragma_pop_macro): Check that
7751         pushed_macro_table has been allocated.
7752
7753 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
7754
7755         PR middle-end/35136
7756         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
7757         (force_gimple_operand): Likewise.
7758         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
7759         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
7760         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
7761         (find_interesting_uses_address): Check addressability and alignment
7762         of the base expression only after substituting bases of IVs into it.
7763
7764 2008-02-14  Michael Matz  <matz@suse.de>
7765
7766         PR target/34930
7767         * function.c (instantiate_virtual_regs_in_insn): Reload address
7768         before falling back to reloading the whole operand.
7769
7770 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7771
7772         * config/s390/s390.c (s390_mainpool_start): Emit the pool
7773         before the first section switch note.
7774
7775 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7776
7777         * doc/bugreport.texi: Update copyright years.
7778         * doc/c-tree.texi: Likewise.
7779         * doc/cfg.texi: Likewise.
7780         * doc/cpp.texi: Likewise.
7781         * doc/cppinternals.texi: Likewise.
7782         * doc/fragments.texi: Likewise.
7783         * doc/frontends.texi: Likewise.
7784         * doc/gcc.texi: Likewise.
7785         * doc/gty.texi: Likewise.
7786         * doc/hostconfig.texi: Likewise.
7787         * doc/implement-c.texi: Likewise.
7788         * doc/libgcc.texi: Likewise.
7789         * doc/loop.texi: Likewise.
7790         * doc/makefile.texi: Likewise.
7791         * doc/options.texi: Likewise.
7792         * doc/passes.texi: Likewise.
7793         * doc/rtl.texi: Likewise.
7794         * doc/sourcebuild.texi: Likewise.
7795         * doc/standards.texi: Likewise.
7796         * doc/tree-ssa.texi: Likewise.
7797         * doc/trouble.texi: Likewise.
7798
7799         * doc/extend.texi: Use @: or add comma where appropriate.
7800         * doc/invoke.texi: Likewise.
7801         * doc/tm.texi: Likewise.
7802
7803 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
7804
7805         PR target/34393
7806         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
7807         to a reg.
7808
7809 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
7810
7811         * doc/md.texi (clz, ctz): Add reference.
7812         * doc/rtl.texi (clz, ctz): Likewise.
7813
7814 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7815
7816         PR other/35148
7817         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
7818         srcdir.
7819
7820 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
7821
7822         * config/s390/s390.c (struct constant_pool): New field
7823         emit_pool_after added.
7824         (s390_mainpool_start): Set the emit_pool_after flag according
7825         to the section switch notes.
7826         (s390_mainpool_finish): Consider emit_pool_after when emitting
7827         the literal pool at the end of the function.
7828         (s390_chunkify_start): Force literal pool splits at section
7829         switch notes.
7830
7831 2008-02-13  Michael Matz  <matz@suse.de>
7832
7833         PR debug/35065
7834         * var-tracking.c (clobber_variable_part): Correctly traverse the
7835         list.
7836
7837 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7838
7839         PR 29673
7840         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
7841         Add -fdump-ipa-inline.
7842         * tree-dump.c (dump_files): Remove tree-inlined dump.
7843         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
7844         
7845 2008-02-12  Richard Guenther  <rguenther@suse.de>
7846
7847         PR tree-optimization/35171
7848         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
7849         default defs.
7850
7851 2008-02-12  Richard Guenther  <rguenther@suse.de>
7852
7853         PR middle-end/35163
7854         * fold-const.c (fold_widened_comparison): Use get_unwidened in
7855         value-preserving mode.  Disallow final truncation.
7856
7857 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
7858
7859         PR middle-end/35136
7860         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
7861         code from here to...
7862         (force_gimple_operand): ...here.
7863
7864 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
7865
7866         PR c++/35144
7867         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
7868         non-compatible pointers.
7869         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
7870         different FIELD_DECLs, try harder by comparing field offsets, sizes
7871         and types.
7872
7873         PR inline-asm/35160
7874         * function.c (match_asm_constraints_1): Don't replace the same input
7875         multiple times.
7876
7877 2008-02-12  Anatoly Sokolov <aesok@post.ru>
7878
7879         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
7880         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
7881         (expand_epilogue): Restore RAMPZ register.
7882         * config/avr/avr.md (RAMPZ_ADDR): New constant.
7883
7884 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
7885
7886         * config/i386/cygwin.asm: (__alloca): Correct calling
7887         convention and alignment.
7888         (__chkstk): Force 8 byte stack alignment.
7889
7890 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
7891             Richard Guenther  <rguenther@suse.de>
7892
7893         PR tree-optimization/33992
7894         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
7895         the zero we compare against.
7896
7897 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
7898
7899         PR libfortran/35063
7900         * gthr-win32.h (__gthread_mutex_destroy_function): New function
7901         to CloseHandle after unlocking to prevent accumulation of handle
7902         count.
7903
7904 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7905
7906         PR middle_end/34150
7907         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
7908         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
7909         and update LABEL_NUSES during and after reload.
7910
7911 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
7912
7913         PR middle-end/34627
7914         * combine.c (simplify_if_then_else): Make sure the comparison is
7915         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
7916
7917 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7918
7919         PR bootstrap/35051
7920         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
7921         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
7922         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
7923         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
7924         * tree.h (get_type_static_bounds): Likewise.
7925
7926 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7927
7928         * doc/invoke.texi (Option Summary, C++ Dialect Options)
7929         (Objective-C and Objective-C++ Dialect Options, Warning Options):
7930         Make -Wfoo language annotations match what the compiler outputs.
7931
7932 2008-02-08  Sa Liu  <saliu@de.ibm.com>
7933
7934         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
7935         intrinsics spu_convts, spu_convtu, spu_convtf.
7936
7937 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
7938
7939         * doc/extend.texi (Function Attributes) <noinline>: Mention
7940         asm ("") as method to keep calls.
7941
7942 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7943
7944         PR other/32754
7945         * doc/options.texi (Options): Replace references to opts.sh with
7946         optc-gen.awk.
7947         * opts-common.c: Likewise.
7948         * optc-gen.awk: Likewise.
7949         
7950 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
7951
7952         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
7953
7954 2008-02-07  Richard Henderson  <rth@redhat.com>
7955
7956         PR rtl-opt/33410
7957         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
7958         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
7959         funny mode.
7960
7961 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
7962
7963         PR tree-optimization/35085
7964         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
7965         for operand entry oe2 in addition to operand entry oe3 in order to
7966         expose more opportunities for vectorizer sum reduction.
7967
7968 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7969
7970         PR other/35107
7971         * Makefile.in (LIBS): Remove $(GMPLIBS).
7972         (cc1-dummy, cc1): Add $(GMPLIBS).
7973
7974 2008-02-06  Jan Hubicka  <jh@suse.cz>
7975
7976         PR target/23322
7977         * i386.md (moddf_integer): Do not produce partial memory stalls for
7978         targets where it hurts.
7979
7980 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
7981
7982         PR target/35083
7983         * optabs.c (expand_float): Do not check for decimal modes when
7984         expanding unsigned integer through signed conversion.
7985
7986 2008-02-06  Nick Clifton  <nickc@redhat.com>
7987
7988         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
7989         inside the clobber with a match_operand and duplicated operand
7990         number in the constraint.
7991         (ineqbranchsi): Delete redundant comment.
7992
7993 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
7994
7995         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
7996         builtin_define ("__USE_INIT_FINI__").
7997         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
7998         -msx multilibs.
7999         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
8000
8001 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8002
8003         PR documentation/30330
8004         * doc/invoke.texi (C++ Dialect Options)
8005         (Objective-C and Objective-C++ Dialect Options, Warning Options):
8006         For each warning option -Wfoo that allows -Wno-foo, ensure both
8007         -Wfoo and -Wno-foo are listed in the option index.  Fix index
8008         entry of -Wswitch-default, index -Wnormalized= including the
8009         `=', and -Wlarger-than-@var{len} including @var{len}.
8010
8011 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
8012
8013         * config/i386/i386.md (floatunssisf2): Use
8014         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
8015         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
8016         Macroize expander using MODEF mode iterator.
8017
8018 2008-02-05  Diego Novillo  <dnovillo@google.com>
8019
8020         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
8021
8022         PR 33738
8023         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
8024
8025 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8026
8027         PR other/35070
8028         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
8029
8030 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
8031
8032         PR target/35084
8033         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
8034         to indicate if a message should be generated.
8035         (init_cumulative_args): Updated.
8036         (function_value_32): Likewise.
8037
8038 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
8039
8040         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
8041
8042 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
8043
8044         PR target/35083
8045         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
8046         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
8047
8048 2008-02-04  Diego Novillo  <dnovillo@google.com>
8049
8050         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
8051
8052         PR 33738
8053         * tree-vrp.c (vrp_evaluate_conditional): With
8054         -Wtype-limits, emit a warning when comparing against a
8055         constant outside the natural range of OP0's type.
8056
8057 2008-02-04  Richard Guenther  <rguenther@suse.de>
8058
8059         PR middle-end/33631
8060         * expr.c (count_type_elements): Give for unions instead of
8061         guessing.
8062
8063 2008-02-04  Richard Guenther  <rguenther@suse.de>
8064
8065         PR middle-end/35043
8066         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
8067         to TYPE_DOMAINs base type instead of using bitsizetype here.
8068
8069 2008-02-03  Jason Merrill  <jason@redhat.com>
8070
8071         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
8072
8073 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8074
8075         PR other/29972
8076         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
8077         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
8078         (RS/6000 and PowerPC Options): Fix typos and markup.
8079         * doc/passes.texi (Tree-SSA passes): Likewise.
8080
8081 2008-02-02  Michael Matz  <matz@suse.de>
8082
8083         PR target/35045
8084         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
8085         from record_last_reg_set_info.
8086         (record_last_reg_set_info): Take an RTX argument, iterate over all
8087         constituent hardregs.
8088         (record_last_set_info, record_opr_changes): Change calls to
8089         new signature or to record_last_reg_set_info_regno.
8090
8091 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
8092
8093         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
8094
8095 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
8096
8097         PR rtl-optimization/34773
8098         * reg-notes.def (EQUAL): Mention significance of combination of
8099         REG_EQUAL and REG_RETVAL.
8100         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
8101         insn that has a REG_RETVAL.
8102
8103 2008-02-01  Roger Sayle  <roger@eyesopen.com>
8104
8105         PR bootstrap/33781
8106         * configure.ac (--enable-fixed-point): Disable unless explicitly
8107         requested on IRIX.
8108         * configure: Regenerate.
8109
8110 2008-02-01  Richard Guenther  <rguenther@suse.de>
8111
8112         PR other/35042
8113         * invoke.texi (-finline-limit): Remove no longer true parts
8114         of the documentation.  Note that there is no default value.
8115
8116 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
8117             Mark Mitchell  <mark@codesourcery.com>
8118             Ben Elliston  <bje@au.ibm.com>
8119
8120         PR c/29326
8121         * doc/extend.texi (Other Builtins): Document.
8122
8123 2008-01-31  Tom Browder <tom.browder@gmail.com>
8124
8125         * doc/c-tree.texi (Types): Fix grammar.
8126         (Expression trees): Ditto.
8127         * doc/passes.texi (Tree-SSA passes): Ditto.
8128         
8129         * doc/configterms.texi (Configure Terms): Fix typo.
8130         * doc/cpp.texi (Common Predefined Macros): Ditto.
8131         * doc/md.texi (Machine Constraints): Ditto.
8132         
8133         * doc/makefile.texi (Makefile): Add comma.
8134
8135 2008-01-31  Tom Browder  <tom.browder@gmail.com>
8136             Gerald Pfeifer  <gerald@pfeifer.com>
8137         
8138         * doc/sourcebuild.texi (Front End): Remove references to CVS
8139         and CVSROOT/modules.
8140         (Texinfo Manuals): Replace reference to CVS by one to SVN.
8141         (Back End): Remove reference to CVS.
8142
8143 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
8144
8145         PR target/34900
8146         * config/mips/mips.c (gen_load_const_gp): New function, taking a
8147         comment from...
8148         (mips16_gp_pseudo_reg): ...here.
8149         * config/mips/mips.md (load_const_gp): Replace with...
8150         (load_const_gp_<mode>): ...this :P-based insn.
8151
8152 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8153
8154         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
8155         options. Minor fixes.
8156         (-std): Move reference to standards closer to where language
8157         standards are first mentioned.
8158         
8159 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
8160
8161         PR rtl-optimization/34995
8162         * reload.c (alternative_allows_const_pool_ref): Take an rtx
8163         parameter and return a bool.  If the rtx parameter is nonnull,
8164         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
8165         (find_reloads): Update call accordingly.  Pass the new operand
8166         if it needed no address reloads, otherwise pass null.
8167
8168 2008-01-30  Richard Henderson  <rth@redhat.com>
8169
8170         PR c/34993
8171         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
8172         for unbounded arrays.
8173
8174 2008-01-30  Silvius Rus  <rus@google.com>
8175
8176         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
8177
8178 2008-01-30  Jan Hubicka  <jh@suse.cz>
8179
8180         PR target/34982
8181         * i386.c (init_cumulative_args): Use real function declaration when
8182         calling locally.
8183
8184 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
8185
8186         PR rtl-optimization/34998
8187         * global.c (build_insn_chain): Treat non-subreg_lowpart
8188         SUBREGs of pseudos as clobbering all the words covered by the
8189         SUBREG, not just all the bytes.
8190         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
8191         original df_ref rather than an extract parameter.
8192         (global_conflicts): Update call accordingly.
8193
8194 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
8195
8196         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
8197         the overflow check to make it easier to read.
8198         (__fixtfdi): Change the type of the ll member in union
8199         long_double to UDItype_x.
8200
8201 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
8202
8203         PR middle-end/34969
8204         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
8205         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
8206         * tree-inline.c (fold_marked_statements): Call
8207         cgraph_update_edges_for_call_stmt if folding a call statement.
8208         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
8209         debug_generic_stmt calls, reset it back afterwards.
8210
8211         PR c/35017
8212         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
8213         static decls.
8214         * c-typeck.c (build_external_ref): Don't pedwarn about
8215         static vars in current function's scope.
8216
8217 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
8218
8219         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
8220
8221 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
8222
8223         PR c/35002
8224         * ipa-struct-reorg.c: Fix spelling.
8225         * params.def: Ditto.
8226
8227 2008-01-29  Richard Guenther  <rguenther@suse.de>
8228
8229         PR middle-end/35006
8230         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
8231         field.
8232         * tree-inline.c (remap_type): Increment remapping_type_depth
8233         around remapping types.
8234         (copy_body_r): Only add referenced variables if they are referenced
8235         from code, not types.
8236
8237 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
8238
8239         PR c++/34055
8240         PR c++/34103
8241         PR c++/34219
8242         PR c++/34606
8243         PR c++/34753
8244         PR c++/34754
8245         PR c++/34755
8246         PR c++/34919
8247         PR c++/34961
8248         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
8249         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
8250
8251 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
8252
8253         PR target/34412
8254         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
8255         pointer for tiny stack.
8256
8257 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
8258
8259         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
8260
8261 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
8262
8263         * config/vx-common.h: Fix typo in comment.
8264
8265 2008-01-28  Ian Lance Taylor  <iant@google.com>
8266
8267         PR c++/34862
8268         PR c++/33407
8269         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8270         coalesce pointers if they have different DECL_NO_TBAA_P values.
8271         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
8272         between variables with different DECL_NO_TBAA_P values.
8273
8274 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
8275
8276         PR 31535
8277         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
8278         are not legitimate small data references on SPE targets.
8279
8280 2008-01-28  David Daney  <ddaney@avtrex.com>
8281
8282         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
8283
8284 2008-01-28  David Daney  <ddaney@avtrex.com>
8285
8286         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
8287
8288 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
8289
8290         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
8291         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
8292         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
8293         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
8294         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
8295         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
8296         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
8297         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
8298
8299 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
8300
8301         * basic-block.h (condjump_equiv_p): Fix comment.
8302
8303 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
8304
8305         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
8306         print_generic_stmt_indented): Fix comment.
8307
8308 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
8309
8310         * configure.ac (__stack_chk_fail): Add detecion for availability
8311         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
8312         * configure: Regenerate.
8313
8314 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
8315
8316         PR middle-end/34688
8317         * final.c (output_addr_const): Handle TRUNCATE.
8318
8319 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
8320
8321         PR target/34711
8322         * tree-ssa-loop-ivopts.c (comp_cost): New type.
8323         (zero_cost, infinite_cost): New constants.
8324         (struct cost_pair): Change type of cost to comp_cost.
8325         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
8326         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
8327         New functions.
8328         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
8329         split_address_cost, ptr_difference_cost, difference_cost,
8330         get_computation_cost_at, get_computation_cost,
8331         determine_use_iv_cost_generic, determine_use_iv_cost_address,
8332         determine_use_iv_cost_condition, determine_use_iv_costs,
8333         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
8334         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
8335         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
8336         Change type of cost to comp_cost.
8337         (determine_iv_cost): Increase cost of non-original ivs, instead
8338         of decreasing the cost of original ones.
8339         (get_address_cost): Indicate the complexity of the addressing mode 
8340         in comp_cost.
8341         (try_add_cand_for): Prefer using ivs not specific to some object.
8342         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
8343
8344 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
8345             Janis Johnson  <janis187@us.ibm.com>
8346
8347         PR target/34814
8348         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
8349         (TARGET_INSTANTIATE_DECLS): Likewise.
8350         * target.h (expand_to_rtl_hook): New target hook.
8351         (instantiate_decls): Likewise.
8352         * function.c (instantiate_decl): Make non-static.  Rename to...
8353         (instantiate_decl_rtl): ... this.
8354         (instantiate_expr): Use instantiate_decl_rtl.
8355         (instantiate_decls_1): Likewise.
8356         (instantiate_decls): Likewise.
8357         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
8358         * function.h (instantiate_decl_rtl): Add prototype.
8359         * cfgexpand.c (target.h): New include.
8360         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
8361         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
8362         (TARGET_INSTANTIATE_DECLS): Likewise.
8363         (TARGET_INITIALIZER): New target hooks added.
8364         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
8365         New prototype.
8366         * config/rs6000/rs6000.c (tree-flow.h): New include.
8367         (machine_function): Add sdmode_stack_slot field.
8368         (rs6000_alloc_sdmode_stack_slot): New function.
8369         (rs6000_instantiate_decls): Likewise.
8370         (rs6000_secondary_memory_needed_rtx): Likewise.
8371         (rs6000_check_sdmode): Likewise.
8372         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
8373         (TARGET_INSTANTIATE_DECLS): Likewise.
8374         (rs6000_hard_regno_mode_ok): Allow SDmode.
8375         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
8376         (rs6000_emit_move): Handle SDmode.
8377         (function_arg_advance): Likewise.
8378         (function_arg): Likewise.
8379         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
8380         SDmode var args for 32-bit compiles.
8381         (rs6000_secondary_reload_class): Handle SDmode.
8382         (rs6000_output_function_epilogue): Likewise.
8383         (rs6000_function_value): Simplify if statement.
8384         (rs6000_libcall_value): Likewise.
8385         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
8386         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
8387         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
8388         (movsd_hardfloat): New define_insn.
8389         (movsd_softfloat): Likewise.
8390         (movsd_store): Likewise.
8391         (movsd_load): Likewise.
8392         (extendsddd2): Likewise.
8393         (extendsdtd2): Likewise.
8394         (truncddsd2): Likewise.
8395         (movdd_hardfloat64): Fixup comment.
8396         (UNSPEC_MOVSD_LOAD): New constant.
8397         (UNSPEC_MOVSD_STORE): Likewise.
8398
8399 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
8400
8401         PR c++/34965
8402         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
8403         TRUTH_XOR_EXPR.
8404         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
8405         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
8406         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
8407         and TRUTH_XOR_EXPR.
8408
8409 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
8410
8411         PR target/34794
8412         * config.gcc: Separate AIX 5.3 from AIX 6.1.
8413         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8414         __LONGDOUBLE128 too.
8415         * config/rs6000/aix61.h: New file.
8416
8417 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
8418
8419         PR rtl-optimization/34959
8420         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
8421         popcount and parity rtxes the same mode as their operand.
8422         Truncate or extend the result to the return value's mode
8423         if necessary.
8424
8425 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
8426
8427         PR target/34981
8428         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
8429         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
8430         to GOT_VERSION_REGNUM.
8431         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
8432         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
8433         * config/mips/mips.c (mips_emit_call_insn): New function.
8434         (mips_call_tls_get_addr): Call mips_expand_call directly.
8435         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
8436         emit_call_insn.
8437         (mips16_build_call_stub): Likewise.  Return the call insn or null.
8438         (mips_expand_call): Update the call to mips16_build_call_stub
8439         accordingly and a remove redundant condition.  Assert that MIPS16
8440         stubs do not use lazy binding.  Use mips_emit_call_insn and return
8441         the call insn.
8442         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
8443         TARGET_USE_GOT.
8444         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
8445         (mips_avoid_hazard): Remove hazard_set handling.
8446         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
8447         (UNSPEC_RESTORE_GP): ...this.
8448         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
8449         (FAKE_CALL_REGNO): Rename to...
8450         (GOT_VERSION_REGNUM): ...this.
8451         (type): Add "ghost" value.  Add an associated insn reservation.
8452         (hazard_set): Remove.
8453         (exception_receiver): Rename to...
8454         (restore_gp): ...this and update the unspec identifier accordingly.
8455         (exception_receiver, nonlocal_got_receiver): New expanders.
8456         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
8457         FAKE_CALL_REGNO.  Remove hazard_set attribute.
8458         (set_got_version, update_got_version): New patterns.
8459
8460 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
8461
8462         PR target/34970
8463         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
8464
8465 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
8466
8467         PR other/31955
8468         * doc/install.texi2html: Generate gcc-vers.texi.
8469
8470 2008-01-25  DJ Delorie  <dj@redhat.com>
8471
8472         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8473
8474 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
8475
8476         * config/c4x: Remove directory.
8477         * config.gcc (crx-*, mt-*): Mark obsolete.
8478         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
8479         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
8480         sh-*-rtemscoff*): Remove cases.
8481         * defaults.h (C4X_FLOAT_FORMAT): Remove.
8482         * real.c (encode_c4x_single, decode_c4x_single,
8483         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
8484         c4x_extended_format): Remove.
8485         * real.h (c4x_single_format, c4x_extended_format): Remove.
8486         * doc/extend.texi (interrupt, naked): Remove mention of attributes
8487         on C4x.
8488         (Pragmas): Remove comment about c4x pragmas.
8489         * doc/install.texi (c4x): Remove target-specific instructions.
8490         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
8491         * doc/md.texi (Machine Constraints): Remove C4x documentation.
8492         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
8493         refer to C4x source files as examples.
8494         (C4X_FLOAT_FORMAT): Remove documentation.
8495
8496 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
8497
8498         * config/bfin/bfin.c (override_options): Reorder tests so that
8499         flag_pic gets enabled for -msep-data.
8500
8501 2008-01-25  Richard Guenther  <rguenther@suse.de>
8502
8503         PR middle-end/32244
8504         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
8505         to its bitfield precision if required.
8506
8507 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
8508
8509         PR middle-end/33880
8510         * tree-nested.c (walk_omp_for): New function.
8511         (convert_nonlocal_reference, convert_local_reference): Call
8512         walk_omp_for on OMP_FOR.
8513         (convert_call_expr): Call walk_body on OMP_FOR's
8514         OMP_FOR_PRE_INIT_BODY.
8515
8516 2008-01-25  Richard Guenther  <rguenther@suse.de>
8517
8518         PR tree-optimization/34966
8519         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
8520         default defs and PHI_NODEs we have to insert after the
8521         defining statement.
8522
8523 2008-01-24  Nick Clifton  <nickc@redhat.com>
8524
8525         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
8526         Provide a default definition.
8527         (LIBGCC2_UNITS_PER_WORD): Likewise.
8528
8529         * config/stormy16/stormy16.c: Include df.h for the prototype
8530         for df_regs_ever_live_p.
8531         (xstormy16_expand_builtin_va_start): Convert the stack offset
8532         into a component_ref and then use POINTER_PLUS_EXPR to add it
8533         to the incoming_virtual_args_rtx.
8534         (xstormy16_gimplify_va_arg_expr): Rename to
8535         xstormy16_gimplify_va_arg_expr.
8536         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
8537         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
8538         xstormy16_gimplify_va_arg_expr.
8539         Fix up some formatting issues.
8540
8541         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
8542         Move to predicates.md.
8543         (xs_hi_general_operand): Likewise.
8544         (xs_hi_nonmemory_operand): Likewise.
8545         * config/stormy16/predicates.md:
8546         (xstormy16_carry_plus_operand): New predicate.
8547         (xs_hi_general_operand): New predicate.
8548         (xs_hi_nonmemory_operand): New predicate.
8549         * config/stormy16/stormy16-protos.h:
8550         (xstormy16_carry_plus_operand): Delete prototype.
8551         (xs_hi_general_operand): Likewise.
8552         (xs_hi_nonmemory_operand): Likewise.
8553
8554         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
8555         modifiers as they are no longer needed and they can trigger
8556         reload spill failures.
8557
8558         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
8559         with a match_operand in order to help reload.
8560
8561         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
8562         constraint with 'e' for the 8th alternative as this version of
8563         the mov.w instruction only accepts the lower 8 registers.
8564
8565 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
8566
8567         PR target/34856
8568         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
8569         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
8570         vector elements.
8571
8572 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
8573
8574         PR middle-end/33333
8575         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
8576
8577 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
8578
8579         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
8580         New functions.
8581         (remove_structure): Update allocations list before removing structure.
8582         
8583 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
8584
8585         * ipa-struct-reorg.c (is_safe_cond_expr, 
8586         create_new_stmts_for_cond_expr): Use integer_zerop function,
8587         that recognize not only zero-pointer, but zero-integer too.
8588
8589 2008-01-25  Ben Elliston  <bje@au.ibm.com>
8590
8591         PR other/22232
8592         * fixproto: Escape "." in sed expression that strips leading "./".
8593
8594 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
8595
8596         PR driver/34904
8597         * gcc.c (SWITCH_OK): Removed.
8598         (SWITCH_LIVE): Changed to bit.
8599         (SWITCH_FALSE): Likewise.
8600         (SWITCH_IGNORE): Likewise.
8601         (switchstr): Change live_cond to unsigned int.
8602         (process_command): Replace SWITCH_OK with 0.
8603         (do_self_spec): Likewise.
8604         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
8605         (give_switch): Likewise.
8606         (used_arg): Likewise.
8607         (do_spec_1): Set the SWITCH_IGNORE bit.
8608         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
8609         bits.  Set the SWITCH_LIVE bit.
8610
8611 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
8612
8613         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
8614
8615 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
8616
8617         PR tree-optimization/34472
8618         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
8619         parameter to a "bool *" and set *DATA to false if there is
8620         an unsafe access.  Do not delete the structure here.
8621         (check_cond_exprs): Delete it here instead.
8622         (check_cond_exprs, exclude_cold_structs): Do not increase
8623         I when removing a structure.
8624
8625 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
8626
8627         PR target/34856
8628         * config/i386/i386.c (ix86_expand_vector_init): Consider only
8629         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
8630
8631 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
8632
8633         PR middle-end/34934
8634         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
8635         a fixed vector for stack.
8636
8637 2008-01-24  Ben Elliston  <bje@au.ibm.com>
8638
8639         PR c++/25701
8640         * doc/gcc.texi (Software development): Add a direntry for g++.
8641         
8642 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
8643
8644         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
8645         stale and straggling -fforce-addr comments above.
8646
8647         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
8648         define.
8649         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
8650         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
8651
8652 2008-01-23  Michael Matz  <matz@suse.de>
8653
8654         PR debug/34895
8655         * dwarf2out.c (force_type_die): Use modified_type_die instead of
8656         gen_type_die.
8657
8658 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
8659
8660         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
8661         malloc result type.
8662
8663 2008-01-23 Anatoly Sokolov <aesok@post.ru>
8664
8665         * config/avr/avr.c (avr_current_arch): New variable.
8666         (avr_arch_types): Add 'avr31' and 'avr51' entries.
8667         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
8668         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
8669         (avr_override_options): Init 'avr_current_arch'. 
8670         (base_arch_s): Move from here...
8671         * config/avr/avr.h (base_arch_s): ... here. Add new members 
8672         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
8673         'mega' to 'have_jmp_call'.
8674         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
8675         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
8676         macros.
8677         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
8678         architectures.
8679         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
8680         MULTILIB_MATCHES): (Ditto.).
8681
8682 2008-01-23  Richard Guenther  <rguenther@suse.de>
8683
8684         PR middle-end/31529
8685         * cgraphunit.c (cgraph_reset_node): Always mark the node
8686         not reachable if it is not queued already.
8687
8688 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
8689
8690         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
8691         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
8692         (cputype_selected): New static variable.
8693         (bfin_handle_option): Set it if -mcpu is used.
8694         (override_option): Select default set of workarounds if no cpu type
8695         selected on the command line.
8696         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
8697
8698         From  Michael Frysinger  <michael.frysinger@analog.com>
8699         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
8700         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
8701
8702         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
8703         for bf547, bf523, bf524, and bf526.
8704         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
8705         bf526.
8706         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
8707         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
8708         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
8709         __ADSPBF547__ and __ADSPBF54x__ for bf547.
8710         * doc/invoke.texi (Blackfin Options): Document that
8711         -mcpu now accept bf547, bf523, bf524, and bf526.
8712
8713 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
8714
8715         PR rtl-optimization/34628
8716         * combine.c (try_combine): Stop and undo after the first combination
8717         if an autoincrement side-effect on the first insn has effectively
8718         been lost.
8719
8720 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
8721
8722         PR target/34529
8723         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
8724         Offset addresses are not valid for Altivec or paired float modes.
8725
8726 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
8727
8728         PR c++/34607
8729         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
8730         if DECL_INITIAL (decl) is error_mark_node.
8731
8732         PR c++/34914
8733         * c-common.c (handle_vector_size_attribute): Only allow
8734         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
8735         the same way as pointer, array etc. types.
8736         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
8737
8738         PR c++/34917
8739         * tree.c (build_type_attribute_qual_variant): Call
8740         build_qualified_type if attributes are equal, but quals are not.
8741
8742 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8743
8744         PR 32102
8745         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
8746         * flags.h (warn_strict_aliasing): Remove.
8747         (warn_strict_overflow): Remove.
8748         * opts.c (warn_strict_aliasing): Remove.
8749         (warn_strict_overflow): Remove.
8750         * c-opts.c (c_common_handle_option): -Wall only sets
8751         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
8752         (c_common_post_options): Give default values to -Wstrict-aliasing
8753         and -Wstrict-overflow if they are uninitialized.
8754         * common.opt (Wstrict-aliasing): Specify Var and Init.
8755         (Wstrict-overflow): Likewise.
8756
8757 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
8758
8759         PR rtl-optimization/26854
8760         PR rtl-optimization/34400
8761         PR rtl-optimization/34884
8762         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
8763         DF_RD->gen.
8764         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
8765         (df_rd_bb_info.expanded_lr_out): Deleted
8766         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
8767         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
8768         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
8769         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
8770         Removed code to allocate, initialize or free expanded_lr_out.
8771         (df_rd_bb_local_compute_process_def): Restructured to make more
8772         understandable.
8773         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
8774         sets if the sets are being trimmed.
8775
8776 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
8777
8778         PR bootstrap/32287
8779         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
8780         (as_vers): Likewise.
8781         * configure: Regenerated.
8782
8783 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8784
8785         PR middle-end/33092
8786         * tree-pass.h (pass_build_alias): New pass.
8787         * tree-ssa-alias.c (gate_build_alias): New.
8788         (pass_build_alias): New.
8789         * passes.c (init_optimization_passes): Add pass_build_alias after
8790         pass_create_structure_vars.
8791
8792 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
8793
8794         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
8795         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
8796         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
8797         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
8798         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
8799         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
8800         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
8801         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
8802         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
8803         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
8804         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
8805         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
8806         * config/s390/s390.md (FP_ALL): New mode iterator.
8807         (_d): New mode attribute.
8808         ("*signbit<mode>2>"): Changed mode of first operand.
8809         ("isinf<mode>2"): Changed mode of first operand.
8810         ("*TDC_insn"): Adaptation for DFP modes.
8811
8812 2008-01-22  Ben Elliston  <bje@au.ibm.com>
8813
8814         * tree.c (check_qualified_type): Improve function description.
8815
8816 2008-01-21  Jason Merrill  <jason@redhat.com>
8817
8818         PR c++/34196
8819         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
8820         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
8821         if it is set.
8822
8823 2008-01-21  DJ Delorie  <dj@redhat.com>
8824
8825         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
8826         return zero.
8827
8828 2008-01-21  Richard Guenther  <rguenther@suse.de>
8829
8830         PR middle-end/34856
8831         * tree-cfg.c (verify_expr): Allow all invariant expressions
8832         instead of just constant class ones as reference argument.
8833         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
8834         like any other constant.
8835         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8836
8837 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
8838
8839         * regmove.c (fixup_match_1): Update call crossed frequencies.
8840
8841 2008-01-21  Richard Guenther  <rguenther@suse.de>
8842
8843         PR c/34885
8844         * tree-inline.c (setup_one_parameter): Deal with mismatched
8845         types using a VIEW_CONVERT_EXPR.
8846
8847 2008-01-21  Alon Dayan  <alond@il.ibm.com>
8848             Olga Golovanevsky  <olga@il.ibm.com>
8849         
8850         PR tree-optimization/34701
8851         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
8852         when the structure size is not a power of 2.
8853
8854 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
8855
8856         * doc/install.texi: Add doc for --enable-checking=df.
8857         
8858 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8859
8860         PR rtl-optimization/34808
8861         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
8862
8863 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
8864
8865         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
8866         input.
8867
8868 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
8869
8870         PR rtl-optimization/26854
8871         PR rtl-optimization/34400
8872         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
8873         DF_RD->gen.
8874         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
8875         (df_rd_bb_info.expanded_lr_out): New.
8876         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
8877         * loop_iv.c (iv_analysis_loop_init): Ditto.
8878         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
8879         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
8880         Added code to allocate, initialize or free expanded_lr_out.
8881         (df_rd_bb_local_compute_process_def): Restructured to make
8882         more understandable.
8883         (df_rd_confluence_n): Add code to do nothing with fake edges and
8884         code to no apply invalidate_by_call sets if the sets are being trimmed.
8885         (df_lr_local_finalize): Renamed to df_lr_finalize.
8886         (df_live_local_finalize): Renamed to df_live_finalize.
8887
8888 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
8889
8890         PR target/34831
8891         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
8892         deciding whether to use reciprocal instructions.
8893
8894 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
8895
8896         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
8897         dwarf2out_note_section_used if cold_text_section is NULL.
8898
8899 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
8900
8901         PR gcov-profile/34610
8902         * tree-cfg.c (make_edges): Mark both outgoing edges from
8903         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
8904         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
8905         from OMP_FOR and OMP_CONTINUE outgoing edges.
8906
8907         * tree-profile.c (tree_profiling): Return early if
8908         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
8909         at the end.
8910         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
8911         from cfun to child_cfun.
8912         * function.h (struct function): Add after_tree_profile bit.
8913
8914 2008-01-19 Anatoly Sokolov <aesok@post.ru>
8915
8916         * config/avr/avr.S (_exit): Disable interrupt.
8917
8918 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
8919             Steven Bosscher  <stevenb.gcc@gmail.com>
8920
8921         PR rtl-optimization/26854
8922         PR rtl-optimization/34400
8923         * df-problems.c (df_live_scratch): New scratch bitmap.
8924         (df_live_alloc): Allocate df_live_scratch when doing df_live.
8925         (df_live_reset): Clear the proper bitmaps.
8926         (df_live_bb_local_compute): Only process the artificial defs once
8927         since the order is not important.
8928         (df_live_init): Init the df_live sets only with the variables
8929         found live by df_lr.
8930         (df_live_transfer_function): Use the df_lr sets to prune the
8931         df_live sets as they are being computed.  
8932         (df_live_free): Free df_live_scratch.
8933
8934 2008-01-18  Ian Lance Taylor  <iant@google.com>
8935
8936         * common.opt: Add fmerge-debug-strings.
8937         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
8938         flag_merge_debug_strings rather than flag_merge_constants.
8939         * doc/invoke.texi (Option Summary): Mention
8940         -fmerge-debug-strings.
8941         (Debugging Options): Document -fmerge-debug-strings.
8942
8943 2008-01-18  Ian Lance Taylor  <iant@google.com>
8944
8945         PR c++/33407
8946         * tree.h (DECL_IS_OPERATOR_NEW): Define.
8947         (struct tree_function_decl): Add new field operator_new_flag.
8948         * tree-inline.c (expand_call_inline): When inlining a call to
8949         operator new, force the return value to go into a variable, and
8950         set DECL_NO_TBAA_P on that variable.
8951         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
8952
8953 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
8954
8955         PR debug/34484
8956         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
8957         DWARF2_DEBUGGING_INFO.
8958         (dwarf2out_note_section_used): Ditto.  Add prototype.
8959         (have_multiple_function_sections, text_section_used,
8960         cold_text_section_used, *cold_text_sections): Move declarations
8961         before their uses.
8962
8963 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
8964
8965         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
8966         field and add signal_ra.
8967         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
8968         assignments to frame state pc.  Move end of stack check after
8969         MD_FALLBACK_FRAME_STATE_FOR.
8970         (uw_update_context_1): Use frame state signal_regs if set, instead
8971         of checking signal_frame flag.
8972         (uw_update_context): Use frame state signal_ra if set.
8973         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
8974         * config/xtensa/linux-unwind.h: New file.
8975
8976 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
8977
8978         * modulo-sched.c (get_sched_window): Fix comment typo.
8979
8980 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
8981
8982         PR tree-optimization/34648
8983         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
8984
8985 2008-01-17  Anatoly Sokolov <aesok@post.ru>
8986
8987         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
8988         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
8989
8990 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
8991
8992         PR rtl-optimization/34400
8993         * df-core.c (df_worklist_dataflow_overeager,
8994         df_worklist_dataflow_doublequeue): New functions.
8995         (df_worklist_dataflow): Two different worklist solvers.
8996         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
8997         New param.
8998
8999 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
9000
9001         PR testsuite/34821
9002         * doc/invoke.texi: Document the dependence on pthread for fopenmp
9003         and ftree-parallelize-loops.
9004
9005 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
9006
9007         PR rtl-optimization/34826
9008         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
9009
9010 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
9011
9012         * global.c (find_reg): Mark the eh regs as used if necessary.
9013         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
9014         * ra.h (struct allocno): no_eh_reg field added.  Changed
9015         no_stack_reg type to bitfield.
9016
9017 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
9018
9019         * tree.c (substitute_in_expr): Add missing 'break'.
9020
9021 2008-01-17  Richard Guenther  <rguenther@suse.de>
9022
9023         PR tree-optimization/34825
9024         * tree-ssa-math-opts.c (is_division_by): Do not recognize
9025         x / x as division to handle.
9026
9027 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9028
9029         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
9030         "-pthread" is specified.
9031         * pa-hpux11.h (LIB_SPEC): Likewise.
9032
9033 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
9034             Peter Bergner  <bergner@vnet.ibm.com>
9035
9036         PR rtl-optimization/33796
9037         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
9038
9039 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9040
9041         PR libgfortran/34699
9042         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
9043         static links.
9044         * pa-hpux10.h (LINK_SPEC): Likewise.
9045         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
9046
9047 2008-01-16  Richard Guenther  <rguenther@suse.de>
9048
9049         PR middle-end/32628
9050         * fold-const.c (fold_convert_const_int_from_int): Do not
9051         set overflow if that occured only because of a sign extension
9052         change when converting from/to a sizetype with the same
9053         precision and signedness.
9054
9055 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
9056
9057         PR debug/34249
9058         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
9059         location address to the correct place.  Update copyright year.
9060
9061 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
9062
9063         * lambda-code.c (lambda_transform_legal_p): Handle the case of
9064         no dependences in the dependence_relations vector.
9065
9066 2008-01-16  Jan Hubicka  <jh@suse.cz>
9067
9068         PR rtl-optimization/31396
9069         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
9070         * cfg.c (dump_reg_info): Print it.
9071         * regs.h (struct reg_info_t): add freq_calls_crossed.
9072         (REG_FREQ_CALLS_CROSSED): New macro.
9073         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
9074         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
9075         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
9076         regmove_optimize): Update call crossed frequencies.
9077         * local-alloc.c (struct qty): Add freq_calls_crossed.
9078         (alloc_qty): Copute freq_calls_crossed.
9079         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
9080         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
9081         * ra.h (struct allocno): Add freq_calls_crossed.
9082
9083 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
9084
9085         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
9086         libgomp when compiling with ftree-parallelize-loops.
9087         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
9088
9089 2008-01-16  Richard Guenther  <rguenther@suse.de>
9090
9091         PR tree-optimization/34769
9092         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
9093         * tree.c (int_cst_value): Instead make this function more
9094         permissive in what it accepts as valid input.  Document this
9095         function always sign-extends the value.
9096
9097 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
9098             Richard Guenther  <rguenther@suse.de>
9099
9100         PR c/34668
9101         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
9102         (gimple_fold_indirect_ref_rhs): ... this.
9103         (gimple_fold_indirect_ref): New function with foldings
9104         that preserve lvalueness.
9105         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
9106         * tree-flow.h (gimple_fold_indirect_ref): Declare.
9107         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
9108         to fold an INDIRECT_REF, fall back to the old use of
9109         fold_indirect_ref_1.
9110
9111 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
9112
9113         * tree-data-ref.c (subscript_dependence_tester_1): Call 
9114         free_conflict_function.
9115         (compute_self_dependence): Same.
9116
9117 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
9118
9119         PR debug/34249
9120         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
9121         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
9122         function global.
9123         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
9124         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
9125         for DWARF2_UNWIND_INFO targets.
9126
9127 2008-01-16  Richard Guenther  <rguenther@suse.de>
9128
9129         PR c/34768
9130         * c-typeck.c (common_pointer_type): Do not merge inconsistent
9131         type qualifiers for function types.
9132
9133 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
9134
9135         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
9136         loop_iterator li from previous commit.
9137
9138 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
9139
9140         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
9141
9142 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
9143
9144         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
9145         (parallelize_loops): Don't parallelize irreducible components.
9146
9147 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9148
9149         PR c++/24924
9150         * c-opts (c_common_post_options): Do not enable CPP
9151         flag_pedantic_errors by default.
9152         
9153 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
9154
9155         PR rtl-optimization/31944
9156         * cse.c (remove_pseudo_from_table): New function.
9157         (merge_equiv_classes): Use above function to remove pseudo-registers.
9158         (invalidate): Likewise.
9159
9160 2008-01-13  Richard Guenther  <rguenther@suse.de>
9161
9162         PR middle-end/34601
9163         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
9164         instead of TYPE_MODE to deal with calls from expand_one_error_var.
9165
9166 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
9167
9168         * gcse.c (cprop_jump): Call validate_unshare_change instead of
9169         validate_change to unshare the source of the PC set.
9170
9171 2008-01-12  Jan Hubicka  <jh@suse.cz>
9172
9173         PR middle-end/32135
9174         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
9175         references above array bounds.  This might trigger bounds checks for
9176         pointers to arrays.
9177
9178 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
9179
9180         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
9181         new_replaceable_dependencies.
9182
9183 2008-01-12  Doug Kwan  <dougkwan@google.com>
9184
9185         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
9186         instead of OPT_Wreturn_type in warning due to ignored return type
9187         qualifiers.
9188         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
9189         options included in -Wextra.
9190         * c.opt: New option -Wignored_qualifiers.
9191         * doc/invoke.texi (Warning Options, -Wextra): Add new option
9192         -Wignore_qualifiers.
9193         (-Wignored-qualifiers): Document.
9194         (-Wreturn-type): Remove description of functionality now handled
9195         by -Wignored-qualifiers.
9196
9197 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
9198
9199         PR ada/33788
9200         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
9201         NOP_EXPR if it is between integral types with the same precision.
9202
9203 2008-01-12  Jan Hubicka  <jh@suse.cz>
9204
9205         PR other/28023
9206         * invoke.texi (max-inline-recursive-depth): Fix default value.
9207
9208 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
9209
9210         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
9211         correct type.
9212
9213 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
9214         
9215         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
9216         
9217 2008-01-11  James E. Wilson  <wilson@specifix.com>
9218
9219         PR target/26015
9220         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
9221
9222 2008-01-11  Anatoly Sokolov <aesok@post.ru>
9223
9224         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
9225         save/restore frame pointer register and don't use 'call-prologues' 
9226         optimization in function with "OS_task" attribute.
9227
9228 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
9229
9230         PR middle-end/31309
9231         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
9232         when copying to memory.
9233
9234 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
9235
9236         PR rtl-optimization/30905
9237         * cfgcleanup.c: Include dce.h
9238         (crossjumps_occured): New global variable.
9239         (try_crossjump_bb): Exit loop after finding a fallthru edge.
9240         If something changed, set crossjumps_occured to true.
9241         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
9242         Don't add/remove fake edges to exit here...
9243         (cleanup_cfg): ...but do it here, when crossjumping.
9244         Run a fast DCE when successful crossjumps occured in the latest
9245         iteration of try_optimize_cfg.
9246
9247 2008-01-11  Richard Guenther  <rguenther@suse.de>
9248
9249         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
9250         (struct vn_unary_op_s): Likewise.
9251         (vn_reference_insert): Free old reference on hash collision.
9252
9253 2008-01-10  Raksit Ashok  <raksit@google.com>
9254
9255         PR rtl-optimization/27971
9256         * combine.c (find_split_point): Split PLUS expressions which are
9257         inside a MEM rtx, and whose first operand is complex.
9258
9259 2008-01-10  DJ Delorie  <dj@redhat.com>
9260
9261         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
9262         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
9263         (m32c_hard_regno_ok): Call the underlying function.
9264
9265 2008-01-10  Richard Guenther  <rguenther@suse.de>
9266
9267         PR middle-end/34683
9268         * tree-cfg.c (tree_merge_blocks): Do not go through the
9269         full-blown folding and stmt updating path if we just deal
9270         with virtual operands.
9271         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
9272         test for abnormal SSA_NAMEs.
9273
9274 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
9275
9276         PR middle-end/34641
9277         * reload.c (push_reload): Add assertions.  All constants from
9278         reg_equiv_constant should have been used for replacing the respective
9279         pseudo earlier.
9280         (find_reloads_address): Invoke find_reloads_address_part for
9281         constant taken from the reg_equiv_constant array.
9282
9283 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
9284
9285         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
9286         field (valnum) the first in the struct.  Replace bools with
9287         unit bit fields.
9288
9289 2008-01-10  Richard Guenther  <rguenther@suse.de>
9290
9291         PR tree-optimization/34651
9292         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
9293         types and ordering for masking and converting.
9294
9295 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
9296
9297         PR tree-optimization/34017
9298         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
9299         also for PHI_NODE expressions.
9300
9301 2008-01-09  Jan Hubicka  <jh@suse.cz>
9302
9303         PR tree-optimization/34708
9304         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
9305         based on number of case labels.
9306         (init_inline_once): Remove switch_cost.
9307         * tree-inline.h (eni_weights_d): Remove switch_cost.
9308
9309 2008-01-09  Richard Guenther  <rguenther@suse.de>
9310         Andrew Pinski  <andrew_pinski@playstation.sony.com>
9311
9312         PR middle-end/30132
9313         * gimplify.c (gimplify_cond_expr): Do not create an addressable
9314         temporary if an rvalue is ok or an lvalue is not required.
9315
9316 2008-01-09  Richard Guenther  <rguenther@suse.de>
9317
9318         PR middle-end/34458
9319         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
9320         adjust return type.
9321
9322 2008-01-09  Richard Guenther  <rguenther@suse.de>
9323
9324         PR middle-end/34679
9325         * tree.c (host_integerp): Check for sizetype only if the
9326         type is an integer type.
9327
9328 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
9329
9330         PR debug/26364
9331         * opts.c (decode_options): Disable inlining of functions called
9332         once if not in unit-at-a-time mode.
9333
9334 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
9335
9336         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
9337
9338 2008-01-08  Richard Guenther  <rguenther@suse.de>
9339
9340         PR middle-end/31863
9341         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
9342         out early if the result will be unused.
9343
9344 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
9345
9346         PR target/34709
9347         Revert:
9348
9349         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
9350         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
9351         for TARGET_RECIP.       
9352         
9353 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
9354         
9355         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
9356         for vectorization tuned.
9357         
9358 2008-01-08  Richard Guenther  <rguenther@suse.de>
9359
9360         PR tree-optimization/34683
9361         * tree-ssa-operands.c (operand_build_cmp): Export.
9362         * tree-ssa-operands.h (operand_build_cmp): Declare.
9363         * tree-vn.c (vuses_compare): Remove.
9364         (sort_vuses): Use operand_build_cmp.
9365         (sort_vuses_heap): Likewise.
9366         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
9367         to re-use old VEC if available.  Do not sort already sorted VUSEs.
9368         (vdefs_to_vec): Do not sort already sorted VDEFs.
9369
9370 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
9371
9372         PR middle-end/34694
9373         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
9374
9375 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
9376
9377         PR target/34702
9378         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
9379         limitations of reciprocal sequences on x86 targets.
9380
9381 2008-01-08  Richard Guenther  <rguenther@suse.de>
9382
9383         PR tree-optimization/34683
9384         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
9385
9386 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
9387
9388         PR target/34622
9389         * config/darwin.c (darwin_mergeable_string_section): Don't use
9390         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
9391
9392 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
9393
9394         PR target/34682
9395         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
9396         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
9397         predicates of op0 and op1 to register_operand.
9398         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
9399         expander using X87MODEF mode iterator.  Change predicates of
9400         op0 and op1 to register_operand.
9401         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
9402         corresponding patterns and macroize using MODEF macro.  Change
9403         predicates of op0 and op1 to register_operand and remove
9404         "m" constraint. Disparage "r" alternative with "!".
9405         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
9406         macroize using X87MODEF macro.  Change predicates of op0 and op1
9407         to register_operand and remove "m" constraint.  Disparage "r"
9408         alternative with "!".
9409         (absneg splitter with memory operands): Remove.
9410         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
9411         patterns and macroize using X87MODEF mode iterator.
9412         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
9413         Change predicate of op1 to register_operand.
9414         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
9415         for memory operands.
9416
9417 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
9418
9419         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
9420
9421 2008-01-07  Richard Guenther  <rguenther@suse.de>
9422
9423         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
9424         fields.
9425
9426 2008-01-07  Richard Guenther  <rguenther@suse.de>
9427
9428         PR tree-optimization/34683
9429         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
9430         VOPs of the needed size to save memory.  Use VEC_quick_push
9431         to save compile-time.
9432         (vdefs_to_vec): Likewise.
9433
9434 2008-01-07  Sa Liu  <saliu@de.ibm.com>
9435
9436         * config/spu/spu.md (divdf3): Genetate inline code for double
9437         division.  The implementation doesn't handle INF or NAN, therefore it
9438         only applies when -ffinite-math-only is given.
9439
9440 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
9441
9442         PR libstdc++/34680
9443         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
9444         * doc/cpp.texi ([Common Predefined Macros]): Document.
9445
9446 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
9447
9448         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
9449         order to use commutative addition instead of subtraction.
9450
9451 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9452             Mircea Namolaru  <namolaru@il.ibm.com>
9453             Vladimir Yanovsky  <yanov@il.ibm.com>
9454             Revital Eres  <eres@il.ibm.com>
9455
9456         PR tree-optimization/34263
9457         * tree-outof-ssa.c (process_single_block_loop_latch,
9458         contains_tree_r): New functions.
9459         (analyze_edges_for_bb): Call process_single_block_loop_latch
9460         function to empty single-basic-block latch block if possible.
9461
9462 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
9463
9464         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
9465         for TARGET_RECIP.
9466         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
9467
9468 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
9469
9470         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
9471
9472 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
9473
9474         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
9475
9476 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
9477
9478         PR tree-optimization/34618
9479         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
9480         flag from T.
9481
9482 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
9483
9484         PR target/34673
9485         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
9486         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
9487         Update copyright year.
9488
9489         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
9490         Update copyright year.
9491         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
9492         using NR fixup.
9493
9494 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
9495
9496         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
9497         edge does not point to current bb before changing need_assert.
9498
9499 2008-01-04  Richard Guenther  <rguenther@suse.de>
9500
9501         PR middle-end/34029
9502         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
9503         for verifying purposes if they are is_gimple_min_invariant.
9504
9505 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
9506
9507         PR tree-optimization/34448
9508         PR tree-optimization/34465
9509         * gimplify.c (gimplify_init_constructor): Add new parameter
9510         notify_temp_creation.  Use it.
9511         (gimplify_modify_expr_rhs): Take volatiles into account when
9512         optimizing constructors.
9513         Do not optimize constructors if gimplify_init_constructor will dump to
9514         memory.
9515         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
9516         * gcc.c-torture/compile/pr34448.c: New.
9517
9518 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
9519
9520         PR gcov-profile/34609
9521         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
9522         return_slot if result is TREE_ADDRESSABLE.
9523
9524 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
9525
9526         * config/mips/mips.md (sqrt_condition): Tweak comment.
9527         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
9528
9529 2008-01-03  Tom Tromey  <tromey@redhat.com>
9530
9531         PR c/34457
9532         * c-common.c (c_type_hash): Handle VLAs.
9533
9534 2008-01-03  Jan Hubicka  <jh@suse.cz>
9535
9536         PR tree-optimization/31081
9537         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
9538         0 when inlining and not inlining to first basic block.
9539         (remap_decl): When var is initialized to 0, don't set default_def.
9540         (expand_call_inline): Set entry_bb.
9541         * tree-inline.h (copy_body_data): Add entry_bb.
9542
9543 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
9544
9545         PR c++/34619
9546         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
9547         before returning.
9548
9549         PR tree-optimization/29484
9550         * tree-inline.c (inline_forbidden_p_2): New function.
9551         (inline_forbidden_p): Disallow inlining if some static var
9552         has an address of a local LABEL_DECL in its initializer.
9553         * doc/extend.texi (Labels as Values): Document &&foo behaviour
9554         vs. inlining.
9555
9556 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
9557
9558         PR tree-optimization/34635
9559         * tree-data-ref.c (add_other_self_distances): Make sure that the
9560         evolution step is constant.
9561
9562 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
9563
9564         PR middle-end/34608
9565         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
9566
9567 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
9568
9569         * tree-sra.c (scalarize_init): Insert the generate_element_init
9570         statements after the generate_element_zero statements.
9571
9572 2008-01-02  Richard Guenther  <rguenther@suse.de>
9573
9574         PR middle-end/34093
9575         PR middle-end/31976
9576         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
9577         for very large number of operands instead of ICEing.
9578
9579 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
9580
9581         PR target/34013
9582         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
9583         while stack probing.
9584
9585 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
9586
9587         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
9588         in C++0x mode.
9589
9590 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
9591
9592         PR libmudflap/26442
9593         * tree-mudflap.c (mx_register_decls): Guard warning by
9594         !DECL_ARTIFICIAL check.
9595
9596 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
9597
9598         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
9599         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
9600         sse5_perm<mode>): Fix constraints.