OSDN Git Service

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