OSDN Git Service

2008-08-20 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-08-20  Richard Guenther  <rguenther@suse.de>
2
3         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
4         (extract_range_from_binary_expr): Fall back to constant propagation.
5         (extract_range_from_unary_expr): Likewise.
6
7 2008-08-20  Richard Guenther  <rguenther@suse.de>
8
9         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
10         with TREE_THIS_VOLATILE on shared nodes.
11         (fold_stmt_r): Likewise.
12
13 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
14
15         PR c/37171
16         * c-parser.c (c_parser_attributes): For keywords use canonical
17         spelling for attr_name.
18
19 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20
21         * value-prof.c (check_counter): Revert wrong call to error.
22         
23 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24
25         * profile.c: Update calls to inform.
26         * value-prof.c: Update calls to inform.
27         
28 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
29
30         * diagnostic.c (inform): Add an explicit location_t parameter.
31         * toplev.h (inform): Update declaration.
32         * builtins.c: Update all calls to inform.
33         * c-common.c: Likewise.
34         * c-decl.c: Likewise.
35         * c-opts.c: Likewise.
36         * c-pch.c: Likewise.
37         * c-pragma.c: Likewise.
38         * c-typeck.c: Likewise.
39         * coverage.c: Likewise.
40         * opts.c: Likewise.
41         * toplev.c: Likewise.
42         * tree-cfg.c: Likewise.
43         * tree-ssa.c: Likewise.
44
45 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
46
47         PR target/37169
48         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
49         V2DI mode, for SSE4.1, use movq instead of vector set if the
50         second element is zero and inter-unit moves are OK.
51
52 2008-08-20  Richard Guenther  <rguenther@suse.de>
53
54         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
55         properly handle conversion/copy chains after tuplification.
56
57 2008-08-20  Richard Guenther  <rguenther@suse.de>
58
59         * passes.c (init_optimization_passes): Move the second
60         forwprop pass before alias computation.  Remove the second
61         DCE pass.  Remove the first dominator and phi copy/const
62         prop passes.
63
64 2008-08-20  Nick Clifton  <nickc@redhat.com>
65
66         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
67         support of this feature.  Do not assume that a sufficiently new
68         assembler will support the feature regardless of the target type.
69         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
70         * configure: Regenerate.
71
72 2008-08-20  Richard Guenther  <rguenther@suse.de>
73
74         * tree-vrp.c (found_in_subgraph): Remove.
75         (live): New global static.
76         (live_on_edge): New function.
77         (blocks_visited): Remove.
78         (register_edge_assert_for_2): Use live_on_edge.
79         (find_conditional_asserts): Remove code dealing with
80         found_in_subgraph.  Do not walk the CFG.
81         (find_switch_asserts): Likewise.
82         (find_assert_locations_1): Renamed from find_assert_locations.
83         Move finding assert locations for conditional and switch
84         statements first.  Update live bitmap.  Do not walk the CFG.
85         (find_assert_locations): New function.
86         (insert_range_assertions): Remove entry of CFG walk.
87         Adjust call to find_assert_locations.
88         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
89         that only can appear because of fake exit edges but assert we
90         never try to insert on those.
91         (fini_pre): Do not remove fake exit edges here...
92         (execute_pre): ...but here, before committing edge inserts.
93
94 2008-08-19  Richard Guenther  <rguenther@suse.de>
95
96         * passes.c (init_optimization_passes): Exchange store-ccp
97         with a ccp pass.
98
99 2008-08-19  Rafael Espindola  <espindola@google.com>
100
101       * varasm.c (weak_decls): Move earlier in the file.
102       (assemble_external): Add weak decls to the weak_decls list.
103       (declare_weak): Don't add decls to the weak_decls list.
104
105 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
106
107         PR target/37157
108         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
109         before (sse2_shufpd_<mode>).
110
111 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
112
113         PR debug/37156
114         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
115         * tree.c (block_nonartificial_location): Likewise.
116
117 2008-08-19  Richard Guenther  <rguenther@suse.de>
118
119         PR tree-optimization/35972
120         PR tree-optimization/23094
121         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
122         parameter.
123         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
124         handle MISALIGNED_INDIRECT_REF.
125         (get_ref_from_reference_ops): New helper.
126         (vn_reference_lookup_pieces): Walk the use-def chain using the
127         alias-oracle if requested.
128         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
129         walking the use-def chain.
130         (compute_avail): But not here.
131         (create_component_ref_by_pieces_1): Properly handle
132         MISALIGNED_INDIRECT_REF.
133         (do_regular_insertion): Handle fully redundant
134         expressions after PHI-translation also for SSA_NAME values, not
135         only constants.  Correctly use edoubleprime for that.
136
137 2008-08-19  Ira Rosen  <irar@il.ibm.com>
138
139         * tree-vectorizer.c (supportable_widening_operation): Support
140         multi-step conversion, return the number of steps in such conversion
141         and the required intermediate types.
142         (supportable_narrowing_operation): Likewise.
143         * tree-vectorizer.h (vect_pow2): New function.
144         (supportable_widening_operation): Change argument types.
145         (supportable_narrowing_operation): Likewise.
146         (vectorizable_type_promotion): Add an argument.
147         (vectorizable_type_demotion): Likewise.
148         * tree-vect-analyze.c (vect_analyze_operations): Call 
149         vectorizable_type_promotion and vectorizable_type_demotion with
150         additional argument.
151         (vect_get_and_check_slp_defs): Detect patterns.
152         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
153         types. 
154         (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
155         vect_build_slp_tree with correct arguments. Calculate unrolling factor
156         according to the smallest type in the loop.
157         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
158         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call 
159         supportable_widening_operation with correct arguments. 
160         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector 
161         operands lists according to the number of vector statements in left
162         or right node, if exists.
163         (vect_gen_widened_results_half): Remove unused argument.
164         (vectorizable_conversion): Call supportable_widening_operation, 
165         supportable_narrowing_operation, and vect_gen_widened_results_half
166         with correct arguments. 
167         (vectorizable_assignment): Change documentation, support multiple
168         types in SLP. 
169         (vectorizable_operation): Likewise.
170         (vect_get_loop_based_defs): New function.
171         (vect_create_vectorized_demotion_stmts): Likewise.
172         (vectorizable_type_demotion): Support loop-aware SLP and general
173         multi-step conversion. Call vect_get_loop_based_defs and
174         vect_create_vectorized_demotion_stmts for transformation.
175         (vect_create_vectorized_promotion_stmts): New function.
176         (vectorizable_type_promotion): Support loop-aware SLP and general
177         multi-step conversion. Call vect_create_vectorized_promotion_stmts
178         for transformation.     
179         (vectorizable_store): Change documentation, support multiple
180         types in SLP. 
181         (vectorizable_load): Likewise.
182         (vect_transform_stmt): Pass SLP_NODE to 
183         vectorizable_type_promotion and vectorizable_type_demotion.
184         (vect_schedule_slp_instance): Move here the calculation of number
185         of vectorized statements for each node from...
186         (vect_schedule_slp): ... here.
187         (vect_transform_loop): Call vect_schedule_slp without the last
188         argument.
189
190 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
191
192         PR bootstrap/37152
193         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change = 
194         to == in assert statement.
195         (vectorizable_reduction): Fix typo.
196
197 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
198
199         PR bootstrap/37153
200         * value-prof.c (check_counter): Dereference pointer to overall
201         count when printing it.
202
203 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
204
205         * profile.h: Really add it.
206
207 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
208
209         * mcf.c: Really add it.
210
211 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
212             Vinodha Ramasamy  <vinodha@google.com>
213
214         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
215         count_scale.
216         * value-prof.c (check_counter): Fix the counter if
217         flag_profile_correction is true.
218         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
219         tree_mod_subtract_transform):
220         Follow check_counter parameter change.
221         * common.opt (fprofile-correction): New option.
222         * mcf.c: New file.
223         * profile.h: Likewise.
224         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
225         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
226         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
227         functions.
228         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
229         flag_profile_correction is set.
230
231 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
232
233         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
234
235 2008-08-18  Tomas Bily  <tbily@suse.cz>
236
237         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
238         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
239         CONVERT_EXPR_P.
240         * tree-data-ref.c (split_constant_offset_1): Likewise.
241         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
242         * tree-sra.c (sra_walk_expr): Likewise.
243         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
244         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
245         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
246         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
247         Likewise.
248         * gimple.c (gimple_assign_unary_nop_p): Likewise.
249         * tree-vect-transform.c (vectorizable_type_demotion)
250         (vectorizable_type_promotion): Likewise.
251         * tree-inline.c (expand_call_inline): 
252         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
253         (forward_propagate_addr_expr_1, forward_propagate_comparison)
254         (tree_ssa_forward_propagate_single_use_vars): Likewise.
255         * expr.c (expand_expr_real_1): Likewise.
256         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
257         (gimple_assign_unary_useless_conversion_p): Likewise.
258         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
259         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
260         * fold-const.c (fold_unary): Likewise.
261         * tree.h (CONVERT_EXPR_P): Likewise.
262         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
263         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
264         * tree-vrp.c: 
265         (register_edge_assert_for_2, extract_range_from_unary_expr)
266         (register_edge_assert_for_1): Likewise.
267         
268 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
269
270         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
271         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
272         (enum real_value_const): Delete.
273         (get_real_const): Delete.
274         * real.c (get_real_const): Delete.
275         (dconst_e_ptr): Define.
276         (dconst_third_ptr): Define.
277         (dconst_sqrt2_ptr): Define.
278         * builtins.c: Update all callers.
279
280 2008-08-18  Richard Guenther  <rguenther@suse.de>
281
282         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
283         statement iterator after statement removal.
284
285 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
286
287         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
288         (detect_processor_freebsd): Likewise.
289         (host_detect_local_cpu): Call newly added functions for FreeBSD.
290
291 2008-08-18  Richard Guenther  <rguenther@suse.de>
292
293         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
294         and loads have the correct types.
295
296 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
297
298         PR cpp/7263
299         * c-opts.c (cpp_opts): Remove static.
300         * c-parser.c (cpp_opts): Declare it extern.
301         (disable_extension_diagnostics): Handle cpp options.
302         (enable_extension_diagnostics): Likewise.
303
304 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
305
306         * diagnostics.c (permerror_at): Rename as permerror.
307         (permerror): Delete.
308         * toplev.h: Likewise.
309
310 2008-08-18  Richard Guenther  <rguenther@suse.de>
311
312         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
313         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
314         Move call_cdce before build_alias.  Move copyrename2,
315         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
316         right after final inlining.
317         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
318         (pass_build_cfg): But instead via TODO_dump_func.
319
320 2008-08-18  Richard Guenther  <rguenther@suse.de>
321
322         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
323         element index.
324         (scalarize_init): If we failed to generate some initializers
325         do not generate zeros for not instantiated members.  Instead
326         rely on the copy out.
327         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
328         about missing flow-sensitive alias info only if we have
329         aliases computed.
330
331 2008-08-17  Nick Clifton  <nickc@redhat.com>
332
333         * doc/extend.texi (Function Attributes): Fix typo in description
334         if hot function attribute.
335
336 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
337             Richard Sandiford  <rdsandiford@googlemail.com>
338
339         * doc/install.texi (--with-mips-plt): Document.
340         * doc/invoke.texi (-mplt, -mno-plt): Document.
341         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
342         and handle ${with_mips_plt}.
343         * config/mips/mips.opt (mplt): New option.
344         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
345         (TARGET_ABICALLS_PIC2): Likewise.
346         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
347         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
348         (ASM_SPEC): Use !mabi=* instead of !mabi*.
349         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
350         to decide whether to output ".option picX" directives.
351         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
352         Pass -call_nonpic rather than -KPIC for -mplt.
353         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
354         on the command line.  Also remove it when -mabi=64 is used without
355         -msym32.
356         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
357         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
358         TARGET_ABICALLS_PIC0.
359         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
360         TARGET_ABICALLS.
361         (mips16_build_function_stub): Only output ".option pic" directives
362         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
363         (mips16_build_call_stub): Fix comment and remove redundant
364         ".set at"/"set .noat" directives.
365         (mips_function_rodata_section): Use the default behaviour for
366         TARGET_ABSOLUTE_ABICALLS.
367         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
368         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
369         (mips_restore_gp): Do nothing if the current function doesn't use
370         a global pointer.
371         (mips_expand_prologue): Only save $gp if the current function uses it.
372         Use a normal move for TARGET_ABICALLS_PIC0.
373         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
374
375 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
376
377         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
378         of function when handling GLOBAL_POINTER_REGNUM.
379
380 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
381
382         PR ada/20548
383         * common.opt (-fstack-check): Do not declare the variable here.
384         (-fstack-check=): New option variant.
385         * doc/invoke.texi (Code Gen Options): Document it.
386         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
387         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
388         (STACK_CHECK_STATIC_BUILTIN): New macro.
389         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
390         * opts.c: Include expr.h.
391         (common_handle_option) <OPT_fold_stack_check_>: New case.
392         <OPT_fstack_check>: Likewise.
393         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
394         consistently in the test for variable-sized types.  Adjust for
395         new behaviour of flag_stack_check.
396         * explow.c: Include except.h.
397         (allocate_dynamic_stack_space): Do not take into account
398         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
399         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
400         for variable-sized parameters.  Treat all parameters whose size is
401         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
402         stack checking is enabled.
403         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
404         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
405         if generic stack checking is enabled.
406         (expand_function_end): Adjust for new behaviour of flag_stack_check.
407         * reload1.c (reload): Likewise.
408         * stmt.c (expand_decl): Assert that all automatic variables have
409         fixed size at this point and remove dead code.
410         * flags.h (stack_check_type): New enumeration type.
411         (flag_stack_check): Declare.
412         * toplev.c (flag_stack_check): New global variable.
413         * Makefile.in (opts.o): Add dependency on EXPR_H.
414         (explow.o): Add dependency on except.h.
415
416 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
417
418         * config/avr/avr.c (avr_override_options): Reduce value of 
419         PARAM_INLINE_CALL_COST.
420
421 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
422
423         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
424         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
425         lieu of TYPE_MODE (type) throughout.
426
427 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
428
429         * config/arm/arm.c (add_minipool_backward_ref): Check for
430         8-byte-aligned entries in second case of forcing insertion after a
431         particular entry.  Change third case to avoid inserting
432         non-8-byte-aligned entries before 8-byte-aligned ones.
433
434 2008-08-15  Richard Guenther  <rguenther@suse.de>
435
436         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
437         strip components for unknown size accesses.
438
439 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
440
441         * config/s390/2097.md New file.
442         * config/s390/s390.md ("z10prop" attribute): Define none,
443         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
444         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
445         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
446         possible values and apply them to insns as appropriate.
447         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
448         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
449         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
450         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible
451         values.
452         ("bfp" mode attribute): Removed.  Every occurence replaced
453         with <mode>.
454         * config/s390/s390.c (struct "z10_cost"): Updated entries.
455         * config/s390/2084.md (insn_reservation "x_itof"): Updated
456           type attribute.
457
458 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
459
460         PR c/28152
461         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
462         for keywords.
463         
464 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
465
466         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
467         additional argument. Support reduction when duplication is needed due
468         to data-types of different sizes in the loop.
469         (get_initial_def_for_induction): Fix printout.
470         (vect_get_vec_def_for_stmt_copy): Support case where the
471         vec_stmt_for_operand is a phi node.
472         (vectorizable_reduction): Support reduction when duplication is needed 
473         due to data-types of different sizes in the loop.
474         (vectorizable_call): Remove restriction to not vectorize in case we 
475         have data-types of different sizes in the loop.
476         (vectorizable_conversion): Likewise.
477         (vectorizable_operation): Likewise.
478         (vectorizable_type_demotion): Likewise.
479         (vectorizable_type_promotion): Likewise.
480         (vectorizable_induction): Add restriction to not vectorize in case 
481         we have data-types of different sizes in the loop.
482
483 2008-08-14  Christophe Saout  <christophe@saout.de>
484             Uros Bizjak  <ubizjak@gmail.com>
485
486         PR target/37101
487         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
488         (*vec_concatv2di_rex64_sse4_1): Ditto.
489         (*vec_concatv2di_rex64_sse): Ditto.
490
491 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
492
493         PR middle-end/37103
494         * fold-const.c (fold_widened_comparison): Do not allow
495         sign changes that change the result even if shorter type
496         is wider than arg1_unw's type.
497
498 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
499
500         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
501         Skip if the multilib testing specifies -march that does not
502         agree with the one specified in the testcase.
503
504 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
505
506         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
507         zero extend SImode values being converted to TFmode before passing
508         to libcalls.
509
510 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
511
512         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
513         __PPU__ when targeting the Cell/B.E. PPU processor.
514
515 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
516
517         * gimple.h (gimple_call_set_chain): Accept SSA variables.
518         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
519         Rematerialize the static chain, if any.
520         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
521         static chain.
522
523 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
524
525         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
526         (new_loc_descr): Likewise.
527         (add_loc_descr): Likewise.
528         (size_of_loc_descr): Likewise.
529         (size_of_locs): Likewise.
530         (output_loc_operands): Likewise.
531         (output_loc_sequence): Likewise.
532         (new_reg_loc_descr): New.
533         (build_cfa_loc): Use it.
534         (build_cfa_aligned_loc): Likewise.
535         (one_reg_loc_descriptor): Likewise.
536         (based_loc_descr): Likewise.
537
538 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
539
540         PR 30551
541         * doc/invoke.texi (Wmain): Update.
542         * c-decl.c (start_decl): warn_main is only 0 or 1.
543         (start_function): Likewise. Fix formatting.
544         (finish_function): Delete redundant warning.
545         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
546         * c-opts (c_common_handle_option): -Wall only has effect if
547         warn_main is uninitialized. OPT_Wmain is automatically
548         handled. -pedantic also enables Wmain.
549         (c_common_post_options): Handle all logic for Wmain here.
550         * c-common.c (warn_main): Delete.
551         (check_main_parameter_types): Make pedwarns conditional on
552         OPT_Wmain.
553         * c-common.h (warn_main): Delete.
554
555 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
556
557         PR middle-end/36701
558         * expr.c (emit_group_store): Allocate stack temp with the
559         largest alignment when copying from register to stack.
560
561 2008-08-13  Richard Guenther  <rguenther@suse.de>
562
563         * tree.h (maybe_fold_offset_to_address): Declare.
564         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
565         (ccp_fold): Handle pointer conversions the same as fold_stmt.
566         Likewise for POINTER_PLUS_EXPR.
567         (maybe_fold_offset_to_reference): Enable disabled code.
568         (maybe_fold_offset_to_address): New function.
569         (fold_stmt_r): Use it.
570         (fold_gimple_assign): Likewise.
571         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
572         (gimplify_expr): Likewise.
573
574 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
575
576         * toplev.h (pedwarn_at): Fix declaration.
577         
578 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
579
580         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
581         LINK_SPEC): Use %R in -Y P argument.
582
583 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
584
585         PR c/15236
586         * diagnostic.c (pedwarn_at): New.
587         * toplev.h (pedwarn_at): Declare.
588         * c-tree.h (build_enumerator): Update declaration.
589         * c-decl.c (finish_enum): Update comment.
590         (build_enumerator): Take a location parameter. Give a pedwarn but do
591         not perform any conversion.
592         * c-parser.c (c_parser_enum_specifier): Set correct location for
593         enumerator.
594
595 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
596
597         PR 35635
598         * c-common.c (conversion_warning): Use a switch. Ignore boolean
599         expressions except for conversions to signed:1 bitfields. Handle
600         COND_EXPR with constant operands.
601         
602 2008-08-13  Richard Guenther  <rguenther@suse.de>
603
604         PR tree-optimization/15255
605         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
606         (struct oecount_s): New struct and VEC types.
607         (cvec): New global.
608         (oecount_hash): New function.
609         (oecount_eq): Likewise.
610         (oecount_cmp): Likewise.
611         (zero_one_operation): New function.
612         (build_and_add_sum): Likewise.
613         (undistribute_ops_list): Perform un-distribution of multiplication
614         and division on the chain of summands.
615         (should_break_up_subtract): Also break up subtracts for factors.
616         (reassociate_bb): Delete dead visited statements.
617         Call undistribute_ops_list.  Re-sort and optimize if it did something.
618         * passes.c (init_optimization_passes): Move DSE before
619         reassociation.
620         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
621         PHI nodes.
622
623 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
624
625         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
626
627         * doc/invoke.texi: Revert unintended checkin.
628
629 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
630
631         PR libgomp/26165
632         * gcc.c (include_spec_function): Tweak call to find_a_file.
633
634 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
635
636         PR middle-end/37014
637         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
638         and TRUTH_ORIF_EXPR.
639         * dojump.c (do_jump): Likewise.
640
641         PR tree-optimization/37084
642         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
643         if id->regimplify, don't assume stmt is a cast assignment.
644
645 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
646
647         * final.c (final_scan_insn): Use app_enable/app_disable functions.
648
649 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
650
651         PR bootstrap/37097
652         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
653         by last change.
654
655 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
656
657         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
658         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
659
660         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
661         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
662         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
663         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
664         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
665
666         * doc/tm.texi (Storage Layout): Remove documentation for
667         TARGET_FLOAT_FORMAT.
668
669         * simplify-rtx.c (simplify_binary_operation_1): Replace
670         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
671
672 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
673
674         * real.h (struct real_format): New member has_sign_dependent_rounding.
675         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
676         spu_single_format, ieee_double_format, mips_double_format,
677         motorola_double_format, ieee_extended_motorola_format,
678         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
679         ieee_extended_intel_96_round_53_format, ibm_extended_format,
680         mips_extended_format, ieee_quad_format, mips_quad_format,
681         vax_f_format, vax_d_format, vax_g_format): Initialize it.
682         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
683
684         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
685         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
686         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
687         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
688         (ROUND_TOWARDS_ZERO): Likewise.
689
690         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
691         (FLOAT_MODE_FORMAT): New macro.
692         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
693         (MODE_COMPOSITE_P): ... this new macro.
694         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
695         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
696         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
697
698         * flags.h: Include "real.h".
699
700         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
701         REAL_MODE_FORMAT_COMPOSITE_P.
702         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
703
704         * doc/tm.texi (Storage Layout): Remove documentation of
705         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
706         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
707         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
708         they only apply to libgcc2.a.
709
710 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
711
712         * config/spu/float_disf.c: New file.
713         * config/spu/float_unsdisf.c: New file.
714         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
715         (LIB2FUNCS_EXCLUDE): Define.
716
717 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
718             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
719
720         * real.h (struct real_format): New member round_towards_zero.
721         * real.c (round_for_format): Respect fmt->round_towards_zero.
722         (ieee_single_format, mips_single_format, motorola_single_format,
723         spu_single_format, ieee_double_format, mips_double_format,
724         motorola_double_format, ieee_extended_motorola_format,
725         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
726         ieee_extended_intel_96_round_53_format, ibm_extended_format,
727         mips_extended_format, ieee_quad_format, mips_quad_format,
728         vax_f_format, vax_d_format, vax_g_format): Initialize it.
729         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
730
731         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
732         real_format to choose rounding mode when calling MPFR functions.
733         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
734         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
735
736         * real.h (real_to_decimal_for_mode): Add prototype.
737         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
738         Respect target rounding mode when generating decimal representation.
739         (real_to_decimal): New stub for backwards compatibility.
740         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
741         real_to_decimal_for_mode instead of real_to_decimal.
742
743         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
744
745 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
746             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
747
748         * real.c (spu_single_format): New variable.
749         * real.h (spu_single_format): Declare.
750
751         * config/spu/spu.c (spu_override_options): Install SFmode format.
752         (spu_split_immediate): Use integer mode to operate on pieces of
753         floating-point values in all cases.
754
755         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
756         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
757         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
758
759 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
760
761         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
762
763 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
764
765         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
766
767 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
768
769         PR c++/36688
770         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
771         on the VAR_DECL instead of TYPE_READONLY on its type.
772
773 2008-08-12  Ira Rosen  <irar@il.ibm.com>
774
775         * tree-vectorizer.c: Depend on langhooks.h.
776         (supportable_widening_operation): Add two arguments. Support double
777         type conversions.
778         (supportable_narrowing_operation): Likewise.
779         * tree-vectorizer.h (supportable_widening_operation): Add two 
780         arguments.
781         (supportable_narrowing_operation): Likewise.
782         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
783         supportable_widening_operation with correct arguments.
784         * tree-vect-transform.c (vectorizable_conversion): Likewise.
785         (vectorizable_type_demotion): Support double type conversions.
786         (vectorizable_type_promotion): Likewise.
787         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
788
789 2008-08-11  Michael Matz  <matz@suse.de>
790
791         * i386/i386.c (override_options): Move initialisation from
792         flag_schedule_insns_after_reload to here from ...
793         (optimization_options): ... here.
794
795 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
796
797         PR rtl-optimization/36998
798         * dwarf2out.c (compute_barrier_args_size_1,
799         compute_barrier_args_size): Temporarily remove assertions.
800
801 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
802
803         PR middle-end/20644
804         * tree-ssa.c (struct walk_data): Add new flag
805         warn_possibly_uninitialized.
806         (warn_uninitialized_var): Use it.
807         (warn_uninitialized_vars): New.
808         (execute_early_warn_uninitialized): Call it.
809         (execute_late_warn_uninitialized): Likewise.
810
811 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
812
813         PR middle-end/36238
814         * reload1.c (gen_reload): Guard calls to get_secondary_mem
815         for memory subregs.
816
817 2008-08-09  Jan Hubicka  <jh@suse.cz>
818
819         PR target/37055
820         * optabs.c (maybe_emit_unop_insn): Remove produced code if
821         expansion failed.
822         (expand_fix): Be prepared for expansion to fail.
823         (expand_sfix_optab): Remove instructions if expansion failed.
824
825 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
826
827         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
828         avr31 architecture.
829         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
830         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
831
832 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
833
834         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
835         mips/t-libgcc-mips16 to tmake_file.
836         * config/mips/mips-protos.h (mips_call_type): New enum.
837         (mips_pic_base_register, mips_got_load): Declare.
838         (mips_restore_gp): Take an rtx argument.
839         (mips_use_pic_fn_addr_reg_p): Declare.
840         (mips_expand_call): Replace the sibcall_p argument with
841         a mips_call_type argument.  Add a lazy_p parameter.
842         (mips_split_call): Declare.
843         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
844         (MIPS16_PIC_TEMP): Likewise.
845         (reg_class): Delete M16_NA_REGS.
846         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
847         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
848         (mips_split_hi_p): Declare.
849         * config/mips/mips.c (mips_split_hi_p): New array.
850         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
851         (mips_got_symbol_type_p): New function.
852         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
853         (mips16_stub_function_p): New function.
854         (mips16_local_function_p): Likewise.
855         (mips_use_pic_fn_addr_reg_p): Likewise.
856         (mips_cannot_force_const_mem): Return false for HIGHs.
857         Extend CONST_INT and symbolic handling to MIPS16, using
858         mips_symbol_insns to check that the base symbol type is a
859         legitimate constant.  Reject GOT-based constants if
860         TARGET_MIPS16_PCREL_LOADS.
861         (mips_const_insns): Check targetm.cannot_force_const_mem when
862         decomposing a symbolic base and a large offset.
863         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
864         When calling a function that needs $25 from MIPS16 code,
865         move the target address into $25 separately and add a USE
866         to the call insn.
867         (mips16_gp_pseudo_reg): Insert the initializer immediately
868         before the first real insn.
869         (mips_pic_base_register, mips_got_load): New functions.
870         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
871         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
872         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
873         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
874         (mips_call_tls_get_addr): Update the call to mips_expand_call,
875         also passing NULL_RTX rather than const0_rtx as the aux argument.
876         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
877         instead of TARGET_EXPLICIT_RELOCS.
878         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
879         (mips_load_call_address): Replace the sibcall_p argument with
880         a mips_call_type argument.  Use mips_got_load.
881         (mips16_local_alias): New structure.
882         (mips16_local_aliases): New variable.
883         (mips16_local_aliases_hash): New function.
884         (mips16_local_aliases_eq): Likewise.
885         (mips16_local_alias): Likewise.
886         (mips16_stub_function): Likewise.
887         (mips16_build_function_stub): Create a local alias for the target
888         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
889         .cpload directive and an R_MIPS_NONE relocation for the target
890         function, then load the alias rather than the function itself.
891         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
892         (mips16_copy_fpr_return_value): Use mips16_stub_function and
893         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
894         (mips16_build_call_stub): Replace the FN parameter with an
895         FN_PTR parameter.  Force the address into a register if it
896         isn't a call_insn_operand; don't rely on the caller to do this.
897         If a call to a locally-defined and locally-binding MIPS16
898         function must be made indirectly, redirect the call to the
899         function's local alias.  Use mips16_stub_function_p,
900         mips16_stub_function, mips_expand_call and use_reg.
901         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
902         Use explicit %hi and %lo accesses where possible.
903         Use MIPS_CALL to generate the correct code form of a
904         jal instruction.  Add clobbers of $18 instead of uses.
905         Update the call to mips_emit_call_insn.
906         (mips_expand_call): Replace the SIBCALL_P argument with a
907         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
908         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
909         allowing it to modify the call address.  Update the calls to
910         mips_load_call_address and mips_emit_call_insn.
911         (mips_split_call): New function.
912         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
913         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
914         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
915         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
916         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
917         if TARGET_MIPS16.
918         (mips_cprestore_slot): New function.
919         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
920         and use mips_cprestore_slot.
921         (mips_output_function_prologue): Handle TARGET_MIPS16 for
922         LOADGP_OLDABI.
923         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
924         then use a copygp_mips16 instruction to set up $28.
925         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
926         (mips16_lay_out_constants): Call split_all_insns_noflow.
927         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
928         false if TARGET_MIPS16.
929         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
930         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
931         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
932         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
933         MIPS16 code.  Allow MIPS16 o32 PIC.
934         (mips_override_options): Allow MIPS16 o32 PIC.
935         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
936         after reload if TARGET_USE_GOT.
937         (UNSPEC_COPYGP): New constant.
938         (length): Use a default length of 8 for MIPS16 GOT loads.
939         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
940         (*got_page<mode>): Check mips_split_hi_p.
941         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
942         (unspec_got<mode>, unspec_call<mode>): New expanders.
943         (load_got<mode>, load_call<mode>): Remove the length attributes.
944         Use a got attribute instead of a type attribute.
945         (copygp_mips16): New insn.
946         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
947         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
948         (sibcall, sibcall_value, call, call_value): Update the calls
949         to mips_expand_call.
950         (call_internal, call_value_internal): Use mips_split_call.
951         (call_value_multiple_internal): Likewise.
952         (call_split): Move after call_internal (the insn it is split from).
953         (call_internal_direct, call_value_internal_direct): Turn into
954         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
955         (call_direct_split, call_value_direct_split): New patterns.
956         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
957         and use M16_REGS instead of M16_NA_REGS.
958         * config/mips/predicates.md (const_call_insn_operand): Replace
959         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
960         mips_use_pic_fn_addr_reg_p check.
961         (move_operand): Reject HIGHs if mips_split_hi_p.
962         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
963         (__mips16_floatunsisf): Inline __mips16_floatsisf.
964         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
965         * config/mips/libgcc-mips16.ver: New file.
966         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
967         $(srcdir)/config/mips/libgcc-mips16.ver.
968
969 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
970
971         * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
972         (mips_unspec_address, mips_unspec_offset_high): Likewise.
973         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
974         (mips16_cfun_returns_in_fpr_p): Likewise.
975
976 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
977
978         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
979         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
980         rather than 4 to PC.
981
982 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
983
984         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
985         (FUNCTION_PROFILER): Save the static chain pointer into $2
986         beforehand and restore it aftewards.
987         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
988         address directly into $25 and call the function through $25;
989         do not clobber $3.  Pad the DImode version to cover the space
990         left by the deleted $25 <- $3 move.
991         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
992         the removal of the $25 <- $3 move.
993         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
994         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
995
996 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
997             Daniel Jacobowitz  <dan@codesourcery.com>
998
999         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
1000         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
1001         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
1002         * config/mips/mips.c (mips_start_function_definition): New function.
1003         (mips_end_function_definition): Likewise.
1004         (mips_output_function_prologue): Use mips_start_function_definition.
1005         (mips_output_function_epilogue): Use mips_end_function_definition.
1006         (build_mips16_function_stub): Use mips_start_function_definition
1007         and mips_end_function_definition.
1008         (build_mips16_call_stub): Likewise.
1009
1010 2008-08-09  Richard Guenther  <rguenther@suse.de>
1011
1012         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
1013         * gimple.h (gimple_call_fn): Adjust comment.
1014         (gimple_call_set_fndecl): New function.
1015         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
1016         longer having bare FUNCTION_DECL operand.
1017         (gimple_call_return_type): Likewise.
1018         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
1019
1020         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
1021         (gimple_mod_pow2): Likewise.
1022         (gimple_mod_subtract): Likewise.
1023         (gimple_ic): Likewise.
1024         (gimple_stringop_fixed_value): Likewise.
1025         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
1026         longer having bare FUNCTION_DECL operand.
1027         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
1028         * omp-low.c (optimize_omp_library_calls): Likewise.
1029         * cgraphunit.c (update_call_expr): Likewise.
1030         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1031         (execute_convert_to_rsqrt): Likewise.
1032         * cfgexpand.c (gimple_to_tree): Simplify.
1033         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
1034         bare FUNCTION_DECL operand.
1035         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
1036         (convert_gimple_call): Use gimple_call_fndecl.
1037         * c-common.c (c_warn_unused_result): Likewise.
1038
1039 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1040
1041         PR c/17880
1042         * c-typeck.c (digest_init): Call verify_sequence_points from here.
1043         (c_finish_return): Likewise.
1044         (c_start_case): Likewise.
1045         * c-common.c (warn_for_collisions_1): Use explicit location in
1046         warning.
1047         * c-parser.c (c_parser_condition): New. Call
1048         verify_sequence_points.
1049         (c_parser_paren_condition): Call c_parser_condition.
1050         (c_parser_for_statement): Call c_parser_condition.
1051
1052 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1053
1054         PR 36901
1055         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.  
1056         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
1057         Moved from diagnostic.h
1058         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
1059         DK_PERMERROR.
1060         (emit_diagnostic): New.
1061         (warning0, pedwarn0): Delete.
1062         (warning, warning_at, pedwarn, permerror): Return bool.  
1063         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
1064         Moved to diagnostic.c.
1065         (struct diagnostic_context): Use correct type for
1066         classify_diagnostic.
1067         (diagnostic_report_diagnostic): Update declaration.
1068         (emit_diagnostic): Declare.
1069         * errors.c (warning): Return bool.  
1070         * errors.h (warning): Update declaration.
1071         * toplev.h (warning0, pedwarn0): Delete.
1072         (warning, warning_at, pedwarn, permerror): Return bool.
1073         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
1074         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
1075         inform. Update all calls.
1076         (diagnose_mismatched_decls): Check return value of warning/pedwarn
1077         before giving informative note.
1078         (implicit_decl_warning): Likewise.  
1079         * c-typeck.c (build_function_call): Likewise.  
1080         * tree-sssa.c (warn_uninit): Likewise.  
1081         * builtins.c (gimplify_va_arg_expr): Likewise.
1082
1083 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1084
1085         PR 7651
1086         * doc/invoke.texi (-Wextra): Move warning from here...
1087         (-Wuninitialized): ... to here.
1088         
1089 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1090
1091         PR 28875
1092         * flags.h (set_Wunused): Delete
1093         * toplev.c (process_options): Handle Wunused flags here.
1094         * opts.c (maybe_warn_unused_parameter): Delete.
1095         (common_handle_option): Replace set_Wunused by warn_unused.
1096         (set_Wextra): Do not handle Wunused-parameter here.
1097         (set_Wunused): Delete.
1098         * c-opts.c (c_common_handle_option): Replace set_Wunused by
1099         warn_unused.
1100         * common.opt (Wunused): Add Var and Init.
1101         (Wunused-function): Likewise.
1102         (Wunused-label): Likewise.
1103         (Wunused-parameter): Likewise.
1104         (Wunused-value): Likewise.
1105         (Wunused-variable): Likewise.
1106         
1107 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
1108
1109         * doc/invoke.texi: Add cpu_type power7.
1110         * config.in (HAVE_AS_VSX): New.
1111         * config.gcc: Add cpu_type power7.
1112         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
1113         VSX instructions.
1114         * configure: Regenerate.
1115         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
1116         power5.
1117         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
1118         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
1119         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
1120
1121 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
1122
1123         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
1124         type to vectorize.builtin_conversion.
1125         (vectorizable_conversion): Likewise.
1126         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
1127         integral type as input.
1128         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
1129         FIX_TRUNC_EXPR.
1130         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
1131         and ALTIVEC_BUILTIN_VCTSXS.
1132         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
1133         formatting. 
1134
1135 2008-08-08  Richard Guenther  <rguenther@suse.de>
1136
1137         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
1138         (surely_varying_stmt_p): Calls are varying only if they are
1139         non-builtin and not indirect or have no result.
1140         (ccp_fold): Re-instantiate code before the tuples merge.
1141
1142 2008-08-08  Richard Guenther  <rguenther@suse.de>
1143
1144         PR tree-optimization/37056
1145         * gimple.h (gimple_assign_rhs_class): New helper function.
1146         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
1147         unary operations properly.
1148
1149 2008-08-07  Jan Hubicka  <jh@suse.cz>
1150
1151         * i386.h (ix86_size_cost): Declare.
1152         (ix86_cur_cost): New function macro.
1153         * i386.md (peepholes expanding size and splitters): Predicate by
1154         optimize_insn_for_speed_p.
1155         (peepholes reduce size and splitters): Predicate by
1156         optimize_insn_for_size_p.
1157         * i386.c (ix86_size_cost): Rename from ...
1158         (size_cost): This one.
1159         (override_options): Update.
1160         (decide_alg): Likewise.
1161         (ix86_expand_clear): Use RTL profile.
1162         (ix86_pad_returns): Use RTL profile.
1163
1164 2008-08-07  Jan Hubicka  <jh@suse.cz>
1165
1166         * recog.c (split_all_insns): Set RTL profile
1167         (peephole2_optimize): Likewise.
1168         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1169         * combine.c (combine_instructions): Likewise.
1170
1171 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1172
1173         * c-common.c (c_common_reswords): Also warn about keyword "bool".
1174
1175 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
1176         
1177         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
1178         value in a6 after the set_frame_ptr insn.
1179         
1180 2008-08-07  Richard Henderson  <rth@redhat.com>
1181
1182         PR debug/37033
1183         * gcc.c (cpp_options): Pass along -g*.
1184
1185 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
1186
1187         * config/arm/arm.c (output_move_neon): Update comment describing
1188         big-endian vector layout.
1189         (arm_assemble_integer): Do not handle big-endian NEON vectors
1190         specially.
1191         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
1192         neon_vget_lane<mode>_sext_internal,
1193         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
1194         element indices for big-endian.
1195
1196 2008-08-07  Richard Henderson  <rth@redhat.com>
1197
1198         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
1199         * configure, config.in: Rebuild.
1200         * debug.h (dwarf2out_do_cfi_asm): Declare.
1201         * c-cppbuiltin.c (c_cpp_builtins): Use it.
1202         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
1203         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
1204         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
1205
1206 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
1207
1208         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
1209         movv2si_internal): Combine into mov<mode>_internal.
1210         (movv2si_internal_2): Remove.
1211
1212 2008-08-07  Jan Hubicka  <jh@suse.cz>
1213
1214         PR target/37048
1215         * i386.md (single stringop patterns): Enable unconditionally. 
1216
1217 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1218
1219         PR target/36992
1220         * config/i386/emmintrin.h (_mm_move_epi64): Use
1221         __builtin_ia32_movq128.
1222
1223         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
1224         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
1225
1226         * config/i386/sse.md (sse2_movq128): New.
1227
1228         * doc/extend.texi: Document __builtin_ia32_movq128.
1229
1230 2008-08-07  Richard Guenther  <rguenther@suse.de>
1231
1232         PR middle-end/37042
1233         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
1234         pointers can access anything.
1235
1236 2008-08-06  Jan Hubicka  <jh@suse.cz>
1237
1238         * optabs.c (emit_unop_insn): Break out to ...
1239         (maybe_emit_unop_insn): ... this one.
1240         (expand_sfix_optab): Use maybe variant.
1241         * optabs.h (maybe_emit_unop_insn): Declare.
1242
1243         * i386.md (mov0 patterns): Enable by default.
1244         (FP conversion expanders): Disable expansion of code expanding
1245         sequences when instruction should be optimized for size.
1246         (single strinop patterns): Enable when optimizing for size.
1247         (string expanders): Disable expanding of code expanding sequences
1248         when optimizning instruction for size.
1249         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
1250         per BB basis.
1251         (ix86_fp_comparison_sahf_cost): Likewise.
1252         (ix86_expand_branch): Likewise.
1253         (ix86_expand_ashl_const): Likewise.
1254         (ix86_split_ashl): Likewise.
1255         (ix86_expand_strlen): Likewise.
1256         (ix86_emit_fp_unordered_jump): Likewie.
1257
1258 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1259
1260         * c-common.c: Fix typo.
1261         (c_common_reswords): Activate more C++ keyword warnings.
1262
1263         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
1264
1265 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1266
1267         PR 26785
1268         * diagnostic.c (permerror_at): New.
1269         * toplev.h (permerror_at): Declare.
1270         
1271 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
1272             Ira Rosen  <irar@il.ibm.com>
1273
1274         * tree-vect-transform.c (vect_model_simple_cost): Return
1275         immediately if stmt is pure SLP.
1276         (vect_model_store_cost): Ditto.
1277         (vect_model_load_cost): Ditto.
1278         (vectorizable_store): Remove PURE_SLP check before call
1279         to vect_model_store_cost.
1280         (vect_model_store_cost): When checking whether stmt describe
1281         strided access, add a check that it is not slp_node.
1282
1283 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1284
1285         PR 8715
1286         * c-common.c (warn_for_sign_compare): New. Handle separately the
1287         case that 'constant' is zero.
1288         * c-typeck.c (build_binary_op): Move code to c-common.c
1289         
1290 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1291
1292         * config/alpha/alpha.c (alpha_preferred_reload_class,
1293         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
1294         alpha_output_mi_thunk_osf): Avoid C++ keywords.
1295         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
1296         * config/arm/arm.md: Likewise.
1297         * config/avr/avr-protos.h (preferred_reload_class,
1298         test_hard_reg_class, avr_simplify_comparison_p,
1299         out_shift_with_cnt, class_max_nregs): Likewise.
1300         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
1301         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
1302         preferred_reload_class, test_hard_reg_class): Likewise.
1303         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
1304         bfin_memory_move_cost, bfin_secondary_reload,
1305         bfin_output_mi_thunk): Likewise.
1306         * config/crx/crx.c (crx_secondary_reload_class,
1307         crx_memory_move_cost): Likewise.
1308         * config/frv/frv-protos.h (frv_secondary_reload_class,
1309         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
1310         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
1311         frv_secondary_reload_class, frv_class_likely_spilled_p,
1312         frv_class_max_nregs): Likewise.
1313         * config/h8300/h8300.c (h8300_classify_operand,
1314         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
1315         Likewise.
1316         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
1317         * config/ia64/ia64.c (ia64_preferred_reload_class,
1318         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
1319         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
1320         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
1321         Likewise.
1322         * config/m68hc11/m68hc11.c (preferred_reload_class,
1323         m68hc11_memory_move_cost): Likewise.
1324         * config/mcore/mcore.c (mcore_secondary_reload_class,
1325         mcore_reload_class): Likewise.
1326         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
1327         mips_class_max_nregs, mips_cannot_change_mode_class,
1328         mips_preferred_reload_class, mips_secondary_reload_class,
1329         mips_output_mi_thunk): Likewise.
1330         * config/mmix/mmix.c (mmix_preferred_reload_class,
1331         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
1332         Likewise.
1333         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
1334         Likewise.
1335         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
1336         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
1337         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
1338         * config/rs6000/rs6000.c (paired_expand_vector_init,
1339         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
1340         compare_section_name, rs6000_memory_move_cost): Likewise.
1341         * config/s390/s390.c (s390_emit_compare_and_swap,
1342         s390_preferred_reload_class, s390_secondary_reload,
1343         legitimize_pic_address, legitimize_tls_address,
1344         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
1345         s390_class_max_nregs): Likewise.
1346         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
1347         * config/s390/s390.md: Likewise.
1348         * config/score/score-protos.h (score_secondary_reload_class,
1349         score_preferred_reload_class): Likewise.
1350         * config/score/score.c (score_preferred_reload_class,
1351         score_secondary_reload_class): Likewise.
1352         * config/score/score3.c (score3_output_mi_thunk,
1353         score3_preferred_reload_class, score3_secondary_reload_class,
1354         score3_hard_regno_mode_ok): Likewise.
1355         * config/score/score3.h (score3_preferred_reload_class,
1356         score3_secondary_reload_class): Likewise.
1357         * config/score/score7.c (score7_output_mi_thunk,
1358         score7_preferred_reload_class, score7_secondary_reload_class,
1359         score7_hard_regno_mode_ok): Likewise.
1360         * config/score/score7.h (score7_preferred_reload_class,
1361         score7_secondary_reload_class): Likewise.
1362         * config/sh/sh.c (prepare_move_operands, output_far_jump,
1363         output_branchy_insn, add_constant, gen_block_redirect,
1364         sh_insn_length_adjustment, sh_cannot_change_mode_class,
1365         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
1366         Likewise.
1367         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1368         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
1369         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
1370         xstormy16_preferred_reload_class): Likewise.
1371         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
1372         xtensa_expand_atomic, override_options,
1373         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
1374         Likewise.
1375         * reorg.c (try_merge_delay_insns): Likewise.
1376         * tree.c (merge_dllimport_decl_attributes): Likewise.
1377
1378         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
1379
1380 2008-08-06  Michael Matz  <matz@suse.de>
1381
1382         * Makefile.in (write_entries_to_file): Quote words.
1383         * gengtype.c: (read_input_line): Skip over leading white-space.
1384
1385 2008-08-06  Marc Gauthier  <marc@tensilica.com>
1386
1387         * config.gcc: Match more processor names for Xtensa.
1388         * configure.ac: Likewise.
1389         * doc/install.texi (Specific): Likewise.
1390         * configure: Regenerate.
1391
1392 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1393
1394         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
1395         * calls.c (avoid_likely_spilled_reg): Likewise.
1396         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
1397         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
1398         * config/i386/i386.c (ix86_expand_special_args_builtin,
1399         ix86_secondary_reload): Likewise.
1400         * except.c (struct eh_region, gen_eh_region_catch,
1401         remove_unreachable_regions, duplicate_eh_regions,
1402         assign_filter_values, build_post_landing_pads,
1403         sjlj_find_directly_reachable_regions, remove_eh_handler,
1404         reachable_next_level, foreach_reachable_handler,
1405         can_throw_internal_1, can_throw_external_1,
1406         collect_one_action_chain): Likewise.
1407         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
1408         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
1409         * function.c (update_temp_slot_address, instantiate_new_reg,
1410         instantiate_virtual_regs_in_rtx,
1411         instantiate_virtual_regs_in_insn): Likewise.
1412         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
1413         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
1414         gimplify_cleanup_point_expr): Likewise.
1415         * ipa-cp.c (ipcp_lattice_changed): Likewise.
1416         * passes.c (next_pass_1): Likewise.
1417         * print-tree.c (print_node_brief, print_node): Likewise.
1418         * profile.c (branch_prob): Likewise.
1419         * tree-dump.c (dump_register): Likewise.
1420         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
1421         Likewise.
1422         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
1423         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
1424         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
1425         copy_arguments_for_versioning, copy_static_chain): Likewise.
1426         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
1427         add_new_name_mapping, register_new_name_mapping): Likewise.
1428         * tree-mudflap.c (mf_xform_derefs): Likewise.
1429         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
1430         get_init_expr, combine_chains): Likewise.
1431         * tree-pretty-print.c (dump_generic_node): Likewise.
1432         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
1433         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
1434         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
1435         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
1436
1437 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1438
1439         PR middle-end/37010
1440         * calls.c (expand_call): Use the biggest preferred stack
1441         boundary.
1442
1443 2008-08-06  Michael Matz  <matz@suse.de>
1444
1445         PR target/36613
1446         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
1447         for reused reload, instead of overwriting them.
1448
1449 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1450
1451         PR middle-end/37009
1452         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
1453         for incoming stack boundary.
1454
1455         * function.c (assign_parm_find_entry_rtl): Update
1456         parm_stack_boundary.
1457
1458         * function.h (rtl_data): Add parm_stack_boundary.
1459
1460         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
1461         parm_stack_boundary for incoming stack boundary.
1462
1463 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
1464
1465         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
1466         for unrepresentable subregs or treat them as equal to other regs
1467         or subregs with the same register number.
1468
1469 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
1470
1471         PR middle-end/35432
1472         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
1473         if want_value.
1474
1475 2008-08-06  Jan Hubicka  <jh@suse.cz>
1476
1477         * predict.c (maybe_hot_frequency_p): When profile is absent, all
1478         frequencies might be hot.
1479
1480 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
1481
1482         * reload.c (find_reloads): Force constants into literal pool
1483         also if they are wrapped in a SUBREG.
1484
1485 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1486
1487         PR target/35659
1488         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
1489         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
1490         Don't allow predicated instructions for data speculation.
1491         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
1492         declaration.
1493
1494 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1495
1496         * haifa-sched.c (extend_global): Split to extend_global_data and
1497         extend_region_data.  Update all uses.
1498         (extend_all): Rename to extend_block_data.
1499
1500 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1501
1502         * sched-rgn.c (new_ready): Check if instruction can be
1503         speculatively scheduled before attempting speculation.
1504         (debug_rgn_dependencies): Remove wrongful assert.
1505
1506 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
1507
1508         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
1509         
1510 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
1511         
1512         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
1513         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
1514         va_size, and type_size.
1515         
1516 2008-08-04  Jason Merrill  <jason@redhat.com>
1517
1518         PR c++/37016
1519         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
1520         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
1521
1522 2008-08-05  Richard Henderson  <rth@redhat.com>
1523
1524         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
1525         * configure: Rebuild.
1526
1527 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1528
1529         PR tree-opt/37024
1530         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
1531         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
1532         is a conversion.
1533
1534 2008-08-05  Richard Henderson  <rth@redhat.com>
1535
1536         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
1537         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
1538         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
1539         * common.opt (fdwarf2-cfi-asm): New.
1540         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
1541         * config.in, configure: Rebuild.
1542         * dwarf2asm.c (dw2_asm_output_data_raw): New.
1543         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
1544         (dw2_force_const_mem): Externalize.
1545         * dwarf2asm.h: Update.
1546         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
1547         generate a real label.
1548         (output_cfi_directive): New.
1549         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
1550         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
1551         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
1552         and .cfi_lsda.
1553         (dwarf2out_end_epilogue): Emit .cfi_endproc.
1554         (output_loc_operands_raw, output_loc_sequence_raw): New.
1555         (output_cfa_loc_raw): New.
1556         
1557 2008-08-05  Paul Brook  <paul@codesourcery.com>
1558
1559         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
1560         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
1561         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
1562         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
1563         * config/arm/arm.h (TARGET_VFPD32): Define.
1564         (TARGET_VFP3): Use TARGET_VFPD32.
1565         (fputype): Add FPUTYPE_VFP3D16.
1566         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
1567         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
1568         * config/arm/arm-cores.def: Add cortex-r4f.
1569         * config/arm/arm-tune.md: Regenerate.
1570
1571 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1572
1573         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
1574         Reword some comments throughout the file.
1575
1576         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
1577         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
1578         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
1579         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
1580
1581         (MFC_START_ENABLE): Remove PPU-only define.
1582         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
1583         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
1584
1585         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
1586         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
1587         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
1588         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
1589         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
1590         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
1591         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
1592
1593         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
1594         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
1595         (mfc_sdcrt, mfc_sdcrtst): Likewise.
1596         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
1597
1598         (spu_read_machine_status): Fix typo.
1599
1600 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1601
1602         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
1603         SUBREG of multi-word hard register.
1604         * config/spu/spu.c (valid_subreg): Likewise.
1605         (adjust_operand): Handle SUBREGs of multi-word hard registers.
1606
1607 2008-08-04  Richard Guenther  <rguenther@suse.de>
1608
1609         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
1610         the candidate with the stripped base if that base is different
1611         from the original base even for offset zero.
1612
1613 2008-08-04  Richard Guenther  <rguenther@suse.de>
1614
1615         PR middle-end/36691
1616         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
1617         check for no_overflow.
1618
1619 2008-08-04  Richard Guenther  <rguenther@suse.de>
1620
1621         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
1622
1623 2008-08-04  Paul Brook  <paul@codesourcery.com>
1624
1625         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
1626         (arm_order_regs_for_local_alloc): New function.
1627         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
1628         prototype.
1629         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
1630
1631 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1632
1633         PR target/37012
1634         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
1635         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
1636         (ix86_expand_epilogue): Likewise.
1637
1638 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1639
1640         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
1641         in comments.
1642
1643 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
1644
1645         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
1646         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
1647         (*movv2sf_internal_rex64): Ditto.
1648
1649 2008-08-03  Jan Hubicka  <jh@suse.cz>
1650
1651         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
1652         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
1653         * expmed.c (expand_smod_pow2): Likewise.
1654
1655 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
1656
1657         PR target/36992
1658         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
1659         alternative 0 of operand 1.
1660         (*vec_concatv2di_rex64_sse): Ditto.
1661         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
1662         of operand 1.
1663         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
1664         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
1665         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
1666         (*movv2sf_internal_rex64): Ditto.
1667
1668 2008-08-02  Richard Guenther  <rguenther@suse.de>
1669
1670         PR target/35252
1671         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
1672         (ssedoublesizemode): New mode attribute.
1673         (sse_shufps): Call gen_sse_shufps_v4sf.
1674         (sse_shufps_1): Macroize.
1675         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
1676         (sse2_shufpd_1): Macroize.
1677         (vec_extract_odd, vec_extract_even): New expanders.
1678         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
1679         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
1680         * i386.c (ix86_expand_vector_init_one_nonzero): Call
1681         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
1682         (ix86_expand_vector_set): Likewise.
1683         (ix86_expand_reduc_v4sf): Likewise.
1684
1685 2008-08-01  Doug Kwan  <dougkwan@google.com>
1686
1687         * matrix-reorg.c: Re-enable all code.
1688         (struct malloc_call_data): Change CALL_STMT to gimple type.
1689         (collect_data_for_malloc_call): Tuplify.
1690         (struct access_site_info): Change STMT to gimple type.
1691         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
1692         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
1693         (struct free_info): Change STMT to gimple type.
1694         (struct matrix_access_phi_node):  Change PHI to gimple type.
1695         (get_inner_of_cast_expr): Remove.
1696         (may_flatten_matrices_1): Tuplify.
1697         (may_flatten_matrices): Ditto.
1698         (mark_min_matrix_escape_level): Ditto.
1699         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
1700         (ssa_accessed_in_call_rhs): New
1701         (ssa_accessed_in_assign_rhs): New
1702         (record_access_alloc_site_info): Tuplify.
1703         (add_allocation_site): Ditto.
1704         (analyze_matrix_allocation_site): Ditto.
1705         (analyze_transpose): Ditto.
1706         (get_index_from_offset): Ditto.
1707         (update_type_size): Ditto.
1708         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
1709         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
1710         (analyze_accesses_for_phi_node): Tuplify.
1711         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
1712         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
1713         (analyze_matrix_accesses): Tuplify.
1714         (check_var_data): New call-back type for check_var_notmodified_p.
1715         (check_var_notmodified_p): Tuplify and use call-back struct to
1716         return statement found.
1717         (can_calculate_expr_before_stmt): Factor out statement related code
1718         into ...
1719         (can_calculate_stmt_before_stmt): New.
1720         (check_allocation_function): Tuplify.
1721         (find_sites_in_func): Ditto.
1722         (record_all_accesses_in_func): Ditto.
1723         (transform_access_sites): Ditto.
1724         (transform_allocation_sites): Ditto.
1725         (matrix_reorg): Re-enable.
1726         (gate_matrix_reorg): Re-enable.
1727
1728 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
1729
1730         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
1731         for labels for which it hasn't been set yet.  If it has been set,
1732         stop walking insns and continue with next worklist item.
1733         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
1734         if the only BARRIER is at the very end of a function.
1735
1736 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1737
1738         * cfgexpand.c (expand_stack_alignment): Assert that
1739         stack_realign_drap and drap_rtx must match.
1740
1741         * function.c (instantiate_new_reg): If DRAP is used to realign
1742         stack, replace virtual_incoming_args_rtx with internal arg
1743         pointer.
1744
1745 2008-08-01  Richard Guenther  <rguenther@suse.de>
1746
1747         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
1748         loop information only if we initialized it.
1749         (execute_pre): Call fini_pre with in_fre.
1750         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
1751         if we do not unroll because we hit max-completely-peeled-insns.
1752         Use our estimation for consistency, do allow shrinking.
1753
1754 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1755
1756         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
1757         with MIN_STACK_BOUNDARY.
1758         (ix86_update_stack_boundary): Likewise.
1759         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
1760         STACK_BOUNDARY.
1761
1762         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
1763         (MIN_STACK_BOUNDARY): This.
1764
1765 2008-08-01  Richard Guenther  <rguenther@suse.de>
1766
1767         PR middle-end/36997
1768         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
1769
1770 2008-08-01  Richard Guenther  <rguenther@suse.de>
1771
1772         PR tree-optimization/36988
1773         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
1774         do not matter if that doesn't change volatile qualification.
1775
1776 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
1777
1778         * configure.ac: Do not generate libada-mk.  Do not subst
1779         host_cc_for_libada.
1780         * libada-mk.in: Remove.
1781         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
1782         * configure: Regenerate.
1783
1784 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
1785
1786         * tree-pass.h: Added comment about not dumping passes with name
1787         starting with star in struct opt_pass.
1788         * passes.c (register_dump_files_1): Don't do dump for a pass with
1789         name starting with star.
1790         * doc/passes.texi (Pass manager): Mention pass names and special
1791         meaning of star prefix to avoid dump.
1792
1793 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
1794
1795         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
1796         to MIPS64r2.
1797         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
1798         (ISA_MIPS64R2): New macro.
1799         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
1800         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
1801         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
1802         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
1803         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
1804         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
1805         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
1806         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
1807         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
1808         Move up to keep list alphabetically sorted.
1809         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
1810         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
1811         processor.
1812         * doc/invoke.texi (MIPS Options): Add -mips64r2.
1813         (-march=@var{arch}): Add mips64r2.
1814
1815 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1816
1817         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
1818
1819 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
1820
1821         * expr.c (expand_assignment): Check for complete type.
1822
1823 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1824
1825         PR debug/36977
1826         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
1827
1828         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
1829         for stack alignment.
1830
1831         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
1832
1833 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
1834
1835         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
1836         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
1837
1838 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
1839
1840         PR rtl-optimization/36419
1841         * dwarf2out.c (barrier_args_size): New variable.
1842         (compute_barrier_args_size, compute_barrier_args_size_1): New
1843         functions.
1844         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
1845         if not called yet in the current function, use barrier_args_size
1846         array to find the new args_size value.
1847         (dwarf2out_frame_debug): Free and clear barrier_args_size.
1848
1849 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1850
1851         PR debug/36980
1852         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
1853         rule 19.
1854
1855 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1856
1857         PR debug/36976
1858         * dwarf2out.c (dwarf2out_args_size_adjust): New.
1859         (dwarf2out_stack_adjust): Use it.
1860         (dwarf2out_frame_debug_expr): Likewise.
1861
1862 2008-07-31  Richard Guenther  <rguenther@suse.de>
1863
1864         PR tree-optimization/36978
1865         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
1866         the generated condition.
1867
1868 2008-07-31  Richard Guenther  <rguenther@suse.de>
1869
1870         * passes.c (init_optimization_passes): Always call
1871         pass_early_warn_uninitialized.
1872         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
1873         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
1874         * doc/passes.texi (Warn for uninitialized variables): Adjust.
1875
1876 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
1877
1878         PR c/36970
1879         * builtins.c (maybe_emit_free_warning): New function.
1880         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
1881         maybe_emit_free_warning for BUILT_IN_FREE.
1882
1883         PR debug/36278
1884         * dwarf2out.c (get_context_die): New function.
1885         (force_decl_die, force_type_die): Use it.
1886         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
1887         returns NULL, force generation of DW_TAG_typedef and put that into
1888         DW_AT_import.
1889
1890         PR preprocessor/36649
1891         * c-pch.c (c_common_read_pch): Save and restore
1892         line_table->trace_includes across PCH restore.
1893
1894 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
1895
1896         PR ada/36554
1897         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
1898
1899 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
1900
1901         PR 36974
1902         * final.c (call_from_call_insn): Handle COND_EXEC.
1903
1904 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
1905
1906         * builtins.c (std_gimplify_va_arg_expr): Replace
1907         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
1908         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1909
1910 2008-07-30  Joey Ye  <joey.ye@intel.com>
1911             H.J. Lu  <hongjiu.lu@intel.com>
1912
1913         * builtins.c (expand_builtin_setjmp_receiver): Replace
1914         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
1915         (expand_builtin_apply_args_1): Likewise.
1916         (expand_builtin_longjmp): Need DRAP for stack alignment.
1917         (expand_builtin_apply): Likewise.
1918
1919         * caller-save.c (setup_save_areas): Call assign_stack_local_1
1920         instead of assign_stack_local to allow alignment reduction.
1921
1922         * calls.c (emit_call_1): Need DRAP for stack alignment if
1923         return pops.
1924         (expand_call): Replace virtual_incoming_args_rtx with
1925         crtl->args.internal_arg_pointer.
1926         * stmt.c (expand_nl_goto_receiver): Likewise.
1927
1928         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
1929         alignment and store to stack_alignment_estimated and
1930         max_used_stack_slot_alignment.
1931         (expand_one_var): Likewise.
1932         (expand_stack_alignment): New function.
1933         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
1934         and stack_alignment_estimated fields in rtl_data.  Call
1935         expand_stack_alignment at end.
1936
1937         * defaults.h (INCOMING_STACK_BOUNDARY): New.
1938         (MAX_STACK_ALIGNMENT): Likewise.
1939         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
1940         (SUPPORTS_STACK_ALIGNMENT): Likewise.
1941
1942         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
1943         stack alignment when generating virtual registers.
1944
1945         * function.c (assign_stack_local): Renamed to ...
1946         (assign_stack_local_1): This.  Add a parameter to indicate
1947         if it is OK to reduce alignment.
1948         (assign_stack_local): Use it.
1949         (instantiate_new_reg): Instantiate virtual incoming args rtx
1950         to vDRAP if stack realignment and DRAP is needed.
1951         (assign_parms): Collect parameter/return type alignment and
1952         contribute to stack_alignment_estimated.
1953         (locate_and_pad_parm): Likewise.
1954         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
1955         with crtl->args.internal_arg_pointer.
1956
1957         * function.h (rtl_data): Add new field drap_reg,
1958         max_used_stack_slot_alignment, stack_alignment_estimated,
1959         stack_realign_needed, need_drap, stack_realign_processed and
1960         stack_realign_finalized.
1961         (stack_realign_fp): New macro.
1962         (stack_realign_drap): Likewise.
1963
1964         * global.c (compute_regsets): Frame pointer is needed when
1965         stack is realigned.  Can eliminate frame pointer when stack is
1966         realigned and dynamic realigned argument pointer isn't used.
1967
1968         * reload1.c (update_eliminables):  Frame pointer is needed
1969         when stack is realigned.
1970         (init_elim_table): Can eliminate frame pointer when stack is
1971         realigned and dynamic realigned argument pointer isn't used.
1972
1973         * rtl.h (assign_stack_local_1): Declare new funtion.
1974
1975         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
1976         (TARGET_GET_DRAP_RTX): Likewise.
1977         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
1978         TARGET_GET_DRAP_RTX.
1979
1980         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
1981
1982         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
1983         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
1984
1985 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
1986             H.J. Lu  <hongjiu.lu@intel.com>
1987
1988         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
1989         vdrap_reg, stack_realign and drap_reg_saved.
1990         (add_cfi): Don't allow redefining CFA when DRAP is used.
1991         (reg_save): Handle stack alignment.
1992         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
1993         alignment.  Don't generate DWARF information for (set fp sp)
1994         when DRAP is used.
1995         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
1996         to INVALID_REGNUM.
1997         (int_loc_descriptor): Move prototype forward.  Also define if
1998         DWARF2_UNWIND_INFO is true.
1999         (output_cfa_loc): Handle DW_CFA_expression.
2000         (build_cfa_aligned_loc): New.
2001         (based_loc_descr): Update assert for stack realign.  For local
2002         variables, use sp+offset when stack is aligned without drap and
2003         fp+offset when stack is aligned with drap.  For arguments, use
2004         cfa+offset when drap is used to align stack.
2005
2006 2008-07-30  Joey Ye  <joey.ye@intel.com>
2007             H.J. Lu  <hongjiu.lu@intel.com>
2008
2009         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
2010         Break long line.
2011         (ix86_gen_andsp): New.
2012         (ix86_user_incoming_stack_boundary): Likewise.
2013         (ix86_default_incoming_stack_boundary): Likewise.
2014         (ix86_incoming_stack_boundary): Likewise.
2015         (ix86_can_eliminate): Likewise.
2016         (find_drap_reg): Likewise.
2017         (ix86_update_stack_boundary): Likewise.
2018         (ix86_get_drap_rtx): Likewise.
2019         (ix86_finalize_stack_realign_flags): Likewise.
2020         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
2021         (TARGET_GET_DRAP_RTX): Likewise.
2022         (override_options): Overide option value for new options.
2023         (ix86_function_ok_for_sibcall): Remove check for
2024         force_align_arg_pointer.
2025         (ix86_handle_cconv_attribute): Likewise.
2026         (ix86_function_regparm): Likewise.
2027         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
2028         (ix86_va_start): Replace virtual_incoming_args_rtx with
2029         crtl->args.internal_arg_pointer.
2030         (ix86_select_alt_pic_regnum): Check DRAP register.
2031         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
2032         (ix86_compute_frame_layout): Compute frame layout wrt stack
2033         realignment.
2034         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
2035         (ix86_expand_prologue): Decide if stack realignment is needed
2036         and generate prologue code accordingly.
2037         (ix86_expand_epilogue): Generate epilogue code wrt stack
2038         realignment is really needed or not.
2039         
2040         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
2041         (ABI_STACK_BOUNDARY): Likewise.
2042         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
2043         (STACK_REALIGN_DEFAULT): Likewise.
2044         (INCOMING_STACK_BOUNDARY): Likewise.
2045         (MAX_STACK_ALIGNMENT): Likewise.
2046         (ix86_incoming_stack_boundary): Likewise.
2047         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
2048         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
2049         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
2050         (machine_function): Remove force_align_arg_pointer.
2051
2052         * config/i386/i386.md (BX_REG): New.
2053         (R13_REG): Likewise.
2054
2055         * config/i386/i386.opt (mforce_drap): New.
2056         (mincoming-stack-boundary): Likewise.
2057         (mstackrealign): Add Init(-1).
2058
2059         * config/i386/i386-protos.h (ix86_can_eliminate): New
2060
2061 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
2062
2063         * doc/extend.texi: Update force_align_arg_pointer.
2064
2065         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
2066         -mstackrealign.
2067
2068         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
2069         (INCOMING_STACK_BOUNDARY): Likewise.
2070         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
2071         (TARGET_GET_DRAP_RTX): Likewise.
2072
2073 2008-07-30  Andreas Schwab  <schwab@suse.de>
2074
2075         PR rtl-optimization/36929
2076         * dse.c (replace_inc_dec): Use emit_insn_before instead of
2077         add_insn_before and fix argument order.
2078         (replace_inc_dec_mem): Handle NULL rtx.
2079
2080 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
2081
2082         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
2083         function.
2084         (arm_compute_initial_elimination_offset): Use it.
2085         (arm_compute_save_reg_mask): Include static chain save slot when
2086         calculating alignment.
2087         (arm_get_frame_offsets): Ditto.
2088         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
2089         that we can use to decrement the stack when the stack decrement
2090         could be too big for an immediate value in a single insn.
2091         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
2092
2093 2008-07-30  Richard Guenther  <rguenther@suse.de>
2094
2095         PR tree-optimization/36967
2096         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
2097         Release defs of statements we remove.
2098
2099 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
2100
2101         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
2102         instead of NULL_RTVEC.
2103
2104 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
2105
2106         PR target/35866
2107
2108         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
2109         vector modes.
2110
2111 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
2112
2113         * final.c (call_from_call_insn): New.
2114         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
2115
2116 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
2117
2118         * configure.ac: Substitute ADA_CFLAGS.
2119         * configure: Regenerate.
2120         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
2121         * Makefile.in: Remove mention of X_* variables.
2122         * config/pa/x-ada-hpux10: Remove.
2123         * config/pa/x-ada: Remove.
2124
2125         * doc/fragments.texi: Update.
2126
2127 2008-07-30  Olivier Hainque  <hainque@adacore.com>
2128
2129         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
2130         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
2131         __dso_handle explicitly here.
2132
2133 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2134
2135         PR 34389
2136         * c-typeck.c (build_binary_op): Encapsulate code into...
2137         * c-common.c (shorten_binary_op): ...this new function.
2138         (conversion_warning): Use the new function. Handle non-negative
2139         constant in bitwise-and.
2140         * c-common.h (shorten_binary_op): Declare.
2141
2142 2008-07-30  Olivier Hainque  <hainque@adacore.com>
2143
2144         * scan.c (make_sstring_space): Add explicit conversions of
2145         allocator's return value.
2146         * fix-header.c (recognized_function): Likewise.
2147
2148 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2149
2150         * doc/cpp.texi: Update to GFDL 1.2.
2151         * doc/gcc.texi: Do not list GPL as Invariant Section.
2152         * doc/gccint.texi: Likewise.  Update copyright years.
2153         * doc/install.texi: Update copyright years.
2154
2155 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
2156
2157         PR target/36955
2158         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
2159         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
2160
2161 2008-07-29  Jan Hubicka  <jh@suse.cz>
2162
2163         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
2164         (grokdeclarator): Likewise.
2165         * langhooks.c (lhd_warn_unused_global_decl): Use
2166         DECL_DECLARED_INLINE_P.
2167         * print-tree.c (print_node): Remove DECL_INLINE check.
2168
2169 2008-07-29  Richard Guenther  <rguenther@suse.de>
2170
2171         PR tree-optimization/36945
2172         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
2173         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
2174         Record invariant addresses un-decomposed.
2175         (copy_reference_ops_from_call): Record reference call
2176         arguments properly.  Simplify.
2177         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
2178         helper split out from ...
2179         (create_component_ref_by_pieces): ... here.  Simplify.
2180         Prepare for recursive invocation for call arguments.
2181         (create_expression_by_pieces): Adjust call to
2182         create_component_ref_by_pieces.
2183         (compute_avail): Process operand 2 of reference ops.
2184
2185 2008-07-29  Richard Guenther  <rguenther@suse.de>
2186
2187         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
2188
2189 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
2190
2191         * c-format.c (check_format_types): Revert unwanted checkin.
2192
2193 2008-07-29  Jan Hubicka  <jh@suse.cz>
2194
2195         * flags.h (flag_really_no_inline): Remove.
2196         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
2197         * toplev.c (flag_really_no_inline): Remove.
2198         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
2199         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
2200         (cgraph_decide_inlining_incrementally): Likewise.
2201         (compute_inline_parameters): Likewise.
2202         * opts.c (decode_options): Simplify.
2203         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
2204         * common.opt (finline): Initialize to 1.
2205         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
2206
2207 2008-07-29  Jan Hubicka  <jh@suse.cz>
2208
2209         * predict.c (always_optimize_for_size_p): New function.
2210         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
2211         optimize_edge_for_size_p, optimize_edge_for_speed_p,
2212         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
2213         functions.
2214         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
2215         * function.c (prepare_function_start): Set default profile.
2216         * function.h (rtl_data): Add maybe_hot_insn_p.
2217         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
2218         (construct_exit_block): Likewise.
2219         (tree_expand_cfg): Likewise.
2220         * basic-block.h
2221         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
2222         optimize_edge_for_size_p, optimize_edge_for_speed_p,
2223         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
2224         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
2225         Declare.
2226
2227 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2228
2229         PR 34985
2230         * c-decl.c (merge_decls): Merge USED flags.
2231
2232 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2233
2234         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
2235         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
2236         next_stack, lab_false and lab_over trees.
2237
2238 2008-07-28  Richard Guenther  <rguenther@suse.de>
2239
2240         PR tree-optimization/36957
2241         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
2242         (useless_type_conversion_p): Remove.
2243         (types_compatible_p): Remove.
2244         * gimple.h (tree_ssa_useless_type_conversion): Declare.
2245         (useless_type_conversion_p): Declare.
2246         (types_compatible_p): Declare.
2247         (gimple_expr_type): Return the base type only if it is
2248         trivially convertible to the subtype.
2249
2250 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
2251
2252         * configure.ac: Use the m4_do macro to concatenate the warnings into
2253         one string in ACX_PROG_CC_WARNING_OPTS,
2254         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
2255         * configure: Regenerate.
2256
2257 2008-07-28  Richard Guenther  <rguenther@suse.de>
2258
2259         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
2260         (insert_fake_stores): Remove.
2261         (realify_fake_stores): Likewise.
2262         (execute_pre): Remove dead code.
2263         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
2264         (find_func_aliases): Deal with it here instead.
2265         Re-enable gcc_unreachable call.
2266
2267 2008-07-28  Richard Guenther  <rguenther@suse.de>
2268
2269         Merge from gimple-tuples-branch.
2270
2271         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
2272         * gimple.def: New file.
2273         * gsstruct.def: Likewise.
2274         * gimple-iterator.c: Likewise.
2275         * gimple-pretty-print.c: Likewise.
2276         * tree-gimple.c: Removed.  Merged into ...
2277         * gimple.c: ... here.  New file.
2278         * tree-gimple.h: Removed.  Merged into ...
2279         * gimple.h: ... here.  New file.
2280
2281         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
2282         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
2283         --enable-checking=gimple flag.
2284         * config.in: Likewise.
2285         * configure: Regenerated.
2286
2287         * tree-ssa-operands.h: Tuplified.
2288         * tree-vrp.c: Likewise.
2289         * tree-loop-linear.c: Likewise.
2290         * tree-into-ssa.c: Likewise.
2291         * tree-ssa-loop-im.c: Likewise.
2292         * tree-dump.c: Likewise.
2293         * tree-complex.c: Likewise.
2294         * cgraphbuild.c: Likewise.
2295         * tree-ssa-threadupdate.c: Likewise.
2296         * tree-ssa-loop-niter.c: Likewise.
2297         * tree-pretty-print.c: Likewise.
2298         * tracer.c: Likewise.
2299         * gengtype.c: Likewise.
2300         * tree-loop-distribution.c: Likewise.
2301         * tree-ssa-loop-unswitch.c: Likewise.
2302         * cgraph.c: Likewise.
2303         * cgraph.h: Likewise.
2304         * tree-ssa-loop-manip.c: Likewise.
2305         * value-prof.c: Likewise.
2306         * tree-ssa-loop-ch.c: Likewise.
2307         * tree-tailcall.c: Likewise.
2308         * value-prof.h: Likewise.
2309         * tree.c: Likewise.
2310         * tree.h: Likewise.
2311         * tree-pass.h: Likewise.
2312         * ipa-cp.c: Likewise.
2313         * tree-scalar-evolution.c: Likewise.
2314         * tree-scalar-evolution.h: Likewise.
2315         * target.h: Likewise.
2316         * lambda-mat.c: Likewise.
2317         * tree-phinodes.c: Likewise.
2318         * diagnostic.h: Likewise.
2319         * builtins.c: Likewise.
2320         * tree-ssa-alias-warnings.c: Likewise.
2321         * cfghooks.c: Likewise.
2322         * fold-const.c: Likewise.
2323         * cfghooks.h: Likewise.
2324         * omp-low.c: Likewise.
2325         * tree-ssa-dse.c: Likewise.
2326         * ipa-reference.c: Likewise.
2327         * tree-ssa-uncprop.c: Likewise.
2328         * toplev.c: Likewise.
2329         * tree-gimple.c: Likewise.
2330         * tree-gimple.h: Likewise.
2331         * tree-chrec.c: Likewise.
2332         * tree-chrec.h: Likewise.
2333         * tree-ssa-sccvn.c: Likewise.
2334         * tree-ssa-sccvn.h: Likewise.
2335         * cgraphunit.c: Likewise.
2336         * tree-ssa-copyrename.c: Likewise.
2337         * tree-ssa-ccp.c: Likewise.
2338         * tree-ssa-loop-ivopts.c: Likewise.
2339         * tree-nomudflap.c: Likewise.
2340         * tree-call-cdce.c: Likewise.
2341         * ipa-pure-const.c: Likewise.
2342         * c-format.c: Likewise.
2343         * tree-stdarg.c: Likewise.
2344         * tree-ssa-math-opts.c: Likewise.
2345         * tree-ssa-dom.c: Likewise.
2346         * tree-nrv.c: Likewise.
2347         * tree-ssa-propagate.c: Likewise.
2348         * ipa-utils.c: Likewise.
2349         * tree-ssa-propagate.h: Likewise.
2350         * tree-ssa-alias.c: Likewise.
2351         * gimple-low.c: Likewise.
2352         * tree-ssa-sink.c: Likewise.
2353         * ipa-inline.c: Likewise.
2354         * c-semantics.c: Likewise.
2355         * dwarf2out.c: Likewise.
2356         * expr.c: Likewise.
2357         * tree-ssa-loop-ivcanon.c: Likewise.
2358         * predict.c: Likewise.
2359         * tree-ssa-loop.c: Likewise.
2360         * tree-parloops.c: Likewise.
2361         * tree-ssa-address.c: Likewise.
2362         * tree-ssa-ifcombine.c: Likewise.
2363         * matrix-reorg.c: Likewise.
2364         * c-decl.c: Likewise.
2365         * tree-eh.c: Likewise.
2366         * c-pretty-print.c: Likewise.
2367         * lambda-trans.c: Likewise.
2368         * function.c: Likewise.
2369         * langhooks.c: Likewise.
2370         * ebitmap.h: Likewise.
2371         * tree-vectorizer.c: Likewise.
2372         * function.h: Likewise.
2373         * langhooks.h: Likewise.
2374         * tree-vectorizer.h: Likewise.
2375         * ipa-type-escape.c: Likewise.
2376         * ipa-type-escape.h: Likewise.
2377         * domwalk.c: Likewise.
2378         * tree-if-conv.c: Likewise.
2379         * profile.c: Likewise.
2380         * domwalk.h: Likewise.
2381         * tree-data-ref.c: Likewise.
2382         * tree-data-ref.h: Likewise.
2383         * tree-flow-inline.h: Likewise.
2384         * tree-affine.c: Likewise.
2385         * tree-vect-analyze.c: Likewise.
2386         * c-typeck.c: Likewise.
2387         * gimplify.c: Likewise.
2388         * coretypes.h: Likewise.
2389         * tree-ssa-phiopt.c: Likewise.
2390         * calls.c: Likewise.
2391         * tree-ssa-coalesce.c: Likewise.
2392         * tree.def: Likewise.
2393         * tree-dfa.c: Likewise.
2394         * except.c: Likewise.
2395         * except.h: Likewise.
2396         * cfgexpand.c: Likewise.
2397         * tree-cfgcleanup.c: Likewise.
2398         * tree-ssa-pre.c: Likewise.
2399         * tree-ssa-live.c: Likewise.
2400         * tree-sra.c: Likewise.
2401         * tree-ssa-live.h: Likewise.
2402         * tree-predcom.c: Likewise.
2403         * lambda.h: Likewise.
2404         * tree-mudflap.c: Likewise.
2405         * ipa-prop.c: Likewise.
2406         * print-tree.c: Likewise.
2407         * tree-ssa-copy.c: Likewise.
2408         * ipa-prop.h: Likewise.
2409         * tree-ssa-forwprop.c: Likewise.
2410         * ggc-page.c: Likewise.
2411         * c-omp.c: Likewise.
2412         * tree-ssa-dce.c: Likewise.
2413         * tree-vect-patterns.c: Likewise.
2414         * tree-ssa-ter.c: Likewise.
2415         * tree-nested.c: Likewise.
2416         * tree-ssa.c: Likewise.
2417         * lambda-code.c: Likewise.
2418         * tree-ssa-loop-prefetch.c: Likewise.
2419         * tree-inline.c: Likewise.
2420         * tree-inline.h: Likewise.
2421         * tree-iterator.c: Likewise.
2422         * tree-optimize.c: Likewise.
2423         * tree-ssa-phiprop.c: Likewise.
2424         * tree-vect-transform.c: Likewise.
2425         * tree-object-size.c: Likewise.
2426         * tree-outof-ssa.c: Likewise.
2427         * cfgloop.c: Likewise.
2428         * system.h: Likewise.
2429         * tree-profile.c: Likewise.
2430         * cfgloop.h: Likewise.
2431         * c-gimplify.c: Likewise.
2432         * c-common.c: Likewise.
2433         * tree-vect-generic.c: Likewise.
2434         * tree-flow.h: Likewise.
2435         * c-common.h: Likewise.
2436         * basic-block.h: Likewise.
2437         * tree-ssa-structalias.c: Likewise.
2438         * tree-switch-conversion.c: Likewise.
2439         * tree-ssa-structalias.h: Likewise.
2440         * tree-cfg.c: Likewise.
2441         * passes.c: Likewise.
2442         * ipa-struct-reorg.c: Likewise.
2443         * ipa-struct-reorg.h: Likewise.
2444         * tree-ssa-reassoc.c: Likewise.
2445         * cfgrtl.c: Likewise.
2446         * varpool.c: Likewise.
2447         * stmt.c: Likewise.
2448         * tree-ssanames.c: Likewise.
2449         * tree-ssa-threadedge.c: Likewise.
2450         * langhooks-def.h: Likewise.
2451         * tree-ssa-operands.c: Likewise.
2452         * config/alpha/alpha.c: Likewise.
2453         * config/frv/frv.c: Likewise.
2454         * config/s390/s390.c: Likewise.
2455         * config/m32c/m32c.c: Likewise.
2456         * config/m32c/m32c-protos.h: Likewise.
2457         * config/spu/spu.c: Likewise.
2458         * config/sparc/sparc.c: Likewise.
2459         * config/i386/i386.c: Likewise.
2460         * config/sh/sh.c: Likewise.
2461         * config/xtensa/xtensa.c: Likewise.
2462         * config/stormy16/stormy16.c: Likewise.
2463         * config/ia64/ia64.c: Likewise.
2464         * config/rs6000/rs6000.c: Likewise.
2465         * config/pa/pa.c: Likewise.
2466         * config/mips/mips.c: Likewise.
2467
2468 2008-07-28  Simon Baldwin  <simonb@google.com>
2469
2470         * c-pragma.c (handle_pragma_message): New function.
2471         (init_pragma): Register handle_pragma_message.
2472         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
2473         documentation.
2474
2475 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
2476
2477         PR tree-optimization/35252
2478         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
2479         REALPART_EXPR to be considered as same load operation.
2480
2481 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
2482
2483         PR tree-optimization/36830
2484         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
2485         (expressions_equal_p): Return false if only one operand is null.
2486
2487 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
2488
2489         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
2490         version requirements.
2491
2492 2008-07-26  Olivier Hainque  <hainque@adacore.com>
2493
2494         * collect2.c (symkind): New enum.  Symbol kinds we care about.
2495         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
2496         code and head comment accordingly.
2497         (scan_prog_file): Use symkind names instead of bare integers.
2498
2499 2008-07-25  Jan Hubicka  <jh@suse.cz>
2500
2501         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
2502         DECL_INLINE.
2503         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
2504         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
2505         * dojump.c (clear_pending_stack_adjust): Likewise.
2506         * print-tree.c (print_node): Ignore DECL_INLINE.
2507         * tree-inline.c (inlinable_function_p): Likewise.
2508
2509 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
2510
2511         * doc/extend.texi (hot attribute): Document that the hot attribute
2512         turns on -O3 for some ports.
2513         (cold attribute): Document that the cold attribute turns on -Os
2514         for some ports
2515
2516         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
2517         reflect function specific option support.
2518
2519         * target.h (struct target_option_hooks): Add fields to say whether
2520         the cold attribute implies -Os and the hot attribute implies -O3.
2521
2522         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
2523         By default, do not turn on -Os for cold functions.
2524         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
2525         not turn on -O3 for hot functions.
2526
2527         * c-common.c (handle_hot_attribute): Use target hook to determine
2528         if hot functions should enable -O3.
2529         (handle_cold_attribute): Use target hook to determine if cold
2530         functions should enable -Os.
2531
2532         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
2533         (override_options): Move disable scheduling to
2534         optimization_options.
2535         (optimization_options): Disable scheduling here, not
2536         override_options.
2537         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2538         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2539
2540         * config/ia64/ia64.c (ia64_override_options): Move setting
2541         scheduling flags to ia64_optimization_options.
2542         (ia64_optimization_options): Disable scheduling options here, and
2543         not in ia64_override_options.
2544         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2545         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2546
2547 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
2548
2549         PR target/36936
2550         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
2551
2552 2008-07-25  Martin Jambor  <mjambor@suse.cz>
2553
2554         PR tree-optimization/36926
2555         * ipa-prop.c (ipa_analyze_call_uses): Call
2556         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
2557
2558 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
2559
2560         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
2561         movv2si_internal): Add mem = reg alternative.
2562
2563 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
2564
2565         PR bootstrap/36918
2566         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
2567         DEFAULT_PCC_STRUCT_RETURN to 127.
2568
2569 2008-07-24  Jan Hubicka  <jh@suse.cz>
2570
2571         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
2572         (build_cgraph_edges): Likewise.
2573         * cgraph.c (cgraph_node): Do not update assembler hash.
2574         (cgraph_remove_node): Drop non-unit-at-a-time code.
2575         * tree-pass.h (pass_O0_always_inline): Remove.
2576         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
2577         * toplev.c (process_options): Flag unit-at-a-time does not imply
2578         no section anchors.
2579         * cgraphunit.c: Update comments.
2580         (decide_is_function_needed): Drop non-unit-at-a-time mode.
2581         (cgraph_assemble_pending_functions): Remove.
2582         (cgraph_reset_node): Drop non-unit-at-a-time code.
2583         (cgraph_finalize_function): Likewise.
2584         (cgraph_analyze_function): Likewise.
2585         (cgraph_finalize_compilation_unit): Likewise.
2586         (cgraph_expand_function): Likewise.
2587         (cgraph_optimize): Likesise.
2588         (save_inline_function_body): Likewise.
2589         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
2590         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
2591         * ipa-inline.c: Update comments.
2592         (enum inlining_mode): remove INLINE_SPEED.
2593         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
2594         (cgraph_mark_inline_edge): Likewise.
2595         (try_inline): Likewise.
2596         (cgraph_decide_inlining_incrementally): Likewise.
2597         (cgraph_gate_inlining): Remove.
2598         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
2599         (cgraph_gate_early_inlining): Likewise.
2600         (gate_inline_passes): Remove.
2601         (pass_inline_parameters, pass_ipa_inline): Remove gates.
2602         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
2603         pass_O0_always_inline): Remove.
2604         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
2605         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
2606         * opts.c (no_unit_at_a_time_default): Remove.
2607         (decode_options): Remove flag_unit_at_a_time reset and warning.
2608         * opts.h (no_unit_at_a_time_default): Remove.
2609         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
2610         early in GNU dialect.
2611         (merge_decls): Update comment; drop unit-at-a-time check.
2612         (finish_decl): Likewise.
2613         (grok_declaration): Remove flag_inline_trees code.
2614         (finish_functions): Return on function returning non-void on all
2615         statics.
2616         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
2617         * cfgexpand.c (expand_one_static_var): Remove.
2618         (expand_one_var): Remove expand_one_static_var call.
2619         (expand_used_vars_for_block): Remove flag_unit_a_time check.
2620         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
2621         and flag_unit_at_a-time compatibility checks.
2622         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
2623         * tree-inline.c (flag_inline_trees): Remove.
2624         (inlinable_function_p): Don't check it.
2625         (expand_call_inline): Remove non-unit-at-a-time code.
2626         * tree-inline.h (flag_inline_trees): Remove.
2627         * tree-optimize.c (execute_early_local_optimizations): Remove
2628         unit-at-a-time checks.
2629         (tree_rest_of_compilation): Likewise.
2630         * combine.c (setup_incoming_promotions): Likewise.
2631         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
2632         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
2633         * passes.c (pass_inline_parameters): Update comments; remove
2634         O0_alwaysinline pass.
2635         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
2636         (execute_one_pass): Likewise.
2637         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
2638         (ix86_function_sseregparm): Likewise.
2639         * arm.c (arm_function_in_section_p): Likewise.
2640         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
2641         * varpool.c: Update comments.
2642         (decide_is_variable_needed): Remove unit-at-a-time checks.
2643         (varpool_finalize_decl): Likewise.
2644
2645 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
2646
2647         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
2648         to 2 instead of -1.
2649         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
2650
2651 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
2652
2653         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
2654         imp symbol extension.
2655
2656         2008-07-23  Ian Lance Taylor  <iant@google.com>
2657
2658         * tree-vrp.c (infer_value_range): Ignore asm statements when
2659         looking for memory accesses for -fdelete-null-pointer-checks.
2660
2661 2008-07-24  Ben Elliston  <bje@au.ibm.com>
2662
2663         * config/spu/spu-c.c (__vector_keyword): New variable.
2664         (vector_keyword): Likewise.
2665         (spu_categorize_keyword): New function.
2666         (spu_macro_to_expand): Likewise.
2667         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
2668         compiling an ISO C dialect.
2669
2670 2008-07-24  Ben Elliston  <bje@au.ibm.com>
2671
2672         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
2673         conventional usage.
2674
2675 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2676
2677         * configure: Regenerate.
2678         * configure.ac: Require texinfo 4.7.
2679         * doc/install.texi: Document texinfo 4.7 requirement.
2680
2681 2008-07-23  Martin Jambor  <mjambor@suse.cz>
2682
2683         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
2684         rather than for DECL_SAVED_TREE.
2685         * ipa-prop.c: Include diagnostic.h.
2686         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
2687         thoroughly.
2688         (ipa_detect_param_modifications): Function rewritten from scratch.
2689         (ipa_compute_jump_functions): Changed accesses to modification flags.
2690         (ipa_free_node_params_substructures): Update flags destruction.
2691         (ipa_node_duplication_hook): Update flags duplication.
2692         (ipa_print_all_params_modified): Updated flag access.
2693         * ipa-prop.h (struct ipa_param_flags): New structure.
2694         (struct ipa_node_params): New field modification_analysis_done,
2695         modified_flags changed into param_flags.
2696         (ipa_is_ith_param_modified): Changed to use new flags.
2697         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
2698
2699         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
2700         ipa-cp.c and split into two functions.
2701         (ipa_print_node_jump_functions): New function.
2702         (compute_scalar_jump_functions): New function.
2703         (type_like_member_ptr_p): New function.
2704         (compute_pass_through_member_ptrs): New function.
2705         (fill_member_ptr_cst_jump_function): New function.
2706         (determine_cst_member_ptr): New function.
2707         (compute_cst_member_ptr_arguments): New function.
2708         (ipa_compute_jump_functions): Complete rewrite.
2709         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
2710         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
2711         (struct ipa_member_ptr_cst): New structure.
2712         (union jump_func_value): New field member_cst.
2713         * ipa-cp.c (ipcp_lat_is_insertable): New function.
2714         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
2715         jump function types.
2716         (ipcp_print_all_lattices): Slight fprintf rearrangement.
2717         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
2718         instead of ipcp_print_all_jump_functions.
2719         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
2720         only for replacable scalars.
2721
2722         * doc/invoke.texi (Optimize options): Add description of
2723         -findirect-inlining.
2724         * common.opt (flag_indirect_inlining): New flag.
2725         * opts.c (decode_options): Set flag_indirect_inlining when
2726         optimize >= 3.
2727
2728         * ipa-inline.c: Include ipa-prop.h.
2729         (inline_indirect_intraprocedural_analysis): New function.
2730         (inline_generate_summary): Allocate parameter and argument info
2731         structures, call inline_indirect_intraprocedural_analysis on each
2732         node when doing indirect inlining and deallocate indirect inlining
2733         data structures in the end.
2734         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
2735         (free_all_ipa_structures_after_iinln): New function.
2736         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
2737         done.
2738         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
2739
2740         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
2741         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
2742         of computing the frequency separately.
2743         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
2744         of computing the frequency separately.
2745         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
2746         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
2747         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
2748         (ipa_get_stmt_member_ptr_load_param): New function.
2749         (ipa_is_ssa_with_stmt_def): New function.
2750         (ipa_note_param_call): New function.
2751         (ipa_analyze_call_uses): New function.
2752         (ipa_analyze_stmt_uses): New function.
2753         (ipa_analyze_params_uses): New function.
2754         (ipa_free_node_params_substructures): Also free the param_calls linked
2755         list.
2756         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
2757         (ipa_print_node_param_flags): New function.
2758         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
2759         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
2760         * ipa-prop.h (struct ipa_param_flags): New field called.
2761         (struct ipa_param_call_note): New structure.
2762         (struct ipa_node_params): New fields param_calls and
2763         uses_analysis_done.
2764         (ipa_is_ith_param_called): New function.
2765         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2766         ipa_analyze_params_uses and dump parameter flags.
2767
2768         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
2769         ipa_propagate_indirect_call_infos if performing indirect inlining,
2770         pass a new parameter new_edges to it.
2771         (add_new_edges_to_heap): New fucntion.
2772         (cgraph_decide_inlining_of_small_functions): New vector
2773         new_indirect_edges for newly found indirect edges , call
2774         ipa_propagate_indirect_call_infos after inlining.
2775         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
2776         inlining if performing indirect inlining.  Call
2777         free_all_ipa_structures_after_iinln when doing so too.
2778         (inline_generate_summary): Do not call
2779         free_all_ipa_structures_after_iinln here.
2780         * ipa-prop.c (update_jump_functions_after_inlining): New function.
2781         (print_edge_addition_message): New function.
2782         (update_call_notes_after_inlining): New function.
2783         (propagate_info_to_inlined_callees): New function.
2784         (ipa_propagate_indirect_call_infos): New function.
2785         * ipa-prop.h: Include cgraph.h
2786         (struct ipa_param_call_note): Fields reordered, new field processed.
2787         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
2788         flag indirect_call.
2789         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
2790         rediscovered call statements.
2791         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
2792         (dump_cgraph_node): Dump also the indirect_call flag.
2793         (cgraph_clone_edge): Copy also the indirect_call flag.
2794         * tree-inline.c (copy_bb): Do not check for fndecls from call
2795         expressions, check for edge availability when moving clones.
2796         (get_indirect_callee_fndecl): New function.
2797         (expand_call_inline): If callee declaration is not apprent from
2798         the statement, try calling get_indirect_callee_fndecl.  Do not
2799         issue warnings or call sorry when not inlinings an indirect edge.
2800         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
2801
2802         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
2803         bit more frandly to matching.
2804         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
2805         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
2806         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
2807
2808 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
2809
2810         PR 36907
2811         * opth-gen.awk: Suppress function specific features when building
2812         target libraries.
2813         * optc-gen.awk: Ditto.
2814
2815 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2816
2817         PR 35058
2818         * diagnostic.c (pedwarn): Add opt parameter.
2819         (pedwarn0): New.
2820         * c-tree.h (pedwarn_init): Add opt parameter.
2821         (pedwarn_c90): Likewise.
2822         (pedwarn_c99): Likewise.
2823         * c-errors.c (pedwarn_c99): Likewise.
2824         (pedwarn_c90): Likewise.
2825         * toplev.h (pedwarn): Update declaration.
2826         (pedwarn0): Declare.
2827         * c-lex.c: All calls to pedwarn changed.
2828         * builtins.c: All calls to pedwarn changed.
2829         * toplev.c: All calls to pedwarn changed.
2830         * c-decl.c: All calls to pedwarn changed.
2831         * c-typeck.c: All calls to pedwarn changed.
2832         * c-common.c: All calls to pedwarn changed.
2833         * c-parser.c: All calls to pedwarn changed.
2834
2835 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
2836             Karthik Kumar  <karthikkumar@gmail.com>
2837
2838         * attribs.c (file scope): Include c-common.h.
2839         (decl_attributes): Add support for #pragma GCC optimize and
2840         #pragma GCC option.
2841
2842         * targhooks.c (default_can_inline_p): New function that is the
2843         default for the TARGET_CAN_INLINE_P target hook.
2844
2845         * targhooks.h (default_can_inline_p): Add declaration.
2846
2847         * tree.c (cl_optimization_node): New static tree for building
2848         OPTIMIZATION_NODE tree.
2849         (cl_target_option_node): New static tree for building
2850         TARGET_OPTION_NODE tree.
2851         (cl_option_hash_table): New hash table for hashing
2852         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
2853         (cl_option_hash_hash): New function to provide the hash value for
2854         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
2855         (cl_option_hash_eq): New function to provide an equality test for
2856         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
2857         (tree_code_size): Add support for OPTIMIZATION_NODE and
2858         TARGET_OPTION_NODE trees.
2859         (tree_code_structure): Add support for OPTIMIZATION_NODE and
2860         TARGET_OPTION_NODE trees.
2861         (build_optimization_node): Build a tree that has all of the
2862         current optimization options.
2863         (build_target_option_node): Build a tree that has the target
2864         options that might be changed on a per function basis.
2865
2866         * tree.h (file scope): Include options.h.
2867         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
2868         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
2869         (TREE_OPTIMIZATION): Ditto.
2870         (TREE_TARGET_SPECIFIC): Ditto.
2871         (struct tree_function_decl): Add fields for remembering the
2872         current optimization options and target specific options.
2873         (struct tree_optimization_option): New tree variant that remembers
2874         the optimization options.
2875         (struct tree_target_option): New tree variant that remembers the
2876         target specific flags that might change for compiling a particular
2877         function.
2878         (union tree_node): Include tree_optimization_option and
2879         tree_target_option fields.
2880         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
2881         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
2882         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
2883         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
2884         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
2885         optimization and target options.
2886         (optimization_default_node): New macro to refer to global_trees
2887         field.
2888         (optimization_current_node): Ditto.
2889         (optimization_cold_node): Ditto.
2890         (optimization_hot_node): Ditto.
2891         (target_option_default_node): Ditto.
2892         (target_option_current_node): Ditto.
2893         (current_option_pragma): Ditto.
2894         (current_optimize_pragma): Ditto.
2895
2896         * target.h (struct gcc_target): Add valid_option_attribute_p,
2897         target_option_save, target_option_restore, target_option_print,
2898         target_option_pragma_parse, and can_inline_p hooks.
2899
2900         * toplev.h (parse_optimize_options): Add declaration.
2901         (fast_math_flags_struct_set_p): Ditto.
2902
2903         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
2904         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
2905         optimize is used.
2906
2907         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
2908         tree_can_inline_p hook to see if one function can inline another.
2909         (cgraph_decide_inlining): Ditto.
2910         (cgraph_decide_inlining_incrementally): Ditto.
2911
2912         * opts.c (decode_options): Add support for running multiple times
2913         to allow functions with different target or optimization options
2914         than was specified on the command line.
2915         (fast_math_flags_struct_set_p): New function that is similar to
2916         fast_math_flags_set_p, except it uses the values in the
2917         cl_optimization structure instead of global variables.
2918
2919         * optc-gen.awk: Add support for TargetSave to allow a back end to
2920         declare new fields that need to be saved when using function
2921         specific options.  Include flags.h and target.h in the options.c
2922         source.  Add support for Save to indicate which options can be set
2923         for individual functions.  Generate cl_optimize_save,
2924         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
2925         cl_target_option_restore, cl_target_option_print functions to
2926         allow functions to use different optimization or target options.
2927
2928         * opt-functions.awk (var_type_struct): Return the type used for
2929         storing the field in a structure.
2930
2931         * opth-gen.awk: Add support for TargetSave to allow a back end to
2932         declare new fields that need to be saved when using function
2933         specific options.  Add support for Save to indicate which options
2934         can be set for individual functions.  Only generate one extern for
2935         Mask fields.  Generate cl_optimization and cl_target_option
2936         structures to remember optimization and target options.
2937
2938         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
2939         collecting new tree nodes.
2940         (TS_TARGET_OPTION): Ditto.
2941
2942         * c-decl.c (merge_decls): Merge function specific target and
2943         optimization options.
2944
2945         * function.c (invoke_set_current_function_hook): If the function
2946         uses different optimization options, change the global variables
2947         to reflect this.
2948
2949         * coretypes.h (struct cl_optimization): Add forward reference.
2950         (struct cl_target_option): Ditto.
2951
2952         * c-pragma.c (option_stack): New static vector to remember the
2953         current #pragma GCC option stack.
2954         (handle_pragma_option): New function to support #pragma GCC option
2955         to change target options.
2956         (optimize_stack): New static vector to remember the current
2957         #pragma GCC optimize stack.
2958         (handle_pragma_optimize): New function to support #pragma GCC
2959         optimize to change optimization options.
2960         (init_pragma): Add support for #pragma GCC optimize and #pragma
2961         GCC option.
2962
2963         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
2964         optimization options.
2965         (TARGET_OPTION_NODE): New tree code for remembering certain target
2966         options.
2967
2968         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
2969         TARGET_OPTION_NODE trees.
2970
2971         * common.opt (-O): Add Optimization flag.
2972         (-Os): Ditto.
2973         (-fmath-errno): Ditto.
2974         (-falign-functions): Add UInteger flag to make sure flag gets full
2975         int in cl_optimization structure.
2976         (-falign-jumps): Ditto.
2977         (-falign-labels): Ditto.
2978         (-falign-loops): Ditto.
2979         (-fsched-stalled-insns): Ditto.
2980         (-fsched-stalled-insns-dep): Ditto.
2981
2982         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
2983         definition.
2984         (TARGET_OPTION_SAVE): Ditto.
2985         (TARGET_OPTION_RESTORE): Ditto.
2986         (TARGET_OPTION_PRINT): Ditto.
2987         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
2988         (TARGET_CAN_INLINE_P): Ditto.
2989         (TARGET_INITIALIZER): Add new hooks.
2990
2991         * tree-inline.c (tree_can_inline_p): New function to determine
2992         whether one function can inline another.  Check if the functions
2993         use compatible optimization options, and also call the backend
2994         can_inline_p hook.
2995
2996         * tree-inline.h (tree_can_inline_p): Add declaration.
2997
2998         * c-common.c (c_common_attribute): Add support for option and
2999         optimize attributes.
3000         (handle_option_attribute): Add support for the option attribute to
3001         allow the user to specify different target options for compiling a
3002         specific function.
3003         (handle_optimize_attribute): Add support for the optimize
3004         attribute to allow the user to specify different optimization
3005         options for compiling a specific function.
3006         (handle_hot_attribute): Turn on -O3 optimization for this one
3007         function if it isn't the default optimization level.
3008         (handle_cold_attribute): Turn on -Os optimization for this one
3009         function if it insn't the default optimization.
3010         (const_char_p): New const char * typedef.
3011         (optimize_args): New static vector to remember the optimization
3012         arguments.
3013         (parse_optimize_options): New function to set up the optimization
3014         arguments from either the optimize attribute or #pragma GCC optimize.
3015
3016         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
3017         (builtin_define_std): Ditto.
3018
3019         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
3020         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
3021         (x86_64-*-*): Ditto.
3022
3023         * Makefile.in (TREE_H): Add options.h.
3024         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
3025
3026         * doc/extend.texi (option attribute): Document new attribute.
3027         (optimize attribute): Ditto.
3028         (hot attribute): Document hot attribute sets -O3.
3029         (cold attribute): Document cold attribute sets -Os.
3030         (#pragma GCC option): Document new pragma.
3031         (#pragma GCC optimize): Ditto.
3032
3033         * doc/options.texi (TargetSave): Document TargetSave syntax.
3034         (UInteger): Document UInteger must be used for certain flags.
3035         (Save): Document Save option to create target specific options
3036         that can be saved/restored on a function specific context.
3037
3038         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
3039         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
3040
3041         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
3042         (TARGET_OPTION_SAVE): Ditto.
3043         (TARGET_OPTION_RESTORE): Ditto.
3044         (TARGET_OPTION_PRINT): Ditto.
3045         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
3046         (TARGET_CAN_INLINE_P): Ditto.
3047
3048         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
3049         -mfpmath=sse,387.
3050         (-mfpmath=both): Ditto.
3051
3052 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
3053             Karthik Kumar  <karthikkumar@gmail.com>
3054
3055         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
3056         (TARGET_POPCNT): Ditto.
3057         (TARGET_SAHF): Ditto.
3058         (TARGET_AES): Ditto.
3059         (TARGET_PCLMUL): Ditto.
3060         (TARGET_CMPXCHG16B): Ditto.
3061         (TARGET_RECIP): Move switch into target_flags.
3062         (TARGET_FUSED_MADD): Ditto.
3063         (ix86_arch_features): Make an unsigned char type.
3064         (ix86_tune_features): Ditto.
3065         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
3066         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
3067         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
3068
3069         * config/i386/i386.opt (arch): New TargetSave field to define
3070         fields that need to be saved for function specific option support.
3071         (tune): Ditto.
3072         (fpmath): Ditto.
3073         (branch_cost): Ditto.
3074         (ix86_isa_flags_explicit): Ditto.
3075         (tune_defaulted): Ditto.
3076         (arch_specified): Ditto.
3077         (-m128-long-double): Add Save flag to save option for target
3078         specific option support.
3079         (-m80387): Ditto.
3080         (-maccumulate-outgoing-args): Ditto.
3081         (-malign-double): Ditto.
3082         (-malign-stringops): Ditto.
3083         (-mfancy-math-387): Ditto.
3084         (-mhard-float): Ditto.
3085         (-mieee-fp): Ditto.
3086         (-minline-all-stringops): Ditto.
3087         (-minline-stringops-dynamically): Ditto.
3088         (-mms-bitfields): Ditto.
3089         (-mno-align-stringops): Ditto.
3090         (-mno-fancy-math-387): Ditto.
3091         (-mno-push-args): Ditto.
3092         (-mno-red-zone): Ditto.
3093         (-mpush-args): Ditto.
3094         (-mred-zone): Ditto.
3095         (-mrtd): Ditto.
3096         (-msseregparm): Ditto.
3097         (-mstack-arg-probe): Ditto.
3098         (-m32): Ditto.
3099         (-m64): Ditto.
3100         (-mmmx): Ditto.
3101         (-m3dnow): Ditto.
3102         (-m3dnowa): Ditto.
3103         (-msse): Ditto.
3104         (-msse2): Ditto.
3105         (-msse3): Ditto.
3106         (-msse4.1): Ditto.
3107         (-msse4.2): Ditto.
3108         (-msse4): Ditto.
3109         (-mno-sse4): Ditto.
3110         (-msse4a): Ditto.
3111         (-msse5): Ditto.
3112         (-mrecip): Move flag into target_flags.
3113         (-mcld): Ditto.
3114         (-mno-fused-madd): Ditto.
3115         (-mfused-madd): Ditto.
3116         (-mabm): Move flag into ix86_isa_flags.
3117         (-mcx16): Ditto.
3118         (-mpopcnt): Ditto.
3119         (-msahf): Ditto.
3120         (-maes): Ditto.
3121         (-mpclmul): Ditto.
3122
3123         * config/i386/i386-c.c: New file for #pragma support.
3124         (ix86_target_macros_internal): New function to #define or #undef
3125         target macros based when the user uses the #pragma GCC option to
3126         change target options.
3127         (ix86_pragma_option_parse): New function to add #pragma GCC option
3128         support.
3129         (ix86_target_macros): Move defining the target macros here from
3130         TARGET_CPU_CPP_BUILTINS in i386.h.
3131         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
3132         defined, initialize any subtarget #pragmas.
3133
3134         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
3135         REGISTER_TARGET_PRAGMAS.
3136
3137         * config/i386/t-i386: New file for x86 dependencies.
3138         (i386.o): Make dependencies mirror the include files used.
3139         (i386-c.o): New file, add dependencies.
3140
3141         * config/i386/i386-protos.h (override_options): Add bool argument.
3142         (ix86_valid_option_attribute_tree): Add declaration.
3143         (ix86_target_macros): Ditto.
3144         (ix86_register_macros): Ditto.
3145
3146         * config/i386/i386.c (ix86_tune_features): Move initialization of
3147         the target masks to initial_ix86_tune_features to allow functions
3148         to have different target options.  Make type unsigned char,
3149         instead of unsigned int.
3150         (initial_ix86_tune_features): New static vector to hold processor
3151         masks for the tune variables.
3152         (ix86_arch_features): Move initialization of the target masks to
3153         initial_ix86_arch_features to allow functions to have different
3154         target options.  Make type unsigned char, instead of unsigned int.
3155         (initial_ix86_arch_features): New static vector to hold processor
3156         masks for the arch variables.
3157         (enum ix86_function_specific_strings): New enum to describe the
3158         string options used for attribute((option(...))).
3159         (ix86_target_string): New function to return a string that
3160         describes the target options.
3161         (ix86_debug_options): New function to print the current options in
3162         the debugger.
3163         (ix86_function_specific_save): New function hook to save the
3164         function specific global variables in the cl_target_option structure.
3165         (ix86_function_specific_restore): New function hook to restore the
3166         function specific variables from the cl_target_option structure to
3167         the global variables.
3168         (ix86_function_specific_print): New function hook to print the
3169         target specific options in the cl_target_option structure.
3170         (ix86_valid_option_attribute_p): New function hook to validate
3171         attribute((option(...))) arguments.
3172         (ix86_valid_option_attribute_tree): New function that is common
3173         code between attribute((option(...))) and #pragma GCC option
3174         support that parses the options and returns a tree holding the options.
3175         (ix86_valid_option_attribute_inner_p): New helper function for
3176         ix86_valid_option_attribute_tree.
3177         (ix86_can_inline_p): New function hook to decide if one function
3178         can inline another on a target specific basis.
3179         (ix86_set_current_function); New function hook to switch target
3180         options if the user used attribute((option(...))) or #pragma GCC
3181         option.
3182         (ix86_tune_defaulted): Move to static file scope from
3183         override_options.
3184         (ix86_arch_specified): Ditto.
3185         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
3186         ix86_isa_flags.
3187         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
3188         (OPTION_MASK_ISA_ABM_SET): Ditto.
3189         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
3190         (OPTION_MASK_ISA_CX16_SET): Ditto.
3191         (OPTION_MASK_ISA_SAHF_SET): Ditto.
3192         (OPTION_MASK_ISA_AES_UNSET): Ditto.
3193         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
3194         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
3195         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
3196         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
3197         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
3198         (struct ptt): Move to static file scope from override_options.
3199         (processor_target_table): Ditto.
3200         (cpu_names): Ditto.
3201         (ix86_handle_option): Add support for options that are now isa options.
3202         (override_options): Add support for declaring functions that
3203         support different target options than were specified on the
3204         command line.  Move struct ptt, processor_target_table, cpu_names,
3205         ix86_tune_defaulted, ix86_arch_specified to static file scope.
3206         Add bool argument.  Fix up error messages so the appropriate error
3207         is given for either command line or attribute.
3208         (ix86_previous_fndecl): New static to remember previous function
3209         declaration to see if we need to change target options.
3210         (ix86_builtins_isa): New array to record the ISA of each builtin
3211         function.
3212         (def_builtin): Always create the builtin function, even if the
3213         current ISA doesn't support it.
3214         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
3215         tests for those builtins.
3216         (ix86_init_builtins): Remove TARGET_MMX test for calling
3217         ix86_init_mmx_sse_builtins.
3218         (ix86_expand_builtin): If the current ISA doesn't support a given
3219         builtin, signal an error.
3220         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
3221         (TARGET_SET_CURRENT_FUNCTION): Ditto.
3222         (TARGET_OPTION_SAVE): Ditto.
3223         (TARGET_OPTION_RESTORE): Ditto.
3224         (TARGET_OPTION_PRINT): Ditto.
3225         (TARGET_CAN_INLINE_P): Ditto.
3226
3227 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
3228
3229         * c-typeck.c (build_external_ref): Don't call assemble_external.
3230         * final.c (output_operand): Call assemble_external.
3231
3232 2008-07-21  DJ Delorie  <dj@redhat.com>
3233
3234         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
3235         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
3236
3237 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3238
3239         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
3240         original insn and splitter contents into ...
3241         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
3242         flag_unsafe_math_optimizations.  Add dummy scratch register.
3243         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
3244         !flag_unsafe_math_optimizations.  Returns number with next
3245         highest magnitude if this is still less or equal to the true
3246         quotient in magnitude.
3247
3248 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
3249
3250         * Makefile.in: Replace toplev.h with TOPLEV_H.
3251         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
3252         * c-lex.c (fe_file_change): Don't set in_system_header.
3253         * c-parser.c (c_token): Remove in_system_header.
3254         (c_lex_one_token): Don't set in_system_header.
3255         (c_parser_set_source_position_from_token): Don't set in_system_header.
3256         * diagnostic.c (diagnostic_report_diagnostic): Use location from
3257         diagnostic_info.
3258         (warning_at): New.
3259         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
3260         * flags.h (in_system_header): Remove.
3261         * function.c (saved_in_system_header): Remove.
3262         (push_cfun): Don't set in_system_header.
3263         (pop_cfun): Don't set in_system_header.
3264         (push_struct_function): Don't set in_system_header.
3265         * input.h (expanded_location): Add sysp.
3266         (in_system_header_at): New.
3267         (in_system_header): New.
3268         * toplev.c (in_system_header): Remove.
3269         * toplev.h: Include input.h
3270         (warning_at): New.
3271         * tree-cfg.c (execute_warn_function_return): Call warning_at.
3272         * tree-ssa.c (warn_uninit): Call warning_at.
3273         (warn_uninitialized_var): Update calls to warn_uninit.
3274         (warn_uninitialized_phi): Update calls to warn_uninit.
3275         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
3276         (expand_location): Initialize xloc.sysp.
3277         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
3278         (tree_decl_with_vis): Remove in_system_header_flag.
3279
3280 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
3281
3282         PR target/36822
3283         * recog.c (asm_operand_ok): Change the order of the extra
3284         memory constraint checks.
3285
3286 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3287
3288         PR tree-opt/36879
3289         * tree-switch-conversion.c (build_one_array): Call
3290         varpool_mark_needed_node and varpool_finalize_decl
3291         instead of assemble_variable.
3292
3293 2008-07-19  Jan Hubicka  <jh@suse.cz>
3294
3295         * cgraph.c (cgraph_add_new_function): Do early local passes.
3296         * tree-nrv.c (gate_pass_return_slot): New gate.
3297         (pass_nrv): Add the gate.
3298         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
3299         functions.
3300         (coalesce_ssa_name): Coalesce SSA names.
3301         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
3302         not optimizing so unused user vars remains visible.
3303         * common.opt (flag_tree_ter): Always enable by default.
3304         * tree-ssa-ter.c: Include flags.h
3305         (is_replaceable_p): Check that locations match; when aliasing is missing
3306         be conservative about loads.
3307         * tree-optimize.c (gate_init_datastructures): Remove.
3308         (pass_init_datastructures): New.
3309         * passes.c: Reorder passes so we always go into SSA.
3310
3311 2008-07-19  Jan Hubicka  <jh@suse.cz>
3312
3313         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
3314         * doc/invoke.texi (--combine): Likewise.
3315         (-finline-functions-called-once): Update levels when enabled.
3316         (-funit-at-a-time): Document new behaviour.
3317         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
3318         -fno-section-anchors when disabled explicitly.
3319         (inline params): They are not ignored now.
3320         (precompiled headers): Remove unit-at-a-time as being incompatible.
3321         * opts.c (decode_options): Handle unit-at-a-time as alias;
3322         imply -fno-section-anchors when toplevel reorder is disabled
3323         explicitly.
3324         * common.opt (ftoplevel-reorder): Set default value to 2.
3325         (funit-at-a-time): Set default value to 1.
3326         * config/rs6000/rs6000.c (optimization_options): Set section anchors
3327         to 2.
3328
3329 2008-07-19  Jan Hubicka  <jh@suse.cz>
3330
3331         * builtins.c (expand_builtin_int_roundingfn,
3332         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
3333         it is not useful.
3334
3335 2008-07-19  Richard Guenther  <rguenther@suse.de>
3336
3337         PR bootstrap/36864
3338         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
3339         * tree-ssa-sccvn.c (get_constant_value_id): New function.
3340         * tree-ssa-pre.c (get_expr_value_id): For newly created
3341         constant value-ids make sure to add the expression to its
3342         expression-set.
3343
3344 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
3345
3346         PR middle-end/36877
3347         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
3348         return value of the builtin is ignored.
3349
3350 2008-07-19  Olivier Hainque  <hainque@adacore.com>
3351
3352         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
3353         bits, a C conformant malloc implementation has to provide.
3354         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
3355
3356 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
3357
3358         PR target/36780
3359         PR target/36827
3360         * reload.c (find_reloads_subreg_address): Only reload address if
3361         reloaded == 0, not for reloaded != 1.
3362
3363         Revert:
3364         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
3365         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
3366         (m32c_legitimate_address_p): Handle "++rii" addresses created by
3367         m32c_legitimize_reload_address.
3368
3369         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3370         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
3371         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
3372
3373 2008-07-19  Olivier Hainque  <hainque@adacore.com>
3374
3375         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
3376         argument, saying whether nested array are to be collapsed
3377         into a single array type DIE with multiple subscripts.
3378         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
3379         issues, centralize the nested array types collapsing control and
3380         disable the transformation for Ada.
3381
3382 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
3383
3384         PR target/36786
3385         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
3386         x86_64_shift_adj.
3387         (x86_64_shift_adj_2): New expander.
3388         (x86_64_shift_adj_3): Ditto.
3389         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
3390         to split TImode operands.
3391         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
3392         (ix86_split_lshr): Ditto.
3393
3394 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
3395
3396         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
3397         and __CHAR32_TYPE__.
3398         * c-typeck.c (digest_init): Support char16_t and char32_t.
3399         (set_nonincremental_init_from_string): Idem.
3400
3401 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
3402
3403         PR middle-end/36859
3404         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
3405         PREFERRED_STACK_BOUNDARY.
3406         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
3407
3408 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
3409
3410         PR middle-end/36858
3411         * function.c (locate_and_pad_parm): Cap boundary earlier.
3412
3413 2008-07-17  Julian Brown  <julian@codesourcery.com>
3414
3415         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
3416         no-op for targets which don't use DLLs.
3417
3418 2008-07-17  Martin Jambor  <mjambor@suse.cz>
3419
3420         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
3421         that nodes are relevant by examining the node->analyzed flag.
3422         (ipcp_init_stage): Check which nodes are relevant, assert that the
3423         relevant ones are also required.
3424         (ipcp_propagate_stage): Check on the side arrays are properly
3425         allocated.
3426         (ipcp_print_all_jump_functions): Make sure not to touch any node
3427         that is not analyzed or an edge that does not have a corresponding
3428         entry in the on-the-side vectors.
3429         (ipcp_function_scale_print): Likewise.
3430         (ipcp_update_callgraph): Check that the node is relevant.
3431         (ipcp_insert_stage): Check that the node is relevant.  Check there is
3432         an info for every node and edge.
3433         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
3434         (ipa_print_all_tree_maps): Likewise and a new variable info.
3435         (ipa_print_all_params_modified): Likewise.
3436         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
3437
3438 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
3439
3440         PR target/25343
3441         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
3442
3443 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
3444
3445         PR rtl-optimization/36753
3446         * fwprop.c (use_killed_between): Don't shortcut
3447         single-definition global registers.
3448
3449 2008-07-16  Jan Hubicka  <jh@suse.cz>
3450
3451         * cgraph.h (varpool_empty_needed_queue): Declare.
3452         * cgraphunit.c (output_in_order): Mark all variables as needed;
3453         empty the queue.
3454         * varpool.c (varpool_assemble_node): Update debug queue.
3455         (varpool_assemble_pending_decls): Don't do it here.
3456         (varpool_empty_needed_queue):  New function.
3457
3458 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3459
3460         * recog.c (peephole2_optimize): Fix formatting.
3461
3462 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3463
3464         * c-pch.c (get_ident): Avoid C++ keywords.
3465         * combine-stack-adj.c (single_set_for_csa): Likewise.
3466         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
3467         output_asm_insn): Likewise.
3468         * reload.c (push_secondary_reload, find_reusable_reload,
3469         push_reload, combine_reloads, find_reloads,
3470         debug_reload_to_stream): Likewise.
3471         * reload.h (struct reload): Likewise.
3472         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
3473         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
3474         emit_output_reload_insns): Likewise.
3475         * targhooks.c (default_secondary_reload): Likewise.
3476         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
3477
3478 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3479
3480         * recog.c (validate_change_1, validate_change,
3481         validate_unshare_change, validate_replace_rtx_1, struct
3482         funny_match, constrain_operands, peephole2_optimize): Avoid C++
3483         keywords.
3484         * reload.c (push_secondary_reload, secondary_reload_class,
3485         scratch_reload_class, find_valid_class, find_reusable_reload,
3486         push_reload, find_dummy_reload, find_reloads_address_1,
3487         find_reloads_address_part, find_equiv_reg): Likewise.
3488         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
3489         choose_reload_regs): Likewise.
3490         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
3491         Likewise.
3492         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
3493         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
3494         * sched-rgn.c (concat_INSN_LIST): Likewise.
3495         * stor-layout.c (mode_for_size, mode_for_size_tree,
3496         smallest_mode_for_size): Likewise.
3497
3498 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3499
3500         * cfg.c (dump_reg_info): Avoid C++ keywords.
3501         * dwarf2asm.c (dw2_force_const_mem,
3502         dw2_asm_output_encoded_addr_rtx): Likewise.
3503         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
3504         * expmed.c (expand_shift): Likewise.
3505         * global.c (find_reg): Likewise.
3506         * graph.c (draw_edge): Likewise.
3507         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
3508         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
3509         widen_clz, widen_bswap, expand_parity, expand_unop,
3510         emit_cmp_and_jump_insn_1): Likewise.
3511         * postreload.c (reload_cse_simplify_operands): Likewise.
3512         * ra.h (add_neighbor): Likewise.
3513         * reg-stack.c (remove_regno_note, change_stack): Likewise.
3514         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
3515         record_reg_classes, copy_cost, record_address_regs,
3516         invalid_mode_change_p): Likewise.
3517         * regrename.c (regrename_optimize, scan_rtx_reg,
3518         dump_def_use_chain, find_oldest_value_reg,
3519         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
3520
3521 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
3522
3523         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
3524         MASK_POWERPC64 for power4 in previous commit.
3525
3526 2008-07-16  Olivier Hainque  <hainque@adacore.com>
3527
3528         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
3529         instead of bare conversion to cast const-ness away.
3530
3531 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
3532
3533         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
3534         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
3535         * config/xtensa/xtensa.c (xtensa_function_value): New function.
3536         (TARGET_FUNCTION_VALUE): Define.
3537
3538 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
3539
3540         * config/rs6000/rs6000.c (processor_target_table): Add
3541         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
3542
3543 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
3544
3545         PR target/36827
3546         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
3547         (m32c_legitimate_address_p): Handle "++rii" addresses created by
3548         m32c_legitimize_reload_address.
3549
3550 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
3551
3552         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
3553         DECL_IN_SYSTEM_HEADER in sync.
3554
3555 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
3556
3557         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
3558         * tree-ssa-pre.c (pre_expr_eq): Ditto
3559         (get_constant_for_value_id): Take a type as an argument.
3560         (fully_constant_expression): Pass in type.
3561         (find_or_generate_expression): Short circuit constant case.
3562         (create_expression_by_pieces): Remove special casing of
3563         pointer_plus.
3564         (do_regular_insertion): Short circuit constant case.
3565         (do_partial_partial_insertion): Ditto.
3566
3567 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3568
3569         PR target/36782
3570         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
3571
3572 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
3573
3574         * config/xtensa/libgcc-xtensa.ver: New file.
3575         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
3576
3577 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3578
3579         * df-problems.c (df_set_note): Avoid C++ keywords.
3580         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
3581         * dse.c (record_store, remove_useless_values): Likewise.
3582         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
3583         gen_reg_rtx_offset, operand_subword, change_address_1,
3584         change_address, adjust_address_1, offset_address,
3585         widen_memory_access, emit_copy_of_insn_after): Likewise.
3586         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
3587         * fwprop.c (should_replace_address, propagate_rtx_1,
3588         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
3589         Likewise.
3590         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
3591         gcse_emit_move_after, update_ld_motion_stores): Likewise.
3592         * lcm.c (compute_insert_delete, pre_edge_lcm,
3593         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
3594         * lower-subreg.c (resolve_reg_notes): Likewise.
3595         * mode-switching.c (optimize_mode_switching): Likewise.
3596
3597 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3598
3599         * bt-load.c (add_btr_def, migrate_btr_def,
3600         branch_target_load_optimize): Avoid C++ keywords.
3601         * caller-save.c (insert_restore, insert_save, insert_one_insn):
3602         Likewise.
3603         * combine.c (subst, simplify_set, make_extraction,
3604         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
3605         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
3606         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
3607
3608 2008-07-15  Richard Guenther  <rguenther@suse.de>
3609
3610         PR middle-end/36369
3611         * c-common.c (strict_aliasing_warning): Do not warn for
3612         TYPE_REF_CAN_ALIAS_ALL pointers.
3613         (c_common_get_alias_set): may_alias types are not special.
3614         * tree.c (build_pointer_type_for_mode): Look up the may_alias
3615         attribute and set can_ref_all accordingly.
3616         (build_reference_type_for_mode): Likewise.
3617         * doc/extend.texi (may_alias): Clarify.
3618
3619 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3620
3621         PR target/36780
3622         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
3623         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
3624
3625 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3626
3627         PR target/31568
3628         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
3629         gcc_assert, instead call output_operand_lossage.
3630
3631 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
3632
3633         * builtins.c (std_canonical_va_list): Treat structure based
3634         va_list types.
3635
3636 2008-07-15  Ben Elliston  <bje@au.ibm.com>
3637
3638         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
3639
3640 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
3641
3642         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
3643         is set.
3644
3645 2008-07-14  Jan Hubicka  <jh@suse.cz>
3646
3647         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
3648         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
3649         fix predicates and constraints.
3650         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
3651         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
3652
3653 2008-07-14  Doug Kwan  <dougkwan@google.com>
3654
3655         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
3656         additional option file arm/eabi.opt.
3657         * config/arm/eabi.h (File): New configuration file for EABI targets.
3658         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
3659         SUBSUBTARGET_EXTRA_SPECS.
3660         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
3661         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
3662         from STARTFILE_SPEC so that it can be referenced in an override.
3663         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
3664         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
3665         can be referenced in an override.
3666         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
3667         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
3668         so that it can be referenced in an override.
3669         (LINK_SPEC): Use BPABI_LINK_SPEC.
3670         * config/arm/eabi.opt (File): New.
3671
3672 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3673
3674         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
3675         (FIXED_VALUE_H): New variable.
3676         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
3677         input.h, fixed-value.h.
3678         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
3679         (BASIC_BLOCK_H): Use $(BITMAP_H).
3680         (FUNCTION_H): Add varray.h.
3681         (IPA_REFERENCE_H): Use $(BITMAP_H).
3682         (CGRAPH_H): Add $(BASIC_BLOCK_H).
3683         (DF_H): Use $(BITMAP_H).
3684         (GGC_H): Add statistics.h.
3685         (INSN_ADDR_H): New.
3686         (INSN_ATTR_H): Use it.
3687         (SYSTEM_H): Add safe-ctype.h, filenames.h.
3688         (INPUT_H): New.
3689         (SYMTAB_H): Add $(OBSTACK_H).
3690         (CPP_INTERNAL_H): New.
3691         (TREE_DUMP_H): Add tree-pass.h.
3692         (TREE_FLOW_H): Use $(BITMAP_H)
3693         (PRETTY_PRINT_H): Use $(INPUT_H).
3694         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
3695         (GSTAB_H): New.
3696         (BITMAP_H): New.
3697         (many object files): Fix lots of header dependencies throughout.
3698
3699 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3700
3701         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
3702         New macros.
3703         (s-gtyp-input): Use them to write tmp-gi.list.
3704         (echo_to_gi.list): Remove.
3705
3706 2008-07-14  Richard Guenther  <rguenther@suse.de>
3707
3708         * tree-ssa-sccvn.c (pre_info): Remove.
3709         (switch_to_PRE_table): Likewise.
3710         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
3711         (set_hashtable_value_ids): Do not create value-ids for the
3712         optimistic tables.
3713         (run_scc_vn): Remove double test.  Remove bogus special-case
3714         in value-number printing.
3715         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
3716         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
3717         SSA_NAME_VALUE.
3718         * tree-flow-inline.h (get_value_handle): Remove.
3719         * tree-flow.h (get_value_handle): Remove.
3720
3721 2008-07-14  Martin Jambor  <mjambor@suse.cz>
3722
3723         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
3724         in which we generate arithmetics is not a subrange.
3725
3726 2008-07-14  Martin Jambor  <mjambor@suse.cz>
3727
3728         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
3729
3730 2008-07-14  Richard Guenther  <rguenther@suse.de>
3731
3732         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
3733
3734 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
3735
3736         PR target/36745
3737         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
3738         reload for symbol refs moved to r0 with -fPIC.
3739         (legitimize_pic_address): Use the target register as temporary
3740         reg if possible.
3741         (emit_symbolic_move): Adjust comment.
3742         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
3743         New expanders.
3744
3745 2008-07-14  Ben Elliston  <bje@au.ibm.com>
3746
3747         * c-common.h (C_CPP_HASHNODE): New macro.
3748         * coretypes.h (struct cpp_token): Forward declare.
3749         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
3750         the context-sensitive keyword method.
3751         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
3752         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
3753         expand_bool_pixel): New.
3754         (altivec_categorize_keyword): New function.
3755         (init_vector_keywords): New function.
3756         (rs6000_macro_to_expand): Likewise.
3757         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
3758         compiling an ISO C dialect.
3759
3760 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
3761
3762         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
3763         (create_expression_by_pieces): Fix typo.
3764         (do_regular_insertion): Use debug counter here too.
3765
3766 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
3767
3768         PR target/35492.
3769         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
3770         CONST_OK_FOR_LETTER_P.  All port-local users changed.
3771         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
3772         implement Kp matching power-of-two.
3773         (CONSTRAINT_LEN): Define to match.
3774         * config/cris/cris.md: Replace all use of constraint K with Kc.
3775         ("*btst*): Use Kp for operand 0 of last alternative.
3776
3777 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3778
3779         PR testsuite/36440
3780         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
3781         and quad formats.
3782
3783 2008-07-13  Jan Hubicka  <jh@suse.cz>
3784
3785         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
3786         to be mangled too.
3787
3788 2008-07-13  Richard Guenther  <rguenther@suse.de>
3789
3790         PR middle-end/36811
3791         * langhooks.c (lhd_print_error_function): Deal with recursive
3792         BLOCK trees.
3793
3794 2008-07-12  Jan Hubicka  <jh@suse.cz>
3795
3796         * cgraph.c (assembler_name_hash): New static var.
3797         (hash_node_by_assembler_name, eq_assembler_name): New.
3798         (cgraph_node_for_asm): Use hashtable.
3799         (cgraph_remove_node): Maintain hashtable.
3800         (change_decl_assembler_name): Sanity check that names are not changing
3801         after aliasing was processed.
3802         * cgraph.h (varpoon_node): Add next GGC marker.
3803         * tree.c (decl_assembler_name_equal): Constify.
3804         (decl_assembler_name_hash): New.
3805         * tree.h (decl_assembler_name_equal): Constify.
3806         (decl_assembler_name_hash): Update.
3807
3808 2008-07-12  David Daney  <ddaney@avtrex.com>
3809
3810         * config/mips/driver-native.c (host_detect_local_cpu): Handle
3811         sb1 and r5000 cpus.
3812
3813 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3814
3815         * doc/md.texi: Document the MIPS "v" constraint.
3816         * config/mips/mips.h (reg_class): Revert last change.
3817         (REG_CLASS_NAMES): Likewise.
3818         (REG_CLASS_CONTENTS): Likewise.
3819         * config/mips/mips.c (mips_regno_to_class): Likewise.
3820         * config/mips/constraints.md (v): Likewise, but add documentation.
3821         Add a comment to say that this constraint should not be used in
3822         gcc code.
3823
3824 2008-07-11  DJ Delorie  <dj@redhat.com>
3825
3826         * config/h8300/h8300.md (length): Fix branch offset limit.
3827
3828 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
3829
3830         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
3831         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
3832         (avr_hard_regno_scratch_ok): New function.
3833         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
3834         * config/avr/avr.md (all peepholes that request a scratch register):
3835         Remove avr_peep2_scratch_safe use.
3836
3837 2008-07-11  Tom Tromey  <tromey@redhat.com>
3838             Ian Lance Taylor  <iant@google.com>
3839
3840         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
3841         (struct c_common_resword): Define.
3842         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
3843         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
3844         (c_common_reswords, num_c_common_reswords): Declare.
3845         * c-common.c (c_common_reswords): New global const array.
3846         (num_c_common_reswords): New const int.
3847         * c-parser.c (struct resword, reswords): Don't define.
3848         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
3849         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
3850         than reswords.  If warning about C++ keywords, give them a special
3851         RID code.
3852         (c_lex_one_token): Warn about C++ keywords.  Call
3853         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
3854         (c_parser_external_declaration): Look for RID_xxx rather than
3855         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
3856         (c_parser_statement_after_labels): Likewise.
3857         (c_parser_objc_class_instance_variables): Likewise.
3858         (c_parser_objc_class_declaration): Likewise.
3859         (c_parser_objc_try_catch_statement): Likewise.
3860         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
3861         (declspecs_add_type): Likewise.
3862
3863 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
3864
3865         * ggc-page.c (alloc_page):
3866         Substituting xmalloc, xcalloc with
3867         XNEWVEC and XCNEWVAR macros which add the
3868         needed casts.
3869
3870 2008-07-11  Richard Guenther  <rguenther@suse.de>
3871
3872         PR tree-optimization/36765
3873         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
3874         aliases from HEAP vars to SMTs.
3875
3876 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3877
3878         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
3879         * configure.ac (loose_warn): Move -Wc++-compat from here...
3880         (strict_warn): ...to here.
3881         * configure: Regenerate.
3882
3883 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
3884
3885         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
3886         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
3887         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
3888         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
3889         excluding more specific h8300-*-* and sh-*-* targets.
3890
3891 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
3892
3893         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
3894         (eliminate): Ditto.
3895         (execute_pre): Call loop_optimizer_finalize in early exit.
3896
3897 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
3898
3899         PR middle-end/36790
3900         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
3901         uids in the bitmap, not just VAR_DECL uids.
3902
3903         PR rtl-optimization/36419
3904         * combine-stack-adj.c (adjust_frame_related_expr): New function.
3905         (combine_stack_adjustments_for_block): Call it if needed.  Delete
3906         correct insn.
3907         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
3908         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
3909         prologue sp adjustment.
3910
3911 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
3912
3913         PR other/28322
3914         * opts.c (print_ignored_options): Report postponed diagnostics for
3915         unknown -Wno-* options as warnings, not errors.
3916         (postpone_unknown_option_error): Renamed to...
3917         (postpone_unknown_option_warning): ... this.
3918
3919 2008-07-09  Doug Kwan  <dougkwan@google.com>
3920
3921         Revert:
3922         2008-07-08  Doug Kwan  <dougkwan@google.com>
3923
3924         * config/arm/arm.opt (mandroid): New option.
3925         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
3926         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
3927         (CC1_SPEC): Same.
3928         (CC1PLUS_SPEC): Same.
3929         (LIB_SPEC): Same.
3930         (STARTFILE_SPEC): Same.
3931         (ENDFILE_SPEC): Same.
3932         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
3933         used.
3934
3935 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
3936
3937         PR target/35802
3938         * config/mips/mips.h (reg_class): Remove V1_REG.
3939         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
3940         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
3941         instead of V1_REGS.
3942         (mips_get_tp): New function.
3943         (mips_legitimize_tls_address): Use it.
3944         * config/mips/constraints.md (v): Delete.
3945         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
3946         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
3947         After reload, split into a move and ...
3948         (*tls_get_tp_<mode>_split): ...this new instruction.
3949
3950 2008-07-09  David Daney  <ddaney@avtrex.com>
3951
3952         * config/mips/driver-native.c: Include coretypes.h and tm.h.
3953
3954 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
3955
3956         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
3957         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
3958         Add c argument.
3959         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
3960         htab_delete should be called.  Don't free c.
3961         (lookup_tmp_var): Create temp_htab lazily.
3962         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
3963         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
3964         callers.
3965         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
3966         lower_omp_ordered, lower_omp_critical, lower_omp_for,
3967         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
3968         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
3969         * tree-sra.c (generate_element_init): Likewise.
3970         * tree-mudflap.c (execute_mudflap_function_ops,
3971         execute_mudflap_function_decls): Likewise.
3972         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
3973         * tree-gimple.h (struct gimplify_ctx): New type.
3974         (push_gimplify_context): Adjust prototype.
3975
3976 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
3977
3978         * tree-ssa-pre.c (phi_translate_1): Update placement of
3979         add_to_value calls.
3980
3981 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
3982
3983         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
3984         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
3985         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
3986         * targhooks.c (default_hard_regno_scratch_ok): New function.
3987         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
3988         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
3989         * recog.c:  Include "target.h".
3990         (peep2_find_free_register): Add check for global regs. Add target
3991         specific check.
3992         * Makefile.in (recog.o): Depend on target.h.
3993
3994 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
3995
3996         * config/sh/sh.c (sh_canonical_va_list_type): New.
3997         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
3998
3999 2008-07-09  Raksit Ashok <raksit@google.com>
4000
4001         * doc/invoke.texi (Option Summary): Mention new option
4002         -Wdisallowed-function-list=...
4003         (Warning Options): Document -Wdisallowed-function-list=...
4004         * common.opt (Wdisallowed-function-list=): New flag.
4005         * flags.h (warn_disallowed_functions): External definition of new
4006         boolean warning flag.
4007         (warn_if_disallowed_function_p): Declare new function.
4008         * opts.c (warning_disallowed_functions): New static variable.
4009         (warn_disallowed_functions): New boolean warning flag.
4010         (warn_if_disallowed_function_p): New function.
4011         (add_comma_separated_to_vector): Rename
4012         add_instrument_functions_exclude_list to this.
4013         (common_handle_option): Handle new option. Rename calls to
4014         add_instrument_functions_exclude_list into calls to
4015         add_comma_separated_to_vector.
4016         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
4017         based on flag warn_disallowed_functions.
4018
4019 2008-07-09  Christian Bruel  <christian.bruel@st.com>
4020
4021         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
4022          instead of get_attr_length.
4023
4024 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4025
4026         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
4027         keywords.
4028         * genemit.c (gen_insn): Likewise.
4029         * gengtype.c (note_def_vec): Likewise.
4030         * gengtype.h (note_def_vec): Likewise.
4031         * genoutput.c (struct data, output_insn_data, process_template,
4032         gen_expand, gen_split, note_constraint): Likewise.
4033         * genrecog.c (new_decision, add_to_sequence, factor_tests,
4034         make_insn_sequence): Likewise.
4035         * gensupport.c (record_insn_name): Likewise.
4036
4037 2008-07-08  Doug Kwan  <dougkwan@google.com>
4038
4039         * config/arm/arm.opt (mandroid): New option.
4040         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
4041         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
4042         (CC1_SPEC): Same.
4043         (CC1PLUS_SPEC): Same.
4044         (LIB_SPEC): Same.
4045         (STARTFILE_SPEC): Same.
4046         (ENDFILE_SPEC): Same.
4047         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
4048         used.
4049
4050 2008-07-08  Raksit Ashok  <raksit@google.com>
4051
4052         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
4053         (set_storage_via_setmem): Fix expected_align parameter.
4054         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
4055         missing from the list.
4056         * doc/md.texi (movmem): Explicitly state that expected alignment is
4057         to be expressed in bytes.
4058         (setmem): Explicitly state that expected alignment is to be expressed
4059         in bytes.
4060
4061 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
4062
4063         * reload.c (find_reloads_subreg_address): Do not require validity
4064         of address in original mode before reloading address.
4065
4066 2008-07-07  Tianwei Sheng  <tianweis@google.com>
4067
4068         * df-core.c (df_remove_problem): Adjust the access to avoid out of
4069         bounds array access.
4070
4071 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
4072
4073         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
4074
4075 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
4076
4077         Fix PR tree-optimization/23455
4078         Fix PR tree-optimization/35286
4079         Fix PR tree-optimization/35287
4080         * Makefile.in (OBJS-common): Remove tree-vn.o.
4081         (tree-vn.o): Remove.
4082         * dbgcnt.def: Add treepre_insert debug counter.
4083         * gcc/tree-flow.h (add_to_value): Updated for other changes.
4084         (debug_value_expressions): Ditto.
4085         (print_value_expressions): Ditto.
4086         * tree-pretty-print.c (dump_generic_node): Updated for
4087         VALUE_HANDLE removal.
4088         * tree-ssa-dom.c (record_equality): Ditto.
4089         (cprop_operand): Ditto.
4090         (lookup_avail_expr): Ditto.
4091         * tree-ssa-threadedge.c
4092         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
4093         (simplify_control_stmt_condition): Ditto.
4094         * tree.c (tree_code_size): Ditto.
4095         (tree_node_structure): Ditto.
4096         (iterative_hash_expr): Ditto.
4097         * tree.def: Ditto.
4098         * tree.h (VALUE_HANDLE_ID): Ditto.
4099         (VALUE_HANDLE_EXPR_SET): Ditto.
4100         (struct tree_value_handle): Ditto.
4101         (union tree_node): Ditto.
4102         * treestruct.def: Ditto.
4103         * tree-vn.c: Removed.
4104         * tree-ssa-pre.c: Rewritten entirely.
4105         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
4106         (constant_value_ids): Ditto.
4107         (vn_nary_op_t): Moved to header.
4108         (vn_phi_t): Ditto.
4109         (vn_reference_op_t): Ditto
4110         (vn_reference_t): Ditto.
4111         (next_value_id): New variable.
4112         (VN_INFO): Add an assert.
4113         (vn_constant_eq): New function.
4114         (vn_constant_hash): Ditto.
4115         (get_or_alloc_constant_value_id): Ditto.
4116         (value_id_constant_p): Ditto.
4117         (vn_reference_compute_hash): De-staticify.
4118         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
4119         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
4120         (valueize_refs): Update opcode if it changes from ssa name to constant.
4121         (vn_reference_lookup_1): Add new argument.
4122         (vn_reference_lookup):  Ditto.
4123         (vn_reference_lookup_pieces): New function.
4124         (vn_reference_insert): Add return type. Modify to deal with value ids.
4125         (vn_reference_insert_pieces):  New function.
4126         (vn_nary_op_compute_hash): De-staticify.
4127         (vn_nary_op_eq): Ditto.
4128         (vn_nary_op_lookup_pieces): New function.
4129         (vn_nary_op_lookup): Add new argument.
4130         (vn_nary_op_insert_pieces): New function.
4131         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
4132         (vn_phi_insert): Ditto.
4133         (visit_unary_op): Update for callee changes.
4134         (visit_binary_op): Ditto.
4135         (visit_reference_op_load): Ditto.
4136         (visit_reference_op_store): Ditto.
4137         (init_scc_vn): Init next_value_id, constant_to_value_id and
4138         constant_value_ids.
4139         (free_scc_vn): Free them.
4140         (set_hashtable_value_ids): New function.
4141         (run_scc_vn): Use it.
4142         (get_max_value_id): New function.
4143         (get_next_value_id): Ditto.
4144         (expressions_equal_p): Moved from tree-vn.c
4145         (sort_vuses): Ditto.
4146         (sort_vuses_heap): Ditto.
4147         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
4148         above).
4149         * tree.c (iterative_hash_hashval_t): Made non-static
4150         * tree.h (iterative_hash_hashval_t): Declare it.
4151
4152 2008-07-08  Martin Jambor  <mjambor@suse.cz>
4153
4154         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
4155         instead of ipa_create_node_params.
4156         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
4157         ipa_check_create_edge_args, free them with
4158         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
4159
4160         * ipa-prop.c: Include flags.h and tree-inline.h.
4161         (ipa_node_params_vector): New variable.
4162         (ipa_edge_args_vector): New variable.
4163         (edge_removal_hook_holder): New variable.
4164         (node_removal_hook_holder): New variable.
4165         (edge_duplication_hook_holder): New variable.
4166         (node_duplication_hook_holder): New variable.
4167         (ipa_detect_param_modifications): Check for presence of modified flags.
4168         (ipa_compute_jump_functions): Check for presence of jump functions.
4169         (ipa_free_edge_args_substructures): New function.
4170         (ipa_create_node_params): Removed.
4171         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
4172         (ipa_free_node_params_substructures): New function.
4173         (ipa_free_all_node_params): Changed to deallocate the on-the-side
4174         vector.
4175         (ipa_edge_removal_hook): New function.
4176         (ipa_node_removal_hook): New function.
4177         (duplicate_array): New function.
4178         (ipa_edge_duplication_hook): New function.
4179         (ipa_node_duplication_hook): New function.
4180         (ipa_register_cgraph_hooks): New function.
4181         (ipa_unregister_cgraph_hooks): New function.
4182         (free_all_ipa_structures_after_ipa_cp): New function.
4183
4184         * ipa-prop.h: Include vec.h.
4185         (ipa_node_params_t): New typedef with vector types for it.
4186         (ipa_edge_args_t):  New typedef with vector types for it.
4187         (IPA_NODE_REF): Changed to access an on-the-side vector.
4188         (IPA_EDGE_REF): Changed to access an on-the-side vector.
4189         (ipa_check_create_node_params): New function.
4190         (ipa_check_create_edge_args): New function.
4191
4192         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
4193         all users.
4194
4195 2008-07-07  Tom Tromey  <tromey@redhat.com>
4196
4197         * configure, config.in: Rebuilt.
4198         * configure.ac: Don't check for scandir or alphasort.
4199
4200 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
4201
4202         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
4203         types immediately after creating them.
4204
4205 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
4206
4207         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
4208
4209 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
4210
4211         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
4212         dump_constraint_graph.
4213         (dump_constraint_edge): New function.
4214         (dump_constraint_graph): New function.
4215         (debug_constraint_graph): New function.
4216         (dump_constraint): Removed useless comparison.
4217         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
4218         (dump_constraint_graph): Declare.
4219         (debug_constraint_graph): Declare.
4220         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
4221
4222 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
4223
4224         * config/i386/i386.c (is_va_list_char_pointer): New.
4225         (ix86_va_start): Replace compare with ms_va_list_type_node
4226         by is_va_list_char_pointer.
4227         (ix86_gimplify_va_arg): Likewise.
4228
4229 2008-07-07  Martin Jambor  <mjambor@suse.cz>
4230
4231         * cgraph.c (cgraph_edge_max_uid): New variable.
4232         (struct cgraph_edge_hook_list): New type.
4233         (struct cgraph_node_hook_list): New type.
4234         (struct cgraph_2edge_hook_list): New type.
4235         (struct cgraph_2node_hook_list): New type.
4236         (first_cgraph_edge_removal_hook): New variable.
4237         (first_cgraph_node_removal_hook): New variable.
4238         (first_cgraph_edge_duplicated_hook): New variable.
4239         (first_cgraph_node_duplicated_hook): New variable.
4240         (cgraph_add_edge_removal_hook): New function.
4241         (cgraph_remove_edge_removal_hook): New function.
4242         (cgraph_call_edge_removal_hooks):  New function.
4243         (cgraph_add_node_removal_hook):  New function.
4244         (cgraph_remove_node_removal_hook):  New function.
4245         (cgraph_call_node_removal_hooks):  New function.
4246         (cgraph_add_edge_duplication_hook):  New function.
4247         (cgraph_remove_edge_duplication_hook):  New function.
4248         (cgraph_call_edge_duplication_hooks):  New function.
4249         (cgraph_add_node_duplication_hook):  New function.
4250         (cgraph_remove_node_duplication_hook):  New function.
4251         (cgraph_call_node_duplication_hooks):  New function.
4252         (cgraph_create_edge): Assign to edge uid.
4253         (cgraph_remove_edge): Call edge removal hooks.
4254         (cgraph_node_remove_callees): Call edge removal hooks.
4255         (cgraph_node_remove_callers): Call edge removal hooks.
4256         (cgraph_remove_node): Call node removal hooks.
4257         (cgraph_clone_edge): Call edge duplication hooks.
4258         (cgraph_clone_node): Call node duplication hooks.
4259
4260         * cgraph.h (cgraph_edge): New field uid.
4261         (cgraph_edge_hook): New type.
4262         (cgraph_node_hook): New type.
4263         (cgraph_2edge_hook): New type.
4264         (cgraph_2node_hook): New type.
4265
4266 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
4267
4268         * config.in: Regenerate.
4269
4270 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
4271
4272         * gcc.c (print_sysroot): New.
4273         (option_map, display_help, process_command): Handle the
4274         -print-sysroot option.
4275         (main): Print the sysroot if requested.
4276         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
4277
4278 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4279
4280         PR target/34780
4281         * unwind-pe.h (size_of_encoded_value): add attribute unused.
4282
4283 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
4284
4285         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
4286         (assign_parm_setup_block_p): Also check mode of entry_parm.
4287
4288 2008-07-07  Richard Guenther  <rguenther@suse.de>
4289
4290         * tree-ssa-structalias.h (set_used_smts): Remove.
4291         * tree-ssa-structalias.c (used_smts): Likewise.
4292         (set_used_smts): Likewise.
4293         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
4294         call to set_used_smts.
4295
4296 2008-07-07  Richard Guenther  <rguenther@suse.de>
4297
4298         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
4299         (new_var_info): Set it to false.
4300         (solution_set_add): Correctly handle pointers outside a var and
4301         inside a field.
4302         (type_safe): Treat variables with is_full_var properly.
4303         (do_sd_constraint): Likewise.
4304         (do_ds_constraint): Likewise.
4305         (process_constraint): Remove zeroing offset for !use_field_sensitive.
4306         (get_constraint_for_ptr_offset): New function.
4307         (get_constraint_for_component_ref): For addresses at least include
4308         the last field of the variable.  Handle is_full_vars properly.
4309         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
4310         (handle_ptr_arith): Remove.
4311         (find_func_aliases): Simplify assignment handling.
4312         (create_function_info_for): For parameter and result varinfos set
4313         is_full_var flag.
4314         (create_variable_info_for): Set is_full_var flag whenever we
4315         just created a single varinfo for a decl.
4316         (init_alias_vars): Initialize use_field_sensitive from
4317         max-fields-for-field-sensitive parameter.
4318
4319 2008-07-07  Richard Guenther  <rguenther@suse.de>
4320
4321         PR tree-optimization/36713
4322         * tree-flow-inline.h (is_call_used): New function.
4323         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
4324         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
4325         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
4326
4327 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
4328
4329         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
4330
4331 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
4332
4333         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
4334
4335 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
4336             Nathan Sidwell  <nathan@codesourcery.com>
4337
4338         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
4339         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
4340         tmake_file.
4341         * config/m68k/t-linux: New.
4342         * doc/install.texi: Document m68k-*-linux is now multilibbed by
4343         default.
4344
4345 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
4346
4347         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
4348         * config/m68k/m68k-devices.def: Remove multilibs that only differ
4349         by MAC/EMAC.
4350
4351 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4352
4353         * gcc.c (execute): Fix -Wc++-compat warning.
4354
4355 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
4356
4357         PR target/36720
4358         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
4359         constant for little endian.
4360
4361 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
4362
4363         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
4364         mips_base_mips16 instead of TARGET_MIPS16.
4365         (mips_base_mips16): Declare.
4366         * config/mips/mips.c (mips_base_mips16): Make global.
4367         (was_mips16_p): Remove GTY marker.
4368         (was_mips16_pch_p): New variable.
4369         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
4370         (mips_override_options): Force to non-MIPS16 mode initially.
4371         Do not complain about MIPS16 PIC incompatibilities here.
4372         Only allow -mgpopt if -mexplicit-relocs is in force for
4373         non-MIPS16 code.
4374
4375 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
4376
4377         * configure.ac: Check for caddr_t, define to char * if not defined.
4378         * configure: Regenerate.
4379         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
4380         (mmap_gt_pch_use_address): Likewise.
4381         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
4382
4383 2008-07-06  Richard Guenther  <rguenther@suse.de>
4384
4385         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
4386         (new_var_info): Deal with it.
4387         (solution_set_add): Likewise.
4388         (bitpos_of_field): Make signed, fix.
4389         (struct fieldoff): Remove type and decl fields.  Make size field
4390         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
4391         flags.
4392         (fieldoff_compare): Deal with it.
4393         (push_fields_onto_fieldstack): Remove has_union argument, glob
4394         adjacent non-pointer fields together.
4395         (create_function_info_for): Do not set has_union.
4396         (create_variable_info_for): Simplify.
4397
4398 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
4399
4400         * config.gcc (extra_headers): Add cross-stdarg.h for target
4401         x86_64-*-* and i?86-*-*.
4402         * config/i386/cross-stdarg.h: New.
4403         * builtins.c (std_fn_abi_va_list): New.
4404         (std_canonical_va_list_type): New.
4405         (stabilize_va_list): Replace va_list_type_node use by
4406         mtarget.canonical_va_list_type.
4407         (gimplify_va_arg_expr): Likewise.
4408         (expand_builtin_va_copy): Replace va_list_type_node use by
4409         mtarget.fn_abi_va_list.
4410         * tree-sra.c (is_va_list_type): New helper.
4411         (decl_can_be_decomposed_p): Replace
4412         va_list_type_node use by is_va_list_type.
4413         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
4414         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4415         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
4416         * config/i386/i386-protos.h (ix86_get_valist_type): New.
4417         (ix86_enum_va_list): New.
4418         * config/i386/i386.c (sysv_va_list_type_node): New.
4419         (ms_va_list_type_node): New.
4420         (ix86_function_type_abi): Remove sorry.
4421         (ix86_build_builtin_va_list_abi): New.
4422         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
4423         for 64-bit targets.
4424         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
4425         (ix86_init_builtins_va_builtins_abi): New.
4426         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
4427         for 64-bit targets.
4428         (ix86_handle_abi_attribute): New.
4429         (attribute_spec): Add sysv_abi and ms_abi.
4430         (ix86_fn_abi_va_list): New.
4431         (ix86_canonical_va_list_type): New.
4432         (ix86_enum_va_list): New.
4433         (TARGET_FN_ABI_VA_LIST): New.
4434         (TARGET_CANONICAL_VA_LIST_TYPE): New.
4435         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
4436         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
4437         (TARGET_CANONICAL_VA_LIST_TYPE): New.
4438         (TARGET_ENUM_VA_LIST): New.
4439         * expr.h (std_fn_abi_va_list): New.
4440         (std_canonical_va_list_type): New.
4441         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
4442         (TARGET_CANONICAL_VA_LIST_TYPE): New.
4443         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
4444         TARGET_CANONICAL_VA_LIST_TYPE.
4445         * target.h (struct gcc_target): Add fn_abi_va_list hook
4446         and canonical_va_list_type hook.
4447
4448 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4449
4450         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
4451         integral and pointer types.
4452
4453 2008-07-04  Roger Sayle  <roger@eyesopen.com>
4454
4455         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
4456         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
4457
4458 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
4459
4460         PR target/36684
4461         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
4462
4463 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
4464
4465         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
4466         build_gimple_modify_stmt.
4467         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
4468         gimple operand.  Use fold_build* instead of build*.
4469
4470 2008-07-04  Richard Guenther  <rguenther@suse.de>
4471
4472         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
4473         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
4474         properly to compute the reachability set if we do field-sensitive PTA.
4475         * invoke.texi (max-fields-for-field-sensitive): Document default.
4476         * opts.c (decode_options): Set max-fields-for-field-sensitive to
4477         100 for optimize >= 2.
4478
4479 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4480
4481         * ggc-zone.c (lookup_page_table_if_allocated,
4482         set_page_table_entry, zone_find_object_size, alloc_small_page,
4483         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
4484         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
4485         -Wc++-compat and/or -Wcast-qual warnings.
4486
4487 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
4488
4489         PR target/36634
4490         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
4491         pic_offset_table_rtx to be marked as used here.
4492         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
4493         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
4494         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
4495         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
4496         !TARGET_SECURE_PLT.
4497
4498 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4499
4500         * alloc-pool.c (hash_descriptor, eq_descriptor,
4501         alloc_pool_descriptor): Fix -Wc++-compat warnings.
4502         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
4503         Likewise.
4504         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
4505         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
4506         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
4507         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
4508         Likewise.
4509
4510 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
4511
4512         * tree-flow.h (loop_only_exit_p): Declare.
4513         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
4514         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
4515         the number of iterations if it is constant.  Otherwise, if this is the
4516         only possible exit of the loop, use the conservative estimate on the
4517         number of iterations of the entire loop if available.
4518
4519 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
4520
4521         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
4522         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
4523         Add synchronization functions.
4524         * config/sync.c: New file.
4525         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
4526         (LIBGCC_SYNC_CFLAGS): Likewise.
4527
4528 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
4529
4530         PR target/36710
4531         * config/i386/i386.md (mode): Add TF to "mode" attribute.
4532         (*pushtf_sse): New insn pattern.
4533         (pushtf splitters): New splitters.
4534
4535 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
4536
4537         PR middle-end/35736
4538         * predict.c (build_predict_expr): Use void_type_node for the tree
4539         type, instead of NULL_TREE.
4540
4541 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
4542
4543         * config/i386/i386.c (contains_aligned_value_p): Return true
4544         for TCmode.
4545         (ix86_data_alignment): Align TCmode to 128bits.
4546         (ix86_local_alignment): Likewise.
4547
4548 2008-07-03  Andrew Haley  <aph@redhat.com>
4549
4550         PR bootstrap/33304
4551         * vec.h (VEC_TA): New.
4552         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
4553         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
4554         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
4555         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
4556         (C_COMMON_FIXED_TYPES): Remove first arg.
4557         (C_COMMON_FIXED_MODE_TYPES): Likewise.
4558         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
4559         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
4560         not to use empty macro arguments.
4561
4562 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
4563
4564         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
4565         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
4566         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
4567         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
4568         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
4569         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
4570         config/ia64/crtn.asm, config/m68hc11/larith.asm,
4571         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
4572         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
4573         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
4574         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
4575         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
4576         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
4577         config/rs6000/e500crtres64gpr.asm,
4578         config/rs6000/e500crtres64gprctr.asm,
4579         config/rs6000/e500crtrest32gpr.asm,
4580         config/rs6000/e500crtrest64gpr.asm,
4581         config/rs6000/e500crtresx32gpr.asm,
4582         config/rs6000/e500crtresx64gpr.asm,
4583         config/rs6000/e500crtsav32gpr.asm,
4584         config/rs6000/e500crtsav64gpr.asm,
4585         config/rs6000/e500crtsav64gprctr.asm,
4586         config/rs6000/e500crtsavg32gpr.asm,
4587         config/rs6000/e500crtsavg64gpr.asm,
4588         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
4589         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
4590         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
4591         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
4592         config/sparc/sol2-cn.asm: Remove .file directives.
4593
4594 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
4595
4596         * resource.c (mark_referenced_resources): Look inside
4597         UNSPEC_VOLATILEs and ASM_INPUTs.
4598
4599 2008-07-02  Ian Lance Taylor  <iant@google.com>
4600
4601         * rtlanal.c (add_reg_note): New function.
4602         * rtl.h (add_reg_note): Declare.
4603         * auto-inc-dec.c (attempt_change): Use add_reg_note.
4604         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
4605         * builtins.c (expand_builtin_longjmp): Likewise.
4606         (expand_builtin_nonlocal_goto): Likewise.
4607         * calls.c (emit_call_1, expand_call): Likewise.
4608         * cfgexpand.c (add_reg_br_prob_note): Likewise.
4609         * cfglayout.c (fixup_reorder_chain): Likewise.
4610         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
4611         (commit_one_edge_insertion): Likewise.
4612         * combine.c (move_deaths, distribute_notes): Likewise.
4613         * df-problems.c (df_set_note): Likewise.
4614         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
4615         (set_unique_reg_note): Likewise.
4616         (emit_copy_of_insn_after): Likewise.
4617         * expr.c (expand_expr_real): Likewise.
4618         * gcse.c (add_label_notes): Likewise.
4619         * haifa-sched.c (create_check_block_twin): Likewise.
4620         * jump.c (mark_jump_label_1): Likewise.
4621         * loop-doloop.c (add_test, doloop_modify): Likewise.
4622         * loop-unswitch.c (compare_and_jump_seq): Likewise.
4623         * lower-subreg.c (move_eh_region_note): Likewise.
4624         * optabs.c (emit_libcall_block): Likewise.
4625         * predict.c (predict_insn): Likewise.
4626         (combine_predictions_for_insn): Likewise.
4627         * recog.c (peephole2_optimize): Likewise.
4628         * regmove.c (try_auto_increment): Likewise.
4629         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
4630         * reload.c (find_reloads): Likewise.
4631         * reload1.c (fixup_eh_region_note): Likewise.
4632         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
4633         * reorg.c (delete_prior_computation): Likewise.
4634         (delete_computation, dbr_schedule): Likewise.
4635         * config/pa/pa.c (legitimize_pic_address): Likewise.
4636         * config/sh/sh.c (sh_reorg): Likewise.
4637
4638 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
4639
4640         PR target/36669
4641         * config/libgcc-glibc.ver: Add %exclude.
4642         * config/m32r/libgcc-glibc.ver: Likwise.
4643         * config/s390/libgcc-glibc.ver: Likwise.
4644         * config/sh/libgcc-glibc.ver: Likwise.
4645         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
4646
4647         * config/i386/libgcc-glibc.ver: New.
4648
4649         * config/i386/libgcc-x86_64-glibc.ver: Removed.
4650
4651 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
4652
4653         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
4654         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
4655         i[34567]86-*-linux*, x86_64-*-linux*.  Add
4656         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
4657         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
4658         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
4659         i[34567]86-*-linux*, x86_64-*-linux*.
4660
4661         * libgcc-std.ver: Add empty GCC_4.4.0.
4662
4663         * mkmap-symver.awk: Support multiple versions per symbol.
4664
4665         * config/i386/i386.c (ix86_init_builtins): Always define
4666         __builtin_fabsq and __builtin_copysignq with fallbacks.
4667         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
4668         and __builtin_copysignq if SSE2 isn't available.
4669
4670         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
4671         (LIBGCC2_TF_CEXT): Likwise.
4672         (TF_SIZE): Likwise.
4673
4674         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
4675
4676         * config/i386/sfp-machine.h: Moved to libgcc.
4677
4678         * config/i386/sfp-machine.h: New.
4679         * config/i386/t-linux: Likwise.
4680
4681         * config/i386/t-darwin: Remove softfp_wrap_start and
4682         softfp_wrap_end.
4683         * config/i386/t-darwin64: Likewise.
4684
4685         * config/i386/t-fprules-softfp64: Renamed to ...
4686         * config/i386/t-fprules-softfp: This.
4687
4688         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
4689         and softfp_wrap_end.
4690
4691 2008-07-02  Jason Merrill  <jason@redhat.com>
4692
4693         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
4694
4695         * tree.c (ctor_to_list): New fn.
4696         * tree.h: Declare it.
4697         (CONSTRUCTOR_ELT): New macro.
4698         (CONSTRUCTOR_NELTS): New macro.
4699
4700 2008-07-02  Richard Guenther  <rguenther@suse.de>
4701
4702         * tree-ssa-structalias.c (struct variable_info): Reorder
4703         to fill padding on 64bit hosts.  Make collapsed_to an int.
4704         (get_varinfo_fc): Deal with that.
4705         (new_var_info): Likewise.
4706         (collapse_rest_of_var): Likewise.
4707
4708 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
4709
4710         * doc/install.texi (--enable-java-home): Document.
4711         (--enable-aot-compile-rpm): Likewise.
4712         (--with-arch-directory): Likewise.
4713         (--with-os-directory): Likewise.
4714         (--with-origin-name): Likewise.
4715         (--with-arch-suffix): Likewise.
4716         (--with-jvm-root-dir): Likewise.
4717         (--with-jvm-jar-dir): Likewise.
4718         (--with-python-dir): Likewise.
4719
4720 2008-07-02  Richard Guenther  <rguenther@suse.de>
4721
4722         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
4723         from decls explicitly.  Merge operand checking from tuples.
4724
4725 2008-07-02  Martin Jambor  <mjambor@suse.cz>
4726
4727         * tree-switch-conversion.c: Included timevar.h which I forgot before.
4728
4729 2008-07-02  Martin Jambor  <mjambor@suse.cz>
4730
4731         * tree-switch-conversion.c: Included timevar.h
4732         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
4733
4734         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
4735
4736 2008-07-02  Martin Jambor  <mjambor@suse.cz>
4737
4738         * tree-switch-conversion.c: Corrected various comments and
4739         whitespace issues
4740         (build_constructors): Fixed minor formatting mistakes.
4741
4742         * invoke.texi (Optimize Options): Corrected the
4743         switch-conversion-max-branch-ratio parameter.
4744
4745 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
4746
4747         * final.c (asm_insn_count): Return zero for an empty asm body.
4748
4749 2008-07-02  Richard Guenther  <rguenther@suse.de>
4750
4751         * bitmap.h (bitmap_set_bit): Return bool.
4752         (bitmap_clear_bit): Likewise.
4753         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
4754         write to the bitmap if it would.
4755         (bitmap_clear_bit): Likewise.
4756         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
4757         bitmap_set_bit return value.
4758         (add_pred_graph_edge): Likewise.
4759         (add_graph_edge): Likewise.
4760         (do_sd_constraint): Likewise.
4761         (do_ds_constraint): Likewise.
4762
4763 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4764
4765         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
4766         Fix -Wc++-compat and/or -Wcast-qual warnings.
4767         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
4768         gen_regparm_prefix): Likewise.
4769         * vmsdbgout.c (write_modbeg, lookup_filename,
4770         vmsdbgout_source_line, vmsdbgout_init): Likewise.
4771
4772 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
4773
4774         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
4775         defaults.h definition apply.
4776
4777 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
4778
4779         * function.c (assign_parm_remove_parallels): New.
4780         (assign_parm_setup_block_p): Do not return true for non-BLKmode
4781         PARALLELs.
4782         (assign_parm_setup_block): Do not handle them.
4783         (assign_parm_setup_reg, assign_parm_setup_stack): Call
4784         assign_parm_remove_parallels.
4785
4786 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
4787
4788         * c-typeck.c (convert_for_assignment): Use
4789         vector_targets_convertible_p.
4790         * c-common.c (vector_targets_convertible_p): New.
4791         * c-common.h (vector_targets_convertible_p): New prototype.
4792         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
4793         opaque_p_V2SI_type_node.
4794
4795 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
4796
4797         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
4798         RFmode constants.
4799
4800 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
4801
4802         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
4803         TFmode constants via two element DImode vector for hosts with
4804         HOST_BITS_PER_WIDE_INT < 64.
4805         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
4806         also for HOST_BITS_PER_WIDE_INT < 64.
4807
4808 2008-07-01  Richard Guenther  <rguenther@suse.de>
4809
4810         PR tree-optimization/36666
4811         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
4812         (get_constraint_exp_from_ssa_var): Split into ...
4813         (get_constraint_exp_for_temp): ... this ...
4814         (get_constraint_for_ssa_var): ... and that.
4815         Return constraint expressions for all touched sub-fields
4816         if the results address is not taken.
4817         (process_constraint): Remove assertion that aggregate
4818         assignments do not happen at this place.
4819         (get_constraint_for_component_ref): Add address_p argument.
4820         Return constraint expressions for all touched sub-fields
4821         if the results address is not taken.
4822         (do_deref): Use get_constraint_exp_for_temp.
4823         (get_constraint_for_1): Rename from ...
4824         (get_constraint_for): ... this.  Add the old function as wrapper.
4825         (do_structure_copy): Use get_constraint_for_1.
4826
4827 2008-07-01  Martin Jambor  <mjambor@suse.cz>
4828
4829         * Makefile.in (tree-switch-conversion.o): Add.
4830         (OBJS-common): Add tree-swtch-conversion.o.
4831         * passes.c (init_optimization_passes): Add pass_convert_switch.
4832         * tree-pass.h: (pass_convert_switch): Add.
4833         * tree-switch-conversion.c: New file.
4834         * gcc.dg/tree-ssa/cswtch.c: New testcase.
4835         * common.opt (ftree-cswtch): New option.
4836         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
4837         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
4838         * opts.c (decode_options): Set flag_tree_switch_conversion when
4839         optimization level is >= 2.
4840         * doc/invoke.texi (Optimize Options): Added description of
4841         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
4842
4843 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4844
4845         * config/darwin-driver.c (darwin_default_min_version): Fix
4846         -Wc++-compat warnings.
4847
4848 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
4849
4850         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
4851         of operand 0.
4852
4853 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
4854
4855         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
4856
4857 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
4858
4859         PR rtl-optimization/34744
4860         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
4861         (df_scan_free_internal): Free data structures not
4862         allocated in storage pools.
4863         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
4864         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
4865         df_scan_free_mws_vec.
4866         * dse.c (dse_step6): Free offset_map_p and offset_map_n
4867         unconditionally.
4868
4869 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
4870
4871         * config/i386/i386.c (contains_aligned_value_p): Return true
4872         for __float128.
4873         (ix86_function_arg_boundary): Return its natural boundary
4874         for __float128.
4875         (return_in_memory_32): Don't check TDmode.
4876         (ix86_split_to_parts): Support splitting into 4 parts and
4877         support TFmode for 32bit target.
4878         (ix86_split_long_move): Support splitting into 4 parts.
4879         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
4880         for SSE2.
4881         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
4882         (ix86_init_builtins): Here.
4883         (ix86_scalar_mode_supported_p): Always return true for TFmode.
4884         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
4885         'q' and 'w', respectively.
4886
4887         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
4888         TARGET_64BIT.
4889         (movtf_internal): Likewise.
4890         (<code>tf2): Likewise.
4891         (*absnegtf2_sse): Likewise.
4892         (copysign<mode>3): Likewise.
4893         (copysign<mode>3_const): Likewise.
4894         (copysign<mode>3_var): Likewise.
4895         (define_split UNSPEC_COPYSIGN): Likewise.
4896         * config/i386/sse.md (*nandtf3): Likewise.
4897         (<code>tf3): Likewise.
4898         (*<code>tf3): Likewise.
4899
4900 2008-06-30  Joey Ye  <joey.ye@intel.com>
4901             H.J. Lu  <hongjiu.lu@intel.com>
4902
4903         * global.c (compute_regsets): Set frame_pointer_needed here.
4904         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
4905
4906 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
4907
4908         * doc/install.texi (specific): Expand Windows build notes.
4909
4910 2008-06-30  Ira Rosen  <irar@il.ibm.com>
4911
4912         PR tree-optimization/36648
4913         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
4914         number of prolog iterations by step. Fix the comment.
4915
4916 2008-06-30  Richard Guenther  <rguenther@suse.de>
4917
4918         PR middle-end/36671
4919         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
4920         handle calls from ECF_MALLOC functions.
4921         (handle_pure_call): ECF_MALLOC functions do not return
4922         call-used memory.
4923         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
4924
4925 2008-06-29  Andreas Schwab  <schwab@suse.de>
4926
4927         * config/m68k/m68k.c (print_operand): Always print a float
4928         constant in hex.
4929         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
4930         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
4931         Remove macros.
4932
4933         * config/rs6000/x-linux64: Remove never used file.
4934
4935 2008-06-29  Richard Guenther  <rguenther@suse.de>
4936
4937         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
4938         prototype.
4939         (struct alias_info): Move ...
4940         * tree-ssa-alias.c: ... here.
4941         (update_alias_info): Declare.
4942         (compute_may_aliases): Call it.
4943         (update_alias_info): New function.
4944         * tree-ssa-structalias.c (update_alias_info): Move ...
4945         * tree-ssa-alias.c (update_alias_info_1): ... here.
4946         * tree-ssa-structalias.c (process_constraint_1): Remove
4947         unused from_call argument.  Rename to ...
4948         (process_constraint): ... this.  Delete old wrapper.
4949         (make_constraint_to): Adjust callers.
4950         (handle_const_call): Likewise.
4951         (handle_pure_call): Likewise.
4952         (init_base_vars): Likewise.
4953         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
4954         (find_func_aliases): We don't need structure copies for
4955         complex types.
4956         (make_constraint_from_anything): Remove.
4957         (create_variable_info_for): For globals make constraints
4958         from escaped, not from anything.
4959         (compute_points_to_sets): Do not call update_alias_info.
4960         (ipa_pta_execute): Use make_constraint_from.
4961
4962 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4963
4964         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
4965         (bitmap.o-warn, dominance.o-warn): New.
4966         * configure.ac (cxx_compat_warn): Delete.
4967         (loose_warn): Add -Wcast-qual and -Wc++-compat.
4968         * system.h: Remove #pragma diagnostic for -Wcast-qual and
4969         -Wc++-compat.
4970         * configure: Regenerate.
4971
4972         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
4973         warnings.
4974
4975 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4976
4977         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
4978         * df-scan.c (df_notes_rescan): Likewise.
4979         * ggc-page.c (set_page_table_entry): Likewise.
4980         * intl.c (gcc_gettext_width): Likewise.
4981         * varasm.c (get_unnamed_section, get_noswitch_section,
4982         get_section): Likewise.
4983
4984 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
4985
4986         * regrename.c (build_def_use): Don't copy RTX.
4987
4988 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
4989
4990         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
4991         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
4992         punctuation.  Use @ref instead of @xref.
4993         (Function Names): Remove stray @display/@end display.
4994         (C++ Attributes): Use @ref instead of @xref.
4995         (Deprecated Features): Fix punctuation around @xref.
4996         (Backwards Compatibility): Likewise.
4997         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
4998
4999 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
5000
5001         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
5002         constants for E500 double.
5003
5004 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5005
5006         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
5007         element type of const_vector.
5008
5009 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
5010
5011         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
5012         Remove FLAGS_REG clobber from expander pattern.
5013         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
5014         (anddi3, andsi3, andhi3, andqi3): Ditto.
5015         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
5016         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
5017         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
5018         (ashlsi3, ashlhi3, ashlqi3): Ditto.
5019         (ashrsi3, ashrhi3, ashrqi3): Ditto.
5020         (lshrsi3, lshrhi3, lshrqi3): Ditto.
5021         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
5022         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
5023
5024 2008-06-28  Richard Guenther  <rguenther@suse.de>
5025
5026         * tree-ssa-structalias.c (callused_id, var_callused,
5027         callused_tree): Add.
5028         (handle_pure_call): New function.
5029         (find_func_aliases): Call it.
5030         (find_what_p_points_to): Handle the call-used set.
5031         (clobber_what_escaped): Likewise.
5032         (compute_call_used_vars): New function.
5033         (init_base_vars): Init the call-used variable.
5034         (do_sd_constraint): Do not propagate the solution from CALLUSED
5035         but use CALLUSED as a placeholder.
5036         (solve_graph): Likewise.
5037         * tree-flow-inline.h (gimple_call_used_vars): New function.
5038         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
5039         (compute_call_used_vars): Declare.
5040         * tree-ssa-alias.c (set_initial_properties): Call
5041         compute_call_used_vars.
5042         (reset_alias_info): Clear call-used variables.
5043         (add_call_clobber_ops): Assert we are not called for const/pure
5044         functions.  Remove handling of them.
5045         (add_call_read_ops): Handle pure functions by adding the
5046         call-used set of variables as VUSEs.
5047         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
5048         (delete_tree_ssa): Free it.
5049         * tree-dfa.c (remove_referenced_var): Clear the var from the
5050         call-used bitmap.
5051
5052 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
5053
5054         * tree.c (build_varargs_function_type_list): New.
5055         (build_function_type_list_1): New.
5056         (build_function_type_list): Use build_function_type_list_1.
5057         * tree.h (build_varargs_function_type_list): New.
5058
5059 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5060
5061         PR target/34856
5062         * config/spu/spu.c (spu_builtin_splats): Do not generate
5063         invalid CONST_VECTOR expressions.
5064         (spu_expand_vector_init): Likewise.
5065
5066 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
5067
5068         * optabs.c (libfunc_decls): New variable.
5069         (libfunc_decl_hash, libfunc_decl_eq): New functions.
5070         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
5071         for the same function twice.
5072
5073 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
5074
5075         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
5076         ix86_expand_binary_operator directly.
5077         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
5078         for operand 2.
5079         (*ashrti3_1): Ditto.
5080         (*lshrti3_1): Ditto.
5081         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
5082         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
5083         using only one splitter.  Conditionaly execute splitter before or
5084         after peephole2 pass.
5085         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
5086         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
5087         Use only one alternative in asm template.
5088         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
5089         in asm template.
5090         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
5091         "J" operand constraint for operand 2.
5092         (*ashldi3_cconly_rex64): Ditto.
5093         (*ashrdi3_cmp_rex64): Ditto.
5094         (*ashrdi3_cconly_rex64): Ditto.
5095         (*lshrdi3_cmp_rex64): Ditto.
5096         (*lshrdi3_cconly_rex64): Ditto.
5097         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
5098         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
5099         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
5100         gen_x86_shrd_1.
5101
5102 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
5103
5104         * gimplify.c (omp_is_private): Don't return true if decl is not
5105         already private on #pragma omp for or #pragma omp parallel for.
5106
5107         PR debug/36617
5108         * tree-cfg.c (struct move_stmt_d): Replace block field with
5109         orig_block and new_block fields.
5110         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
5111         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
5112         (move_block_to_fn): Replace vars_map and new_label_map arguments
5113         with struct move_stmt_d pointer.
5114         (replace_block_vars_by_duplicates): New function.
5115         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
5116         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
5117         all subblocks of ORIG_BLOCK to the new function.  Call
5118         replace_block_vars_by_duplicates.
5119         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
5120         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
5121         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
5122         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
5123         (expand_omp): Temporarily set input_location to the location of
5124         region's controlling stmt.
5125         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
5126         BIND_EXPR, push ctx->block_vars and gimplification vars into
5127         the BIND_EXPR and its block's BLOCK_VARS instead of directly
5128         into dest function.
5129         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
5130         there are any BLOCK_VARS.
5131         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
5132         OMP_PARALLEL or OMP_TASK stmt.
5133         (lower_omp): Save and restore input_location around the lower_omp_1
5134         call.
5135
5136 2008-06-27  Richard Guenther  <rguenther@suse.de>
5137
5138         PR tree-optimization/36400
5139         PR tree-optimization/36373
5140         PR tree-optimization/36344
5141         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
5142         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
5143         (update_alias_info): Remove call clobbering code.
5144         (make_constraint_to): New helper function.
5145         (make_escape_constraint): Likewise.
5146         (handle_rhs_call): Use it on all pointer containing arguments.
5147         Also mark the static chain escaped.
5148         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
5149         instead of ANYTHING.
5150         (make_constraint_from): New helper split out from ...
5151         (make_constraint_from_anything): ... here.
5152         (find_func_aliases): Add constraints for escape sites.
5153         (intra_create_variable_infos): Make constraints from NONLOCAL
5154         for parameters.
5155         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
5156         as ANYTHING.
5157         (clobber_what_p_points_to): Remove.
5158         (clobber_what_escaped): New function.
5159         (init_base_vars): Init NONLOCAL and ESCAPED.
5160         (do_sd_constraint): Do not propagate the solution from ESCAPED
5161         but use ESCAPED as a placeholder.
5162         (solve_graph): Likewise.
5163         * tree-flow.h (clobber_what_p_points_to): Remove.
5164         (clobber_what_escaped): Declare.
5165         * tree-ssa-alias.c (set_initial_properties): Call it.
5166         Remove code clobbering escaped pointers.
5167
5168 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
5169
5170         * function.c (allocate_struct_function): Only allocate a unique
5171         funcdef_no if the decl is nonzero.
5172
5173 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
5174
5175         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
5176         * config/mips/mips.c (mips_split_const_insns): New function.
5177         * config/mips/mips.md (move_type): New attribute.
5178         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
5179         (dword_mode): New attribute.
5180         (type): Avoid long line.  Map "move_type"s to "type"s,
5181         choosing "multi" for doubleword moves if appropriate.
5182         Swap MTC/MFC comments to match their declaration order.
5183         (extended_mips16): Default to "yes" if "move_type" is "sll0",
5184         "type" is "branch" or "jal" is "direct".
5185         (length): Handle "extended_mips16" first.  Make the default
5186         "0" for "ghost" instructions.  Set the length from "move_type".
5187         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
5188         of "type", with "sll0" for the register alternative.  Remove the
5189         "extended_mips16" attribute.
5190         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
5191         of "type", with "shift_shift" for the register alternative.
5192         Remove the "length" attribute.
5193         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
5194         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
5195         of "type", with "andi" for the register alternative.
5196         (*zero_extendqihi2): Likewise.
5197         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
5198         of "andi" instead of a "type" of "arith".
5199         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
5200         instead of "type".
5201         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
5202         (mov_<store>r, *mov<mode>_ra): Likewise.
5203         (extendsidi2): Use "move_type" instead of "type", with "move"
5204         for the register alternative.
5205         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
5206         of "type", with "signext" for the register alternative.
5207         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
5208         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
5209         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
5210         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
5211         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
5212         (unnamed branch insn): Likewise.
5213         (*movdi_gp32_fp64): Fold into...
5214         (*movdi_32bit): ...here.
5215         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
5216         (*movdf_hardfloat): ...this new pattern.
5217         (*movdf_softfloat): Remove redundant FPR alternatives.
5218         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
5219         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
5220         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
5221         the "move" attribute.
5222         (*movdi_32bit): Use "move_type" instead of "type" and remove the
5223         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
5224         and "store" for COP loads and stores.
5225         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
5226         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
5227         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
5228         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
5229         (*movtf_mips16, *movv2sf): Likewise.
5230         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
5231         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
5232         (mfhc1<mode>): Use "move_type" instead of "move".
5233         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
5234         (loadgp_blockage): Remove the "length" attribute.
5235         (blockage, set_got_version, update_got_version): Likewise.
5236         (call_internal): Remove the "extended_mips16" attribute.
5237         (call_value_internal, call_value_multiple_internal): Likewise.
5238         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
5239         instead of "move".
5240         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
5241         the "length" attribute.
5242
5243 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5244
5245         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
5246         -Wcast-qual warnings.
5247         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
5248         handle_pragma_pop_macro): Likewise.
5249         * collect2.c (resolve_lib_name): Likewise.
5250         * config/arc/arc.c (arc_init): Likewise.
5251         * config/arm/arm.c (neon_builtin_compare,
5252         locate_neon_builtin_icode): Likewise.
5253         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
5254         * config/bfin/bfin.c (bfin_init_machine_status,
5255         bfin_optimize_loop): Likewise.
5256         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
5257         * config/cris/cris.c (cris_init_expanders): Likewise.
5258         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
5259         * config/darwin.c (machopic_indirection_eq,
5260         machopic_indirection_name, machopic_output_indirection): Likewise.
5261         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
5262         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
5263         frv_optimize_membar): Likewise.
5264         * config/i386/cygwin.h (mingw_scan,
5265         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
5266         * config/i386/cygwin1.c (mingw_scan): Likewise.
5267         * config/i386/i386.c (machopic_output_stub): Likewise.
5268         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
5269         i386_pe_unique_section): Likewise.
5270         * config/ia64/ia64.c (ia64_init_machine_status,
5271         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
5272         Likewise.
5273         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
5274         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
5275         * config/m68k/m68k.c (m68k_handle_option,
5276         m68k_sched_md_init_global): Likewise.
5277         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
5278         mcore_unique_section): Likewise.
5279         * config/mips/mips.c (mips_block_move_straight,
5280         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
5281         Likewise.
5282         * config/mmix/mmix.c (mmix_init_machine_status,
5283         mmix_encode_section_info): Likewise.
5284         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
5285         * config/rs6000/rs6000.c (rs6000_init_machine_status,
5286         print_operand_address, output_toc, redefine_groups,
5287         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
5288         * config/s390/s390.c (s390_init_machine_status): Likewise.
5289         * config/score/score.c (score_block_move_straight,
5290         score_block_move_loop_body): Likewise.
5291         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
5292         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5293         * emit-rtl.c (find_auto_inc): Likewise.
5294         * gcc.c (translate_options, process_command): Likewise.
5295         * reorg.c (dbr_schedule): Likewise.
5296         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
5297         * xcoffout.c (xcoffout_declare_function): Likewise.
5298
5299 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
5300
5301         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
5302         ipa-pta working again.
5303
5304 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
5305
5306         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
5307         genautomata.
5308
5309 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
5310
5311         * config.gcc (powerpc*-*-*): Add new core e500mc.
5312         * config/rs6000/e500mc.md: New file.
5313         * config/rs6000/rs6000.c (processor_costs): Add new costs for
5314         e500mc.
5315         (rs6000_override_options): Add e500mc case to
5316         processor_target_table. Altivec and Spe options not allowed
5317         with e500mc. Add isel instruction to e500mc by
5318         default. Initialize rs6000_cost for e500mc.
5319         (rs6000_issue_rate): Set issue rate for e500mc.
5320         * config/rs6000/rs6000.h (processor_type): Add
5321         PROCESSOR_PPCE500MC.
5322         (ASM_CPU_SPEC): Add e500mc.
5323         Set TARGET_ISEL to rs6000_isel.
5324         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
5325         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
5326         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
5327         Include e500mc.md.
5328         * doc/invoke.texi: Add e500mc to list of cpus.
5329
5330 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5331
5332         PR c/34867
5333         * c-lex.c (lex_charconst): Initialize unsignedp.
5334
5335 2008-06-27  Olivier Hainque  <hainque@adacore.com>
5336
5337         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
5338         documented assumptions.
5339
5340 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
5341
5342         * dwarf2out.c: Remove trailing white spaces.  Break long line
5343         in comments.
5344
5345 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
5346
5347         * libfuncs.h (LTI_synchronize): New libfunc_index.
5348         (synchronize_libfunc): Declare.
5349         * builtins.c (expand_builtin_synchronize): Consider using
5350         synchronize_libfunc before falling back on an asm blockage.
5351         * config/mips/mips.c: Include libfuncs.h
5352         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
5353
5354 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
5355
5356         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
5357         parameter.  Copy stack_reg to r11 where appropriate.
5358         (no_global_regs_above): Add gpr parameter.
5359         (rs6000_stack_info): Only add padding for SPE save area if we
5360         are saving SPE GPRs and CR.
5361         (saveres_routine_syms): New variable.
5362         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
5363         Define.
5364         (rs6000_savres_routine_sym): New function.
5365         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
5366         split out of...
5367         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
5368         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
5369         Tweak FPR out-of-line saving.
5370         (rs6000_make_savres_rtx): New function.
5371         (rs6000_use_multiple_p): New function.
5372         (rs6000_savres_strategy): New function.
5373         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
5374         out-of-line if appropriate.
5375         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
5376         if we are optimizing for size.
5377         (GP_SAVE_INLINE): Define.
5378         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
5379         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
5380         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
5381         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
5382         (*save_fpregs_<mode>): Add use of r11.
5383         (*restore_gpregs_<mode>): New insn.
5384         (*return_and_restore_gpregs_<mode>): New insn.
5385         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
5386         use r11.
5387         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
5388         (*restore_gpregs_spe): New insn.
5389         (*return_and_restore_gpregs_spe): New insn.
5390         * config/rs6000/predicates.md (save_world_operation): Fix check.
5391
5392 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
5393
5394         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
5395         this point, so assert that.
5396
5397 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
5398
5399         * cfganal.c: Include vec.h and vecprim.h.
5400         (compute_idf): Import from...
5401         * tree-into-ssa (compute_idf): ...here.
5402         * basic-block.h (compute_idf): Export.
5403
5404 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
5405
5406         * c-decl.c (merge_decls): Use !current_function_decl to check for
5407         extern declaration of C99 inline function being at file scope.
5408
5409 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
5410
5411         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
5412
5413 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5414
5415         * alias.c (record_alias_subset, init_alias_analysis): Fix
5416         -Wc++-compat and/or -Wcast-qual warnings.
5417         * attribs.c (lookup_attribute_spec): Likewise.
5418         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
5419         copy_bb, connect_traces,
5420         find_rarely_executed_basic_blocks_and_cr): Likewise.
5421         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
5422         note_btr_set, migrate_btr_defs): Likewise.
5423         * builtins.c (result_vector, expand_builtin_memcpy,
5424         expand_builtin_mempcpy_args, expand_builtin_strncpy,
5425         builtin_memset_read_str, expand_builtin_printf,
5426         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
5427         Likewise.
5428         * caller-save.c (mark_set_regs): Likewise.
5429         * calls.c (expand_call, emit_library_call_value_1): Likewise.
5430         * cgraph.c (cgraph_edge): Likewise.
5431         * combine.c (likely_spilled_retval_1): Likewise.
5432         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
5433         htab_counts_entry_del, get_coverage_counts): Likewise.
5434         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
5435         new_cselib_val): Likewise.
5436         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
5437         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
5438         Likewise.
5439         * df-core.c (df_compact_blocks): Likewise.
5440         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
5441         * df-scan.c (df_grow_reg_info, df_ref_create,
5442         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
5443         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
5444         df_record_entry_block_defs, df_record_exit_block_uses,
5445         df_bb_verify): Likewise.
5446         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
5447         DF_REF_EXTRACT_MODE_CONST): New.
5448         * dominance.c (get_immediate_dominator, get_dominated_by,
5449         nearest_common_dominator, root_of_dom_tree,
5450         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
5451         -Wc++-compat and/or -Wcast-qual warnings.
5452         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
5453         record_store, replace_read, check_mem_read_rtx, scan_insn,
5454         dse_step1, dse_record_singleton_alias_set): Likewise.
5455         * dwarf2asm.c (dw2_force_const_mem): Likewise.
5456
5457 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5458
5459         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
5460         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
5461         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
5462         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
5463         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
5464         add_ranges_num, add_ranges_by_labels, file_info_cmp,
5465         file_name_acquire, output_file_names, add_const_value_attribute,
5466         premark_used_types_helper, file_table_eq, file_table_hash,
5467         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
5468         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
5469         -Wcast-qual warnings.
5470         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
5471         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
5472         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
5473         gen_reg_rtx, start_sequence, init_emit): Likewise.
5474         * et-forest.c (et_new_occ, et_new_tree): Likewise.
5475         * except.c (init_eh_for_function, gen_eh_region,
5476         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
5477         arh_to_landing_pad, arh_to_label, add_action_record,
5478         add_call_site, switch_to_exception_section): Likewise.
5479         * expmed.c (synth_mult): Likewise.
5480         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
5481         store_expr): Likewise.
5482         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
5483         Likewise.
5484         * function.c (assign_stack_temp_for_type,
5485         allocate_struct_function, match_asm_constraints_1): Likewise.
5486         * gcov-io.c (gcov_allocate): Likewise.
5487         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
5488         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
5489         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
5490         record_one_set, insert_expr_in_table, insert_set_in_table,
5491         dump_hash_table, compute_hash_table_work, alloc_hash_table,
5492         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
5493         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
5494         -Wcast-qual warnings.
5495
5496 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5497
5498         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
5499         -Wcast-qual warnings.
5500         * gcc.c (process_command): Likewise.
5501         * genattrtab.c (oballoc): Use XOBNEW.
5502         (oballocvec): Define.
5503         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
5504         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
5505         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
5506         -Wc++-compat and/or -Wcast-qual warnings.
5507         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
5508         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
5509         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
5510         gen_presence_absence_set, gen_automaton, gen_regexp_el,
5511         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
5512         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
5513         add_excls, process_presence_absence_names,
5514         process_presence_absence_patterns, add_presence_absence,
5515         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
5516         get_free_state, add_arc, get_free_automata_list_el,
5517         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
5518         transform_3, cache_presence, create_ainsns, create_automata,
5519         create_state_ainsn_table, dfa_insn_code_enlarge,
5520         output_trans_func, output_min_issue_delay_func,
5521         output_dead_lock_func, output_reset_func,
5522         output_get_cpu_unit_code_func, output_dfa_start_func,
5523         expand_automata): Likewise.
5524         * genextract.c (gen_insn): Likewise.
5525         * gengtype-lex.l: Likewise.
5526         * gengtype.c (read_input_list, adjust_field_type,
5527         process_gc_options): Likewise.
5528         * genoutput.c (note_constraint): Likewise.
5529         * genpreds.c (mangle, add_constraint): Likewise.
5530         * genrecog.c (process_define_predicate, new_decision,
5531         add_to_sequence): Likewise.
5532         * gensupport.c (record_insn_name): Likewise.
5533
5534 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5535
5536         * config/i386/driver-i386.c (detect_caches_amd,
5537         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
5538         and/or -Wcast-qual warnings.
5539         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
5540         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
5541         gt_pch_save): Likewise.
5542         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
5543         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
5544         * global.c (compute_regsets): Likewise.
5545         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
5546         finish_graph_dump_file): Likewise.
5547         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
5548         unlink_bb_notes): Likewise.
5549         * integrate.c (get_hard_reg_initial_val): Likewise.
5550         * ipa-prop.c (ipa_push_func_to_list): Likewise.
5551         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
5552         * local-alloc.c (update_equiv_regs): Likewise.
5553         * loop-invariant.c (check_invariant_table_size,
5554         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
5555         Likewise.
5556         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
5557         altered_reg_used, mark_altered): Likewise.
5558         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
5559         insert_var_expansion_initialization,
5560         combine_var_copies_in_loop_exit, apply_opt_in_copies,
5561         release_var_copies): Likewise.
5562         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
5563         analyze_matrix_decl, add_allocation_site, analyze_transpose,
5564         analyze_accesses_for_phi_node, check_var_notmodified_p,
5565         check_allocation_function, find_sites_in_func,
5566         record_all_accesses_in_func, transform_access_sites,
5567         transform_allocation_sites): Likewise.
5568         * omp-low.c (new_omp_region, create_omp_child_function_name,
5569         check_omp_nesting_restrictions, check_combined_parallel,
5570         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
5571         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
5572         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
5573         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
5574         Likewise.
5575         * opts-common.c (prune_options): Likewise.
5576         * opts.c (add_input_filename, print_filtered_help,
5577         get_option_state): Likewise.
5578         * params.c (add_params): Likewise.
5579         * passes.c (set_pass_for_id, next_pass_1,
5580         do_per_function_toporder, pass_fini_dump_file): Likewise.
5581         * postreload.c (reload_cse_simplify_operands): Likewise.
5582         * predict.c (tree_predicted_by_p, tree_predict_edge,
5583         clear_bb_predictions, combine_predictions_for_bb): Likewise.
5584
5585 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5586
5587         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
5588         warnings.
5589         * recog.c (check_asm_operands, validate_change_1): Likewise.
5590         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
5591         subst_asm_stack_regs): Likewise.
5592         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
5593         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
5594         * regmove.c (reg_is_remote_constant_p): Likewise.
5595         * regrename.c (regrename_optimize, scan_rtx_reg,
5596         kill_clobbered_value, kill_set_value, kill_autoinc_value):
5597         Likewise.
5598         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
5599         regstat_compute_calls_crossed): Likewise.
5600         * reload1.c (init_reload, new_insn_chain,
5601         has_nonexceptional_receiver, reload, copy_reloads,
5602         calculate_needs_all_insns, init_elim_table): Likewise.
5603         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
5604         * rtl.c (shallow_copy_rtx_stat): Likewise.
5605         * rtlanal.c (parms_set): Likewise.
5606         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
5607         sbitmap_resize, sbitmap_vector_alloc): Likewise.
5608         * sched-ebb.c (earliest_block_with_similiar_load,
5609         add_deps_for_risky_insns): Likewise.
5610         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
5611         schedule_region): Likewise.
5612         * see.c (eq_descriptor_pre_extension,
5613         hash_descriptor_pre_extension, hash_del_pre_extension,
5614         eq_descriptor_properties, hash_descriptor_properties,
5615         hash_del_properties, see_seek_pre_extension_expr,
5616         see_initialize_data_structures, see_print_register_properties,
5617         see_print_pre_extension_expr, see_delete_merged_def_extension,
5618         see_delete_unmerged_def_extension, see_emit_use_extension,
5619         see_pre_delete_extension, see_map_extension, see_commit_changes,
5620         see_analyze_merged_def_local_prop,
5621         see_analyze_merged_def_local_prop,
5622         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
5623         see_set_prop_merged_def, see_set_prop_unmerged_def,
5624         see_set_prop_unmerged_use, see_print_one_extension,
5625         see_merge_one_use_extension, see_merge_one_def_extension,
5626         see_store_reference_and_extension, see_update_uses_relevancy,
5627         see_update_defs_relevancy): Likewise.
5628         * statistics.c (hash_statistics_hash, hash_statistics_eq,
5629         hash_statistics_free, curr_statistics_hash): Likewise.
5630         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
5631         expand_asm_operands, expand_return, case_bit_test_cmp,
5632         expand_case): Likewise.
5633         * stor-layout.c (start_record_layout): Likewise.
5634         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
5635         gt_pch_save_stringpool): Likewise.
5636         * tree-data-ref.c (hash_stmt_vertex_info,
5637         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
5638         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
5639
5640 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
5641
5642         PR target/36627
5643         * config/i386/i386.md : Change constraints of HImode and QImode
5644         immediate operands from "i" to "n".  Change SImode "ni" constraint to
5645         "i" and SImode "rmi" constraint to "g".  Remove all constraints
5646         from const0_operand and const1_operand predicated operands.
5647         (i): Change QImode and HImode attribute from "i" to "n".
5648         (*subqi_2): Change HImode operands to QImode.
5649         (*subqi_3): Ditto.
5650
5651 2008-06-25  Olivier Hainque  <hainque@adacore.com>
5652
5653         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
5654         sed substitutions.
5655
5656 2008-06-25  Richard Guenther  <rguenther@suse.de>
5657
5658         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
5659         not overflow the result type.
5660
5661 2008-06-25  Richard Guenther  <rguenther@suse.de>
5662
5663         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
5664         (vn_lookup): Likewise.
5665
5666 2008-06-25  Richard Guenther  <rguenther@suse.de>
5667
5668         PR tree-optimization/35518
5669         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
5670         * tree-sra.c (instantiate_element): Use fold_build3 to build
5671         BIT_FIELD_REFs.
5672         (try_instantiate_multiple_fields): Likewise.
5673
5674 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5675
5676         * config/rs6000/rs6000.md: Change all string instruction's clobber to
5677         be early clobbers.
5678
5679 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5680
5681         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
5682         use_backchain_to_restore_sp to true
5683         if the offset of the link register save area would go over the 32k - 1
5684         offset limit of the load
5685         instructions.
5686
5687 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
5688
5689         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
5690         anchor for the type-punning blurb.  Cross-reference "Structures
5691         unions enumerations and bit-fields implementation".  Provide a
5692         cast-through-pointer example.  Make final sentence self-contained.
5693         * doc/implement-c.texi (Structures unions enumerations and
5694         bit-fields implementation): Cross-reference the type-punning blurb
5695         in the -fstrict-aliasing documentation.
5696
5697 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5698
5699         PR middle-end/36594
5700         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
5701         the memory instead of the memory itself for the save area.
5702
5703 2008-06-24  Olivier Hainque  <hainque@adacore.com>
5704             Nicolas Roche  <roche@adacore.com>
5705
5706         * gengtype.c (srcdir_len): size_t instead of int.
5707         (get_file_realbasename): New function.  For F a filename, the real
5708         basename of F, with all the path components stripped.
5709         (get_file_srcdir_relative_path): New function.  For F a filename, the
5710         relative path to F from $(srcdir).
5711         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
5712         get_file_realbasename.  Adjust the head comment.
5713         (get_prefix_langdir_index): New function. For F a filename, return the
5714         lang_dir_names[] relative index of the language directory that is
5715         a prefix in F.
5716         (get_file_langdir): For F a filename, return the name of the language
5717         directory where F is located.
5718         (get_file_gtfilename): New function. The gt- output file name for an
5719         input filename F.
5720         (get_output_file_with_visibility): Replace in-line computations with
5721         uses of get_file_gtfilename and get_prefix_langdir_index.
5722         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
5723
5724 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
5725
5726         PR tree-optimization/36504
5727         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
5728         references without base address.
5729
5730 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
5731
5732         PR middle-end/36584
5733         * calls.c (expand_call): Increase alignment for recursive functions.
5734
5735 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
5736
5737         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
5738         (TARGET_FUNCTION_VALUE): New define.
5739         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
5740         * config/avr/avr.h (FUNCTION_VALUE): Remove.
5741
5742 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
5743
5744         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
5745         (fmod<mode>3): Ditto.
5746         (remainderxf3): Ditto.
5747         (remainder<mode>3): Ditto.
5748
5749 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
5750
5751         PR target/36533
5752         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
5753         REG is a hard register.
5754
5755         PR tree-optimization/36508
5756         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
5757         499, don't check it at all in release compilers.
5758
5759 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
5760
5761         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
5762         together with SSE_TARGET_MATH to disable insn pattern.
5763         (*fop_<MODEF:mode>_2_i387): Ditto.
5764         (*fop_<MODEF:mode>_3_i387): Ditto.
5765
5766 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
5767
5768         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
5769
5770 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5771
5772         PR middle-end/34906
5773         * gimplify.c (gimplify_asm_expr): Check the return code of
5774         parse_output_constraint call, set function return and is_inout
5775         value if it failed.
5776
5777 2008-06-22  Ian Lance Taylor  <iant@google.com>
5778
5779         * c-lex.c (narrowest_unsigned_type): Change itk to int.
5780         (narrowest_signed_type): Likewise.
5781         * c-typeck.c (c_common_type): Change local variable mclass to enum
5782         mode_class, twice.
5783         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
5784         tcc_comparison, not the tree code itself.
5785         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
5786         (c_expand_expr): Cast modifier to enum expand_modifier.
5787         * c-common.h (C_RID_CODE): Add casts.
5788         (C_SET_RID_CODE): Define.
5789         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
5790         (c_lex_one_token): Add cast to avoid warning.
5791         (c_parser_objc_type_name): Rename local typename to type_name.
5792         (check_no_duplicate_clause): Change code parameter to enum
5793         omp_clause_code.
5794         (c_parser_omp_var_list_parens): Change kind parameter to enum
5795         omp_clause_code.
5796         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
5797         c_parser_omp_list_var_parens.
5798         (c_parser_omp_threadprivate): Likewise.
5799         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
5800         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
5801         * c-format.c (NO_FMT): Define.
5802         (printf_length_specs): Use NO_FMT.
5803         (asm_fprintf_length_specs): Likewise.
5804         (gcc_diag_length_specs): Likewise.
5805         (scanf_length_specs): Likewise.
5806         (strfmon_length_specs): Likewise.
5807         (gcc_gfc_length_specs): Likewise.
5808         (printf_flag_specs): Change 0 to STD_C89.
5809         (asm_fprintf_flag_specs): Likewise.
5810         (gcc_diag_flag_specs): Likewise.
5811         (gcc_cxxdiag_flag_specs): Likewise.
5812         (scanf_flag_specs): Likewise.
5813         (strftime_flag_specs): Likewise.
5814         (strfmon_flag_specs): Likewise.
5815         (print_char_table): Likewise.
5816         (asm_fprintf_char_table): Likewise.
5817         (gcc_diag_char_table): Likewise.
5818         (gcc_tdiag_char_table): Likewise.
5819         (gcc_cdiag_char_table): Likewise.
5820         (gcc_cxxdiag_char_table): Likewise.
5821         (gcc_gfc_char_table): Likewise.
5822         (scan_char_table): Likewise.
5823         (time_char_table): Likewis.
5824         (monetary_char_table): Likewise.
5825         * c-format.h (BADLEN): Likewise.
5826
5827 2008-06-21  Ian Lance Taylor  <iant@google.com>
5828
5829         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
5830         Define END_OF_BASE_TREE_CODES around inclusion.
5831         * tree.c (tree_code_type): New global array.
5832         (tree_code_length, tree_code_name): Likewise.
5833         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
5834         $(lang_tree_files).
5835         (all-tree.def, s-alltree): New targets.
5836         (gencheck.h, s-gencheck): Remove.
5837         (tree.o): Depend upon all-tree.def.
5838         (build/gencheck.o): Remove gencheck.h dependency.
5839         (mostlyclean): Don't remove gencheck.h.
5840         * c-common.h (enum c_tree_code): Remove.
5841         * c-lang.c (tree_code_type): Remove.
5842         (tree_code_length, tree_code_name): Remove.
5843         * gencheck.c (tree_codes): Include all-tree.def, rather than
5844         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
5845         after it is used.
5846         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
5847         than tree.def.
5848         * cp/cp-tree.h (enum cplus_tree_code): Remove.
5849         (operator_name_info): Size to MAX_TREE_CODES.
5850         (assignment_operator_name_info): Likewise.
5851         * cp/cp-lang.c (tree_code_type): Remove.
5852         (tree_code_length, tree_code_name): Remove.
5853         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
5854         (assignment_operator_name_info): Likewise.
5855         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
5856         MAX_TREE_CODES.
5857         * cp/mangle.c (write_expression): Likewise.
5858         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
5859         * fortran/f95-lang.c (tree_code_type): Remove.
5860         (tree_code_length, tree_code_name): Remove.
5861         * java/java-tree.h (enum java_tree_code): Remove.
5862         * java/lang.c (tree_code_type): Remove.
5863         (tree_code_length, tree_code_name): Remove.
5864         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
5865         * objc/objc-act.h (enum objc_tree_code): Remove.
5866         * objc/objc-lang.c (tree_code_type): Remove.
5867         (tree_code_length, tree_code_name): Remove.
5868         * objcp/objcp-lang.c (tree_code_type): Remove.
5869         (tree_code_length, tree_code_name): Remove.
5870         * ada/ada-tree.h (enum gnat_tree_code): Remove.
5871         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
5872         * ada/misc.c (tree_code_type): Remove.
5873         (tree_code_length, tree_code_name): Remove.
5874
5875 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
5876
5877         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
5878         the grand_bitmap_obstack.
5879
5880 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5881
5882         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
5883         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
5884         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
5885         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
5886         move_stmt_r, new_label_mapper): Likewise.
5887         * tree-complex.c (cvc_lookup): Likewise.
5888         * tree-dfa.c (create_function_ann): Likewise.
5889         * tree-dump.c (dump_register): Likewise.
5890         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
5891         find_phi_replacement_condition): Likewise.
5892         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
5893         tree_function_versioning): Likewise.
5894         * tree-into-ssa.c (cmp_dfsnum): Likewise.
5895         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
5896         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
5897         get_nonlocal_debug_decl, convert_nonlocal_reference,
5898         convert_nonlocal_omp_clauses, get_local_debug_decl,
5899         convert_local_reference, convert_local_omp_clauses,
5900         convert_nl_goto_reference, convert_nl_goto_receiver,
5901         convert_tramp_reference, convert_call_expr): Likewise.
5902         * tree-outof-ssa.c (contains_tree_r): Likewise.
5903         * tree-parloops.c (reduction_phi, initialize_reductions,
5904         eliminate_local_variables_1, add_field_for_reduction,
5905         add_field_for_name, create_phi_for_local_result,
5906         create_call_for_reduction_1, create_loads_for_reductions,
5907         create_stores_for_reduction, create_loads_and_stores_for_name):
5908         Likewise.
5909         * tree-phinodes.c (allocate_phi_node): Likewise.
5910         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
5911         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
5912         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
5913         * tree-ssa-coalesce.c (compare_pairs): Likewise.
5914         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
5915         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
5916         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
5917         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
5918         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
5919         vn_nary_op_insert): Likewise.
5920         * tree-ssa.c (redirect_edge_var_map_add,
5921         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
5922         * tree-vectorizer.c (vectorize_loops): Likewise.
5923         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
5924         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
5925         tree_cons_stat, build1_stat, build_variant_type_copy,
5926         decl_init_priority_lookup, decl_fini_priority_lookup,
5927         decl_priority_info, decl_restrict_base_lookup,
5928         decl_restrict_base_insert, decl_debug_expr_lookup,
5929         decl_debug_expr_insert, decl_value_expr_lookup,
5930         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
5931         type_hash_add, get_file_function_name, tree_check_failed,
5932         tree_not_check_failed, tree_range_check_failed,
5933         omp_clause_range_check_failed, build_omp_clause,
5934         build_vl_exp_stat): Likewise.
5935         * value-prof.c (gimple_histogram_value,
5936         gimple_duplicate_stmt_histograms): Likewise.
5937         * var-tracking.c (attrs_list_insert, attrs_list_copy,
5938         unshare_variable, variable_union_info_cmp_pos, variable_union,
5939         dataflow_set_different_1, dataflow_set_different_2,
5940         vt_find_locations, variable_was_changed, set_variable_part,
5941         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
5942         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
5943         section_entry_hash, object_block_entry_eq,
5944         object_block_entry_hash, create_block_symbol,
5945         initialize_cold_section_name, default_function_rodata_section,
5946         strip_reg_name, set_user_assembler_name, const_desc_eq,
5947         build_constant_desc, output_constant_def, lookup_constant_def,
5948         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
5949         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
5950         default_internal_label): Likewise.
5951         * varray.c (varray_init, varray_grow): Likewise.
5952         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
5953
5954 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
5955
5956         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
5957         operators for "test" insn.  Macroize insn using SWI mode macro.
5958         (*jcc_fused_2): Ditto.
5959         (*jcc_fused_3): Macroize insn using SWI mode macro.
5960         (*jcc_fused_4): Ditto.
5961
5962 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
5963
5964         * tree-ssa-pre.c: Fix typo in comment.
5965         (init_antic, fini_antic): Add explicit funtions for
5966         initializing and deinitializing ANTIC and AVAIL sets.
5967         (create_expression_by_pieces): Fix typo in comment.
5968         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
5969         (execute_pre): Eventually dump details about ANTIC_IN.
5970
5971 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5972
5973         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
5974         * gcc.c (translate_options, init_spec, store_arg, read_specs,
5975         add_to_obstack, file_at_path, find_a_file, execute,
5976         add_preprocessor_option, add_assembler_option, add_linker_option,
5977         process_command, insert_wrapper, do_option_spec, do_self_spec,
5978         spec_path, do_spec_1, is_directory, main, used_arg,
5979         getenv_spec_function): Likewise.
5980         * tlink.c (symbol_hash_lookup, file_hash_lookup,
5981         demangled_hash_lookup, symbol_push, file_push, frob_extension):
5982         Likewise.
5983
5984 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
5985
5986         * doc/rtl.texi: Updated subreg section.
5987
5988 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
5989
5990         PR c++/36523
5991         * cgraphunit.c (cgraph_process_new_functions): Don't clear
5992         node->needed and node->reachable.
5993         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
5994         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
5995         (expand_task_call): Don't call expand_task_copyfn.
5996         (expand_task_copyfn): Renamed to...
5997         (finalize_task_copyfn): ... this.
5998
5999 2008-06-19  Jan Hubicka  <jh@suse.cz>
6000
6001         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
6002         clobbering framepointer.
6003
6004 2008-06-19  Jan Hubicka  <jh@suse.cz>
6005
6006         * tree-optimize.c (execute_early_local_optimizations): Set
6007         cgraph_state only at first invocation.
6008
6009 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6010
6011         * system.h (-Wc++-compat): Activate as a warning, no an error.
6012
6013 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
6014
6015         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
6016         instead of "#" in insn asm template.
6017         (*jcc_fused_2): Ditto.
6018
6019 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
6020
6021         * config/i386/i386.h (ix86_tune_indices)
6022         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
6023         (TARGET_FUSE_CMP_AND_BRANCH): New define.
6024         * config/i386/i386.md (*jcc_fused_1): New insn pattern
6025         (*jcc_fused_2): Ditto.
6026         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
6027         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
6028         (print operand): Handle 'E' and 'e' code.
6029
6030 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
6031
6032         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
6033         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
6034         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
6035
6036 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
6037
6038         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
6039         node->decl.
6040         (cgraph_expand_function): Use local copy of decl.
6041         (cgraph_expand_all_functions): Remove redundant initialization of
6042         order_pos.
6043         (cgraph_optimize): Reword internal_error message.
6044
6045 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
6046
6047         * arm-protos.h (arm_return_in_memory): Remove public
6048         arm_return_in_memory() prototype.
6049         * arm.c (arm_return_in_memory): Add static prototype, add target
6050         hook macro, change definition and comments.
6051         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
6052
6053 2008-06-19  Ben Elliston  <bje@au.ibm.com>
6054
6055         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
6056         real.c: Remove references to IEEE 754R.
6057         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
6058         * doc/libgcc.texi (Decimal float library routines): Likewise.
6059
6060 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6061
6062         * targhooks.h (struct gcc_target): New member unwind_word_mode.
6063         (default_unwind_word_mode): Add prototype.
6064         * targhooks.c (default_unwind_word_mode): New function.
6065         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
6066         instead of word_mode.
6067         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
6068         (TARGET_INITIALIZER): Use it.
6069
6070         * c-common.c (handle_mode_attribute): Support "unwind_word"
6071         mode attribute.
6072         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
6073
6074         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
6075         word_mode to access SjLj_Function_Context member "data".
6076         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
6077         conversion from targetm.eh_return_filter_mode () to
6078         targetm.unwind_word_mode () if they differ.
6079
6080         * builtin-types.def (BT_UNWINDWORD): New primitive type.
6081         (BT_FN_UNWINDWORD_PTR): New function type.
6082         (BT_FN_WORD_PTR): Remove.
6083         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
6084         * except.c (expand_builtin_extend_pointer): Convert pointer to
6085         targetm.unwind_word_mode () instead of word_mode.
6086
6087         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
6088         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
6089         (spu_unwind_word_mode): New function.
6090         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
6091         (TARGET_UNWIND_WORD_MODE): Define.
6092         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
6093
6094 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6095
6096         * config/spu/spu.c (reg_align): Remove.
6097         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
6098         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
6099         (spu_split_store): Likewise.
6100
6101 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
6102
6103         * gcc/tree-vn.c: Fix typo in comment.
6104
6105 2008-06-18  Jan Hubicka  <jh@suse.cz>
6106
6107         * cgraphunit.c (cgraph_optimize): Output debug info when doing
6108         toplevel reorder too.
6109
6110 2008-06-18  Jan Hubicka  <jh@suse.cz>
6111
6112         * c-opts.c (c_common_post_options): PCH is not compatible with
6113         no-unit-at-a-time.
6114         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
6115         -fno-toplevel-reorder by default now.
6116
6117 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6118
6119         PR documentation/30739
6120         * doc/install.texi (Prerequisites): Document dependency on awk.
6121
6122 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
6123             Ian Lance Taylor  <iant@google.com>
6124
6125         PR rtl-optimization/35604
6126         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
6127         only want to change jump destinations, not eventual label comparisons.
6128
6129 2008-06-16  Jan Hubicka  <jh@suse.cz>
6130
6131         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
6132         syntax errors.
6133         (cgraph_analyze_function): Likewise.
6134
6135 2008-06-16  Jan Hubicka  <jh@suse.cz>
6136
6137         * cgraph.h (cgraph_mark_if_needed): New function.
6138         * cgraphunit.c (cgraph_mark_if_needed): New function.
6139         * c-decl.c (duplicate_decl): Use it.
6140
6141 2008-06-16  Jan Hubicka  <jh@suse.cz>
6142
6143         * cgraph.c (cgraph_add_new_function): When in expansion state, do
6144         lowering.
6145
6146 2008-06-16  Jan Hubicka  <jh@suse.cz>
6147
6148         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
6149
6150 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
6151             Kazu Hirata  <kazu@codesourcery.com>
6152             Maxim Kuvyrkov  <maxim@codesourcery.com
6153
6154         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
6155         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
6156         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
6157         EXTRA_SPEC_FUNCTIONS.
6158         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
6159         (DRIVER_SELF_SPECS): Adjust.
6160         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
6161         * config/mips/st.h, config/mips/t-st: New.
6162         * config/mips/driver-native.c, config/mips/x-native: New.
6163         * doc/invoke.texi (MIPS): Document 'native' value for -march and
6164         -mtune options.
6165
6166 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6167
6168         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
6169         from it.
6170         (ISA_HAS_FP_CONDMOVE): New macro.
6171         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
6172         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
6173         (ISA_HAS_NMADD3_NMSUB3): New macro.
6174         * config/mips/mips.c (mips_rtx_costs): Update.
6175         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
6176         compiling for ST Loongson 2E/2F.
6177         (madd<mode>): Rename to madd4<mode>.  Update.
6178         (madd3<mode>): New pattern.
6179         (msub<mode>): Rename to msub4<mode>.  Update.
6180         (msub3<mode>): New pattern.
6181         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
6182         (nmadd3<mode>): New pattern.
6183         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
6184         (nmadd3<mode>_fastmath): New pattern.
6185         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
6186         (nmsub3<mode>): New pattern.
6187         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
6188         (nmsub3<mode>_fastmath): New pattern.
6189         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
6190
6191 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
6192
6193         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
6194         (DF_REF_INSN_INFO): New.
6195         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
6196         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
6197         with a NULL DF_REF_INSN_INFO.
6198         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
6199         DF_INSN_SET.
6200         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
6201         DF_INSN_INFO_EQ_USES): New.
6202         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
6203         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
6204         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
6205         * df-core.c: Update comment for above changes.
6206         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
6207         DF_INSN_UID_* macros.
6208         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
6209         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
6210         insn rtx.  Update all callers.
6211         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
6212         df_ref_create_structure, df_insn_refs_collect): Likewise.
6213         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
6214         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
6215         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
6216         macros to access the insn refs.
6217         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
6218         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
6219         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
6220         for accessing the refs.
6221         (try_fwprop_subst): Likewise.
6222         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
6223         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
6224         for accessing the refs.
6225         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
6226         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
6227         to look at the insn refs.
6228         (record_uses): Likewise.
6229         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
6230         function anymore.
6231         (mark_artificial_uses): Don't mark_insn for artificial refs.
6232         (mark_reg_rependencies): Likewise.
6233
6234         * doc/rtl.texi: Remove documentation of ADDRESSOF.
6235
6236 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6237
6238         * configure: Regenerate.
6239
6240 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
6241
6242         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
6243         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6244         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6245
6246 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
6247
6248         * config/avr/avr.c (avr_mcu_t): Add attiny167.
6249         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6250         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6251
6252 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
6253
6254         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
6255         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6256         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6257
6258 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
6259
6260         * tree-ssa-sccvn.c: Fix format of comments.
6261
6262 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
6263
6264         * cgraph.c: Remove unneeded forward declarations of eq_node()
6265         and hash_node().
6266
6267 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
6268
6269         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
6270         REG_RETVAL notes.
6271         (see_update_relevancy): Likewise.
6272         * fwprop.c (try_fwprop_subst): Likewise.
6273         * rtlanal.c (noop_move_p): Likewise.
6274         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
6275         notes to non-existing libcall blocks.
6276         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
6277         Remove orig_set.
6278         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
6279         (dead_libcall_p): Remove.
6280         (delete_trivially_dead_insns): Don't use it.
6281         * web.c (union_defs): Remove comment about keeping nops.
6282         * gcse.c (hash_scan_insn): Don't take libcall pointers.
6283         (compute_hash_table_work): Don't track libcall notes.
6284         (do_local_cprop): Don't take libcall pointers.  Don't update
6285         libcall notes.
6286         (adjust_libcall_notes): Deleted.
6287         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
6288         ever have existed in the first place).
6289         (replace_store_insn): Don't try to remove libcall notes.
6290         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
6291         (resolve_reg_notes): Don't call them.
6292         (resolve_simple_move): Likewise.
6293         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
6294         Don't remove REG_RETVAL notes.
6295         * emit-rtl.c (try_split): Don't update libcall notes.
6296         (emit_copy_of_insn_after): Dito.
6297         * cselib.c (cselib_current_insn_in_libcall): Remove.
6298         (cselib_process_insn): Don't set/clear it.
6299         (new_elt_loc_list): Don't record it.
6300         (cselib_init): Don't initialize it.
6301         * cselib.c (struct elt_loc_list): Remove in_libcall field.
6302         * loop-invariant.c (find_invariant_insn): Don't look for libcall
6303         notes.
6304         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
6305         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
6306         (init_deps): Don't initialize it.
6307         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
6308         * combine.c (delete_noop_moves): Don't update libcall notes.
6309         (can_combine_p): Remove now pointless #if 0 block.
6310         (try_combine): Remove another obsolete #if 0 block.
6311         (distribute_notes): Don't distribute libcall notes.
6312         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
6313         * dce.c (libcall_dead_p): Remove.
6314         (delete_unmarked_insns): Don't handle libcall blocks.
6315         (preserve_libcall_for_dce): Remove.
6316         (prescan_insns_for_dce): Don't special-case libcall block insns.
6317         * reload1 (reload): Don't handle libcall notes.
6318         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
6319         documentation.
6320
6321 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
6322
6323         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
6324         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6325         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6326
6327 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
6328
6329         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
6330         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
6331         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
6332
6333 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6334
6335         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
6336
6337 2008-06-16  Ira Rosen  <irar@il.ibm.com>
6338
6339         PR tree-optimization/36493
6340         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
6341         the arguments list. Use VECTYPE to create vector pointer.
6342         (vectorizable_store): Fail if accesses through a pointer to vectype
6343         do not alias the original memory reference operands.
6344         Call vect_create_data_ref_ptr without the removed argument.
6345         (vectorizable_load): Likewise.
6346         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
6347         removed argument.
6348
6349 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
6350
6351         PR target/36336
6352         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
6353         reg_equiv_constant.
6354
6355 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
6356
6357         * config/mips/loongson2ef.md: New file.
6358         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
6359         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
6360         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
6361         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
6362         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
6363         and loongson_2f.
6364         (loongson2ef.md): New include.
6365         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
6366         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
6367         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
6368         (loongson_gt_<mode>, loongson_extract_halfword)
6369         (loongson_insert_halfword_0, loongson_insert_halfword_2)
6370         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
6371         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
6372         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
6373         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
6374         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
6375         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
6376         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
6377         (vec_interleave_low<mode>): Define type attribute.
6378         * config/mips/mips.c (mips_ls2): New static variable.
6379         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
6380         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
6381         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
6382         Implement target scheduling hooks.
6383         (mips_multipass_dfa_lookahead): Update to handle tuning for
6384         Loongson 2E/2F.
6385         (mips_sched_init): Initialize data for Loongson scheduling.
6386         (mips_ls2_variable_issue): New static function.
6387         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
6388         Add sanity check.
6389         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
6390         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
6391         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
6392         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
6393         Handle ST Loongson 2E/2F cores.
6394         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
6395
6396 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6397
6398         * omp-low.c (extract_omp_for_data): Fix comment typo.
6399         * c.opt: Fix typo.
6400
6401 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6402
6403         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
6404         FIXME note about gcc/config.guess.
6405         * doc/options.texi (Option file format): Remove non-ASCII bytes.
6406         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
6407         * doc/cppopts.texi: Likewise.
6408         * doc/extend.texi: Likewise.
6409         * doc/gcc.texi: Likewise.
6410         * doc/gccint.texi: Likewise.
6411         * doc/gcov.texi: Likewise.
6412         * doc/gty.texi: Likewise.
6413         * doc/hostconfig.texi: Likewise.
6414         * doc/install.texi: Likewise.
6415         * doc/invoke.texi: Likewise.
6416         * doc/loop.texi: Likewise.
6417         * doc/makefile.texi: Likewise.
6418         * doc/md.texi: Likewise.
6419         * doc/passes.texi: Likewise.
6420         * doc/tm.texi: Likewise.
6421         * doc/tree-ssa.texi: Likewise.
6422         * doc/trouble.texi: Likewise.
6423
6424 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
6425             Nathan Sidwell  <nathan@codesourcery.com>
6426             Maxim Kuvyrkov  <maxim@codesourcery.com>
6427             Richard Sandiford  <rdsandiford@googlemail.com>
6428
6429         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
6430         * config/mips/mips-protos.h (mips_expand_vector_init): New.
6431         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
6432         builtins.
6433         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
6434         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
6435         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
6436         V8QImode cases.
6437         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
6438         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
6439         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
6440         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
6441         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
6442         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
6443         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
6444         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
6445         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
6446         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
6447         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
6448         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
6449         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
6450         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
6451         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
6452         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
6453         (mips_builtins): Add Loongson builtins.
6454         (mips_loongson_2ef_bdesc): New.
6455         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
6456         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
6457         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
6458         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
6459         New.
6460         (mips_expand_vector_init): New.
6461         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
6462         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
6463         if appropriate.
6464         * config/mips/mips.md: Add unspec numbers for Loongson
6465         builtins.  Include loongson.md.
6466         (MOVE64): Include Loongson vector modes.
6467         (SPLITF): Include Loongson vector modes.
6468         (HALFMODE): Handle Loongson vector modes.
6469         * config/mips/loongson.md: New.
6470         * config/mips/loongson.h: New.
6471         * config.gcc: Add loongson.h header for mips*-*-* targets.
6472         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
6473
6474 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
6475
6476         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
6477         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
6478         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
6479         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
6480         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
6481         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
6482         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
6483         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
6484         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
6485         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
6486         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
6487         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
6488         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
6489         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
6490         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
6491         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
6492         Remove use_fixproto=yes.
6493         (ia64*-*-hpux*): Remove comment about using fixproto.
6494         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
6495
6496 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6497
6498         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
6499         library rebuilds.
6500         * configure: Regenerate.
6501
6502 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
6503
6504         PR middle-end/36520
6505         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
6506         before evaluating it.
6507
6508 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
6509
6510         PR c/36507
6511         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
6512         nested inline functions.
6513         (start_decl, start_function): Don't invert DECL_EXTERNAL
6514         for nested inline functions.
6515
6516 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
6517
6518         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
6519         splits that must be made for correctness.
6520
6521 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
6522
6523         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
6524         (AVAIL_NON_MIPS16): Likewise.
6525         (mips_builtin_description): Replace target_flags with a predicate.
6526         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
6527         (dspr2_32): New availability predicates.
6528         (MIPS_BUILTIN): New macro.
6529         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
6530         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
6531         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
6532         Replace the TARGET_FLAGS parameters with AVAIL parameters.
6533         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
6534         (mips_dsp_32only_bdesc): Merge into...
6535         (mips_builtins): ...this new array.
6536         (mips_bdesc_map, mips_bdesc_arrays): Delete.
6537         (mips_init_builtins): Update after above changes.
6538         (mips_expand_builtin_1): Merge into...
6539         (mips_expand_builtin): ...here and update after above changes.
6540
6541 2008-06-12  Paul Brook  <paul@codesourcery.com>
6542
6543         * longlong.h (__arm__): Define count_leading_zeros.
6544         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
6545         (clzsi2, clzdi2): New functions.
6546         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
6547         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
6548         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
6549         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
6550         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
6551         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
6552         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
6553         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
6554         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
6555         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
6556
6557 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
6558
6559         * config/m68k/m68k.c (m68k_tune_flags): New.
6560         (override_options): Compute m68k_tune_flags.
6561         (MULL_COST, MULW_COST): Update for various variants of CFV2.
6562         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
6563
6564 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
6565
6566         PR middle-end/36506
6567         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
6568
6569 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
6570
6571         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
6572         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
6573
6574 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
6575
6576         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
6577         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
6578
6579 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
6580
6581         PR middle-end/36506
6582         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
6583         reductions.
6584
6585 2008-06-12  Richard Guenther  <rguenther@suse.de>
6586
6587         PR tree-optimization/36345
6588         * tree-flow.h (struct ptr_info_def): Align escape_mask,
6589         add memory_tag_needed flag.
6590         (may_alias_p): Declare.
6591         * tree-ssa-alias.c (may_alias_p): Export.
6592         (set_initial_properties): Use memory_tag_needed flag.
6593         (update_reference_counts): Likewise.
6594         (reset_alias_info): Reset memory_tag_needed flag.
6595         (create_name_tags): Check memory_tag_needed flag.
6596         (dump_points_to_info_for): Dump it.
6597         * tree-ssa-structalias.c (struct variable_info): Remove
6598         directly_dereferenced flag.
6599         (new_var_info): Do not initialize it.
6600         (process_constraint_1): Do not set it.
6601         (update_alias_info): Set is_dereferenced flag.
6602         (set_uids_in_ptset): Use may_alias_p.
6603         (set_used_smts): Check memory_tag_needed flag.
6604         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
6605         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
6606         memory_tag_needed flag.
6607         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
6608         from broken design.
6609
6610 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
6611
6612         * config/i386/i386.c (ix86_compute_frame_layout): Disable
6613         red zone for w64 abi.
6614         (ix86_expand_prologue): Likewise.
6615         (ix86_force_to_memory): Likewise.
6616         (ix86_free_from_memory): Likewise.
6617
6618 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
6619
6620         PR target/36425
6621         * config/rs6000/rs6000.c (rs6000_override_options): Set
6622         rs6000_isel conditionally to the absence of comand line override.
6623         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
6624         Remove duplicate rs6000_isel setting.
6625         * config/rs6000/eabispe.h: Ditto.
6626
6627 2008-06-11  Richard Guenther  <rguenther@suse.de>
6628
6629         * alias.c (get_alias_set): Use the element alias-set for arrays.
6630         (record_component_aliases): For arrays and vectors do nothing.
6631         * c-common.c (strict_aliasing_warning): Handle the cases
6632         of alias set zero explicitly.
6633         * Makefile.in (dfp.o-warn): Add -Wno-error.
6634
6635 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
6636
6637         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
6638         tune_32 tune_64.
6639         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
6640         tune_32 tune_64 to supported_defaults.  Allow values not
6641         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
6642         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
6643         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
6644         with_cpu_64 to generic for 64-bit-supporting configurations, not
6645         with_cpu.  Remove FIXMEs.
6646         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
6647         --with-arch-64, --with-tune-32, --with-tune-64): Document.
6648         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
6649         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
6650         arch_32 and arch_64.
6651
6652 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
6653             Olivier Hainque  <hainque@adacore.com>
6654
6655         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
6656         Use DECL_SIZE_UNIT to retrieve the size of the field.
6657
6658 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
6659
6660         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
6661         with function calls after declarations.  Lay out
6662         neon_float_type_node before further use.
6663
6664 2008-06-11  Richard Guenther  <rguenther@suse.de>
6665
6666         * tree-flow.h (may_point_to_global_var): Declare.
6667         * tree-ssa-alias.c (may_point_to_global_var): New function.
6668         * tree-ssa-sink.c (is_hidden_global_store): Use it.
6669
6670 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
6671
6672         * configure.ac: Teach that fido supports .debug_line.
6673         * configure: Regenerate.
6674
6675 2008-06-10  Tom Tromey  <tromey@redhat.com>
6676
6677         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
6678         debug hook.
6679
6680 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
6681
6682         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
6683         (encode_decimal64, decode_decimal64, encode_decimal128,
6684         decode_decimal128): Reverse order of 32-bit parts of value if host
6685         and target endianness differ.
6686
6687 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
6688
6689         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
6690         Avoid division by 0.
6691         (tree_mod_pow2_value_transform): Likewise.
6692         (tree_ic_transform): Likewise.
6693         (tree_stringops_transform): Likewise.
6694         (tree_mod_subtract_transform): Likewise.
6695         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
6696         (copy_edges_for_bb): Likewise.
6697         (initialize_cfun): Likewise.
6698
6699 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
6700
6701         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
6702         nonmemory_operand. Add "N" operand constraint.
6703         (*btsi): Ditto.
6704         (*jcc_btdi_mask_rex64): New instruction and split pattern.
6705         (*jcc_btsi_mask): Ditto.
6706         (*jcc_btsi_mask_1): Ditto.
6707
6708 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
6709
6710         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
6711         TYPE_CANONICAL for copied element type.
6712
6713 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
6714
6715         PR target/36473
6716         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
6717         Add m_CORE2 and m_GENERIC.
6718         * config/i386/predicates.md (bt_comparison_operator): New predicate.
6719         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
6720         (*btsi): Ditto.
6721         (*jcc_btdi_rex64): New instruction and split pattern.
6722         (*jcc_btsi): Ditto.
6723         (*jcc_btsi_1): Ditto.
6724         (*btsq): Fix Intel asm dialect operand order.
6725         (*btrq): Ditto.
6726         (*btcq): Ditto.
6727
6728 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
6729
6730         PR middle-end/36447
6731         * simplify-rtx.c (simplify_subreg): Add check for shift count
6732         greater than size.
6733
6734 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
6735
6736         * doc/md.texi: Synchronize with later constraints.md change.
6737         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
6738         with a C implementation.
6739         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
6740         MFLO handling.
6741         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
6742         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
6743         when moving to and from MD_REGNUM.
6744         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
6745         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
6746         Handle byte and halfword moves.
6747         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
6748         separately.
6749         * config/mips/constraints.md (h): Turn into NO_REGS.
6750         (l, x): Update documentation.
6751         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
6752         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
6753         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
6754         (HILO): New mode iterator.
6755         (MOVE128): Add TI.
6756         (any_div): New code iterator.
6757         (u): Extend code attribute to div and udiv.
6758         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
6759         d_operand in the splitters.  Remove redundant CONST_INT checks.
6760         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
6761         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
6762         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
6763         accordingly, using normal moves instead of unspecs to move LO into
6764         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
6765         (<u>mulsidi3): Handle expansion in C code.
6766         (<u>mulsidi3_32bit_internal): Rename to...
6767         (<u>mulsidi3_32bit): ...this.
6768         (<u>mulsidi3_32bit_r4000): Fix insn separator.
6769         (*<u>mulsidi3_64bit): Rename to...
6770         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
6771         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
6772         to set LO and HI to the multiplication result.  Use a normal move
6773         for MFLO and an unspec for MFHI.
6774         (*<u>mulsidi3_64bit_parts): Replace with...
6775         (<u>mulsidi3_64bit_hilo): ...this new instruction.
6776         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
6777         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
6778         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
6779         instead of HI.  Split the instruction into a separate multiplication
6780         and MFHI if !TARGET_FIX_R4000.
6781         (<su>muldi3_highpart): Likewise.
6782         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
6783         and the "=h" clobber.
6784         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
6785         (<u>mulditi3): New expander.
6786         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
6787         (madsi): Remove "=h" clobber.
6788         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
6789         Force the modulus result to be a GPR and split the instruction into
6790         a division followed by an MFHI after reload.
6791         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
6792         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
6793         the MIPS16 HIGH define_split.
6794         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
6795         of acc<->gpr moves to "multi".
6796         (*movdi_64bit): Replace the single "x" alternative with
6797         alternatives for moving into and out of "a".
6798         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
6799         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
6800         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
6801         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
6802         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
6803         (movti): New expander.
6804         (*movti, *movti_mips16): New insns.
6805         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
6806         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
6807         (mthi<GPR:mode>_<HILO:mode>): Likewise.
6808         * config/mips/predicates.md (fpr_operand): Delete.
6809         (d_operand): New predicate.
6810
6811 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
6812
6813         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
6814         failure on some Bourne shells.
6815         (x86_64-*-*): Ditto.
6816
6817 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
6818
6819         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
6820
6821 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
6822
6823         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
6824         (sparc-sun-solaris2*): Likewise.
6825
6826 2008-06-09  Arnaud Charlet  <charlet@adacore.com
6827
6828         * doc/install.texi: Update requirements to build the Ada compiler.
6829
6830 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
6831
6832         * df-scan.c (struct df_scan_problem_data): Remove the
6833         mw_link_pool alloc pool.
6834         (df_scan_free_internal): Don't free it.
6835         (df_scan_alloc): Don't allocate it.
6836         * df.h (struct df_link): Update comment.
6837
6838 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
6839
6840         * except.h: Correct checks for when SJLJ exceptions must be used.
6841
6842 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6843
6844         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
6845         default.
6846
6847 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
6848
6849         PR tree-optimization/36218
6850         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
6851         configure for the build system.
6852         (BUILD_LDFLAGS): Define.
6853         * configure: Regenerate.
6854         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
6855
6856 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
6857
6858         PR target/36424
6859         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
6860         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
6861         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
6862
6863 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
6864
6865         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
6866
6867 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
6868
6869         * config.gcc (Obsolete configurations): Remove list of
6870         configurations.
6871         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
6872         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
6873         targets matched by those patterns.
6874         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
6875         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
6876         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
6877         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
6878         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
6879         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
6880         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
6881         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
6882         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
6883         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
6884         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
6885         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
6886         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
6887         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
6888         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
6889         Make code for Solaris 7 and greater unconditional for Solaris.
6890         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
6891         Remove --with-* handling.
6892         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
6893         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
6894         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
6895         LINK_OS_WINDISS_SPEC): Remove.
6896         * config/rs6000/sysv4.opt (mwindiss): Remove.
6897         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
6898         * configure: Regenerate.
6899         * doc/cpp.texi: Don't mention BeOS.
6900         * doc/extend.texi (interrupt): Don't mention MS1.
6901         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
6902         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
6903         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
6904         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
6905         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
6906         Remove.
6907         * doc/invoke.texi (MT Options): Remove.
6908         (-mwindiss): Remove.
6909         (CRIS Options): Remove cris-axis-aout references.
6910         (HPPA Options): Don't mention hppa1.1-*-pro.
6911         * doc/md.texi: (MorphoTech family): Remove.
6912         * libgcc2.c: Don't handle UWIN.
6913         * config/alpha/t-unicosmk: Remove.
6914         * config/alpha/unicosmk.h: Remove.
6915         * config/arm/kaos-arm.h: Remove.
6916         * config/arm/kaos-strongarm.h: Remove.
6917         * config/arm/strongarm-coff.h: Remove.
6918         * config/arm/strongarm-elf.h: Remove.
6919         * config/arm/strongarm-pe.h: Remove.
6920         * config/arm/t-strongarm-pe: Remove.
6921         * config/arm/t-xscale-coff: Remove.
6922         * config/arm/t-xscale-elf: Remove.
6923         * config/arm/xscale-coff.h: Remove.
6924         * config/arm/xscale-elf.h: Remove.
6925         * config/chorus.h: Remove.
6926         * config/cris/aout.h: Remove.
6927         * config/cris/aout.opt: Remove.
6928         * config/cris/t-aout: Remove.
6929         * config/i386/beos-elf.h: Remove.
6930         * config/i386/kaos-i386.h: Remove.
6931         * config/i386/ptx4-i.h: Remove.
6932         * config/i386/sco5.h: Remove.
6933         * config/i386/sco5.opt: Remove.
6934         * config/i386/sysv4-cpp.h: Remove.
6935         * config/i386/sysv5.h: Remove.
6936         * config/i386/t-beos: Remove.
6937         * config/i386/t-sco5: Remove.
6938         * config/i386/t-uwin: Remove.
6939         * config/i386/uwin.asm: Remove.
6940         * config/i386/uwin.h: Remove.
6941         * config/kaos.h: Remove.
6942         * config/mips/windiss.h: Remove.
6943         * config/mt: Remove directory.
6944         * config/pa/pa-osf.h: Remove.
6945         * config/pa/pa-pro-end.h: Remove.
6946         * config/pa/t-pro: Remove.
6947         * config/ptx4.h: Remove.
6948         * config/rs6000/beos.h: Remove.
6949         * config/rs6000/kaos-ppc.h: Remove.
6950         * config/rs6000/t-beos: Remove.
6951         * config/rs6000/windiss.h: Remove.
6952         * config/sh/kaos-sh.h: Remove.
6953         * config/sol2-6.h: Remove.
6954         * config/sparc/sol26-sld.h: Remove.
6955         * config/sparc/sysv4-only.h: Remove.
6956         * config/vax/bsd.h: Remove.
6957         * config/vax/t-memfuncs: Remove.
6958         * config/vax/ultrix.h: Remove.
6959         * config/vax/vaxv.h: Remove.
6960         * config/windiss.h: Remove.
6961
6962 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
6963
6964         PR rtl-optimization/36438
6965         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
6966         for vector shifts with constant scalar shift operands.
6967
6968 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
6969
6970         * doc/invoke.texi: Document -march=xlr.
6971         * config/mips/xlr.md: New file.
6972         * config/mips/mips.md: Include it.
6973         (cpu): Add "xlr".
6974         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
6975         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
6976         (mips_rtx_cost_data): Likewise.
6977
6978 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
6979
6980         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
6981         PRE_INC and PRE_DEC cases.
6982
6983 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
6984
6985         PR rtl-optimization/36419
6986         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
6987         the emitting jump insn.
6988
6989         PR target/36362
6990         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
6991         is not bool, boolify the whole *expr_p and convert to the desired type.
6992
6993 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
6994
6995         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
6996         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
6997         Add omp_private_outer_ref hook, add another argument to
6998         omp_clause_default_ctor hook.
6999         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
7000         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
7001         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
7002         hook_tree_tree_tree_tree_null.
7003         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
7004         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
7005         * hooks.c (hook_tree_tree_tree_tree_null): New function.
7006         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
7007         * tree.def (OMP_TASK): New tree code.
7008         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
7009         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
7010         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
7011         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
7012         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
7013         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
7014         OMP_CLAUSE_COLLAPSE_EXPR): Define.
7015         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
7016         (OMP_DIRECTIVE_P): Add OMP_TASK.
7017         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
7018         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
7019         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
7020         and OMP_CLAUSE_UNTIED entries.
7021         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
7022         num_ops to 2.
7023         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
7024         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
7025         * tree-pretty-print.c (dump_omp_clause): Handle
7026         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
7027         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
7028         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
7029         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
7030         warning about unsigned iterators.  Change decl/init/cond/incr
7031         arguments to TREE_VECs, check arguments for all collapsed loops.
7032         (c_finish_omp_taskwait): New function.
7033         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
7034         ws_clauses.
7035         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
7036         default_function_array_conversion on init.  Add par_clauses argument.
7037         If decl is present in parallel's lastprivate clause, change it to
7038         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
7039         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
7040         collapse count in clauses.
7041         (c_parser_omp_for, c_parser_omp_parallel): Adjust
7042         c_parser_omp_for_loop callers.
7043         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
7044         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
7045         (c_parser_omp_clause_name): Handle collapse and untied clauses.
7046         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
7047         functions.
7048         (c_parser_omp_clause_schedule): Handle schedule(auto).
7049         Include correct location in the error message.
7050         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
7051         and PRAGMA_OMP_CLAUSE_UNTIED.
7052         (OMP_TASK_CLAUSE_MASK): Define.
7053         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
7054         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
7055         * tree-nested.c (convert_nonlocal_omp_clauses,
7056         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
7057         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
7058         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
7059         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
7060         OMP_CLAUSE_DECL.
7061         (conver_nonlocal_reference, convert_local_reference,
7062         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
7063         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
7064         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
7065         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
7066         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
7067         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
7068         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
7069         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
7070         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
7071         OMP_CLAUSE_UNTIED.
7072         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
7073         * c-common.h (c_finish_omp_taskwait): New prototype.
7074         * gimple-low.c (lower_stmt): Handle OMP_TASK.
7075         * tree-parloops.c (create_parallel_loop): Create 1 entry
7076         vectors for OMP_FOR_{INIT,COND,INCR}.
7077         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
7078         (make_edges): Handle OMP_TASK.
7079         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
7080         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
7081         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
7082         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
7083         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
7084         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
7085         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
7086         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
7087         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
7088         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
7089         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
7090         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
7091         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
7092         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
7093         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
7094         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
7095         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
7096         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
7097         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
7098         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
7099         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
7100         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
7101         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
7102         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
7103         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
7104         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
7105         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
7106         original iterator is present in lastprivate clause or if
7107         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
7108         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
7109         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
7110         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
7111         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
7112         if it is set, lookup var in outer contexts too.  Handle
7113         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
7114         to be implicitly determined firstprivate for task regions.
7115         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
7116         if it is set, lookup var in outer contexts too.  Set
7117         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
7118         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
7119         OMP_CLAUSE_UNTIED.  Take region_type as last argument
7120         instead of in_parallel and in_combined_parallel.
7121         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
7122         Adjust callers.
7123         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
7124         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
7125         (new_omp_context): Set default_kind to
7126         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
7127         (omp_region_type): New enum.
7128         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
7129         fields, add region_type.
7130         (new_omp_context): Take region_type as argument instead of is_parallel
7131         and is_combined_parallel.
7132         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
7133         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
7134         ctx->is_combined_parallel checks.
7135         (gimplify_omp_task): New function.
7136         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
7137         OMP_CLAUSE_UNTIED.
7138         * omp-low.c (extract_omp_for_data): Use schedule(static)
7139         for schedule(auto).  Handle pointer and unsigned iterators.
7140         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
7141         Add loops argument.  Extract data for collapsed OMP_FOR loops.
7142         (expand_parallel_call): Assert sched_kind isn't auto,
7143         map runtime schedule to index 3.
7144         (struct omp_for_data_loop): New type.
7145         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
7146         Add loop, loops, collapse and iter_type fields.
7147         (workshare_safe_to_combine_p): Disallow combined for if
7148         iter_type is unsigned long long.  Don't combine collapse > 1 loops
7149         unless all bounds and steps are constant.  Adjust extract_omp_for_data
7150         caller.
7151         (expand_omp_for_generic): Handle pointer, unsigned and long long
7152         iterators.  Handle collapsed OMP_FOR loops.  Adjust
7153         for struct omp_for_data changes.  If libgomp function doesn't return
7154         boolean_type_node, add comparison of the return value with 0.
7155         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
7156         pointer, unsigned and long long iterators.  Adjust for struct
7157         omp_for_data changes.
7158         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
7159         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
7160         unsigned long long.  Allocate loops array, pass it to
7161         extract_omp_for_data.  For collapse > 1 loops use always
7162         expand_omp_for_generic.
7163         (omp_context): Add sfield_map and srecord_type fields.
7164         (is_task_ctx, lookup_sfield): New functions.
7165         (use_pointer_for_field): Use is_task_ctx helper.  Change first
7166         argument's type from const_tree to tree.  Clarify comment.
7167         In OMP_TASK disallow copy-in/out sharing.
7168         (build_sender_ref): Call lookup_sfield instead of lookup_field.
7169         (install_var_field): Add mask argument.  Populate both record_type
7170         and srecord_type if needed.
7171         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
7172         in srecord_type.
7173         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
7174         and DECL_FIELD_OFFSET.
7175         (scan_sharing_clauses): Adjust install_var_field callers.  For
7176         firstprivate clauses on explicit tasks allocate the var by value in
7177         record_type unconditionally, rather than by reference.
7178         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
7179         Use is_taskreg_ctx instead of is_parallel_ctx.
7180         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
7181         (create_omp_child_function_name): Add task_copy argument, use
7182         *_omp_cpyfn* names if it is true.
7183         (create_omp_child_function): Add task_copy argument, if true create
7184         *_omp_cpyfn* helper function.
7185         (scan_omp_parallel): Adjust create_omp_child_function callers.
7186         Rename parallel_nesting_level to taskreg_nesting_level.
7187         (scan_omp_task): New function.
7188         (lower_rec_input_clauses): Don't run constructors for firstprivate
7189         explicit task vars which are initialized by *_omp_cpyfn*.
7190         Pass outer var ref to omp_clause_default_ctor hook if
7191         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
7192         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
7193         OMP_CLAUSE_REDUCTION_INIT.
7194         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
7195         avoid duplicate setting of fields.  Handle
7196         OMP_CLAUSE_PRIVATE_OUTER_REF.
7197         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
7198         copy-out if TREE_READONLY, only copy-in.
7199         (expand_task_copyfn): New function.
7200         (expand_task_call): New function.
7201         (struct omp_taskcopy_context): New type.
7202         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
7203         New functions.
7204         (lower_omp_parallel): Rename to...
7205         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
7206         Call create_task_copyfn if srecord_type is needed.  Adjust
7207         sender_decl type.
7208         (task_shared_vars): New variable.
7209         (check_omp_nesting_restrictions): Warn if work-sharing,
7210         barrier, master or ordered region is closely nested inside OMP_TASK.
7211         Add warnings for barrier if closely nested inside of work-sharing,
7212         ordered, or master region.
7213         (scan_omp_1): Call check_omp_nesting_restrictions even for
7214         GOMP_barrier calls.  Rename parallel_nesting_level to
7215         taskreg_nesting_level.  Handle OMP_TASK.
7216         (lower_lastprivate_clauses): Even if some lastprivate is found on a
7217         work-sharing construct, continue looking for them on parent parallel
7218         construct.
7219         (lower_omp_for_lastprivate): Add lastprivate clauses
7220         to the beginning of dlist rather than end.  Adjust for struct
7221         omp_for_data changes.
7222         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
7223         not after it.  Handle collapsed OMP_FOR loops, adjust for
7224         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
7225         (get_ws_args_for): Adjust extract_omp_for_data caller.
7226         (scan_omp_for): Handle collapsed OMP_FOR
7227         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
7228         (lower_omp_single_simple): If libgomp function doesn't return
7229         boolean_type_node, add comparison of the return value with 0.
7230         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
7231         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
7232         (parallel_nesting_level): Rename to...
7233         (taskreg_nesting_level): ... this.
7234         (is_taskreg_ctx): New function.
7235         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
7236         of is_parallel_ctx.
7237         (execute_lower_omp): Rename parallel_nesting_level to
7238         taskreg_nesting_level.
7239         (expand_omp_parallel): Rename to...
7240         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
7241         Call omp_task_call for OMP_TASK regions.
7242         (expand_omp): Adjust caller, handle OMP_TASK.
7243         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
7244
7245         * bitmap.c (bitmap_default_obstack_depth): New variable.
7246         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
7247         if argument is NULL and bitmap_default_obstack is already initialized.
7248         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
7249         at the end.
7250         * matrix-reorg.c (matrix_reorg): Likewise.
7251
7252 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
7253
7254         * config/i386/i386.md (*indirect_jump): Macroize using P
7255         mode iterator.  Remove !TARGET_64BIT from insn constraints.
7256         (*tablejump_1): Ditto.
7257         (*indirect_jump_rex64): Remove insn pattern.
7258         (*tablejump_1_rex64): Ditto.
7259         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
7260         and eh_return_si insn patterns.
7261
7262 2008-06-06  Richard Guenther  <rguenther@suse.de>
7263
7264         * tree-ssa-structalias.c (merge_smts_into): Remove.
7265         (find_what_p_points_to): Do not bother to compute the
7266         points-to set for pt_anything pointers.
7267         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
7268         for pt_anything pointers is ok.
7269
7270 2008-06-06  Jan Hubicka  <jh@suse.cz>
7271
7272         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
7273
7274 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7275
7276         * cgraph.c: Fix typos in comments.
7277         (cgraph_availability_names): Fix string typo.
7278         * fold-const.c: Fix typos in comments.
7279         (fold_binary): Fix typo in warning.
7280         * genautomata.c: Fix typos in comments.
7281         (check_presence_pattern_sets): Fix typo in local variable.
7282         (output_description): Fix typo in output.
7283         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
7284         * hwint.h: Likewise.
7285         * matrix-reorg.c (check_allocation_function): Likewise.
7286         * omega.c (smooth_weird_equations): Likewise.
7287         * auto-inc-dec.c: Fix typos in comments.
7288         * bb-reorder.c: Likewise.
7289         * builtins.c: Likewise.
7290         * c-common.c: Likewise.
7291         * c-cppbuiltin.c: Likewise.
7292         * c-parser.c: Likewise.
7293         * c-pretty-print.c: Likewise.
7294         * cfgcleanup.c: Likewise.
7295         * cfgexpand.c: Likewise.
7296         * cfghooks.c: Likewise.
7297         * cfglayout.c: Likewise.
7298         * cfgloopmanip.c: Likewise.
7299         * cgraphunit.c: Likewise.
7300         * coverage.c: Likewise.
7301         * dbxout.c: Likewise.
7302         * df-byte-scan.c: Likewise.
7303         * df-core.c: Likewise.
7304         * df-problems.c: Likewise.
7305         * df-scan.c: Likewise.
7306         * dfp.c: Likewise.
7307         * dominance.c: Likewise.
7308         * domwalk.c: Likewise.
7309         * dse.c: Likewise.
7310         * dwarf2out.c: Likewise.
7311         * emit-rtl.c: Likewise.
7312         * et-forest.c: Likewise.
7313         * function.c: Likewise.
7314         * function.h: Likewise.
7315         * gcc.c: Likewise.
7316         * gcov-io.c: Likewise.
7317         * gcov.c: Likewise.
7318         * gcse.c: Likewise.
7319         * genattrtab.c: Likewise.
7320         * ggc-page.c: Likewise.
7321         * gimplify.c: Likewise.
7322         * gthr-lynx.h: Likewise.
7323         * haifa-sched.c: Likewise.
7324         * ipa-cp.c: Likewise.
7325         * ipa-inline.c: Likewise.
7326         * ipa-prop.h: Likewise.
7327         * ipa-pure-const.c: Likewise.
7328         * ipa-struct-reorg.c: Likewise.
7329         * ipa-struct-reorg.h: Likewise.
7330         * ipa-type-escape.c: Likewise.
7331         * ipa.c: Likewise.
7332         * loop-doloop.c: Likewise.
7333         * mips-tfile.c: Likewise.
7334         * mkmap-flat.awk: Likewise.
7335         * mkmap-symver.awk: Likewise.
7336         * modulo-sched.c: Likewise.
7337         * omp-low.c: Likewise.
7338         * optabs.c: Likewise.
7339         * optabs.h: Likewise.
7340         * opts.c: Likewise.
7341         * passes.c: Likewise.
7342         * postreload-gcse.c: Likewise.
7343         * postreload.c: Likewise.
7344         * predict.c: Likewise.
7345         * pretty-print.h: Likewise.
7346         * profile.c: Likewise.
7347         * protoize.c: Likewise.
7348         * ra-conflict.c: Likewise.
7349         * real.c: Likewise.
7350         * recog.c: Likewise.
7351         * regclass.c: Likewise.
7352         * regs.h: Likewise.
7353         * reload.c: Likewise.
7354         * rtl-error.c: Likewise.
7355         * rtlanal.c: Likewise.
7356         * scan.h: Likewise.
7357         * sched-rgn.c: Likewise.
7358         * see.c: Likewise.
7359         * stmt.c: Likewise.
7360         * target.h: Likewise.
7361         * tree-dfa.c: Likewise.
7362         * tree-eh.c: Likewise.
7363         * tree-flow-inline.h: Likewise.
7364         * tree-inline.c: Likewise.
7365         * tree-into-ssa.c: Likewise.
7366         * tree-loop-distribution.c: Likewise.
7367         * tree-nested.c: Likewise.
7368         * tree-parloops.c: Likewise.
7369         * tree-pass.h: Likewise.
7370         * tree-pretty-print.c: Likewise.
7371         * tree-profile.c: Likewise.
7372         * tree-scalar-evolution.c: Likewise.
7373         * tree-sra.c: Likewise.
7374         * tree-ssa-alias-warnings.c: Likewise.
7375         * tree-ssa-ccp.c: Likewise.
7376         * tree-ssa-coalesce.c: Likewise.
7377         * tree-ssa-dom.c: Likewise.
7378         * tree-ssa-dse.c: Likewise.
7379         * tree-ssa-forwprop.c: Likewise.
7380         * tree-ssa-live.c: Likewise.
7381         * tree-ssa-live.h: Likewise.
7382         * tree-ssa-loop-im.c: Likewise.
7383         * tree-ssa-loop-ivopts.c: Likewise.
7384         * tree-ssa-loop-niter.c: Likewise.
7385         * tree-ssa-loop-prefetch.c: Likewise.
7386         * tree-ssa-phiopt.c: Likewise.
7387         * tree-ssa-phiprop.c: Likewise.
7388         * tree-ssa-sccvn.c: Likewise.
7389         * tree-ssa-ter.c: Likewise.
7390         * tree-ssa-threadupdate.c: Likewise.
7391         * tree-ssa.c: Likewise.
7392         * tree-vect-analyze.c: Likewise.
7393         * tree-vect-transform.c: Likewise.
7394         * tree-vectorizer.c: Likewise.
7395         * tree-vn.c: Likewise.
7396         * tree-vrp.c: Likewise.
7397         * tree.c: Likewise.
7398         * tree.def: Likewise.
7399         * tree.h: Likewise.
7400         * unwind-dw2-fde.c: Likewise.
7401         * unwind.inc: Likewise.
7402         * value-prof.c: Likewise.
7403         * vmsdbgout.c: Likewise.
7404
7405 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
7406
7407         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
7408         always place FP constants in the TOC for TARGET_POWERPC64.
7409         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
7410
7411 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
7412
7413         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
7414         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
7415         enable for TARGET_E500_DOUBLE.
7416         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
7417         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
7418         floating-point modes like integer modes for E500 double.
7419         (rs6000_legitimate_offset_address_p): Likewise.
7420         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
7421         addressing for DDmode for E500 double.
7422         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
7423         modes as using 64-bits of registers for E500 double.
7424         (spe_build_register_parallel): Do not handle DDmode or TDmode.
7425         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
7426         specially for E500 double.
7427         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
7428         TDmode for E500 double.
7429         (rs6000_gimplify_va_arg): Only handle SDmode in registers
7430         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
7431         (rs6000_split_multireg_move): Do not handle TDmode specially for
7432         E500 double.
7433         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
7434         using 64-bit registers for E500 double.
7435         (emit_frame_save): Do not handle DDmode specially for E500 double.
7436         (gen_frame_mem_offset): Likewise.
7437         (rs6000_function_value): Do not call spe_build_register_parallel
7438         for DDmode or TDmode.
7439         (rs6000_libcall_value): Likewise.
7440         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
7441         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
7442         for E500 double.
7443
7444 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
7445
7446         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
7447         in comments.
7448
7449 2008-06-04  Junjie Gu <jgu@tensilica.com>
7450
7451         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
7452         comparison for frame pointers.
7453
7454 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
7455
7456         PR target/27386
7457         * config/avr/avr.h (PUSH_ROUNDING): Remove.
7458
7459 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
7460
7461         PR target/30243
7462         * builtins.c (expand_builtin_signbit): Don't take lowpart when
7463         register is already smaller or equal to required mode.
7464
7465 2008-06-04  Xinliang David Li  <davidxl@google.com>
7466
7467         * tree-call-cdce.c: New file.
7468         (cond_dead_built_in_calls): New static variable.
7469         (input_domain): New struct.
7470         (check_pow): New function.
7471         (check_builtin_call): Ditto.
7472         (check_target_format): Ditto.
7473         (is_call_dce_candidate): Ditto.
7474         (gen_one_condition): Ditto.
7475         (gen_conditions_for_domain): Ditto.
7476         (get_domain): Ditto.
7477         (gen_conditions_for_pow_cst_base): Ditto.
7478         (gen_conditions_for_pow_int_base): Ditto.
7479         (gen_conditions_for_pow): Ditto.
7480         (get_no_error_domain): Ditto.
7481         (gen_shrink_wrap_conditions): Ditto.
7482         (shrink_wrap_one_built_in_call): Ditto.
7483         (shink_wrap_conditional_dead_built_in_calls): Ditto.
7484         (tree_call_cdce): Ditto.
7485         (gate_call_cdce): Ditto.
7486         (pass_call_cdce): New gimple pass.
7487         * passes.c: (init_optimization_passes): New pass.
7488         * tree-pass.h: New pass declaration.
7489         * opts.c (decode_options): New flag setting.
7490         * common.opt: Add -ftree-builtin-call-dce flag.
7491         * Makefile.in: Add new source file.
7492         * tempvar.def: New tv_id.
7493         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
7494
7495 2008-06-04  Richard Guenther  <rguenther@suse.de>
7496
7497         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
7498         (is_call_clobbered): Always check var_ann->call_clobbered.
7499         (mark_call_clobbered): Always set var_ann->call_clobbered.
7500         (clear_call_clobbered): Always clear var_ann->call_clobbered.
7501         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
7502         (reset_alias_info): Clear call clobbering info on MTAGs and
7503         globals as well.
7504         (set_pt_anything): Set pt_global_mem.
7505         (create_tag_raw): Adjust comment.
7506         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
7507
7508 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
7509             Maxim Kuvyrkov  <maxim@codesourcery.com>
7510
7511         * config/m68k/m68k.opt (mxgot): New option.
7512         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
7513         (m68k_output_addr_const_extra): New.
7514         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
7515         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
7516         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
7517         * doc/invoke.texi (M680x0 Options): Document -mxgot.
7518
7519 2008-06-04  Richard Guenther  <rguenther@suse.de>
7520
7521         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
7522         negative or non-representable offsets.
7523
7524 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
7525
7526         * config/i386/i386.c (ix86_gen_leave): New.
7527         (ix86_gen_pop1): Likewise.
7528         (ix86_gen_add3): Likewise.
7529         (ix86_gen_sub3): Likewise.
7530         (ix86_gen_sub3_carry): Likewise.
7531         (ix86_gen_one_cmpl2): Likewise.
7532         (ix86_gen_monitor): Likewise.
7533         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
7534         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
7535         ix86_gen_one_cmpl2 and ix86_gen_monitor.
7536         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
7537         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
7538         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
7539         (ix86_expand_epilogue): Updated.
7540         (print_operand): Handle integer register operand for 'z'.
7541         (ix86_expand_strlensi_unroll_1): Likewise.
7542         (ix86_expand_strlen): Likewise.
7543         (ix86_expand_builtin): Likewise.
7544         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
7545         mov{q}/mov{l} and add{q}/add{l}.
7546
7547 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
7548
7549         * config/i386/i386.md (P): New mode iterator.
7550         (SFmode push_operand splitter): Macroize DImode and SImode pushes
7551         using P mode iterator.
7552         (DFmode push_operand splitter): Ditto.
7553         (XFmode push_operand splitter): Ditto.
7554         (DFmode float_extend SFmode push_operand splitter): Ditto.
7555         (XFmode float_extend SFmode push_operand splitter): Do not generate
7556         SImode pushes for 64bit target.  Macroize Dimode and SImode
7557         pushes using P mode iterator.
7558         (XFmode float_extend DFmode push_operand splitter): Ditto.
7559
7560 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
7561
7562         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
7563         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
7564         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
7565         return type to int.
7566         (ix86_call_abi_override): Remove check for call_used_regs.
7567
7568 2008-06-03  Richard Guenther  <rguenther@suse.de>
7569
7570         * tree-ssa-structalias.c (find_func_aliases): Add constraints
7571         for the lhs of calls if the return type contains pointers.
7572
7573 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
7574
7575         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
7576         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
7577         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
7578         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
7579         of cfun and DEFAULT_ABI to deceide abi mode.
7580         (DEFAULT_ABI): New.
7581         (REG_PARM_STACK_SPACE): Removed.
7582         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
7583         (STACK_BOUNDARY): Use default target to deceide stack boundary.
7584         * config/i386/i386-protos.h (ix86_cfun_abi): New.
7585         (ix86_function_abi): Likewise.
7586         (ix86_function_type_abi): Likewise.
7587         (ix86_call_abi_override): Likewise.
7588         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
7589         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
7590         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
7591         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
7592         specific defines.
7593         (X86_64_REGPARM_MAX): New.
7594         (X86_64_SSE_REGPARM_MAX): New.
7595         (X64_REGPARM_MAX): New.
7596         (X64_SSE_REGPARM_MAX): New.
7597         (X86_32_REGPARM_MAX): New.
7598         (X86_32_SSE_REGPARM_MAX): New.
7599         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
7600         (ix86_function_regparm): Handle user calling abi.
7601         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
7602         by DEFAULT_ABI versus SYSV_ABI check.
7603         (ix86_reg_parm_stack_space): New.
7604         (ix86_function_type_abi): New.
7605         (ix86_call_abi_override): New.
7606         (ix86_function_abi): New.
7607         (ix86_cfun_abi): New.
7608         (init_cumulative_args): Call abi specific initialization.
7609         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
7610         (function_arg_64): Extend SSE_REGPARM_MAX check.
7611         (function_arg (): Remove TARGET_64BIT_MS_ABI.
7612         (ix86_pass_by_reference): Likewise.
7613         (ix86_function_value_regno_p): Likewise.
7614         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
7615         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
7616         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
7617         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
7618         (setup_incoming_varargs_64): Adjust regparm for call abi.
7619         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
7620         (ix86_va_start): Likewise.
7621         (ix86_gimplify_va_arg): Likewise.
7622         (ix86_expand_prologue): Likewise.
7623         (output_pic_addr_const): Likewise.
7624         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
7625         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
7626         (x86_output_mi_thunk): Likewise.
7627         (x86_function_profiler): Likewise.
7628         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
7629         (SYSV_ABI, MS_ABI): New constants.
7630         (DEFAULT_ABI): New.
7631         (init_regs): Add prototype of function in regclass.c file.
7632         (OVERRIDE_ABI_FORMAT): New.
7633         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
7634         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
7635         (OUTGOING_REG_PARM_STACK_SPACE): New.
7636         (ix86_reg_parm_stack_space): New prototype.
7637         (CUMULATIVE_ARGS): Add call_abi member.
7638         (machine_function): Add call_abi member.
7639         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
7640         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
7641
7642 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
7643
7644         PR target/34879
7645         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
7646         (avr_builtin_setjmp_frame_value): New function.
7647         * config/avr/avr.md (nonlocal_goto_receiver): Define.
7648         (nonlocal_goto): Define.
7649
7650 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
7651
7652         * config/mips/mips.c (mips_emit_loadgp): Return early if
7653         there is nothing do to, otherwise emit a blockage if
7654         !TARGET_EXPLICIT_RELOCS || crtl->profile.
7655         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
7656
7657 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7658
7659         * configure.ac: Drop unneeded backslash ending up in config.in.
7660         * acinclude.m4: Likewise.
7661         * config.in: Regenerate.
7662
7663 2008-05-26  Jan Hubicka  <jh@suse.cz>
7664
7665         * predict.c (maybe_hot_frequency_p): Break out of...
7666         (maybe_hot_bb_p): ... here.
7667         (maybe_hot_edge_p): New.
7668         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
7669         * basic-block.h (maybe_hot_edge_p): Declare.
7670
7671 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
7672
7673         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
7674         (*cmpfp_<mode>_cc): Ditto.
7675         (*fp_jcc_8<mode>_387): Ditto.
7676         (*fop_<MODEF:mode>_2_i387): Ditto.
7677         (*fop_<MODEF:mode>_3_i387): Ditto.
7678         (*fop_xf_2_i387): Ditto.
7679         (*fop_xf_3_i387): Ditto.
7680
7681 2008-06-02  Tomas Bily  <tbily@suse.cz>
7682
7683         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
7684
7685 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
7686
7687         * config/mips/mips.c (mips_valid_offset_p): New function.
7688         (mips_valid_lo_sum_p): Likewise.
7689         (mips_classify_address): Use them.
7690         (mips_force_address): New function.
7691         (mips_legitimize_address): Use it.
7692         * config/mips/mips.md (MOVE128): New mode iterator.
7693         (movtf): Require TARGET_64BIT.  Remove empty strings.
7694         (*movtf_internal): Rename to...
7695         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
7696         of "R" and use {,fp}{load,store} attributes instead of "multi".
7697         Use a separate define_split.
7698         (*movtf_mips16): New pattern.
7699
7700 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
7701
7702         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
7703         * config/mips/mips.c (mips_expand_before_return): New function.
7704         (mips_expand_epilogue): Call it.
7705         * config/mips/mips.md (return): Turn into a define_expand.
7706         (*return): New insn.
7707
7708 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
7709
7710         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
7711         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
7712         functions.  Do not emit uses and clobbers of CONCATs; individually
7713         use and clobber their operands.
7714         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
7715         gen_clobber, emit_use and gen_use.
7716         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
7717         (expand_builtin_return): Likewise.
7718         * cfgbuild.c (count_basic_blocks): Likewise.
7719         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
7720         * explow.c (emit_stack_restore): Likewise.
7721         * expmed.c (extract_bit_field_1): Likewise.
7722         * expr.c (convert_move, emit_move_complex_parts): Likewise.
7723         (emit_move_multi_word, store_constructor): Likewise.
7724         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
7725         (thread_prologue_and_epilogue_insns): Likewise.
7726         * lower-subreg.c (resolve_simple_move): Likewise.
7727         * optabs.c (widen_operand, expand_binop): Likewise.
7728         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
7729         * reload.c (find_reloads): Likewise.
7730         * reload1.c (eliminate_regs_in_insn): Likewise.
7731         * stmt.c (expand_nl_goto_receiver): Likewise.
7732         * config/alpha/alpha.md (builtin_longjmp): Likewise.
7733         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
7734         * config/arm/arm.c (arm_load_pic_register): Likewise.
7735         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
7736         * config/arm/arm.md (untyped_return): Likewise.
7737         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
7738         * config/avr/avr.c (expand_prologue): Likewise.
7739         * config/bfin/bfin.c (do_unlink): Likewise.
7740         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
7741         * config/cris/cris.c (cris_expand_prologue): Likewise.
7742         * config/darwin.c (machopic_indirect_data_reference): Likewise.
7743         (machopic_legitimize_pic_address): Likewise.
7744         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
7745         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
7746         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
7747         (ix86_expand_convert_uns_didf_sse): Likewise.
7748         (ix86_expand_vector_init_general): Likewise.
7749         * config/ia64/ia64.md (eh_epilogue): Likewise.
7750         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
7751         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
7752         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
7753         (config/iq2000/iq2000.c): Likewise.
7754         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
7755         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
7756         (builtin_longjmp): Likewise.
7757         * config/mn10300/mn10300.md (call, call_value): Likewise.
7758         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
7759         * config/pdp11/pdp11.md (abshi2): Likewise.
7760         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
7761         * config/s390/s390.c (s390_emit_prologue): Likewise.
7762         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
7763         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
7764         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
7765         * config/sh/sh.c (prepare_move_operands): Likewise.
7766         (output_stack_adjust, sh_expand_epilogue): Likewise.
7767         (sh_set_return_address, sh_expand_t_scc): Likewise.
7768         * config/sparc/sparc.c (load_pic_register): Likewise.
7769         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
7770         * config/spu/spu.c (spu_expand_epilogue): Likewise.
7771         * config/v850/v850.c (expand_epilogue): Likewise.
7772
7773 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
7774
7775         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
7776         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
7777         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
7778         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
7779         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
7780         stack pointer register.
7781         (output_movhi): Remove code for interrupt specific writing to the
7782         stack pointer register.
7783
7784 2008-05-31  Richard Guenther  <rguenther@suse.de>
7785
7786         PR tree-optimization/34244
7787         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
7788         (tree_expr_nonzero_warnv_p): Likewise.
7789         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
7790         ssa_name_nonnegative_p.
7791         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
7792         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
7793         not tree_expr_nonzero_warnv_p.
7794
7795         PR tree-optimization/36262
7796         Revert
7797         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
7798
7799         PR tree-optimization/34244
7800         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
7801         (record_numbers_of_iterations): New function.
7802         (execute_vrp): Cache the numbers of iterations of loops.
7803         * tree-scalar-evolution.c (scev_reset_except_niters):
7804         New function.
7805         (scev_reset): Use scev_reset_except_niters.
7806         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
7807
7808 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
7809
7810         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
7811         __WORKAROUND_RETS when appropriate.
7812
7813 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
7814
7815         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
7816         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
7817         mode iterator.
7818         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
7819         *fop_df_comm_sse insn patterns using MODEF mode iterator.
7820         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
7821         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
7822         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
7823         *fop_df_1_mixed insn patterns using MODEF mode iterator.
7824         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
7825         *fop_df_1_sse insn patterns using MODEF mode iterator.
7826         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
7827         *fop_df_1_i387 insn patterns using MODEF mode iterator.
7828         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
7829         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
7830         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
7831         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
7832         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
7833         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
7834         (*fop_xf_4_i387): Use <MODE> for mode attribute.
7835         (*fop_xf_5_i387): Ditto.
7836         (*fop_xf_6_i387): Ditto.
7837
7838 2008-05-30  Richard Guenther  <rguenther@suse.de>
7839
7840         * builtins.c (build_string_literal): Avoid generating
7841         a non-gimple_val result.
7842
7843 2008-05-30  DJ Delorie  <dj@redhat.com>
7844
7845         * exec-tool.in: Use an environment variable (private) instead of a
7846         file (shared) as a semaphore, so as to not break parallel builds.
7847
7848 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
7849
7850         * optabs.c (maybe_encapsulate_block): Remove.
7851         (emit_libcall_block): Adjust accordingly.
7852         * optabs.h (maybe_encapsulate_block): Remove prototype.
7853
7854         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
7855         Don't use maybe_encapsulate_block.
7856
7857 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
7858
7859         * config/rs6000/rs6000.c (rs6000_legitimize_address,
7860         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
7861         rtx is a SYMBOL_REF before calling get_pool_constant.
7862
7863 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
7864
7865         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
7866
7867 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
7868
7869         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
7870         rather than OS names to choose INO_T_EQ definition.
7871         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
7872         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
7873
7874 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
7875
7876         PR target/36348
7877         * config/darwin-f.c: New.
7878         * config/t-darwin: Added rule to build darwin-f.o.
7879         * config.gcc: Defined new variable, fortran_target_objs.
7880         (*-*-darwin*): Set fortran_target_objs.
7881         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
7882         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
7883         * configure: Regenerated.
7884
7885 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
7886
7887         PR target/35771
7888         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
7889         canonical type if needed.
7890
7891 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
7892
7893         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
7894
7895 2008-05-29  Richard Guenther  <rguenther@suse.de>
7896
7897         PR tree-optimization/36343
7898         PR tree-optimization/36346
7899         PR tree-optimization/36347
7900         * tree-flow.h (clobber_what_p_points_to): Declare.
7901         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
7902         pointed-to variable is dereferenced is irrelevant to whether
7903         the pointer can access the pointed-to variable.
7904         (clobber_what_p_points_to): New function.
7905         * tree-ssa-alias.c (set_initial_properties): Use it.
7906         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
7907         call clobber check for NMTs.
7908
7909 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
7910
7911         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
7912         for printing gcov_type.
7913
7914 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
7915
7916         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
7917         and the eh region information.
7918         * value-prof.c (gimple_move_stmt_histograms): New function.
7919         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
7920
7921 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
7922
7923         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
7924
7925 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
7926
7927         * value-prof.c (tree_ic_transform): Print counts.
7928         * tree-profile.c (tree_gen_ic_func_profiler):
7929         Clear __gcov_indreict_call_callee variable to avoid misattribution
7930         of the profile.
7931
7932 2008-05-28  Rafael Espindola  <espindola@google.com>
7933
7934         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
7935         invalid sharing.
7936
7937 2008-05-28  Richard Guenther  <rguenther@suse.de>
7938
7939         PR tree-optimization/36339
7940         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
7941         and clobbering code out of the loop.
7942
7943 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
7944
7945         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
7946         letters defined.
7947
7948         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
7949         s390_contiguous_bitmask_p, s390_symref_operand_p,
7950         s390_check_symref_alignment, s390_reload_larl_operand,
7951         s390_reload_symref_address): New functions.
7952         (s390_branch_condition_mnemonic): Support compare and branch
7953         instructions.
7954         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
7955         and 'W' constraints.
7956         (s390_secondary_reload): Add secondary reloads for unaligned
7957         symbol refs or symbol refs to floating point or QI/TI mode
7958         integer values.
7959         (legitimate_address_p): Accept symbol references as addresses.
7960         (s390_expand_insv): Use rotate and insert selected bits
7961         instruction for insv when building for z10.
7962         (print_operand_address): Handle symbol ref addresses.
7963         (print_operand): Output modifier 'c' added for signed byte values.
7964         (s390_encode_section_info): Mark symbol refs with
7965         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
7966
7967         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
7968         (length attribute): RRF, RRR have 4 byte length.
7969         (FPALL, INTALL): New mode iterators added.
7970         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
7971         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
7972         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
7973         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
7974         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
7975         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
7976         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
7977         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
7978         instructions.
7979         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
7980         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
7981         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
7982         reload<INTALL:mode><P:mode>_toreg_z10,
7983         reload<FPALL:mode><P:mode>_tomem_z10,
7984         reload<FPALL:mode><P:mode>_toreg_z10,
7985         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
7986         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
7987         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
7988         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
7989         definition.
7990         (movmem, clrmem, cmpmem): New splitters added.
7991
7992         * config/s390/predicates.md (larl_operand): Use
7993         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
7994         SYMBOL_REF_ALIGN1_P.
7995         (s390_signed_integer_comparison,
7996         s390_unsigned_integer_comparison): New predicates.
7997
7998         * config/s390/s390-protos.h (s390_check_symref_alignment,
7999         s390_contiguous_bitmask_p, s390_reload_larl_operand,
8000         s390_reload_symref_address,
8001         s390_compare_and_branch_condition_mask): Prototypes added.
8002
8003         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
8004         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
8005         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
8006
8007 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
8008
8009         * config/s390/s390.c (z10_cost): New cost function for z10.
8010         (s390_handle_arch_option, override_options): Support -march=z10 switch.
8011         (s390_issue_rate): Adjust issue rate for z10.
8012         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
8013         (processor_flags): Add PF_Z10.
8014         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
8015         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
8016         * gcc/config.gcc: Add z10.
8017
8018 2008-05-28  Richard Guenther  <rguenther@suse.de>
8019
8020         PR tree-optimization/36291
8021         * tree-flow. h (struct gimple_df): Remove var_anns member.
8022         * tree-flow-inline.h (gimple_var_anns): Remove.
8023         (var_ann): Simplify.
8024         * tree-dfa.c (create_var_ann): Simplify.
8025         (remove_referenced_var): Clear alias info from var_anns of globals.
8026         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
8027         (delete_tree_ssa): Clear alias info from var_anns of globals.
8028         Do not free var_anns.
8029         (var_ann_eq): Remove.
8030         (var_ann_hash): Likewise.
8031
8032 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
8033
8034         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
8035         and loongson2f entries.
8036         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
8037         * config/mips/mips.h (processor_type): Add Loongson-2E
8038         and Loongson-2F entries.
8039         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
8040         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
8041         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
8042         * doc/invoke.texi (MIPS Options): Document loongson2e
8043         and loongson2f processor names.
8044
8045 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
8046
8047         PR target/35767
8048         PR target/35771
8049         * config/i386/i386.c (ix86_function_arg_boundary): Use
8050         alignment of canonical type.
8051         (ix86_expand_vector_move): Check unaligned memory access for
8052         all SSE modes.
8053
8054 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
8055
8056         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
8057         Moved to the front of file.
8058
8059 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
8060             H.J. Lu  <hongjiu.lu@intel.com>
8061
8062         * dwarf2out.c (current_fde): New.
8063         (add_cfi): Use it.
8064         (lookup_cfa:): Likewise.
8065         (dwarf2out_end_epilogue): Likewise.
8066         (dwarf2out_note_section_used): Likewise.
8067
8068 2008-05-27  Michael Matz  <matz@suse.de>
8069
8070         PR c++/27975
8071         * c.opt (Wenum-compare): New warning option.
8072         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
8073
8074 2008-05-27  Michael Matz  <matz@suse.de>
8075
8076         PR middle-end/36326
8077         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
8078         non-BLKmode types.
8079         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
8080         into memory as tail calls.
8081
8082 2008-05-27  Richard Guenther  <rguenther@suse.de>
8083
8084         PR tree-optimization/36339
8085         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
8086         pointers cause all addressable variables to be call clobbered.
8087
8088 2008-05-27  Richard Guenther  <rguenther@suse.de>
8089
8090         PR tree-optimization/36245
8091         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
8092
8093 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
8094
8095         * config/s390/s390.md: Replace all occurences of the 'm'
8096         constraint with 'RT'.
8097
8098 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
8099
8100         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
8101         definitions added.
8102         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
8103         "*movdi_64".
8104         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
8105         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
8106         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
8107
8108 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
8109
8110         * reload.c: (find_reloads): Skip alternatives according to the
8111         "enabled" attribute. Constify the constraint variable.
8112         * recog.c (get_attr_enabled): Add default implementation.
8113         (extract_insn): Set the alternative_enabled_p array
8114         in the recog_data struct.
8115         (preprocess_constraints, constrain_operands): Skip
8116         alternatives according to the "enabled" attribute
8117         * recog.h (struct recog_data): New field alternative_enabled_p.
8118         (skip_alternative): New inline function.
8119         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
8120         (record_reg_classes): Skip alternative according to the
8121         "enabled" attribute.
8122
8123         * doc/md.texi: Add documention for the "enabled" attribute.
8124
8125 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
8126
8127         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
8128         * postreload.c (reload_cse_simplify_operands): Replace 'm'
8129         constraint with TARGET_MEM_CONSTRAINT.
8130         * recog.c (asm_operand_ok, preprocess_constraints,
8131         constrain_operands): Likewise.
8132         * regclass.c (record_reg_classes): Likewise.
8133         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
8134         * reload1.c (maybe_fix_stack_asms): Likewise.
8135         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
8136         * recog.h: Adjust comment.
8137         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
8138         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
8139         * doc/md.texi: Add a note to description of 'm' constraint.
8140         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
8141
8142 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
8143
8144         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
8145         that the bitfield is of integral type before testing its precision.
8146
8147 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
8148             Sa Liu  <saliu@de.ibm.com>
8149
8150         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
8151         __modti3, __udivti3, __umodti3 and __udivmodti4.
8152         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
8153         that implement TImode mul and div functions.
8154         * config/spu/multi3.c: New. Implement __multi3.
8155         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
8156         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
8157         functions on SPU.
8158
8159 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
8160
8161         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
8162         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
8163         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
8164         tls_sysv_suffix): New mode and mode attribute iterators.
8165         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
8166         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
8167         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
8168         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
8169         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
8170         iterators.
8171
8172 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
8173
8174         PR tree-optimization/36329
8175         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
8176         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
8177         * cgraphbuild.c (initialize_inline_failed): Use the latter
8178         macro in lieu of the former.
8179         * ipa-inline.c (cgraph_mark_inline): Likewise.
8180         (cgraph_decide_inlining_of_small_function): Likewise.
8181         (cgraph_decide_inlining): Likewise.
8182         (cgraph_decide_inlining_incrementally): Likewise.
8183
8184 2008-05-26  Tristan Gingold  <gingold@adacore.com>
8185             Anatoly Sokolov  <aesok@post.ru>
8186
8187         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
8188         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
8189         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
8190         optimization for 'avr6' architecture.
8191
8192 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
8193
8194         PR target/34932
8195         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
8196
8197 2008-05-26  Richard Guenther  <rguenther@suse.de>
8198
8199         * tree-ssa-sccvn.c (expr_has_constants): Declare.
8200         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
8201
8202 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
8203
8204         PR middle-end/36253
8205         * caller-save.c (insert_restore): Verify alignment of spill space.
8206         (insert_save): Likewise.
8207         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
8208         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
8209         (STACK_SLOT_ALIGNMENT): Likewise.
8210         * function.c (LOCAL_ALIGNMENT): Removed.
8211         (get_stack_local_alignment): New.
8212         (assign_stack_local): Use it.  Set alignment on stack slot.
8213         (assign_stack_temp_for_type): Use get_stack_local_alignment.
8214         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
8215         (STACK_SLOT_ALIGNMENT): New.
8216         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
8217         stack slot in XFmode.
8218
8219         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
8220
8221 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
8222
8223         PR/36321
8224         * config/i386/i386.md (allocate_stack_worker_64): Make sure
8225         argument operand in rax isn't removed.
8226
8227 2008-05-26  Richard Guenther  <rguenther@suse.de>
8228
8229         PR middle-end/36300
8230         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
8231         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
8232
8233 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
8234
8235         PR bootstrap/36331
8236         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
8237
8238 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
8239
8240         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
8241         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
8242
8243 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
8244
8245         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
8246         build a trampoline if we don't want one.
8247         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
8248         return zero for nested functions if we don't want a trampoline.
8249
8250 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
8251
8252         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
8253
8254 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
8255
8256         PR fortran/18428
8257         * c.opt: Removed undocumented option '-lang-fortran'.
8258         * c-common.h: Removed global variable 'lang_fortran'.
8259         * c-opts.c (c_common_handle_option): Removed code to handle
8260         option '-lang-fortran'. Updated includes.
8261         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
8262         definition of '__GFORTRAN__'.
8263         (define__GNUC__): Reimplemented to use BASEVER and
8264         cpp_define_formatted.
8265         (builtin_define_with_value_n): Removed.
8266         * c-incpath.h: Renamed to ...
8267         * incpath.h: ... this.
8268         * c-incpath.c: Renamed to ...
8269         * incpath.c: ... this. Updated includes.
8270         * fix-header.c: Updated includes.
8271         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
8272         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
8273         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
8274
8275 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
8276
8277         * tree.h: Update the table of flags used on tree nodes.
8278         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
8279         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
8280         (FORCED_LABEL): Add access check.
8281         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
8282         (ASM_INPUT_P): Likewise.
8283         (ASM_VOLATILE_P): Likewise.
8284         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
8285         (OMP_SECTION_LAST): Access private_flag directly.
8286         (OMP_RETURN_NOWAIT): Likewise.
8287         (OMP_PARALLEL_COMBINED): Likewise.
8288         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
8289         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
8290         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
8291         deprecated_flag directly.
8292
8293 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
8294
8295         * final.c (frame_pointer_needed): Removed.
8296         * flags.h (frame_pointer_needed): Likewise.
8297
8298         * function.h (rtl_data): Add frame_pointer_needed.
8299         (frame_pointer_needed): New.
8300
8301 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
8302
8303         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
8304
8305 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
8306
8307         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
8308         SRC is a REG.
8309
8310 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
8311
8312         * c-common.c (strip_array_types): Move function to..
8313         * tree.c: ..here.
8314         (get_inner_array_type): Delete.
8315         * c-common.h (strip_array_types): Move declaration to..
8316         * tree.h: ..here.
8317         (get_inner_array_type): Delete.
8318         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
8319         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
8320         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8321         * config/pa/pa.c (emit_move_sequence): Likewise.
8322
8323 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8324
8325         * config/i386/i386.md (*sse_prologue_save_insn): Set length
8326         attribute to 34.
8327
8328 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
8329
8330         * function.c: Include target hook for nonlocal_goto frame value.
8331
8332 2008-05-24  Richard Guenther  <rguenther@suse.de>
8333
8334         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
8335         variable can be only accessed through a pointer or a union.
8336
8337 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8338
8339         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
8340         * doc/extend.texi: Likewise.
8341
8342 2008-05-23  DJ Delorie  <dj@redhat.com>
8343
8344         * config/m32c/jump.md (untyped_call): Add.
8345
8346         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
8347         for A24 to PSImode.
8348         (m32c_address_cost): Detail costs for indirect offsets.
8349
8350 2008-05-23  Rafael Espindola  <espindola@google.com>
8351
8352         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
8353         if a node is a SUBREG.
8354         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
8355         is a SUBREG.
8356
8357 2008-05-23  Paul Brook  <paul@codesourcery.com>
8358             Carlos O'Donell  <carlos@codesourcery.com>
8359
8360         * doc/extend.texi: Clarify use of __attribute__((naked)).
8361         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
8362         * target.h (gcc_target): Add allocate_stack_slots_for_args.
8363         * function.c (use_register_for_decl): Use
8364         targetm.calls.allocate_stack_slots_for_args.
8365         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
8366         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
8367         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
8368
8369 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
8370
8371         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
8372
8373 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
8374
8375         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
8376         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
8377         is only rounded once.
8378
8379 2008-05-23  Richard Guenther  <rguenther@suse.de>
8380
8381         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
8382
8383 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
8384             Jakub Jelinek  <jakub@redhat.com>
8385
8386         PR target/36079
8387         * configure.ac: Handle --enable-cld.
8388         * configure: Regenerated.
8389         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
8390         * config/i386/i386.h (struct machine_function): Add needs_cld field.
8391         (ix86_current_function_needs_cld): New define.
8392         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
8393         (cld): New isns pattern.
8394         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
8395         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
8396         * config/i386/i386.opt (mcld): New option.
8397         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
8398         TARGET_CLD and ix86_current_function_needs_cld.
8399         (override_options): Use -mcld by default for 32-bit code if
8400         USE_IX86_CLD.
8401
8402         * doc/install.texi (Options specification): Document --enable-cld.
8403         * doc/invoke.texi (Machine Dependent Options)
8404         [i386 and x86-64 Options]: Add -mcld option.
8405         (Intel 386 and AMD x86-64 Options): Document -mcld option.
8406
8407 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
8408         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
8409         (return_in_memory_64): Likewise.
8410         (return_in_memory_ms_64): Likewise.
8411
8412 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8413
8414         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
8415         * builtins.c (fold_builtin_fpclassify): New.
8416         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
8417         * builtins.def (BUILT_IN_FPCLASSIFY): New.
8418         * c-common.c (handle_type_generic_attribute): Adjust to accept
8419         fixed arguments before an elipsis.
8420         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
8421         * doc/extend.texi: Document __builtin_fpclassify.
8422
8423 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
8424
8425         * omp-low.c (gate_expand_omp_ssa): Remove.
8426         (pass_expand_omp_ssa): Remove.
8427         (gate_expand_omp): Do not check for flag_openmp_ssa.
8428         * common.opt (-fopenmp-ssa): Remove.
8429         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
8430
8431 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
8432
8433         * config/sh/sh.opt (mfixed-range): New option.
8434         * config/sh/sh-protos.h (sh_fix_range): Declare.
8435         * config/sh/sh.c (sh_fix_range): New function.
8436         * config/sh/sh.h (sh_fixed_range_str): Declare.
8437         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
8438         is not empty.
8439         * doc/invoke.texi (SH Options): Document -mfixed-range.
8440
8441 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
8442
8443         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
8444         it before the redeclaration.
8445
8446 2008-05-22  Anatoly Sokolov <aesok@post.ru>
8447
8448         * config/avr/avr.c (get_sequence_length): Add new function.
8449         (expand_prologue, expand_epilogue): Remove duplicate code.
8450
8451 2008-05-22  Rafael Espindola  <espindola@google.com>
8452
8453         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
8454         sharing.
8455
8456 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
8457
8458         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
8459         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
8460
8461         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
8462         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
8463         (vect_update_misalignment_for_peel): Likewise.
8464         (vector_alignment_reachable_p): Likewise.
8465         * tree-vect-transform.c (vectorizable_load): Likewise.
8466         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
8467         (get_vectype_for_scalar_type): Pass mode of scalar_type
8468         to UNITS_PER_SIMD_WORD.
8469
8470         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
8471         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
8472         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
8473         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
8474         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
8475
8476 2008-05-22  Ira Rosen  <irar@il.ibm.com>
8477
8478         PR tree-optimization/36293
8479         * tree-vect-transform.c (vect_transform_strided_load): Don't check
8480         if the first load must be skipped because of a gap.
8481
8482 2008-05-22  Richard Guenther  <rguenther@suse.de>
8483
8484         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
8485         more cases of offset disambiguation that is possible if
8486         strict-aliasing rules apply.
8487         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
8488         for basic offset and type-based disambiguation.
8489
8490 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8491
8492         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
8493         ix86_expand_vector_set on V16QImode for SSE4.1.
8494
8495 2008-05-21  Tom Tromey  <tromey@redhat.com>
8496
8497         * c.opt (Wimport): Mark as undocumented.
8498         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
8499         -Wno-import.
8500         (Warning Options): Likewise.
8501         * doc/cppopts.texi: Don't mention -Wimport.
8502
8503 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
8504
8505         PR tree-optimization/36287
8506         PR tree-optimization/36286
8507         * lambda-code.c (build_access_matrix): Do not use the loop->num
8508         for computing the number of induction variables: use the loop depth
8509         instead.
8510
8511 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
8512
8513         PR/36280
8514         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
8515         option -f(no-)leading-underscore.
8516
8517 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8518
8519         * config/i386/i386.c (ix86_expand_vector_init_general): Use
8520         GET_MODE_NUNITS (mode).
8521
8522 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
8523
8524         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
8525         (-mmulhw): Add 464 to description.
8526         (-mdlmzb): Likewise.
8527         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
8528         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
8529         464fp entries.
8530         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
8531         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
8532         * config/rs6000/rs6000.md: Update comments for 464.
8533
8534 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
8535
8536         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
8537
8538 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8539
8540         * config/i386/sse.md (vec_extractv4sf): Removed.
8541         (vec_extractv2df): Likewise.
8542         (vec_extractv2di): Likewise.
8543         (vec_extractv4si): Likewise.
8544         (vec_extractv8hi): Likewise.
8545         (vec_extractv16qi): Likewise.
8546         (vec_extract<mode>): New.
8547
8548 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8549
8550         * config/i386/sse.md (vec_setv4sf): Removed.
8551         (vec_setv2df): Likewise.
8552         (vec_setv2di): Likewise.
8553         (vec_setv4si): Likewise.
8554         (vec_setv8hi): Likewise.
8555         (vec_setv16qi): Likewise.
8556         (vec_set<mode>): New.
8557
8558 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8559
8560         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
8561         goto for vec_concat and vec_interleave.
8562
8563 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
8564
8565         * config/i386/sse.md (vec_initv4sf): Removed.
8566         (vec_initv2df): Likewise.
8567         (vec_initv2di): Likewise.
8568         (vec_initv4si): Likewise.
8569         (vec_initv8hi): Likewise.
8570         (vec_initv16qi): Likewise.
8571         (vec_init<mode>): New.
8572
8573 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
8574
8575         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
8576
8577 2008-05-21  Tom Tromey  <tromey@redhat.com>
8578
8579         * ggc-zone.c (lookup_page_table_if_allocated): New function.
8580         (zone_find_object_offset): Likewise.
8581         (gt_ggc_m_S): Likewise.
8582         (highest_bit): Likewise.
8583         * ggc-page.c (gt_ggc_m_S): New function.
8584         * stringpool.c (string_stack): Remove.
8585         (init_stringpool): Update.
8586         (ggc_alloc_string): Use ggc_alloc.
8587         (maybe_delete_ident): New function.
8588         (ggc_purge_stringpool): Likewise.
8589         (gt_ggc_m_S): Remove.
8590         * ggc-common.c (ggc_protect_identifiers): New global.
8591         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
8592         ggc_protect_identifiers.
8593         * ggc.h (ggc_protect_identifiers): Declare.
8594         (gt_ggc_m_S): Update.
8595         (ggc_purge_stringpool): Declare.
8596         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
8597         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
8598         special case.
8599         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
8600
8601 2008-05-21  David S. Miller  <davem@davemloft.net>
8602
8603         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
8604         tmake_file.
8605
8606 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
8607
8608         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
8609         once finished.
8610
8611 2008-05-20  David Daney  <ddaney@avtrex.com>
8612
8613         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
8614         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
8615         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
8616         UNSPEC_UPDATE_GOT_VERSION): Renumber.
8617         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
8618         (atomic_hiqi_op): New define_code_iterator.
8619         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
8620         mips_expand_compare_and_swap_12.
8621         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
8622         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
8623         (sync_<optab><mode>, sync_old_<optab><mode>,
8624         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
8625         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
8626         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
8627         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
8628         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
8629         (test_and_set_12): New insn.
8630         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
8631         sync_new_<optab><mode>, sync_old_nand<mode>,
8632         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
8633         clobber to operand 0 for SI and DI mode insns.
8634         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
8635         mips_gen_fn_4): New typedefs.
8636         (mips_gen_fn_ptrs): Define new union type.
8637         (mips_expand_compare_and_swap_12): Remove declaration.
8638         (mips_expand_atomic_qihi): Declare function.
8639         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
8640         (mips_expand_atomic_qihi): ... this.  Use new generator function
8641         parameter.
8642         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
8643         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
8644         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
8645         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
8646         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
8647         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
8648         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
8649         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
8650         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
8651         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
8652         New macros.
8653
8654 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
8655
8656         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
8657         the missing break.
8658
8659 2008-05-20  Anatoly Sokolov <aesok@post.ru>
8660
8661         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
8662         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
8663         (avr_attribute_table): Add 'OS_main' function attribute.
8664         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
8665         functions with 'OS_main' attribute.
8666
8667 2008-05-20  Richard Guenther  <rguenther@suse.de>
8668
8669         PR tree-optimization/35204
8670         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
8671         helper, split out from ...
8672         (DFS): ... here.  Make the DFS walk non-recursive.
8673
8674 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
8675             Jan Sjodin  <jan.sjodin@amd.com>
8676
8677         PR tree-optimization/36181
8678         * tree-parloops.c (loop_has_vector_phi_nodes): New.
8679         (parallelize_loops): Don't parallelize when the loop has vector
8680         phi nodes.
8681
8682 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
8683             Sebastian Pop  <sebastian.pop@amd.com>
8684
8685         * tree-loop-linear.c (gather_interchange_stats): Look in the access
8686         matrix, and never look at the tree representation of the memory
8687         accesses.
8688         (linear_transform_loops): Computes parameters and access matrices.
8689         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
8690         when fails.
8691         (access_matrix_get_index_for_parameter): New.
8692         * tree-data-ref.h (struct access_matrix): New.
8693         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
8694         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
8695         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
8696         am_vector_index_for_loop): New.
8697         (struct data_reference): Add field access_matrix.
8698         (DR_ACCESS_MATRIX): New.
8699         (compute_data_dependences_for_loop): Update declaration.
8700         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
8701         * lambda.h (lambda_vector_vec_p): Declared.
8702         * lambda-code.c: Depend on pointer-set.h.
8703         (lambda_collect_parameters_from_af, lambda_collect_parameters,
8704         av_for_af_base, av_for_af, build_access_matrix,
8705         lambda_compute_access_matrices): New.
8706         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
8707
8708 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
8709
8710         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
8711         $SOURCEDIR/include.
8712
8713 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
8714             Sebastian Pop  <sebastian.pop@amd.com>
8715
8716         PR tree-optimization/36206
8717         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
8718         FOLD_CONVERSIONS.
8719         (instantiate_scev_1): Rename flags to fold_conversions.
8720         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
8721         outeside instantiation_loop.
8722         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
8723         (evolution_function_is_affine_or_constant_p): Removed.
8724         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
8725         instantiate_scev.
8726         (analyze_siv_subscript): Pass in the loop nest number.
8727         Call evolution_function_is_affine_in_loop instead of
8728         evolution_function_is_affine_p.
8729         (analyze_overlapping_iterations): Pass in the loop nest number.
8730
8731 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
8732             Sebastian Pop  <sebastian.pop@amd.com>
8733
8734         PR tree-optimization/36206
8735         * tree-chrec.h (chrec_fold_op): New.
8736         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
8737         and other trees.
8738
8739 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
8740
8741         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
8742         (DIRS_EQ): New.
8743         (remove_duplicates): Do not set inode on non-inode systems.
8744         Use DIRS_EQ.
8745
8746 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
8747
8748         * config.gcc (tm_file): Update comments about relative pathnames.
8749
8750 2008-05-20  Richard Guenther  <rguenther@suse.de>
8751
8752         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
8753         * tree-ssa-sccvn.c (process_scc): Likewise.
8754         * tree-ssa-sink.c (execute_sink_code): Likewise.
8755         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
8756         * tree-vrp.c (process_assert_insertions): Likewise.
8757         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
8758         (perform_tree_ssa_dce): Likewise.
8759         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
8760         (dump_dominator_optimization_stats): Likewise.
8761         * tree-vectorizer.c (vectorize_loops): Likewise.
8762
8763 2008-05-20  Richard Guenther  <rguenther@suse.de>
8764
8765         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
8766
8767 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
8768
8769         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
8770         (ix86_i386elf_return_in_memory): Likewise.
8771         (ix86_i386interix_return_in_memory): Likewise.
8772         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
8773         (SUBTARGET_RETURN_IN_MEMORY): New.
8774         * config/i386/i386elf.h: Likewise.
8775         * config/i386/ptx4-i.h: Likewise.
8776         * config/i386/sol2-10.h: Likewise.
8777         * config/i386/sysv4.h: Likewise.
8778         * config/i386/vx-common.h: Likewise.
8779         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
8780         * config/i386/i386.c (ix86_return_in_memory): Made static and
8781         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
8782         (ix86_i386elf_return_in_memory): Removed.
8783         (ix86_i386interix_return_in_memory): Removed.
8784         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
8785         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
8786
8787 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
8788
8789         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
8790
8791 2008-05-19  Xinliang David Li  <davidxl@google.com>
8792
8793         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
8794         * opts.c: Ditto.
8795         * common.opt: Ditto.
8796         * doc/invoke.texi: Ditto.
8797
8798 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
8799
8800         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
8801         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
8802
8803 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8804
8805         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
8806         sizes of operand array from 8/4 to 4/2.
8807         (ix86_expand_vector_init_general): Change size of operand array
8808         from 32 to 16.  Remove op0, op1 and half_mode.
8809
8810 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
8811
8812         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
8813         (ix86_expand_vector_init_interleave): Likewise.
8814         (ix86_expand_vector_init_general): Use them.  Assert
8815         word_mode == SImode when n_words == 4.
8816
8817 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
8818
8819         * config/i386/i386.c (ix86_secondary_reload): New static function.
8820         (TARGET_SECONDARY_RELOAD): New define.
8821         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
8822         * config/i386/i386.md (reload_outqi): Remove.
8823
8824 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8825
8826         PR middle-end/35509
8827         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
8828         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
8829         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
8830         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
8831         (fold_builtin_1): Likewise.
8832         * builtins.def (BUILT_IN_ISINF_SIGN): New.
8833         c-common.c (check_builtin_function_arguments): Handle
8834         BUILT_IN_ISINF_SIGN.
8835         * doc/extend.texi: Document __builtin_isinf_sign.
8836         * fold-const.c (operand_equal_p): Handle COND_EXPR.
8837
8838 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
8839
8840         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
8841         EH cleanup at the end of the pass, search for those that have been
8842         turned into forwarder blocks and do the cleanup on their successor.
8843
8844 2008-05-18  Richard Guenther  <rguenther@suse.de>
8845
8846         * tree-cfg.c (verify_gimple_expr): Allow conversions from
8847         pointers to sizetype and vice versa.
8848
8849 2008-05-18 Xinliang David Li   <davidxl@google.com>
8850
8851         * gcc/tree-ssa-dce.c: Coding style fix.
8852         (check_pow): Documentation comment.
8853         (check_log): Documenation comment. Coding style fix.
8854         (is_unnecessary_except_errno_call): Ditto.
8855         (gen_conditions_for_pow): Ditto.
8856         (gen_conditions_for_log): Ditto.
8857         (gen_shrink_wrap_conditions): Ditto.
8858         (shrink_wrap_one_built_in_calls): Ditto.
8859         * gcc/doc/invoke.texi: Better documentation string.
8860         * ChangeLog: Fix wrong change log entries from
8861         May 17 checkin on function call DCE.
8862
8863 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
8864
8865         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
8866
8867 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
8868
8869         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
8870         * df-problems.c (simulation routines): Fixed block comment to
8871         properly say how to add forwards scanning functions.
8872
8873 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
8874
8875         * tree-inline.c (setup_one_parameter): Remove dead code.
8876
8877 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
8878
8879         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
8880         a BIT_AND_EXPR only for an INTEGER_TYPE.
8881
8882 2008-05-17 Xinliang David Li   <davidxl@google.com>
8883
8884         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
8885         (check_pow, check_log, is_unnecessary_except_errno_call): New
8886         functions to check for eliminating math functions that are pure
8887         except for setting errno.
8888         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
8889         general condition expressions for shrink-wrapping pow/log calls.
8890         (gen_shrink_wrap_conditions): Ditto.
8891         (shrink_wrap_one_built_in_call): Ditto.
8892         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
8893         (mark_operand_necessary): If debugging, output if OP is necessary.
8894         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
8895         unnecessary.
8896         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
8897         opt level >= 2.
8898         * gcc/common.opt: New user flag -ftree-builtin-dce.
8899         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
8900
8901 2008-05-16  David S. Miller  <davem@davemloft.net>
8902
8903         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
8904         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
8905
8906 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
8907
8908         PR target/36246
8909         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
8910
8911 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
8912
8913         * ifcvt.c (dead_or_predicable): Rename
8914         df_simulate_one_insn_backwards to df_simulate_one_insn.
8915         * recog.c (peephole2_optimize): Ditto.
8916         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
8917         Ditto.
8918         * df.h: Rename df_simulate_one_insn_backwards to
8919         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
8920         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
8921         scanning of defs and uses.
8922         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
8923         (df_simulate_one_insn_forwards): Removed.
8924
8925 2008-05-16  Doug Kwan  <dougkwan@google.com>
8926
8927         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
8928         QNaN & SNaN.
8929         (real_from_string): Handle NaNs and Inf as approriate.
8930
8931 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
8932
8933         * doc/gty.texi (Source Files Containing Type Information): Note
8934         that headers should appear first in the gtfiles list.
8935
8936 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
8937
8938         * tree.def (COND_EXEC): Properly documented this code.
8939
8940 2008-05-16  Diego Novillo  <dnovillo@google.com>
8941
8942         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
8943         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
8944         the new field.
8945
8946 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
8947
8948         * tree-ssa-dse (max_stmt_uid): Removed.
8949         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
8950         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
8951         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
8952         * function.h (cfun.last_stmt_uid): New field.
8953         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
8954         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
8955         New functions.
8956         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
8957         (create_stmt_ann): Initialize the ann->uid field.
8958         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
8959         with new calls.
8960         * tree-flow.h (renumber_gimple_stmt_uids): New function.
8961
8962 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
8963
8964         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
8965         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
8966         (init_empty_tree_cfg): Call it.
8967
8968 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
8969
8970         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
8971         Update all users.
8972
8973 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
8974
8975         * doc/invoke.text (-fdump-tree-*-verbose): New option.
8976         * tree-dump.c (dump_options): New verbose option.
8977         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
8978         Add verbose dump.
8979         * tree-pass.h (TDF_VERBOSE): New dump flag.
8980         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
8981         (tree-flow.h): Added include.
8982         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
8983
8984 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
8985
8986         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
8987
8988         From Jie Zhang  <jie.zhang@analog.com>
8989         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8990         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
8991         mcpu=bf561-none and mcpu=bf561-0.2.
8992         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8993         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
8994         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
8995         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
8996         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
8997         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
8998         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
8999         option.
9000         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
9001         (cputype_selected): Remove.
9002         (bfin_handle_option): Don't use cputype_selected.
9003         (override_options): When no mcpu option, enable all workarounds.
9004         Don't use bfin_workarounds.
9005         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
9006         processor type.
9007         (DEFAULT_CPU_TYPE): Don't define.
9008
9009 2008-05-16  Richard Guenther  <rguenther@suse.de>
9010
9011         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
9012         on deletion of the last stmt.
9013
9014 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9015
9016         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
9017         V8HImode for SSE2 and V16QImode for SSE4.1.
9018
9019 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
9020
9021         * cgraph.h (compute_inline_parameters): Made public.
9022         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
9023         variable_generate_summary, function_write_summary,
9024         variable_write_summary, variable_read_summary.  Added generate_summary,
9025         write_summary, read_summary.
9026         * cgraphunit.c (cgraph_process_new_functions): Changed call from
9027         pass_ipa_inline.function_generate_summary, to
9028         compute_inline_parameters.
9029         * ipa-inline.c (compute_inline_parameters): Made public and added
9030         node parameter.
9031         (compute_inline_parameters_for_current): New function.
9032         (pass_inline_param): Now calls compute_inline_parameters_for_current.
9033         (inline_generate_summary): Removed parameter and made to loop over
9034         all cgraph nodes.
9035         (pass_ipa_inline): Updated for new IPA_PASS structure.
9036         * passes.c (execute_ipa_summary_passes): Now is called once per
9037         pass rather than once per node*pass.
9038
9039 2008-05-15  Anatoly Sokolov <aesok@post.ru>
9040
9041         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
9042         avr_have_mul_p, avr_asm_only_p): Remove variables.
9043         (avr_override_options): Remove initialization of removed variables.
9044         (avr_file_start):  Convert removed variables to fields of
9045         'struct base_arch_s *avr_current_arch'.
9046         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
9047         (AVR_HAVE_MUL): (Ditto.).
9048         (AVR_HAVE_MOVW): (Ditto.).
9049         (AVR_HAVE_LPMX): (Ditto.).
9050         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
9051         avr_asm_only_p): Remove declaration.
9052
9053 2008-05-15  Diego Novillo  <dnovillo@google.com>
9054
9055         * config/arm/arm.c (arm_return_in_memory): Fix return type.
9056         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
9057
9058 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
9059
9060         PR middle-end/36194
9061         * combine.c (check_conversion): Rename back to check_promoted_subreg.
9062         Don't call record_truncated_value from here.
9063         (record_truncated_value): Turn it into a for_each_rtx callback.
9064         (record_truncated_values): New function.
9065         (combine_instructions): Call note_uses with record_truncated_values.
9066         Change name of check_conversion to check_promoted_subreg.
9067
9068 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
9069
9070         * doc/sourcebuild.texi: Document support for torture tests.
9071
9072 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
9073
9074         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
9075         to alternative 4 of operand 2.
9076
9077 2008-05-15  Richard Guenther  <rguenther@suse.de>
9078
9079         * tree-pass.h (current_pass): Declare.
9080         (get_pass_for_id): Likewise.
9081         * passes.c (passes_by_id, passes_by_id_size): New globals.
9082         (set_pass_for_id): New function.
9083         (get_pass_for_id): Likewise.
9084         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
9085         (execute_function_todo): Flush per function statistics.
9086         * toplev.c (compile_file): Init statistics.
9087         (general_init): Do early statistics initialization.
9088         (finalize): Finish statistics.
9089         * statistics.h (statistics_early_init): Declare.
9090         (statistics_init): Likewise.
9091         (statistics_fini): Likewise.
9092         (statistics_fini_pass): Likewise.
9093         (statistics_counter_event): Likewise.
9094         (statistics_histogram_event): Likewise.
9095         * statistics.c: New file.
9096         * Makefile.in (OBJS-common): Add statistics.o.
9097         (statistics.o): Add dependencies.
9098         * doc/invoke.texi (-fdump-statistics): Document.
9099
9100         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
9101         (insert): Likewise.
9102         (execute_pre): Use statistics_counter_event.
9103         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
9104         (substitute_and_fold): Increment it.  Use statistics_counter_event.
9105
9106 2008-05-15  Diego Novillo  <dnovillo@google.com>
9107
9108         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
9109
9110         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
9111         * tree-ssa-alias.c (new_type_alias): Remove references to
9112         sub-variables from comment.
9113         * tree-ssa-operands.c (swap_tree_operands): Likewise.
9114
9115 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
9116
9117         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
9118         attribute to 1 only for insertps alternative.
9119
9120 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
9121
9122         * config/bfin/bfin.md (loadbytes): New pattern.
9123         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
9124         (bfin_init_builtins): Initialize it.
9125         (bdesc_1arg): Add it.
9126
9127 2008-05-15  Sa Liu  <saliu@de.ibm.com>
9128
9129         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
9130         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
9131         * testsuite/lib/target-supports.exp: Add
9132         check_effective_target_fortran_integer_16.
9133
9134 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
9135
9136         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
9137         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
9138         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
9139         (TARGET_RETURN_IN_MEMORY): Define.
9140
9141 2008-05-15  Richard Guenther  <rguenther@suse.de>
9142
9143         PR middle-end/36244
9144         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
9145         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
9146         represent unmodifiable vars.
9147
9148 2008-05-15  Richard Guenther  <rguenther@suse.de>
9149
9150         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
9151         INDIRECT_REF and TARGET_MEM_REF.
9152         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
9153         TARGET_MEM_REF.
9154
9155 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
9156             H.J. Lu  <hongjiu.lu@intel.com>
9157
9158         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
9159         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
9160         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
9161         insn alternatives.  Add missing alternatives.
9162         (*vec_concatv2di_rex64_sse4_1): Likewise.
9163         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
9164         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
9165         Require TARGET_SSE.
9166
9167 2008-05-15  Richard Guenther  <rguenther@suse.de>
9168
9169         PR tree-optimization/36009
9170         PR tree-optimization/36204
9171         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
9172         (determine_invariantness_stmt): Record the loop a store is
9173         always executed in.
9174         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
9175         dependency.
9176
9177 2008-05-15  Richard Guenther  <rguenther@suse.de>
9178
9179         PR tree-optimization/34330
9180         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
9181         through the pointer will alias the SMT.
9182
9183 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
9184
9185         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
9186
9187 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
9188
9189         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
9190
9191 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
9192             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
9193
9194         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
9195         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
9196         (vashl_optab): New optab for vector/vector shifts.
9197         (vashr_optab): Ditto.
9198         (vlshr_optab): Ditto.
9199         (vrotl_optab): Ditto.
9200         (vrotr_optab): Ditto.
9201         (optab_subtype): New enum for optab_for_tree_code call.
9202         (optab_for_tree_code): Add enum optab_subtype argument.
9203
9204         * optabs.c (optab_for_tree_code): Take an additional argument to
9205         distinguish between a vector shift by a scalar and vector shift by
9206         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
9207         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
9208         vector shift by a vector.
9209         (expand_widen_pattern_expr): Pass additional argument to
9210         optab_for_tree_code.
9211
9212         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
9213         vrotl_optab, vrotr_optab.
9214
9215         * expr.c (expand_expr_real_1): Update calls to
9216         optab_for_tree_code to distinguish between vector shifted by a
9217         scalar and vector shifted by a vector.
9218         * tree-vectorizer.c (supportable_widening_operation): Ditto.
9219         (supportable_narrowing_operation): Ditto.
9220         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
9221         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
9222         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
9223         (vect_create_epilog_for_reduction): Ditto.
9224         (vectorizable_reduction): Ditto.
9225         (vectorizable_operation): Ditto.
9226         (vect_strided_store_supported): Ditto.
9227         (vect_strided_load_supported): Ditto.
9228         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
9229         * expmed.c (expand_shift): Ditto.
9230
9231         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
9232         scalar type.
9233         (ashr@var{m}3): Ditto.
9234         (vashl@var{m}3): Document new vector/vector shift standard name.
9235         (vashr@var{m}3): Ditto.
9236         (vlshr@var{m}3): Ditto.
9237         (vrotl@var{m}3): Ditto.
9238         (vrotr@var{m}3): Ditto.
9239
9240         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
9241         (PPERM_INVERT): Ditto.
9242         (PPERM_REVERSE): Ditto.
9243         (PPERM_REV_INV): Ditto.
9244         (PPERM_ZERO): Ditto.
9245         (PPERM_ONES): Ditto.
9246         (PPERM_SIGN): Ditto.
9247         (PPERM_INV_SIGN): Ditto.
9248         (PPERM_SRC1): Ditto.
9249         (PPERM_SRC2): Ditto.
9250
9251         * config/i386/sse.md (mulv2di3): Add SSE5 support.
9252         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
9253         allows a memory operand to be the value being added, and split it
9254         to improve vectorization.
9255         (sse5_pmacsdqh_mem): Ditto.
9256         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
9257         (sse5_mulv2div2di3_high): Ditto.
9258         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
9259         (vec_pack_trunc_v4si): Ditto.
9260         (vec_pack_trunc_v2di): Ditto.
9261         (sse5_pcmov_<mode>): Remove code that tried to use use
9262         andps/andnps instead of pcmov.
9263         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
9264         pmacsdqh instructions.
9265         (vec_widen_smult_lo_v4si): Ditto.
9266
9267         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
9268         (PPERM_INVERT): Ditto.
9269         (PPERM_REVERSE): Ditto.
9270         (PPERM_REV_INV): Ditto.
9271         (PPERM_ZERO): Ditto.
9272         (PPERM_ONES): Ditto.
9273         (PPERM_SIGN): Ditto.
9274         (PPERM_INV_SIGN): Ditto.
9275         (PPERM_SRC1): Ditto.
9276         (PPERM_SRC2): Ditto.
9277         (ix86_expand_sse_movcc): Move the SSE5 test after the if
9278         true/false tests.
9279         (ix86_expand_int_vcond): If SSE5 generate all possible integer
9280         comparisons.
9281         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
9282         says ignore whether the last reference is a memory operand.
9283
9284 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
9285             Paolo Bonzini <bonzini at gnu dot org>
9286
9287         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
9288         shift patterns.
9289
9290         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
9291         (vlshr<mode>3): Rename from vlshr<mode>3.
9292         (vashr<mode>3): Rename from vashr<mode>3.
9293         (mulv4sf3): Change the names of vector shift patterns.
9294         (mulv4si3): Ditto.
9295         (negv4sf2): Ditt.
9296
9297         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
9298         shift insns.
9299
9300         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
9301         (SI_SHLHI): Ditto.
9302         (SI_SHL): Ditto.
9303         (SI_SHLI): Ditto.
9304         (SI_ROTH): Ditto.
9305         (SI_ROTHI): Ditto.
9306         (SI_ROT): Ditto.
9307         (SI_ROTI): Ditto.
9308         (SPU_RL_0): Ditto.
9309         (SPU_RL_1): Ditto.
9310         (SPU_RL_2): Ditto.
9311         (SPU_RL_3): Ditto.
9312         (SPU_RL_4): Ditto.
9313         (SPU_RL_5): Ditto.
9314         (SPU_RL_6): Ditto.
9315         (SPU_RL_7): Ditto.
9316         (SPU_SL_0): Ditto.
9317         (SPU_SL_1): Ditto.
9318         (SPU_SL_2): Ditto.
9319         (SPU_SL_3): Ditto.
9320         (SPU_SL_4): Ditto.
9321         (SPU_SL_5): Ditto.
9322         (SPU_SL_6): Ditto.
9323         (SPU_SL_7): Ditto.
9324
9325         * config/spu/spu.md (v): New iterator macro to add v for vector types.
9326         (floatunssidf2_internal): Change vector/vector shift names.
9327         (floatunsdidf2_internal): Ditto.
9328         (mulv8hi3): Ditto.
9329         (ashrdi3): Ditto.
9330         (ashrti3): Ditto.
9331         (cgt_df): Ditto.
9332         (cgt_v2df): Ditto.
9333         (dftsv): Ditto.
9334         (vashl<mode>3): Rename from ashl<mode>3.
9335         (vashr<mode>3): Rename from ashr<mode>3.
9336         (vlshr<mode>3): Rename from lshr<mode>3.
9337         (vrotl<mode>3): Rename from rotl<mode>3.
9338
9339 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
9340
9341         PR target/36224
9342         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
9343         multiply gives the wrong value when doing widening multiplies.
9344         (vec_widen_smult_lo_v4si): Ditto.
9345
9346 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
9347
9348         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
9349         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
9350         emit_library_call_value.
9351         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
9352         * tree.h (ECF_LIBCALL_BLOCK): Removed.
9353         * calls.c (initialize_argument_information, precompute_arguments,
9354         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
9355         (precompute_arguments): Removed flags parameter.
9356         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
9357
9358 2008-05-14  Richard Guenther  <rguenther@suse.de>
9359
9360         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
9361         Make sure to register the store if the use is a PHI_NODE.
9362
9363 2008-05-14  Olivier Hainque  <hainque@adacore.com>
9364
9365         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
9366         memory if the component is to be referenced in BLKmode according
9367         to get_inner_reference.
9368
9369 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
9370
9371         * calls.c (emit_library_call_value_1): Restore code clearing
9372         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
9373
9374 2008-05-14  Olivier Hainque  <hainque@adacore.com>
9375             Nicolas Roche  <roche@adacore.com>
9376
9377         * configure.ac: Add support for a "gcc_subdir" variable in
9378         config-lang.in, to denote a subdirectory where the language/GCC
9379         integration files are to be found.
9380         * configure: Regenerate.
9381
9382 2008-05-14  Ira Rosen  <irar@il.ibm.com>
9383
9384         PR tree-optimization/36098
9385         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
9386         value for the first load in the group in case of a gap.
9387         (vect_build_slp_tree): Check that there are no gaps in loads.
9388
9389 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
9390
9391         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
9392         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
9393         expand_copysign_bit, ): Change call to emit_no_conflict_block to
9394         emit_insn and remove unneeded code to construct extra args.
9395         (emit_no_conflict_block): Removed.
9396         * optabls.h: (emit_no_conflict_block): Removed.
9397         * cse.c (cse_extended_basic_block): Remove search for
9398         REG_NO_CONFLICT note.
9399         * global.c: Removed incorrect comment added in revision 117.
9400         * expr.c (convert_move): Change call to emit_no_conflict_block to
9401         emit_insn.
9402         * recog.c: Change comments so that they do not mention
9403         REG_NO_CONFLICT.
9404         * local_alloc.c (combine_regs): Removed last parameter.
9405         (no_conflict_p): Removed.
9406         (block_alloc): Removed note, no_conflict_combined_regno and set
9407         local vars. Removed all code to process REG_NO_CONFLICT blocks.
9408         (combine_regs): Removed already_dead and code to look for
9409         REG_NO_CONFLICT notes.
9410         * lower_subreg (remove_retval_note): Removed code to look for
9411         REG_NO_CONFLICT block.
9412         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
9413         (resolve_clobber): Remove code to process libcalls that have
9414         REG_NO_CONFLICT notes.
9415         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
9416         case.
9417         * combine.c (can_combine_p, distribute_notes):  Removed
9418         REG_NO_CONFLICT case.
9419         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
9420         to emit_insns.
9421         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
9422         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
9423         Ditto.
9424         * reg-notes.def (NO_CONFLICT): Removed.
9425
9426 2008-05-14  David S. Miller  <davem@davemloft.net>
9427
9428         * config/sparc/sparc.c (sparc_profile_hook): If
9429         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
9430         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
9431         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
9432
9433 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
9434
9435         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
9436
9437 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
9438
9439         PR target/36222
9440         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
9441         and op1 expansion before vector concat to have less live pseudos.
9442
9443 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
9444
9445         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
9446         ix86_expand_vector_set if supported.
9447
9448 2008-05-13  Diego Novillo  <dnovillo@google.com>
9449             Kenneth Zadeck  <zadeck@naturalbridge.com>
9450
9451         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
9452
9453         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
9454         phinodes_print_statistics, init_ssanames, fini_ssanames,
9455         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
9456         release_ssa_name, release_defs, replace_ssa_name_symbol,
9457         ssanames_print_statistics): Move ...
9458         * tree-flow.h: ... here.
9459         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
9460         Use FN instead of cfun.
9461         (make_ssa_name_fn): Rename from make_ssa_name.
9462         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
9463         * tree-flow-inline.h (make_ssa_name): Move from
9464         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
9465         * omp-low.c (expand_omp_parallel):
9466         * tree-flow-inline.h (redirect_edge_var_map_result):
9467         * tree-ssa.c (init_tree_ssa): Add argument FN.
9468         Use it instead of cfun.  Update all users.
9469
9470 2008-05-13  Tom Tromey  <tromey@redhat.com>
9471
9472         PR preprocessor/22168:
9473         * doc/cpp.texi (Top): Update menu.
9474         (Alternatives to Wrapper #ifndef): New node.
9475         (Other Directives): Document deprecation.
9476         (Obsolete Features): Remove menu.
9477         (Assertions): Merge node into Obsolete Features.
9478         (Obsolete once-only headers): Move earlier; rename to Alternatives
9479         to Wrapper #ifndef.
9480         * doc/cppopts.texi: Update.
9481         * c.opt (Wdeprecated): Enable for C and ObjC.
9482         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
9483         (C++ Dialect Options): Move -Wno-deprecated from here to...
9484         (Warning Options): ... here.
9485
9486 2008-05-13  Richard Guenther  <rguenther@suse.de>
9487
9488         PR middle-end/36227
9489         * fold-const.c (fold_sign_changed_comparison): Do not allow
9490         changes in pointer-ness.
9491
9492 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
9493
9494         PR target/24713
9495         * config/sh/sh.c (sh_expand_prologue): Don't clear
9496         RTX_FRAME_RELATED_P for push insns.
9497
9498 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
9499
9500         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
9501
9502 2008-05-12  Anatoly Sokolov <aesok@post.ru>
9503
9504         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
9505         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
9506         Use 'machine->is_leaf' instead of 'leaf_func_p'.
9507
9508 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
9509
9510         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
9511         (*vec_concatv4sf_sse): This.
9512         (*sse2_concatv2si): Renamed to ...
9513         (*vec_concatv2si_sse2): This.
9514         (*sse1_concatv2si): Renamed to ...
9515         (*vec_concatv2si_sse): This.
9516         (*vec_concatv2di_rex): Renamed to ...
9517         (*vec_concatv2di_rex64): This.
9518         (*vec_concatv2si_sse4_1): New.
9519         (*vec_concatv2di_rex64_sse4_1): Likewise.
9520
9521 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
9522
9523         PR rtl-optimization/36111
9524         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
9525         that was created for swappable operands.
9526
9527 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
9528
9529         PR ada/36001
9530         * Makefile.in: Substitute GNATMAKE and GNATBIND.
9531         * configure.ac: Add call to ACX_PROG_GNAT.
9532
9533 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
9534
9535         * optc-gen.awk: Fix comment typo.
9536
9537 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
9538
9539         * pretty-print.c (pp_integer_with_precision): Use
9540         HOST_LONG_LONG_FORMAT.
9541
9542 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
9543
9544         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
9545
9546 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9547
9548         * config/i386/i386.c (bdesc_ptest): Removed.
9549         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
9550         (bdesc_args): Add __builtin_ia32_ptestz128,
9551         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
9552         (ix86_init_mmx_sse_builtins): Updated.
9553         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
9554         (ix86_expand_builtin): Updated.
9555
9556 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
9557
9558         * tree-cfg.c (valid_fixed_convert_types_p): New function.
9559         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
9560
9561 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
9562
9563         * value-prof.c (interesting_stringop_to_profile): Do not
9564         return early for BUILT_IN_MEMPCPY.
9565
9566 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9567
9568         * calls.c (expand_call): Don't use callgraph to increase
9569         preferred_stack_boundary.
9570
9571         * cgraph.h (cgraph_rtl_info): Use unsigned on
9572         preferred_incoming_stack_boundary.
9573
9574         * final.c (rest_of_clean_state): Use unsigned on
9575         preferred_stack_boundary.
9576
9577 2008-05-09  Tom Tromey  <tromey@redhat.com>
9578
9579         PR preprocessor/22231:
9580         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
9581         proceeding.
9582
9583 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
9584
9585         PR tree-optimization/36129
9586         * tree-ssa-ccp.c: Include value-prof.h.
9587         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
9588         built-in function was folded to a constant.
9589         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
9590
9591 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
9592             Sebastian Pop  <sebastian.pop@amd.com>
9593
9594         * tree-scalar-evolution.c: Document instantiate_scev.
9595         (instantiate_parameters_1): Renamed instantiate_scev_1.
9596         Don't use the same loop for instantiation_loop and evolution_loop.
9597         (instantiate_scev): New.
9598         (instantiate_parameters): Moved...
9599         (resolve_mixers): Update call to instantiate_scev_1 to pass the
9600         same loop twice.  Maintains the semantics for this function.
9601         * tree-scalar-evolution.h (instantiate_scev): Declare.
9602         (instantiate_parameters): ...here.  Now static inline.
9603         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
9604         instead of resolve_mixers.
9605
9606 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
9607
9608         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
9609
9610 2008-05-09  Tomas Bily  <tbily@suse.cz>
9611
9612         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
9613         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
9614         * tree-ssa-structalias.c (get_constraint_for): Likewise.
9615         * c-common.c (c_common_truthvalue_conversion): Likewise.
9616         * tree-object-size.c (compute_object_offset): Likewise.
9617         * tree-inline.c (estimate_num_insns_1): Likewise.
9618         * varasm.c (const_hash_1, compare_constant, copy_constant)
9619         (compute_reloc_for_constant, output_addressed_constants)
9620         (initializer_constant_valid_p): Likewise.
9621         * c-omp.c (check_omp_for_incr_expr): Likewise.
9622         * gimplify.c (gimplify_expr): Likewise.
9623         * c-typeck.c (c_finish_return): Likewise.
9624         * tree-vectorizer.c (supportable_widening_operation)
9625         (supportable_narrowing_operation): Likewise.
9626         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
9627         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
9628         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
9629         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
9630         (descr_info_loc): Likewise.
9631         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9632         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
9633         (fold_unary): Likewise.
9634         * builtins.c (get_pointer_alignment): Likewise.
9635         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
9636         (instantiate_parameters_1): Likewise.
9637         * tree.c (expr_align, stabilize_reference): Likewise.
9638         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
9639         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
9640         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
9641         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9642         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
9643         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
9644         Likewise.
9645         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
9646         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
9647         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
9648         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
9649         (forward_propagate_comparison)
9650         (tree_ssa_forward_propagate_single_use_vars): Likewise.
9651         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
9652         * emit-rtl.c (component_ref_for_mem_expr)
9653         (set_mem_attributes_minus_bitpos): Likewise.
9654         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
9655         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
9656         Likewise.
9657         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
9658         (build_function_call, pointer_diff, build_compound_expr)
9659         (c_finish_return): Likewise.
9660         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
9661         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
9662         Likewise.
9663         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
9664         * expr.c (is_aligning_offset): Likewise.
9665         * tree-ssa-alias.c (is_escape_site): Likewise.
9666         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
9667         (check_all_va_list_escapes): Likewise.
9668         * tree-ssa-loop-ivopts.c (determine_base_object)
9669         (determine_common_wider_type): Likewise.
9670         * dojump.c (do_jump): Likewise.
9671         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
9672         * tree-gimple.c (is_gimple_cast): Likewise.
9673         * fold-const.c (decode_field_reference, )
9674         (fold_sign_changed_comparison, fold_unary, fold_comparison)
9675         (fold_binary): Likewise.
9676         * tree-ssa-alias-warnings.c (find_alias_site_helper)
9677         (already_warned_in_frontend_p): Likewise.
9678         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
9679         * tree.c (really_constant_p, get_unwidened): Likewise.
9680         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
9681         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
9682         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
9683         Likewise.
9684         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
9685         CONVERT_EXPR_P.
9686         (CONVERT_EXPR_P): Define.
9687         (CASE_CONVERT): Define.
9688
9689 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
9690
9691         PR middle-end/36117
9692         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
9693         (delete_unmarked_insns): When deleting a call, call
9694         delete_unreachable_blocks.
9695         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
9696         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
9697
9698 2008-05-08  Richard Guenther  <rguenther@suse.de>
9699
9700         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
9701         (-ftree-salias): Likewise.
9702         (salias-max-implicit-fields): Remove param documentation.
9703         (salias-max-array-elements): Likewise.
9704         * tree-pass.h (pass_create_structure_vars): Remove.
9705         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
9706         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
9707         * tree-ssa-alias.c (create_structure_vars): Remove.
9708         (gate_structure_vars): Likewise.
9709         (pass_create_structure_vars): Likewise.
9710         (gate_build_alias): Likewise.
9711         (pass_build_alias): Adjust to run always and dump the function.
9712         * common.opt (ftree-salias): Hide.
9713         * passes.c (init_optimization_passes): Remove
9714         pass_create_structure_vars, adjust comment.
9715         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
9716         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
9717         * opts.c (decode_options): Do not set flag_tree_salias.
9718         (common_handle_option): Add OPT_ftree_salias to the backward
9719         compatibility section.
9720
9721 2008-05-08  Richard Guenther  <rguenther@suse.de>
9722
9723         * tree-flow-inline.h (var_can_have_subvars): Move ...
9724         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
9725         * tree-flow.h (var_can_have_subvars): Remove.
9726         (push_fields_onto_fieldstack): Remove.
9727         (sort_fieldstack): Likewise.
9728         (struct fieldoff): Move ...
9729         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
9730         alias_set and base_for_components fields.
9731         (sort_fieldstack): Make static.
9732         (push_fields_onto_fieldstack): Likewise.  Remove code that
9733         handles anything but RECORD_TYPEs.  Remove alias_set and
9734         base_for_components handling.
9735         (create_variable_info_for): Adjust.
9736
9737 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
9738
9739         * common.opt (Wframe-larger-than=): Shorten the help message
9740         to one line.
9741         * doc/invoke.texi (Wframe-larger-than=): Add more description.
9742
9743 2008-05-08  Rafael Espindola  <espindola@google.com>
9744
9745         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
9746         trap.
9747         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
9748         trap and that both operands are gimple values.
9749         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
9750         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
9751         is a fp operation.
9752
9753 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
9754
9755         * read-rtl.c (join_c_conditions): Return the first string if the
9756         two strings are equal.
9757
9758 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
9759
9760         * gensupport.h (pred_data): Add a "num_codes" field.
9761         (add_predicate_code): Declare.
9762         * gensupport.c (add_predicate_code): New function.
9763         (std_pred_table): Add an "allows_const_p" field.
9764         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
9765         Remove the (incomplete) list of such codes from the codes field.
9766         (init_predicate_table): Use add_predicate_code.  Add all
9767         RTX_CONST_OBJs if allows_const_p is true.
9768         * genrecog.c (process_define_predicate): Use add_predicate_code.
9769
9770 2008-05-08  David Daney  <ddaney@avtrex.com>
9771             Richard Sandiford  <rsandifo@nildram.co.uk>
9772
9773         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
9774         special case of constant zero operands.
9775         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
9776         old and new values.  Special case constant zero values.
9777         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
9778         fails.
9779         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
9780         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
9781
9782 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
9783
9784         PR target/36090
9785         * simplify-rtx.c (simplify_plus_minus): Create CONST of
9786         similar RTX_CONST_OBJ before CONST_INT.
9787
9788 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
9789
9790         * stmt.c (expand_stack_restore): Change sa mode if needed.
9791
9792 2008-05-08  Richard Guenther  <rguenther@suse.de>
9793
9794         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
9795         return type to bool.
9796         (ix86_sol10_return_in_memory): Likewise.
9797         (ix86_i386elf_return_in_memory): Likewise.
9798         (ix86_i386interix_return_in_memory): Likewise.
9799         * config/i386/i386.c (ix86_return_in_memory): Likewise.
9800         (ix86_sol10_return_in_memory): Likewise.
9801         (ix86_i386elf_return_in_memory): Likewise.
9802         (ix86_i386interix_return_in_memory): Likewise.
9803
9804 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
9805
9806         PR bootstrap/36180
9807         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
9808         fndecl argument.
9809         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
9810         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
9811         declared in front.
9812
9813 2008-05-08  Richard Guenther  <rguenther@suse.de>
9814
9815         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
9816         * tree-data-ref.h (struct dr_alias): Remove subvars field.
9817         (DR_SUBVARS): Remove.
9818         * tree-dfa.c (dump_subvars_for): Remove.
9819         (debug_subvars_for): Likewise.
9820         (dump_variable): Do not dump subvars.
9821         (remove_referenced_var): Do not remove subvars.
9822         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
9823         (lookup_subvars_for_var): Remove.
9824         (get_subvars_for_var): Likewise.
9825         (get_subvars_at): Likewise.
9826         (get_first_overlapping_subvar): Likewise.
9827         (overlap_subvar): Likewise.
9828         * tree-flow.h (subvar_t): Remove.
9829         (struct var_ann_d): Remove subvars field.
9830         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
9831         argument.  Remove special handling of SFTs.
9832         (compute_tag_properties): Likewise.
9833         (set_initial_properties): Likewise.
9834         (compute_call_clobbered): Likewise.
9835         (count_mem_refs): Likewise.
9836         (compute_memory_partitions): Likewise.
9837         (compute_flow_insensitive_aliasing): Likewise.
9838         (setup_pointers_and_addressables): Likewise.
9839         (new_type_alias): Likewise.
9840         (struct used_part): Remove.
9841         (used_portions): Likewise.
9842         (struct used_part_map): Likewise.
9843         (used_part_map_eq): Likewise.
9844         (used_part_map_hash): Likewise.
9845         (free_used_part_map): Likewise.
9846         (up_lookup): Likewise.
9847         (up_insert): Likewise.
9848         (get_or_create_used_part_for): Likewise.
9849         (create_sft): Likewise.
9850         (create_overlap_variables_for): Likewise.
9851         (find_used_portions): Likewise.
9852         (create_structure_vars): Likewise.
9853         * tree.def (STRUCT_FIELD_TAG): Remove.
9854         * tree.h (MTAG_P): Adjust.
9855         (struct tree_memory_tag): Remove base_for_components and
9856         unpartitionable flags.
9857         (struct tree_struct_field_tag): Remove.
9858         (SFT_PARENT_VAR): Likewise.
9859         (SFT_OFFSET): Likewise.
9860         (SFT_SIZE): Likewise.
9861         (SFT_NONADDRESSABLE_P): Likewise.
9862         (SFT_ALIAS_SET): Likewise.
9863         (SFT_UNPARTITIONABLE_P): Likewise.
9864         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
9865         (union tree_node): Remove sft field.
9866         * alias.c (get_alias_set): Remove special handling of SFTs.
9867         * print-tree.c (print_node): Remove handling of SFTs.
9868         * tree-dump.c (dequeue_and_dump): Likewise.
9869         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
9870         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
9871         * tree-predcom.c (set_alias_info): Do not set subvars.
9872         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
9873         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
9874         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
9875         (add_vars_for_offset): Remove.
9876         (add_virtual_operand): Remove special handling of SFTs.
9877         (add_call_clobber_ops): Likewise.
9878         (add_call_read_ops): Likewise.
9879         (get_asm_expr_operands): Likewise.
9880         (get_modify_stmt_operands): Likewise.
9881         (get_expr_operands): Likewise.
9882         (add_to_addressable_set): Likewise.
9883         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
9884         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
9885         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
9886         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
9887         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
9888         (tree_node_structure): Likewise.
9889         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
9890         handling of SFTs.
9891         (find_what_p_points_to): Likewise.
9892
9893 2008-05-08  Sa Liu  <saliu@de.ibm.com>
9894
9895         * config/spu/spu.md: Fixed subti3 pattern.
9896
9897 2008-05-08  Richard Guenther  <rguenther@suse.de>
9898
9899         PR middle-end/36154
9900         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9901         sure to create a representative for trailing arrays for PTA.
9902
9903 2008-05-08  Richard Guenther  <rguenther@suse.de>
9904
9905         PR middle-end/36172
9906         * fold-const.c (operand_equal_p): Two objects which types
9907         differ in pointerness are not equal.
9908
9909 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
9910
9911         * calls.c (compute_argument_block_size): Add argument tree fndecl.
9912         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
9913         (emit_library_call_value_1): Add new variable fndecl initialized by
9914         NULL_TREE. It should be the decl type of orgfun, but this information
9915         seems not to be available here, so it uses the default calling abi.
9916         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
9917         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
9918         by TARGET_RETURN_IN_MEMORY.
9919         * config/i386/i386-interix.h: Likewise.
9920         * config/i386/i386.h: Likewise.
9921         * config/i386/i386elf.h: Likewise.
9922         * config/i386/ptx4-i.h: Likewise.
9923         * config/i386/sol2-10.h: Likewise.
9924         * config/i386/sysv4.h: Likewise.
9925         * config/i386/vx-common.h: Likewise.
9926         * config/cris/cris.h: Removed #if 0 clause.
9927         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
9928         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
9929         argument.
9930         (ix86_sol10_return_in_memory): Likewise.
9931         (ix86_i386elf_return_in_memory): New.
9932         (ix86_i386interix_return_in_memory): New.
9933         * config/mt/mt-protos.h (mt_return_in_memory): New.
9934         * config/mt/mt.c: Likewise.
9935         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
9936         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
9937         * config/bfin/bfin.h: Likewise.
9938         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
9939         argument.
9940         * config/bfin/bfin.c: Likewise.
9941         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
9942         * config/alpha/unicosmk.h: Likewise.
9943         * config/i386/cygming.h: Likewise.
9944         * config/iq2000/iq2000.h: Likewise.
9945         * config/mips/mips.h: Likewise.
9946         * config/mn10300/mn10300.h: Likewise.
9947         * config/rs6000/rs6000.h: Likewise.
9948         * config/score/score.h: Likewise.
9949         * config/spu/spu.h: Likewise.
9950         * config/v850/v850.h: Likewise.
9951         * defaults.h: Likewise.
9952         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
9953         * expr.c (emit_block_move): Adjust use of
9954         OUTGOING_REG_PARM_STACK_SPACE.
9955         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
9956         OUTGOING_REG_PARM_STACK_SPACE.
9957         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
9958
9959 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
9960
9961         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
9962         on OMP_RETURN for OMP_FOR.
9963
9964         PR debug/35896
9965         * dwarf2out.c (dw_expand_expr, common_check): Removed.
9966         (fortran_common): New function.
9967         (gen_variable_die): Call fortran_common instead of common_check,
9968         adjust for it returning tree instead of rtx.  Formatting.
9969
9970 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
9971
9972         PR rtl/7335
9973         PR rtl/33826
9974         * see.c (see_copy_insn): Copy new pure const attributes for new call.
9975         * c-decl.c (merge_decls): Ditto.
9976         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
9977         to RTL_CONST_OR_PURE_CALL_P.
9978         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
9979         Initialized DECL_LOOPING_CONST_PURE.
9980         (process_call_operands): Set tree_side_effects properly.
9981         * tree.h (TREE_READONLY_DECL_P): Removed.
9982         (DECL_IS_PURE): Renamed to DECL_PURE_P.
9983         (DECL_LOOPING_OR_CONST_P): New macro.
9984         (struct tree_function_decl): Added looping_const_or_pure_p.
9985         (ECF_*) Renumbered.
9986         (ECF_LOOPING_OR_CONST_P): New macro.
9987         * rtlanal.c (pure_const_p): Removed.
9988         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
9989         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
9990         to RTL_CONST_CALL_P.
9991         * ipa-pure-const.c (pure_const_state_e): Added looping field.
9992         (check_decl, check_tree, check_call, scan_function): Initialize
9993         looping.
9994         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
9995         (static_execute): Set looping true for recursive functions.
9996         Undo setting state to IPA_NEITHER for recursive functions.
9997         * cse.c (cse_insn):
9998         * ifcvt.c (noce_can_store_speculate_p): Changed
9999         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
10000         RTL_CONST_OR_PURE_CALL_P.
10001         * dse.c (scan_insn): Ditto.
10002         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
10003         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
10004         RTL_CONST_OR_PURE_CALL_P.
10005         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
10006         pure_call_p to RTL_CONST_CALL_P.
10007         * gimplify.c (gimplify_call_expr): Clear side effects for
10008         non-looping pure and constant calls.
10009         * calls.c (emit_call_1): Set rtl flags from ecf flags.
10010         (flags_from_decl_or_type): Set ecf flags from decl flags.
10011         (initialize_argument_information): Turn off
10012         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
10013         Change const to pure if callee_copies is true rather than just
10014         turning off const.
10015         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
10016         way of marking pure calls.
10017         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
10018         Remove hack that was supposed to fix pr7335 and remove old
10019         way of marking pure calls.
10020         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
10021         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
10022         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
10023         RTL_CONST_OR_PURE_CALL_P.
10024         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
10025         * loop-invariant.c (find_exits, find_invariant_bb): Changed
10026         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
10027         * sched-deps.c (schedule_analyze): Ditto.
10028         * rtl.h (struct rtx_def): Use call field, unchanging field, and
10029         return_val field of calls to represent pure and const function info.
10030         (CONST_OR_PURE_CALL_P): Deleted macro.
10031         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
10032         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
10033         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
10034         TREE_READONLY.
10035         * tree-optimize.c (execute_fixup_cfg): Added test for
10036         ECF_LOOPING_CONST_OR_PURE.
10037         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
10038         DECL_PURE_P.
10039         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
10040         effects for looping pure or const calls.
10041         (verify_gimple_expr): Added verification code.
10042         * config/alpha/alpha.c (alpha_legitimize_address,
10043         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
10044         RTL_CONST_CALL_P.
10045         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
10046         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
10047         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
10048         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
10049         RTL_CONST_OR_PURE_CALL_P.
10050         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
10051         and const calls to be deleted.
10052
10053 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
10054
10055         PR target/35714
10056         * config/i386/mmx.md (mmx_subv2sf3): New expander.
10057         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
10058         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
10059         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
10060         to handle nonimmediate operands.
10061         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
10062         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
10063         to handle nonimmediate operands.
10064         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
10065         (mmx_pmulhrwv4hi3): New expander.  Use
10066         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10067         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
10068         (sse2_umulv1siv1di3): New expander.  Use
10069         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10070         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
10071         (mmx_eq<mode>3): New expander.  Use
10072         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10073         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
10074         (mmx_uavgv8qi3): New expander.  Use
10075         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10076         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
10077         (mmx_uavgv4hi3): New expander.  Use
10078         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10079
10080         * config/i386/sse.md
10081         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
10082         to handle nonimmediate operands.
10083         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
10084         to handle nonimmediate operands.
10085         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
10086         to handle nonimmediate operands.
10087         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
10088         to handle nonimmediate operands.
10089         (sse2_unpckhpd_exp): New expander.  Use
10090         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10091         (sse2_unpcklpd_exp): New expander.  Use
10092         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10093         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
10094         to handle nonimmediate operands.
10095         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
10096         to handle nonimmediate operands.
10097         (*sse2_<plusminus_insn><mode>3): Rename from
10098         sse2_<plusminus_insn><mode>3 insn pattern.
10099         (sse2_<plusminus_insn><mode>3): New expander.  Use
10100         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10101         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
10102         (sse2_umulv2siv2di3): New expander.  Use
10103         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10104         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
10105         (sse4_1_mulv2siv2di3): New expander.  Use
10106         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10107         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
10108         (sse2_pmaddwd): New expander.  Use
10109         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10110         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
10111         (sse2_eq<mode>3): New expander.  Use
10112         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10113         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
10114         (sse4_1_eqv2di3): New expander.  Use
10115         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10116         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
10117         (sse2_uavgv16qi3): New expander.  Use
10118         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10119         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
10120         (sse2_uavgv16qi3): New expander.  Use
10121         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10122         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
10123         (sse2_uavgv8hi3): New expander.  Use
10124         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10125         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
10126         (ssse3_pmulhrswv8hi3): New expander.  Use
10127         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10128         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
10129         (ssse3_pmulhrswv4hi3): New expander.  Use
10130         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10131
10132         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
10133         (<sse>_vmmul<mode>3): Ditto.
10134         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
10135         (divv2df3): Ditto.
10136         (ssse3_pmaddubsw128): Use register_operand for operand 1.
10137         (ssse3_pmaddubsw): Ditto.
10138
10139         * config/i386/i386.c (struct_builtin_description)
10140         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
10141         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
10142         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
10143         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
10144         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
10145         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
10146         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
10147         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
10148         (ix86_fixup_binary_operands): Assert that src1
10149         and src2 must have the same mode when swapped.
10150         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
10151         and ix86_binary_operator_ok.  Do not force operands in registers
10152         when optimizing.
10153
10154 2008-05-07  Jan Hubicka  <jh@suse.cz>
10155
10156         * cgraph.c (dump_cgraph_node): Update.
10157         * cgraph.h (cgraph_local_info): Break out inline summary.
10158         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
10159         hook.
10160         * ipa-inline (inline_summary): New accestor function.
10161         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
10162         cgraph_decide_inlining, compute_inline_parameters): Update.
10163         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
10164
10165 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
10166
10167         Cleanup ColdFire scheduling support and add V4 pipeline model.
10168
10169         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
10170         (define_attr cpu): Add cfv4 value.
10171         (define_attr type, define_attr type1): Merge into a single 'type'
10172         attribute.  Update all uses.
10173         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
10174         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
10175         Update all uses.
10176         (define_attr opx_mem, define_attr opy_mem): Remove.
10177         (define_attr op_mem): Clean up, update comment.
10178         (define_attr size): Use specific values instead of general int.
10179         (define_attr guess, define_attr split): Remove.  Update all uses.
10180         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
10181         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
10182         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
10183         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
10184         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
10185         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
10186         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
10187         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
10188         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
10189         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
10190         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
10191         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
10192         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
10193         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
10194         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
10195         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
10196         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
10197         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
10198         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
10199         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
10200         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
10201         Update or set attributes.
10202         (stack_tie): New fake instruction.
10203
10204         * config/m68k/m68k.h (TUNE_CFV4): New macro.
10205         (m68k_sched_attr_size): Update declaration.
10206         (m68k_sched_attr_type2): Remove.
10207         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
10208         Declare new bypass predicates.
10209
10210         * config/m68k/m68k.c (m68k_sched_issue_rate,
10211         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
10212         implementations.
10213         (TARGET_SCHED_ISSUE_RATE,
10214         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
10215         (override_options): Handle scheduling for ColdFire V4 core.
10216         (m68k_expand_prologue): Emit stack_tie.
10217         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
10218         'OP_TYPE_FPN'.  Update all uses.
10219         (sched_guess_p): Remove.
10220         (sched_address_type): Handle symbolic addresses.
10221         (sched_get_operand): New static function.
10222         (sched_operand_type): Merge into sched_attr_op_type.
10223         (sched_attr_op_type): Handle FP registers, handle quick constants,
10224         update.
10225         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
10226         (m68k_sched_attr_size): Update.  Move logic to ...
10227         (sched_get_attr_size_int): New static function.
10228         (sched_get_opxy_mem_type): New static function.
10229         (m68k_sched_attr_op_mem): Update.
10230         (m68k_sched_attr_type2): Remove.
10231         (sched_cfv4_bypass_data): New static variable.
10232         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
10233         (m68k_sched_issue_rate): Implement scheduler hook.
10234         (struct _sched_ib: enabled_p): New field.
10235         (m68k_sched_variable_issue): Update.  Handle V4.
10236         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
10237         sched_dump_class_func_t, sched_dump_split_class,
10238         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
10239         sched_dump_dfa_class, m68k_sched_dump): Remove.
10240         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
10241         hook.
10242         (m68k_sched_init_global): Remove statisctics dumping, introduce
10243         sanity check that all instructions have pipeline reservations.  Handle
10244         ColdFire V4 core.
10245         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
10246         Handle ColdFire V4 core.
10247         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
10248         New static functions.
10249         (m68k_sched_address_bypass_p): New bypass predicate.
10250         (sched_get_indexed_address_scale): New static function.
10251         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
10252
10253         * cf.md: Update comments.
10254         (define_attr type2): Remove.  Use 'type' attribute instead.
10255         Update all uses.
10256         (cf_ib): Rename to cfv123_ib.  Update all uses.
10257         (cf_oep): Rename to cfv123_oep.  Update all uses.
10258         (cf_chr): Rename to cfv123_chr.  Update all uses.
10259         (cf_mem): Rename to cfv123_mem.  Update all uses.
10260         (cf_mac): Move to more appropriate place.
10261         (cfv123_guess): New automaton and cpu_unit.
10262         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
10263         Update uses of 'size' attribute.  Handle before reload scheduling.
10264         (cfv123_guess): New dummy reservation for unhandled instructions.
10265         (cfv4_*): Pipeline description of ColdFire V4 core.
10266         (ignore): New reservation to handle 'ignore' type.
10267
10268 2008-05-07  Ian Lance Taylor  <iant@google.com>
10269
10270         PR middle-end/36013
10271         * gimplify.c (find_single_pointer_decl_1): Don't look through
10272         indirections.
10273         (find_single_pointer_decl): Adjust comments.
10274
10275 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
10276
10277         PR middle-end/36137
10278         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
10279         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
10280
10281         PR middle-end/36106
10282         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
10283         integral type rather than floating point, then VIEW_CONVERT_EXPR
10284         to the floating point type.
10285
10286 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
10287
10288         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
10289         TFmode op0 to register.
10290
10291 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
10292
10293         * c-decl.c (grokdeclarator): Comment typo.
10294
10295 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
10296
10297         * tree-flow.h: Remove prototype for computed_goto_p.
10298         * tree-cfg.c (computed_goto_p): Make static.
10299
10300 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
10301
10302         PR target/35657
10303         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
10304         (contains_aligned_value_p): This.  Handle _Decimal128.
10305         (ix86_function_arg_boundary): Only align _Decimal128 to its
10306         natural boundary and handle it properly.
10307
10308 2008-05-06  Martin Jambor  <mjambor@suse.cz>
10309
10310         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
10311         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
10312         (ipcp_method_set_orig_node): Removed.
10313         (ipcp_cval_get_cvalue_type): Removed.
10314         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
10315         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
10316         (ipcp_cval_set_cvalue_type): Removed.
10317         (ipcp_cval_get_cvalue): Removed.
10318         (ipcp_cval_set_cvalue): Removed.
10319         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
10320         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
10321         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
10322         (ipcp_cval_meet): Renamed to ipa_lattice_meet
10323         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
10324         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
10325         (ipcp_get_ith_lattice): Changed parameters.
10326         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
10327         (ipcp_lattice_from_jfunc): Changed parameters.
10328         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
10329         (ipcp_method_cval_print): Added temporary variable info.
10330         (ipcp_redirect): Removed already unused local variable caller.
10331         (ipcp_redirect): New temporary variable orig_callee_info
10332         (ipcp_redirect): Removed newly unused local variable callee.
10333         (ipcp_redirect): Removed (a bit confusing) local variable type.
10334         (ipcp_insert_stage): Added local variable info.
10335         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
10336         renamed too
10337         (ipcp_formal_create): Removed.
10338         (ipcp_method_cval_set): Removed.
10339         (ipcp_propagate_stage): Renamed lattice variables.
10340         (ipcp_method_cval_set_cvalue_type): Removed.
10341         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
10342         (ipcp_print_all_lattices): Changed printed strings to refer to
10343         lattices rather than cvals.
10344         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
10345         (ipcp_propagate_const): Changed formal parameters.
10346         (build_const_val): Changed formal parameters.
10347         (ipcp_insert_stage): Removed useless variable cvalue
10348         (build_const_val): Changed formal parameters.
10349         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
10350         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
10351         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
10352         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
10353         (ipcp_print_func_profile_counts): Changed string from "method" to
10354         "function"
10355         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
10356         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
10357         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
10358         (ipcp_structures_print): Renamed to ipcp_print_all_structures
10359         (ipcp_profile_print): Renamed to ipcp_print_profile_data
10360         (ipcp_lat_is_const): Changed parameters and made inline.
10361         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
10362         (ipcp_redirect): Renamed to ipcp_need_redirect_p
10363         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
10364         the predicate condition directly
10365         (ipcp_propagate_stage): Added local variable args. Removed local
10366         variable callee.  (Both are mere code simplifications.)
10367         (ipcp_method_dont_insert_const): Renamed to
10368         ipcp_node_not_modifiable_p.
10369         (ipcp_node_not_modifiable_p): Made inline.
10370         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
10371         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
10372         (ipcp_print_all_lattices): Removed variable cvalue
10373         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
10374         Updated comments.
10375
10376 2008-05-06  Olivier Hainque  <hainque@adacore.com>
10377
10378         * tree-sra.c (try_instantiate_multiple_fields): Early return
10379         if field has POINTER_TYPE.
10380
10381 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
10382
10383         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
10384         by using 'q' specifier for instruction.
10385         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
10386
10387 2008-05-06  Anatoly Sokolov <aesok@post.ru>
10388
10389         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
10390         Change mode of zero_extract from QImode to HImode.
10391         (sign bit tests peepholes): (Ditto.).
10392
10393 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
10394
10395         * config/i386/mmx.md: Remove double backslashes from asm templates.
10396         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
10397         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
10398         to handle nonimmediate operands.
10399         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
10400         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
10401         to handle nonimmediate operands.
10402         (*mmx_<code>v2sf3_finite): New insn pattern.
10403         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
10404         (mmx_<code>v2sf3): New expander.  Use
10405         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10406         (mmx_<plusminus_insn><mode>3): New expander.  Use
10407         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10408         (*mmx_<plusminus_insn><mode>3): New insn pattern.
10409         (mmx_add<mode>3): Removed.
10410         (mmx_ssadd<mode>3): Ditto.
10411         (mmx_usadd<mode>3): Ditto.
10412         (mmx_sub<mode>3): Ditto.
10413         (mmx_sssub<mode>3): Ditto.
10414         (mmx_ussub<mode>3): Ditto.
10415         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
10416         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
10417         to handle nonimmediate operands.
10418         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
10419         insn pattern.
10420         (mmx_smulv4hi3_highpart): New expander.  Use
10421         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10422         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
10423         insn pattern.
10424         (mmx_umulv4hi3_highpart): New expander.  Use
10425         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10426         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
10427         (mmx_<code>v4hi3): New expander.  Use
10428         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10429         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
10430         (mmx_<code>v8qi3): New expander.  Use
10431         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10432         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
10433         (mmx_<code><mode>3): New expander.  Use
10434         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
10435
10436 2008-05-05  Jan Hubicka  <jh@suse.cz>
10437
10438         PR tree-optimization/36118
10439         * passes.c (pass_init_dump_file): Fix dump header.
10440
10441 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10442
10443         PR middle-end/36141
10444         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
10445         VCE for function decls.
10446
10447 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
10448
10449         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
10450
10451 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
10452
10453         * config/i386/i386.md (sat_plusminus): New.
10454         (plusminus_insn): Likewise.
10455         (plusminus_mnemonic): Likewise.
10456         (addsub): Removed.
10457         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
10458         (*<addsub><mode>3_cc_overflow): Renamed to ...
10459         (*<plusminus_insn><mode>3_cc_overflow): This.
10460         (*<addsub>si3_zext_cc_overflow): Renamed to ...
10461         (*<plusminus_insn>si3_zext_cc_overflow): This.
10462
10463         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
10464         (<plusminus_insn><mode>3): This.
10465         (*<addsub><mode>3): Renamed to ...
10466         (*<plusminus_insn><mode>3): This.
10467         (<sse>_vm<addsub><mode>3): Renamed to ...
10468         (<sse>_vm<plusminus_insn><mode>3): This.
10469         (sse3_h<addsub>v4sf3): Renamed to ...
10470         (sse3_h<plusminus_insn>v4sf3): This.
10471         (sse3_h<addsub>v2df3): Renamed to ...
10472         (sse3_h<plusminus_insn>v2df3): This.
10473         (<plusminus_insn><mode>3): New.
10474         (*<plusminus_insn><mode>3): Likewise.
10475         (sse2_<plusminus_insn><mode>3): Likewise.
10476         (add<mode>): Removed.
10477         (*add<mode>3): Likewise.
10478         (sse2_ssadd<mode>3): Likewise.
10479         (sse2_usadd<mode>3): Likewise.
10480         (sub<mode>3): Likewise.
10481         (*sub<mode>3): Likewise.
10482         (sse2_sssub<mode>3): Likewise.
10483         (sse2_ussub<mode>3): Likewise.
10484
10485 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
10486
10487         * gthr-single.h: Add in required interface elements as per gthr.h.
10488         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
10489         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
10490         Generalize UNUSED macro.
10491         (__gthread_once): Add.
10492         (__gthread_key_create): Add.
10493         (__gthread_key_delete): Add.
10494         (__gthread_getspecific): Add.
10495         (__gthread_setspecific): Add.
10496
10497 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
10498
10499         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
10500         the same size types for the indirect reference on the rhs, then
10501         create a VCE.
10502
10503 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
10504
10505         * config/i386/i386.md
10506         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
10507         one insn template instead of template series.
10508         (*xordi_1_rex64): Ditto.
10509         (*xordi_2_rex64): Ditto.
10510
10511 2008-05-05  Ira Rosen  <irar@il.ibm.com>
10512
10513         PR tree-optimization/36119
10514         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
10515         in case of SLP.
10516
10517 2008-06-04  Jan Hubicka  <jh@suse.cz>
10518
10519         tree-optimization/36100
10520         * tree-pass.h (pass_O0_always_inline): Declare.
10521         * ipa-inline.c (inline_transform): Remove dead code.
10522         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
10523         pass_O0_always_inline): New.
10524         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
10525
10526 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
10527
10528         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
10529         mnemonic in this_param move for TARGET_64BIT.
10530
10531 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
10532
10533         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
10534         (*strmovsi_rex_1): Ditto.
10535         (*strsetsi_1): Ditto.
10536         (*strsetsi_rex_1): Ditto.
10537
10538         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
10539         adddicc expanders using SWI mode iterator.
10540
10541 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
10542
10543         PR target/36121
10544         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
10545         argument handling.
10546
10547 2008-05-04  David S. Miller  <davem@davemloft.net>
10548
10549         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
10550         (sparc*-*-linux*): Use linux.h in tm_file.
10551         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
10552         compiler defaulting to 32-bit.
10553         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
10554         no longer needed.
10555         * config/sparc/linux.h: Remove definitions now obtained
10556         properly from linux.h
10557         * config/sparc/linux64.h: Likewise.
10558         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
10559         don't want this setting for 32-bit builds in a biarch compiler.
10560         * doc/install.texi: Add sparc-linux to list of targets
10561         supporting --enable-targets=all.
10562
10563 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
10564
10565         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
10566
10567 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
10568
10569         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
10570         after V4SI_FTYPE_V8HI.
10571         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
10572         case V4SI_FTYPE_V2DF.
10573
10574 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
10575
10576         * doc/invoke.texi (max-flow-memory-locations): Removed.
10577         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
10578
10579 2008-05-03  Richard Guenther  <rguenther@suse.de>
10580
10581         PR middle-end/34973
10582         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
10583
10584 2008-05-02  David S. Miller  <davem@davemloft.net>
10585
10586         * config.gcc (need_64bit_hwint): Document libcpp dependency.
10587
10588 2008-05-02  Simon Baldwin <simonb@google.com>
10589
10590         PR bootstrap/36108
10591         * c-common.h (warn_array_subscript_range): Removed.
10592         * c-common.c (warn_array_subscript_range): Ditto.
10593         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
10594         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
10595
10596 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
10597
10598         * config/i386/i386.c (ix86_special_builtin_type): New.
10599         (bdesc_special_args): Likewise.
10600         (ix86_expand_special_args_builtin): Likewise.
10601         (ix86_init_mmx_sse_builtins): Updated.
10602         (ix86_expand_builtin): Updated.
10603         (ix86_expand_store_builtin): Removed.
10604         (ix86_expand_unop_builtin): Likewise.
10605
10606         * config/i386/mm3dnow.h (__v2sf): Moved to ...
10607         * config/i386/mmintrin.h (__v2sf): Here.
10608
10609         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
10610         const __v2sf.
10611         (_mm_loadl_pi): Likewise.
10612         (_mm_storeh_pi): Replace __v2si with __v2sf.
10613         (_mm_storel_pi): Likewise.
10614
10615         * doc/extend.texi: Correct __builtin_ia32_loadhps,
10616         __builtin_ia32_loadlps, __builtin_ia32_storehps,
10617         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
10618         __builtin_ia32_loadlpd.
10619
10620 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
10621
10622         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
10623         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
10624         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
10625         (ix86_init_mmx_sse_builtins): Updated.
10626         (ix86_expand_args_builtin): Likewise.
10627         (ix86_expand_builtin): Likewise.
10628         (ix86_expand_unop1_builtin): Renamed to ...
10629         (ix86_expand_unop_vec_merge_builtin): This.
10630
10631 2008-05-01  Jan Hubicka  <jh@suse.cz>
10632
10633         PR bootstrap/36100
10634         * ipa-inline.c (inline_generate_summary): Make static.
10635         (inline_transform): Do not call inlining at -O0; make static.
10636         * passes.c (execute_todo): Add sanity check.
10637         (execute_one_ipa_transform_pass): Execute proper flags.
10638
10639 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
10640
10641         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
10642         (DECL_NONADDRESSABLE_P): Likewise.
10643         * alias.c (record_component_aliases): Fix comment.
10644
10645 2008-05-01  Simon Baldwin <simonb@google.com>
10646
10647         * c-common.h (warn_array_subscript_range): New function.
10648         * c-common.c (warn_array_subscript_range): Ditto.
10649         * tree-vrp.c (check_array_ref): Corrected code to agree with
10650         comment, ignoring only arrays of size 0 or size 1.
10651         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
10652
10653 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
10654
10655         * config/i386/i386.c (ix86_builtin_type): Replace
10656         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
10657         (bdesc_args): Updated.
10658         (ix86_init_mmx_sse_builtins): Likewise.
10659         (ix86_expand_args_builtin): Likewise.
10660
10661         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
10662         with __v1di.
10663
10664         * doc/extend.texi: Correct __builtin_ia32_palignr.
10665
10666 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
10667
10668         PR target/36095
10669         * config/i386/i386.c (bdesc_crc32): Removed.
10670         (ix86_expand_crc32): Likewise.
10671         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
10672         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
10673         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
10674         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
10675         UINT_FTYPE_UINT_UCHAR.
10676         (bdesc_args): Updated. Add crc32 builtins.
10677         (ix86_init_mmx_sse_builtins): Updated.
10678         (ix86_expand_args_builtin): Updated to support subreg.
10679
10680         * doc/extend.texi: Correct __builtin_ia32_crc32di.
10681
10682 2008-05-01  Jan Hubicka  <jh@suse.cz>
10683
10684         * tree-pass.h (opt_pass): Add IPA_PASS.
10685         (varpool_node, cgraph_node): Forward declare.
10686         (ipa_opt_pass): Define.
10687         (pass_ipa_inline): Turn into ipa_opt_pass.
10688         (pass_apply_inline): Remove.
10689         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
10690         (apply_inline): Turn into ....
10691         (inline_transform): ... this one.
10692         (inline_generate_summary): New function.
10693         (pass_apply_inline): Remove.
10694         * function.h (ipa_opt_pass): Forward declare structure; typedef;
10695         vector.
10696         (struct function): Add ipa_transforms_to_apply.
10697         * passes.c (register_one_dump_file): Work on IPA_PASS.
10698         (init_optimization_passes): Remove pass_inline_parameters and
10699         pass_apply_inline.
10700         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
10701         (execute_one_pass) ... here; apply transforms when possible.
10702         (add_ipa_transform_pass, execute_ipa_summary_asses,
10703         execute_one_ipa_transform_pass): New.
10704         (execute_ipa_pass_list): Update for IPA_PASS type.
10705
10706 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
10707
10708         * config/i386/i386.c (ix86_builtin_type): Add
10709         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
10710         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
10711         (bdesc_args): Add SSE4a builtins.
10712         (ix86_init_mmx_sse_builtins): Updated.
10713         (ix86_expand_args_builtin): Likewise.
10714         (ix86_expand_builtin): Likewise.
10715
10716 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
10717
10718         * config/i386/i386.c (ix86_builtin_type): Add
10719         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
10720         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
10721         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
10722         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
10723         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
10724         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
10725         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
10726         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
10727         and DI_FTYPE_DI_DI_INT.
10728         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
10729         (ix86_init_mmx_sse_builtins): Updated.
10730         (ix86_expand_args_builtin): Likewise.
10731         (ix86_expand_builtin): Likewise.
10732         (ix86_expand_binop_imm_builtin): Removed.
10733
10734         * doc/extend.texi: Correct __builtin_ia32_palignr128.
10735
10736 2008-04-30  Richard Guenther  <rguenther@suse.de>
10737
10738         PR tree-optimization/32921
10739         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
10740
10741 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
10742
10743         * config/arm/arm.c (arm_unwind_emit): Use
10744         crtl->all_throwers_are_sibcalls instead of
10745         cfun->all_throwers_are_sibcalls.
10746         (arm_output_fn_unwind): Likewise.
10747         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
10748         instead of cfun->uses_pic_offset_table.
10749         (frv_expand_prologue): Likewise.
10750         (frv_frame_pointer_required): Likewise.
10751         (frv_expand_fdpic_call): Likewise.
10752         (frv_emit_movsi): Likewise.
10753         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
10754         cfun->returns_pcc_struct instead of
10755         current_function_returns_pcc_struct.
10756         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
10757         instead of cfun->calls_eh_return.
10758         (m32c_pushm_popm): Likewise.
10759         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
10760         "extern" declaration.
10761
10762 2008-04-30  Richard Guenther  <rguenther@suse.de>
10763
10764         PR tree-optimization/21636
10765         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
10766         constant address.
10767         (evaluate_stmt): Print the likely value.
10768         (ccp_visit_stmt): Avoid excessive vertical spacing.
10769
10770 2008-04-30  Rafael Espindola  <espindola@google.com>
10771
10772         * builtins.c (fold_call_expr): Return realret.
10773         * tree-ssa-threadedge.c
10774         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
10775         __builtin_object_size.
10776
10777 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
10778
10779         * gcc.c (wrapper_string): New variable.
10780         (insert_wrapper): New function.
10781         (execute): New option -wrapper.
10782         * doc/invoke.texi (Overall Options): New driver option -wrapper.
10783
10784 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
10785
10786         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
10787         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
10788         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
10789         from...
10790         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
10791         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
10792         config/rs6000/e500crtres64gprctr.asm,
10793         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
10794         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
10795         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
10796         config/rs6000/e500crtsav64gprctr.asm,
10797         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
10798         config/rs6000/e500crtsavg64gprctr.asm: New files.
10799         * config/rs6000/t-ppccomm: Add build rules for new files.
10800         (LIB2FUNCS_STATIC_EXTRA): Add new files.
10801         * config/rs6000/t-netbsd: Add build rules for new files.
10802         (LIB2FUNCS_STATIC_EXTRA): New variable.
10803         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
10804         (CRTSAVRES_DEFAULT_SPEC): Likewise.
10805         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
10806
10807 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
10808
10809         * config/i386/i386.c (ix86_builtin_type): Add
10810         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
10811         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
10812         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
10813         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
10814         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
10815         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
10816         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
10817         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
10818         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
10819         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
10820         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
10821         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
10822         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
10823         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
10824         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
10825         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
10826         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
10827         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
10828         V1DI_FTYPE_V2SI_V2SI.
10829         (bdesc_2arg): Moved to ...
10830         (bdesc_args): Here.
10831         (ix86_init_mmx_sse_builtins): Updated.
10832         (ix86_expand_args_builtin): Updated.  Take a pointer
10833         to const struct builtin_description.  Handle comparison
10834         builtin functions.
10835         (ix86_expand_sse_compare): Take a new argument for swapping operands.
10836         (ix86_expand_builtin): Updated.
10837
10838         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
10839         (ssse3_pmaddubsw128): This.
10840         (ssse3_pmaddubswv4hi3): Renamed to ...
10841         (ssse3_pmaddubsw): This.
10842
10843         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
10844         (__builtin_ia32_packssdw128): Likewise.
10845         (__builtin_ia32_packuswb128): Likewise.
10846         (__builtin_ia32_pmaddubsw): Likewise.
10847         (__builtin_ia32_pmaddubsw128): Likewise.
10848
10849 2008-04-30  Richard Guenther  <rguenther@suse.de>
10850
10851         PR tree-optimization/14847
10852         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
10853         (recognize_bits_test): Use it.
10854         (recognize_single_bit_test): Likewise.
10855
10856 2008-04-30  Martin Jambor  <mjambor@suse.cz>
10857
10858         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
10859         instead of setting number of formal parameters to zero.
10860         (ipcp_init_stage): Do not set the number of actual parameters to zero
10861         either.
10862         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
10863         which are called with variable number of arguments.
10864         (ipcp_insert_stage): Explicitely skipping all nodes which are
10865         called with variable number of arguments.
10866         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
10867         number of parameters.
10868
10869         * ipa-prop.h (struct ipa_node_params): Added flag
10870         called_with_var_arguments
10871         (ipa_set_param_count): Added.  Changed sole setter to use it.
10872         (ipa_get_param_count): Added.  All readers of param_count
10873         converted to use it instead.
10874         (ipa_set_called_with_variable_arg): Added.
10875         (ipa_is_called_with_var_arguments): Added.
10876         (ipa_get_ith_param): Added.  All readers of param_decls converted
10877         to use it instead.
10878         (ipa_set_cs_argument_count): Added, sole writer to argument_count
10879         changed to use it.
10880         (ipa_get_cs_argument_count): Added, all readers of argument_count
10881         changed to cal it.
10882         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
10883         to use it.
10884
10885         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
10886         (struct ipcp_lattice): Renamed cval_type to type
10887         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
10888
10889         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
10890         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
10891         (ipcp_insert_stage): Changed the type of variable cvalue to tree
10892         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
10893         (build_const_val): Changed the type of parameter cvalue to tree
10894         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
10895         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
10896
10897         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
10898         constant
10899
10900         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
10901         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
10902         (ipa_add_method): Renamed to ipa_push_func_to_list
10903         (ipa_remove_method): Renamed to ipa_pop_func_from_list
10904         (ipa_callsite_param_count): Removed.
10905         (ipa_callsite_param_count_set): Removed.
10906         (ipa_callsite_param): Removed.
10907         (ipa_callsite_callee): Removed.
10908         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
10909         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
10910         (ipa_method_formal_count): Removed.
10911         (ipa_method_formal_count_set): Removed.
10912         (ipa_method_get_tree): Removed.
10913         (ipa_method_tree_map_create): Removed.
10914         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
10915         (ipa_create_param_decls_array): Creates the array itself
10916         (ipa_create_param_decls_array): Temporary variable info instead of
10917         a few dereferences.
10918         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
10919         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
10920         (get_type): Removed.
10921         (ipa_jf_get_info_type): Removed.
10922         (ipa_node_create): Renamed to ipa_create_node_params
10923         (ipa_free): Renamed to ipa_free_all_node_params
10924         (ipa_nodes_create): Renamed to ipa_create_all_node_params
10925         (ipa_edges_create): Renamed to ipa_create_all_edge_args
10926         (ipa_edges_free): Renamed to ipa_free_all_edge_args
10927         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
10928         (ipa_free_all_node_params): Deallocation to jump_functions moved to
10929         ipa_free_all_edge_args
10930         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
10931         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
10932         (ipa_create_methodlist_node): Removed.
10933         (ipa_methodlist_method): Removed.
10934         (ipa_methodlist_method_set): Removed.
10935         (ipa_methodlist_next_method): Removed.
10936         (ipa_methodlist_next_method_set): Removed.
10937         (ipa_method_is_modified): Removed.
10938         (ipa_method_modify_create): Removed.
10939         (ipa_method_modify_init): Temporary variable info instead of a few
10940         dereferences.
10941         (ipa_detect_param_modifications): Temporary variable info instead of
10942         a few dereferences.
10943         (ipa_compute_jump_functions): Temporary variable info instead of
10944         a few dereferences.
10945         (ipa_method_modify_set): Removed.
10946         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
10947         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
10948         than craph_node as the first parameter.
10949         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
10950         (ipa_method_modify_init): Removed.
10951         (ipa_compute_jump_functions): Added a temp variable instead of
10952         repeatadly dereferencing the cgraph_edge.aux pointer
10953         (ipa_callsite_param_set_type): Removed.
10954         (ipa_compute_jump_functions): i renamed to index and moved to
10955         an inner block
10956         (ipa_callsite_param_set_info_type_formal): Removed.
10957         (ipa_callsite_param_set_info_type): Removed.
10958         (ipa_callsite_param_map_create): Removed.
10959         (ipa_callsite_tree): Removed.
10960         (ipa_callsite_caller): Removed.
10961         (ipa_pop_func_from_list): return_method removed to return_func
10962
10963         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
10964         prefixed all values with IPA_. Changed all users.
10965         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
10966         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
10967         and FORMAL_IPATYPE IPA_PASS_THROUGH.
10968         (union parameter_info): Renamed to jump_func_value.
10969         (union jump_func_value): Renamed value to constant
10970         (struct ipa_jump_func): Renamed info_type to value
10971         (struct ipa_node): Renamed to ipa_node_params
10972         (struct ipa_node_params): Renamed ipa_arg_num to param_count
10973         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
10974         (struct ipa_node_params): Renamed ipa_mod to modified_flags
10975         (struct ipa_edge): Renamed to ipa_edge_args
10976         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
10977         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
10978         (struct ipa_methodlist): Renamed to ipa_func_list
10979         (struct ipa_func_list): method_p renamed to node, next_method
10980         renamed to next
10981         (ipa_methodlist_p): Removed, switched all users to struct pointer
10982         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
10983
10984 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
10985
10986         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
10987         (rs6000_emit_epilogue): Use backchain to restore only when we
10988         have a large frame.  Make use of frame pointer to restore if we
10989         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
10990
10991 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
10992
10993         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
10994         Add mode to zero_extract.
10995         (sign bit tests peepholes): (Ditto.).
10996
10997 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
10998
10999         * config/i386/i386.c (ix86_builtins): Replace Prescott New
11000         Instructions in comments with SSE3.
11001         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
11002         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
11003         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
11004         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
11005         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
11006         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
11007         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
11008         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
11009         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
11010         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
11011         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
11012         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
11013         (bdesc_sse_args): Renamed to ...
11014         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
11015         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
11016         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
11017         IX86_BUILTIN_FABSQ.
11018         (bdesc_1arg): Moved to ...
11019         (bdesc_args): Here.
11020         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
11021         Instructions in comments with SSE3.
11022         (ix86_expand_sse_operands_builtin): Renamed to ...
11023         (ix86_expand_args_builtin): This.  Updated.
11024         (ix86_expand_unop1_builtin): Update comments.
11025         (ix86_expand_builtin): Updated.
11026
11027 2008-04-29  Richard Guenther  <rguenther@suse.de>
11028
11029         PR tree-optimization/36078
11030         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
11031         Update virtual SSA form after cleaning up the CFG.
11032
11033 2008-04-29  Richard Guenther  <rguenther@suse.de>
11034
11035         PR middle-end/15255
11036         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
11037
11038 2008-04-29  Richard Guenther  <rguenther@suse.de>
11039
11040         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
11041         (compute_may_aliases): Do not call finalize_ref_all_pointers.
11042         (compute_flow_insensitive_aliasing): Do not treat
11043         PTR_IS_REF_ALL pointers special.
11044         (get_smt_for): Likewise.
11045         (may_alias_p): Re-structure.
11046         (is_escape_site): A ref-all pointer conversion is not an escape site.
11047         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
11048         PTR_IS_REF_ALL pointers special.
11049         * tree-ssa-structalias.h (struct alias_info): Remove
11050         ref_all_symbol_mem_tag field.
11051         (PTR_IS_REF_ALL): Remove.
11052
11053 2008-04-29  Richard Guenther  <rguenther@suse.de>
11054
11055         PR middle-end/36077
11056         * fold-const.c (extract_muldiv_1): In combining division constants
11057         make sure to never overflow.
11058
11059 2008-04-29  Nick Clifton  <nickc@redhat.com>
11060
11061         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
11062
11063 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11064
11065         PR bootstrap/35169
11066         * optc-gen.awk: Work around HP-UX/IA awk bug.
11067
11068 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
11069
11070         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
11071         2008-04-25 commit.
11072
11073 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
11074
11075         PR target/36073
11076         * config/i386/i386.md
11077         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
11078         Change operand 1 predicate to nonimmediate_operand.
11079
11080 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
11081
11082         PR debug/36060
11083         * dwarf2out.c (struct die_struct): Mark as chain_circular through
11084         die_sub field.
11085         * gengtype.c (walk_type, write_func_for_structure): Handle
11086         chain_circular.
11087         * doc/gty.texi: Document chain_circular.
11088
11089 2008-04-28  Richard Guenther  <rguenther@suse.de>
11090
11091         PR tree-optimization/36066
11092         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
11093         SCEV and loop.
11094
11095 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
11096
11097         PR target/36064
11098         * config/i386/i386.md
11099         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
11100         Use match_scratch instead of match_operand for operands 3 and 4.
11101
11102 2008-04-27  Richard Guenther  <rguenther@suse.de>
11103
11104         PR tree-optimization/18754
11105         PR tree-optimization/34223
11106         * tree-pass.h (pass_complete_unrolli): Declare.
11107         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
11108         loop size before and after unconditionally of UL_NO_GROWTH in effect.
11109         Rewrite loop into loop closed SSA form if it is not already.
11110         (tree_unroll_loops_completely): Re-structure to iterate over
11111         innermost loops with intermediate CFG cleanups.
11112         Unroll outermost loops only if requested or the code does not grow
11113         doing so.
11114         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
11115         loops are available.
11116         (tree_vectorize): Instead do so here.
11117         (tree_complete_unroll): Also unroll outermost loops.
11118         (tree_complete_unroll_inner): New function.
11119         (gate_tree_complete_unroll_inner): Likewise.
11120         (pass_complete_unrolli): New pass.
11121         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
11122         uses outside of the loop.
11123         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
11124         form if it is available.
11125         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
11126         * passes.c (init_optimization_passes): Schedule complete inner
11127         loop unrolling pass before the first CCP pass after final inlining.
11128
11129 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
11130
11131         * targhooks.h (default_emutls_var_fields,
11132         default_emutls_var_init): Declare.
11133         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
11134         * target.h (struct gcc_target): Add struct emutls member.
11135         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
11136         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
11137         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
11138         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
11139         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
11140         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
11141         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
11142         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
11143         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
11144         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
11145         emit debug information.
11146         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
11147         * varasm.c: Include targhooks.h.
11148         (emutls_object_section, emutls_tmpl_section): New.
11149         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
11150         (EMUTLS_SEPARATOR): New.
11151         (prefix_name): New.
11152         (get_emutls_object_name): New.
11153         (default_emutls_var_fields): New, broken out of ...
11154         (get_emutls_object_type): ... here.  Adjust to use target hooks.
11155         (get_emutls_init_templ_addr): Adjust to use target hooks.
11156         (emutls_decl): Adjust to use target hooks.
11157         (emutls_finish): Likewise.
11158         (default_emutls_var_init): New, broken out of ...
11159         (assemble_variable): ... here.  Adjust to use target hooks.
11160         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
11161         SECCAT_EMUTLS_TMPL.
11162         * c-common.c (handle_section_attribute): Prevent overriding
11163         sections for emulated tls with special sections.
11164         * config/i386/i386.c (x86_64_elf_select_section): Add
11165         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
11166         (x86_64_elf_unique_section): Likewise.
11167         * config/vxworks.c: Include tree.h.
11168         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
11169         (vxworks_override_options): Set TLS scheme.
11170         * doc/tm.texi (Emulated TLS): New node.
11171
11172 2008-04-26  Simon Baldwin <simonb@google.com>
11173
11174         PR c/35652
11175         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
11176         with propagated string constants.
11177
11178 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
11179
11180         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
11181         constraint for operand 2 when operand 0 is memory operand.
11182         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
11183         operand 0 is memory operand.
11184         (fix_trunc<mode>_i387_with_temp): Ditto.
11185         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
11186         operand 2 when operand 1 is memory operand.
11187         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
11188         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
11189         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
11190         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
11191         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
11192         operands 2,3 and 4 when operand 1 is memory operand.
11193         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
11194         is memory operand.
11195         (fistdi2_floor_with_temp): Ditto.
11196         (fist<mode>2_floor_with_temp): Ditto.
11197         (fistdi2_ceil_with_temp): Ditto.
11198         (fist<mode>2_ceil_with_temp): Ditto.
11199         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
11200
11201 2008-04-26  David Daney  <ddaney@avtrex.com>
11202
11203         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
11204         unspec_volitile.
11205         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
11206         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
11207         UNSPEC_UPDATE_GOT_VERSION): Renumber.
11208         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
11209         (compare_and_swap_12): New insn.
11210         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
11211         * config/mips/mips.c (mips_force_binary): New function.
11212         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
11213         (mips_expand_compare_and_swap_12): New function.
11214         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
11215
11216 2008-04-25  Jan Hubicka  <jh@suse.cz>
11217
11218         PR testsuite/35843
11219         * cfgexpand.c (pass_expand): Turn into RTL pass.
11220         * passes.c (execute_one_pass): Do pass typechecking after execution.
11221         * tree-pass.h (pass_expand): Turn into RTL pass.
11222
11223         * function.h (struct rtl_data): Move here fields
11224         accesses_prior_frames, calls_eh_return, saves_all_registers,
11225         has_nonlocal_goto, has_asm_statement, is_thunk,
11226         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
11227         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
11228         arg_pointer_save_area_init from struct function; turn into bool.
11229         (struct function): Move
11230         calls_eh_return, saves_all_registers, has_nonlocal_goto,
11231         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
11232         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
11233         tail_call_emit, arg_pointer_save_area_init
11234         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
11235         (current_function_returns_struct, current_function_returns_pcc_struct,
11236         current_function_calls_setjmp, current_function_calls_alloca,
11237         current_function_accesses_prior_frames,
11238         current_function_calls_eh_return, current_function_is_thunk,
11239         current_function_stdarg, current_function_profile,
11240         current_function_limit_stack, current_function_uses_pic_offset_table,
11241         current_function_uses_const_pool, current_function_has_nonlocal_label,
11242         current_function_saves_all_registers,
11243         current_function_has_nonlocal_goto,
11244         current_function_has_asm_statement): Remove accesor macros.
11245         * ra-conflict.c (global_conflicts): Update.
11246         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
11247         (suitable_for_tail_call_opt_p): Update.
11248         * builtins.c (expand_builtin_return_addr): Update.
11249         (expand_builtin_setjmp_setup): Update.
11250         (expand_builtin_nonlocal_goto): Update.
11251         * final.c (final_start_function): Update.
11252         (profile_function): Update.
11253         (leaf_function_p): Update.
11254         (only_leaf_regs_used): Update.
11255         * df-scan.c (df_get_exit_block_use_set): Update.
11256         * dojump.c (clear_pending_stack_adjust): Update.
11257         * tree-stdarg.c (gate_optimize_stdarg): Update.
11258         * gimple-low.c (lower_function_body): Update.
11259         * global.c (compute_regsets): Update.
11260         (global_alloc): Update.
11261         * dwarf2out.c (dwarf2out_begin_prologue): Update.
11262         * expr.c (expand_assignment): Update.
11263         * dse.c (dse_step0): Update.
11264         (dse_step1): Update.
11265         * c-decl.c (store_parm_decls): Update.
11266         * local-alloc.c (combine_regs): Update.
11267         (find_free_reg): Update.
11268         * function.c (assign_parms_augmented_arg_list): Update.
11269         (assign_parm_find_data_types): Update.
11270         (assign_parms): Update.
11271         (allocate_struct_function): Update.
11272         (expand_function_start): Update.
11273         (expand_function_end): Update.
11274         (get_arg_pointer_save_area): Update.
11275         (thread_prologue_and_epilogue_insns): Update.
11276         (rest_of_match_asm_constraints): Update.
11277         * stor-layout.c (variable_size): Update.
11278         * gcse.c (gcse_main): Update.
11279         (bypass_jumps): Update.
11280         * gimplify.c (gimplify_function_tree): Update.
11281         * calls.c (emit_call_1): Update.
11282         (expand_call): Update.
11283         * bt-load.c (compute_defs_uses_and_gen): Update.
11284         * except.c (sjlj_assign_call_site_values): Update.
11285         (sjlj_emit_function_enter): Update.
11286         (can_throw_external): Update.
11287         (set_nothrow_function_flags): Update.
11288         (expand_builtin_unwind_init): Update.
11289         (expand_eh_return): Update.
11290         (convert_to_eh_region_ranges): Update.
11291         (output_function_exception_table): Update.
11292         * emit-rtl.c (gen_tmp_stack_mem): Update.
11293         * cfgexpand.c (expand_used_vars): Update.
11294         (tree_expand_cfg): Update.
11295         * cfgcleanup.c (rest_of_handle_jump): Update.
11296         * explow.c (allocate_dynamic_stack_space): Update.
11297         * varasm.c (assemble_start_function): Update.
11298         (force_const_mem): Update.
11299         (mark_constant_pool): Update.
11300         * tree-optimize.c (tree_rest_of_compilation): Update.
11301         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
11302         * tree-cfg.c (notice_special_calls): Update.
11303         (is_ctrl_altering_stmt): Update.
11304         (tree_can_make_abnormal_goto): Update.
11305         (tree_purge_dead_abnormal_call_edges): Update.
11306         * config/alpha/predicates.md: Update.
11307         * config/alpha/alpha.c (alpha_sa_mask): Update.
11308         (alpha_sa_size): Update.
11309         (alpha_does_function_need_gp): Update.
11310         (alpha_expand_prologue): Update.
11311         (alpha_start_function): Update.
11312         (alpha_output_function_end_prologue): Update.
11313         (alpha_expand_epilogue): Update.
11314         * config/frv/frv.c (frv_stack_info): Update.
11315         (frv_expand_epilogue): Update.
11316         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
11317         (s390_register_info): Update.
11318         (s390_frame_info): Update.
11319         (s390_init_frame_layout): Update.
11320         (s390_can_eliminate): Update.
11321         (save_gprs): Update.
11322         * config/spu/spu.c (spu_split_immediate): Update.
11323         (need_to_save_reg): Update.
11324         (spu_expand_prologue): Update.
11325         (spu_expand_epilogue): Update.
11326         * config/sparc/sparc.md: Update.
11327         * config/sparc/sparc.c (eligible_for_return_delay): Update.
11328         (sparc_tls_got): Update.
11329         (legitimize_pic_address): Update.
11330         (sparc_emit_call_insn): Update.
11331         (sparc_expand_prologue): Update.
11332         (output_return): Update.
11333         (print_operand): Update.
11334         (sparc_function_ok_for_sibcall): Update.
11335         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
11336         * config/m32r/m32r.md: Update.
11337         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
11338         (m32r_compute_frame_size): Update.
11339         (m32r_expand_prologue): Update.
11340         (m32r_expand_epilogue): Update.
11341         (m32r_legitimize_pic_address): Update.
11342         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
11343         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
11344         * config/i386/i386.c (ix86_frame_pointer_required): Update.
11345         (gen_push): Update.
11346         (ix86_save_reg): Update.
11347         (ix86_compute_frame_layout): Update.
11348         (ix86_expand_prologue): Update.
11349         (ix86_expand_epilogue): Update.
11350         * config/sh/sh.c (output_stack_adjust): Update.
11351         (calc_live_regs): Update.
11352         (sh5_schedule_saves): Update.
11353         (sh_expand_prologue): Update.
11354         (sh_expand_epilogue): Update.
11355         (sh_setup_incoming_varargs): Update.
11356         (sh_allocate_initial_value): Update.
11357         (sh_get_pr_initial_val): Update.
11358         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
11359         * config/sh/sh.md (label:): Update.
11360         * config/avr/avr.c (out_movhi_mr_r): Update.
11361         * config/crx/crx.h (enum): Update.
11362         * config/xtensa/xtensa.h (along): Update.
11363         * config/stormy16/stormy16.c Update.
11364         (xstormy16_compute_stack_layout): Update.
11365         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
11366         (fr30_expand_prologue): Update.
11367         * config/cris/cris.c (cris_conditional_register_usage): Update.
11368         (cris_reg_saved_in_regsave_area): Update.
11369         (cris_initial_frame_pointer_offset): Update.
11370         (cris_simple_epilogue): Update.
11371         (cris_expand_prologue): Update.
11372         (cris_expand_epilogue): Update.
11373         (cris_expand_pic_call_address): Update.
11374         (cris_asm_output_symbol_ref): Update.
11375         (cris_asm_output_label_ref): Update.
11376         * config/cris/cris.md Update.
11377         * config/iq2000/iq2000.c (compute_frame_size): Update.
11378         (iq2000_expand_epilogue): Update.
11379         * config/mt/mt.h (save_direction): Update.
11380         * config/mn10300/mn10300.c (mn10300_function_value): Update.
11381         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
11382         (ia64_secondary_reload_class): Update.
11383         * config/m68k/m68k.c (m68k_save_reg): Update.
11384         (m68k_expand_prologue): Update.
11385         (m68k_expand_epilogue): Update.
11386         (legitimize_pic_address): Update.
11387         * config/rs6000/rs6000.c (rs6000_got_register): Update.
11388         (first_reg_to_save): Update.
11389         (first_altivec_reg_to_save): Update.
11390         (compute_vrsave_mask): Update.
11391         (compute_save_world_info): Update.
11392         (rs6000_stack_info): Update.
11393         (spe_func_has_64bit_regs_p): Update.
11394         (rs6000_ra_ever_killed): Update.
11395         (rs6000_emit_eh_reg_restore): Update.
11396         (rs6000_emit_allocate_stack): Update.
11397         (rs6000_emit_prologue): Update.
11398         (rs6000_emit_epilogue): Update.
11399         (rs6000_output_function_epilogue): Update.
11400         (output_profile_hook): Update.
11401         (rs6000_elf_declare_function_name): Update.
11402         * config/rs6000/rs6000.h (rs6000_args): Update.
11403         * config/rs6000/rs6000.md: Update.
11404         * config/mcore/mcore.c (mcore_expand_prolog): Update.
11405         * config/arc/arc.c (arc_output_function_epilogue): Update.
11406         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
11407         * config/darwin.c (machopic_function_base_name): Update.
11408         * config/score/score3.c (score3_compute_frame_size): Update.
11409         (rpush): Update.
11410         (rpop): Update.
11411         (score3_epilogue): Update.
11412         * config/score/score7.c (score7_compute_frame_size): Update.
11413         (score7_prologue): Update.
11414         (score7_epilogue): Update.
11415         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
11416         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
11417         * config/arm/arm.c (use_return_insn): Update.
11418         (require_pic_register): Update.
11419         (arm_load_pic_register): Update.
11420         (arm_compute_save_reg0_reg12_mask): Update.
11421         (arm_compute_save_reg_mask): Update.
11422         (thumb1_compute_save_reg_mask): Update.
11423         (output_return_instruction): Update.
11424         (arm_output_function_prologue): Update.
11425         (arm_output_epilogue): Update.
11426         (arm_get_frame_offsets): Update.
11427         (arm_expand_prologue): Update.
11428         (thumb_pushpop): Update.
11429         (thumb_exit): Update.
11430         (thumb1_expand_prologue): Update.
11431         (thumb1_expand_epilogue): Update.
11432         (arm_unwind_emit): Update.
11433         (arm_output_fn_unwind): Update.
11434         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
11435         * config/arm/arm.md: Update.
11436         * config/pa/pa.md: Update.
11437         * config/pa/pa.c (legitimize_pic_address): Update.
11438         (compute_frame_size): Update.
11439         (hppa_expand_prologue): Update.
11440         (hppa_expand_epilogue): Update.
11441         (borx_reg_operand): Update.
11442         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
11443         (HARD_REGNO_RENAME_OK): Update.
11444         * config/mips/mips.c (mips_global_pointer): Update.
11445         (mips_save_reg_p): Update.
11446         (mips_compute_frame_info): Update.
11447         (mips_frame_pointer_required): Update.
11448         (mips_expand_prologue): Update.
11449         (mips_expand_epilogue): Update.
11450         (mips_can_use_return_insn): Update.
11451         (mips_reorg_process_insns): Update.
11452         * config/v850/v850.c (compute_register_save_size): Update.
11453         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
11454         * config/mmix/mmix.c (along): Update.
11455         (mmix_expand_epilogue): Update.
11456         * config/bfin/bfin.c (legitimize_pic_address): Update.
11457         (must_save_p): Update.
11458         (stack_frame_needed_p): Update.
11459         (add_to_reg): Update.
11460         (bfin_expand_prologue): Update.
11461         * stmt.c (expand_asm_operands): Update.
11462         * reload1.c (reload): Update.
11463         (init_elim_table): Update.
11464
11465 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
11466
11467         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
11468
11469 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
11470
11471         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
11472         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
11473         (mov<mode>): Removed.
11474         (*movv4sf_internal): Likewise.
11475         (*movv2df_internal): Likewise.
11476
11477 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
11478
11479         * config.gcc (crx-*-elf): Remove deprecation.
11480
11481 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
11482
11483         * config/i386/cygming-crtend.c (register_frame_ctor): Register
11484         __gcc_deregister_frame with atexit.
11485         (deregister_frame_dtor): Remove.
11486
11487 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
11488             Nathan Sidwell  <nathan@codesourcery.com>
11489
11490         * config/rs6000/rs6000.opt (mspe): Remove Var property.
11491         (misel): Likewise.
11492         * config/rs6000/rs6000.h (rs6000_spe): Declare.
11493         (rs6000_isel): Likewise.
11494         * config/rs6000/rs6000.c (rs6000_spe): New variable.
11495         (rs6000_isel): New variable.
11496         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
11497
11498 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
11499
11500         PR c++/35758
11501         * c-common.c (handle_vector_size_attribute): Call
11502         lang_hooks.types.reconstruct_complex_type instead of
11503         reconstruct_complex_type.
11504         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
11505         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
11506         * langhooks.h (struct lang_hooks_for_types): Add
11507         reconstruct_complex_type hook.
11508         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
11509         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
11510
11511 2008-04-24  Richard Guenther  <rguenther@suse.de>
11512
11513         * c-common.h (check_builtin_function_arguments): Declare.
11514         * c-common.c (validate_nargs): New function.
11515         (check_builtin_function_arguments): Likewise.
11516         * c-typeck.c (build_function_call): Call
11517         check_builtin_function_arguments.
11518         * builtins.c (fold_builtin_classify): Remove error reporting code.
11519         (fold_builtin_unordered_cmp): Likewise.
11520         (fold_builtin_1): Likewise.
11521         (fold_builtin_n): Likewise.
11522
11523 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
11524
11525         PR tree-optimization/36008
11526         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
11527         the original op1, rather than delta by step.
11528
11529 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
11530             Sebastian Pop  <sebastian.pop@amd.com>
11531
11532         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
11533         eliminate_local_variables_stmt, eliminate_local_variables,
11534         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
11535         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
11536         of code delimited by two edges in the CFG.
11537         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
11538         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
11539         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
11540         the case of parallelisation of reductions.
11541         (expr_invariant_in_region_p): New.
11542
11543         * tree-flow.h (gather_blocks_in_sese_region): Declared.
11544         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
11545
11546 2008-04-24  Ira Rosen  <irar@il.ibm.com>
11547             Richard Guenther  <rguenther@suse.de>
11548
11549         PR tree-optimization/36034
11550         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
11551         incapable of dealing with loads with gaps.
11552
11553 2008-04-24  Rafael Espindola  <espindola@google.com>
11554
11555         * tree-flow.h (vrp_evaluate_conditional): Change signature.
11556         * tree-ssa-propagate.c (fold_predicate_in): Update call to
11557         vrp_evaluate_conditional.
11558         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
11559         (vrp_evaluate_conditional): Split the cond argument.
11560         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
11561         (simplify_stmt_for_jump_threading): Update call to
11562         vrp_evaluate_conditional.
11563
11564 2008-04-24  Ira Rosen  <irar@il.ibm.com>
11565
11566         PR tree-optimization/35982
11567         * tree-vect-analyze.c (vect_check_interleaving): Check that the
11568         interleaved data-refs are of the same type.
11569
11570 2008-04-24  Danny Smith  <dannysmith@users.net>
11571
11572         * c-format.c (check_format_info_main): Use strncmp rather than a
11573         magic prefix to handle multichar length specs.
11574         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
11575         Don't prefix "I64" and "I32" with '\0'.
11576
11577 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
11578
11579         PR target/36015
11580         * config/i386/i386.c (init_cumulative_args): Don't pass anything
11581         in registers for -m32 only if stdarg_p (fntype).
11582
11583 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
11584
11585         PR rtl-optimization/36006
11586         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
11587         temp to op0 in order to avoid invalid rtx sharing.
11588
11589 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
11590
11591         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
11592         check TREE_INVARIANT.
11593         * tree-gimple.c (is_gimple_address): New.
11594         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
11595         * tree-gimple.h (is_gimple_address): New.
11596         * tree.h (decl_address_invariant_p): New.
11597         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
11598         (build_string): Likewise.
11599         (decl_address_invariant_p): New, from is_gimple_invariant_address.
11600         (tree_invariant_p_1): Likewise.
11601         (save_expr): Use it.
11602         (tree_invariant_p): New.
11603         (skip_simple_arithmetic): Use it.
11604         (stabilize_reference_1): Use it.
11605         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
11606         simplify.
11607         (build1_stat): Drop code to compute TREE_INVARIANT.
11608         (build2_stat): Drop code to compute TREE_INVARIANT.
11609         (build3_stat): Drop code to compute TREE_INVARIANT.
11610         (build4_stat): Drop code to compute TREE_INVARIANT.
11611         (build5_stat): Drop code to compute TREE_INVARIANT.
11612         (build7_stat): Drop code to compute TREE_INVARIANT.
11613         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
11614         * tree.h (struct tree_base): Remove invariant_flag.
11615         (TREE_INVARIANT): Remove.
11616         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
11617         (fold_builtin_expect): Check TREE_CONSTANT.
11618         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
11619         * c-tree.h (c_expr_to_decl): Drop third parameter.
11620         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
11621         (build_c_cast): Don't set TREE_INVARIANT.
11622         (pop_init_level): Don't set TREE_INVARIANT.
11623         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
11624         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
11625         TREE_CONSTANT.
11626         (gimplify_init_constructor): Don't set TREE_INVARIANT.
11627         (gimplify_addr_expr): Adjust comment.
11628         * tree-mudflap.c (mf_build_string):
11629         * print-tree.c (print_node): Don't print TREE_INVARIANT.
11630         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
11631         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
11632         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
11633         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
11634         * langhooks.h (struct lang_hooks): Drop third parameter from
11635         expr_to_decl.
11636
11637 2008-04-23  Richard Guenther  <rguenther@suse.de>
11638
11639         PR tree-optimization/27799
11640         PR tree-optimization/32921
11641         PR tree-optimization/32624
11642         * tree-ssa-structalias.c (merge_smts_into): Only merge the
11643         SMTs aliases and the tag itself into the solution.
11644         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
11645         merge the points-to solution back into the SMT aliases.
11646         (may_alias_p): Use alias_set_subset_of instead of
11647         aliases_conflict_p.  A pointer which points to
11648         memory with alias set zero may access any variable.
11649
11650 2008-04-23  Richard Guenther  <rguenther@suse.de>
11651
11652         * alias.c (alias_set_subset_of): Correctly handle asking
11653         if zero is a subset of an alias set with zero child.
11654         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
11655         (compute_flow_insensitive_aliasing): Correctly walk all
11656         pointers.  Do not unnecessarily union sets.
11657
11658 2008-04-23  Richard Guenther  <rguenther@suse.de>
11659
11660         PR middle-end/36021
11661         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
11662
11663 2008-04-22  Tomas Bily  <tbily@suse.cz>
11664
11665         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
11666         unreachable case.
11667         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
11668         NON_LVALUE_EXPR.
11669         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
11670         * tree-ssa-structalias.c (get_constraint_for): Likewise.
11671         * tree-inline.c (estimate_num_insns_1): Likewise.
11672         * varasm.c (const_hash_1, compare_constant, copy_constant)
11673         (compute_reloc_for_constant, output_addressed_constants): Likewise.
11674         * emit-rtl.c (component_ref_for_mem_expr)
11675         (set_mem_attributes_minus_bitpos): Likewise.
11676         * expr.c (highest_pow2_factor, expand_expr_real_1, )
11677         (is_aligning_offset): Likewise.
11678         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
11679         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
11680         * dojump.c (do_jump): Likewise.
11681         * builtins.c (get_pointer_alignment, get_memory_rtx)
11682         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
11683         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
11684
11685 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
11686
11687         PR rtl-optimization/36017
11688         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
11689         expanding the library call.
11690
11691 2008-04-22  Ian Lance Taylor  <iant@google.com>
11692
11693         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
11694         than size_in_bytes.
11695
11696 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
11697
11698         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
11699         of LR/CTR moves for Power6.
11700
11701 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
11702
11703         PR middle-end/36003
11704         * passes.c (init_optimization_passes): Remove
11705         pass_fast_rtl_byte_dce.
11706
11707 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
11708
11709         PR target/29096
11710         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
11711         builtin functions to generate faster code.
11712         (_mm_cvtpu16_ps): Ditto.
11713         (_mm_cvtpi32x2_ps): Ditto.
11714
11715 2008-04-22  Nick Clifton  <nickc@redhat.com>
11716
11717         * common.opt (ftree-loop-distribution): Add Optimization
11718         attribute.
11719
11720         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
11721         (frv_expand_builtin_va_start): Likewise.
11722
11723         * config/arm/arm.c (thumb_find_work_register): Fix location of
11724         argument register count.
11725
11726 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
11727
11728         Support scheduling for ColdFire V1 and V3 microarchitecture.
11729         Improve scheduling of multiplication instructions.
11730
11731         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
11732         (mac): New instruction attribute.
11733         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
11734         (m68k_sched_mac): New variable.
11735         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
11736         Handle cfv1 and cfv3.
11737         (max_insn_size): New static variable.
11738         (struct _sched_ib): New type.
11739         (sched_ib): New static variable.
11740         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
11741         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
11742         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
11743         Update.
11744         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
11745         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
11746         new variables.  Update.
11747         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
11748         Add modeling of cfv3 instruction buffer.  Update.
11749         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
11750         * config/m68k/m68k.h (TUNE_CFV3): New macro.
11751         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
11752         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
11753         a particular reservation applies to.
11754         (type2): Reorganize attribute values.  Rename alu to alu_reg,
11755         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
11756         to mul_l and mul_w.
11757         (cf_ib_*): Simplify description of instruction buffer.
11758         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
11759         (cf_mem): Split into cf_mem1 and cf_mem2.
11760         (cf_v2_move_??): Rename to cfv12_alu_??.
11761         (cf_v2_move_l_??): Rename to cfv12_omove_??.
11762         (cf_v2_mul_??): Remove reservations.
11763         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
11764         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
11765         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
11766         appropriate place.
11767         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
11768         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
11769         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
11770         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
11771         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
11772         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
11773         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
11774         expansions of the above reservations for instructions of sizes
11775         1, 2 and 3 words.
11776
11777 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
11778
11779         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
11780
11781 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
11782
11783         * coverage.c: Include tree-pass.h.
11784         (coverage_counter_alloc): Print da_file_name to the dump file.
11785
11786 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
11787
11788         * sbitmap.c (sbitmap_range_empty_p): New function.
11789         * sbitmap.h (sbitmap_range_empty_p): New function.
11790         * bitmap.h: Now includes obstack.h.
11791
11792 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
11793             Kenneth Zadeck  <zadeck@naturalbridge.com>
11794
11795         * dbgcnt.def (ra_byte_scan): Added.
11796         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
11797         when the last hit happens for a counter.
11798         * timevar.def (TV_DF_BYTE_LR): New variable.
11799         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
11800         * passes.c (pass_fast_rtl_byte_dce): New pass.
11801         * fwprop.c (update_df): Added mode to call df_ref_create.
11802         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
11803         DF_REF_EXTRACT_OFFSET.
11804         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
11805         DF_BYTE_LR_OUT, df_byte_lr): New macro.
11806         (df_mm): New enum.
11807         (df_ref_extract): Added mode field.
11808         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
11809         DF_REF_EXTRACT_OFFSET.
11810         (DF_REF_EXTRACT_MODE): New macro.
11811         (df_byte_lr_bb_info): New structure.
11812         (df_print_byte_regset, df_compute_accessed_bytes,
11813         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
11814         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
11815         df_byte_lr_simulate_uses,
11816         df_byte_lr_simulate_artificial_refs_at_top,
11817         df_byte_lr_simulate_artificial_refs_at_end,
11818         df_compute_accessed_bytes): New function.
11819         (df_ref_create): Add parameter.
11820         (df_byte_lr_get_bb_info): New inline function.
11821         * df-scan.c (df_ref_record, df_uses_record,
11822         df_ref_create_structure): Added mode parameter.
11823         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
11824         df_defs_record, df_uses_record, df_get_conditional_uses,
11825         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
11826         df_entry_block_defs_collect, df_exit_block_uses_collect):
11827         Added mode parameter to calls to df_ref_record, df_uses_record,
11828         df_ref_create_structure.
11829         (df_ref_equal_p, df_ref_compare): Added test for modes.
11830         (df_ref_create_structure): Added code to set mode.  Renamed
11831         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
11832         DF_REF_EXTRACT_OFFSET.
11833         * df-core.c (df_print_byte_regset): New function.
11834         * df-byte-scan.c: New file.
11835         * df-problems.c (df_rd_transfer_function): Removed unnecessary
11836         calls to BITMAP_FREE.
11837         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
11838         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
11839         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
11840         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
11841         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
11842         df_byte_lr_local_compute, df_byte_lr_init,
11843         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
11844         df_byte_lr_transfer_function, df_byte_lr_free,
11845         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
11846         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
11847         df_byte_lr_simulate_uses,
11848         df_byte_lr_simulate_artificial_refs_at_top,
11849         df_byte_lr_simulate_artificial_refs_at_end): New function.
11850         * dce.c (byte_dce_process_block): New function.
11851         (dce_process_block): au is now passed in rather than computed
11852         locally.  Changed loops that look at artificial defs to not look
11853         for conditional or partial ones, because there never are any.
11854         (fast_dce): Now is able to drive byte_dce_process_block or
11855         dce_process_block depending on the kind of dce being done.
11856         (rest_of_handle_fast_dce): Add parameter to fast_dce.
11857         (rest_of_handle_fast_byte_dce): New function.
11858         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
11859         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
11860
11861 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
11862
11863         PR fortran/35019
11864         * gcc.h: Added fortran options that take arguments to
11865         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
11866         macros.
11867
11868 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
11869
11870         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
11871         scalarization if on the LHS and not a full access.
11872
11873 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11874
11875         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
11876
11877 2008-04-18  Rafael Espindola  <espindola@google.com>
11878
11879         * tree-vrp.c (find_case_label_index): Fix the binary search.
11880         (find_case_label_range): New.
11881         (vrp_visit_switch_stmt): Use find_case_label_range.
11882         (simplify_switch_using_ranges): Use find_case_label_range.
11883
11884 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
11885
11886         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
11887         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
11888
11889 2008-04-18  Tom Tromey  <tromey@redhat.com>
11890
11891         PR libcpp/15500:
11892         * doc/cpp.texi (Implementation-defined behavior): Mention
11893         -finput-charset.
11894
11895 2008-04-18  Ian Lance Taylor  <iant@google.com>
11896
11897         * fold-const.c (pointer_may_wrap_p): New static function.
11898         (fold_comparison): Add another test for pointer overflow.  Use
11899         pointer_may_wrap_p to disable some false positives.
11900
11901 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
11902
11903         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
11904         (fname_as_string): Match updated cpp_interpret_string prototype.
11905         (fix_string_type): Support char16_t* and char32_t*.
11906         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
11907         derivative) nodes.  Register as builtin if C++0x.
11908         (c_parse_error): Support CPP_CHAR{16,32}.
11909         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
11910         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
11911         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
11912         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
11913         CTI_CHAR32_ARRAY_TYPE>: New elements.
11914         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
11915         char32_type_node, signed_char32_type_node, char16_array_type_node,
11916         char32_array_type_node): New defines.
11917         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
11918         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
11919         (lex_string): Support CPP_STRING{16,32}, match updated
11920         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
11921         (lex_charconst): Support CPP_CHAR{16,32}.
11922         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
11923         and CPP_STRING{16,32}.
11924
11925 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
11926
11927         PR bootstrap/35457
11928         * aclocal.m4: Regenerate.
11929         * configure: Regenerate.
11930
11931 2008-04-18  Jan Hubicka  <jh@suse.cz>
11932
11933         * except.c (dw2_size_of_call_site_table,
11934         sjlj_size_of_call_site_table): Use vector API for call_site_record.
11935
11936         * cgraphbuild.c (build_cgraph_edges): Update.
11937         * tree-pass.h: Update comment.
11938         * final.c (leaf_function_p): Update.
11939         (leaf_renumber_regs): Update.
11940         (rest_of_clean_state): Update.
11941         * omp-low.c (expand_omp_parallel): Update.
11942         * ipa-reference.c (analyze_function): Update.
11943         * reorg.c (find_end_label): Update.
11944         (optimize_skip): Update.
11945         (fill_simple_delay_slots): Update.
11946         (fill_simple_delay_slots): Update.
11947         (make_return_insns): Update.
11948         (dbr_schedule): Update.
11949         * gimple-low.c (record_vars_into): Update.
11950         * cfgbuild.c (make_edges): Update.
11951         * function.c (assign_stack_local): Update.
11952         (assign_parm_adjust_stack_rtl): Update.
11953         (locate_and_pad_parm): Update.
11954         (allocate_struct_function): Do not initialize stack_alignment_needed
11955         and preferred_stack_boundary here.
11956         (stack_protect_prologue): Update.
11957         (stack_protect_epilogue): Update.
11958         (expand_function_start): Initialize stack_alignment_needed,
11959         preferred_stack_boundary and max_jumptable_ents.
11960         (expand_function_end): Update.
11961         (free_after_compilation): Do not NULLify epilogue_delay_list.
11962         * function.h (struct rtl_data): Add stack_protect_guard,
11963         stack_alignment_needed,
11964         preferred_stack_boundary, epilogue_delay_list.
11965         (struct function): Remove value_histograms, stack_alignment_needed,
11966         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
11967         last_label_uid,
11968         unexpanded_var_list, stack_protect_guard.
11969         (current_function_epilogue_delay_list): Remove.
11970         * ipa-type-escape.c (analyze_function): Update.
11971         * gimplify.c (pop_gimplify_context): Update comment.
11972         * calls.c (expand_call): Update.
11973         (emit_library_call_value_1): Update.
11974         * except.c (set_nothrow_function_flags): Update.
11975         * cfgexpand.c (get_decl_align_unit): Update.
11976         (create_stack_guard): Update.
11977         (estimated_stack_frame_size): Update.
11978         (expand_used_vars): Update.
11979         (tree_expand_cfg): Free histogram earliers, init expansion variables.
11980         * explow.c (allocate_dynamic_stack_space): Update.
11981         * tree-ssa-live.c (remove_unused_locals): Update.
11982         * varasm.c (mark_constant_pool): Update.
11983         * tree-inline.c (remap_decls): Update.
11984         (initialize_cfun): Update.
11985         (declare_return_variable): Update.
11986         (inline_forbidden_p): Update.
11987         (expand_call_inline): Update.
11988         (declare_inline_vars): Update.
11989         (tree_function_versioning): Update.
11990         * tree-flow.h (value_histograms): New.
11991         (VALUE_HISTOGRAMS): New macro.
11992         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
11993         last_label_uid.
11994         * tree-cfg.c (set_bb_for_stmt): Update.
11995         (replace_by_duplicate_decl): Update.
11996         (move_block_to_fn): Update.
11997         (new_label_mapper): Update.
11998         (dump_function_to_file): Update.
11999         * ipa-struct-reorg.c (build_data_structure): Update.
12000         * cfgrtl.c (print_rtl_with_bb): Update.
12001         * reload1.c (reload): Update.
12002         (reload): Update.
12003         * config/i386/i386.c (setup_incoming_varargs_64,
12004         ix86_compute_frame_layout): Update.
12005         * config/arc/arc.c (arc_output_function_epilogue): Update.
12006
12007 2008-04-18  Marius Strobl <marius@FreeBSD.org>
12008
12009         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
12010         for FreeBSD as well.
12011         * gthr-posix95.h: Likewise.
12012
12013 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
12014
12015         PR rtl-optimization/35838
12016         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
12017         out the byte offset of the first subreg.
12018
12019 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
12020
12021         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
12022         to split_ti instead of three separate calls with single member arrays.
12023         (subti3 splitter): Ditto.
12024         (adddi3 splitter): Ditto with split_di.
12025         (subdi3 splitter): Ditto.
12026         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
12027         two separate calls with single member arrays.  Swap match_dup
12028         operands 1 and 2 to better fit into the array.
12029         (negdi2 splitter): Ditto with split_di.
12030         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
12031         two separate calls with single member arrays.  Swap match_dup operands
12032         6 and 7 to better fit into the array.
12033
12034 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
12035
12036         * config/i386/i386.c (sse_builtin_type): New.
12037         (bdesc_sse_args): Likewise.
12038         (bdesc_sse_3arg): Removed.
12039         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
12040         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
12041         IX86_BUILTIN_ROUNDPS.
12042         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
12043         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
12044         IX86_BUILTIN_ROUNDPS.
12045         (ix86_expand_sse_4_operands_builtin): Removed.
12046         (ix86_expand_sse_operands_builtin): New.
12047         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
12048         and CODE_FOR_sse4_1_roundps.
12049         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
12050         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
12051
12052 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
12053
12054         PR target/35907
12055         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
12056         regs before frame pop when needed.  If use_backchain_to_restore_sp
12057         then load backchain into a temp reg to restore vr and vrsave.  Add
12058         code to restore vr after frame pop if possible.
12059
12060 2008-04-17  Richard Guenther  <rguenther@suse.de>
12061
12062         * tree-vn.c (expressions_equal_p): Do not check type
12063         equality or compatibility before calling operand_equal_p.
12064         * fold-const.c (operand_equal_p): Check equivalence of
12065         integer constants before bailing out due to signedness or
12066         precision differences.
12067         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
12068         spurious differences in type qualification.  Ignore types
12069         for COMPONENT_REFs at all.
12070
12071 2008-04-17  Christian Bruel  <christian.bruel@st.com>
12072
12073         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
12074         msw_skip comparison.
12075
12076 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
12077
12078         PR c/35739
12079         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
12080         reg type.
12081
12082         PR tree-optimization/35899
12083         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
12084         rather than TREE_OPERAND.
12085
12086 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
12087
12088         PR target/35944
12089         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
12090         temporary registers.  Change operand predicate to general_operand.
12091         (remainderxf3): Ditto.
12092
12093 2008-04-16  Richard Guenther  <rguenther@suse.de>
12094
12095         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
12096         * tree-affine.c (aff_combination_expand): Look through some
12097         conversions.
12098
12099 2008-04-15  Doug Kwan  <dougkwan@google.com>
12100
12101         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
12102         for hex printing.
12103         * tree-pretty-print.c (dump_generic_node): Ditto.
12104         * final.c (output_addr_const): Ditto.
12105         * dwarf2out.c (output_cfi): Ditto.
12106         * c-pretty-print.c (pp_c_integer_constant): Ditto.
12107         * print-rtl.c (print_rtx): Ditto.
12108         * print-tree.c (print_node_brief, print_node): Ditto.
12109         * c-common.c (match_case_to_enum_1): Ditto.
12110         * sched-vis.c (print_value): Ditto.
12111         * config/i386/i386.c (print_operand): Cast to long unsigned int
12112         for hex printing.
12113
12114 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
12115         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
12116         MS Windows VirtualProtect function.
12117
12118 2008-04-15  Jan Hubicka  <jh@suse.cz>
12119
12120         * gengtype.c (write_root): Param_is argument is OK.
12121         * expr.c (expand_expr_real_1): Update call of get_exception_*.
12122         * function.h: Include varray.h
12123         (rtl_eh): New stucture based on except.c one.
12124         (call_site_record): New forward declaration and vector type.
12125         * calls.c (emit_call_1): Do not call
12126         note_current_region_may_contain_throw.
12127         * except.c (eh_status): Remove cur_region, try_region since they are
12128         unused.
12129         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
12130         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
12131         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
12132         Remove call_site_data_used, call_site_data_size.
12133         Turn call_site_record into vector in function.h.
12134         (note_current_region_may_contain_throw): Remove.
12135         (get_exception_pointer, get_exception_filter): Do not take struct
12136         function argument; update.
12137         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
12138         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
12139         build_post_landing_pads, dw2_build_landing_pads,
12140         sjlj_assign_call_site_values, sjlj_mark_call_sites,
12141         sjlj_emit_function_enter, sjlj_emit_function_enter,
12142         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
12143         sjlj_build_landing_pads, finish_eh_generation,
12144         remove_exception_handler_label, remove_eh_handler,
12145         maybe_remove_eh_handler, add_reachable_handler,
12146         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
12147         add_action_record, collect_one_action_chain, add_call_site,
12148         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
12149         sjlj_output_call_site_table, output_function_exception_table,
12150         * except.h (note_current_region_may_contain_throw): Remove
12151         (get_exception_pointer, get_exception_filter): Do not take struct
12152         function argument.
12153         * Makefile.in (GTFILES): Put varargs before struct function.
12154
12155 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
12156
12157         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
12158         punt for STRING_CST.
12159         (get_constraint_for): Deal with STRING_CST here instead.
12160
12161 2008-04-15  Richard Guenther  <rguenther@suse.de>
12162
12163         * tree-ssa-propagate.c (substitute_and_fold): Substitute
12164         statements in a basic-block with a backward walk.  Do not
12165         substitute into dead statements but instead remove those.
12166
12167 2008-04-15  Richard Guenther  <rguenther@suse.de>
12168
12169         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
12170         to zero, thus disable creation of SFTs.
12171
12172 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
12173
12174         * tree-predcom.c (suitable_reference_p): Return false if the
12175         reference can throw.
12176
12177 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
12178
12179         PR c/35751
12180         * c-decl.c (finish_decl): If extern or static var has variable
12181         size, set TREE_TYPE (decl) to error_mark_node.
12182
12183 2008-04-15  Rafael Espindola  <espindola@google.com>
12184
12185         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
12186         variable arg1.
12187
12188 2008-04-15  Richard Guenther  <rguenther@suse.de>
12189
12190         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
12191         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
12192         (visit_reference_op_load): Do walk vuse-vdef chains on
12193         vn_reference_lookup.
12194         (visit_reference_op_store): But do not here.
12195         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
12196         vn_reference_lookup.
12197         (vn_lookup_with_vuses): But do so here.
12198
12199 2008-04-14  Ian Lance Taylor  <iant@google.com>
12200
12201         * fold-const.c (fold_overflow_warning): Remove assertion.
12202
12203 2008-04-15  Ben Elliston  <bje@au.ibm.com>
12204
12205         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
12206         temp1 local variables.
12207
12208 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
12209
12210         PR target/35661
12211         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
12212         ".text.unlikely" section as executable.
12213
12214 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
12215
12216         * config/ia64/ia64.c (rtx_needs_barrier): Handle
12217         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
12218         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
12219         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
12220         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
12221         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
12222         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
12223
12224 2008-04-14  Ian Lance Taylor  <iant@google.com>
12225
12226         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
12227         * fold-const.c (fold_comparison): If appropriate, test
12228         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
12229         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
12230         reassociating a pointer type.
12231         * doc/invoke.texi (Optimize Options): Document that
12232         -fstrict-overflow applies to pointer wraparound.
12233
12234 2008-04-13  Jan Hubicka  <jh@suse.cz>
12235
12236         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
12237
12238 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
12239
12240         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
12241         we are going to "save the world".
12242
12243 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
12244
12245         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
12246         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
12247         operand 0 constraint, not "=".
12248
12249 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
12250
12251         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
12252
12253 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
12254
12255         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
12256         of size of positions_needed * CHAR_BIT.
12257
12258 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
12259
12260         PR middle-end/35897
12261         * dse.c (store_info): Change positions_needed to unsigned
12262         HOST_WIDE_INT.
12263         (lowpart_bitmask): New.
12264         (record_store): Cast to unsigned HOST_WIDE_INT for
12265         positions_needed.  Assert width <= size of positions_needed *
12266         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
12267         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
12268         lowpart_bitmask to set mask.
12269
12270 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
12271
12272         * config/bfin/constraints.md: New file.
12273         * config/bfin/bfin.md: Include it.
12274         (adddi3): Use satisfies_constraint functions instead of the old macros.
12275         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
12276         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
12277         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
12278         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
12279         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
12280         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
12281         EXTRA_CONSTRAINT): Delete.
12282         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
12283         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
12284         of the old macros.
12285         * config/bfin/bfin.c: Include "tm-constrs.h".
12286         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
12287         Use satisfies_constraint functions instead of the old macros.
12288         * doc/md.texi (Blackfin Constraints): Update file name reference.
12289
12290 2008-04-11  Richard Guenther  <rguenther@suse.de>
12291
12292         PR tree-optimization/35869
12293         * tree-vrp.c (execute_vrp): Move switch statement update after
12294         jump threading.  Schedule another cfg cleanup run.
12295
12296 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
12297
12298         PR c/35744
12299         * attribs.c (decl_attributes): Return early on errorneous node.
12300
12301 2008-04-10  Oleg Ryjkov  <olegr@google.com>
12302
12303         * tree.h (struct tree_base): Added a new flag default_def_flag.
12304         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
12305
12306 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
12307
12308         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
12309
12310 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12311
12312         PR target/35768
12313         * pa.md: Define mode iterator P.  Define mode attribute dwc.
12314         (dcacheflush): Update pattern to use iterator P and attribute dwc.
12315         (icacheflush): Likewise.
12316         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
12317         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
12318
12319 2008-04-11  Ben Elliston  <bje@au.ibm.com>
12320
12321         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
12322
12323 2008-04-10  Rafael Espindola  <espindola@google.com>
12324
12325         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
12326         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
12327         (extract_range_from_expr): The same.
12328
12329 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
12330
12331         * config/mips/mips.md (GPR2): New mode iterator.
12332         (seq): Add comment.
12333         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
12334         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
12335         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
12336         Rewrite these to take two modes, the mode of comparison and the
12337         mode of the destination.
12338         * config/mips/mips.c (mips_expand_scc): Instead of having
12339         paradoxical subreg as destination, expand "narrowing" scc if mode
12340         of comparison is SI and target is requested in DI mode.
12341         (mips_emit_int_order_test): Update comment.  Make mode of
12342         comparison match CMP0 rather than TARGET.  When creating inverse
12343         target use mode of TARGET.
12344
12345 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
12346
12347         * gcov-dump.c (tag_summary): Only print summaries for the first
12348         GCOV_COUNTERS_SUMMABLE counters.
12349
12350 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
12351
12352         * config/i386/i386.md (absneg): New code iterator.
12353         (absnegprefix): New code attribute.
12354         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
12355         patterns using absneg code iterator.
12356         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
12357         using absneg code iterator.
12358         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
12359         *neg<mode>2 patterns using absneg code iterator.
12360         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
12361         *negextendsfdf2 patterns using absneg code iterator.
12362         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
12363         *negextendsfxf2 patterns using absneg code iterator.
12364         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
12365         *negextendsfdf2 patterns using absneg code iterator.
12366         * config/i386/sse.md (<code><mode>2): Macroize expander from
12367         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
12368
12369 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
12370
12371         * config/s390/s390.h: Remove the remains of the recent search
12372         & replace action of current_function_outgoing_args_size.
12373
12374 2008-04-10  Ira Rosen  <irar@il.ibm.com>
12375
12376         PR tree-optimization/35821
12377         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
12378         NEW_STMT_LIST is not NULL.
12379
12380 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
12381
12382         PR libstdc++/35597
12383         * toplev.c (process_options): Remove -ffunction-sections debugging
12384         warning.
12385
12386 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
12387
12388         PR middle-end/PR28690
12389         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
12390         than gen_rtx_fmt_ee to perform more canonicalizations.
12391
12392 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12393
12394         PR driver/35665
12395         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
12396
12397 2008-04-09  Richard Guenther  <rguenther@suse.de>
12398
12399         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
12400         (dump_function_to_file): Dump function arguments with types.
12401
12402 2008-04-08  Richard Guenther  <rguenther@suse.de>
12403
12404         * fold-const.c (fold_widened_comparison): Do not allow
12405         sign-changes that change the result.
12406
12407 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
12408
12409         PR target/35839
12410         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
12411         kinds of indirect references.
12412
12413 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
12414
12415         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
12416         GNU Fortran language string.
12417
12418 2008-04-08  Rafael Espindola  <espindola@google.com>
12419
12420         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
12421         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
12422         * tree.h (tree_call_nonnegative_warnv_p): New.
12423
12424 2008-04-08  Jan Hubicka  <jh@suse.cz>
12425
12426         * function.c (free_after_compilation): Clear out regno_reg_rtx
12427         pointer.
12428
12429 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
12430
12431         Revert
12432         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
12433
12434         PR middle-end/PR28690
12435         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
12436         same precedence as REG_POINTER and MEM_POINTER operands.
12437
12438 2008-04-08  Richard Guenther  <rguenther@suse.de>
12439
12440         PR middle-end/35834
12441         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
12442         for adding index to base.
12443
12444 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
12445
12446         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
12447         (MINGW_ENABLE_EXECUTE_STACK): New.
12448         (IN_LIBGCC2): For libgcc include windows.h file for
12449         function declarations.
12450
12451 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
12452
12453         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
12454         and tem2 if tem1 is not a REG or MULT.
12455
12456 2008-04-08  Jan Hubicka  <jh@suse.cz>
12457
12458         * function.h (incomming_args): Break out of struct function.
12459         (function_subsections): Break out of struct function.
12460         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
12461         return_rtx and hard_reg_initial_vals from struct function.
12462         Kill inl_max_label_num.
12463         (current_function_pops_args, current_function_args_info,
12464         current_function_args_size, current_function_args_size,
12465         current_function_pretend_args_size,
12466         current_function_outgoing_args_size,
12467         current_function_internal_arg_pointer, current_function_return_rtx):
12468         Kill compatibility accestor macros.
12469         * builtins.c (expand_builtin_apply_args_1): Update.
12470         (expand_builtin_next_arg): Update.
12471         * df-scan.c (df_get_call_refs): Update.
12472         * dbxout.c (dbxout_function_end): Update.
12473         * dwarf2out.c (dwarf2out_switch_text_section): Update.
12474         (output_line_info): Update.
12475         (secname_for_decl): Update.
12476         (dwarf2out_var_location): Update.
12477         * function.c (free_after_compilation): Update.
12478         (assign_parm_find_stack_rtl): Update.
12479         (assign_parms): Update.
12480         (expand_dummy_function_end): Update.
12481         (expand_function_end): Update.
12482         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
12483         (expand_call): Update.
12484         (emit_library_call_value_1): Update.
12485         (store_one_arg): Update.
12486         * varasm.c (initialize_cold_section_name): Update.
12487         (unlikely_text_section): Update.
12488         (unlikely_text_section_p): Update.
12489         (assemble_start_function): Update.
12490         (assemble_end_function): Update.
12491         (default_section_type_flags): Update.
12492         (switch_to_section): Update.
12493         * integrate.c (set_decl_abstract_flags): Update.
12494         (get_hard_reg_initial_val): Update.
12495         (has_hard_reg_initial_val): Update.
12496         (allocate_initial_values): Update.
12497         * resource.c (init_resource_info): Update.
12498         * config/alpha/alpha.c (NUM_ARGS): Update.
12499         (direct_return): Update.
12500         (alpha_va_start): Update.
12501         (alpha_sa_size): Update.
12502         (alpha_initial_elimination_offset): Update.
12503         (alpha_expand_prologue): Update.
12504         (alpha_start_function): Update.
12505         (alpha_expand_epilogue): Update.
12506         (unicosmk_initial_elimination_offset):
12507         * config/alpha/alpha.md (call expander): Update.
12508         * config/s390/s390.c (s390_register_info): Update.
12509         (s390_register_info): Update.
12510         (s390_frame_info): Update.
12511         (s390_initial_elimination_offset): Update.
12512         (s390_build_builtin_va_list): Update.
12513         (s390_va_start): Update.
12514         * config/spu/spu.c (direct_return): Update.
12515         (spu_expand_prologue): Update.
12516         (spu_initial_elimination_offset): Update.
12517         (spu_build_builtin_va_list): Update.
12518         (spu_va_start): Update.
12519         * config/sparc/sparc.c (sparc_init_modes): Update.
12520         (sparc_compute_frame_size): Update.
12521         (function_value): Update.
12522         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
12523         * config/i386/i386.md (return expander): Update.
12524         * config/i386/i386.c (ix86_va_start): Update.
12525         (ix86_can_use_return_insn_p): Update.
12526         (ix86_compute_frame_layout): Update.
12527         (ix86_expand_epilogue): Update.
12528         * config/sh/sh.c (output_stack_adjust): Update.
12529         (calc_live_regs): Update.
12530         (sh_expand_prologue): Update.
12531         (sh_builtin_saveregs): Update.
12532         (sh_va_start): Update.
12533         (initial_elimination_offset): Update.
12534         (sh_allocate_initial_value): Update.
12535         (sh_function_ok_for_sibcall): Update.
12536         (sh_get_pr_initial_val): Update.
12537         * config/sh/sh.md (return expander): Update.
12538         * config/avr/avr.c (frame_pointer_required_p): UPdate.
12539         * config/crx/crx.c (crx_compute_frame): UPdate.
12540         (crx_initial_elimination_offset): UPdate.
12541         * config/xtensa/xtensa.c (compute_frame_size): Update
12542         (xtensa_builtin_saveregs): Update.
12543         (xtensa_va_start): Update.
12544         (order_regs_for_local_alloc): Update.
12545         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
12546         (xstormy16_expand_builtin_va_start): Update.
12547         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
12548         * config/m68hc11/m68hc11.md (return expanders): Update.
12549         * config/m68hc11/m68hc11.c (expand_prologue): Update.
12550         (expand_epilogue): Update.
12551         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
12552         (cris_simple_epilogue): Update.
12553         (cris_expand_prologue): Update.
12554         (cris_expand_epilogue): Update.
12555         * config/iq2000/iq2000.c (iq2000_va_start): Update.
12556         (compute_frame_size): Update.
12557         * config/mt/mt.c (mt_compute_frame_size): Update.
12558         * config/mn10300/mn10300.c (expand_prologue): Update.
12559         (expand_epilogue): Update.
12560         (initial_offset): Update.
12561         (mn10300_builtin_saveregs):
12562         * config/mn10300/mn10300.md (return expander): Update.
12563         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
12564         (ia64_initial_elimination_offset): Update.
12565         (ia64_initial_elimination_offset): Update.
12566         (ia64_expand_prologue): Update.
12567         * config/m68k/m68k.md (return expander): Update.
12568         * config/rs6000/rs6000.c (rs6000_va_start): Update.
12569         (rs6000_stack_info): Update.
12570         * config/mcore/mcore.c (layout_mcore_frame): Update.
12571         (mcore_expand_prolog): Update.
12572         * config/arc/arc.c (arc_compute_frame_size): Update.
12573         * config/score/score3.c (score3_compute_frame_size): Update.
12574         * config/score/score7.c (score7_compute_frame_size): Update.
12575         * config/arm/arm.c (use_return_insn): Update.
12576         (thumb_find_work_register): Update.
12577         (arm_compute_save_reg_mask): Update.
12578         (arm_output_function_prologue): Update.
12579         (arm_output_epilogue): Update.
12580         (arm_size_return_regs): Update.
12581         (arm_get_frame_offsets): Update.
12582         (arm_expand_prologue): Update.
12583         (thumb_exit): Update.
12584         (thumb_unexpanded_epilogue): Update.
12585         (thumb1_output_function_prologue): Update.
12586         * config/pa/pa.md (return expander): Update.
12587         * config/pa/pa.c (compute_frame_size): Update.
12588         (hppa_builtin_saveregs): Update.
12589         * config/mips/mips.c (mips_va_start): Update.
12590         (mips16_build_function_stub): Update.
12591         (mips_compute_frame_info): Update.
12592         (mips_restore_gp): Update.
12593         (mips_output_function_prologue): Update.
12594         (mips_expand_prologue): Update.
12595         * config/v850/v850.c (compute_frame_size): Update.
12596         (expand_prologue): * config/mmix/mmix.c (along): update.
12597         (mmix_initial_elimination_offset): update.
12598         (mmix_reorg): update.
12599         (mmix_use_simple_return): update.
12600         (mmix_expand_prologue): update.
12601         (mmix_expand_epilogue): Update.
12602         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
12603         (emit_link_insn): Update.
12604
12605 2008-04-08  Anatoly Sokolov <aesok@post.ru>
12606
12607         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
12608         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
12609         instructions.
12610         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
12611         atmega103 device.
12612
12613 2008-04-07  Jan Hubicka  <jh@suse.cz>
12614
12615         * function.h (rtl): Rename to x_rtl.
12616         (crtl): New define.
12617         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
12618         frame_offset, stack_check_probe_note, arg_pointer_save_area,
12619         used_temp_slots avail_temp_slots, temp_slot_level,
12620         nonlocal_goto_handler_labels): Update accesstors.
12621         (rtl): New global variable.
12622         (struct function): Move some fileds to rtl_data.
12623         (get_arg_pointer_save_area): Update prototype.
12624         * builtins.c (expand_builtin_setjmp_receiver): Update call of
12625         get_arg_pointer_save_area.
12626         * expr.c (init_expr): Update
12627         * function.c (get_frame_size): Update
12628         (assign_stack_local): Update
12629         (expand_function_end): Update.
12630         (get_art_pointer_save_area): Update
12631         * function.h
12632         * emit-rtl.c (rtl): Declare.
12633         (regno_reg_rtx): Declare.
12634         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
12635         Update.
12636         (gen_reg_rtx): Update.
12637         * varasm.c (n_deferred_constatns): Update accestor.
12638         (init_varasm_status): Do not allocate varasm_status.
12639         (force_const_mem, get_pool_size, output_constant_pool): Update.
12640         * stmt.c (force_label_rtx): Do not use x_ prefixes.
12641         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
12642         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
12643         * sparc/sparc.h (INIT_EXPANDERS): Update.
12644         * ia64/ia64.h (INIT_EXPANDERS): Update.
12645
12646 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
12647
12648         * reload.c (push_secondary_reload): Add missing break to for loop.
12649
12650 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
12651
12652         PR middle-end/PR28690
12653         * rtlanal.c: Update copyright years.
12654         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
12655         as REG_POINTER and MEM_POINTER operands.
12656         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
12657         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
12658         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
12659         * gcse.c: Update copyright years.
12660         (pre_delete): Call gen_reg_rtx_and_attrs.
12661         (hoist_code): Likewise.
12662         (build_store_vectors): Likewise.
12663         (delete_store): Likewise.
12664         * loop-invariant.c (move_invariant_reg): Likewise.
12665         Update copyright years.
12666
12667 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
12668
12669         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
12670         control string instead of quoted.
12671
12672 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
12673
12674         * doc/rtl.texi: Rewrite of subreg section.
12675
12676 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
12677
12678         PR/35842
12679         * config/i386/i386.c (legitimize_pic_address): Add treating
12680         of dllimport SYM_REF's.
12681         (legitimize_dllimport_symbol): Add prototype.
12682
12683 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
12684
12685         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
12686         reference in constructor with non self-referential type.
12687
12688 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
12689
12690         Removal of Return with Depressed Stack Pointer support
12691         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
12692         (ECF_SP_DEPRESSED): Likewise.
12693         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
12694         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
12695         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
12696         (expand_call): Do not test ECF_SP_DEPRESSED.
12697         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
12698         * function.c (keep_stack_depressed): Delete.
12699         (handle_epilogue_set): Likewise.
12700         (update_epilogue_consts): Likewise.
12701         (emit_equiv_load): Likewise.
12702         (thread_prologue_and_epilogue_insns): Remove support for Return with
12703         Depressed Stack Pointer.
12704         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
12705
12706 2008-04-06  Richard Guenther  <rguenther@suse.de>
12707
12708         PR tree-optimization/35400
12709         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
12710         information from SSA_NAMEs.
12711
12712 2008-04-06  Anatoly Sokolov <aesok@post.ru>
12713
12714         * config/avr/avr.h (avr_mega_p): Remove declaration.
12715         (AVR_MEGA): Remove macro.
12716         * config/avr/avr.c (avr_mega_p): Remove variable.
12717         (avr_override_options): Remove inicializion of avr_mega_p.
12718         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
12719         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
12720         (avr_jump_mode): (Ditto.).
12721         (avr_output_progmem_section_asm_op): (Ditto.).
12722         (avr_asm_init_sections): (Ditto.).
12723         (avr_asm_init_sections): (Ditto.).
12724         (avr_rtx_costs): (Ditto.).
12725         * config/avr/avr.md: (Ditto.).
12726         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
12727         '__AVR_MEGA__'.
12728
12729 2008-04-06  Richard Guenther  <rguenther@suse.de>
12730
12731         PR tree-optimization/35842
12732         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
12733         is_gimple_invariant_address.
12734
12735 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12736
12737         * gcc.c (default_compilers): Sync Fortran extensions list with
12738         that in fortran/lang-specs.h.
12739         * doc/invoke.texi: Likewise.
12740         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
12741         * dwarf2out.c (gen_compile_unit_die): Likewise.
12742
12743 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
12744
12745         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
12746
12747 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
12748
12749         PR target/12329
12750         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
12751         attribute is used for nested functions.
12752
12753 2008-04-05  Jan Hubicka  <jh@suse.cz>
12754
12755         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
12756
12757         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
12758         letter argument.
12759         (dump_files): Update.
12760         (enable_rtl_dump_file): Do not accept letter argument.
12761         * tree-pass.h (dump_file_info): Remove letter argument.
12762         * toplev.c (decode_d_option): Update -da handling.
12763         * toplev.h (enable_rtl_dump_file): Update prototype.
12764         * passes.c (register_one_dump_file): Do not accept IPA argument; work
12765         it out based on pass type.
12766         (register_dump_files_1): Likewise.
12767         (init_optimization_passes): Update register_one_dump_file calls.
12768         (execute_one_pass): Sanity check that IPA passes are called at IPA
12769         level and RTL passes at RTL level.
12770         (execute_pass_list): IPA pass can not be after or subpass of
12771         GIMPLE/RTL pass.
12772         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
12773         disallov RTL subpasses of IPA subpasses.
12774
12775 2008-04-05  Ben Elliston  <bje@au.ibm.com>
12776
12777         * tree-cfg.c (need_fake_edge_p): Return false for calls to
12778         builtins that return exactly once and do not throw. Cache call to
12779         call_expr_flags.
12780
12781 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
12782
12783         PR rtl-optimization/34916
12784         PR middle-end/35519
12785         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
12786         between instruction pairs.
12787
12788 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
12789
12790         * doc/invoke.texi: Document -mbitops for SH.
12791         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
12792         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
12793         * config/sh/sh.c (print_operand): Add %t operand code.
12794         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
12795         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
12796         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
12797         (extendqihi2): Likewise.
12798         (movqi_i): Likewise.
12799         (insv): Use bset, bclr and bst instructions for SH2A if possible.
12800         (extv): Use bld instruction for SH2A if possible.
12801         (extzv): Likewise.
12802         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
12803         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
12804         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
12805         (bset.b, bclr.b): Define peepholes.
12806         * config/sh/sh.opt (mbitops): New option.
12807
12808 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
12809
12810         PR target/35620
12811         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
12812         and view convert expression.
12813
12814 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
12815
12816         PR target/35364
12817         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
12818
12819 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
12820
12821         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
12822
12823         * config/i386/cpuid.h (bit_AES): New.
12824         (bit_PCLMUL): Likewise.
12825
12826         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
12827         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
12828         SSE2 if AES or PCLMUL is enabled.
12829         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
12830         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
12831         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
12832         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
12833         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
12834         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
12835         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
12836         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
12837         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
12838         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
12839         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
12840         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
12841         __builtin_ia32_aeskeygenassist128 and
12842         __builtin_ia32_pclmulqdq128.
12843         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
12844         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
12845         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
12846
12847         * config/i386/i386.h (TARGET_AES): New.
12848         (TARGET_PCLMUL): Likewise.
12849         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
12850
12851         * config/i386/i386.md (UNSPEC_AESENC): New.
12852         (UNSPEC_AESENCLAST): Likewise.
12853         (UNSPEC_AESDEC): Likewise.
12854         (UNSPEC_AESDECLAST): Likewise.
12855         (UNSPEC_AESIMC): Likewise.
12856         (UNSPEC_AESKEYGENASSIST): Likewise.
12857         (UNSPEC_PCLMUL): Likewise.
12858
12859         * config/i386/i386.opt (maes): New.
12860         (mpclmul): Likewise.
12861
12862         * config/i386/sse.md (aesenc): New pattern.
12863         (aesenclast): Likewise.
12864         (aesdec): Likewise.
12865         (aesdeclast): Likewise.
12866         (aesimc): Likewise.
12867         (aeskeygenassist): Likewise.
12868         (pclmulqdq): Likewise.
12869
12870         * config/i386/wmmintrin.h: New.
12871
12872         * doc/extend.texi: Document AES and PCLMUL built-in function.
12873
12874         * doc/invoke.texi: Document -maes and -mpclmul.
12875
12876 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
12877
12878         * function.c (free_after_parsing): Replace with
12879         cxx_push_function_context from C++ front-end.
12880         (allocate_struct_function): Don't call langhook.
12881         * langhooks.h (struct lang_hooks_for_functions): Delete.
12882         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
12883         member "function".
12884         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
12885         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
12886         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
12887         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
12888         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
12889         remove LANG_HOOKS_FUNCTION_INITIALIZER.
12890         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
12891
12892         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
12893         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
12894
12895 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
12896
12897         PR c/35440
12898         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
12899         for all types.
12900
12901 2008-04-04  Richard Guenther  <rguenther@suse.de>
12902
12903         PR middle-end/35823
12904         * fold-const.c (optimize_minmax_comparison): Use the correct
12905         type for the constant in the simplified comparison.
12906
12907 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
12908
12909         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
12910         Pass L2 size as "--param l2-cache-size" to the compiler.
12911         (decode_l2_cache): New function to decode L2 cache parameters using
12912         0x8000006 extended cpuid function.
12913         (detect_caches_amd): Determine parameters of L2 cache using
12914         decode_l2_caches function.
12915         (decode_caches_intel): Decode L2 cache parameters.
12916         (detect_caches_intel): Determine L2 cache parameters using
12917         decode_caches_intel and decode_l2_caches functions.
12918
12919 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
12920
12921         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
12922         secondary input reload for subword loads from the constant pool.
12923
12924 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
12925
12926         PR target/35713
12927         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
12928           constants of the appropriate size for runtime calculations.
12929
12930         PR c/35712
12931         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
12932           decimal-float literal constant zero.
12933
12934 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
12935
12936         PR c/35738
12937         * c-parser.c (c_parser_omp_atomic): Call
12938         default_function_array_conversion on the RHS.
12939
12940         PR middle-end/35818
12941         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
12942         call is_variable_sized if decl has incomplete type.
12943
12944 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
12945
12946         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
12947
12948 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
12949
12950         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
12951         iterators.
12952         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
12953         (sgt<u>): Merge sgt and sgtu into new expander.
12954         (sgt, sgtu): Remove expanders.
12955         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
12956         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
12957         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
12958         *sgtu_<mode>_mips16 into new pattern.
12959         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
12960         (sge<u>): Merge sge and sgeu into new expander.
12961         (sge, sgeu): Remove expanders.
12962         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
12963         new pattern.
12964         (*sge_<mode>, second *sge_<mode>): Remove patterns.
12965         (slt<u>): Merge slt and sltu into new expander.
12966         (slt, sltu): Remove expanders.
12967         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
12968         (*slt_<mode>, *sltu_<mode>): Remove patterns.
12969         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
12970         *sltu_<mode>_mips16 into new pattern.
12971         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
12972         (sle<u>): Merge sle and sleu into new expander.
12973         (sle, sleu): Remove expanders.
12974         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
12975         (*sle_<mode>, *sleu_<mode>): Remove patterns.
12976         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
12977         *sleu_<mode>_mips16 into new pattern.
12978         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
12979
12980 2008-04-03  Jan Hubicka  <jh@suse.cz>
12981
12982         PR tree-optimization/35795
12983         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
12984         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12985         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12986         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12987         * score/score3.c (score3_output_mi_thunk): Likewise.
12988         * score/score7.c (score7_output_mi_thunk): Likewise.
12989         * mips/mips.c (mips_output_mi_thunk): Likewise.
12990
12991 2008-04-03  Richard Guenther  <rguenther@suse.de>
12992
12993         * tree-vrp.c (extract_range_from_unary_expr): Handle all
12994         conversions.  Simplify code.
12995
12996 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
12997
12998         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
12999
13000 2008-04-03  Tom Tromey  <tromey@redhat.com>
13001             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13002
13003         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
13004         * config/bfin/t-bfin-linux (generated_files): Add
13005         linux-sysroot-suffix.h.
13006         * doc/install.texi (Prerequisites): Require make 3.80.
13007         * doc/sourcebuild.texi (Front End Directory): Document new
13008         variable.
13009         * Makefile.in (generated_files): New variable.
13010         (ALL_HOST_OBJS): New variable.
13011         ($(ALL_HOST_OBJS)): New target.
13012
13013 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
13014
13015         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
13016         (remap_block): Call id->transform_lang_insert_block instead
13017         of langhook.
13018         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
13019         Set id.transform_lang_insert_block to NULL.
13020         (clone_body): Move to cp/optimize.c
13021         * tree-inline.h (struct copy_body_data): Change
13022         transform_lang_insert_block to function pointer.
13023         (copy_generic_body, copy_decl_no_change): Export.
13024         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
13025         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
13026         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
13027
13028         * c-tree.h (insert_block): Kill.
13029         * c-decl.c (insert_block): Kill.
13030
13031 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
13032
13033         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
13034         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
13035         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
13036         argument.
13037         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
13038         argument, call {push,pop}_function_context from here.
13039         * c-parser.c: Use c_{push,pop}_function_context.
13040
13041         * function.c (push_function_context_to): Move meat ...
13042         (push_function_context): ... here.  Simplify.
13043         * function.c (pop_function_context_from): Move meat ...
13044         (pop_function_context): ... here.  Simplify.
13045         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
13046         leave_nested).
13047         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
13048         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
13049         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
13050         * tree.h (push_function_context_to, pop_function_context_from): Remove.
13051
13052 2008-04-03  Ben Elliston  <bje@au.ibm.com>
13053
13054         * expmed.c (extract_force_align_mem_bit_field): Remove.
13055
13056 2008-04-03  Richard Guenther  <rguenther@suse.de>
13057
13058         PR middle-end/35800
13059         * expr.h (try_casesi): Adjust prototype.
13060         * expr.c (try_casesi): Take fallback label as extra parameter.
13061         Use that for gen_casesi if default_label is NULL.
13062         * stmt.c (expand_case): Pass fallback label to try_casesi,
13063         make sure to fill gaps with a fallback label if default_label
13064         is not present.
13065
13066 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
13067
13068         PR target/35801
13069         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
13070
13071 2008-04-03  Ben Elliston  <bje@au.ibm.com>
13072
13073         * expmed.c (extract_split_bit_field): Remove if (0) code.
13074         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
13075         (do_ds_constraint): Likewise.
13076
13077 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
13078
13079         * doc/cppopts.texi (-dU): Document.
13080         * c-common.h (flag_dump_macros): Update comment.
13081         * c-opts.c (handle_OPT_d): Handle -dU.
13082         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
13083         dump_queued_macros, cb_used_define, cb_used_undef): New.
13084         (init_pp_output): Handle -dU.
13085         (cb_line_change): Call dump_queued_macros.
13086         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
13087
13088 2008-04-02  Anatoly Sokolov <aesok@post.ru>
13089
13090         * config/avr/predicates.md (io_address_operand): New predicate.
13091         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
13092         * config/avr/avr.c (avr_io_address_p): Remove function.
13093         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
13094         'avr_io_address_p' function.
13095         (out_movhi_r_mr): (Ditto.).
13096         (out_movqi_mr_r): (Ditto.).
13097         (out_movhi_mr_r): (Ditto.).
13098         (avr_address_cost): (Ditto.).
13099
13100 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
13101
13102         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
13103         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
13104         in 32bit mode when XMM registers are available to avoid store
13105         forwarding stalls.
13106         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
13107         corresponding post-reload splitters.
13108
13109 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
13110
13111         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
13112         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
13113         __builtin_ia32_roundss.
13114         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
13115         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
13116         __builtin_ia32_roundss.
13117         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
13118         IX86_BUILTIN_SHUFPD here.
13119
13120 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
13121
13122         * config/i386/i386.md (plogic): New.
13123         (plogicprefix): Likewise.
13124
13125         * config/i386/mmx.md (mmx_<code><mode>3): New.
13126         (mmx_and<mode>3): Removed.
13127         (mmx_ior<mode>3): Likewise.
13128         (mmx_xor<mode>3): Likewise.
13129
13130         * config/i386/sse.md (<code><mode>3): New.
13131         (*<code><mode>3): Likewise.
13132         (*<code><mode>3): Likewise.
13133         (<code><mode>3): Likewise.
13134         (*sse_<code><mode>3): Likewise.
13135         (*sse2_<code><mode>3): Likewise.
13136         (<code>tf3): Likewise.
13137         (*<code>tf3): Likewise.
13138         (and<mode>3): Likewise.
13139         (*and<mode>3): Likewise.
13140         (ior<mode>3): Removed.
13141         (*ior<mode>3): Likewise.
13142         (xor<mode>3): Likewise.
13143         (*xor<mode>3): Likewise.
13144         (*and<mode>3): Likewise.
13145         (*ior<mode>3): Likewise.
13146         (*xor<mode>3): Likewise.
13147         (and<mode>3): Likewise.
13148         (*sse_and<mode>3): Likewise.
13149         (*sse2_and<mode>3): Likewise.
13150         (andtf3): Likewise.
13151         (*andtf3): Likewise.
13152         (ior<mode>3): Likewise.
13153         (*sse_ior<mode>3): Likewise.
13154         (*sse2_ior<mode>3): Likewise.
13155         (iortf3): Likewise.
13156         (*iortf3): Likewise.
13157         (xor<mode>3): Likewise.
13158         (*sse_xor<mode>3): Likewise.
13159         (*sse2_xor<mode>3): Likewise.
13160         (xortf3): Likewise.
13161         (*xortf3): Likewise.
13162
13163 2008-04-02  Richard Guenther  <rguenther@suse.de>
13164
13165         PR tree-optimization/14495
13166         PR tree-optimization/34793
13167         * tree-vrp.c (struct switch_update): New structure.
13168         (to_remove_edges, to_update_switch_stmts): New VECs.
13169         (simplify_switch_using_ranges): New function.  Remove not taken
13170         case labels and edges.
13171         (simplify_stmt_using_ranges): Call it.
13172         (identify_jump_threads): Mark edges we have queued for removal
13173         so we don't thread them.
13174         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
13175         case label vector.
13176         * tree-cfg.c (group_case_labels): Deal with missing default label.
13177         (tree_verify_flow_info): Allow missing default label.
13178         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
13179         (emit_case_nodes): Likewise.
13180         (expand_case): Do not rely on the default label to be present.
13181         * expr.c (try_casesi): Deal with NULL default_label.
13182         (do_tablejump): Likewise.
13183
13184 2008-04-02  Richard Guenther  <rguenther@suse.de>
13185
13186         PR tree-optimization/14495
13187         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
13188         SWITCH_EXPR here ...
13189         (vrp_visit_switch_stmt): ... but here (new function).
13190         (find_case_label_index): New helper function.
13191         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
13192
13193 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
13194
13195         * fwprop.c: Fix ISO-C99ism.
13196
13197 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
13198
13199         PR bootstrap/35752
13200         * Makefile.in (objdir): Set it here.
13201         * configure.ac: Not here.  Find dynamic linker characteristics.
13202         * exec-tool.in: Use them.
13203         * aclocal.m4: Regenerate.
13204         * configure: Regenerate.
13205
13206 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
13207
13208         * expr.c (expand_var): Delete it.
13209         * expr.h (expand_var): Delete prototype.
13210         * function.c (expand_function_start): Use expand_decl instead.
13211         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
13212         langhook.
13213
13214 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
13215
13216         PR rtl-optimization/35542
13217         * fwprop.c (forward_propagate_and_simplify): Replace
13218         loc_reg_mentioned_in_p with reg_mentioned_p.
13219
13220 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
13221
13222         PR rtl-optimization/35281
13223         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
13224         (propagate_rtx_1): Handle PR_HANDLE_MEM.
13225         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
13226         (varying_mem_p): Move above propagate_rtx.
13227         (all_uses_available_at): Do not check MEMs.
13228
13229 2008-04-02  Rafael Espindola  <espindola@google.com>
13230
13231         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
13232         (register_edge_assert_for_2): Split the cond argument.
13233         (register_edge_assert_for_1): Adjust for the change in
13234         register_edge_assert_for_2.
13235         (register_edge_assert_for): Split the cond argument.
13236         (find_switch_asserts): Adjust for the change in
13237         register_edge_assert_for.
13238
13239 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
13240
13241         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
13242         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
13243         offsets for 64-bit mingw.
13244         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
13245         abi for x86_64-pc-mingw.
13246
13247 2008-04-02  Richard Guenther  <rguenther@suse.de>
13248
13249         * tree-vrp.c (extract_range_from_assert): Make sure to not
13250         produce range min/max with TREE_OVERFOW set.
13251         If merging a anti-range and a range keep the anti-range if
13252         the range covers all values of the type.
13253         (register_edge_assert_for_2): Only allow sign-changing
13254         conversions in detecting canonical range checks.  Also
13255         register an assert for the unsigned name if useful.
13256
13257         PR tree-optimization/35787
13258         * tree-vrp.c (vrp_val_max): New function.
13259         (vrp_val_min): Likewise.
13260         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
13261         (vrp_val_is_min): Likewise.
13262         (supports_overflow_infinity): Use vrp_val_{min,max}.
13263         (negative_overflow_infinity): Likewise.
13264         (positive_overflow_infinity): Likewise.
13265         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
13266         (is_positive_overflow_infinity): Likewise.
13267         (is_overflow_infinity): Likewise.
13268         (avoid_overflow_infinity): Use vrp_val_{min,max} and
13269         vrp_val_is_{min,max}.
13270         (set_and_canonicalize_value_range): Canonicalize anti-ranges
13271         to ranges if possible.  Avoid empty ranges.
13272
13273 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13274
13275         PR middle-end/35705
13276         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
13277         the expression is a function address.
13278
13279 2008-04-01  George Helffrich  <george@gcc.gnu.org>
13280
13281         PR fortran/35154, fortran/23057
13282         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
13283         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
13284         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
13285         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
13286         in common.
13287         (dbxout_syms): Check for COMMON-based symbol and wrap in
13288         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
13289         in bracket for efficiency.
13290
13291         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
13292         using DW_TAG_common_block + member offset.
13293         (add_pubname_string): New function.
13294         (dw_expand_expr): New function to find block name and offset for
13295         COMMON var.
13296         (common_check): New function to check whether symbol in Fortran COMMON.
13297         (gen_variable_die): If COMMON, use DW_TAG_common_block.
13298
13299 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
13300
13301         PR c/35436
13302         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
13303
13304 2008-04-02  Ben Elliston  <bje@au.ibm.com>
13305
13306         * config/v850/v850.md (casesi): Remove if (0) code.
13307         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13308         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
13309
13310 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
13311
13312         * config/i386/i386.md (rex64suffix): New mode attribute.
13313         (floathi<mode>2): Disable expander for SSE math.
13314         (*floathi<mode>2_1): New insn insn_and_split pattern.
13315         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
13316         corresponding post-reload splitters.
13317         (*floathi<mode>2_i387): New macroized insn pattern.
13318         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
13319         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
13320         insn_and_split pattern.
13321         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
13322         New macroized instruction patterns and corresponding post-reload
13323         splitters.
13324         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
13325         and corresponding post-reload splitters.
13326         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
13327         New macroized instruction patterns.
13328         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
13329         macroized instruction patterns and corresponding post-reload splitters.
13330         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
13331         corresponding post-reload splitters.
13332         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
13333         New macroized instruction patterns.
13334         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
13335         corresponding post-reload splitters.
13336         (*floatsi<mode>2_i387): New macroized instruction patterns.
13337
13338 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
13339
13340         * config/i386/i386.md (smaxmin): New.
13341         (umaxmin): Likewise.
13342         (maxminiprefix): Likewise.
13343         (maxminfprefix): Likewise.
13344         (<code><mode>3): Likewise.
13345         (smin<mode>3): Removed.
13346         (smax<mode>3): Likewise.
13347
13348         * config/i386/mmx.md (mmx_<code>v2sf3): New.
13349         (mmx_<code>v4hi3): Likewise.
13350         (mmx_<code>v8qi3): Likewise.
13351         (mmx_smaxv2sf3): Removed.
13352         (mmx_sminv2sf3): Likewise.
13353         (mmx_umaxv8qi3): Likewise.
13354         (mmx_smaxv4hi3): Likewise.
13355         (mmx_uminv8qi3): Likewise.
13356         (mmx_sminv4hi3): Likewise.
13357
13358         * config/i386/sse.md (<addsub><mode>3): New.
13359         (*<addsub><mode>3): Likewise.
13360         (<sse>_vm<addsub><mode>3): Likewise.
13361         (<maxmin><mode>3): Likewise.
13362         (*<maxmin><mode>3_finite): Likewise.
13363         (*<maxmin><mode>3): Likewise.
13364         (<sse>_vm<maxmin><mode>3): Likewise.
13365         (sse3_h<addsub>v4sf3): Likewise.
13366         (sse3_h<addsub>v2df3): Likewise.
13367         (<maxmin>v16qi3): Likewise.
13368         (*<maxmin>v16qi3): Likewise.
13369         (<maxmin>v8hi3): Likewise.
13370         (*<maxmin>v8hi3): Likewise.
13371         (*sse4_1_<maxmin><mode>3): Likewise.
13372         (*sse4_1_<maxmin><mode>3): Likewise.
13373         (add<mode>3): Removed.
13374         (*add<mode>3): Likewise.
13375         (<sse>_vmadd<mode>3): Likewise.
13376         (sub<mode>3): Likewise.
13377         (*sub<mode>3): Likewise.
13378         (<sse>_vmsub<mode>3): Likewise.
13379         (smin<mode>3): Likewise.
13380         (*smin<mode>3_finite): Likewise.
13381         (*smin<mode>3): Likewise.
13382         (<sse>_vmsmin<mode>3): Likewise.
13383         (smax<mode>3): Likewise.
13384         (*smax<mode>3_finite): Likewise.
13385         (*smax<mode>3): Likewise.
13386         (<sse>_vmsmax<mode>3): Likewise.
13387         (sse3_haddv4sf3): Likewise.
13388         (sse3_haddv2df3): Likewise.
13389         (sse3_hsubv4sf3): Likewise.
13390         (sse3_hsubv2df3): Likewise.
13391         (umaxv16qi3): Likewise.
13392         (*umaxv16qi3): Likewise.
13393         (smaxv8hi3): Likewise.
13394         (*smaxv8hi3): Likewise.
13395         (*sse4_1_smax<mode>3): Likewise.
13396         (*sse4_1_umax<mode>3): Likewise.
13397         (uminv16qi3): Likewise.
13398         (*uminv16qi3): Likewise.
13399         (sminv8hi3): Likewise.
13400         (*sminv8hi3): Likewise.
13401         (*sse4_1_smin<mode>3): Likewise.
13402         (*sse4_1_umin<mode>3): Likewise.
13403
13404 2008-04-01  Rafael Espindola  <espindola@google.com>
13405
13406         * tree-cfg.c (verify_expr): remove in_phi.
13407         (verify_stmt): Don't call walk_tree with verify_expr. Use
13408         is_gimple_min_invariant instead of is_gimple_val.
13409
13410 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
13411
13412         * doc/include/gpl_v3.texi: Update for manpage generation.
13413         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
13414         gpl.texi.
13415         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
13416         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
13417         gpl_v3.texi instead of gpl.texi.
13418         (gpl.pod): New.
13419
13420 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
13421
13422         PR pch/13675
13423         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
13424
13425 2008-04-01  Rafael Espindola  <espindola@google.com>
13426
13427         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
13428         (extract_code_and_val_from_cond): Use
13429         extract_code_and_val_from_cond_with_ops.
13430
13431 2008-04-01  Jan Hubicka  <jh@suse.cz>
13432
13433         * function.c (free_after_compilation): Free epilogue_delay_list.
13434         (prepare_function_start): Assert that previous compilation was freed.
13435
13436 2008-04-01  Jan Hubicka  <jh@suse.cz>
13437             Jim Wilson  <wilson@tuliptree.org>
13438             Andreas Tobler <andreast@gcc.gnu.org>
13439
13440         PR middle-end/35781
13441         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
13442         rtl.emit instead cfun->emit.
13443         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
13444         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
13445
13446 2008-04-01  Ben Elliston  <bje@au.ibm.com>
13447
13448         * doc/c-tree.texi (Function Basics): Fix grammatical error.
13449
13450 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
13451
13452         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
13453         New options
13454         (fprofile-use): Add var flag_profile_use
13455         * coverage.c (coverage_begin_output): Do not open a gcno file for
13456         output only if -ftest-coverage is set.
13457         Do not add getpwd() to gcda file path.
13458         (build_gcov_info): Check the new flag
13459         flag_profile_datafile_relative_path.
13460         (coverage_init): Use profile_data_prefix.
13461         Read profile counter only if flag_profile_use is set.
13462         * opts.c (common_handle_option): New option fprofile-use=,
13463         fprofile-dir=, fprofile-generate=.
13464         * toplev.c (profile_data_prefix): New variable definition.
13465         * toplev.h (profile_data_prefix): New declaration.
13466         * doc/invoke.tex (Option Summary, Optimization Options):
13467         Add new options.
13468
13469 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
13470
13471         * varasm.c (output_constant_pool_1): In LABEL_REF check,
13472         use tmp consistently.
13473
13474         PR target/35695
13475         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
13476         * config/ia64/ia64.c (rtx_needs_barrier): Handle
13477         UNSPEC_FR_RECIP_APPROX_RES.
13478         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
13479
13480 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
13481
13482         PR c/35750
13483         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
13484
13485 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13486
13487         PR middle-end/30186
13488         * fold-const.c (fold_indirect_ref_1): Support accessing non first
13489         element of the vector via a pointer.
13490
13491 2008-03-31  Ian Lance Taylor  <iant@google.com>
13492
13493         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
13494
13495 2008-03-31  Jan Hubicka  <jh@suse.cz>
13496
13497         * builtins.c (expand_builtin_setjmp_receiver): Update call of
13498         get_arg_pointer_save_area.
13499         * expr.c (init_expr): Just clear out rtl.expr.
13500         * function.c (free_after_compilation): Clear out whole RTL structure.
13501         (get_func_frame_size): Merge into ...
13502         (get_frame_size): ... this one.
13503         (assign_stack_local_1): Merge into ...
13504         (assign_stack_local): ... this one.
13505         (expand_function_end): Update call of get_arg_pointer_save_area.
13506         (get_art_pointer_save_area): Remove cfun argument.
13507         * function.h (emit_status): regno_pointer_align does not need length
13508         attribute. Move x_regno_reg_rtx to ...
13509         (regno_reg_rtx): ... new global array.
13510         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
13511         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
13512         apply_args_value, forced_labels, stack_pointer_delta):
13513         Update accestors.
13514         (struct varasm_status): Move here from varasm.c
13515         (struct rtl_data): New. Move here some fields from struct function.
13516         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
13517         frame_offset, stack_check_probe_note, arg_pointer_save_area,
13518         used_temp_slots avail_temp_slots, temp_slot_level,
13519         nonlocal_goto_handler_labels): Update accesstors.
13520         (rtl): New global variable.
13521         (struct function): Move some fileds to rtl_data.
13522         (get_arg_pointer_save_area): Update prototype.
13523         * emit-rtl.c (rtl): Declare.
13524         (regno_reg_rtx): Declare.
13525         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
13526         Update.
13527         (gen_reg_rtx): Update.
13528         (init_virtual_regs): Do not tate emit_status argument.
13529         (init_emit): Do not allocate emit.
13530         * varasm.c (varasm_statuc): Move to function.h.
13531         (n_deferred_constatns): Update accestor.
13532         (init_varasm_status): Do not allocate varasm_status.
13533         (force_const_mem, get_pool_size, output_constant_pool): Update.
13534         * stmt.c (force_label_rtx): Do not use x_ prefixes.
13535         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
13536
13537 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
13538
13539         PR rtl-optimization/35729
13540         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
13541         references.
13542
13543 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
13544
13545         PR target/32000
13546         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
13547         load/store if memory is unaligned.
13548         (*movti_rex64): Likewise.
13549
13550         * config/i386/predicates.md (misaligned_operand): New.
13551
13552 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
13553
13554         PR tree-opt/35431
13555         * tree-ssa-phiopt.c (conditional_replacement): Return early for
13556         complex types.
13557
13558 2008-03-31  Jan Beulich  <jbeulich@novell.com>
13559
13560         * config/ia64/constraints.md: Add 'j' constraint.
13561         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
13562         (movdi_internal): Likewise.
13563
13564 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
13565
13566         PR c/35748
13567         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
13568
13569 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
13570
13571         PR target/35757
13572         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
13573         proper error message for the third argument on blendpd and
13574         blendps.
13575
13576         * config/i386/sse.md (blendbits): New.
13577         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
13578
13579 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
13580
13581         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
13582
13583 2008-03-30  Richard Guenther  <rguenther@suse.de>
13584
13585         PR middle-end/31023
13586         * fold-const.c (fold_sign_changed_comparison): Do leave
13587         conversions to base-types alone.
13588
13589 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13590
13591         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
13592         the link register if one altivec register is be saved.
13593
13594 2008-03-30  Ben Elliston  <bje@au.ibm.com>
13595
13596         * final.c (final_scan_insn): Remove if (0) code.
13597
13598 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
13599
13600         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
13601
13602 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
13603
13604         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
13605         of V4SFmode to ix86_binary_operator_ok.
13606
13607 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
13608
13609         * config/i386/i386.c (override_options): Initialize
13610         ix86_veclib_handler to ix86_veclibabi_svml when
13611         -mveclibabi=svml is used.
13612         (ix86_veclibabi_svml): New function for SVML ABI style
13613         vectorization support.
13614         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
13615
13616 2008-03-28  Rafael Espindola  <espindola@google.com>
13617
13618         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
13619         (tree_binary_nonnegative_warnv_p): Make it public.
13620         (tree_single_nonnegative_warnv_p): Make it public.
13621         (tree_invalid_nonnegative_warnv_p): Make it public.
13622         (tree_unary_nonzero_warnv_p): Make it public.
13623         (tree_binary_nonzero_warnv_p): Make it public
13624         (tree_single_nonzero_warnv_p): Make it public.
13625         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
13626         (extract_range_from_binary_expr): Split the expr argument.
13627         (extract_range_from_unary_expr): Split the expr argument.
13628         (extract_range_from_comparison): Split the expr argument.
13629         (extract_range_from_expr): Use the new aux functions.
13630         (vrp_evaluate_conditional_warnv): Use
13631         vrp_evaluate_conditional_warnv_with_ops.
13632         * tree.h (tree_unary_nonzero_warnv_p): Declare.
13633         (tree_binary_nonzero_warnv_p): Declare.
13634         (tree_single_nonzero_warnv_p): Declare.
13635         (tree_expr_nonzero_warnv_p): Declare.
13636         (tree_unary_nonnegative_warnv_p): Declare.
13637         (tree_binary_nonnegative_warnv_p): Declare.
13638         (tree_single_nonnegative_warnv_p): Declare.
13639         (tree_invalid_nonnegative_warnv_p): Declare.
13640
13641 2008-03-28  Richard Guenther  <rguenther@suse.de>
13642
13643         PR tree-optimization/30317
13644         PR tree-optimization/30911
13645         PR tree-optimization/34793
13646         * tree-vrp.c (set_and_canonicalize_value_range): New function.
13647         (struct assert_locus_d): New member EXPR.
13648         (register_new_assert_for): Add EXPR parameter to support
13649         ASSERT_EXPR <name, expr OP limit>.
13650         (register_edge_assert_for_1): Adjust callers.
13651         (find_assert_locations): Likewise.
13652         (process_assert_insertions_for): Build condition from expression.
13653         (extract_range_from_assert): Handle ASSERT_EXPRs
13654         of the form ASSERT_EXPR <name, expr OP limit>.
13655         (register_edge_assert_for_2): New helper registering
13656         asserts for comparisons.  Recognize range tests of the form
13657         (unsigned)i - CST1 OP CST2.
13658         (register_edge_assert_for_1): Use it.
13659         (register_edge_assert_for): Likewise.
13660         (needs_overflow_infinity): Integer sub-types
13661         do not need overflow infinities.
13662         (vrp_val_is_max): The extreme values of integer sub-types
13663         are those of the base type.
13664         (vrp_val_is_min): Likewise.
13665         * tree.def (ASSERT_EXPR): Document extra allowed conditional
13666         expressions.
13667
13668 2008-03-28  Nick Clifton  <nickc@redhat.com>
13669
13670         PR target/31110
13671         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
13672         Return GENERAL_REGS for stack adjustment reloads.
13673
13674 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13675
13676         PR target/31334
13677         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
13678         const_vector when all the vectors are constant.
13679
13680 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
13681
13682         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
13683         comparisons.
13684         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
13685         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
13686         (scc_sf): New.
13687         (s<code>_sf): Use new scc_sf attribute for opcode names.
13688
13689 2008-03-27  Tom Tromey  <tromey@redhat.com>
13690
13691         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
13692         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
13693         config/spu/t-spu-elf, config/i386/t-interix,
13694         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
13695         config/i386/x-darwin, config/i386/x-mingw32,
13696         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
13697         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
13698         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
13699         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
13700         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
13701         config/rs6000/x-darwin, config/rs6000/t-rs6000,
13702         config/score/t-score-elf, config/arm/t-strongarm-pe,
13703         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
13704         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
13705         Revert automatic dependency patch.
13706
13707 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
13708
13709         PR target/35657
13710         * config/i386/i386.c (ix86_function_arg_boundary): Align
13711         decimal floating point to its natural boundary.
13712
13713 2008-03-27  Richard Guenther  <rguenther@suse.de>
13714
13715         PR middle-end/35716
13716         * fold-const.c (fold_comparison): Restrict distinct decl
13717         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
13718         solely rely on operand_equal_p.
13719
13720 2008-03-27  Richard Guenther  <rguenther@suse.de>
13721
13722         PR c/32511
13723         * c-common.c (handle_weak_attribute): Reject combination of
13724         weak and inline.
13725
13726 2008-03-27  Richard Guenther  <rguenther@suse.de>
13727
13728         PR tree-optimization/32810
13729         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
13730         conversions from DECL_INITIAL.
13731         (fold_const_aggregate_ref): Likewise from constructor elements.
13732
13733 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
13734
13735         * tree-affine.h (aff_combination_expand): Declare.
13736         (get_inner_reference_aff): Likewise.
13737         * tree-affine.c (aff_combination_expand): Split out from
13738         tree_to_aff_combination_expand.
13739         (get_inner_reference_aff): New function.
13740         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
13741         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
13742         (struct lim_aux_data): sm_done field removed.
13743         (mem_ref_loc_p, mem_ref_locs_p): New types.
13744         (struct mem_ref): Added id, stored, accesses_in_loop,
13745         indep_loop, dep_loop, indep_ref, dep_ref fields.
13746         Removed is_stored, locs and next fields.
13747         (memory_accesses): New variable.
13748         (movement_possibility): Do not allow moving statements
13749         that store to memory.
13750         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
13751         New functions.
13752         (determine_max_movement): For statements with memory references,
13753         find the outermost loop in that the reference is independent.
13754         (move_computations_stmt): Mark the virtual operands for renaming.
13755         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
13756         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
13757         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
13758         add_vop_ref_mapping, create_vop_ref_mapping_loop,
13759         create_vop_ref_mapping, analyze_memory_references,
13760         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
13761         get_all_locs_in_loop, ref_always_accessed_p,
13762         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
13763         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
13764         store_motion_loop, store_motion): New functions.
13765         (struct vop_to_refs_elt): New type.
13766         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
13767         memref_hash, memref_eq, hoist_memory_references): Rewritten.
13768         (schedule_sm): Replaced by...
13769         (execute_sm): ... this.
13770         (determine_lsm_ref, hoist_memory_references,
13771         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
13772         find_more_ref_vops, free_mem_ref, free_mem_refs,
13773         determine_lsm_loop, determine_lsm): Removed.
13774         (tree_ssa_lim_finalize): Free data structures used by store motion.
13775         (tree_ssa_lim): Call analyze_memory_references.  Use
13776         store_motion instead of determine_lsm.
13777
13778 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
13779
13780         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
13781         rename tmake_file to m68hc11/t-m68hc11.
13782         (mcore): Set inhibit_libc to true.
13783         * config.host (alpha*-dec-*vms*): Set extra_programs.
13784         (interix3*): Don't use host_xmake_file.
13785         * configure.ac: Let config.gcc override inhibit_libc.
13786         * configure: Regenerate.
13787
13788         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
13789         * config/t-openbsd-thread: Remove commented out lines.
13790
13791         * config/x-interix: Remove.
13792
13793         * config/m68hc11/t-m68hc11-gas: Rename to...
13794         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
13795
13796         * config/mcore/t-mcore: Remove T_CFLAGS.
13797         * config/mcore/t-mcore-pe: Likewise.
13798
13799 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
13800
13801         * configure.ac: Replace custom __GNU_SOURCE test with
13802         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
13803         * aclocal.m4: Regenerate.
13804         * configure: Regenerate.
13805         * config.in: Regenerate.
13806
13807 2008-03-27  Richard Guenther  <rguenther@suse.de>
13808
13809         * fold-const.c (target.h): Include.
13810         (fold_comparison): Fold comparison of addresses of decls
13811         that bind locally or of constants.  Consolidate address folding code.
13812         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
13813         results from fold_binary_to_constant.
13814         (compare_values_warnv): Likewise.
13815
13816 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
13817
13818         PR middle-end/35429
13819         * fold-const.c (fold_truthop): Check for integeral types when folding
13820         a == 0 && b == 0 and a != 0 || b != 0 .
13821
13822 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
13823
13824         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
13825
13826 2008-03-26  Andreas Schwab  <schwab@suse.de>
13827
13828         * doc/invoke.texi: Fix use of @item vs. @itemx.
13829
13830 2008-03-26  Tom Tromey  <tromey@redhat.com>
13831
13832         * Makefile.in (build/gensupport.o, build/print-rtl.o,
13833         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
13834         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
13835         build/gencodes.o, build/genconditions.o, build/genconfig.o,
13836         build/genconstants.o, build/genemit.o, build/genextract.o,
13837         build/genflags.o, build/genmddeps.o, build/genopinit.o,
13838         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
13839         options.h.
13840
13841 2008-03-26  Richard Guenther  <rguenther@suse.de>
13842
13843         Revert
13844         2008-03-26  Richard Guenther  <rguenther@suse.de>
13845
13846         * fold-const.c (target.h): Include.
13847         (fold_comparison): Fold comparison of addresses of two decls
13848         that bind locally.  Consolidate address folding code.
13849
13850 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13851
13852         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
13853         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
13854         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
13855         dconstsqrt2, dconstthird, dconste and/or dconst10.
13856         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
13857         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
13858         dconstsqrt2, dconste): Delete.
13859         (init_emit_once): Likewise.  Simplify initializing dconstm1.
13860         Constify variable.
13861         * real.c (get_real_const): New.
13862         * real.h (dconst3, dconst10, dconstm2, dconstthird,
13863         dconstsqrt2, dconste): Delete.
13864         (real_value_const, get_real_const): New.
13865
13866 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
13867
13868         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
13869
13870         * config/i386/i386.c (ix86_function_arg_boundary): Check
13871         BIGGEST_ALIGNMENT instead of 128.
13872         (setup_incoming_varargs_64): Likewise.
13873
13874 2008-03-26  Tom Tromey  <tromey@redhat.com>
13875
13876         * Makefile.in (DEPFILES): Add missing '/'.
13877
13878 2008-03-26  Richard Guenther  <rguenther@suse.de>
13879
13880         * fold-const.c (target.h): Include.
13881         (fold_comparison): Fold comparison of addresses of two decls
13882         that bind locally.  Consolidate address folding code.
13883
13884 2008-03-26  Nick Clifton  <nickc@redhat.com>
13885
13886         PR target/31232
13887         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
13888         not allow INT+INT as a legitimate addressing mode.
13889
13890 2008-03-26  Richard Guenther  <rguenther@suse.de>
13891
13892         * tree-flow.h (widen_bitfield): Remove declaration.
13893         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
13894         (widen_bitfield): Remove function.
13895         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
13896         code.
13897
13898 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13899
13900         PR target/31558
13901         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
13902         error_mark_node's.
13903
13904 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
13905
13906         PR rtl-optimization/35232
13907         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
13908         (forget_old_reloads_1, forget_marked_reloads): Don't clear
13909         reg_reloaded_call_part_clobbered here.
13910         (reload_regs_reach_end_p): New function.
13911         (reload_reg_rtx_for_input): New variable.
13912         (reload_reg_rtx_for_output): Likewise.
13913         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
13914         when reassigning a pseudo register.  Load reloadreg from
13915         reload_reg_rtx_for_input, moving the mode and register
13916         calculation to...
13917         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
13918         instead of the original when deciding whether an input reload
13919         would be a no-op or whether an output reload can be deleted.
13920         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
13921         when setting up new_spill_reg_store.  Load it from
13922         reload_reg_rtx_for_output, moving the mode and register
13923         calculation to...
13924         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
13925         instead of the original when deciding whether an output reload
13926         would be a no-op.  Do the same when modifying insn notes.
13927         Use rtx_equal_p instead of == to compare the registers.
13928         (inherit_piecemeal_p): Take a mode and two register numbers
13929         as argument.
13930         (emit_reload_insns): Clear new_spill_reg_store for every hard
13931         register in the reload register.  Remove spill registers
13932         from reg_reloaded_valid before considering whether to record
13933         inheritance information for them.  Use reload_reg_rtx_for_output
13934         instead of reg_rtx when recording output reloads.  Use
13935         reload_reg_rtx_for_input instead of reg_rtx when recording
13936         input reloads.  Set or clear reg_reloaded_call_part_clobbered
13937         at the same time as setting reg_reloaded_valid.
13938         (delete_output_reload): Add a new_reload_reg parameter and use it
13939         instead of rld[j].reg_rtx.
13940         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
13941         calls accordingly.
13942
13943 2008-03-25  Tom Tromey  <tromey@redhat.com>
13944
13945         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
13946         (build/genattr.o): Likewise.
13947         (build/genattrtab.o): Likewise.
13948         (build/gencodes.o): Likewise.
13949         (build/genconfig.o): Likewise.
13950         (build/genconstants.o): Likewise.
13951         (build/genemit.o): Likewise.
13952         (build/genextract.o): Likewise.
13953         (build/genflags.o): Likewise.
13954
13955 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
13956
13957         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
13958         instead of size_int for integer types.
13959         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
13960         to match type of MINUS_EXPR.
13961
13962 2008-03-25  Tom Tromey  <tromey@redhat.com>
13963
13964         * configure: Rebuilt.
13965         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
13966         Makefile.
13967
13968 2008-03-25  Tom Tromey  <tromey@redhat.com>
13969
13970         * config/x-solaris (host-solaris.o): Update.
13971         * config/x-linux (host-linux.o): Update.
13972         * config/x-hpux (host-hpux.o): Update.
13973         * config/x-darwin (host-darwin.o): Update.
13974         * config/v850/t-v850e (v850-c.o): Update.
13975         * config/v850/t-v850 (v850-c.o): Update.
13976         * config/t-vxworks (vxworks.o): Update.
13977         * config/t-sol2 (sol2-c.o, sol2.o): Update.
13978         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
13979         * config/spu/t-spu-elf (spu-c.o): Update.
13980         (spu.o): Remove.
13981         * config/sh/t-symbian (sh-c.o): Update.
13982         (symbian.o): Update.
13983         * config/sh/t-sh (sh-c.o): Update.
13984         * config/score/t-score-elf (score7.o, score3.o): Update.
13985         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
13986         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
13987         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
13988         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
13989         (rs6000.o): Remove.
13990         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
13991         * config/m32c/t-m32c (m32c-pragma.o): Update.
13992         * config/ia64/t-ia64 (ia64-c.o): Update.
13993         * config/i386/x-mingw32 (host-mingw32.o): Update.
13994         * config/i386/x-i386 (driver-i386.o): Update.
13995         * config/i386/x-darwin (host-i386-darwin.o): Update.
13996         * config/i386/x-cygwin (host-cygwin.o): Update.
13997         * config/i386/t-nwld (nwld.o): Update.
13998         * config/i386/t-netware (netware.o): Update.
13999         * config/i386/t-interix (winnt.o): Update.
14000         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
14001         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
14002         msformat-c.o): Update.
14003         * config/bfin/t-bfin-linux (generated_files): Add
14004         linux-sysroot-suffix.h.
14005         * config/arm/t-wince-pe (pe.o): Update.
14006         * config/arm/t-strongarm-pe (pe.o): Update.
14007         * config/arm/t-pe (pe.o): Update.
14008         * config/arm/t-arm (arm-c.o): Update.
14009         * doc/install.texi (Prerequisites): Require make 3.80.
14010         * Makefile.in: Remove .o targets.
14011         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
14012         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
14013         (simple_generated_h, simple_generated_c): Move earlier.
14014         (generated_files): New variable.
14015         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
14016         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
14017         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
14018         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
14019         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
14020         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
14021         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
14022         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
14023         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
14024         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
14025         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
14026         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
14027         (.c.o): Remove.
14028         (COMPILE.base, COMPILE): New variables.
14029         (%.o): New pattern rule.
14030         (ALL_HOST_OBJS): New variable.
14031         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
14032         (dummy-checksum.o, cc1-checksum.o): Remove.
14033         (DRIVER_SHLIB): New variable.
14034         (DRIVER_DEFINES): Use it.
14035         (gencondmd.c): Move out of build/.
14036         (s-conditions): Update.
14037         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
14038         (ALL_BUILD_OBJS): Likewise.
14039         (build/%.o): Use BUILDCOMPILE.
14040         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
14041         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
14042         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
14043         build/gencheck.o, build/gencodes.o, build/genconditions.o,
14044         build/genconfig.o, build/genconstants.o, build/genemit.o,
14045         build/genextract.o, build/genflags.o, build/genmddeps.o,
14046         build/genopinit.o, build/genoutput.o, build/genpeep.o,
14047         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
14048         build/gen-protos.o, build/scan.o, build/fix-header.o,
14049         build/scan-decls.o): Simplify.
14050         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
14051         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
14052         prefix.o, toplev.o): Reduce to variable setting.
14053         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
14054         ($(out_object_file), gcc-options.o): New targets.
14055         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
14056         * configure: Rebuilt.
14057         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
14058         * doc/sourcebuild.texi (Front End Directory): Document new variable.
14059
14060 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
14061
14062         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
14063         complain when we hit an error, return ERROR_MARK_NODE.
14064
14065 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
14066
14067         * config/sh/constraints.md (Pso, Psz): New constraints.
14068         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
14069         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
14070
14071 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
14072
14073         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
14074         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
14075
14076 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
14077
14078         * config/sh/sh.md (prefetch): Add condition for SH2A target.
14079         (prefetch_sh2a): New.
14080
14081 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
14082             Naveen.H.S  <naveen.hs@kpitcummins.com>
14083
14084         * config/sh/constraints.md (I28): New constraint.
14085         * config/sh/sh.c (broken_move): Add support for movi20s.
14086         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
14087
14088 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
14089             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
14090             Naveen.H.S  <naveen.hs@kpitcummins.com>
14091
14092         * config/sh/sh.c (SH_ATTRIBUTES): Define.
14093         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
14094         (print_operand): Handle resbank in %@ operand code.
14095         (sh_encode_section_info): New.
14096         (push_regs): Add conditions for resbank.
14097         (sh_expand_epilogue): Likewise.
14098         (sh_insert_attributes): Likewise.
14099         (sh_attribute_table): Likewise.
14100         (sh_handle_resbank_handler_attribute): New.
14101         (sh2a_handle_function_vector_handler_attribute): New.
14102         (sh2a_is_function_vector_call): New.
14103         (sh2a_get_function_vector_number): New.
14104         (sh2a_function_vector_p): New.
14105         (sh_cfun_resbank_handler_p): New.
14106         * config/sh/sh.md (calli): Emit jsr/n if possible.
14107         (calli_tbr_rel): New.
14108         (calli_pcrel): Emit jsr/n if possible.
14109         (return_i): Emit rts/n if possible.
14110         (call_valuei_tbr_rel): New.
14111         (call_valuei_pcrel): Add condition for SH2A target.
14112         (call_value): Likewise.
14113         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
14114         (sh2a_get_function_vector_number): Likewise.
14115         (sh2a_is_function_vector_call): Likewise.
14116         * doc/extend.texi: Document TBR relative addressing of SH2A.
14117         (resbank): Add description for SH2A.
14118
14119 2008-03-24  Richard Guenther  <rguenther@suse.de>
14120
14121         PR c/22371
14122         * gimplify.c (gimplify_modify_expr): For frontend type-correct
14123         pointer assignments change conversions according to middle-end rules.
14124         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
14125         * configure.ac: Include type checking in yes.
14126         * configure: Regenerate.
14127
14128 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14129
14130         * diagnostic.c (diagnostic_count_diagnostic): Delete.
14131         (diagnostic_report_diagnostic): Update. Handle ICEs here.
14132
14133 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
14134
14135         * gthr-vxworks.h (UNUSED): Define.
14136
14137 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
14138
14139         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
14140
14141 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
14142
14143         * doc/extend.texi (Function Attributes): Add missing comma in the
14144         example of the "alloc_size" attribute.
14145
14146 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
14147
14148         Revert:
14149         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
14150
14151         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14152         32bit host.
14153
14154         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
14155
14156         PR target/35496
14157         * stor-layout.c (update_alignment_for_field): Set minimum alignment
14158         of the underlying type of a MS bitfield layout to the natural
14159         alignment of the type.
14160
14161         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
14162
14163         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
14164         to their natural alignment to avoid store forwarding stalls.
14165
14166 2008-03-22  Richard Guenther  <rguenther@suse.de>
14167
14168         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
14169         For PHI nodes verify the address is invariant.
14170         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
14171         (get_symbol_constant_value): Use is_gimple_min_invariant.
14172         (maybe_fold_stmt_indirect): Likewise.
14173
14174 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
14175
14176         PR rtl-optimization/33927
14177         * Makefile.in (dse.o): Depend on $(TM_P_H).
14178         * expr.h (extract_low_bits): Declare.
14179         * expmed.c (extract_low_bits): New function.
14180         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
14181         * dse.c: Include tm_p.h.
14182         (find_shift_sequence): Remove the read_reg argument and return the
14183         read value.  Emit the instructions instead of returning them.
14184         Iterate on new_mode rather than calculating it each time.
14185         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
14186         source to NEW_MODE and extract_low_bits to convert the shifted
14187         value to READ_MODE.
14188         (replace_read): Allow the load and store to have different mode
14189         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
14190         or extraction instructions before trying the replacement.  Update
14191         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
14192
14193 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
14194
14195         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
14196         to their natural alignment to avoid store forwarding stalls.
14197
14198 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14199
14200         PR target/27946
14201         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
14202         encouraging but not allowing gprs for input;
14203         change the input constraint to !f#r.
14204         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
14205         gprs for output;
14206         change the output constraint to !f#r.
14207
14208 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
14209
14210         PR target/13958
14211         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
14212         corresponding post-reload splitters.
14213         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
14214         when x87 FP math is selected.
14215         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
14216         New function prototype.
14217         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
14218         unreachable function to ease macroization of insn patterns.
14219
14220 2008-03-21  Martin Jambor  <mjambor@suse.cz>
14221
14222         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
14223         reference dumps if ddr is NULL or dependence is unknown.
14224
14225 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14226
14227         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
14228         unsigned extension into account.
14229         (ATOMIC_COMPARE_AND_SWAP): Likewise.
14230         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
14231         Do computations on a scratch register.
14232
14233 2008-03-21  Richard Guenther  <rguenther@suse.de>
14234
14235         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
14236         Use is_gimple_min_invariant instead of TREE_INVARIANT.
14237         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
14238         * tree-ssa-dom.c (record_equality): Likewise.
14239         * tree-inline.c (copy_body_r): Likewise.
14240         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
14241         TREE_INVARIANT.
14242
14243 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14244
14245         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
14246         as 'delete_unused' argument.
14247
14248 2008-03-20  Richard Guenther  <rguenther@suse.de>
14249
14250         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
14251         special casing of constant qualifiers.
14252         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
14253         care about them in general.
14254         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
14255         regardless of their type.
14256         (fold_stmt_r): Forcefully fold *& if we end up with that.
14257
14258 2008-03-20  Paul Brook  <paul@codesourcery.com>
14259
14260         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
14261         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
14262         linker flags.
14263         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
14264         definition.
14265         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
14266         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
14267
14268 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
14269
14270         * common.opt (Wmudflap): New option.
14271         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
14272         (mx_register_decls): Likewise.
14273         (mudflap_finish_file): Likewise.
14274         * doc/invoke.texi: Document -Wno-mudflap.
14275
14276 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
14277
14278         * c-format.c (replace_format_name_to_system_name): New.
14279         (cmp_attribs): New.
14280         (convert_format_name_to_system_name): New.
14281         (decode_format_attr): Add use of convert_format_name_to_system_name.
14282         (format_types_orig): Add gnu_ prefix to names.
14283         (check_format_info_main): Special treating of \0 escaped names for
14284         supporting multi-character format specifiers as I32, I64.
14285         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
14286         (gnu_target_overrides_format_attributes): New.
14287         * c-format.h: Add structure target_ovr_attr to hold
14288         system specific formatter names.
14289         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
14290         msformat-c.o file to c_target_objs and cxx_target_objs.
14291         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
14292         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
14293         (TARGET_N_FORMAT_TYPES): New.
14294         * config/i386/msformat-c.c: New.
14295         * config/i386/t-cygming: Add build rule for msformat-c.o.
14296         * doc/extend.texi: Add new format names gnu_* and ms_* and
14297         further details.
14298         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
14299
14300 2008-03-20  Ira Rosen  <irar@il.ibm.com>
14301
14302         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
14303         optimizations turned on under -O3.
14304         (ftree-vectorize): Add that the flag is turned on with -O3.
14305
14306 2008-03-20  Ben Elliston  <bje@au.ibm.com>
14307
14308         * regmove.c (try_auto_increment): Fix spelling error in comment.
14309         * final.c (final_scan_insn): Likewise.
14310
14311 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
14312
14313         PR target/14552
14314         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
14315         allocator preferences for "y" and "r" class registers.
14316         ("*mov<mode>_internal"): Ditto.
14317         ("*movv2sf_internal_rex64"): Ditto.
14318         ("*movv2sf_internal"): Ditto.
14319
14320 2008-03-19  Michael Matz  <matz@suse.de>
14321
14322         PR middle-end/35616
14323         * calls.c (expand_call): Check overlap of arguments with call
14324         address for sibcalls.
14325
14326 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
14327
14328         PR target/35496
14329         * stor-layout.c (update_alignment_for_field): Set minimum alignment
14330         of the underlying type of a MS bitfield layout to the natural
14331         alignment of the type.
14332
14333 2008-03-19  Jan Hubicka  <jh@suse.cz>
14334
14335         PR other/35094
14336         * toplev.c (decode_d_option): Handle all CPP flags.
14337         * tree-vrp.c: Update tree_pass descriptors.
14338         * regrename.c: Update tree_pass descriptors.
14339         * fwprop.c: Update tree_pass descriptors.
14340         * doc/invoke.texi: Remove documentation of dropped -d? flags.
14341         * tree-into-ssa.c: Update tree_pass descriptors.
14342         * tree-dump.c: Update tree_pass descriptors.
14343         * tree-complex.c: Update tree_pass descriptors.
14344         * tree-dump.h: Update tree_pass descriptors.
14345         * see.c: Update tree_pass descriptors.
14346         * cgraphbuild.c: Update tree_pass descriptors.
14347         * tracer.c: Update tree_pass descriptors.
14348         * tree-loop-distribution.c: Update tree_pass descriptors.
14349         * cgraph.c: Update tree_pass descriptors.
14350         * postreload-gcse.c: Update tree_pass descriptors.
14351         * postreload.c: Update tree_pass descriptors.
14352         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
14353         * tree-tailcall.c: Update tree_pass descriptors.
14354         * tree-pass.h (tree_opt_pass): Rename to ...
14355         (opt_pass) ... this one; add "type" field and remove letter field.
14356         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
14357         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
14358         all_lowering_passes): Update declaration.
14359         * ipa-cp.c: Update tree_pass descriptors.
14360         * final.c: Update tree_pass descriptors.
14361         * omp-low.c: Update tree_pass descriptors.
14362         * tree-ssa-dse.c: Update tree_pass descriptors.
14363         * ipa-reference.c: Update tree_pass descriptors.
14364         * tree-ssa-uncprop.c: Update tree_pass descriptors.
14365         * auto-inc-dec.c: Update tree_pass descriptors.
14366         * reorg.c: Update tree_pass descriptors.
14367         * cgraphunit.c: Update tree_pass descriptors.
14368         * tree-ssa-copyrename.c: Update tree_pass descriptors.
14369         * tree-ssa-ccp.c: Update tree_pass descriptors.
14370         * df-core.c: Update tree_pass descriptors.
14371         * mode-switching.c: Update tree_pass descriptors.
14372         * tree-nomudflap.c: Update tree_pass descriptors.
14373         * modulo-sched.c: Update tree_pass descriptors.
14374         * ipa-pure-const.c: Update tree_pass descriptors.
14375         * cse.c: Update tree_pass descriptors.
14376         * web.c: Update tree_pass descriptors.
14377         * tree-stdarg.c: Update tree_pass descriptors.
14378         * tree-ssa-math-opts.c: Update tree_pass descriptors.
14379         * tree-ssa-dom.c: Update tree_pass descriptors.
14380         * tree-nrv.c: Update tree_pass descriptors.
14381         * tree-ssa-alias.c: Update tree_pass descriptors.
14382         * loop-init.c: Update tree_pass descriptors.
14383         * gimple-low.c: Update tree_pass descriptors.
14384         * ipa-inline.c: Update tree_pass descriptors.
14385         * tree-ssa-sink.c: Update tree_pass descriptors.
14386         * global.c: Update tree_pass descriptors.
14387         * ifcvt.c: Update tree_pass descriptors.
14388         * jump.c: Update tree_pass descriptors.
14389         * predict.c: Update tree_pass descriptors.
14390         * tree-ssa-loop.c: Update tree_pass descriptors.
14391         * recog.c: Update tree_pass descriptors.
14392         * dse.c: Update tree_pass descriptors.
14393         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
14394         * tree-eh.c: Update tree_pass descriptors.
14395         * regmove.c: Update tree_pass descriptors.
14396         * local-alloc.c
14397         * function.c: Update tree_pass descriptors.
14398         * tree-vectorizer.c: Update tree_pass descriptors.
14399         * gcse.c: Update tree_pass descriptors.
14400         * ipa-type-escape.c: Update tree_pass descriptors.
14401         * tree-if-conv.c: Update tree_pass descriptors.
14402         * init-regs.c: Update tree_pass descriptors.
14403         * ipa.c: Update tree_pass descriptors.
14404         * tree-ssa-phiopt.c: Update tree_pass descriptors.
14405         * rtl-factoring.c: Update tree_pass descriptors.
14406         * lower-subreg.c: Update tree_pass descriptors.
14407         * bt-load.c: Update tree_pass descriptors.
14408         * tree-dfa.c: Update tree_pass descriptors.
14409         * except.c: Update tree_pass descriptors.
14410         * emit-rtl.c: Update tree_pass descriptors.
14411         * cfgexpand.c: Update tree_pass descriptors.
14412         * tree-cfgcleanup.c: Update tree_pass descriptors.
14413         * cfgcleanup.c: Update tree_pass descriptors.
14414         * tree-ssa-pre.c: Update tree_pass descriptors.
14415         * tree-sra.c: Update tree_pass descriptors.
14416         * tree-mudflap.c: Update tree_pass descriptors.
14417         * tree-ssa-copy.c: Update tree_pass descriptors.
14418         * cfglayout.c: Update tree_pass descriptors.
14419         * tree-ssa-forwprop.c: Update tree_pass descriptors.
14420         * tree-ssa-dce.c: Update tree_pass descriptors.
14421         * tree-ssa.c: Update tree_pass descriptors.
14422         * regclass.c: Update tree_pass descriptors.
14423         * integrate.c: Update tree_pass descriptors.
14424         * tree-optimize.c: Update tree_pass descriptors.
14425         * tree-ssa-phiprop.c: Update tree_pass descriptors.
14426         * tree-object-size.c: Update tree_pass descriptors.
14427         * combine.c: Update tree_pass descriptors.
14428         * tree-outof-ssa.c: Update tree_pass descriptors.
14429         * bb-reorder.c: Update tree_pass descriptors.
14430         * stack-ptr-mod.c: Update tree_pass descriptors.
14431         * var-tracking.c: Update tree_pass descriptors.
14432         * tree-profile.c: Update tree_pass descriptors.
14433         * tree-vect-generic.c: Update tree_pass descriptors.
14434         * reg-stack.c: Update tree_pass descriptors.
14435         * sched-rgn.c: Update tree_pass descriptors.
14436         * tree-ssa-structalias.c: Update tree_pass descriptors.
14437         * tree-cfg.c: Update tree_pass descriptors.
14438         * passes.c (current_pass): Update declaration.
14439         (finish_optimization_passes): Update.
14440         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
14441         (register_one_dump_file, register_dump_files_1, next_pass_1):
14442         Update arguments.
14443         (init_optimization_passes): Update handling of new types.
14444         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
14445         * ipa-struct-reorg.c: Update tree_pass descriptors.
14446         * tree-ssa-reassoc.c: Update tree_pass descriptors.
14447         * combine-stack-adj.c: Update tree_pass descriptors.
14448         * cfgrtl.c: Update tree_pass descriptors.
14449         * dce.c: Update tree_pass descriptors.
14450         * tree-ssanames.c: Update tree_pass descriptors.
14451
14452 2008-03-19  Richard Guenther  <rguenther@suse.de>
14453
14454         PR middle-end/35609
14455         * tree-ssa.c (walk_data): New structure.
14456         (warn_uninitialized_var): If not always_executed warn with "maybe"
14457         instead of "is".
14458         (execute_early_warn_uninitialized): Compute post-dominators.
14459         Initialize always_executed before processing each basic block.
14460
14461 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
14462
14463         PR target/35504
14464         * config/i386/i386.c (x86_this_parameter): Calculate correct location
14465         of "this" pointer when "regparm = N" or "fastcall" is in effect.
14466
14467 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14468
14469         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
14470
14471 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
14472
14473         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
14474         is true.
14475         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
14476         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
14477         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
14478         target after ignore has been set, and move there also the commputation
14479         of subtarget and original_target.
14480         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
14481         (LANG_HOOKS_INITIALIZER): Remove it.
14482         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
14483
14484 2008-03-18  Richard Guenther  <rguenther@suse.de>
14485
14486         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
14487         found an expression with constants, note that in the VN for the lhs.
14488         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
14489         fold them to constants if possible.  Run cleanup_cfg if done so.
14490         (execute_pre): Return todo.
14491         (do_pre): Likewise.
14492         (execute_fre): Likewise.
14493         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
14494         of constants.
14495         (get_prop_source_stmt): Look through pointer conversions.
14496
14497 2008-03-18  Jan Hubicka  <jh@suse.cz>
14498
14499         * tree-pretty-print.c: Include predict.h.
14500         (dump_generic_node): Dump predictor.
14501         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
14502         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
14503         * gimple-low.c (lower_stmt): Likewise.
14504         * expr.c (expand_expr_real): Likewise.
14505         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
14506         them.
14507         (build_predict_expr, build_predict_expr): New.
14508         * predict.h (predictor_name, build_predict_expr): Update.
14509         * c-typeck.c (c_finish_bc_stmt): Add prediction.
14510         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
14511         * predict.def (PRED_CONTINUE): Update hitrate.
14512         * tree.def (PREDICT_EXPR): Define.
14513         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
14514         do not handle BIND_EXPR.
14515         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
14516         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
14517         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
14518         operands.
14519
14520 2008-03-18  Michael Matz  <matz@suse.de>
14521
14522         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
14523
14524 2008-03-18  Richard Guenther  <rguenther@suse.de>
14525
14526         * tree-gimple.h (is_gimple_invariant_address): Declare.
14527         (is_gimple_constant): Likewise.
14528         * tree-gimple.c (is_gimple_constant): New function.
14529         (is_gimple_invariant_address): Likewise.
14530         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
14531         and is_gimple_invariant_address.
14532         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
14533         previous change.
14534         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
14535         an addressable base.
14536
14537 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
14538
14539         PR middle-end/35611
14540         * gimplify.c (gimplify_expr): Gimplify second operand of
14541         OMP_ATOMIC_LOAD.
14542
14543 2008-03-17  Richard Guenther  <rguenther@suse.de>
14544
14545         PR tree-optimization/19637
14546         * fold-const.c (fold_unary): Remove restrictions of removing
14547         intermediate pointer-conversions (P2)(P1)P0.
14548         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
14549         conversion to void pointer.
14550         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
14551
14552 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
14553
14554         PR debug/31510
14555         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
14556         emulated thread local variables.
14557
14558 2008-03-16  Richard Guenther  <rguenther@suse.de>
14559
14560         PR middle-end/35607
14561         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
14562         expand TREE_INVARIANT operations that are not gimple invariant.
14563
14564 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
14565
14566         * doc/extend.texi (Alignment): Say that the ABI controls
14567         the __alignof__ for non-strict-alignment targets rather
14568         than being a recommendation.
14569
14570 2008-03-15  Paul Brook  <paul@codesourcery.com>
14571
14572         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
14573         annotations.
14574         (arm_output_fn_unwind): Mark functions that can not be unwound.
14575
14576 2008-03-15  Paul Brook  <paul@codesourcery.com>
14577
14578         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
14579         extension instructions.
14580
14581 2008-03-15  Richard Guenther  <rguenther@suse.de>
14582
14583         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
14584         and fold constant aggregate refs.
14585         (fold_const_aggregate_ref): Handle string constants
14586         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
14587         (evaluate_stmt): Simplify now that ccp_fold folds constant
14588         aggregate refs.
14589
14590 2008-03-15  Paul Brook  <paul@codesourcery.com>
14591
14592         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
14593         (extzv): Use gen_extzv_t2.
14594         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
14595
14596 2008-03-15  Richard Guenther  <rguenther@suse.de>
14597
14598         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
14599         (fold_const_aggregate_ref): Likewise.
14600         (get_value): Return NULL if we don't have any values.
14601         (ccp_finalize): Set const_val to NULL after freeing it.
14602         * tree-flow.h (get_symbol_constant_value): Declare.
14603         (fold_const_aggregate_ref): Likewise.
14604         * tree-ssa-sccvn.c (try_to_simplify): Use them.
14605
14606 2008-03-15  Richard Guenther  <rguenther@suse.de>
14607
14608         PR middle-end/35593
14609         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
14610         to not produce negative array indices if not allowed.  Add
14611         parameter to indicate that.
14612         (maybe_fold_offset_to_component_ref): Allow negative array
14613         indices only for the first member of a structure.
14614         (maybe_fold_offset_to_reference): Allow negative array indices.
14615         (maybe_fold_stmt_addition): Likewise.
14616
14617 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
14618             Anatoly Sokolov <aesok@post.ru>
14619
14620         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
14621         (avr_arch): Add ARCH_AVR6.
14622         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
14623         (initial_elimination_offset): Initialize and use 'avr_pc_size'
14624         instead of fixed value 2.
14625         (print_operand_address): Use gs() asm specifier instead of pm().
14626         (avr_assemble_integer): (Ditto.).
14627         (avr_output_addr_vec_elt): (Ditto.).
14628         (print_operand): Handle "!" code.
14629         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
14630         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
14631         (AVR_HAVE_EIJMP_EICALL): Define.
14632         (AVR_3_BYTE_PC): Redefine.
14633         (AVR_2_BYTE_PC): (Ditto.).
14634         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
14635         (LINK_SPEC): Add atmega2560 and atmega2561.
14636         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
14637         (crtm2561.o).
14638         * config/avr/avr.md (call_insn): Use eicall instead of icall
14639         for 3 byte PC devices.
14640         (call_value_insn): (Ditto.).
14641         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
14642         (indirect_jump): Use only for for 2 byte PC devices.
14643         (*tablejump): (Ditto.).
14644         (*indirect_jump_avr6): Add insn.
14645         (*tablejump_rjmp): Don't use for 3 byte PC devices.
14646         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
14647         instead of ijmp for 3 byte PC devices.
14648         (__tablejump2__): (Ditto.).
14649         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
14650         (MULITLIB_DIRNAMES): (Ditto.).
14651         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
14652
14653 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
14654
14655         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
14656         "sse2_umulsidi3".  Use V1DI mode for operand 0.
14657         ("mmx_psadbw"): Use V1DI mode for operand 0.
14658         * config/i386/i386-modes.def (V1SI): New vector mode.
14659         * config/i386/i386.c (struct builtin_description)
14660         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
14661         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
14662         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
14663         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
14664         v1di_ftype_v8qi_v8qi type.
14665         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
14666
14667         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
14668         __builtin_ia32_pmuludq]: Fix the mode of return value.
14669
14670 2008-03-15  Richard Guenther  <rguenther@suse.de>
14671
14672         PR middle-end/35595
14673         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
14674         being a PHI_NODE.
14675
14676 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
14677
14678         * doc/invoke.texi (Option Summary, Xtensa Options): Document
14679         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
14680         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
14681         unless TARGET_SERIALIZE_VOLATILE is enabled.
14682         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
14683         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
14684         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
14685
14686 2008-03-14  Richard Guenther  <rguenther@suse.de>
14687
14688         PR tree-optimization/34172
14689         * tree-flow.h (refs_may_alias_p): Declare.
14690         (get_single_def_stmt): Likewise.
14691         (get_single_def_stmt_from_phi): Likewise.
14692         (get_single_def_stmt_with_phi): Likewise.
14693         * tree-dfa.c (refs_may_alias_p): New function.
14694         (get_single_def_stmt): Likewise.
14695         (get_single_def_stmt_from_phi): Likewise.
14696         (get_single_def_stmt_with_phi): Likewise.
14697         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
14698         (vn_reference_lookup_1): New helper function.
14699         (vn_reference_lookup): Walk the virtual use-def chain to
14700         continue searching for a match if the def does not alias the
14701         reference we are looking for.
14702
14703 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
14704
14705         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
14706         archive and Perzl.  Update The Written Word listing.
14707
14708 2008-03-14  Richard Guenther  <rguenther@suse.de>
14709
14710         PR tree-optimization/34043
14711         PR tree-optimization/33989
14712         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
14713         when doing FRE.
14714         (bitmap_find_leader): Use extra argument to verify dominance
14715         relationship inside a basic-block.
14716         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
14717         (find_leader_in_sets): Adjust.
14718         (create_component_ref_by_pieces): Take extra argument for
14719         dominance check, handle lookup failures.
14720         (find_or_generate_expression): Likewise.
14721         (create_expression_by_pieces): Likewise.
14722         (insert_into_preds_of_block): Adjust.
14723         (create_value_expr_from): If asked for, verify all operands
14724         are in the blocks AVAIL_OUT set.
14725         (make_values_for_stmt): Check for SSA_NAMEs that are life
14726         over an abnormal edge.
14727         (compute_avail): Remove such check.
14728         (do_SCCVN_insertion): New function.
14729         (eliminate): If we do not find a leader suitable for replacement
14730         insert a replacement expression from SCCVN if available.
14731         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
14732         (struct vn_ssa_aux): Add needs_insertion flag.
14733         * tree-ssa-sccvn.c (may_insert): New global flag.
14734         (copy_reference_ops_from_ref): Value-number union member access
14735         based on its size, not type and member if insertion is allowed.
14736         (visit_reference_op_load): For a weak match from union type
14737         punning lookup a view-converted value and insert a SSA_NAME
14738         for that value if that is not found.
14739         (visit_use): Make dumps shorter.  Do not disallow value numbering
14740         SSA_NAMEs that are life over an abnormal edge to constants.
14741         (free_scc_vn): Release inserted SSA_NAMEs.
14742         (run_scc_vn): New flag to specify whether insertion is allowed.
14743         Process SSA_NAMEs in forward order.
14744         * tree-ssa-loop-im.c (for_each_index): Handle invariant
14745         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
14746         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
14747         pointer type to/from integral types that do not change the
14748         precision to regular conversions.
14749
14750 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
14751
14752         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
14753         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
14754         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
14755         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
14756         input arguments and the mode of return value.  Built-in functions
14757         that operate on whole 64-bit MMX register now use V1DI mode.
14758
14759 2008-03-13  Alon Dayan  <alond@il.ibm.com>
14760             Olga Golovanevsky  <olga@il.ibm.com>
14761
14762         PR tree-optimization/35041
14763         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
14764         to locate the right position in a statement.
14765
14766 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
14767
14768         PR target/34000
14769         PR target/35553
14770         * config/i386/xmmintrin.h:  Change all static inline functions to
14771         extern inline and add __gnu_inline__ attribute.
14772         * config/i386/bmintrin.h: Ditto.
14773         * config/i386/smmintrin.h: Ditto.
14774         * config/i386/tmmintrin.h: Ditto.
14775         * config/i386/mmintrin-common.h: Ditto.
14776         * config/i386/ammintrin.h: Ditto.
14777         * config/i386/emmintrin.h: Ditto.
14778         * config/i386/pmmintrin.h: Ditto.
14779         * config/i386/mmintrin.h: Ditto.
14780         * config/i386/mm3dnow.h: Ditto.
14781
14782 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
14783
14784         PR middle-end/35185
14785         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
14786         (lower_omp_2): New function.
14787         (lower_omp_1, lower_omp): Rewritten.
14788
14789 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
14790
14791         PR 35054
14792         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
14793         with the phrase "Microsoft Windows compilers".
14794         (Push/Pop Macro Pragmas): New subsection. Document
14795         #pragma push_macro and pragma pop_macro.
14796
14797 2008-03-12  Paul Brook  <paul@codesourcery.com>
14798
14799         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
14800
14801 2008-03-12  Paul Brook  <paul@codesourcery.com>
14802
14803         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
14804         (thumb2_alusi3_short): Exclude PLUS and MINUS.
14805         (thumb2_addsi_shortim): Rename ...
14806         (thumb2_addsi_short): ... to this.  Allow register operands.
14807         (thumb2_subsi_short): New pattern.
14808         (thumb2_one_cmplsi2_short,
14809         thumb2_negsi2_short): New patterns and peepholes.
14810
14811 2008-03-12  Paul Brook  <paul@codesourcery.com>
14812
14813         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
14814
14815 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
14816
14817         * config/i386/i386.md (int_cond): New code iterator.
14818         (fp_cond): Ditto.
14819         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
14820         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
14821         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
14822         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
14823         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
14824         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
14825         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
14826         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
14827
14828 2008-03-12  Paul Brook  <paul@codesourcery.com>
14829
14830         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
14831         instead of {arm,thumb}_compute_save_reg_mask.
14832         (output_return_instruction): Ditto.
14833         (thumb_unexpanded_epilogue): Ditto.
14834         (thumb1_expand_prologue): Ditto.
14835         (thumb1_output_function_prologue): Ditto.
14836         (arm_set_return_address): Ditto.
14837         (thumb_set_return_address): Ditto.
14838         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
14839         regs to achieve stack alignment.
14840         (thumb1_compute_save_reg_mask): Fix compiler warning.
14841         (arm_output_epilogue): Use offsets->saved_regs_mask.
14842         Adjust stack pointer by poping call clobered registers.
14843         (arm_expand_prologue): Use offsets->saved_regs_mask.
14844         Adjust stack pointer by pushing extra registers.
14845         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
14846
14847 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
14848
14849         PR tree-opt/35422
14850         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
14851         conversion to the operands of a multiplication.
14852
14853 2008-03-12  Richard Guenther  <rguenther@suse.de>
14854
14855         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
14856         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
14857         * timevar.def (TV_TREE_PHIPROP): Add.
14858         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
14859         pass description.  Use TV_TREE_PHIPROP.
14860         * tree-ssa-forwprop.c: Remove phiprop code.
14861
14862 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
14863
14864         PR middle-end/35549
14865         * omp-low.c (maybe_lookup_decl): Constify first argument.
14866         (use_pointer_for_field): Change last argument from bool to
14867         omp_context *.  Disallow shared copy-in/out in nested
14868         parallel if decl is shared in outer parallel too.
14869         (build_outer_var_ref, scan_sharing_clauses,
14870         lower_rec_input_clauses, lower_copyprivate_clauses,
14871         lower_send_clauses, lower_send_shared_vars): Adjust callers.
14872
14873 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
14874             Ira Rosen  <irar@il.ibm.com>
14875
14876         * tree-vectorizer.c (free_stmt_vec_info): New function.
14877         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
14878         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
14879         * tree-vectorizer.h (free_stmt_vec_info): Declare.
14880         * tree-vect-transform.c (vectorizable_conversion): Free
14881         vec_oprnds0 if it was allocated.
14882         (vect_permute_store_chain): Remove unused VECs.
14883         (vectorizable_store): Free VECs that are allocated in the..
14884         function.
14885         (vect_transform_strided_load, vectorizable_load): Likewise.
14886         (vect_remove_stores): Simplify the code.
14887         (vect_transform_loop): Move code to vect_remove_stores().
14888         Call vect_remove_stores() and free_stmt_vec_info().
14889
14890 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14891
14892         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
14893         TARGET_HPUX.  Revise comment.
14894         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
14895         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
14896         Use sr4 variant of `be' instruction when not generating PIC code.
14897         (attr_length_call): Adjust for above change.
14898
14899 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14900
14901         * ipa-reference.c (static_execute): Remove module_statics_const and
14902         associated setting code.
14903
14904 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
14905
14906         PR target/35540
14907         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
14908         predicate for operand 1.
14909         (paritysi2_cmp): Use register_operand predicate for operand 2.
14910         Use earlyclobber modifier for operand 1.  Remove support for
14911         memory operands.
14912         (paritydi2_cmp): Use register_operand predicate for operand 3.
14913         Use earlyclobber modifier for operand 1.  Remove support for
14914         memory operands.
14915
14916 2008-03-11  Paul Brook  <paul@codesourcery.com>
14917             Vladimir Prus  <vladimir@codesourcery.com>
14918
14919         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
14920         (arm_compute_save_reg0_reg12_mask): Always
14921         check if register 11 must be saved.  Always safe hard frame pointer
14922         when frame_pointer_needeed.
14923         (arm_compute_save_reg_mask): Save IP and PC
14924         only with apcs frames.
14925         (arm_output_epilogue): Adjust Thumb2 codepath to
14926         be also invoked and work for ARM non-apcs frames.
14927         (arm_expand_prologue): Don't bother saving IP
14928         for non-apcs frame, since it's not clobbered by
14929         prologue code.  Implement non-apcs frame
14930         layout.
14931
14932 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
14933
14934         PR rtl-optimization/35281
14935         * expr.c (convert_move): Use a new pseudo for the intermediate
14936         from_mode->word_mode result.
14937
14938 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
14939
14940         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
14941         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
14942         * toplev.c (compile_file): Don't call it.
14943
14944 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
14945
14946         PR middle-end/35526
14947         * expr.c (store_expr): Call emit_block_move if the mode
14948         of "temp" RTX is BLKmode.
14949
14950 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14951             Richard Guenther  <rguenther@suse.de>
14952
14953         PR tree-optimization/31358
14954         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
14955         the step with a NULL_TREE.
14956         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
14957         to sizetype if type is a pointer type.
14958         (add_candidate_1): Don't convert the base and step to
14959         the generic type if the orginal type is a pointer type.
14960         (add_iv_value_candidates): Use sizetype for the step
14961         if type is a pointer type.
14962         (cand_value_at): Likewise.
14963         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
14964         for pointer types.
14965         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
14966         Don't convert the tem affine to the type.
14967         (add_elt_to_tree): Use sizetype for the step if a pointer.
14968         Use POINTER_PLUS_EXPR for pointers.
14969         (aff_combination_to_tree): Use sizetype for the step if a
14970         pointer.
14971
14972 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
14973
14974         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
14975         Remove commutativity hint.
14976
14977 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
14978
14979         PR c/35438
14980         PR c/35439
14981         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
14982         errorneous type.  Check that v is a VAR_DECL.
14983
14984         PR middle-end/35099
14985         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
14986
14987 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
14988
14989         PR tree-optimization/35494
14990         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
14991         may be overriden at link and run time.
14992
14993 2008-03-10  Richard Guenther  <rguenther@suse.de>
14994
14995         PR tree-optimization/34677
14996         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
14997         (poolify_tree): Likewise.
14998         (modify_expr_template): Likewise.
14999         (poolify_modify_stmt): Likewise.
15000         (insert_fake_stores): Handle all component-ref style stores
15001         in addition to INDIRECT_REF.  Also handle complex types.
15002         Do not poolify the inserted load.
15003         (realify_fake_stores): Do not rebuild the tree but only
15004         make it a SSA_NAME copy.
15005         (init_pre): Remove initialzation of modify_expr_template.
15006         Do not allocate modify_expr_node_pool.
15007         (fini_pre): Do not free modify_expr_node_pool.
15008
15009 2008-03-10  Paul Brook  <paul@codesourcery.com>
15010
15011         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
15012         to avoid conflicts.
15013
15014 2008-03-10  Paul Brook  <paul@codesourcery.com>
15015             Mark Shinwell  <shinwell@codesourcery.com>
15016
15017         * config/arm/cortex-r4.md: New.
15018         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
15019         insn attributes.
15020         * config/arm/arm.md: Include cortex-r4.md.
15021         (insn): Add smmls, sdiv and udiv values.
15022         (generic_sched): Don't use generic scheduling for Cortex-R4.
15023         (arm_issue_rate): New function.
15024         (TARGET_SCHED_ISSUE_RATE): Define.
15025
15026 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
15027
15028         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
15029
15030 2008-03-10  Richard Guenther  <rguenther@suse.de>
15031
15032         * tree-ssa-pre.c (get_sccvn_value): Simplify.
15033         (compute_avail): Do not add stmt uses to AVAIL_OUT.
15034
15035 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
15036
15037         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
15038         Set default to true.
15039
15040 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15041
15042         * c.opt (Wsynth): Deprecate.
15043         * doc/invoke.texi (Option Summary, Warning Options): Document
15044         -Wno-format-contains-nul.
15045
15046 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
15047
15048         PR target/35496
15049         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
15050         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
15051
15052 2008-03-09  Ira Rosen  <irar@il.ibm.com>
15053
15054         * config/rs6000/rs6000.c (builtin_description): Rename vector
15055         left shift operations.
15056         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
15057         (altivec_vsl<VI_char>): Rename to ...
15058         (ashl<mode>3): ... new name.
15059         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
15060         gen_ashlv4si3.
15061         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
15062
15063 2008-03-08  Richard Guenther  <rguenther@suse.de>
15064
15065         * coverage.h (tree_coverage_counter_addr): Declare.
15066         * coverage.c (tree_coverage_counter_addr): New function.
15067         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
15068         before using again.
15069         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
15070         (tree_gen_one_value_profiler): Likewise.
15071         (tree_gen_ic_profiler): Likewise.
15072         (tree_gen_average_profiler): Likewise.
15073         (tree_gen_ior_profiler): Likewise.
15074
15075 2008-03-08  Richard Guenther  <rguenther@suse.de>
15076
15077         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
15078         (vn_binary_op_insert): Likewise.
15079         (vn_unary_op_lookup): Likewise.
15080         (vn_unary_op_insert): Likewise.
15081         (vn_nary_op_lookup): Declare.
15082         (vn_nary_op_insert): Likewise.
15083         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
15084         and binary hashes, use a single obstack for unary_op_pool
15085         and binary_op_pool.
15086         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
15087         a single struct vn_nary_op_s.  Store tree code length and
15088         a variable number of operands.
15089         (struct vn_reference_op_struct): Remove unused op2.
15090         (vn_reference_op_eq): Do not compare op2.
15091         (vn_reference_op_compute_hash): Do not compute hash of op2.
15092         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
15093         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
15094         with vn_nary_op_compute_hash.
15095         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
15096         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
15097         vn_nary_op_lookup.
15098         (vn_unary_op_insert, vn_binary_op_insert): Replace with
15099         vn_nary_op_insert.
15100         (visit_unary_op): Call nary functions.
15101         (visit_binary_op): Likewise.
15102         (process_scc): Adjust for struct vn_tables_s changes.
15103         (allocate_vn_table): Likewise.
15104         (free_vn_table): Likewise.
15105         * tree-vn.c (vn_add): Call nary functions.
15106         (vn_lookup): Likewise.
15107
15108 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
15109
15110         PR target/35498
15111         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
15112         wdst back after sync_compare_and_swapqhi_internal.
15113
15114 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
15115
15116         PR target/22152
15117         * config/i386/i386-modes.def (V1DI): New vector mode.
15118         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
15119         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
15120         (MMXMODE248): Ditto.
15121         (MMXMODE): Add V1DI mode.
15122         (mmxvecsize): Change DI mode to V1DI mode.
15123         ("mov<mode>): Use MMXMODEI8 mode iterator.
15124         ("*mov<mode>_internal_rex64"): Ditto.
15125         ("*mov<mode>_internal"): Ditto.
15126         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
15127         ("mmx_sub<mode>3"): Ditto.
15128         ("mmx_adddi3"): Remove insn pattern.
15129         ("mmx_subdi3"): Ditto.
15130         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
15131         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
15132         ("mmx_ashl<mode>3"): Ditto.
15133         ("mmx_lshrdi3"): Remove insn pattern.
15134         ("mmx_ashldi3"): Ditto.
15135         * config/i386/i386.c (classify_argument): Handle V1DImode.
15136         (function_arg_advance_32): Ditto.
15137         (function_arg_32): Ditto.
15138         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
15139         mmx_addv1di3 insn pattern.
15140         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
15141         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
15142         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
15143         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
15144         Remove definitions of built-in functions.
15145         (V1DI_type_node): New node.
15146         (v1di_ftype_v1di_int): Ditto.
15147         (v1di_ftype_v1di_v1di): Ditto.
15148         (v2si_ftype_v2si_si): Ditto.
15149         (v4hi_ftype_v4hi_di): Remove node.
15150         (v2si_ftype_v2si_di): Ditto.
15151         (ix86_init_mmx_sse_builtins): Handle V1DImode.
15152         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
15153         Redefine builtins using def_builtin_const with *_ftype_*_int node.
15154         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
15155         Add new builtins using def_builtin_const.
15156         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
15157         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
15158         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
15159         * config/i386/mmintrin.h (__v1di): New typedef.
15160         (_mm_add_si64): Cast arguments to __v1di type.
15161         (_mm_sub_si64): Ditto.
15162         (_mm_sll_pi16): Cast __count to __v4hi type.
15163         (_mm_sll_pi32): Cast __count to __v2si type.
15164         (_mm_sll_si64): Cast arguments to __v1di type.
15165         (_mm_srl_pi16): Cast __count to __v4hi type.
15166         (_mm_srl_pi32): Cast __count to __v2si type.
15167         (_mm_srl_si64): Cast arguments to __v1di type.
15168         (_mm_sra_pi16): Cast __count to __v4hi type.
15169         (_mm_sra_pi32): Cast __count to __v2si type.
15170         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
15171         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
15172         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
15173         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
15174         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
15175         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
15176         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
15177         (_mm_srai_pi32): Use __builtin_ia32_psradi.
15178         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
15179         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
15180         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
15181         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
15182
15183 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
15184
15185         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
15186
15187 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
15188
15189         PR target/35373
15190         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
15191         reg+const addressing for Altivec modes.  Don't generate reg+reg
15192         addressing for TFmode or TDmode quantities.
15193
15194 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
15195
15196         * c-common.c (vector_types_convertible_p): Call langhook
15197         instead of comptypes.
15198
15199 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15200
15201         PR tree-opt/35402
15202         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
15203         integral and scalar float variables which have a
15204         NULL DECL_INITIAL.
15205
15206 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
15207
15208         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
15209         dwarf_register_span hook when emitting unwind information for
15210         register-to-memory saves.
15211         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
15212         (rs6000_frame_related): Remove call to spe_synthesize_frame.
15213
15214 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
15215
15216         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
15217         for the same VAR_DECL.
15218
15219 2008-03-06  Tom Tromey  <tromey@redhat.com>
15220
15221         * treelang: Delete.
15222         * doc/standards.texi (Standards): Don't mention treelang.
15223         * doc/invoke.texi (Overall Options): Don't mention treelang.
15224         * doc/install.texi (Prerequisites): Don't mention bison or
15225         treelang.
15226         (Configuration): Don't mention treelang.
15227         (Building): Likewise.
15228         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
15229
15230 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
15231
15232         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
15233         word-extractions out of a multi-word object.
15234
15235 2008-03-06  Richard Guenther  <rguenther@suse.de>
15236
15237         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
15238         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
15239         result type and precision.
15240         * expr.c (get_inner_reference): Set unsignedp based on the result
15241         type of BIT_FIELD_REF.
15242         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
15243         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
15244         (try_instantiate_multiple_fields): Likewise.  Use the correct type
15245         for BIT_FIELD_REF.
15246         (sra_build_assignment): Likewise.
15247         (sra_build_elt_assignment): Likewise.
15248         (sra_explode_bitfield_assignment): Likewise.
15249         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
15250         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
15251         set BIT_FIELD_REF_UNSIGNED.
15252         (vectorizable_load): Likewise.
15253
15254 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
15255
15256         * cse.c (cse_extended_basic_block): Invalidate artificial defs
15257         at bb start.
15258
15259 2008-03-06  Richard Guenther  <rguenther@suse.de>
15260
15261         * alias.c (struct alias_set_entry): Move has_zero_child field
15262         to pack with alias_set.
15263
15264 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
15265
15266         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
15267         32bit host.
15268
15269 2008-03-05  Ian Lance Taylor  <iant@google.com>
15270
15271         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
15272
15273 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
15274
15275         * fwprop.c (update_df): Support width and offset parameters of
15276         df_ref_create.
15277         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
15278         global_conflicts): Change DF_REF_EXTRACT to either
15279         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
15280         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
15281         * df-scan.c (df_ref_record, df_defs_record,
15282         df_ref_create_structure, df_def_record_1, df_uses_record,
15283         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
15284         df_bb_refs_collect, df_entry_block_defs_collect,
15285         df_exit_block_uses_collect): Support new width and offset fields.
15286         (ref_extract_pool): New storage pool.
15287         (df_free_ref): New function.
15288         (df_reg_chain_unlink, df_free_collection_rec,
15289         df_sort_and_compress_refs): Call df_free_ref.
15290         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
15291         of df_ref_extract.
15292         (df_ref_create_structure): Allocate df_ref_extract if offset and
15293         width fields are used.
15294         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
15295         (df_uses_record): Get offset and width from ZERO_EXTRACT
15296         and SIGN_EXTRACT.
15297         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
15298         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
15299         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
15300         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
15301         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
15302         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
15303         (df_ref_extract): New structure.
15304         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
15305         (df_ref_create): Add width and offset parameters.
15306
15307 2008-03-05  Richard Guenther  <rguenther@suse.de>
15308
15309         * tree-ssa-structalias.c (get_constraint_for_component_ref):
15310         Use ranges_overlap_p.
15311         (offset_overlaps_with_access): Rename
15312         to ranges_overlap_p and move ...
15313         * tree-flow-inline.h (ranges_overlap_p): ... here.
15314
15315         * tree.h (get_inner_reference, handled_component_p): Update
15316         comments.
15317
15318         * tree.h (record_component_aliases, get_alias_set,
15319         alias_sets_conflict_p, alias_sets_must_conflict_p,
15320         objects_must_conflict_p): Move declarations ...
15321         * alias.h (record_component_aliases, get_alias_set,
15322         alias_sets_conflict_p, alias_sets_must_conflict_p,
15323         objects_must_conflict_p): ... here.
15324         Include coretypes.h.
15325         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
15326
15327 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
15328
15329         * cfg.c: Include tree-flow.h.
15330         (remove_edge_raw): Call redirect_edge_var_map_clear.
15331         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
15332         * tree-flow-inline.h (redirect_edge_var_map_def): New.
15333         (redirect_edge_var_map_result): New.
15334         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
15335         PENDING_STMT use with redirect_edge_var_map_*.
15336         * tree-ssa.c (edge_var_maps): New definition.
15337         (redirect_edge_var_map_add): New.
15338         (redirect_edge_var_map_clear): New.
15339         (redirect_edge_var_map_dup): New.
15340         (redirect_edge_var_map_vector): New.
15341         (redirect_edge_var_map_destroy): New.
15342         (ssa_redirect_edge): Replace PENDING_STMT use with
15343         redirect_edge_var_map_*.
15344         (flush_pending_stmts): Same.
15345         (delete_tree_ssa): Destroy edge var map.
15346         * tree-flow.h (struct _edge_var_map): New.
15347         Define edge_var_map vector type.
15348         Declare redirect_edge_var_map_* prototypes.
15349         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
15350         * tree-cfg.c (reinstall_phi_args): Replace
15351         PENDING_STMT use with redirect_edge_var_map_*.
15352
15353 2008-03-05  Richard Guenther  <rguenther@suse.de>
15354
15355         PR tree-optimization/35472
15356         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
15357         whose single use_stmt has a overlapping set of loaded and
15358         stored symbols as that use_stmt might be a noop assignment then.
15359
15360 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
15361
15362         * gthr-rtems.h: Implement __gthread_mutex_destroy.
15363
15364 2008-03-05  Richard Guenther  <rguenther@suse.de>
15365
15366         PR c++/35336
15367         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
15368         should be constants.
15369         * tree-cfg.c (verify_expr): Verify it.
15370         * fold-const.c (fold_truthop): Remove code generating
15371         BIT_FIELD_REFs of structure bases.
15372         (fold_binary): Likewise.
15373         (fold_ternary): Position and size of BIT_FIELD_REFs are
15374         always host integers.
15375         (make_bit_field_ref): Remove.
15376         (optimize_bit_field_compare): Remove.
15377         (all_ones_mask_p): Remove.
15378
15379 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
15380
15381         PR gcc/33009
15382         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
15383         (split_block_and_df_analyze): New. Split basic block and rebuild
15384         dataflow.
15385         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
15386         SPLIT_BLOCK.
15387         (split_pattern_seq): Likewise.
15388         (erase_matching_seqs): Likewise.
15389         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
15390
15391 2008-03-04  Geoff Keating  <geoffk@apple.com>
15392
15393         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
15394         declaration and code.
15395         (tree_invalid_nonnegative_warnv_p): Likewise.
15396
15397 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
15398
15399         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
15400         examples.  Truncate option-names then causing overfull hbox.
15401
15402 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15403
15404         PR target/35222
15405         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
15406         on hpux10.
15407         * configure: Rebuilt.
15408
15409 2008-03-04  Rafael Espindola  <espindola@google.com>
15410
15411         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
15412         (tree_unary_nonnegative_warnv_p): New.
15413         (tree_binary_nonnegative_warnv_p): New.
15414         (tree_single_nonnegative_warnv_p): New.
15415         (tree_invalid_nonnegative_warnv_p): New.
15416         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
15417
15418 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15419
15420         PR 28322
15421         * opts.c (handle_option): Postpone 'unknown option' errors only for
15422         warning options.
15423
15424 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
15425
15426         PR target/35453
15427         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
15428         (_SIDD_XXX): This.
15429
15430 2008-03-04  Rafael Espindola  <espindola@google.com>
15431
15432         * fold-const.c (tree_unary_nonzero_warnv_p): New.
15433         (tree_binary_nonzero_warnv_p): New.
15434         (tree_single_nonzero_warnv_p): New.
15435         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
15436
15437 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
15438
15439         PR middle-end/35456
15440         * fold-const.c (fold_cond_expr_with_comparison): Prevent
15441         transformations for modes that have signed zeros.
15442         * ifcvt.c (noce_try_abs): Ditto.
15443
15444 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
15445
15446         * config/i386/i386.c (override_options): Force
15447         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
15448
15449 2008-03-04  Jan Hubicka  <jh@suse.cz>
15450
15451         PR c++/35262
15452         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
15453         in last commit.
15454
15455 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
15456
15457         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
15458         label to probe the stack.
15459
15460 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
15461
15462         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
15463         (__gthr_win32_mutex_destroy): Declare.
15464         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
15465         __gthr_win32_mutex_destroy.
15466         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
15467
15468 2008-03-03  Jan Hubicka  <jh@suse.cz>
15469
15470         PR c++/35262
15471         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
15472         aggressive on inlining cold calls.
15473
15474 2008-03-03  Richard Guenther  <rguenther@suse.de>
15475
15476         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
15477         struct copies into the expression table.
15478         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
15479         (try_to_simplify): Likewise.
15480         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
15481         integral and pointer arguments which do not change the
15482         precision to NOP_EXPRs.
15483         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
15484         VIEW_CONVERT_EXPR case.
15485
15486 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
15487
15488         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
15489         defined in a loop at depth 0 is invariant.
15490         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
15491         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
15492         be called at loop depth 0.
15493
15494 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
15495
15496         PR driver/35420
15497         * gcc.c (process_command): Update copyright notice dates.
15498         * gcov.c (print_version): Likewise.
15499         * gcov-dump.c (print_version): Likewise.
15500         * mips-tfile.c (main): Likewise.
15501         * mips-tdump.c (main): Likewise.
15502
15503 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15504
15505         PR 24924
15506         * c-common.c (flag_permissive): Delete.
15507         (constant_expression_warnings): Check flags first.
15508         (constant_expression_error): New.
15509         * c-common.h (flag_permissive): Delete.
15510         (constant_expression_error): Declare.
15511         * flags.h (flag_permissive): Declare. Update description.
15512         * diagnostic.c (pedwarn): Update.
15513         (permerror): New.
15514         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
15515         (permissive_error_kind): New.
15516         * toplev.c (flag_permissive): Define. Update description.
15517         * toplev.h (permissive_error_kind): Declare.
15518         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
15519         (pedwarn_c90): Use pedantic_warning_kind.
15520         * c-opts.c (c_common_post_options): flag_permissive does not affect
15521         flag_pedantic_errors.
15522
15523 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
15524
15525         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
15526         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
15527         __absvsi2, __absvDI2): Use unsigned arithmetic.
15528
15529 2008-03-02  Andi Kleen  <ak@suse.de>
15530             Richard Guenther  <rguenther@suse.de>
15531
15532         * struct-equiv.c: Remove file.
15533         * cfg_cleanup.c (condjump_equiv_p): Remove.
15534         * Makefile.in (OBJS-common): Remove struct-equiv.o.
15535         (struct-equiv.o): Remove rule.
15536         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
15537         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
15538         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
15539
15540 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
15541
15542         * ifcvt.c (noce_process_if_block): Try to handle only the then
15543         block if the else block exists but isn't suitable.
15544
15545 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
15546
15547         PR gcc/35063
15548         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
15549         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
15550         regression from previous patch.
15551
15552 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
15553
15554         PR gcc/35063
15555         * gthr.h: Add __gthread_mutex_destroy as a function that must be
15556         implemented.
15557         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
15558         * gthr-single.h (__gthread_mutex_destroy): Likewise.
15559         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
15560         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
15561         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
15562         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
15563         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
15564         (__gthread_mutex_destroy_function): Rename to
15565         __gthread_mutex_destroy.
15566         * gthr-dce.h (__gthread_mutex_destroy): Call
15567         pthread_mutex_destroy.
15568         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
15569         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
15570         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
15571
15572 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
15573
15574         * df-scan.c (df_ref_chain_change_bb): Simplify.
15575         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
15576         set_block_for_insn if there's any change.
15577         * df.h ((df_insn_change_bb): Fix prototype.
15578         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
15579         df_insn_change_bb, don't call set_block_for_insn.
15580         * emit-rtl.c (reorder_insns): Likewise.
15581         * haifa-sched.c (move_insn): Likewise.
15582
15583 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
15584
15585         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
15586
15587 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
15588
15589         * tree-flow-inline.h (next_readonly_imm_use): Return
15590         NULL_USE_OPERAND_P after the end.
15591
15592 2008-03-01  Richard Guenther  <rguenther@suse.de>
15593
15594         PR tree-optimization/35411
15595         * tree-sra.c (sra_build_assignment): Split conversion to
15596         final type to a separate statement if we are not assigning
15597         to a register.
15598
15599 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15600
15601         * fold-const.c (fold_convertible_p): Correct the logic to follow
15602         that in fold_convert().
15603
15604 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
15605
15606         PR c++/35315
15607         * tree-inline.c (build_duplicate_type): When we make a
15608         duplicate type, make it unique in the canonical types system.
15609
15610 2008-02-29  Tom Tromey  <tromey@redhat.com>
15611
15612         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
15613         input_file_stack_history, input_file_stack_restored): Remove.
15614         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
15615         * input.h (struct file_stack): Remove.
15616         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
15617         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
15618         Likewise.
15619         * diagnostic.h (struct diagnostic_context) <last_module>: Change
15620         type.
15621         (diagnostic_last_module_changed): Add 'map' argument.
15622         (diagnostic_set_last_function): Likewise.
15623         * diagnostic.c (undiagnostic_report_current_module): Iterate using
15624         line map, not input_file_stack.
15625         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
15626
15627 2008-02-29  Paul Brook  <paul@codesourcery.com>
15628
15629         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
15630
15631 2008-02-29  Paul Brook  <paul@codesourcery.com>
15632
15633         * config/arm/ieee754-df.S (muldf3): Use RET macros.
15634
15635 2008-02-29  Richard Guenther  <rguenther@suse.de>
15636
15637         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
15638         vn_lookup_or_add.
15639         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
15640         value for comparing for a store match.
15641         (simplify_unary_expression): Do nothing for SSA_NAMEs.
15642         (try_to_simplify): Do not do a full-blown reference lookup.
15643
15644 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
15645
15646         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
15647         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
15648
15649         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
15650
15651 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
15652
15653         * tree-loop-linear.c (try_interchange_loops): Compare memory access
15654         strides against cache sizes.
15655
15656 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
15657
15658         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
15659         constant to fpul.
15660
15661 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
15662
15663         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
15664         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
15665         is smaller than the original promoted value.
15666         (simplify_subreg): If OP is a SUBREG, try to preserve its
15667         SUBREG_PROMOTED_VAR_P information.
15668
15669 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
15670
15671         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
15672         (VN_INFO_GET): Allocate new objects on the obstack.
15673         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
15674         for rpo_numbers_temp, for consistency.
15675         (free_scc_vn): Free the obstack.
15676
15677 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
15678
15679         * doc/invoke.texi: Document -ftree-loop-distribution.
15680         * tree-loop-distribution.c: New.
15681         * tree-pass.h (pass_loop_distribution): New.
15682         * graphds.h (struct graph): Add htab_t indices.
15683         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
15684         * tree-vectorizer.c (rename_variables_in_loop): Extern.
15685         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
15686         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
15687         * tree-data-ref.c (debug_data_dependence_relations): New.
15688         (dump_data_dependence_relation): Also print data references.
15689         (free_data_ref): Extern.
15690         (same_access_functions): Moved...
15691         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
15692         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
15693         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
15694         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
15695         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
15696         (stmts_from_loop): Skip LABEL_EXPR.
15697         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
15698         New.
15699         (build_rdg): Initialize rdg->indices htab.
15700         (free_rdg, stores_from_loop, ref_base_address,
15701         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
15702         have_similar_memory_accesses_1, ref_base_address_1,
15703         remove_similar_memory_refs): New.
15704         * tree-data-ref.h: Depend on tree-chrec.h.
15705         (debug_data_dependence_relations, free_data_ref): Declared.
15706         (same_access_functions): ... here.
15707         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
15708         New.
15709         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
15710         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
15711         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
15712         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
15713         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
15714         rdg_vertex_for_stmt): Declared.
15715         (struct rdg_edge): Add level.
15716         (RDGE_LEVEL): New.
15717         (free_rdg, stores_from_loop, remove_similar_memory_refs,
15718         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
15719         Declared.
15720         (rdg_has_similar_memory_accesses): New.
15721         * tree-vect-analyze.c: Remove unused static decls.
15722         * lambda.h (dependence_level): New.
15723         * common.opt (ftree-loop-distribution): New.
15724         * tree-flow.h (mark_virtual_ops_in_bb,
15725         slpeel_tree_duplicate_loop_to_edge_cfg,
15726         rename_variables_in_loop): Declared.
15727         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
15728         (OBJS-common): Add tree-loop-distribution.o.
15729         (tree-loop-distribution.o): New rule.
15730         * tree-cfg.c (mark_virtual_ops_in_bb): New.
15731         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
15732         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
15733
15734 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
15735
15736         PR target/33963
15737         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
15738         other than structures and unions.
15739
15740 2008-02-28  Richard Guenther  <rguenther@suse.de>
15741
15742         Revert:
15743         2008-02-26  Richard Guenther  <rguenther@suse.de>
15744
15745         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
15746         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
15747         (lookup_decl_from_uid): Declare.
15748         (remove_decl_from_map): Likewise.
15749         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
15750         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
15751         (decl_for_uid_map): New global hashtable mapping DECL_UID
15752         to the decl tree.
15753         (init_ttree): Allocate it.
15754         (insert_decl_to_uid_decl_map): New helper function.
15755         (make_node_stat): Insert new decls into the map.
15756         (copy_node_stat): Likewise.
15757         (lookup_decl_from_uid): New function.
15758         (remove_decl_from_map): Likewise.
15759         (print_decl_for_uid_map_statistics): New helper.
15760         (dump_tree_statistics): Call it.
15761
15762         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
15763         (referenced_var_iterator): Adjust.
15764         (FOR_EACH_REFERENCED_VAR): Adjust.
15765         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
15766         (num_referenced_vars): Adjust.
15767         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
15768         (first_referenced_var): Remove.
15769         (end_referenced_vars_p): Likewise.
15770         (next_referenced_var): Likewise.
15771         (referenced_var_iterator_set): New helper function.
15772         * tree-dfa.c (referenced_var_lookup): Adjust.
15773         (referenced_var_check_and_insert): Likewise.
15774         (remove_referenced_var): Likewise.
15775         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
15776         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15777         (verify_call_clobbering): Likewise.
15778         (verify_memory_partitions): Likewise.
15779         (init_tree_ssa): Allocate bitmap instead of hashtable for
15780         referenced_vars.
15781         (delete_tree_ssa): Adjust.
15782         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
15783         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15784         (compute_tag_properties): Likewise.
15785         (set_initial_properties): Likewise.
15786         (find_partition_for): Likewise.
15787         (update_reference_counts): Likewise.
15788         (dump_may_aliases_for): Likewise.
15789         * tree-ssa-operands.c (add_virtual_operand): Likewise.
15790         (add_call_clobber_ops): Likewise.
15791         (add_call_read_ops): Likewise.
15792         (get_asm_expr_operands): Likewise.
15793         * tree-into-ssa.c (dump_decl_set): Likewise.
15794         (update_ssa): Likewise.
15795         * tree-sra.c (scan_function): Likewise.
15796         (decide_instantiations): Likewise.
15797         (scalarize_parms): Likewise.
15798         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
15799         (dsa_named_for): Likewise.
15800         * tree-ssa-structalias.c (update_alias_info): Likewise.
15801         (merge_smts_into): Likewise.
15802
15803 2008-02-27  David Daney  <ddaney@avtrex.com>
15804
15805         PR target/34409
15806         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
15807         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
15808         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
15809         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
15810         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
15811
15812 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
15813
15814         PR target/25477
15815         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
15816         (BUILT_IN_NEXTTOWARD): Remove.
15817         (BUILT_IN_NEXTTOWARDF): Ditto.
15818         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
15819         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
15820
15821 2008-02-27  Tom Tromey  <tromey@redhat.com>
15822
15823         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
15824         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
15825
15826 2008-02-27  Jan Beulich  <jbeulich@novell.com>
15827
15828         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
15829         update the respective field on newdecl.
15830
15831 2008-02-27  Revital Eres  <eres@il.ibm.com>
15832
15833         PR rtl-optimization/34999
15834         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
15835         crossing edges that ends with a call insn.
15836         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
15837         call insn and clear the EDGE_CROSSING flag of the crossing edge
15838         when fixing fallthru edges.
15839
15840 2008-02-27  Richard Guenther  <rguenther@suse.de>
15841
15842         PR middle-end/35390
15843         * fold-const.c (fold_unary): Return the correct argument,
15844         converted to the result type.
15845
15846 2008-02-27  Richard Guenther  <rguenther@suse.de>
15847
15848         PR middle-end/34971
15849         * expr.c (expand_expr_real_1): Assert on rotates that operate
15850         on partial modes.
15851         * fold-const.c (fold_binary): Use the types precision, not the
15852         bitsize of the mode if folding rotate expressions.  Build rotates
15853         only for full modes.
15854
15855 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
15856
15857         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
15858         and CPP_PRAGMA_EOL.
15859         * c-pragma.c (pragma_ns_name): New typedef.
15860         (registered_pp_pragmas): New variable.
15861         (c_pp_lookup_pragma): New function.
15862         (c_register_pragma_1): If flag_preprocess_only, do nothing
15863         for non-expanded pragmas, for expanded ones push pragma's
15864         namespace and name into registered_pp_pragmas vector.
15865         (c_invoke_pragma_handler): Register OpenMP pragmas even when
15866         flag_preprocess_only, don't register GCC pch_preprocess
15867         pragma if flag_preprocess_only.
15868         * c-opts.c (c_common_init): Call init_pragma even if
15869         flag_preprocess_only.
15870         * c-pragma.c (c_pp_lookup_pragma): New prototype.
15871         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
15872         cpp_register_pragma if flag_preprocess_only.
15873
15874 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15875
15876         PR c/28800
15877         * c-parser.c (c_parser_translation_unit): Warn for empty
15878         translation unit, not empty source file.
15879
15880 2008-02-26  Paul Brook  <paul@codesourcery.com>
15881
15882         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
15883         operand for Thumb-2.
15884         * config/arm/arm.h (reg_class): Add CORE_REGS.
15885         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
15886         (BASE_REG_CLASS): Use CORE_REGS.
15887         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
15888         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
15889         (REGNO_OK_FOR_INDEX_P): Exclude SP.
15890         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
15891         ARM_REGNO_OK_FOR_INDEX_P.
15892         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
15893         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
15894         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
15895         (ldm/stm peepholes): Ditto.
15896         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
15897         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
15898         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
15899         * config/arm/constraints.md: Enable "k" constraint on ARM.
15900
15901 2008-02-27  Ben Elliston  <bje@au.ibm.com>
15902
15903         * config/rs6000/rs6000.c: Annotate cache line size field in all
15904         instances of struct processor_costs.
15905
15906 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
15907
15908         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
15909         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
15910         jump_bypass): New counters.
15911         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
15912         * dce.c (gate_ud_dce): Same.
15913         (gate_fast_dce): Same.
15914         * dse.c (gate_dse1): New function.
15915         (gate_dse2): New function.
15916         (gate_dse): Merge results of new gate functions.
15917         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
15918         (gate_handle_jump_bypass): Add dbg_cnt.
15919         (gate_handle_gcse): Add dbg_cnt.
15920         * ifcvt.c (gate_handle_if_conversion): Same.
15921         (gate_handle_if_after_combine): Same.
15922         (gate_handle_if_after_reload): Same.
15923         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
15924
15925 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
15926
15927         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
15928         line sizes.
15929         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
15930
15931 2008-02-26  Jason Merrill  <jason@redhat.com>
15932
15933         PR c++/35315
15934         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
15935         alone if it's the naming decl for the type's main variant.
15936
15937 2008-02-26  Tom Tromey  <tromey@redhat.com>
15938
15939         * system.h (USE_MAPPED_LOCATION): Poison.
15940         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
15941         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
15942         (make_goto_expr_edges): Likewise.
15943         (remove_bb): Likewise.
15944         (execute_warn_function_return): Likewise.
15945         * basic-block.h (struct edge_def) <goto_locus>: Change type to
15946         location_t.
15947         * c-common.c (fname_decl): Remove old location code.
15948         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
15949         location code.
15950         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
15951         variant.
15952         (ASM_INPUT_SOURCE_LOCATION): Likewise.
15953         (gen_rtx_ASM_INPUT): Likewise.
15954         (gen_rtx_ASM_INPUT_loc): Likewise.
15955         (get_rtx_asm_OPERANDS): Remove.
15956         * cfglayout.c (insn_locators_alloc): Remove old location code.
15957         (set_curr_insn_source_location): Likewise.
15958         (curr_insn_locator): Likewise.
15959         * print-tree.c (print_node): Remove old location code.
15960         * tree-mudflap.c (mf_varname_tree): Remove old location code.
15961         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
15962         * cfgexpand.c (expand_gimple_cond_expr): Don't use
15963         location_from_locus.
15964         (construct_exit_block): Remove old location code.
15965         * emit-rtl.c (force_next_line_note): Remove old location code.
15966         * profile.c (branch_prob): Remove old location code.
15967         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
15968         LOC_LINE): Remove old-location variants.
15969         * langhooks.c (lhd_print_error_function): Remove old location
15970         code.
15971         * configure, config.in: Rebuilt.
15972         * configure.ac (--enable-mapped-location): Remove.
15973         * c-decl.c (c_init_decl_processing): Remove old location code.
15974         (finish_function): Likewise.
15975         * recog.c (decode_asm_operands): Remove old location code.
15976         * c-pch.c (c_common_read_pch): Remove old location code.
15977         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
15978         variants.
15979         * gimple-low.c (lower_function_body): Remove old location code.
15980         * toplev.c (unknown_location): Remove.
15981         (push_srcloc): Remove old-location variant.
15982         (process_options): Remove old location code.
15983         (lang_dependent_init): Likewise.
15984         * input.h (UNKNOWN_LOCATION): Move definition.
15985         (location_t): Undeprecate.
15986         (source_locus): Remove.
15987         (location_from_locus): Remove.
15988         (struct location_s): Remove.
15989         Remove all old-location code.
15990         (input_line, input_filename): Remove.
15991         * final.c (final_scan_insn): Remove old location code.
15992         * diagnostic.c (diagnostic_build_prefix): Remove
15993         USE_MAPPED_LOCATION test.
15994         * tree.h (gimple_stmt) <locus>: Now a location_t.
15995         (tree_exp) <locus>: Likewise.
15996         (DECL_IS_BUILTIN): Remove old-location variant.
15997         (annotate_with_file_line, annotate_with_locus): Likewise.
15998         (expr_locus, set_expr_locus): Update.
15999         * tree.c (build1_stat): Remove old location code.
16000         (last_annotated_node): Remove.
16001         (annotate_with_file_line): Remove old-location variant.
16002         (annotate_with_locus): Likewise.
16003         (expr_location): Remove old location code.
16004         (set_expr_location): Likewise.
16005         (expr_has_location): Likewise.
16006         (expr_locus): Likewise.
16007         (set_expr_locus): Likewise.
16008         (expr_filename): Don't use location_from_locus.
16009         (expr_lineno): Likewise.
16010         * rtl-error.c (location_for_asm): Remove old location code.
16011         * c-lex.c (cb_line_change): Remove old location code.
16012         (fe_file_change): Likewise.
16013         (cb_def_pragma): Likewise.
16014         (c_lex_with_flags): Likewise.
16015         * gengtype.c (do_typedef): Don't special-case location types.
16016         (define_location_structures): Remove.
16017         (main): Don't call define_location_structures.
16018         * tree-pretty-print.c (dump_implicit_edges): Remove old location
16019         code.
16020
16021 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16022
16023         PR 26264
16024         * builtins.def (BUILT_IN_STDARG_START): Remove.
16025         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
16026         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
16027         * tree-inline.c (inline_forbidden_p_1): Likewise.
16028
16029 2008-02-26  Richard Guenther  <rguenther@suse.de>
16030
16031         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
16032         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
16033         (lookup_decl_from_uid): Declare.
16034         (remove_decl_from_map): Likewise.
16035         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
16036         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
16037         (decl_for_uid_map): New global hashtable mapping DECL_UID
16038         to the decl tree.
16039         (init_ttree): Allocate it.
16040         (insert_decl_to_uid_decl_map): New helper function.
16041         (make_node_stat): Insert new decls into the map.
16042         (copy_node_stat): Likewise.
16043         (lookup_decl_from_uid): New function.
16044         (remove_decl_from_map): Likewise.
16045         (print_decl_for_uid_map_statistics): New helper.
16046         (dump_tree_statistics): Call it.
16047
16048         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
16049         (referenced_var_iterator): Adjust.
16050         (FOR_EACH_REFERENCED_VAR): Adjust.
16051         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
16052         (num_referenced_vars): Adjust.
16053         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
16054         (first_referenced_var): Remove.
16055         (end_referenced_vars_p): Likewise.
16056         (next_referenced_var): Likewise.
16057         (referenced_var_iterator_set): New helper function.
16058         * tree-dfa.c (referenced_var_lookup): Adjust.
16059         (referenced_var_check_and_insert): Likewise.
16060         (remove_referenced_var): Likewise.
16061         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
16062         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16063         (verify_call_clobbering): Likewise.
16064         (verify_memory_partitions): Likewise.
16065         (init_tree_ssa): Allocate bitmap instead of hashtable for
16066         referenced_vars.
16067         (delete_tree_ssa): Adjust.
16068         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
16069         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16070         (compute_tag_properties): Likewise.
16071         (set_initial_properties): Likewise.
16072         (find_partition_for): Likewise.
16073         (update_reference_counts): Likewise.
16074         (dump_may_aliases_for): Likewise.
16075         * tree-ssa-operands.c (add_virtual_operand): Likewise.
16076         (add_call_clobber_ops): Likewise.
16077         (add_call_read_ops): Likewise.
16078         (get_asm_expr_operands): Likewise.
16079         * tree-into-ssa.c (dump_decl_set): Likewise.
16080         (update_ssa): Likewise.
16081         * tree-sra.c (scan_function): Likewise.
16082         (decide_instantiations): Likewise.
16083         (scalarize_parms): Likewise.
16084         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
16085         (dsa_named_for): Likewise.
16086         * tree-ssa-structalias.c (update_alias_info): Likewise.
16087         (merge_smts_into): Likewise.
16088
16089 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16090
16091         PR 34351
16092         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
16093         * c-opts.c (c_common_handle_option): Wall enables
16094         Wvolatile-register-var.
16095         * common.opt: Move Wvolatile-register-var to...
16096         * c.opt: ...here.
16097
16098 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16099
16100         * common.opt (Wlarger-than=): New.
16101         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
16102         -Wlarger-than=.
16103         * opts.c (common_handle_option): Handle -Wlarger-than=.
16104         * optc-gen.awk: Likewise.
16105         * opth-gen.awk: Likewise.
16106         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
16107         * tree-optimize.c (tree_rest_of_compilation): Likewise.
16108
16109 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16110
16111         * c-common.c (match_case_to_enum_1): Add appropriate
16112         OPT_W* parameter to warning.
16113         (c_do_switch_warnings): Likewise.
16114         * c-typeck.c (warning_init): Add one more parameter following
16115         'warning' function.
16116         (push_init_level): Update call to warning_init.
16117         (pop_init_level): Likewise.
16118         (add_pending_init): Likewise.
16119         (output_init_element: Likewise.
16120
16121 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16122
16123         PR 28322
16124         * toplev.c (toplev_main): If there are warnings or error, print
16125         errors for ignored options.
16126         * opts.c (ignored_options): New static variable.
16127         (postpone_unknown_option_error): New.
16128         (print_ignored_options): New.
16129         (handle_option): Postpone errors for unknown -Wno-* options.
16130         * opts.h (print_ignored_options): Declare.
16131
16132 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
16133
16134         * config/mips/mips.md (loadgp_blockage, blockage): Change type
16135         to "ghost".
16136
16137 2008-02-25  Richard Guenther  <rguenther@suse.de>
16138
16139         Revert:
16140         2008-02-25  Richard Guenther  <rguenther@suse.de>
16141
16142         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
16143         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
16144         (lookup_decl_from_uid): Declare.
16145         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
16146         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
16147         (decl_for_uid_map): New global hashtable mapping DECL_UID
16148         to the decl tree.
16149         (init_ttree): Allocate it.
16150         (insert_decl_to_uid_decl_map): New helper function.
16151         (make_node_stat): Insert new decls into the map.
16152         (copy_node_stat): Likewise.
16153         (lookup_decl_from_uid): New function.
16154         (print_decl_for_uid_map_statistics): New helper.
16155         (dump_tree_statistics): Call it.
16156
16157         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
16158         (referenced_var_iterator): Adjust.
16159         (FOR_EACH_REFERENCED_VAR): Adjust.
16160         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
16161         (num_referenced_vars): Adjust.
16162         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
16163         (first_referenced_var): Remove.
16164         (end_referenced_vars_p): Likewise.
16165         (next_referenced_var): Likewise.
16166         (referenced_var_iterator_set): New helper function.
16167         * tree-dfa.c (referenced_var_lookup): Adjust.
16168         (referenced_var_check_and_insert): Likewise.
16169         (remove_referenced_var): Likewise.
16170         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
16171         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16172         (verify_call_clobbering): Likewise.
16173         (verify_memory_partitions): Likewise.
16174         (init_tree_ssa): Allocate bitmap instead of hashtable for
16175         referenced_vars.
16176         (delete_tree_ssa): Adjust.
16177         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
16178         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16179         (compute_tag_properties): Likewise.
16180         (set_initial_properties): Likewise.
16181         (find_partition_for): Likewise.
16182         (update_reference_counts): Likewise.
16183         (dump_may_aliases_for): Likewise.
16184         * tree-ssa-operands.c (add_virtual_operand): Likewise.
16185         (add_call_clobber_ops): Likewise.
16186         (add_call_read_ops): Likewise.
16187         (get_asm_expr_operands): Likewise.
16188         * tree-into-ssa.c (dump_decl_set): Likewise.
16189         (update_ssa): Likewise.
16190         * tree-sra.c (scan_function): Likewise.
16191         (decide_instantiations): Likewise.
16192         (scalarize_parms): Likewise.
16193         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
16194         (dsa_named_for): Likewise.
16195         * tree-ssa-structalias.c (update_alias_info): Likewise.
16196         (merge_smts_into): Likewise.
16197
16198 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
16199
16200         PR fortran/29549
16201         * doc/invoke.texi (-fcx-limited-range): Document new option.
16202         * toplev.c (process_options): Handle -fcx-fortran-rules.
16203         * common.opt: Add documentation for -fcx-fortran-rules.
16204
16205 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
16206
16207         PR c/35162
16208         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
16209         actual behaviour and C99.
16210
16211 2008-02-26  Ben Elliston  <bje@au.ibm.com>
16212
16213         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
16214         (ASM_CPU_POWER6_SPEC): Likewise.
16215         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
16216         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
16217         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
16218
16219 2008-02-25  Richard Guenther  <rguenther@suse.de>
16220
16221         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
16222         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
16223         (lookup_decl_from_uid): Declare.
16224         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
16225         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
16226         (decl_for_uid_map): New global hashtable mapping DECL_UID
16227         to the decl tree.
16228         (init_ttree): Allocate it.
16229         (insert_decl_to_uid_decl_map): New helper function.
16230         (make_node_stat): Insert new decls into the map.
16231         (copy_node_stat): Likewise.
16232         (lookup_decl_from_uid): New function.
16233         (print_decl_for_uid_map_statistics): New helper.
16234         (dump_tree_statistics): Call it.
16235
16236         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
16237         (referenced_var_iterator): Adjust.
16238         (FOR_EACH_REFERENCED_VAR): Adjust.
16239         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
16240         (num_referenced_vars): Adjust.
16241         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
16242         (first_referenced_var): Remove.
16243         (end_referenced_vars_p): Likewise.
16244         (next_referenced_var): Likewise.
16245         (referenced_var_iterator_set): New helper function.
16246         * tree-dfa.c (referenced_var_lookup): Adjust.
16247         (referenced_var_check_and_insert): Likewise.
16248         (remove_referenced_var): Likewise.
16249         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
16250         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16251         (verify_call_clobbering): Likewise.
16252         (verify_memory_partitions): Likewise.
16253         (init_tree_ssa): Allocate bitmap instead of hashtable for
16254         referenced_vars.
16255         (delete_tree_ssa): Adjust.
16256         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
16257         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
16258         (compute_tag_properties): Likewise.
16259         (set_initial_properties): Likewise.
16260         (find_partition_for): Likewise.
16261         (update_reference_counts): Likewise.
16262         (dump_may_aliases_for): Likewise.
16263         * tree-ssa-operands.c (add_virtual_operand): Likewise.
16264         (add_call_clobber_ops): Likewise.
16265         (add_call_read_ops): Likewise.
16266         (get_asm_expr_operands): Likewise.
16267         * tree-into-ssa.c (dump_decl_set): Likewise.
16268         (update_ssa): Likewise.
16269         * tree-sra.c (scan_function): Likewise.
16270         (decide_instantiations): Likewise.
16271         (scalarize_parms): Likewise.
16272         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
16273         (dsa_named_for): Likewise.
16274         * tree-ssa-structalias.c (update_alias_info): Likewise.
16275         (merge_smts_into): Likewise.
16276
16277 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
16278
16279         PR target/35258
16280         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
16281         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
16282         * alias.h (nonoverlapping_memrefs_p): Likewise.
16283
16284 2008-02-25  Jan Beulich  <jbeulich@novell.com>
16285
16286         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
16287         * config/i386/netware-libgcc.exp: Add __bswap?i2,
16288         __emultls_get_address, __emultls_register_common,
16289         __floatundi?f, and _Unwind_GetIPInfo.
16290         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
16291         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
16292         (gen_regparm_prefix): Likewise.
16293         (i386_nlm_encode_section_info): Sync with
16294         config/i386/winnt.c:i386_pe_encode_section_info().
16295         (i386_nlm_maybe_mangle_decl_assembler_name): New.
16296         i386_nlm_mangle_decl_assembler_name): New.
16297         (netware_override_options): New.
16298         * config/i386/netware.h (netware_override_options): Declare.
16299         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
16300         (i386_nlm_mangle_decl_assembler_name): Declare.
16301         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
16302
16303 2008-02-25  Ben Elliston  <bje@au.ibm.com>
16304
16305         PR other/32948
16306         * c-decl.c (grokdeclarator): Remove unused local variables
16307         `typedef_type' and `type_as_written'.
16308         * bb-reorder.c
16309         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
16310         unused local variable `has_hot_blocks'.
16311         (fix_crossing_conditional_branches): Remove unused local variable
16312         `prev_bb'.
16313
16314 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
16315
16316         PR middle-end/19984
16317         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
16318         using DEF_C99_BUILTIN.
16319         (BUILT_IN_NANF): Ditto.
16320         (BUILT_IN_NANL): Ditto.
16321
16322 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
16323             Revital Eres  <eres@il.ibm.com>
16324
16325         * modulo-sched.c (calculate_must_precede_follow): Address TODO
16326         regarding the order of two dependent insns in the same row.
16327
16328 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
16329
16330         * stor-layout.c (layout_decl): Do not bump the alignment of a
16331         bit-field to more than byte alignment if it is packed.
16332
16333 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
16334
16335         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
16336         e300c2 and e300c3.
16337
16338 2008-02-24  Diego Novillo  <dnovillo@google.com>
16339
16340         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
16341
16342         PR 33738
16343         * tree-vrp.c (vrp_evaluate_conditional): With
16344         -Wtype-limits, emit a warning when comparing against a
16345         constant outside the natural range of OP0's type.
16346         * c.opt (Wtype-limits): Move ...
16347         * common.opt (Wtype-limits): ... here.
16348
16349 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
16350
16351         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
16352         * config/rs6000/e300c2c3.md: New file.
16353         * config/rs6000/rs6000.c (processor_costs): Add new costs for
16354         e300c2 and e300c3.
16355         (rs6000_override_options): Add e300c2 and e300c3 cases to
16356         processor_target_table. Do not allow usage of Altivec or Spe
16357         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
16358         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
16359         * config/rs6000/rs6000.h (processor_type): Add
16360         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
16361         (ASM_CPU_SPEC): Add e300c2 and e300c3.
16362         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
16363         and ppce300c3. Include e300c2c3.md.
16364
16365 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
16366
16367         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
16368         instead of TARGET_STRICT_ALIGN.
16369
16370 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
16371
16372         * explow.c (memory_address): Assert that the generated address is
16373         valid.
16374
16375 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
16376
16377         PR target/25477
16378         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
16379         * config/darwin-ppc-ldouble-patch.def: New file.
16380         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
16381         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
16382         SUBTARGET_INIT_BUILTINS if defined.
16383         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
16384         New functions.
16385
16386 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16387
16388         PR rtl-opt/33512
16389         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
16390         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
16391
16392 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16393
16394         PR pch/35027
16395         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
16396         file" warning condtional on -Winvalid-PCH.
16397
16398 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
16399
16400         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
16401
16402 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
16403
16404         PR target/22076
16405         PR target/34256
16406         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
16407         prevent reload from using MMX registers.
16408         (*mov<mode>_internal): Ditto.
16409         (*movv2sf_internal_rex64): Ditto.
16410         (*movv2sf_internal): Ditto.
16411
16412 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16413
16414         PR documentation/31569
16415         * doc/install.texi2html: Use makeinfo --no-number-sections.
16416
16417 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
16418
16419         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
16420         ensure that we can address an entire entity > 8 bytes.  Don't
16421         generate reg+reg addressing for such data.
16422
16423 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
16424
16425         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
16426         strings when optimizing for size, unless the target cares about
16427         alignment.
16428
16429 2008-02-22  Tom Tromey  <tromey@redhat.com>
16430
16431         * regclass.c (current_pass): Remove declaration.
16432
16433 2008-02-22  Anatoly Sokolov <aesok@post.ru>
16434
16435         * config/avr/libgcc.S (__RAMPZ__): Define.
16436         (__do_copy_data): Add for devices with 128KB code memory.
16437
16438 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
16439
16440         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
16441         Use spe_abi.
16442         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
16443
16444 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
16445
16446         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
16447         GENNONACR_REGS.
16448
16449 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16450
16451         PR c/19999
16452         * c-typeck.c (build_binary_op): Warn about floating point
16453         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
16454
16455 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
16456
16457         PR target/34526
16458         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
16459         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
16460         add vrsave.
16461         (rs6000_override_options): Set altivec_abi as default, not override,
16462         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
16463         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
16464         is used; use new member spe_abi.
16465         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
16466         spe_abi and altivec_abi.
16467
16468 2008-02-22  Tomas Bily  <tbily@suse.cz>
16469
16470         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
16471
16472 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16473
16474         PR bootstrap/35273
16475         * config.build (build_file_translate): Set to `CMD //c' only if
16476         it works.
16477         * Makefile.in (build_file_translate): Improve comment.
16478
16479 2008-02-21  Jan Hubicka  <jh@suse.cz>
16480
16481         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
16482         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
16483         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
16484
16485 2008-02-21  Michael Matz  <matz@suse.de>
16486
16487         PR target/35264
16488         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
16489
16490 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
16491
16492         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
16493         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
16494         as insn constraint.
16495         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
16496         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
16497         SSE_VEC_FLOAT_MODE_P as insn constraint.
16498         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
16499         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
16500         sse4a_movntdf using MODEF mode iterator.
16501         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
16502         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
16503         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
16504         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
16505         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
16506         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
16507         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
16508
16509 2008-02-21  Richard Guenther  <rguenther@suse.de>
16510
16511         * tree.def (PAREN_EXPR): New tree code.
16512         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
16513         and PAREN_EXPR.
16514         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
16515         * expr.c (expand_expr_real_1): Likewise.
16516         * tree-inline.c (estimate_num_insns_1): Likewise.
16517         * tree-complex.c (expand_complex_move): Likewise.
16518         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
16519         as plain x.
16520
16521 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
16522
16523         PR target/35225
16524         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
16525
16526 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
16527
16528         PR target/35190
16529         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
16530
16531         * config/sh/sh.c (find_barrier): Don't go past
16532         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
16533
16534 2008-02-20  DJ Delorie  <dj@redhat.com>
16535
16536         * config/h8300/h8300.md (insv): Force source operand to be a register.
16537
16538         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
16539         as a jump, not as a plain insn.
16540
16541 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
16542
16543         * doc/invoke.texi (Warning Options): Add new option
16544         -Wframe-larger-than=.
16545         (-Wframe-larger-than): Document.
16546
16547         * flags.h (warn_frame_larger_than, frame_larger_than_size):
16548         Add declarations for new option variables.
16549
16550         * final.c (final_start_function): Check the frame size
16551         before emission and issue a Wframe-larger-than warning.
16552
16553         * opts.c (warn_frame_larger_than, frame_larger_than_size):
16554         Add definitions for new option variables.
16555         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
16556
16557         * common.opt (Wframe-larger-than=): New option.
16558
16559 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
16560
16561         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
16562         (<sse>_div<mode>3): Ditto.
16563         (<sse>_vmdiv<mode>3): Ditto.
16564         (<sse>_vmsqrt<mode>2): Ditto.
16565         (*smax<mode>3): Ditto.
16566         (sse5_frcz<mode>2): Ditto.
16567         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
16568         as insn constraint.
16569
16570 2008-02-20  Richard Guenther  <rguenther@suse.de>
16571
16572         PR middle-end/35265
16573         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
16574         be happy with INTEGRAL_TYPE_P.
16575
16576 2008-02-20  Richard Guenther  <rguenther@suse.de>
16577
16578         * fold-const.c (split_tree): Associate floatig-point expressions
16579         if flag_associative_math is set.
16580
16581 2008-02-20  Richard Guenther  <rguenther@suse.de>
16582
16583         * tree.h (fold_real_zero_addition_p): Declare.
16584         * fold-const.c (fold_real_zero_addition_p): Export.
16585         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
16586         floating-point operations with zero and one.
16587
16588 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
16589
16590         * doc/install.texi: Correct references to CFLAGS, replacing them
16591         with BOOT_CFLAGS.  Document flags used during bootstrap for
16592         target libraries.
16593
16594 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
16595
16596         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
16597         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
16598         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
16599         insn constraint.
16600         (smin<mode>3): Ditto from similar patterns.
16601         (smax<mode>3): Ditto.
16602         (*ieee_smin<mode>3): Ditto.
16603         (*ieee_smax<mode>3): Ditto.
16604         * config/i386/sse.md (sse): New mode attribute.
16605         (mov<mode>): Macroize expander from movv4sf and movv2df using
16606         SSEMODEF2P mode iterator.
16607         (<sse>_movnt<mode>): Ditto from similar patterns. Use
16608         SSE_VEC_FLOAT_MODE_P as insn constraint.
16609         (storent<mode>): Ditto.
16610         (storent<mode>): Macroize expander from storentsf and storentdf using
16611         MODEF mode iterator.
16612         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
16613         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
16614         (abs<mode>2): Ditto from similar patterns.
16615         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
16616         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
16617         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
16618         (<sse>_vmsqrt<mode>2): Ditto.
16619         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
16620         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
16621         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
16622         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
16623         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
16624         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
16625         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
16626         insn constraint.
16627         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
16628         iterator and SSE_FLOAT_MODE_P as insn constraint.
16629         (<sse>_ucomi): Ditto from similar patterns.
16630         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
16631         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
16632         SSE_VEC_FLOAT_MODE_P as insn constraint.
16633         (vcond<mode>): Ditto from similar patterns.
16634         (and<mode>3, *and<mode>3): Ditto.
16635         (<sse>_nand<mode>3): Ditto.
16636         (ior<mode>3, *ior<mode>3): Ditto.
16637         (xor<mode>3, *xor<mode>3): Ditto.
16638         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
16639         iterator and SSE_FLOAT_MODE_P as insn constraint.
16640         (*nand<mode>3): Ditto from similar patterns.
16641         (*ior<mode>3): Ditto.
16642         (*xor<mode>3): Ditto.
16643
16644 2008-02-20  Ira Rosen  <irar@il.ibm.com>
16645
16646         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
16647         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
16648         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
16649
16650 2008-02-19  Jan Hubicka  <jh@suse.cz>
16651
16652         * predict.c (tree_bb_level_predictions): Remove variable next
16653         mistakely introduced by previous commit.
16654
16655 2008-02-19  Jan Hubicka  <jh@suse.cz>
16656
16657         * predict.c (predict_paths_leading_to): Rewrite.
16658         (predict_paths_for_bb): New.
16659         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
16660
16661 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16662
16663         PR bootstrap/35218
16664         * Makefile.in (build_file_translate): New.
16665         (gcc-vers.texi): Use it for translating $(abs_srcdir).
16666         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
16667         * configure.ac (build_file_translate): Substitute it.
16668         * configure: Regenerate.
16669
16670 2008-02-19  Jan Hubicka  <jh@suse.cz>
16671
16672         PR rtl-optimization/34408
16673         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
16674         invalid sharing.
16675
16676 2008-02-19  Jan Hubicka  <jh@suse.cz>
16677
16678         PR middle-end/28779
16679         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
16680         call_expr.
16681
16682 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
16683
16684         PR Ada/35186
16685         * config/i386/i386-modes.def: Revert the last DI alignment
16686         change until Ada people can look into it.
16687
16688 2008-02-19  Nick Clifton  <nickc@redhat.com>
16689
16690         * opts.c (print_specific_help): Fix typo in --help text.
16691
16692 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
16693
16694         PR target/35239
16695         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
16696         32-bit inline asm without asm alternatives for host GCC < 3.0.
16697
16698 2008-02-19  Richard Guenther  <rguenther@suse.de>
16699
16700         PR tree-optimization/34989
16701         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
16702         Allow propagation to INDIRECT_REF if we can simplify only.
16703
16704 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16705
16706         * c-common.c (warn_for_collisions_1): Use appropriate option when
16707         warning.
16708
16709 2008-02-19  Nick Clifton  <nickc@redhat.com>
16710
16711         PR other/31349
16712         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
16713         (handle_options): Fix indentation.
16714         (print_filtered_help): If no language-specific options were
16715         displayed tell the user how to list all the options supported by
16716         the language's front-end.
16717         (print_specific_help): Fix indentation and remove duplicate line.
16718         (common_handle_option): Handle the -v option.
16719         For --help enable the display of undocumented options if the -v
16720         switch has been included on the command line.
16721         For --help= check for overlaps in the arguments between the option
16722         classes and the language names and issue a warning when they
16723         cannot be disambiguated.
16724         * c.opt (v): Pass on to the common option handler.
16725
16726 2008-02-19  Revital Eres  <eres@il.ibm.com>
16727
16728         * modulo-sched.c (sms_schedule): Change dump message when
16729         create_ddg function fails.
16730         (try_scheduling_node_in_cycle): Rename row to cycle.
16731         (print_partial_schedule): Rename CYCLE to ROW.
16732
16733 2008-02-19  Christian Bruel  <christian.bruel@st.com>
16734             Zdenek Dvorak  <ook@ucw.cz>
16735
16736         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
16737
16738 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
16739
16740         PR target/33555
16741         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
16742         (*x86_movdicc_0_m1_se): Ditto.
16743
16744 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
16745
16746         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
16747         (CMPtype): Define as __gcc_CMPtype.
16748         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
16749         (CMPtype): Define as __gcc_CMPtype.
16750
16751 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
16752
16753         Support valgrind 3.3 for --enable-checking=valgrind.
16754         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
16755         here.
16756         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
16757         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
16758         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
16759         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
16760         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
16761         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
16762         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
16763         respectively.
16764         * ggc-zone.c: Similar.
16765         * ggc-page.c: Similar.
16766
16767 2008-02-19  Paul Brook  <paul@codesourcery.com>
16768
16769         PR target/35071
16770         * config/arm/ieee754-df.S: Fix do_it typo.
16771         * config/arm/ieee754-sf.S: Fix do_it typo.
16772
16773 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
16774
16775         PR target/35189
16776         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
16777         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
16778         (OPTION_MASK_ISA_SSE_SET): Likewise.
16779         (OPTION_MASK_ISA_SSE2_SET): Likewise.
16780         (OPTION_MASK_ISA_SSE3_SET): Likewise.
16781         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
16782         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
16783         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
16784         (OPTION_MASK_ISA_SSE4_SET): Likewise.
16785         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
16786         (OPTION_MASK_ISA_SSE5_SET): Likewise.
16787         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
16788         (OPTION_MASK_ISA_MMX_UNSET): Updated.
16789         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
16790         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
16791         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
16792         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
16793         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
16794         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
16795         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
16796         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
16797         (OPTION_MASK_ISA_SSE4): Removed.
16798         (ix86_handle_option): Turn on bits in ix86_isa_flags and
16799         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
16800         (override_options): Don't turn on implied SSE/MMX bits in
16801         ix86_isa_flags.
16802
16803 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
16804
16805         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
16806         32bit host.
16807
16808 2008-02-18  Joey Ye  <joey.ye@intel.com>
16809
16810         PR middle-end/34921
16811         * tree-nested.c (insert_field_into_struct): Set type alignment
16812         to field alignment if the former is less than the latter.
16813
16814 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
16815
16816         * BASE-VER: Set to 4.4.0.
16817
16818 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16819
16820         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
16821         * doc/cfg.texi: Likewise.
16822         * doc/extend.texi: Likewise.
16823         * doc/gty.texi: Likewise.
16824         * doc/invoke.texi: Likewise.
16825         * doc/loop.texi: Likewise.
16826         * doc/md.texi: Likewise.
16827         * doc/passes.texi: Likewise.
16828         * doc/rtl.texi: Likewise.
16829         * doc/sourcebuild.texi: Likewise.
16830         * doc/tm.texi: Likewise.
16831         * doc/tree-ssa.texi: Likewise.
16832
16833 2008-02-17  Richard Guenther  <rguenther@suse.de>
16834
16835         PR middle-end/35227
16836         * tree-complex.c (init_parameter_lattice_values): Handle parameters
16837         without default definition.
16838
16839 2008-02-17  Richard Guenther  <rguenther@suse.de>
16840
16841         PR tree-optimization/35231
16842         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
16843         if A | B != 1.
16844
16845 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
16846
16847         Revert:
16848         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
16849         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
16850         libgcc_cmp_return mode.
16851
16852 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16853
16854         PR c/28368
16855         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
16856
16857 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
16858
16859         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
16860         multilibs.
16861
16862 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16863
16864         * doc/c-tree.texi: Use `@.' where appropriate.
16865         * doc/extend.texi: Likewise.
16866         * doc/install.texi: Likewise.
16867         * doc/invoke.texi: Likewise.
16868         * doc/loop.texi: Likewise.
16869         * doc/makefile.texi: Likewise.
16870         * doc/md.texi: Likewise.
16871         * doc/passes.texi: Likewise.
16872         * doc/standards.texi: Likewise.
16873         * doc/tm.texi: Likewise.
16874
16875 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
16876
16877         PR middle-end/35196
16878         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
16879         in entry_bb.
16880         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
16881         rather than in entry_bb.
16882
16883 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
16884
16885         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
16886         libgcc_cmp_return mode.
16887
16888 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
16889
16890         PR middle-end/35130
16891         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
16892         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
16893
16894 2008-02-15  Richard Guenther  <rguenther@suse.de>
16895             Zdenek Dvorak  <ook@ucw.cz>
16896
16897         PR tree-optimization/35164
16898         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
16899         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
16900         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
16901         Only propagate addresses which do not have abnormal SSA_NAMEs
16902         in their operands.
16903
16904 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
16905
16906         PR target/35088
16907         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
16908
16909 2008-02-15  Jan Hubicka  <jh@suse.cz>
16910
16911         PR middle-end/35149
16912         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
16913
16914 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
16915
16916         PR middle-end/34621
16917         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
16918         when calculating alignment_pad.
16919
16920 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
16921
16922         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
16923         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
16924         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
16925         and STACK_BOUNDARY define.
16926
16927 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
16928
16929         PR preprocessor/35061
16930         * c-pragma.c (handle_pragma_pop_macro): Check that
16931         pushed_macro_table has been allocated.
16932
16933 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
16934
16935         PR middle-end/35136
16936         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
16937         (force_gimple_operand): Likewise.
16938         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
16939         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
16940         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
16941         (find_interesting_uses_address): Check addressability and alignment
16942         of the base expression only after substituting bases of IVs into it.
16943
16944 2008-02-14  Michael Matz  <matz@suse.de>
16945
16946         PR target/34930
16947         * function.c (instantiate_virtual_regs_in_insn): Reload address
16948         before falling back to reloading the whole operand.
16949
16950 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
16951
16952         * config/s390/s390.c (s390_mainpool_start): Emit the pool
16953         before the first section switch note.
16954
16955 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16956
16957         * doc/bugreport.texi: Update copyright years.
16958         * doc/c-tree.texi: Likewise.
16959         * doc/cfg.texi: Likewise.
16960         * doc/cpp.texi: Likewise.
16961         * doc/cppinternals.texi: Likewise.
16962         * doc/fragments.texi: Likewise.
16963         * doc/frontends.texi: Likewise.
16964         * doc/gcc.texi: Likewise.
16965         * doc/gty.texi: Likewise.
16966         * doc/hostconfig.texi: Likewise.
16967         * doc/implement-c.texi: Likewise.
16968         * doc/libgcc.texi: Likewise.
16969         * doc/loop.texi: Likewise.
16970         * doc/makefile.texi: Likewise.
16971         * doc/options.texi: Likewise.
16972         * doc/passes.texi: Likewise.
16973         * doc/rtl.texi: Likewise.
16974         * doc/sourcebuild.texi: Likewise.
16975         * doc/standards.texi: Likewise.
16976         * doc/tree-ssa.texi: Likewise.
16977         * doc/trouble.texi: Likewise.
16978
16979         * doc/extend.texi: Use @: or add comma where appropriate.
16980         * doc/invoke.texi: Likewise.
16981         * doc/tm.texi: Likewise.
16982
16983 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
16984
16985         PR target/34393
16986         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
16987         to a reg.
16988
16989 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
16990
16991         * doc/md.texi (clz, ctz): Add reference.
16992         * doc/rtl.texi (clz, ctz): Likewise.
16993
16994 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16995
16996         PR other/35148
16997         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
16998         srcdir.
16999
17000 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
17001
17002         * config/s390/s390.c (struct constant_pool): New field
17003         emit_pool_after added.
17004         (s390_mainpool_start): Set the emit_pool_after flag according
17005         to the section switch notes.
17006         (s390_mainpool_finish): Consider emit_pool_after when emitting
17007         the literal pool at the end of the function.
17008         (s390_chunkify_start): Force literal pool splits at section
17009         switch notes.
17010
17011 2008-02-13  Michael Matz  <matz@suse.de>
17012
17013         PR debug/35065
17014         * var-tracking.c (clobber_variable_part): Correctly traverse the
17015         list.
17016
17017 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17018
17019         PR 29673
17020         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
17021         Add -fdump-ipa-inline.
17022         * tree-dump.c (dump_files): Remove tree-inlined dump.
17023         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
17024
17025 2008-02-12  Richard Guenther  <rguenther@suse.de>
17026
17027         PR tree-optimization/35171
17028         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
17029         default defs.
17030
17031 2008-02-12  Richard Guenther  <rguenther@suse.de>
17032
17033         PR middle-end/35163
17034         * fold-const.c (fold_widened_comparison): Use get_unwidened in
17035         value-preserving mode.  Disallow final truncation.
17036
17037 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
17038
17039         PR middle-end/35136
17040         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
17041         code from here to...
17042         (force_gimple_operand): ...here.
17043
17044 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
17045
17046         PR c++/35144
17047         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
17048         non-compatible pointers.
17049         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
17050         different FIELD_DECLs, try harder by comparing field offsets, sizes
17051         and types.
17052
17053         PR inline-asm/35160
17054         * function.c (match_asm_constraints_1): Don't replace the same input
17055         multiple times.
17056
17057 2008-02-12  Anatoly Sokolov <aesok@post.ru>
17058
17059         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
17060         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
17061         (expand_epilogue): Restore RAMPZ register.
17062         * config/avr/avr.md (RAMPZ_ADDR): New constant.
17063
17064 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
17065
17066         * config/i386/cygwin.asm: (__alloca): Correct calling
17067         convention and alignment.
17068         (__chkstk): Force 8 byte stack alignment.
17069
17070 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
17071             Richard Guenther  <rguenther@suse.de>
17072
17073         PR tree-optimization/33992
17074         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
17075         the zero we compare against.
17076
17077 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
17078
17079         PR libfortran/35063
17080         * gthr-win32.h (__gthread_mutex_destroy_function): New function
17081         to CloseHandle after unlocking to prevent accumulation of handle
17082         count.
17083
17084 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17085
17086         PR middle_end/34150
17087         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
17088         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
17089         and update LABEL_NUSES during and after reload.
17090
17091 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
17092
17093         PR middle-end/34627
17094         * combine.c (simplify_if_then_else): Make sure the comparison is
17095         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
17096
17097 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
17098
17099         PR bootstrap/35051
17100         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
17101         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
17102         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
17103         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
17104         * tree.h (get_type_static_bounds): Likewise.
17105
17106 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17107
17108         * doc/invoke.texi (Option Summary, C++ Dialect Options)
17109         (Objective-C and Objective-C++ Dialect Options, Warning Options):
17110         Make -Wfoo language annotations match what the compiler outputs.
17111
17112 2008-02-08  Sa Liu  <saliu@de.ibm.com>
17113
17114         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
17115         intrinsics spu_convts, spu_convtu, spu_convtf.
17116
17117 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
17118
17119         * doc/extend.texi (Function Attributes) <noinline>: Mention
17120         asm ("") as method to keep calls.
17121
17122 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17123
17124         PR other/32754
17125         * doc/options.texi (Options): Replace references to opts.sh with
17126         optc-gen.awk.
17127         * opts-common.c: Likewise.
17128         * optc-gen.awk: Likewise.
17129
17130 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
17131
17132         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
17133
17134 2008-02-07  Richard Henderson  <rth@redhat.com>
17135
17136         PR rtl-opt/33410
17137         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
17138         EXPR_LIST for the REG_EQUAL instead of a comparison with a
17139         funny mode.
17140
17141 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
17142
17143         PR tree-optimization/35085
17144         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
17145         for operand entry oe2 in addition to operand entry oe3 in order to
17146         expose more opportunities for vectorizer sum reduction.
17147
17148 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17149
17150         PR other/35107
17151         * Makefile.in (LIBS): Remove $(GMPLIBS).
17152         (cc1-dummy, cc1): Add $(GMPLIBS).
17153
17154 2008-02-06  Jan Hubicka  <jh@suse.cz>
17155
17156         PR target/23322
17157         * i386.md (moddf_integer): Do not produce partial memory stalls for
17158         targets where it hurts.
17159
17160 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
17161
17162         PR target/35083
17163         * optabs.c (expand_float): Do not check for decimal modes when
17164         expanding unsigned integer through signed conversion.
17165
17166 2008-02-06  Nick Clifton  <nickc@redhat.com>
17167
17168         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
17169         inside the clobber with a match_operand and duplicated operand
17170         number in the constraint.
17171         (ineqbranchsi): Delete redundant comment.
17172
17173 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
17174
17175         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
17176         builtin_define ("__USE_INIT_FINI__").
17177         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
17178         -msx multilibs.
17179         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
17180
17181 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17182
17183         PR documentation/30330
17184         * doc/invoke.texi (C++ Dialect Options)
17185         (Objective-C and Objective-C++ Dialect Options, Warning Options):
17186         For each warning option -Wfoo that allows -Wno-foo, ensure both
17187         -Wfoo and -Wno-foo are listed in the option index.  Fix index
17188         entry of -Wswitch-default, index -Wnormalized= including the
17189         `=', and -Wlarger-than-@var{len} including @var{len}.
17190
17191 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
17192
17193         * config/i386/i386.md (floatunssisf2): Use
17194         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
17195         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
17196         Macroize expander using MODEF mode iterator.
17197
17198 2008-02-05  Diego Novillo  <dnovillo@google.com>
17199
17200         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
17201
17202         PR 33738
17203         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
17204
17205 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17206
17207         PR other/35070
17208         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
17209
17210 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
17211
17212         PR target/35084
17213         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
17214         to indicate if a message should be generated.
17215         (init_cumulative_args): Updated.
17216         (function_value_32): Likewise.
17217
17218 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
17219
17220         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
17221
17222 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
17223
17224         PR target/35083
17225         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
17226         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
17227
17228 2008-02-04  Diego Novillo  <dnovillo@google.com>
17229
17230         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
17231
17232         PR 33738
17233         * tree-vrp.c (vrp_evaluate_conditional): With
17234         -Wtype-limits, emit a warning when comparing against a
17235         constant outside the natural range of OP0's type.
17236
17237 2008-02-04  Richard Guenther  <rguenther@suse.de>
17238
17239         PR middle-end/33631
17240         * expr.c (count_type_elements): Give for unions instead of
17241         guessing.
17242
17243 2008-02-04  Richard Guenther  <rguenther@suse.de>
17244
17245         PR middle-end/35043
17246         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
17247         to TYPE_DOMAINs base type instead of using bitsizetype here.
17248
17249 2008-02-03  Jason Merrill  <jason@redhat.com>
17250
17251         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
17252
17253 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17254
17255         PR other/29972
17256         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
17257         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
17258         (RS/6000 and PowerPC Options): Fix typos and markup.
17259         * doc/passes.texi (Tree-SSA passes): Likewise.
17260
17261 2008-02-02  Michael Matz  <matz@suse.de>
17262
17263         PR target/35045
17264         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
17265         from record_last_reg_set_info.
17266         (record_last_reg_set_info): Take an RTX argument, iterate over all
17267         constituent hardregs.
17268         (record_last_set_info, record_opr_changes): Change calls to
17269         new signature or to record_last_reg_set_info_regno.
17270
17271 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
17272
17273         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
17274
17275 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
17276
17277         PR rtl-optimization/34773
17278         * reg-notes.def (EQUAL): Mention significance of combination of
17279         REG_EQUAL and REG_RETVAL.
17280         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
17281         insn that has a REG_RETVAL.
17282
17283 2008-02-01  Roger Sayle  <roger@eyesopen.com>
17284
17285         PR bootstrap/33781
17286         * configure.ac (--enable-fixed-point): Disable unless explicitly
17287         requested on IRIX.
17288         * configure: Regenerate.
17289
17290 2008-02-01  Richard Guenther  <rguenther@suse.de>
17291
17292         PR other/35042
17293         * invoke.texi (-finline-limit): Remove no longer true parts
17294         of the documentation.  Note that there is no default value.
17295
17296 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
17297             Mark Mitchell  <mark@codesourcery.com>
17298             Ben Elliston  <bje@au.ibm.com>
17299
17300         PR c/29326
17301         * doc/extend.texi (Other Builtins): Document.
17302
17303 2008-01-31  Tom Browder <tom.browder@gmail.com>
17304
17305         * doc/c-tree.texi (Types): Fix grammar.
17306         (Expression trees): Ditto.
17307         * doc/passes.texi (Tree-SSA passes): Ditto.
17308
17309         * doc/configterms.texi (Configure Terms): Fix typo.
17310         * doc/cpp.texi (Common Predefined Macros): Ditto.
17311         * doc/md.texi (Machine Constraints): Ditto.
17312
17313         * doc/makefile.texi (Makefile): Add comma.
17314
17315 2008-01-31  Tom Browder  <tom.browder@gmail.com>
17316             Gerald Pfeifer  <gerald@pfeifer.com>
17317
17318         * doc/sourcebuild.texi (Front End): Remove references to CVS
17319         and CVSROOT/modules.
17320         (Texinfo Manuals): Replace reference to CVS by one to SVN.
17321         (Back End): Remove reference to CVS.
17322
17323 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
17324
17325         PR target/34900
17326         * config/mips/mips.c (gen_load_const_gp): New function, taking a
17327         comment from...
17328         (mips16_gp_pseudo_reg): ...here.
17329         * config/mips/mips.md (load_const_gp): Replace with...
17330         (load_const_gp_<mode>): ...this :P-based insn.
17331
17332 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17333
17334         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
17335         options. Minor fixes.
17336         (-std): Move reference to standards closer to where language
17337         standards are first mentioned.
17338
17339 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
17340
17341         PR rtl-optimization/34995
17342         * reload.c (alternative_allows_const_pool_ref): Take an rtx
17343         parameter and return a bool.  If the rtx parameter is nonnull,
17344         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
17345         (find_reloads): Update call accordingly.  Pass the new operand
17346         if it needed no address reloads, otherwise pass null.
17347
17348 2008-01-30  Richard Henderson  <rth@redhat.com>
17349
17350         PR c/34993
17351         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
17352         for unbounded arrays.
17353
17354 2008-01-30  Silvius Rus  <rus@google.com>
17355
17356         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
17357
17358 2008-01-30  Jan Hubicka  <jh@suse.cz>
17359
17360         PR target/34982
17361         * i386.c (init_cumulative_args): Use real function declaration when
17362         calling locally.
17363
17364 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
17365
17366         PR rtl-optimization/34998
17367         * global.c (build_insn_chain): Treat non-subreg_lowpart
17368         SUBREGs of pseudos as clobbering all the words covered by the
17369         SUBREG, not just all the bytes.
17370         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
17371         original df_ref rather than an extract parameter.
17372         (global_conflicts): Update call accordingly.
17373
17374 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
17375
17376         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
17377         the overflow check to make it easier to read.
17378         (__fixtfdi): Change the type of the ll member in union
17379         long_double to UDItype_x.
17380
17381 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
17382
17383         PR middle-end/34969
17384         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
17385         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
17386         * tree-inline.c (fold_marked_statements): Call
17387         cgraph_update_edges_for_call_stmt if folding a call statement.
17388         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
17389         debug_generic_stmt calls, reset it back afterwards.
17390
17391         PR c/35017
17392         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
17393         static decls.
17394         * c-typeck.c (build_external_ref): Don't pedwarn about
17395         static vars in current function's scope.
17396
17397 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
17398
17399         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
17400
17401 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
17402
17403         PR c/35002
17404         * ipa-struct-reorg.c: Fix spelling.
17405         * params.def: Ditto.
17406
17407 2008-01-29  Richard Guenther  <rguenther@suse.de>
17408
17409         PR middle-end/35006
17410         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
17411         field.
17412         * tree-inline.c (remap_type): Increment remapping_type_depth
17413         around remapping types.
17414         (copy_body_r): Only add referenced variables if they are referenced
17415         from code, not types.
17416
17417 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
17418
17419         PR c++/34055
17420         PR c++/34103
17421         PR c++/34219
17422         PR c++/34606
17423         PR c++/34753
17424         PR c++/34754
17425         PR c++/34755
17426         PR c++/34919
17427         PR c++/34961
17428         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
17429         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
17430
17431 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
17432
17433         PR target/34412
17434         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
17435         pointer for tiny stack.
17436
17437 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
17438
17439         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
17440
17441 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
17442
17443         * config/vx-common.h: Fix typo in comment.
17444
17445 2008-01-28  Ian Lance Taylor  <iant@google.com>
17446
17447         PR c++/34862
17448         PR c++/33407
17449         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
17450         coalesce pointers if they have different DECL_NO_TBAA_P values.
17451         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
17452         between variables with different DECL_NO_TBAA_P values.
17453
17454 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
17455
17456         PR 31535
17457         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
17458         are not legitimate small data references on SPE targets.
17459
17460 2008-01-28  David Daney  <ddaney@avtrex.com>
17461
17462         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
17463
17464 2008-01-28  David Daney  <ddaney@avtrex.com>
17465
17466         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
17467
17468 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
17469
17470         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
17471         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
17472         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
17473         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
17474         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
17475         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
17476         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
17477         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
17478
17479 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
17480
17481         * basic-block.h (condjump_equiv_p): Fix comment.
17482
17483 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
17484
17485         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
17486         print_generic_stmt_indented): Fix comment.
17487
17488 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
17489
17490         * configure.ac (__stack_chk_fail): Add detecion for availability
17491         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
17492         * configure: Regenerate.
17493
17494 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
17495
17496         PR middle-end/34688
17497         * final.c (output_addr_const): Handle TRUNCATE.
17498
17499 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
17500
17501         PR target/34711
17502         * tree-ssa-loop-ivopts.c (comp_cost): New type.
17503         (zero_cost, infinite_cost): New constants.
17504         (struct cost_pair): Change type of cost to comp_cost.
17505         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
17506         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
17507         New functions.
17508         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
17509         split_address_cost, ptr_difference_cost, difference_cost,
17510         get_computation_cost_at, get_computation_cost,
17511         determine_use_iv_cost_generic, determine_use_iv_cost_address,
17512         determine_use_iv_cost_condition, determine_use_iv_costs,
17513         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
17514         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
17515         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
17516         Change type of cost to comp_cost.
17517         (determine_iv_cost): Increase cost of non-original ivs, instead
17518         of decreasing the cost of original ones.
17519         (get_address_cost): Indicate the complexity of the addressing mode
17520         in comp_cost.
17521         (try_add_cand_for): Prefer using ivs not specific to some object.
17522         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
17523
17524 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
17525             Janis Johnson  <janis187@us.ibm.com>
17526
17527         PR target/34814
17528         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
17529         (TARGET_INSTANTIATE_DECLS): Likewise.
17530         * target.h (expand_to_rtl_hook): New target hook.
17531         (instantiate_decls): Likewise.
17532         * function.c (instantiate_decl): Make non-static.  Rename to...
17533         (instantiate_decl_rtl): ... this.
17534         (instantiate_expr): Use instantiate_decl_rtl.
17535         (instantiate_decls_1): Likewise.
17536         (instantiate_decls): Likewise.
17537         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
17538         * function.h (instantiate_decl_rtl): Add prototype.
17539         * cfgexpand.c (target.h): New include.
17540         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
17541         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
17542         (TARGET_INSTANTIATE_DECLS): Likewise.
17543         (TARGET_INITIALIZER): New target hooks added.
17544         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
17545         New prototype.
17546         * config/rs6000/rs6000.c (tree-flow.h): New include.
17547         (machine_function): Add sdmode_stack_slot field.
17548         (rs6000_alloc_sdmode_stack_slot): New function.
17549         (rs6000_instantiate_decls): Likewise.
17550         (rs6000_secondary_memory_needed_rtx): Likewise.
17551         (rs6000_check_sdmode): Likewise.
17552         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
17553         (TARGET_INSTANTIATE_DECLS): Likewise.
17554         (rs6000_hard_regno_mode_ok): Allow SDmode.
17555         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
17556         (rs6000_emit_move): Handle SDmode.
17557         (function_arg_advance): Likewise.
17558         (function_arg): Likewise.
17559         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
17560         SDmode var args for 32-bit compiles.
17561         (rs6000_secondary_reload_class): Handle SDmode.
17562         (rs6000_output_function_epilogue): Likewise.
17563         (rs6000_function_value): Simplify if statement.
17564         (rs6000_libcall_value): Likewise.
17565         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
17566         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
17567         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
17568         (movsd_hardfloat): New define_insn.
17569         (movsd_softfloat): Likewise.
17570         (movsd_store): Likewise.
17571         (movsd_load): Likewise.
17572         (extendsddd2): Likewise.
17573         (extendsdtd2): Likewise.
17574         (truncddsd2): Likewise.
17575         (movdd_hardfloat64): Fixup comment.
17576         (UNSPEC_MOVSD_LOAD): New constant.
17577         (UNSPEC_MOVSD_STORE): Likewise.
17578
17579 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
17580
17581         PR c++/34965
17582         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
17583         TRUTH_XOR_EXPR.
17584         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
17585         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
17586         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
17587         and TRUTH_XOR_EXPR.
17588
17589 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
17590
17591         PR target/34794
17592         * config.gcc: Separate AIX 5.3 from AIX 6.1.
17593         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
17594         __LONGDOUBLE128 too.
17595         * config/rs6000/aix61.h: New file.
17596
17597 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
17598
17599         PR rtl-optimization/34959
17600         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
17601         popcount and parity rtxes the same mode as their operand.
17602         Truncate or extend the result to the return value's mode
17603         if necessary.
17604
17605 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
17606
17607         PR target/34981
17608         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
17609         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
17610         to GOT_VERSION_REGNUM.
17611         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
17612         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
17613         * config/mips/mips.c (mips_emit_call_insn): New function.
17614         (mips_call_tls_get_addr): Call mips_expand_call directly.
17615         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
17616         emit_call_insn.
17617         (mips16_build_call_stub): Likewise.  Return the call insn or null.
17618         (mips_expand_call): Update the call to mips16_build_call_stub
17619         accordingly and a remove redundant condition.  Assert that MIPS16
17620         stubs do not use lazy binding.  Use mips_emit_call_insn and return
17621         the call insn.
17622         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
17623         TARGET_USE_GOT.
17624         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
17625         (mips_avoid_hazard): Remove hazard_set handling.
17626         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
17627         (UNSPEC_RESTORE_GP): ...this.
17628         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
17629         (FAKE_CALL_REGNO): Rename to...
17630         (GOT_VERSION_REGNUM): ...this.
17631         (type): Add "ghost" value.  Add an associated insn reservation.
17632         (hazard_set): Remove.
17633         (exception_receiver): Rename to...
17634         (restore_gp): ...this and update the unspec identifier accordingly.
17635         (exception_receiver, nonlocal_got_receiver): New expanders.
17636         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
17637         FAKE_CALL_REGNO.  Remove hazard_set attribute.
17638         (set_got_version, update_got_version): New patterns.
17639
17640 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
17641
17642         PR target/34970
17643         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
17644
17645 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
17646
17647         PR other/31955
17648         * doc/install.texi2html: Generate gcc-vers.texi.
17649
17650 2008-01-25  DJ Delorie  <dj@redhat.com>
17651
17652         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
17653
17654 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
17655
17656         * config/c4x: Remove directory.
17657         * config.gcc (crx-*, mt-*): Mark obsolete.
17658         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
17659         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
17660         sh-*-rtemscoff*): Remove cases.
17661         * defaults.h (C4X_FLOAT_FORMAT): Remove.
17662         * real.c (encode_c4x_single, decode_c4x_single,
17663         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
17664         c4x_extended_format): Remove.
17665         * real.h (c4x_single_format, c4x_extended_format): Remove.
17666         * doc/extend.texi (interrupt, naked): Remove mention of attributes
17667         on C4x.
17668         (Pragmas): Remove comment about c4x pragmas.
17669         * doc/install.texi (c4x): Remove target-specific instructions.
17670         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
17671         * doc/md.texi (Machine Constraints): Remove C4x documentation.
17672         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
17673         refer to C4x source files as examples.
17674         (C4X_FLOAT_FORMAT): Remove documentation.
17675
17676 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
17677
17678         * config/bfin/bfin.c (override_options): Reorder tests so that
17679         flag_pic gets enabled for -msep-data.
17680
17681 2008-01-25  Richard Guenther  <rguenther@suse.de>
17682
17683         PR middle-end/32244
17684         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
17685         to its bitfield precision if required.
17686
17687 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
17688
17689         PR middle-end/33880
17690         * tree-nested.c (walk_omp_for): New function.
17691         (convert_nonlocal_reference, convert_local_reference): Call
17692         walk_omp_for on OMP_FOR.
17693         (convert_call_expr): Call walk_body on OMP_FOR's
17694         OMP_FOR_PRE_INIT_BODY.
17695
17696 2008-01-25  Richard Guenther  <rguenther@suse.de>
17697
17698         PR tree-optimization/34966
17699         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
17700         default defs and PHI_NODEs we have to insert after the
17701         defining statement.
17702
17703 2008-01-24  Nick Clifton  <nickc@redhat.com>
17704
17705         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
17706         Provide a default definition.
17707         (LIBGCC2_UNITS_PER_WORD): Likewise.
17708
17709         * config/stormy16/stormy16.c: Include df.h for the prototype
17710         for df_regs_ever_live_p.
17711         (xstormy16_expand_builtin_va_start): Convert the stack offset
17712         into a component_ref and then use POINTER_PLUS_EXPR to add it
17713         to the incoming_virtual_args_rtx.
17714         (xstormy16_gimplify_va_arg_expr): Rename to
17715         xstormy16_gimplify_va_arg_expr.
17716         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
17717         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
17718         xstormy16_gimplify_va_arg_expr.
17719         Fix up some formatting issues.
17720
17721         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
17722         Move to predicates.md.
17723         (xs_hi_general_operand): Likewise.
17724         (xs_hi_nonmemory_operand): Likewise.
17725         * config/stormy16/predicates.md:
17726         (xstormy16_carry_plus_operand): New predicate.
17727         (xs_hi_general_operand): New predicate.
17728         (xs_hi_nonmemory_operand): New predicate.
17729         * config/stormy16/stormy16-protos.h:
17730         (xstormy16_carry_plus_operand): Delete prototype.
17731         (xs_hi_general_operand): Likewise.
17732         (xs_hi_nonmemory_operand): Likewise.
17733
17734         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
17735         modifiers as they are no longer needed and they can trigger
17736         reload spill failures.
17737
17738         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
17739         with a match_operand in order to help reload.
17740
17741         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
17742         constraint with 'e' for the 8th alternative as this version of
17743         the mov.w instruction only accepts the lower 8 registers.
17744
17745 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
17746
17747         PR target/34856
17748         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
17749         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
17750         vector elements.
17751
17752 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
17753
17754         PR middle-end/33333
17755         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
17756
17757 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
17758
17759         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
17760         New functions.
17761         (remove_structure): Update allocations list before removing structure.
17762
17763 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
17764
17765         * ipa-struct-reorg.c (is_safe_cond_expr,
17766         create_new_stmts_for_cond_expr): Use integer_zerop function,
17767         that recognize not only zero-pointer, but zero-integer too.
17768
17769 2008-01-25  Ben Elliston  <bje@au.ibm.com>
17770
17771         PR other/22232
17772         * fixproto: Escape "." in sed expression that strips leading "./".
17773
17774 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
17775
17776         PR driver/34904
17777         * gcc.c (SWITCH_OK): Removed.
17778         (SWITCH_LIVE): Changed to bit.
17779         (SWITCH_FALSE): Likewise.
17780         (SWITCH_IGNORE): Likewise.
17781         (switchstr): Change live_cond to unsigned int.
17782         (process_command): Replace SWITCH_OK with 0.
17783         (do_self_spec): Likewise.
17784         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
17785         (give_switch): Likewise.
17786         (used_arg): Likewise.
17787         (do_spec_1): Set the SWITCH_IGNORE bit.
17788         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
17789         bits.  Set the SWITCH_LIVE bit.
17790
17791 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
17792
17793         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
17794
17795 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
17796
17797         PR tree-optimization/34472
17798         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
17799         parameter to a "bool *" and set *DATA to false if there is
17800         an unsafe access.  Do not delete the structure here.
17801         (check_cond_exprs): Delete it here instead.
17802         (check_cond_exprs, exclude_cold_structs): Do not increase
17803         I when removing a structure.
17804
17805 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
17806
17807         PR target/34856
17808         * config/i386/i386.c (ix86_expand_vector_init): Consider only
17809         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
17810
17811 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
17812
17813         PR middle-end/34934
17814         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
17815         a fixed vector for stack.
17816
17817 2008-01-24  Ben Elliston  <bje@au.ibm.com>
17818
17819         PR c++/25701
17820         * doc/gcc.texi (Software development): Add a direntry for g++.
17821
17822 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
17823
17824         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
17825         stale and straggling -fforce-addr comments above.
17826
17827         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
17828         define.
17829         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
17830         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
17831
17832 2008-01-23  Michael Matz  <matz@suse.de>
17833
17834         PR debug/34895
17835         * dwarf2out.c (force_type_die): Use modified_type_die instead of
17836         gen_type_die.
17837
17838 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
17839
17840         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
17841         malloc result type.
17842
17843 2008-01-23 Anatoly Sokolov <aesok@post.ru>
17844
17845         * config/avr/avr.c (avr_current_arch): New variable.
17846         (avr_arch_types): Add 'avr31' and 'avr51' entries.
17847         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
17848         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
17849         (avr_override_options): Init 'avr_current_arch'.
17850         (base_arch_s): Move from here...
17851         * config/avr/avr.h (base_arch_s): ... here. Add new members
17852         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
17853         'mega' to 'have_jmp_call'.
17854         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
17855         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
17856         macros.
17857         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
17858         architectures.
17859         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
17860         MULTILIB_MATCHES): Ditto.
17861
17862 2008-01-23  Richard Guenther  <rguenther@suse.de>
17863
17864         PR middle-end/31529
17865         * cgraphunit.c (cgraph_reset_node): Always mark the node
17866         not reachable if it is not queued already.
17867
17868 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
17869
17870         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
17871         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
17872         (cputype_selected): New static variable.
17873         (bfin_handle_option): Set it if -mcpu is used.
17874         (override_option): Select default set of workarounds if no cpu type
17875         selected on the command line.
17876         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
17877
17878         From  Michael Frysinger  <michael.frysinger@analog.com>
17879         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
17880         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
17881
17882         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
17883         for bf547, bf523, bf524, and bf526.
17884         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
17885         bf526.
17886         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
17887         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
17888         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
17889         __ADSPBF547__ and __ADSPBF54x__ for bf547.
17890         * doc/invoke.texi (Blackfin Options): Document that
17891         -mcpu now accept bf547, bf523, bf524, and bf526.
17892
17893 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
17894
17895         PR rtl-optimization/34628
17896         * combine.c (try_combine): Stop and undo after the first combination
17897         if an autoincrement side-effect on the first insn has effectively
17898         been lost.
17899
17900 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
17901
17902         PR target/34529
17903         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
17904         Offset addresses are not valid for Altivec or paired float modes.
17905
17906 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
17907
17908         PR c++/34607
17909         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
17910         if DECL_INITIAL (decl) is error_mark_node.
17911
17912         PR c++/34914
17913         * c-common.c (handle_vector_size_attribute): Only allow
17914         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
17915         the same way as pointer, array etc. types.
17916         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
17917
17918         PR c++/34917
17919         * tree.c (build_type_attribute_qual_variant): Call
17920         build_qualified_type if attributes are equal, but quals are not.
17921
17922 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17923
17924         PR 32102
17925         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
17926         * flags.h (warn_strict_aliasing): Remove.
17927         (warn_strict_overflow): Remove.
17928         * opts.c (warn_strict_aliasing): Remove.
17929         (warn_strict_overflow): Remove.
17930         * c-opts.c (c_common_handle_option): -Wall only sets
17931         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
17932         (c_common_post_options): Give default values to -Wstrict-aliasing
17933         and -Wstrict-overflow if they are uninitialized.
17934         * common.opt (Wstrict-aliasing): Specify Var and Init.
17935         (Wstrict-overflow): Likewise.
17936
17937 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
17938
17939         PR rtl-optimization/26854
17940         PR rtl-optimization/34400
17941         PR rtl-optimization/34884
17942         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
17943         DF_RD->gen.
17944         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
17945         (df_rd_bb_info.expanded_lr_out): Deleted
17946         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
17947         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
17948         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
17949         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
17950         Removed code to allocate, initialize or free expanded_lr_out.
17951         (df_rd_bb_local_compute_process_def): Restructured to make more
17952         understandable.
17953         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
17954         sets if the sets are being trimmed.
17955
17956 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
17957
17958         PR bootstrap/32287
17959         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
17960         (as_vers): Likewise.
17961         * configure: Regenerated.
17962
17963 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17964
17965         PR middle-end/33092
17966         * tree-pass.h (pass_build_alias): New pass.
17967         * tree-ssa-alias.c (gate_build_alias): New.
17968         (pass_build_alias): New.
17969         * passes.c (init_optimization_passes): Add pass_build_alias after
17970         pass_create_structure_vars.
17971
17972 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
17973
17974         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
17975         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
17976         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
17977         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
17978         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
17979         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
17980         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
17981         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
17982         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
17983         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
17984         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
17985         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
17986         * config/s390/s390.md (FP_ALL): New mode iterator.
17987         (_d): New mode attribute.
17988         ("*signbit<mode>2>"): Changed mode of first operand.
17989         ("isinf<mode>2"): Changed mode of first operand.
17990         ("*TDC_insn"): Adaptation for DFP modes.
17991
17992 2008-01-22  Ben Elliston  <bje@au.ibm.com>
17993
17994         * tree.c (check_qualified_type): Improve function description.
17995
17996 2008-01-21  Jason Merrill  <jason@redhat.com>
17997
17998         PR c++/34196
17999         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
18000         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
18001         if it is set.
18002
18003 2008-01-21  DJ Delorie  <dj@redhat.com>
18004
18005         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
18006         return zero.
18007
18008 2008-01-21  Richard Guenther  <rguenther@suse.de>
18009
18010         PR middle-end/34856
18011         * tree-cfg.c (verify_expr): Allow all invariant expressions
18012         instead of just constant class ones as reference argument.
18013         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
18014         like any other constant.
18015         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
18016
18017 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
18018
18019         * regmove.c (fixup_match_1): Update call crossed frequencies.
18020
18021 2008-01-21  Richard Guenther  <rguenther@suse.de>
18022
18023         PR c/34885
18024         * tree-inline.c (setup_one_parameter): Deal with mismatched
18025         types using a VIEW_CONVERT_EXPR.
18026
18027 2008-01-21  Alon Dayan  <alond@il.ibm.com>
18028             Olga Golovanevsky  <olga@il.ibm.com>
18029
18030         PR tree-optimization/34701
18031         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
18032         when the structure size is not a power of 2.
18033
18034 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
18035
18036         * doc/install.texi: Add doc for --enable-checking=df.
18037
18038 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18039
18040         PR rtl-optimization/34808
18041         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
18042
18043 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
18044
18045         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
18046         input.
18047
18048 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
18049
18050         PR rtl-optimization/26854
18051         PR rtl-optimization/34400
18052         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
18053         DF_RD->gen.
18054         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
18055         (df_rd_bb_info.expanded_lr_out): New.
18056         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
18057         * loop_iv.c (iv_analysis_loop_init): Ditto.
18058         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
18059         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
18060         Added code to allocate, initialize or free expanded_lr_out.
18061         (df_rd_bb_local_compute_process_def): Restructured to make
18062         more understandable.
18063         (df_rd_confluence_n): Add code to do nothing with fake edges and
18064         code to no apply invalidate_by_call sets if the sets are being trimmed.
18065         (df_lr_local_finalize): Renamed to df_lr_finalize.
18066         (df_live_local_finalize): Renamed to df_live_finalize.
18067
18068 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
18069
18070         PR target/34831
18071         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
18072         deciding whether to use reciprocal instructions.
18073
18074 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
18075
18076         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
18077         dwarf2out_note_section_used if cold_text_section is NULL.
18078
18079 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
18080
18081         PR gcov-profile/34610
18082         * tree-cfg.c (make_edges): Mark both outgoing edges from
18083         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
18084         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
18085         from OMP_FOR and OMP_CONTINUE outgoing edges.
18086
18087         * tree-profile.c (tree_profiling): Return early if
18088         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
18089         at the end.
18090         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
18091         from cfun to child_cfun.
18092         * function.h (struct function): Add after_tree_profile bit.
18093
18094 2008-01-19 Anatoly Sokolov <aesok@post.ru>
18095
18096         * config/avr/avr.S (_exit): Disable interrupt.
18097
18098 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
18099             Steven Bosscher  <stevenb.gcc@gmail.com>
18100
18101         PR rtl-optimization/26854
18102         PR rtl-optimization/34400
18103         * df-problems.c (df_live_scratch): New scratch bitmap.
18104         (df_live_alloc): Allocate df_live_scratch when doing df_live.
18105         (df_live_reset): Clear the proper bitmaps.
18106         (df_live_bb_local_compute): Only process the artificial defs once
18107         since the order is not important.
18108         (df_live_init): Init the df_live sets only with the variables
18109         found live by df_lr.
18110         (df_live_transfer_function): Use the df_lr sets to prune the
18111         df_live sets as they are being computed.
18112         (df_live_free): Free df_live_scratch.
18113
18114 2008-01-18  Ian Lance Taylor  <iant@google.com>
18115
18116         * common.opt: Add fmerge-debug-strings.
18117         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
18118         flag_merge_debug_strings rather than flag_merge_constants.
18119         * doc/invoke.texi (Option Summary): Mention
18120         -fmerge-debug-strings.
18121         (Debugging Options): Document -fmerge-debug-strings.
18122
18123 2008-01-18  Ian Lance Taylor  <iant@google.com>
18124
18125         PR c++/33407
18126         * tree.h (DECL_IS_OPERATOR_NEW): Define.
18127         (struct tree_function_decl): Add new field operator_new_flag.
18128         * tree-inline.c (expand_call_inline): When inlining a call to
18129         operator new, force the return value to go into a variable, and
18130         set DECL_NO_TBAA_P on that variable.
18131         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
18132
18133 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
18134
18135         PR debug/34484
18136         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
18137         DWARF2_DEBUGGING_INFO.
18138         (dwarf2out_note_section_used): Ditto.  Add prototype.
18139         (have_multiple_function_sections, text_section_used,
18140         cold_text_section_used, *cold_text_sections): Move declarations
18141         before their uses.
18142
18143 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
18144
18145         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
18146         field and add signal_ra.
18147         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
18148         assignments to frame state pc.  Move end of stack check after
18149         MD_FALLBACK_FRAME_STATE_FOR.
18150         (uw_update_context_1): Use frame state signal_regs if set, instead
18151         of checking signal_frame flag.
18152         (uw_update_context): Use frame state signal_ra if set.
18153         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
18154         * config/xtensa/linux-unwind.h: New file.
18155
18156 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
18157
18158         * modulo-sched.c (get_sched_window): Fix comment typo.
18159
18160 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
18161
18162         PR tree-optimization/34648
18163         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
18164
18165 2008-01-17  Anatoly Sokolov <aesok@post.ru>
18166
18167         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
18168         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
18169
18170 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
18171
18172         PR rtl-optimization/34400
18173         * df-core.c (df_worklist_dataflow_overeager,
18174         df_worklist_dataflow_doublequeue): New functions.
18175         (df_worklist_dataflow): Two different worklist solvers.
18176         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
18177         New param.
18178
18179 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
18180
18181         PR testsuite/34821
18182         * doc/invoke.texi: Document the dependence on pthread for fopenmp
18183         and ftree-parallelize-loops.
18184
18185 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
18186
18187         PR rtl-optimization/34826
18188         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
18189
18190 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
18191
18192         * global.c (find_reg): Mark the eh regs as used if necessary.
18193         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
18194         * ra.h (struct allocno): no_eh_reg field added.  Changed
18195         no_stack_reg type to bitfield.
18196
18197 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
18198
18199         * tree.c (substitute_in_expr): Add missing 'break'.
18200
18201 2008-01-17  Richard Guenther  <rguenther@suse.de>
18202
18203         PR tree-optimization/34825
18204         * tree-ssa-math-opts.c (is_division_by): Do not recognize
18205         x / x as division to handle.
18206
18207 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18208
18209         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
18210         "-pthread" is specified.
18211         * pa-hpux11.h (LIB_SPEC): Likewise.
18212
18213 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
18214             Peter Bergner  <bergner@vnet.ibm.com>
18215
18216         PR rtl-optimization/33796
18217         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
18218
18219 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18220
18221         PR libgfortran/34699
18222         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
18223         static links.
18224         * pa-hpux10.h (LINK_SPEC): Likewise.
18225         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
18226
18227 2008-01-16  Richard Guenther  <rguenther@suse.de>
18228
18229         PR middle-end/32628
18230         * fold-const.c (fold_convert_const_int_from_int): Do not
18231         set overflow if that occured only because of a sign extension
18232         change when converting from/to a sizetype with the same
18233         precision and signedness.
18234
18235 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
18236
18237         PR debug/34249
18238         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
18239         location address to the correct place.  Update copyright year.
18240
18241 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
18242
18243         * lambda-code.c (lambda_transform_legal_p): Handle the case of
18244         no dependences in the dependence_relations vector.
18245
18246 2008-01-16  Jan Hubicka  <jh@suse.cz>
18247
18248         PR rtl-optimization/31396
18249         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
18250         * cfg.c (dump_reg_info): Print it.
18251         * regs.h (struct reg_info_t): add freq_calls_crossed.
18252         (REG_FREQ_CALLS_CROSSED): New macro.
18253         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
18254         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
18255         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
18256         regmove_optimize): Update call crossed frequencies.
18257         * local-alloc.c (struct qty): Add freq_calls_crossed.
18258         (alloc_qty): Copute freq_calls_crossed.
18259         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
18260         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
18261         * ra.h (struct allocno): Add freq_calls_crossed.
18262
18263 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
18264
18265         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
18266         libgomp when compiling with ftree-parallelize-loops.
18267         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
18268
18269 2008-01-16  Richard Guenther  <rguenther@suse.de>
18270
18271         PR tree-optimization/34769
18272         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
18273         * tree.c (int_cst_value): Instead make this function more
18274         permissive in what it accepts as valid input.  Document this
18275         function always sign-extends the value.
18276
18277 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
18278             Richard Guenther  <rguenther@suse.de>
18279
18280         PR c/34668
18281         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
18282         (gimple_fold_indirect_ref_rhs): ... this.
18283         (gimple_fold_indirect_ref): New function with foldings
18284         that preserve lvalueness.
18285         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
18286         * tree-flow.h (gimple_fold_indirect_ref): Declare.
18287         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
18288         to fold an INDIRECT_REF, fall back to the old use of
18289         fold_indirect_ref_1.
18290
18291 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
18292
18293         * tree-data-ref.c (subscript_dependence_tester_1): Call
18294         free_conflict_function.
18295         (compute_self_dependence): Same.
18296
18297 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
18298
18299         PR debug/34249
18300         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
18301         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
18302         function global.
18303         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
18304         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
18305         for DWARF2_UNWIND_INFO targets.
18306
18307 2008-01-16  Richard Guenther  <rguenther@suse.de>
18308
18309         PR c/34768
18310         * c-typeck.c (common_pointer_type): Do not merge inconsistent
18311         type qualifiers for function types.
18312
18313 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
18314
18315         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
18316         loop_iterator li from previous commit.
18317
18318 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
18319
18320         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
18321
18322 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
18323
18324         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
18325         (parallelize_loops): Don't parallelize irreducible components.
18326
18327 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18328
18329         PR c++/24924
18330         * c-opts (c_common_post_options): Do not enable CPP
18331         flag_pedantic_errors by default.
18332
18333 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
18334
18335         PR rtl-optimization/31944
18336         * cse.c (remove_pseudo_from_table): New function.
18337         (merge_equiv_classes): Use above function to remove pseudo-registers.
18338         (invalidate): Likewise.
18339
18340 2008-01-13  Richard Guenther  <rguenther@suse.de>
18341
18342         PR middle-end/34601
18343         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
18344         instead of TYPE_MODE to deal with calls from expand_one_error_var.
18345
18346 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
18347
18348         * gcse.c (cprop_jump): Call validate_unshare_change instead of
18349         validate_change to unshare the source of the PC set.
18350
18351 2008-01-12  Jan Hubicka  <jh@suse.cz>
18352
18353         PR middle-end/32135
18354         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
18355         references above array bounds.  This might trigger bounds checks for
18356         pointers to arrays.
18357
18358 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
18359
18360         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
18361         new_replaceable_dependencies.
18362
18363 2008-01-12  Doug Kwan  <dougkwan@google.com>
18364
18365         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
18366         instead of OPT_Wreturn_type in warning due to ignored return type
18367         qualifiers.
18368         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
18369         options included in -Wextra.
18370         * c.opt: New option -Wignored_qualifiers.
18371         * doc/invoke.texi (Warning Options, -Wextra): Add new option
18372         -Wignore_qualifiers.
18373         (-Wignored-qualifiers): Document.
18374         (-Wreturn-type): Remove description of functionality now handled
18375         by -Wignored-qualifiers.
18376
18377 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
18378
18379         PR ada/33788
18380         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
18381         NOP_EXPR if it is between integral types with the same precision.
18382
18383 2008-01-12  Jan Hubicka  <jh@suse.cz>
18384
18385         PR other/28023
18386         * invoke.texi (max-inline-recursive-depth): Fix default value.
18387
18388 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
18389
18390         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
18391         correct type.
18392
18393 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
18394
18395         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
18396
18397 2008-01-11  James E. Wilson  <wilson@specifix.com>
18398
18399         PR target/26015
18400         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
18401
18402 2008-01-11  Anatoly Sokolov <aesok@post.ru>
18403
18404         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
18405         save/restore frame pointer register and don't use 'call-prologues'
18406         optimization in function with "OS_task" attribute.
18407
18408 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
18409
18410         PR middle-end/31309
18411         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
18412         when copying to memory.
18413
18414 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
18415
18416         PR rtl-optimization/30905
18417         * cfgcleanup.c: Include dce.h
18418         (crossjumps_occured): New global variable.
18419         (try_crossjump_bb): Exit loop after finding a fallthru edge.
18420         If something changed, set crossjumps_occured to true.
18421         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
18422         Don't add/remove fake edges to exit here...
18423         (cleanup_cfg): ...but do it here, when crossjumping.
18424         Run a fast DCE when successful crossjumps occured in the latest
18425         iteration of try_optimize_cfg.
18426
18427 2008-01-11  Richard Guenther  <rguenther@suse.de>
18428
18429         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
18430         (struct vn_unary_op_s): Likewise.
18431         (vn_reference_insert): Free old reference on hash collision.
18432
18433 2008-01-10  Raksit Ashok  <raksit@google.com>
18434
18435         PR rtl-optimization/27971
18436         * combine.c (find_split_point): Split PLUS expressions which are
18437         inside a MEM rtx, and whose first operand is complex.
18438
18439 2008-01-10  DJ Delorie  <dj@redhat.com>
18440
18441         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
18442         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
18443         (m32c_hard_regno_ok): Call the underlying function.
18444
18445 2008-01-10  Richard Guenther  <rguenther@suse.de>
18446
18447         PR middle-end/34683
18448         * tree-cfg.c (tree_merge_blocks): Do not go through the
18449         full-blown folding and stmt updating path if we just deal
18450         with virtual operands.
18451         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
18452         test for abnormal SSA_NAMEs.
18453
18454 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
18455
18456         PR middle-end/34641
18457         * reload.c (push_reload): Add assertions.  All constants from
18458         reg_equiv_constant should have been used for replacing the respective
18459         pseudo earlier.
18460         (find_reloads_address): Invoke find_reloads_address_part for
18461         constant taken from the reg_equiv_constant array.
18462
18463 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
18464
18465         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
18466         field (valnum) the first in the struct.  Replace bools with
18467         unit bit fields.
18468
18469 2008-01-10  Richard Guenther  <rguenther@suse.de>
18470
18471         PR tree-optimization/34651
18472         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
18473         types and ordering for masking and converting.
18474
18475 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
18476
18477         PR tree-optimization/34017
18478         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
18479         also for PHI_NODE expressions.
18480
18481 2008-01-09  Jan Hubicka  <jh@suse.cz>
18482
18483         PR tree-optimization/34708
18484         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
18485         based on number of case labels.
18486         (init_inline_once): Remove switch_cost.
18487         * tree-inline.h (eni_weights_d): Remove switch_cost.
18488
18489 2008-01-09  Richard Guenther  <rguenther@suse.de>
18490         Andrew Pinski  <andrew_pinski@playstation.sony.com>
18491
18492         PR middle-end/30132
18493         * gimplify.c (gimplify_cond_expr): Do not create an addressable
18494         temporary if an rvalue is ok or an lvalue is not required.
18495
18496 2008-01-09  Richard Guenther  <rguenther@suse.de>
18497
18498         PR middle-end/34458
18499         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
18500         adjust return type.
18501
18502 2008-01-09  Richard Guenther  <rguenther@suse.de>
18503
18504         PR middle-end/34679
18505         * tree.c (host_integerp): Check for sizetype only if the
18506         type is an integer type.
18507
18508 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
18509
18510         PR debug/26364
18511         * opts.c (decode_options): Disable inlining of functions called
18512         once if not in unit-at-a-time mode.
18513
18514 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
18515
18516         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
18517
18518 2008-01-08  Richard Guenther  <rguenther@suse.de>
18519
18520         PR middle-end/31863
18521         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
18522         out early if the result will be unused.
18523
18524 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
18525
18526         PR target/34709
18527         Revert:
18528
18529         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
18530         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
18531         for TARGET_RECIP.
18532
18533 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
18534
18535         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
18536         for vectorization tuned.
18537
18538 2008-01-08  Richard Guenther  <rguenther@suse.de>
18539
18540         PR tree-optimization/34683
18541         * tree-ssa-operands.c (operand_build_cmp): Export.
18542         * tree-ssa-operands.h (operand_build_cmp): Declare.
18543         * tree-vn.c (vuses_compare): Remove.
18544         (sort_vuses): Use operand_build_cmp.
18545         (sort_vuses_heap): Likewise.
18546         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
18547         to re-use old VEC if available.  Do not sort already sorted VUSEs.
18548         (vdefs_to_vec): Do not sort already sorted VDEFs.
18549
18550 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
18551
18552         PR middle-end/34694
18553         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
18554
18555 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
18556
18557         PR target/34702
18558         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
18559         limitations of reciprocal sequences on x86 targets.
18560
18561 2008-01-08  Richard Guenther  <rguenther@suse.de>
18562
18563         PR tree-optimization/34683
18564         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
18565
18566 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
18567
18568         PR target/34622
18569         * config/darwin.c (darwin_mergeable_string_section): Don't use
18570         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
18571
18572 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
18573
18574         PR target/34682
18575         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
18576         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
18577         predicates of op0 and op1 to register_operand.
18578         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
18579         expander using X87MODEF mode iterator.  Change predicates of
18580         op0 and op1 to register_operand.
18581         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
18582         corresponding patterns and macroize using MODEF macro.  Change
18583         predicates of op0 and op1 to register_operand and remove
18584         "m" constraint. Disparage "r" alternative with "!".
18585         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
18586         macroize using X87MODEF macro.  Change predicates of op0 and op1
18587         to register_operand and remove "m" constraint.  Disparage "r"
18588         alternative with "!".
18589         (absneg splitter with memory operands): Remove.
18590         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
18591         patterns and macroize using X87MODEF mode iterator.
18592         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
18593         Change predicate of op1 to register_operand.
18594         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
18595         for memory operands.
18596
18597 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
18598
18599         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
18600
18601 2008-01-07  Richard Guenther  <rguenther@suse.de>
18602
18603         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
18604         fields.
18605
18606 2008-01-07  Richard Guenther  <rguenther@suse.de>
18607
18608         PR tree-optimization/34683
18609         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
18610         VOPs of the needed size to save memory.  Use VEC_quick_push
18611         to save compile-time.
18612         (vdefs_to_vec): Likewise.
18613
18614 2008-01-07  Sa Liu  <saliu@de.ibm.com>
18615
18616         * config/spu/spu.md (divdf3): Genetate inline code for double
18617         division.  The implementation doesn't handle INF or NAN, therefore it
18618         only applies when -ffinite-math-only is given.
18619
18620 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
18621
18622         PR libstdc++/34680
18623         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
18624         * doc/cpp.texi ([Common Predefined Macros]): Document.
18625
18626 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
18627
18628         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
18629         order to use commutative addition instead of subtraction.
18630
18631 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18632             Mircea Namolaru  <namolaru@il.ibm.com>
18633             Vladimir Yanovsky  <yanov@il.ibm.com>
18634             Revital Eres  <eres@il.ibm.com>
18635
18636         PR tree-optimization/34263
18637         * tree-outof-ssa.c (process_single_block_loop_latch,
18638         contains_tree_r): New functions.
18639         (analyze_edges_for_bb): Call process_single_block_loop_latch
18640         function to empty single-basic-block latch block if possible.
18641
18642 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
18643
18644         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
18645         for TARGET_RECIP.
18646         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
18647
18648 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
18649
18650         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
18651
18652 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
18653
18654         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
18655
18656 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
18657
18658         PR tree-optimization/34618
18659         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
18660         flag from T.
18661
18662 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
18663
18664         PR target/34673
18665         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
18666         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
18667         Update copyright year.
18668
18669         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
18670         Update copyright year.
18671         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
18672         using NR fixup.
18673
18674 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
18675
18676         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
18677         edge does not point to current bb before changing need_assert.
18678
18679 2008-01-04  Richard Guenther  <rguenther@suse.de>
18680
18681         PR middle-end/34029
18682         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
18683         for verifying purposes if they are is_gimple_min_invariant.
18684
18685 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
18686
18687         PR tree-optimization/34448
18688         PR tree-optimization/34465
18689         * gimplify.c (gimplify_init_constructor): Add new parameter
18690         notify_temp_creation.  Use it.
18691         (gimplify_modify_expr_rhs): Take volatiles into account when
18692         optimizing constructors.
18693         Do not optimize constructors if gimplify_init_constructor will dump to
18694         memory.
18695         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
18696         * gcc.c-torture/compile/pr34448.c: New.
18697
18698 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
18699
18700         PR gcov-profile/34609
18701         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
18702         return_slot if result is TREE_ADDRESSABLE.
18703
18704 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
18705
18706         * config/mips/mips.md (sqrt_condition): Tweak comment.
18707         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
18708
18709 2008-01-03  Tom Tromey  <tromey@redhat.com>
18710
18711         PR c/34457
18712         * c-common.c (c_type_hash): Handle VLAs.
18713
18714 2008-01-03  Jan Hubicka  <jh@suse.cz>
18715
18716         PR tree-optimization/31081
18717         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
18718         0 when inlining and not inlining to first basic block.
18719         (remap_decl): When var is initialized to 0, don't set default_def.
18720         (expand_call_inline): Set entry_bb.
18721         * tree-inline.h (copy_body_data): Add entry_bb.
18722
18723 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
18724
18725         PR c++/34619
18726         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
18727         before returning.
18728
18729         PR tree-optimization/29484
18730         * tree-inline.c (inline_forbidden_p_2): New function.
18731         (inline_forbidden_p): Disallow inlining if some static var
18732         has an address of a local LABEL_DECL in its initializer.
18733         * doc/extend.texi (Labels as Values): Document &&foo behaviour
18734         vs. inlining.
18735
18736 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
18737
18738         PR tree-optimization/34635
18739         * tree-data-ref.c (add_other_self_distances): Make sure that the
18740         evolution step is constant.
18741
18742 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
18743
18744         PR middle-end/34608
18745         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
18746
18747 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
18748
18749         * tree-sra.c (scalarize_init): Insert the generate_element_init
18750         statements after the generate_element_zero statements.
18751
18752 2008-01-02  Richard Guenther  <rguenther@suse.de>
18753
18754         PR middle-end/34093
18755         PR middle-end/31976
18756         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
18757         for very large number of operands instead of ICEing.
18758
18759 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
18760
18761         PR target/34013
18762         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
18763         while stack probing.
18764
18765 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
18766
18767         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
18768         in C++0x mode.
18769
18770 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
18771
18772         PR libmudflap/26442
18773         * tree-mudflap.c (mx_register_decls): Guard warning by
18774         !DECL_ARTIFICIAL check.
18775
18776 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
18777
18778         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
18779         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
18780         sse5_perm<mode>): Fix constraints.