OSDN Git Service

28dcaec58ae06eda5e63a815e2e8351ae4e3e2ee
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-05-24  Ollie Wild  <aaw@google.com>
2
3         * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
4         description.
5
6 2007-05-24  Richard Sandiford  <rsandifo@nildram.co.uk>
7
8         * postreload-gcse.c (reg_changed_after_insn_p): New function.
9         (oprs_unchanged_p): Use it to check all registers in a REG.
10         (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
11         (reg_set_between_after_reload_p): Delete.
12         (reg_used_between_after_reload_p): Likewise.
13         (reg_set_or_used_since_bb_start): Likewise.
14         (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
15         and reg_used_between_p instead of reg_set_or_used_since_bb_start.
16         Use reg_set_between_p instead of reg_set_between_after_reload_p.
17         * rtlanal.c (reg_set_p): Check whether REG overlaps
18         regs_invalidated_by_call, rather than just checking the
19         membership of REGNO (REG).
20
21 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
22
23         * doc/passes.texi: Document predictive commoning.
24         * doc/invoke.texi (-fpredictive-commoning): Document.
25         * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
26         * tree-ssa-loop-im.c (get_lsm_tmp_name): Export.  Allow
27         adding indices to the generated name.
28         (schedule_sm): Pass 0 to get_lsm_tmp_name.
29         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
30         * tree-pretty-print.c (op_symbol_1): Renamed to ...
31         (op_symbol_code): ... and exported.
32         (dump_omp_clause, op_symbol): Use op_symbol_code
33         instead of op_symbol_1.
34         * tree-pass.h (pass_predcom): Declare.
35         * timevar.def (TV_PREDCOM): New timevar.
36         * tree-ssa-loop.c (run_tree_predictive_commoning,
37         gate_tree_predictive_commoning, pass_predcom): New.
38         * tree-data-ref.c (find_data_references_in_loop): Find the
39         references in dominance order.
40         (canonicalize_base_object_address): Ensure that the result has
41         pointer type.
42         (dr_analyze_innermost): Export.
43         (create_data_ref): Code to fail for references with invariant
44         address moved ...
45         (find_data_references_in_stmt): ... here.
46         * tree-data-ref.h (dr_analyze_innermost): Declare.
47         * tree-affine.c: Include tree-gimple.h and hashtab.h.
48         (aff_combination_find_elt, name_expansion_hash,
49         name_expansion_eq, tree_to_aff_combination_expand,
50         double_int_constant_multiple_p, aff_combination_constant_multiple_p):
51         New functions.
52         * tree-affine.h (aff_combination_constant_multiple_p,
53         tree_to_aff_combination_expand): Declare.
54         * tree-predcom.c: New file.
55         * common.opt (fpredictive-commoning): New option.
56         * tree-flow.h (op_symbol_code, tree_predictive_commoning,
57         stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
58         * Makefile.in (tree-predcom.o): Add.
59         (tree-affine.o): Add TREE_GIMPLE_H dependency.
60         * passes.c (init_optimization_passes):  Add dceloop after
61         copy propagation in loop optimizer.  Add predictive commoning
62         to loop optimizer passes.
63
64 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
65
66         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
67         default hook.
68
69 2007-05-24  Jan Hubicka  <jh@suse.cz>
70
71         * gengenrtl.c (gendecl, gendef): Output the gens annotated for
72         statistics.
73         (genheader): Include statistics.h.
74
75         * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
76         notes are gone.
77         * print-rtl.c (flag_dump_unnumbered): Update comments.
78         (print_rtl): Fix my previous change.
79         * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
80         specific data.
81
82 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
83
84         PR middle-end/32018
85         * tree-ssa-threadupdate.c (thread_through_loop_header): Use
86         set_loop_copy.
87         (thread_through_all_blocks): Call initialize_original_copy_tables
88         and free_original_copy_tables.
89         * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
90         Use set_loop_copy.
91         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
92         * cfghooks.c (duplicate_block): Use get_loop_copy.
93         * cfg.c: Include cfgloop.h.
94         (loop_copy): New hash table.
95         (initialize_original_copy_tables): Initialize loop_copy table.
96         (free_original_copy_tables): Free loop_copy table.
97         (copy_original_table_clear, copy_original_table_set,
98         set_loop_copy, get_loop_copy): New functions.
99         (set_bb_original, set_bb_copy): Use copy_original_table_set.
100         * cfgloop.h (struct loop): Remove copy field.
101         * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
102         * basic-block.h (set_loop_copy, get_loop_copy): Declare.
103
104 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
105
106         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
107         -msse/-msse2/-msse3.
108
109 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
110
111         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
112         __builtin_ia32_vec_set_v2di with MASK_64BIT.
113
114 2007-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
115
116         PR target/27067
117         * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
118         * targhooks.h (default_mangle_decl_assembler_name): Declare
119         default hook.
120         * targhooks.c (default_mangle_decl_assembler_name): Define
121         default hook.
122         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
123         default hook.
124         * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
125         * langhooks.c (lhd_set_decl_assembler_name): Call
126         targetm.mangle_decl_assembler_name for names with global scope.
127
128         * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
129         default.
130         (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
131         * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
132         Declare.
133         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
134         New. Factored out of i386_pe_encode_section_info.
135         (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
136         Move check for prior decoration of stdcall
137         symbols to i386_pe_encode_section_info.
138         (i386_pe_encode_section_info): Adjust call to
139         gen_stdcall_or_fastcall_suffix.  Use
140         i386_pe_maybe_mangle_decl_assembler_name, if needed.
141         (i386_pe_mangle_decl_assembler_name): New. Wrap
142         i386_pe_maybe_mangle_decl_assembler_name.
143
144 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
145
146         * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
147         INTEGRAL_TYPE_P and TYPE_UNSIGNED.
148         * langhooks.c (get_signed_or_unsigned_type): Don't check for
149         INTEGRAL_TYPE_P or TYPE_UNSIGNED.
150         (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
151         TYPE_UNSIGNED.
152
153 2007-05-23  Sandra Loosemore  <sandra@codesourcery.com>
154             Nigel Stephens  <nigel@mips.com>
155             Richard Sandiford  <richard@codesourcery.com>
156
157         Fix up MIPS16 hard float and add support for complex.
158
159         * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
160         (TARGET_SOFT_FLOAT_ABI): New.
161         (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
162         __mips_soft_float to reflect the ABI in use, not whether the
163         FPU is directly accessible (e.g., in MIPS16 mode).
164         (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
165         (UNITS_PER_FPVALUE): Likewise.
166
167         * config/mips/mips.c (mips_expand_call): Remove redundant
168         TARGET_MIPS16 check.
169         (mips_arg_regno): New.
170         (function_arg_advance): When setting bits in cum->fp_code for
171         MIPS16, don't subtract 1 from cum->arg_number, since it is now
172         zero-based.
173         (function_arg): Use mips_arg_regno.
174         (mips_return_mode_in_fpr_p): New.
175         (mips16_call_stub_mode_suffix): New.
176         (mips16_cfun_returns_in_fpr_p): New.
177         (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
178         (mips_output_function_prologue): Test mips16_hard_float, not
179         !TARGET_SOFT_FLOAT, to decide when a function stub is required.
180         (mips_expand_epilogue): Call MIPS16 helper routines to copy
181         return value into a floating-point register.
182         (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
183         (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
184         (mips16_fp_args): Handle MIPS32r2 ISA which supports
185         TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
186         word of double arguments from or to the high bits of 64-bit
187         floating point registers.
188         (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
189         (mips16_fpret_double): New helper function.
190         (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p.  Add
191         support for complex modes.  Fill in DECL_RESULT for stubdecl.
192         (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
193
194         * config/mips/mips16.S 
195         (RET, ARG1, ARG2): New.
196         (MERGE_GPRf, MERGE_GPRt): New.
197         (DELAYt, DELAYf): New.
198         (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
199         (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
200         (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
201         (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
202         (SFOP): Renamed to...
203         (OPSF3): This, and macro-ified.  Updated all uses.
204         (SFOP2): Renamed to...
205         (OPSF2): This, and macro-ified.  Updated all uses.
206         (SFCMP): Renamed to...
207         (CMPSF): This, and macro-ified.  Updated all uses.
208         (SFREVCMP): Renamed to...
209         (REVCMPSF): This, and macro-ified.  Updated all uses.
210         (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
211         (LDDBL1, LDDBL2, RETDBL): Deleted.
212         (DFOP): Renamed to...
213         (OPDF3): This, and macro-ified.  Updated all uses.
214         (DFOP2): Renamed to...
215         (OPDF2): This, and macro-ified.  Updated all uses.
216         (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
217         (DFCMP): Renamed to...
218         (CMPDF): This, and macro-ified.  Updated all uses.
219         (DFREVCMP): Renamed to...
220         (REVCMPDF): This, and macro-ified.  Updated all uses.
221         (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
222         (RET_FUNCTION): New.
223         (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
224         (__mips16_ret_sc, __mips16_ret_dc): New.
225         (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
226         STUB_ARGS_6, STUB_ARGS_10): New.
227         (CALL_STUB_NO_RET): New.
228         (__mips16_call_stub_1): Macro-ified.
229         (__mips16_call_stub_5): Macro-ified.
230         (__mips16_call_stub_2): Macro-ified.
231         (__mips16_call_stub_6): Macro-ified.
232         (__mips16_call_stub_9): Macro-ified.
233         (__mips16_call_stub_10): Macro-ified.
234         (CALL_STUB_RET): New.
235         (__mips16_call_stub_sf_0): Macro-ified.
236         (__mips16_call_stub_sf_1): Macro-ified.
237         (__mips16_call_stub_sf_5): Macro-ified.
238         (__mips16_call_stub_sf_2): Macro-ified.
239         (__mips16_call_stub_sf_6): Macro-ified.
240         (__mips16_call_stub_sf_9): Macro-ified.
241         (__mips16_call_stub_sf_10): Macro-ified.
242         (__mips16_call_stub_df_0): Macro-ified.
243         (__mips16_call_stub_df_1): Macro-ified.
244         (__mips16_call_stub_df_5): Macro-ified.
245         (__mips16_call_stub_df_2): Macro-ified.
246         (__mips16_call_stub_df_6): Macro-ified.
247         (__mips16_call_stub_df_9): Macro-ified.
248         (__mips16_call_stub_df_10): Macro-ified.
249         (__mips16_call_stub_sc_0): New.
250         (__mips16_call_stub_sc_1): New.
251         (__mips16_call_stub_sc_5): New.
252         (__mips16_call_stub_sc_2): New.
253         (__mips16_call_stub_sc_6): New.
254         (__mips16_call_stub_sc_9): New.
255         (__mips16_call_stub_sc_10): New.
256         (__mips16_call_stub_dc_0): New.
257         (__mips16_call_stub_dc_1): New.
258         (__mips16_call_stub_dc_5): New.
259         (__mips16_call_stub_dc_2): New.
260         (__mips16_call_stub_dc_6): New.
261         (__mips16_call_stub_dc_9): New.
262         (__mips16_call_stub_dc_10): New.
263         
264         * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
265         * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
266         * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
267
268 2007-05-23  Ian Lance Taylor  <iant@google.com>
269
270         * doc/invoke.texi (Invoking GCC): Document that the order of the
271         -l option matters.
272
273 2007-05-23  Chen Liqin  <liqin@sunnorth.com.cn>
274
275         PR target/30987
276         * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
277         * config/score/predicate.md (const_pow2, const_npow2): Remove.
278         * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
279         undef.
280
281         PR target/30474
282         * config/score/score.c (score_print_operand): Make sure that only
283         lower bits are used.
284         
285 2007-05-22  Ian Lance Taylor  <iant@google.com>
286
287         * tree-vrp.c (avoid_overflow_infinity): New static function,
288         broken out of set_value_range_to_value.
289         (set_value_range_to_value): Call avoid_overflow_infinity.
290         (extract_range_from_assert): Likewise.
291
292 2007-05-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
293
294         PR middle-end/31095
295          * builtins.c (expand_builtin_memmove_args): Strip nops that don't
296         change the type before looking for a COMPOUND_EXPR.
297
298 2007-05-22  Ian Lance Taylor  <iant@google.com>
299
300         * lower-subreg.c (decompose_multiword_subregs): If we change an
301         insn, call remove_retval_note on it.
302
303 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
304
305         * regs.h (end_hard_regno): New function.
306         (END_HARD_REGNO, END_REGNO): New macros.
307         (add_to_hard_reg_set): New function.
308         (remove_from_hard_reg_set): Likewise.
309         (in_hard_reg_set_p): Likewise.
310         (overlaps_hard_reg_set_p): Likewise.
311         * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
312         (note_btr_set): Use END_HARD_REGNO.
313         * caller-save.c (setup_save_areas): Use end_hard_regno.
314         (mark_set_regs): Use END_HARD_REGNO.
315         (add_stored_regs): Use end_hard_regno.
316         (mark_referenced_regs): Use add_to_hard_reg_set.
317         * combine.c (update_table_tick): Use END_REGNO.
318         (record_value_for_reg): Likewise.
319         (record_dead_and_set_regs): Likewise.
320         (get_last_value_validate): Likewise.
321         (use_crosses_set_p): Likewise.
322         (reg_dead_at_p_1): Likewise.
323         (reg_dead_at_p): Likewise.
324         (mark_used_regs_combine): Use add_to_hard_reg_set.
325         (move_deaths): Use END_HARD_REGNO.
326         (reg_bitfield_target_p): Use end_hard_regno.
327         (distribute_notes): Use END_HARD_REGNO.
328         * cse.c (mention_regs): Use END_REGNO.
329         (insert): Use add_to_hard_reg_set.
330         (invalidate): Use END_HARD_REGNO.
331         (invalidate_for_call): Likewise.
332         (exp_equiv_p): Use END_REGNO.
333         (cse_insn): Likewise.
334         * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
335         * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
336         * df-scan.c (df_ref_record): Use END_HARD_REGNO.
337         * function.c (keep_stack_depressed): Use end_hard_regno.
338         * global.c (global_alloc): Use end_hard_regno.
339         (global_conflicts): Use add_to_hard_reg_set instead of
340         mark_reg_live_nc.
341         (find_reg): Likewise.
342         (mark_reg_store): Likewise.
343         (mark_reg_conflicts): Likewise.
344         (mark_reg_death): Use remove_from_hard_reg_set.
345         (mark_reg_live_nc): Delete.
346         (set_preference): Use end_hard_regno.
347         * local-alloc.c (mark_life): Use add_to_hard_reg_set and
348         remove_from_hard_reg_set.
349         (post_mark_life): Use add_to_hard_reg_set.
350         * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
351         (reg_becomes_live): Use add_to_hard_reg_set.
352         * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
353         (peep2_find_free_register): Use add_to_hard_reg_set.
354         * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
355         * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
356         * regrename.c (note_sets): Use add_to_hard_reg_set.
357         (clear_dead_regs): Use remove_from_hard_reg_set.
358         (regrename_optimize): Use add_to_hard_reg_set.
359         (find_oldest_value_reg): Use in_hard_reg_set_p.
360         * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
361         (hard_reg_set_here_p): Use end_hard_regno.
362         (decompose): Likewise.
363         (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
364         (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
365         * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
366         (mark_home_live): Use end_hard_regno.
367         (spill_hard_reg): Likewise.
368         (clear_reload_reg_in_use): Likewise.
369         * reorg.c (delete_prior_computation): Use END_REGNO.
370         * resource.c (update_live_status): Use END_HARD_REGNO.
371         (mark_referenced_resources): Use add_to_hard_reg_set.
372         (mark_set_resources): Likewise.
373         (mark_target_live_regs): Likewise.  Use remove_from_hard_reg_set.
374         * rtlanal.c (refers_to_regno_p): Use END_REGNO.
375         (reg_overlap_mentioned_p): Likewise.
376         (dead_or_set_p): Likewise.  Use an exclusive upper loop bound.
377         (covers_regno_no_parallel_p): Use END_REGNO.
378         (find_regno_note): Likewise.
379         (find_reg_fusage): Use END_HARD_REGNO.
380         * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
381         * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
382
383 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
384
385         * mode-switching.c (reg_dies): Change type of second argument to
386         "HARD_REG_SET *".
387         (optimize_mode_switching): Update accordingly.
388
389 2007-05-22  Richard Sandiford  <richard@codesourcery.com>
390
391         * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
392         in favor of...
393         (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
394         (hard_reg_set_empty_p): ...these new functions.
395         * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
396         GO_IF_HARD_REG_SUBSET.
397         * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
398         instead of GO_IF_HARD_REG_EQUAL.
399         * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
400         instead of GO_IF_HARD_REG_EQUAL.
401         * global.c (find_reg): Use hard_reg_set_empty_p instead of
402         GO_IF_HARD_REG_SUBSET.
403         (modify_reg_pav): Use hard_reg_set_empty_p instead of
404         GO_IF_HARD_REG_EQUAL.
405         * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
406         of GO_IF_HARD_REG_SUBSET.
407         * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
408         instead of GO_IF_HARD_REG_EQUAL.
409         * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
410         hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
411         (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
412         of GO_IF_HARD_REG_SUBSET,
413         * reload1.c (finish_spills): Use hard_reg_subset_p instead of
414         GO_IF_HARD_REG_SUBSET.
415         * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
416         instead of GO_IF_HARD_REG_EQUAL.
417         * config/sh/sh.c (push_regs, calc_live_regs): Use
418         hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
419         (hard_regs_intersect_p): Delete.
420
421 2007-05-22  Janis Johnson  <janis187@us.ibm.com>
422
423         * doc/sourcebuild.texi (Test Directives) Add dg-message.
424
425 2007-05-22  H.J. Lu  <hongjiu.lu@intel.com>
426             Richard Henderson  <rth@redhat.com>
427
428         * config.gcc (i[34567]86-*-*): Add smmintrin.h to
429         extra_headers.
430         (x86_64-*-*): Likewise.
431
432         * i386/i386-modes.def (V2QI): New.
433
434         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
435         SSE4A.
436         (override_options): Support SSE4.1.
437         (IX86_BUILTIN_BLENDPD): New for SSE4.1.
438         (IX86_BUILTIN_BLENDPS): Likewise.
439         (IX86_BUILTIN_BLENDVPD): Likewise.
440         (IX86_BUILTIN_BLENDVPS): Likewise.
441         (IX86_BUILTIN_PBLENDVB128): Likewise.
442         (IX86_BUILTIN_PBLENDW128): Likewise.
443         (IX86_BUILTIN_DPPD): Likewise.
444         (IX86_BUILTIN_DPPS): Likewise.
445         (IX86_BUILTIN_INSERTPS128): Likewise.
446         (IX86_BUILTIN_MOVNTDQA): Likewise.
447         (IX86_BUILTIN_MPSADBW128): Likewise.
448         (IX86_BUILTIN_PACKUSDW128): Likewise.
449         (IX86_BUILTIN_PCMPEQQ): Likewise.
450         (IX86_BUILTIN_PHMINPOSUW128): Likewise.
451         (IX86_BUILTIN_PMAXSB128): Likewise.
452         (IX86_BUILTIN_PMAXSD128): Likewise.
453         (IX86_BUILTIN_PMAXUD128): Likewise.
454         (IX86_BUILTIN_PMAXUW128): Likewise.
455         (IX86_BUILTIN_PMINSB128): Likewise.
456         (IX86_BUILTIN_PMINSD128): Likewise.
457         (IX86_BUILTIN_PMINUD128): Likewise.
458         (IX86_BUILTIN_PMINUW128): Likewise.
459         (IX86_BUILTIN_PMOVSXBW128): Likewise.
460         (IX86_BUILTIN_PMOVSXBD128): Likewise.
461         (IX86_BUILTIN_PMOVSXBQ128): Likewise.
462         (IX86_BUILTIN_PMOVSXWD128): Likewise.
463         (IX86_BUILTIN_PMOVSXWQ128): Likewise.
464         (IX86_BUILTIN_PMOVSXDQ128): Likewise.
465         (IX86_BUILTIN_PMOVZXBW128): Likewise.
466         (IX86_BUILTIN_PMOVZXBD128): Likewise.
467         (IX86_BUILTIN_PMOVZXBQ128): Likewise.
468         (IX86_BUILTIN_PMOVZXWD128): Likewise.
469         (IX86_BUILTIN_PMOVZXWQ128): Likewise.
470         (IX86_BUILTIN_PMOVZXDQ128): Likewise.
471         (IX86_BUILTIN_PMULDQ128): Likewise.
472         (IX86_BUILTIN_PMULLD128): Likewise.
473         (IX86_BUILTIN_ROUNDPD): Likewise.
474         (IX86_BUILTIN_ROUNDPS): Likewise.
475         (IX86_BUILTIN_ROUNDSD): Likewise.
476         (IX86_BUILTIN_ROUNDSS): Likewise.
477         (IX86_BUILTIN_PTESTZ): Likewise.
478         (IX86_BUILTIN_PTESTC): Likewise.
479         (IX86_BUILTIN_PTESTNZC): Likewise.
480         (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
481         (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
482         (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
483         (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
484         (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
485         (bdesc_ptest): New.
486         (bdesc_sse_3arg): Likewise.
487         (bdesc_2arg): Likewise.
488         (bdesc_1arg): Likewise.
489         (ix86_init_mmx_sse_builtins): Support SSE4.1.  Handle SSE builtins
490         with 3 args.
491         (ix86_expand_sse_4_operands_builtin): New.
492         (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
493         smaller than 8 bits as the 2nd arg.
494         (ix86_expand_sse_ptest): New.
495         (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
496         (ix86_expand_vector_set): Support SSE4.1.
497         (ix86_expand_vector_extract): Likewise.
498
499         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
500         __SSE4_1__ for -msse4.1.
501
502         * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
503         (UNSPEC_INSERTPS): Likewise.
504         (UNSPEC_DP): Likewise.
505         (UNSPEC_MOVNTDQA): Likewise.
506         (UNSPEC_MPSADBW): Likewise.
507         (UNSPEC_PHMINPOSUW): Likewise.
508         (UNSPEC_PTEST): Likewise.
509         (UNSPEC_ROUNDP): Likewise.
510         (UNSPEC_ROUNDS): Likewise.
511
512         * config/i386/i386.opt (msse4.1): New for SSE4.1.
513
514         * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
515         (const_pow2_1_to_32768_operand): Likewise.
516
517         * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
518         file.
519
520         * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
521         SSE4.1.
522         (sse4_1_insertps): Likewise.
523         (*sse4_1_extractps): Likewise.
524         (sse4_1_ptest): Likewise.
525         (sse4_1_mulv2siv2di3): Likewise.
526         (*sse4_1_mulv4si3): Likewise.
527         (*sse4_1_smax<mode>3): Likewise.
528         (*sse4_1_umax<mode>3): Likewise.
529         (*sse4_1_smin<mode>3): Likewise.
530         (*sse4_1_umin<mode>3): Likewise.
531         (sse4_1_eqv2di3): Likewise.
532         (*sse4_1_pinsrb): Likewise.
533         (*sse4_1_pinsrd): Likewise.
534         (*sse4_1_pinsrq): Likewise.
535         (*sse4_1_pextrb): Likewise.
536         (*sse4_1_pextrb_memory): Likewise.
537         (*sse4_1_pextrw_memory): Likewise.
538         (*sse4_1_pextrq): Likewise.
539         (sse4_1_blendpd): Likewise.
540         (sse4_1_blendps): Likewise.
541         (sse4_1_blendvpd): Likewise.
542         (sse4_1_blendvps): Likewise.
543         (sse4_1_dppd): Likewise.
544         (sse4_1_dpps): Likewise.
545         (sse4_1_movntdqa): Likewise.
546         (sse4_1_mpsadbw): Likewise.
547         (sse4_1_packusdw): Likewise.
548         (sse4_1_pblendvb): Likewise.
549         (sse4_1_pblendw): Likewise.
550         (sse4_1_phminposuw): Likewise.
551         (sse4_1_extendv8qiv8hi2): Likewise.
552         (*sse4_1_extendv8qiv8hi2): Likewise.
553         (sse4_1_extendv4qiv4si2): Likewise.
554         (*sse4_1_extendv4qiv4si2): Likewise.
555         (sse4_1_extendv2qiv2di2): Likewise.
556         (*sse4_1_extendv2qiv2di2): Likewise.
557         (sse4_1_extendv4hiv4si2): Likewise.
558         (*sse4_1_extendv4hiv4si2): Likewise.
559         (sse4_1_extendv2hiv2di2): Likewise.
560         (*sse4_1_extendv2hiv2di2): Likewise.
561         (sse4_1_extendv2siv2di2): Likewise.
562         (*sse4_1_extendv2siv2di2): Likewise.
563         (sse4_1_zero_extendv8qiv8hi2): Likewise.
564         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
565         (sse4_1_zero_extendv4qiv4si2): Likewise.
566         (*sse4_1_zero_extendv4qiv4si2): Likewise.
567         (sse4_1_zero_extendv2qiv2di2): Likewise.
568         (*sse4_1_zero_extendv2qiv2di2): Likewise.
569         (sse4_1_zero_extendv4hiv4si2): Likewise.
570         (*sse4_1_zero_extendv4hiv4si2): Likewise.
571         (sse4_1_zero_extendv2hiv2di2): Likewise.
572         (*sse4_1_zero_extendv2hiv2di2): Likewise.
573         (sse4_1_zero_extendv2siv2di2): Likewise.
574         (*sse4_1_zero_extendv2siv2di2): Likewise.
575         (sse4_1_roundpd): Likewise.
576         (sse4_1_roundps): Likewise.
577         (sse4_1_roundsd): Likewise.
578         (sse4_1_roundss): Likewise.
579         (mulv4si3): Don't expand for SSE4.1.
580         (smax<mode>3): Likewise.
581         (umaxv4si3): Likewise.
582         (uminv16qi3): Likewise.
583         (umin<mode>3): Likewise.
584         (umaxv8hi3): Rewrite.  Only enabled for SSE4.1.
585
586         * doc/extend.texi: Document SSE4.1 built-in functions.
587
588         * doc/invoke.texi: Document -msse4.1.
589
590 2007-05-22  Nathan Sidwell  <nathan@codesourcery.com>
591
592         * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
593         * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
594         * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
595         (ASM_SPEC): Add asm_pcrel_spec.
596         (EXTRA_SPECS): Add asm_pcrel_spec.
597
598 2007-05-21  David Daney  <ddaney@avtrex.com>
599
600         * doc/install.texi (Building a cross compiler): Add requirements
601         for Java cross compiler.
602
603 2007-05-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
604
605         PR middle-end/31995
606         * tree-chrec.c (evolution_function_is_affine_multivariate_p):
607         Add loopno argument.  Use evolution_function_is_invariant_rec_p
608         instead of evolution_function_is_constant_p.
609         Update calls to evolution_function_is_affine_multivariate_p.
610         * tree-chrec.h (evolution_function_is_affine_multivariate_p):
611         Add loopno argument.
612         * tree-scalar-evolution.c (gather_chrec_stats): Call
613         evolution_function_is_affine_multivariate_p with a loop
614         number of 0.
615         * tree-data-ref.c (analyze_miv_subscript): Likewise.
616         (analyze_overlapping_iterations): Likewise.
617         (access_functions_are_affine_or_constant_p): Likewise.
618         (build_classic_dist_vector_1): If the access functions
619         are equal, don't do anything.
620
621 2007-05-21  Paolo Bonzini  <bonzini@gnu.org>
622             Paolo Carlini  <pcarlini@suse.de>
623             Uros Bizjak  <ubizjak@gmail.com>
624
625         * c-cppbuiltin.c (c_cpp_builtins): Define
626         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
627         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
628         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
629         * doc/cpp.texi ([Standard Predefined Macros]): Document.
630
631 2007-05-21  Mike Stump  <mrs@apple.com>
632
633         * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx for dsymutil
634         handling as well.
635         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
636
637 2007-05-21  Uros Bizjak  <ubizjak@gmail.com>
638
639         * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
640         implementation if __OPTIMIZE__ is not defined.
641         (_mm_alignr_pi8): Ditto.
642         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
643         (_mm_inserti_si64): Ditto.
644         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
645         (_mm_slli_epi16): Ditto.
646         (_mm_slli_epi32): Ditto.
647         (_mm_slli_epi64): Ditto.
648         (_mm_srai_epi16): Ditto.
649         (_mm_srai_epi32): Ditto.
650         (_mm_srli_si128): Ditto.
651         (_mm_slli_si128): Ditto.
652         (_mm_srli_epi16): Ditto.
653         (_mm_srli_epi32): Ditto.
654         (_mm_srli_epi64): Ditto.
655         (_mm_extract_epi16): Ditto.
656         (_mm_insert_epi16): Ditto.
657         (_mm_shufflehi_epi16): Ditto.
658         (_mm_shufflelo_epi16): Ditto.
659         (_mm_shuffle_epi32): Ditto.
660         * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
661         (_m_pextrw): Ditto.
662         (_mm_insert_pi16): Ditto.
663         (_m_pinsrw): Ditto.
664         (_mm_shuffle_pi16): Ditto.
665         (_m_pshufw): Ditto.
666         (_mm_shufle_ps): Ditto.
667         (_mm_prefetch): Ditto.
668
669 2007-05-21  Andreas Krebbel  <krebbel1@de.ibm.com>
670
671         * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
672         * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
673         * real.c (encode_i370_single, decode_i370_single,
674         encode_i370_double, decode_i370_double): Functions removed.
675         (i370_single_format, i370_double_format): Initializations removed.
676         (real_maxval, round_for_format, exact_real_truncate, significand_size):
677         Consider the log2_b field to always be one.
678         (ieee_single_format, mips_single_format, coldfire_single_format,
679         ieee_double_format, mips_double_format, coldfire_double_format,
680         ieee_extended_motorola_format, ieee_extended_intel_96_format,
681         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
682         ibm_extended_format, mips_extended_format, ieee_quad_format,
683         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
684         decimal_single_format, decimal_double_format, decimal_quad_format,
685         c4x_single_format, c4x_extended_format, real_internal_format): Remove
686         initialization of log2_b.
687         * real.h (i370_single_format, i370_double_format): Declarations removed.
688         * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
689         field to always be one.
690
691 2007-05-21  Andreas Schwab  <schwab@suse.de>
692
693         * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
694         NOTE_INSN_BASIC_BLOCK_P.
695         (process_for_unwind_directive): Likewise.
696
697 2007-05-21  Nathan Sidwell  <nathan@codesourcery.com>
698
699         * builtins.c (expand_builtin_setjmp_setup): Update comment.
700         * function.h (struct function): Move va_list_gpr_size,
701         va_list_fpr_size, function_frequency to front of bitfields.  Add
702         calls_unwind_init.
703         (current_function_calls_unwind_init): New.
704         * except.c (expand_builtin_unwind_init): Set
705         current_function_calls_unwind_init not
706         current_function_has_nonlocal_label.
707         * reload1.c (has_nonexceptional_receiver): New.
708         (reload): Use it and current_function_calls_unwind_init to
709         determine whether call-saved regs must be saved.
710
711 2007-05-20  Jan Hubicka  <jh@suse.cz>
712
713         * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
714         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
715         * ddg.c (create_ddg): LIkewise.
716         * final.c (final): Remove hunk moving line numbernotes around since
717         they are no longer present at this stage.
718         (final_scan_insn): Use NOTE_KIND instead of
719         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
720         (output_asm_label): Likewise.
721         * reorg.c (dbr_schedule): Likewise.
722         * haifa-sched.c (unlink_other_notes): Likewise.
723         * mode-switching.c (optimize_mode_switching): Likewise.
724         * graph.c (start_bb): Likewise.
725         * rtl.def (NOTE): Update description.
726         * jump.c (squeeze_notes): Delete.
727         (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
728         NOTE_INSN_BASIC_BLOCK_P when possible.
729         * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
730         * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
731         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
732         (dwarf2out_var_location): Likewise.
733         * cfgbuild.c (make_edges): Likewise.
734         (find_basic_blocks_1): Likewise.
735         * function.c (reorder_blocks_1): Likewise.
736         (epilogue_done): Likewise.
737         (reposition_prologue_and_epilogue_notes): Likewise.
738         * print-rtl.c (print_rtx): Likewise; drop code for printing line number
739         notes.
740         (print_rtl): Likewise.
741         (print_rtl_single): Likewise.
742         * gcse.c (insert_insn_start_bb): Likewise.
743         * alias.c (init_alias_analysis): Likewise.
744         * calls.c (fixup_tail_calls): Likewise.
745         * except.c (sjlj_emit_function_enter): Likewise.
746         * emit-rtl.c (add_insn_after): Likeiwse.
747         (emit_label_before): Likewise.
748         (emit_label_after): Likewise.
749         (emit_note_before, emit_note_after, emit_note): Update
750         parameter to be enum insn_note; do not deal with source
751         files.
752         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
753         Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
754         when possible.
755         (merge_blocks_move_successor_nojumps): Simplify now when
756         we don't have BLOCK notes.
757         (try_optimize_cfg): Likewise.
758         * cfglayout.c (skip_insns_after_block): Likewise.
759         (record_effective_endpoints): Likewise.
760         (duplicate_insn_chain): Likewise.
761         * varasm.c (output_constant_pool_1): Likewise.
762         * sched-deps.c (sched_analyze): Likewise.
763         * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
764         Exterminate.
765         (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
766         * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
767         (SET_INSN_DELETED): Simplify.
768         (NOTE_LINE_NUMBER): Exterminate.
769         (NOTE_LINE_KIND): New.
770         (NOTE_INSN_BASIC_BLOCK_P): Update.
771         (enum insn_note): Simplify.
772         (GET_NOTE_INSN_NAME) Simplify.
773         (emit_note_before, emit_note_after, emit_note): Update prototype.
774         (squeeze_notes): Remove.
775         * sched-int.h (NOTE_NOT_BB_P): Update.
776         * resource.c (mark_target_live_regs): Update.
777         * sched-rgn.c (debug_dependencies): Update.
778         * sched-vis.c (print_insn): Update.
779         * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
780         * config/i386/i386.c (ix86_output_function_epilogue): Update.
781         * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
782         (TARGET_ADJUST_UNROLL_MAX): Likewise.
783         (split_branches): Update.
784         (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
785         4.0.0.
786         (sh_adjust_unroll_max): Exterminate.
787         * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
788         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
789         (m68hc11_reorg): Likewise.
790         * config/ia64/ia64.c (emit_insn_group_barriers): Update.
791         (emit_predicate_relation_info): Update.
792         (process_for_unwind_directive): Update.
793         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
794         (output_call): Update.
795         * config/pa/pa.c (output_lbranch): Update.
796         (output_millicode_call): Update.
797         (output_call): Update.
798         (pa_combine_instructions): Update.
799         * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
800         * config/bfin/bfin.c (gen_one_bundle): Update.
801         * cfgrtl.c (can_delete_note_p): Update.
802         (delete_insn): Update.
803         (rtl_merge_blocks): Update.
804         (commit_one_edge_insertion): Update.
805         (rtl_verify_flow_info): Update.
806         * stmt.c (expand_case): Do not call squeeze_notes.
807
808 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
809         
810         PR middle-end/7651
811         PR c++/11856
812         PR c/12963
813         PR c/23587
814         PR other/29694
815         * c.opt (Wtype-limits): New.
816         * doc/invoke.texi (Wtype-limits): Document it.
817         (Wextra): Enabled by -Wextra.
818         * c-opts.c (c_common_post_options): Enabled by -Wextra.
819         * c-common.c (shorten_compare): Warn with Wtype-limits.
820
821 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
822
823         * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
824         inlined function, not as a macro.
825         (_mm_alignr_pi8): Ditto.
826         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
827         (_mm_inserti_si64): Ditto.
828         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
829         (_mm_extract_epi16): Ditto.
830         (_mm_insert_epi16): Ditto.
831         (_mm_shufflehi_epi16): Ditto.
832         (_mm_shufflelo_epi16): Ditto.
833         (_mm_shuffle_epi32): Ditto.
834         * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
835         * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
836         all functions.
837         (_m_from_float): Add __extension__ to conversion.  Use 0.0f for
838         float constant.
839         (_m_to_float): Use C89 compatible assignment.
840
841 2007-04-20  Martin Michlmayr  <tbm@cyrius.com>
842
843         PR target/32007
844         * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
845
846 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
847
848         PR middle-end/7651
849         * doc/invoke.texi (Wreturn-type): Complete description.
850         (Wextra): Delete item about return-type warning.
851         * c-decl.c: Delete redundant Wextra warning.
852         
853 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
854
855         PR target/31585
856         * config/i386/pmmintrin.h: Do not include xmmintrin.h
857         * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
858         inlined function, not as a macro.
859         (_mm_prefetch): Ditto.
860         (_m_pextrw): Ditto.
861         (_mm_insert_pi16): Ditto.
862         (_m_pinsrw): Ditto.
863         (_mm_shuffle_pi16): Ditto.  Add const to __N argument.
864         (_m_pshufw): Ditto. Add const to __N argument.
865         (_mm_shufle_ps): Ditto.  Add const to __mask argument.
866         * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
867         (_mm_slli_epi32): Ditto.
868         (_mm_srli_si128): Implement as always inlined function, not as a macro.
869         Add __inline to function declaration.
870         (_mm_slli_si128): Ditto.
871
872 2007-05-19  Uros Bizjak  <ubizjak@gmail.com>
873
874         * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
875         FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
876         New constants.
877         (struct fenv): New structure.
878         (FP_HANDLE_EXCEPTIONS): New define.
879         (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
880         (_FP_DECL_EXP): New define.
881         (FP_INIT_ROUNDMODE): New define.
882         (FP_ROUNDMODE): New define.
883
884 2007-05-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
885
886         * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
887         (Wconversion): Update description.
888         (Wconversion-sign): New.
889         * c.opt (Wconversion-sign): New.
890         * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
891         means disabled for C++. Otherwise, take the status of Wconversion.
892         * c-common.c (conversion_warning): Warn with either Wconversion or
893         Wconversion-sign.
894         (warnings_for_convert_and_check): Conditions are already checked by
895         conversion_warning.
896         (convert_and_check): Don't check warnings if the conversion failed.
897
898 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
899            Anatoly Sokolov <aesok@dol.ru>
900
901         * config/avr/avr-protos.h (expand_prologue, expand_epilogue, 
902         avr_epilogue_uses) : Add declaration.
903         * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
904         * config/avr/constraints.md (R): New constraint.
905         config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI, 
906         UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
907         (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
908         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
909         (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt, 
910         call_prologue_saves, epilogue_restores, return_from_epilogue,
911         return_from_main_epilogue, return_from_interrupt_epilogue, 
912         return_from_naked_epilogue, prologue, epilogue): New patterns.
913         (jump): Handle symbol reference.
914         * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr, 
915         avr_output_function_prologue, avr_output_function_epilogue): Remove 
916         functions.
917         (avr_init_machine_status, expand_prologue, expand_epilogue, 
918         avr_asm_function_end_prologue, avr_epilogue_uses, 
919         avr_asm_function_begin_epilogue): New functions.
920         (prologue_size, epilogue_size, jump_tables_size): Remove global 
921         variables.
922         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
923         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
924         (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
925         (avr_override_options): Initialise init_machine_status.
926         (output_movhi): Handle all stack pointer loads.
927         (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
928         (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
929         * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
930         (EPILOGUE_USES) Redefine.
931         (machine_function) Declare.
932
933 2007-05-19  Richard Sandiford  <richard@codesourcery.com>
934
935         * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
936         Use a single return statement.
937
938 2007-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
939
940         PR middle-end/30250
941         * builtins.c (do_mpfr_lgamma_r): New.
942         (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
943         * tree.h (CASE_FLT_FN_REENT): New.
944
945 2007-05-18  Geoffrey Keating  <geoffk@apple.com>
946
947         * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
948         (output_die): Use 'unsigned long' with %x.
949         * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
950         HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
951         * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
952
953         * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
954
955 2007-05-18  H.J. Lu  <hongjiu.lu@intel.com>
956
957         PR target/31989
958         PR target/31681
959         PR target/31666
960         * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
961         true if function has no argument.
962
963 2007-05-18  DJ Delorie  <dj@redhat.com>
964
965         * config/mips/mips.c (mips_offset_within_alignment_p): New.
966         (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
967
968 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
969
970         * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
971         sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
972         count_trailing_zeros.
973         (__i386__): Implement count_leading_zeros using __builtin_clz().
974         Implement count_trailing_zeros usign __builtin_ctz().
975
976 2007-05-18  Richard Sandiford  <richard@codesourcery.com>
977
978         * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
979
980 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
981
982         PR middle-end/31344
983         * expr.c (emit_move_change_mode): Change mode of push operands here.
984
985 2007-05-17  Ian Lance Taylor  <iant@google.com>
986
987         PR tree-optimization/31953
988         * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
989         Change all callers.
990         (set_value_range_to_null): Call set_value_range_to_value.
991         (extract_range_from_comparison): Likewise.
992
993 2007-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
994
995         * toplev.c (print_version): Output GMP/MPFR version info.
996
997         * builtins.c (CASE_MATHFN_REENT): New macro.
998         (mathfn_built_in): Use it.
999         * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
1000         BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
1001         BUILT_IN_LGAMMAL_R): New.
1002         * doc/extend.texi: Document new builtins.
1003
1004         PR middle-end/31796
1005         * builtins.c (do_mpfr_remquo): New.
1006         (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
1007         (fold_builtin_3): Handle BUILT_IN_REMQUO.
1008
1009         PR middle-end/30251
1010         * builtins.c (fold_builtin_1): Handle y0, y1.
1011         (fold_builtin_2): Handle yn.
1012
1013         PR middle-end/30251
1014         * builtins.c (do_mpfr_bessel_n): New.
1015         (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
1016         (fold_builtin_2): Handle BUILT_IN_JN.
1017
1018 2007-05-17  Danny Smith  <dannysmith@users.sourceforge.net>
1019
1020         PR target/31965
1021         * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
1022         TYPE_PRECISION (intmax_type_node).
1023
1024 2007-05-17  Steve Ellcey  <sje@cup.hp.com>
1025
1026         PR target/31850
1027         * reload.c (subst_reloads): Remove checking.
1028
1029 2007-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
1030
1031         PR rtl-optimization/31691
1032         * combine.c (simplify_set): Build a new src pattern instead of
1033         substituting its operands in the COMPARE case.
1034
1035 2007-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
1036
1037         * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
1038         (execute_vrp): Preserve loops through jump threading.
1039         * tree-ssa-threadupdate.c (thread_single_edge,
1040         dbds_continue_enumeration_p, determine_bb_domination_status,
1041         thread_through_loop_header): New functions.
1042         (create_edge_and_update_destination_phis,
1043         create_edge_and_update_destination_phis): Set loops for the new blocks.
1044         (prune_undesirable_thread_requests): Removed.
1045         (redirect_edges): Do not pretend that redirect_edge_and_branch can
1046         create new blocks.
1047         (thread_block): Do not call prune_undesirable_thread_requests.
1048         Update loops.
1049         (mark_threaded_blocks): Select edges to thread here.
1050         (thread_through_all_blocks): Take may_peel_loop_headers argument.
1051         Thread edges through loop headers independently.
1052         * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
1053         * tree-pass.h (TODO_mark_first_instance): New.
1054         (first_pass_instance): Declare.
1055         * cfghooks.c (duplicate_block): Put the block to the original loop
1056         if copy is not specified.
1057         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
1058         jump threading.  Pass may_peel_loop_headers to
1059         thread_through_all_blocks according to first_pass_instance.
1060         * cfgloop.h (create_preheader): Declare.
1061         * tree-flow.h (thread_through_all_blocks): Declaration changed.
1062         * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
1063         * passes.c (first_pass_instance): New variable.
1064         (next_pass_1): Set TODO_mark_first_instance.
1065         (execute_todo): Set first_pass_instance.
1066
1067 2007-05-17  Uros Bizjak  <ubizjak@gmail.com>
1068
1069         PR tree-optimization/24659
1070         * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
1071         OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
1072         OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
1073         OTI_vec_pack_ufix_trunc.
1074         (vec_unpacks_float_hi_optab): Define new macro.
1075         (vec_unpacks_float_lo_optab): Ditto.
1076         (vec_unpacku_float_hi_optab): Ditto.
1077         (vec_unpacku_float_lo_optab): Ditto.
1078         (vec_pack_sfix_trunc_optab): Ditto.
1079         (vec_pack_ufix_trunc_optab): Ditto.
1080         * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
1081         and vec_pack_[s|u]fix_trunc_optab using
1082         vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
1083         * tree-vectorizer.c (supportable_widening_operation): Handle
1084         FLOAT_EXPR and CONVERT_EXPR.  Update comment.
1085         (supportable_narrowing_operation): New function.
1086         * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
1087         * tree-vect-transform.c (vectorizable_conversion): Handle
1088         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
1089         (vect_gen_widened_results_half): Move before vectorizable_conversion.
1090         (vectorizable_type_demotion): Call supportable_narrowing_operation()
1091         to check for target support.
1092         * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
1093         for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
1094         for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
1095         for VEC_PACK_FIX_TRUNC_EXPR.
1096         (expand_binop): Special case mode of the result for
1097         vec_pack_[u|s]fix_trunc_optab.
1098         (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
1099         vec_pack_[u|s]fix_trunc_optab.
1100
1101         * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
1102         VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
1103         * tree-pretty-print.c (dump_generic_node): Handle
1104         VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
1105         VEC_PACK_FIX_TRUNC_EXPR.
1106         (op_prio): Ditto.
1107         * expr.c (expand_expr_real_1): Ditto.
1108         * tree-inline.c (estimate_num_insns_1): Ditto.
1109         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1110
1111         * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
1112         (vec_unpacks_float_lo_v8hi): Ditto.
1113         (vec_unpacku_float_hi_v8hi): Ditto.
1114         (vec_unpacku_float_lo_v8hi): Ditto.
1115         (vec_unpacks_float_hi_v4si): Ditto.
1116         (vec_unpacks_float_lo_v4si): Ditto.
1117         (vec_pack_sfix_trunc_v2df): Ditto.
1118
1119         * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
1120         Document.
1121         [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
1122         [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
1123         * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
1124         [vec_pack_ufix_trunc]: Ditto.
1125         [vec_unpacks_float_hi]: Ditto.
1126         [vec_unpacks_float_lo]: Ditto.
1127         [vec_unpacku_float_hi]: Ditto.
1128         [vec_unpacku_float_lo]: Ditto.
1129
1130 2007-05-16  Uros Bizjak  <ubizjak@gmail.com>
1131
1132         * soft-fp/README: Update for new files.
1133         * soft-fp/floattisf.c: New file.
1134         * soft-fp/floattidf.c: New file.
1135         * soft-fp/floattitf.c: New file.
1136         * soft-fp/floatuntisf.c: New file.
1137         * soft-fp/floatuntidf.c: New file.
1138         * soft-fp/floatuntitf.c: New file.
1139         * soft-fp/fixsfti.c: New file.
1140         * soft-fp/fixdfti.c: New file.
1141         * soft-fp/fixtfti.c: New file.
1142         * soft-fp/fixunssfti.c: New file.
1143         * soft-fp/fixunsdfti.c: New file.
1144         * soft-fp/fixunstfti.c: New file.
1145         * soft-fp/extendxftf.c: New file.
1146         * soft-fp/trunctfxf.c: New file.
1147
1148         * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
1149         (__trunctfxf2): Ditto.
1150
1151         * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
1152         __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
1153         __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
1154         __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
1155         __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
1156         __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
1157
1158         * config/i386/t-fprules-softfp64: New file.
1159         * config/i386/sfp-machine.h: New file.
1160         * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
1161         x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
1162         and soft-fp/t-softfp to tmake_file.
1163         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1164         i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
1165         
1166         * config/i386/t-linux64 (softfp_wrap_start): New.
1167         (softfp_wrap_end): New.
1168         * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
1169         supported for TARGET_64BIT.
1170
1171 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
1172
1173         * c-common.c (c_common_signed_or_unsigned_type): Emulate 
1174         c_common_unsigned_type behavior.
1175
1176 2007-05-16  Paolo Bonzini  <bonzini@gnu.org>
1177
1178         * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
1179         calls as pure.
1180
1181 2007-05-16  Eric Christopher  <echristo@apple.com>
1182
1183         * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
1184         saving after stack push. Set sp_offset whenever we push.
1185         (rs6000_emit_epilogue): Move altivec register restore before
1186         stack push.
1187
1188 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
1189
1190         * configure.ac: Allow sysroots to be relocated under $prefix as
1191         well as $exec_prefix.
1192         * configure: Regenerate.
1193
1194 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
1195
1196         Revert:
1197
1198         2007-05-12  Richard Sandiford  <richard@codesourcery.com>
1199
1200         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
1201         (gcc_tooldir): Likewise.
1202         * configure: Regenerate.
1203         * Makefile.in (libsubdir_to_prefix): New variable, based on the
1204         old configure.ac gcc_tooldir setting.
1205         (prefix_to_exec_prefix): New variable.
1206         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
1207         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
1208
1209 2007-05-14  Janis Johnson  <janis187@us.ibm.com>
1210
1211         * c-typeck.c (build_binary_op): Return early for error.
1212
1213 2007-05-15  Zdenek Dvorak  <dvorakz@suse.cz>
1214
1215         * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
1216         struct nb_iter_bound.
1217         (free_numbers_of_iterations_estimates_loop): Use ggc_free.
1218         * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
1219         * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
1220         * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
1221         (struct scev_info_str, scalar_evolution_info): Add GTY markers.
1222         (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
1223         (del_scev_info): Use ggc_free.
1224         (scev_initialize): Allocate scalar_evolution_info in gc memory.
1225         * loop-init.c: Include ggc.h.
1226         (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
1227         (loop_optimizer_finalize): Use ggc_free.
1228         * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
1229         pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
1230         pass_iv_optimize): Add TODO_ggc_collect.
1231         * function.h (struct function): Remove skip marker from x_current_loops.
1232         * cfgloop.c: Include ggc.h.
1233         (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
1234         memory.
1235         (establish_preds): Vector superloops is gc allocated.
1236         (alloc_loop): Allocate loop using GGC_CNEW.  Allocate head of
1237         loop->exits list.
1238         (flow_loops_find): Vector larray is gc allocated.
1239         (loop_exit_free): Use ggc_free.
1240         (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit.  Reflect
1241         that head of exits list is now not a part of struct loop.
1242         (record_loop_exits): Allocate exits table in gc memory.
1243         (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect that
1244         head of exits list is now not a part of struct loop.
1245         * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
1246         struct loop_exit): Add GTY marker.
1247         (struct loop): Add GTY marker.  Make superloops vector gc allocated.
1248         Add skip marker to aux field.  Make head of exits list a separate
1249         object.
1250         (struct loops): Add GTY marker.  Make larray vector gc allocated.
1251         Add param marker to exits table.
1252         (get_loops): Type changed.
1253         * Makefile.in (tree-scalar-evolution.o): Add gt-tree-scalar-evolution.h
1254         dependency.
1255         (cfgloop.o, loop-init.o): Add ggc.h dependency.
1256         (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
1257         * basic-block.h (struct basic_block_def): Remove skip marker from
1258         loop_father field.
1259
1260 2007-05-14  Uros Bizjak  <ubizjak@gmail.com>
1261
1262         * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
1263         of 0 in the call to expand_expr().
1264         (expand_builtin_mathfn_3): Ditto.
1265         (expand_builtin_interclass_mathfn): Ditto.
1266         (expand_builtin_cexpi): Ditto.
1267         (expand_builtin_int_roundingfn): Ditto.
1268         (expand_builtin_int_roundingfn_2): Ditto.
1269         (expand_builtin_pow): Ditto.
1270         (expand_builtin_powi): Ditto.
1271         (expand_builtin_bswap): Ditto.
1272         (expand_builtin_unop): Ditto.
1273         (expand_builtin_fabs): Ditto.
1274         (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
1275         the call to expand_expr().
1276         (expand_builtin_sync_operation): Ditto.
1277         (expand_builtin_compare_and_swap): Ditto.
1278         (expand_builtin_lock_test_and_set): Ditto.
1279         * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
1280         instead of 0 in the call to expand_expr().
1281         (expand_builtin_extract_return_addr): Ditto.
1282         (expand_builtin_eh_return): Ditto.
1283         (expand_eh_return): Ditto.
1284         * explow.c (expr_size): Ditto.
1285         * expr.c (optimize_bitfield_assignment_op): Ditto.
1286         (expand_assignement): Ditto.
1287         (store_expr): Ditto.
1288         (store_field): Ditto.
1289         (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
1290         the call to expand_expr().
1291         (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
1292         in the call to expand_expr().
1293         [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
1294         BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
1295         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
1296         of expand_expr().
1297         * optabs.c (expand_vec_shift_expr): Ditto.
1298         (expand_vec_cond_expr): Ditto.
1299         (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
1300         call to expand_expr().
1301         * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
1302         in the call to expand_expr().
1303
1304 2007-05-14  Dave Korn  <dave.korn@artimi.com>
1305
1306         * genautomata.c (gen_regexp_el):  Allocate correct size for regexp.
1307
1308 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
1309
1310         * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
1311         instead of c_common_unsigned_type.
1312         (c_common_unsigned_type): Remove.
1313         (shorten_compare): Use c_common_signed_or_unsigned_type instead of
1314         c_common_unsigned_type.
1315         (c_common_nodes_and_builtins): Use unsigned_type_for instead of
1316         c_common_unsigned_type.
1317         * c-common.h (c_common_unsigned_type): Remove.
1318         * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
1319         c_common_unsigned_type.
1320         * c-format.c (check_format_types): Use unsigned_type_for instead of
1321         c_common_unsigned_type.
1322         * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
1323         * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead of
1324         c_common_unsigned_type.
1325         * convert.c (convert_to_integer): Use unsigned_type_for instead of
1326         lang_hooks.types.unsigned_type.
1327         * expmed.c (make_tree): Use unsigned_type_for instead of
1328         lang_hooks.types.unsigned_type.
1329         * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
1330         lang_hooks.types.unsigned_type.
1331         (build_range_check): Likewise.
1332         (fold_unary): Likewise.
1333         (fold_binary): Likewise.
1334         (fold_ternary): Likewise.
1335         * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
1336         * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
1337         * tree.c (get_unsigned_type): New.
1338         (unsigned_type_for): Use get_unsigned_type instead of
1339         lang_hooks.types.unsigned_type.
1340
1341 2007-05-14  Kazu Hirata  <kazu@codesourcery.com>
1342
1343         * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
1344         to m68k_get_function_kind.  Update its prototype.
1345         * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
1346         interrupt_thread.
1347         (m68k_interrupt_function_p): Return enum m68k_function_type
1348         instead of bool.  Rename to m68k_get_function_kind.
1349         (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
1350         target is not fido.
1351         (m68k_compute_frame_layout): Don't mark any register for save
1352         if an interrupt_thread attribute is specified.
1353         (m68k_hard_regno_rename_ok): Update a use of
1354         m68k_interrupt_function_p.
1355         * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
1356         m68k_interrupt_function_p.
1357         (m68k_function_type): New.
1358         * config/m68k/m68k.md (*return): Output a 'sleep' instruction
1359         for a function with an interrupt_thread attribute.
1360         * doc/extend.texi: Document the interrupt_thread attribute.
1361
1362 2007-05-13  Daniel Berlin  <dberlin@dberlin.org>
1363
1364         Fix PR tree-optimization/31911
1365         * tree-ssa-pre.c (phi_translate): Make sure to cache results even
1366         if they didn't change the expression.
1367
1368 2007-05-13  Zdenek Dvorak  <dvorakz@suse.cz>
1369
1370         * tree-scalar-evolution.c (resolve_mixers): Exported.
1371         * tree-scalar-evolution.h (resolve_mixers): Declare.
1372         * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
1373         ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
1374         record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
1375         base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
1376         init_array_ref, init_pointer_ref, analyze_indirect_ref,
1377         strip_conversion, analyze_offset_expr, address_analysis,
1378         object_analysis, analyze_offset): Removed.
1379         (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
1380         split_constant_offset, canonicalize_base_object_address,
1381         object_address_invariant_in_loop_p, disjoint_objects_p,
1382         dr_may_alias_p, dr_address_invariant_p): New functions.
1383         (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
1384         and dr_analyze_alias.
1385         (initialize_data_dependence_relation): Use dr_may_alias_p
1386         and object_address_invariant_in_loop_p.
1387         (compute_self_dependence): Handle the case when DDR_ARE_DEPENDENT (ddr)
1388         is chrec_dont_know.
1389         (find_data_references_in_stmt): Restrict the analysis of data references
1390         to the given loop nest.
1391         (find_data_references_in_loop): Made static.  Pass loop nest to
1392         find_data_references_in_stmt.
1393         (compute_data_dependences_for_loop): Use DR_VOPS.
1394         (free_data_ref): Free DR_VOPS.
1395         * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
1396         (struct innermost_loop_behavior): ... new.
1397         (struct base_object_info): Replaced by ...
1398         (struct indices): ... new.
1399         (struct dr_alias): New.
1400         (enum data_ref_type): Removed.
1401         (struct data_reference): Consist of struct innermost_loop_behavior,
1402         struct indices and struct dr_alias.
1403         (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
1404         (DR_MEMTAG): Renamed to ...
1405         (DR_SYMBOL_TAG): ... this.
1406         (find_data_references_in_loop): Declaration removed.
1407         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
1408         instead of DR_OFFSET_MISALIGNMENT.  DR_ALIGNED_TO is never NULL.
1409         (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
1410         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
1411
1412 2007-05-13  Revital Eres  <eres@il.ibm.com>
1413
1414         * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
1415         which walks virtual def-use chains to find redundant stores.
1416         (dse_optimize_stmt): Call it.
1417
1418 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
1419
1420         * gcse.c (gcse_main): Do jump bypassing in CPROP2.
1421         * passes.c (init_optimization_passes): Move pass_jump_bypass
1422         after loop2.
1423
1424         * basic-block.h (bb_has_eh_pred): Fix style issue.
1425
1426 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
1427
1428         PR rtl-optimization/31848
1429         * loop-invariant.c (move_invariant_reg): If we move an insn
1430         with a REG_EQUAL note, and that insn is not always executed,
1431         remove the REG_EQUAL note.
1432
1433 2007-05-12  Richard Guenther  <rguenther@suse.de>
1434
1435         PR tree-optimization/31797
1436         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
1437         propagate into a stmt that has volatile ops.
1438
1439 2007-05-12  Richard Sandiford  <richard@codesourcery.com>
1440
1441         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
1442         (gcc_tooldir): Likewise.
1443         * configure: Regenerate.
1444         * Makefile.in (libsubdir_to_prefix): New variable, based on the
1445         old configure.ac gcc_tooldir setting.
1446         (prefix_to_exec_prefix): New variable.
1447         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
1448         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
1449
1450 2007-05-11  Silvius Rus  <rus@google.com>
1451
1452         * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
1453         * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
1454         * c-common.h (strict_aliasing_warning): Change return type.
1455         * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
1456         * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
1457         (build_c_cast): Condition call to strict_aliasing_warning.
1458         * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
1459         * flags.h (set_Wstrict_aliasing): Declare.
1460         * opts.c (set_Wstrict_alising): Define, add call to.
1461         * tree-flow.h (strict_aliasing_warning_backend): Declare.
1462         * tree-ssa-alias-warnings.c: New file.
1463         * tree-ssa-alias.c (compute_may_aliases): Add call to
1464         strict_aliasing_warning_backend.
1465
1466 2007-05-11  Zdenek Dvorak  <dvorakz@suse.cz>
1467
1468         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
1469         Use loop_depth and loop_outer accessor functions.
1470         * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
1471         determine_invariantness_stmt, move_computations_stmt): Ditto.
1472         * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
1473         add_loop, loopify, unloop, fix_loop_structure): Ditto.
1474         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
1475         * tree-scalar-evolution.c (interpret_loop_phi,
1476         compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
1477         instantiate_parameters_1, scev_const_prop): Ditto.
1478         * cfghooks.c (make_forwarder_block): Ditto.
1479         * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
1480         * modulo-sched.c (loop_canon_p): Ditto.
1481         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
1482         slpeel_can_duplicate_loop_p): Ditto.
1483         * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
1484         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
1485         * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
1486         cancel_loop, verify_loop_structure): Ditto.
1487         (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
1488         add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
1489         superloops vector instead of "pred" array.
1490         (establish_preds): Take father loop as an argument.  Initialize the
1491         superloops vector.
1492         (flow_loop_tree_node_add): Pass father loop to establish_preds.  Do not
1493         initialize loop->outer.
1494         (flow_loop_tree_node_remove): Truncate the superloops vector.
1495         * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
1496         "pred" merged to "superloops" vector.
1497         (loop_depth, loop_outer): New.
1498         (fel_init): Use loop_outer.
1499
1500 2007-05-11  Jan Hubicka  <jh@suse.cz>
1501
1502         * cgraphunit.c: Include gt-cgraphunit.h
1503         (static_ctors, static_dtors): New static vars.
1504         (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
1505         based on implementation in c-common.c
1506         (cgraph_finalize_function): Call record_cdtor_fn.
1507         (cgraph_optimize): Call cgraph_build_cdtor_fns.
1508         * decl.c (finish_function): Do not call c_record_cdtor_fn.
1509         (c_write_global_declarations): Do not call c_build_cdtor_fns.
1510         * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
1511         build_cdtor, c_build_cdtor_fns): Remove.
1512         * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
1513         c_build_cdtor_fns): Remove prototype.
1514
1515 2007-05-11  Paolo Carlini  <pcarlini@suse.de>
1516
1517         PR other/31852
1518         * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
1519         * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
1520         * builtins.c (fold_builtin_memchr): New.
1521         (expand_builtin_memchr): Call the latter.
1522         (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
1523         * doc/extend.texi ([Other built-in functions provided by GCC]):
1524         Document memchr.
1525
1526 2007-05-11  Andreas Krebbel  <krebbel1@de.ibm.com>
1527
1528         * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
1529         PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
1530         PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
1531         PFPO_OP1_TYPE_SHIFT): Constants added.
1532         (DFP_ALL): Mode macro defined.
1533         ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
1534         "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
1535         Insn definitions added.
1536         ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
1537         "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
1538         Expanders added.
1539
1540 2007-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
1541
1542         PR tree-optimization/31885
1543         * tree-chrec.c (chrec_contains_undetermined): Do not consider NULL_TREE
1544         to be undetermined.
1545         (automatically_generated_chrec_p): Return false for NULL.
1546
1547 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
1548
1549         * config/bfin/bfin.h (MOVE_RATIO): Define.
1550
1551 2007-05-10  Richard Sandiford  <richard@codesourcery.com>
1552
1553         * config.gcc (sparc-wrs-vxworks): New target.
1554         * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
1555         * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
1556         * config/sparc/sparc.h: Include vxworks-dummy.h.
1557         (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
1558         include LABEL_REFs too.
1559         * config/sparc/sparc.c (sparc_expand_move): Don't assume that
1560         _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
1561         VxWorks.
1562         (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
1563         on VxWorks.
1564         (load_pic_register): Use gen_vxworks_load_got for VxWorks.
1565         (sparc_emit_call_insn): New function.
1566         (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
1567         functions when generating VxWorks PIC.
1568         * config/sparc/sparc.md (vxworks_load_got): New pattern.
1569         (call, call_value): Use sparc_emit_call_insn instead of
1570         emit_call_insn.
1571
1572 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
1573
1574         * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
1575
1576 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
1577
1578         * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
1579         for floating-point values if HOST_BITS_PER_LONG > 32.  Use split_double
1580         instead of operand_subword.
1581
1582 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
1583
1584         * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
1585         * config/bfin/bfin.c (bfin_local_alignment): New function.
1586         * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
1587
1588 2007-05-08  Chao-ying Fu  <fu@mips.com>
1589
1590         * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
1591         * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
1592         (smsub_widen_optab, umsub_widen_optab): Define.
1593         * optabs.c (init_optabs): Initialize smsub_widen_optab and
1594         umsub_widen_optab.
1595         * genopinit.c (optabs): Fill in smsub_widen_optab and
1596         umsub_widen_optab.
1597         * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
1598         and umsub_widen_optab to implement multiply-subtract sequences.
1599         * config/mips/mips.md (*msac<u>_di): Rename to...
1600         (<u>msubsidi4): ...this.  Extend condition to include
1601         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
1602         of operand 0 to "ka" and use the three-operand form of msub<u>
1603         for TARGET_DSPR2.
1604         * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
1605         to define_expands.
1606
1607 2007-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
1608
1609         PR rtl-optimization/28011
1610         * reload.c (push_reload): Set dont_share if IN appears in OUT
1611         also when IN is a PLUS rtx.
1612         (reg_overlap_mentioned_for_reload_p): Return true if X and IN
1613         are same PLUS rtx.
1614
1615 2007-05-08  Kazu Hirata  <kazu@codesourcery.com>
1616
1617         * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL.  Don't
1618         call unshare_all_decls.
1619         (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
1620         (unshare_all_decls): Remove.
1621
1622 2007-05-08  Simon Martin  <simartin@users.sourceforge.net>
1623
1624         PR 31847
1625         * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
1626         dumps.
1627
1628 2007-05-08  Sandra Loosemore  <sandra@codesourcery.com>
1629             Nigel Stephens  <nigel@mips.com>
1630
1631         * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
1632         Update comments and all uses.
1633         (MIN_FPRS_PER_FMT): Define.
1634         * config/mips/mips.c (function_arg): Fix to correctly handle
1635         the -mips32r2 -mfp64 -mabi=32 case.
1636         (override_options): Enable use of odd-numbered registers for
1637         SFmode values on MIPS32.
1638         (mips_save_reg_p): Save whole floating-point register pair if
1639         either half is used.
1640         (compute_frame_size): Fix comment.
1641
1642 2007-05-08  Jie Zhang  <jie.zhang@analog.com>
1643
1644         * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
1645         argument of type bool.
1646         * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
1647         argument. Safely select temporary P register according to it.
1648         (do_link): Change call site of add_to_reg accordingly.
1649         (do_unlink): Add epilogue_p as a fourth argument and pass it
1650         to add_to_reg.
1651         (expand_interrupt_handler_epilogue): Change call of do_unlink
1652         accordingly.
1653         (bfin_expand_prologue): Add a third argument sibcall_p.
1654         * config/bfin/bfin.md (epilogue): Change call of
1655         bfin_expand_epilogue accordingly.
1656         (sibcall_epilogue): Likewise.
1657         (eh_return_internal): Likewise.
1658
1659         * config/bfin/bfin-protos.h (enum bfin_cpu): Add
1660         BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
1661         * config/bfin/bfin.c (bfin_handle_option): Handle
1662         -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
1663         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
1664         Support bf534, bf536 and bf561.
1665         * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
1666
1667 2007-05-08  Uros Bizjak  <ubizjak@gmail.com>
1668
1669         PR target/31854
1670         * config/i386/i386.c (ix86_function_regparm): Process local
1671         functions only when TREE_CODE (decl) equals FUNCTION_DECL.
1672
1673 2007-05-07  Mike Stump  <mrs@apple.com>
1674
1675         * doc/invoke.texi (Warning Options): Document that -Wempty-body
1676         also checks for and while statements in C++.
1677
1678 2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>
1679
1680         * gcc.c (at_file_supplied): New variable.
1681         (main): Set it if we expanded argv.
1682         (do_spec_1): Pass an @-file to the linker if we were called with
1683         an @-file argument and HAVE_GNU_LD.
1684         * collect2.c (at_file_supplied): New variable.
1685         (response_file): New variable.
1686         (collect_exit): Unlink response_file if necessary.
1687         (handler): Likewise.
1688         (do_wait): Likewise.
1689         (main): Set at_file_supplied if we expanded argv.
1690         (collect_execute): Pass an @-file to subprocesses if we were called
1691         with an @-file argument.
1692         * configure.ac: Add define for HAVE_GNU_LD.
1693         * configure: Regenerate.
1694         * config.in: Regenerate.
1695
1696 2007-05-07  Naveen.H.S  <naveen.hs@kpitcummins.com>
1697
1698         * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
1699         operand to HI mode.
1700         (mulsi3): New.
1701         (divsi3): New.
1702         (udivsi3): New.
1703
1704 2007-05-07  Jayant Sonar  <jayants@kpitcummins.com>
1705
1706         * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
1707         (TARGET_ENCODE_SECTION_INFO): Re-define.
1708         (m32c_encode_section_info): New
1709         (function_vector_handler): New
1710         (current_function_special_page_vector): New
1711         (m32c_special_page_vector_p): New.
1712         * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
1713         Prototype.
1714         * config/m32c/jump.md: Added instruction JSRS for functions
1715         with attribute "function_vector".
1716         * doc/extend.texi (function_vector): Added description
1717         for M16C, M32C targets.
1718
1719 2007-05-07  DJ Delorie  <dj@redhat.com>
1720
1721         PR 31794
1722         * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
1723         ashrpsi3, lshrpsi3): Update shift count constraint.
1724
1725 2007-05-07  Danny Smith  <dannysmith@users.sourceforge.net>
1726             Nathan Froyd  <froydnj@codesourcery.com>
1727
1728         PR 22133
1729         * c-incpath.c (add_path): Strip trailing path separators.
1730
1731 2007-05-07  Eric Botcazou  <ebotcazou@adacore.com>
1732
1733         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
1734         Free dominance info before purging EH edges.
1735         (eliminate_degenerate_phis): Likewise.
1736         (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
1737
1738 2007-05-07  Jan Hubicka  <jh@suse.cz>
1739
1740         * gimplify.c (gimplify_expr): Do not crash when folding
1741         (void *)(int)&a + 4.
1742
1743 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1744
1745         PR driver/31694
1746         * c-opts.c (lang_fortran): Make it non static.
1747         * c-common.h (lang_fortran): New prototype.
1748         * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
1749         -lang-fortran option was passed by the driver.
1750
1751 2007-05-06  Eric Botcazou  <ebotcazou@adacore.com>
1752
1753         * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
1754         of ASSERT_CHECKING.  Tweak message.
1755
1756 2007-05-06  Revital Eres  <eres@il.ibm.com>
1757
1758         PR 30957
1759         * loop-unroll.c (insert_var_expansion_initialization):
1760         Initialize the expansions with -zero instead of +zero.
1761
1762 2007-05-05  Aurelien Jarno  <aurelien@aurel32.net>
1763
1764         * config/pa/pa.md: Split tgd_load, tld_load and tie_load
1765         into pic and non-pic versions. Mark r19 as used for
1766         tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
1767         for tgd_load, tld_load and tie_load .
1768         * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
1769         version of tgd_load, tld_load and tie_load depending on the
1770         value of flag_pic.
1771
1772 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
1773             Jakub Jelinek  <jakub@redhat.com>
1774
1775         * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
1776         (__do_global_dtors_aux): Use more paranoid loop to run
1777         destructors if HIDDEN_DTOR_LIST_END.
1778         (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
1779
1780 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1781
1782         * varasm.c (align_variable): Don't increase alignment for
1783         DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
1784         DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
1785
1786 2007-05-04  Josh Conner  <jconner@apple.com>
1787
1788         * basic-block.h (cdi_direction): Assign values to all enumeration
1789         constants.
1790         (dom_computed): Remove.
1791         (dom_info_state): New.
1792         (set_dom_info_availability): New.
1793         * tree-ssa-loop-im.c (determine_invariantness): Initialize
1794         walk_data.dom_direction.
1795         * cfghooks.c (delete_basic_block): Use dom_info_available_p()
1796         instead of dom_computed[].
1797         (split_edge): Likewise.
1798         (create_basic_block): Likewise.
1799         (merge_blocks): Likewise.
1800         * ifcvt.c (find_if_header): Likewise.
1801         * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
1802         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1803         * tree-ssa.c (verify_ssa): Likewise.
1804         * tree-cfg.c (tree_verify_flow_info): Likewise.
1805         (remove_edge_and_dominated_blocks): Likewise.
1806         * dominance.c (dom_computed): Make static.
1807         (calc_dfs_tree_nonrec): Change third param to a bool.
1808         (calc_dfs_tree): Change second param to a bool.
1809         (calc_idioms): Change second param to a bool.  Use
1810         dom_convert_dir_to_idx.
1811         (init_dom_info): Validate dir before using.
1812         (dom_convert_dir_to_idx): New.
1813         (calculate_dominance_info): Use dom_convert_dir_to_idx.  New
1814         variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
1815         (free_dominance_info): Use dom_convert_dir_to_idx.
1816         (get_immediate_dominator): Likewise.
1817         (set_immediate_dominator): Likewise.
1818         (get_dominated_by): Likewise.
1819         (redirect_immediate_dominators): Likewise.
1820         (nearest_common_denominator): Likewise.
1821         (dominated_by_p): Likewise.
1822         (bb_dom_dfs_in): Likewise.
1823         (bb_dom_dfs_out): Likewise.
1824         (recount_dominator): Likewise.
1825         (iterate_fix_dominators): Likewise.
1826         (add_to_dominance_info): Likewise.
1827         (delete_from_dominance_info): Likewise.
1828         (first_dom_son): Likewise.
1829         (next_dom_son): Likewise.
1830         (dom_info_available_p): Likewise.
1831         (dom_info_state): New.
1832         (set_dom_info_availability): New.
1833
1834 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
1835
1836         * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
1837         Expander removed.
1838         ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
1839
1840 2007-05-04  Bob Wilson  <bob.wilson@acm.org>
1841
1842         * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
1843         (subdi3, subdi_carry): Delete.
1844
1845 2007-05-04  Jan Hubicka  <jh@suse.cz>
1846             Richard Guenther  <rguenther@suse.de>
1847
1848         * opts.c (decode_options): Do not fiddle with inlining
1849         parameters in case of optimizing for size.
1850         * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
1851         for size do nothing.
1852         (cgraph_decide_inlining_of_small_function): When optimizing for
1853         size never inline functions increasing caller size.
1854         (cgraph_early_inlining): Inline for size when optimizing for size.
1855
1856 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
1857
1858         * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
1859         logical operations piecewise.
1860         (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
1861         zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
1862         subdi_sesidi_di): Delete.
1863         (add_with_carry): Produce carry in CC instead of a DREG to shorten
1864         the generated sequence.  Allow three-reg add in constraints.  Rewrite
1865         the rtl expression for carry to avoid zero_extend of a constant.
1866         (sub_with_carry): New pattern.
1867         (adddi3, subdi3): Change into define_expand.  For subtract, generate a
1868         different sequence not involving jumps.
1869         (notbi): Now a named pattern.
1870
1871 2007-05-04  Bradley Lucier  <lucier@math.purdue.edu>
1872
1873         * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
1874         Add the note about a significant loss of accuracy of some
1875         mathematical routines when these options are used.
1876
1877 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
1878
1879         * haifa-sched.c (rtx_vec_t): New typedef.
1880         (contributes_to_priority_p): Extract piece of priority () into new
1881         static function.
1882         (priority): Use the function.  Add assertion.
1883         (rank_for_schedule, set_priorities): Add assertion to check that
1884         insn's priority is initialized.
1885         (clear_priorities, calc_priorities): Change signature.  Make it update
1886         all relevant insns.  Update all callers ('add_to_speculative_block ()'
1887         and 'create_block_check_twin ()').
1888         * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
1889         Add new field 'priority_status'.
1890         (INSN_PRIORITY_STATUS): New macro.
1891         (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
1892
1893 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
1894
1895         * sched-ebb.c (debug_ebb_dependencies): New static function.
1896         (init_ready_list): Use it.
1897
1898         * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
1899         with changed signature and 'debug_rgn_dependencies ()'.
1900         (debug_rgn_dependencies): New static function.
1901         (init_ready_list): Use it.
1902
1903         * sched-int.h (debug_dependencies): Declare.
1904
1905 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
1906
1907         * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
1908
1909 2007-05-04  Dirk Mueller  <dmueller@suse.de>
1910
1911         * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
1912
1913 2007-05-03  Jan Hubicka  <jh@suse.cz>
1914
1915         * fold-const.c (fold_unary): Convert (T1)(X op Y) into ((T1)X op (T1)Y),
1916         for pointer type in more cases than before.
1917
1918         * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
1919
1920         * tree-object-size.c (plus_expr_object_size): When operand size is
1921         unknown, return unknown.
1922
1923 2007-05-03  Dirk Mueller  <dmueller@suse.de>
1924
1925         * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
1926
1927         * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
1928         options.
1929
1930         * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
1931
1932 2007-05-03  Janis Johnson  <janis187@us.ibm.com>
1933
1934         * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
1935
1936 2007-05-03  Joseph Myers  <joseph@codesourcery.com>
1937
1938         * config/soft-fp/double.h, config/soft-fp/extended.h,
1939         config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
1940         config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
1941         config/soft-fp/op-2.h, config/soft-fp/op-4.h,
1942         config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
1943         glibc CVS.
1944
1945 2007-05-03  Ian Lance Taylor  <iant@google.com>
1946
1947         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
1948         MASK_PPC_GFXOPT for 8540 or 8548.
1949
1950 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
1951
1952         * tree-vect-transform.c (vect_update_inits_of_drs): Use
1953         vect_print_dump_info() to output debug information.
1954
1955 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
1956
1957         PR target/31768
1958         * config/i386/i386.c (print_operand) ['z']: Output 'w' for
1959         operands of size 2 when operand is not MEM_P.
1960
1961 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
1962
1963         PR tree-optimization/30565
1964         * lambda-code.c (perfect_nestify): Fix updating of dominators.
1965
1966 2007-05-03  Bernd Schmidt  <bernd.schmidt@analog.com>
1967
1968         * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
1969         (umulsi3_highpart): Use them.
1970         * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
1971         for final accumulator to D regisster tranfser.
1972
1973 2007-05-03  Dorit Nuzman  <dorit@il.ibm.com>
1974
1975         PR tree-optimization/31699
1976         * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove wrong
1977         code.
1978         (vect_enhance_data_refs_alignment): Compute peel amount using
1979         TYPE_VECTOR_SUBPARTS instead of vf.
1980         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
1981
1982 2007-05-02  Brooks Moses  <brooks.moses@codesourcery.com>
1983
1984         PR bootstrap/31776
1985         * system.h: Remove inclusion of double-int.h
1986         * tree.h: Include double-int.h
1987         * gengtype.c: Likewise
1988         * cfgloop.h: Likewise
1989         * Makefile.in: Adjust dependencies on double-int.h
1990
1991 2007-05-02  Eric Christopher  <echristo@apple.com>
1992
1993         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
1994         -shared to -Zdynamiclib.
1995
1996 2007-05-02  Seongbae Park  <seongbae.park@gmail.com>
1997
1998         PR c++/31663
1999         * c-common.c (strip_pointer_or_array_types): New function.
2000         * c-common.h (strip_pointer_or_array_types): New function declaration.
2001
2002 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
2003
2004         PR tree-optimization/31771
2005         * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
2006
2007 2007-05-02  Paul Brook  <paul@codesourcery.com>
2008
2009         * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
2010
2011 2007-05-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2012
2013         PR middle-end/29715
2014         * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
2015         transformation.
2016
2017 2007-05-02  Nick Clifton  <nickc@redhat.com>
2018
2019         * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
2020
2021 2007-05-02  Richard Guenther  <rguenther@suse.de>
2022
2023         PR tree-optimization/31146
2024         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
2025         argument, single_use_p.  If we have a single use that is
2026         a conversion to the definition rhs type, propagate that rhs.
2027         (forward_propagate_addr_expr): Pass single_use_p argument
2028         to forward_propagate_addr_expr_1.
2029
2030 2007-05-01  H.J. Lu  <hongjiu.lu@intel.com>
2031
2032         * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
2033         variable.
2034
2035 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2036
2037         * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
2038         'AMD Family 10 core'.
2039
2040 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2041
2042         * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
2043         and athlon64-sse3 as improved versions of k8, opteron and athlon64
2044         with SSE3 instruction set support.
2045         * doc/invoke.texi: Likewise.
2046
2047 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2048
2049         * config/i386/i386.c (override_options): Tuning 32-byte loop
2050         alignment for amdfam10 architecture. Increasing the max loop
2051         alignment to 24 bytes.
2052
2053 2007-05-01  Kazu Hirata  <kazu@codesourcery.com>
2054
2055         * config/m68k/constraints.md: New.
2056         * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
2057         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
2058         EXTRA_CONSTRAINT): Remove.
2059         * config/m68k/m68k.md: Include constraints.md.
2060         * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
2061
2062 2007-05-01  Ian Lance Taylor  <iant@google.com>
2063
2064         PR tree-optimization/31739
2065         * tree-vrp.c (vrp_val_is_max): New static function.
2066         (vrp_val_is_min): New static function.
2067         (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
2068         copying the node.
2069         (set_value_range): Use vrp_val_is_{max,min}.
2070         (extract_range_from_assert): Likewise.
2071         (extract_range_from_binary_expr): Likewise.
2072         (extract_range_from_unary_expr): Likewise.
2073         (dump_value_range, vrp_meet): Likewise.
2074         (vrp_visit_phi_node): Likewise.
2075         * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
2076
2077 2007-05-01  Mark Mitchell  <mark@codesourcery.com>
2078
2079         * config/i386/gmon-sol2.c (size_t): New type.
2080         (intptr_t): Likewise.
2081         (s_textsize): Declare as size_t.
2082         (sbrk): Declare.
2083         (monstartup): Use size_t for sizes.
2084         (_mcount): Save and restore registers.
2085         (internal_mcount): Pass 0 as the first argument to monstartup
2086         in 64-bit mode.
2087         (moncontrol): Convert pointer to appropriately sized integer
2088         before passing to profil.
2089
2090 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
2091
2092         * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
2093         __NO_FPRS__, not just if _SOFT_DOUBLE.
2094         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
2095         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
2096         also for E500 double.
2097         * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
2098         suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
2099         && !TARGET_FPRS).
2100
2101 2007-05-01  Richard Guenther  <rguenther@suse.de>
2102
2103         * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
2104         is NULL.
2105
2106 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
2107
2108         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
2109
2110 2007-05-01  Jan Hubicka  <jh@suse.cz>
2111
2112         * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
2113         invariant.
2114
2115 2007-05-01  Jan Hubicka  <jh@suse.cz>
2116
2117         * tree.h (maybe_fold_offset_to_component_ref): Remove.
2118         (maybe_fold_offset_to_reference): Declare.
2119         * fold-const.c (fold_unary): Do not fold
2120         (type *)&A into &A->field_of_type_and_offset_0
2121         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
2122         size is unknown, give up.
2123         (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
2124         offsets.
2125         (maybe_fold_offset_to_reference): New.
2126         (maybe_fold_stmt_indirect): Use it.
2127         (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
2128         * gimplify.c (gimplify_conversion): Canonicalize conversions to
2129         field references.
2130         (gimplify_expr): Likewise for plus_expr.
2131
2132 2007-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
2133
2134         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
2135         bsi_after_labels.  Always insert statements before bsi.
2136         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
2137         * predict.c (apply_return_prediction): Check for empty blocks.
2138         * cfgexpand.c (lab_rtx_for_bb): New variable.
2139         (label_rtx_for_bb): Do not create new tree labels.
2140         (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
2141         (tree_expand_cfg): Initialize lab_rtx_for_bb.
2142         * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
2143         creating edges.
2144         (label_for_bb): Add field used.
2145         (update_eh_label, main_block_label): Mark the label used.
2146         (cleanup_dead_labels): Remove unused labels.
2147
2148 2007-05-01  Richard Guenther  <rguenther@suse.de>
2149
2150         * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
2151         if it is not about to be set.
2152         (get_value_range): Do not pre-allocate equiv bitmap.
2153         (update_value_range): No need to clear equiv field.
2154         (add_equivalence): Change prototype to get bitmap pointer.
2155         Allocate bitmap here if it is not already.
2156         (extract_range_from_assert): Do not allocate bitmap here.
2157         Update callers to add_equivalence.
2158         (extract_range_from_ssa_name): Likewise.
2159         (get_vr_for_comparison): New static helper.
2160         (compare_name_with_value): Handle NULL equiv bitmap by
2161         peeling the first iteration of the comparison loop.
2162         Use get_vr_for_comparison.
2163         (compare_names): Handle NULL equiv bitmaps by using fake
2164         ones.  Use get_vr_for_comparison.
2165
2166 2007-04-30  Brooks Moses  <brooks.moses@codesourcery.com>
2167
2168         * double-int.c (mpz_set_double_int): Moved from
2169         tree-ssa-loop-niter.c.
2170         (mpz_get_double_int): Likewise; also, add option to wrap
2171         out-of-range integers.
2172         * double-int.h: New prototypes for above.
2173         * tree.c (get_static_type_bounds): Moved from
2174         tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
2175         TYPE_MAX_VALUE if they exist..
2176         * tree.h: New prototype for above.
2177         * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
2178         get_type_bounds calls.
2179         (mpz_set_double_int): Move to double-int.c.
2180         (get_type_bounds): Move to tree.c, rename to
2181         get_static_type_bounds.
2182         (mpz_to_double_int): Move to double-int.c, rename to
2183         mpz_get_double_int.
2184
2185 2007-04-30  Bob Wilson  <bob.wilson@acm.org>
2186
2187         * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
2188         DIV0 exception can fall through to a normal return.
2189
2190 2007-04-30  Alexandre Oliva  <aoliva@redhat.com>
2191
2192         PR middle-end/22156
2193         Temporarily revert:
2194         2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
2195         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
2196         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
2197         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
2198         initialize align to silence bogus warning.
2199         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
2200         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
2201         all_no_warning.
2202         (struct sra_walk_fns): Remove use_all parameter from use.
2203         (sra_hash_tree): Handle BIT_FIELD_REFs.
2204         (sra_elt_hash): Don't hash bitfld blocks.
2205         (sra_elt_eq): Skip them in parent compares as well.  Handle
2206         BIT_FIELD_REFs.
2207         (sra_walk_expr): Don't maintain or pass down use_all_p.
2208         (scan_use): Remove use_all parameter.
2209         (scalarize_use): Likewise.  Re-expand assignment to
2210         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
2211         output, and re-scalarize after output.  Don't mark anything
2212         for no warning.
2213         (scalarize_ldst): Adjust.
2214         (scalarize_walk_gimple_modify_statement): Likewise.
2215         (build_element_name_1): Handle BIT_FIELD_REFs.
2216         (instantiate_element): Don't warn for any element whose parent
2217         is used as a whole.
2218         (instantiate_missing_elements_1): Return the sra_elt.
2219         (canon_type_for_field): New.
2220         (try_instantiate_multiple_fields): New.
2221         (instantiate_missing_elemnts): Use them.
2222         (mark_no_warning): Removed.
2223         (generate_one_element_ref): Handle BIT_FIELD_REFs.
2224         (REPLDUP, sra_build_elt_assignment): New.
2225         (generate_copy_inout): Use them.
2226         (generate_element_copy): Likewise.  Handle bitfld differences.
2227         (generate_element_zero): Don't recurse for blocks.  Use
2228         sra_build_elt_assignment.
2229         (generate_one_element_int): Take elt instead of var.  Use
2230         sra_build_elt_assignment.
2231         (generate_element_init_1): Adjust.
2232         (scalarize_use, scalarize_copy): Use REPLDUP.
2233         (scalarize_ldst): Move assert before dereference.
2234         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
2235
2236 2007-04-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2237
2238         PR C++/31721
2239         * tree.c (reconstruct_complex_type): Reconstruct a reference
2240         correctly.
2241         Also use the same mode for the pointer as the old pointer type.
2242
2243 2007-04-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2244
2245         * doc/trouble.texi (Interoperation): Remove note about Ultrix
2246         Fortran compiler.
2247
2248 2007-04-29  Zdenek Dvorak  <dvorakz@suse.cz>
2249
2250         PR rtl-optimization/31676
2251         * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
2252         (df_refs_record): Call it.
2253
2254 2007-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
2255
2256         * rtl.def (SS_ABS): New code.
2257         * config/bfin/bfin.c (print_operand): New modifier 'v'.
2258         (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
2259         BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
2260         BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
2261         (bfin_init_builtins): Define them.
2262         (bdesc_1arg, bdesc_2arg): Add some of them here, ...
2263         (bfin_expand_builtin): ... and handle the others here.
2264         * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
2265         flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
2266         (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
2267         (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
2268         operand is only HImode.
2269
2270 2007-04-29  Steven Bosscher  <steven@gcc.gnu.org>
2271
2272         * regclass.c (scan_one_insn): Remove splitting of
2273         two address insns.
2274
2275 2007-04-28  Sandra Loosemore  <sandra@codesourcery.com>
2276             Nigel Stephens  <nigel@mips.com>
2277
2278         * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
2279
2280 2007-04-28  Jan Hubicka  <jh@suse.cz>
2281
2282         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
2283         insn_locators_alloc instead of insn_locators_initialize;
2284         call reset_block_changes.
2285         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2286         * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
2287         * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
2288         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2289         * config/score/score.c (th_output_mi_thunk): Likewise.
2290         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
2291         * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
2292         tolerate uninitialized locator info.
2293
2294         Re-apply:
2295         * function.c (init_function_start): Don't init line number info.
2296         (expand_function_end): Update.
2297         (reset_block_changes, record_block_change, finalize_block_changes,
2298         check_block_change, free_block_changes): Kill.
2299         * function.h (reset_block_changes, record_block_change,
2300         finalize_block_changes, check_block_change, free_block_changes): Remove
2301         prototypes.
2302         (struct function): Remove ib_boundaries_block.
2303         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
2304         Use curr_insn_locator to initialize locator.
2305         (emit_line_note): Remove.
2306         * cfgexpand.c (expand_gimple_cond_expr): Update.
2307         (construct_exit_block): Likewise.
2308         (tree_expand_cfg): Initialize/finalize locators.
2309         * expr.c (expand_expr_real): Update.
2310         * cfglayout.c (line_locators_locs, line_locators_lines,
2311         file_locators_locs, file_locators_files): Remove.
2312         (set_block_levels): Move to cfgexpand.c.
2313         (insn_locators_initialize): Remove.
2314         (pass_insn_locators_initialize): Remove.
2315         (locations_locators_locs, locations_locators_vals): New static vars.
2316         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
2317         Likewise.
2318         (insn_locators_alloc, insn_locators_finalize,
2319         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
2320         New functions.
2321         (locator_location): New.
2322         (locator_line, locator_file): Rewrite.
2323         * rtl.h (emit_line_note): Kill.
2324         (insn_locators_alloc, insn_locators_finalize,
2325         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
2326         Declare.
2327         * tree-inline.c (initialize_cfun): Do not initialize
2328         ib_boundaries_block.
2329         * passes.c (pass_insn_locators_initialize): Remove.
2330
2331 2007-04-28  Zdenek Dvorak  <dvorakz@suse.cz>
2332
2333         * tree-cfg.c (move_block_to_fn): Release bb from dominance
2334         info.  Update last_basic_block correctly.
2335
2336 2007-04-27  Kaz Kojima  <kkojima@gcc.gnu.org>
2337
2338         PR target/31701
2339         * config/sh/sh.c (output_stack_adjust): Avoid using the frame
2340         register itself to hold the offset constant.  Tell flow the use
2341         of r4 and r5 when they are used.
2342
2343 2007-04-27  Richard Guenther  <rguenther@suse.de>
2344
2345         * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
2346         if we simplified anything.
2347         (tree_ssa_forward_propagate_single_use_vars): Defer overflow
2348         warnings until we did a simplification and the stmt was not
2349         marked as TREE_NO_WARNING.
2350
2351 2007-04-27  Mike Stump  <mrs@apple.com>
2352
2353         * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
2354
2355 2007-04-27  Ian Lance Taylor  <iant@google.com>
2356
2357         PR middle-end/31710
2358         * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
2359         TYPE_MAX_VALUE exist, convert them to the new type.
2360
2361 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
2362
2363         * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
2364         if it claims to be available.
2365         * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
2366         edge is redirected.
2367         (perform_tree_ssa_dce): Always free postdominators.
2368
2369 2007-04-27  Richard Henderson  <rth@redhat.com>
2370
2371         * config/alpha/predicates.md (aligned_memory_operand): Mark
2372         as define_special_predicate.
2373         (unaligned_memory_operand, normal_memory_operand): Likewise.
2374         (reg_or_unaligned_mem_operand): Remove.
2375         (any_memory_operand): Match the documentation and check for
2376         non-renumbered pseudos during reload.
2377         * config/alpha/alpha.c (alpha_secondary_reload): Rename from
2378         alpha_secondary_reload_class, update to new interface, make static.
2379         Handle CQImode like HImode.  Remove FP subreg check.
2380         (alpha_expand_mov): Use replace_equiv_address.
2381         (alpha_expand_mov_nobwx): Use any_memory_operand.
2382         (TARGET_SECONDARY_RELOAD): New.
2383         * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
2384         (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
2385         * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
2386         * config/alpha/alpha.md: ... here.
2387         (RELOAD12, reloadmode): New.
2388         (movcqi): New.
2389         (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
2390         Don't handle the aligned case here.
2391         (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
2392         (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
2393         reload_inhi_help.  Don't expect a scratch register.
2394         (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
2395         reload_outhi_help.
2396         * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
2397
2398 2007-04-27  Richard Guenther  <rguenther@suse.de>
2399
2400         * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
2401
2402 2007-04-27  Richard Guenther  <rguenther@suse.de>
2403
2404         PR tree-optimization/30965
2405         PR tree-optimization/30978
2406         * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
2407         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
2408         (find_equivalent_equality_comparison): Likewise.
2409         (simplify_cond): Likewise.
2410         (get_prop_source_stmt): New helper.
2411         (get_prop_dest_stmt): Likewise.
2412         (can_propagate_from): Likewise.
2413         (remove_prop_source_from_use): Likewise.
2414         (combine_cond_expr_cond): Likewise.
2415         (forward_propagate_comparison): New function.
2416         (forward_propagate_into_cond): Rewrite to use fold for
2417         tree combining.
2418         (tree_ssa_forward_propagate_single_use_vars): Call
2419         forward_propagate_comparison to propagate comparisons.
2420
2421 2007-04-27  Richard Guenther  <rguenther@suse.de>
2422
2423         PR tree-optimization/31715
2424         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
2425         sure to do computation on the offset in an appropriate
2426         signed type.
2427
2428 2007-04-27  Richard Sandiford  <richard@codesourcery.com>
2429
2430         * reload.h (elimination_target_reg_p): Declare.
2431         * reload.c (find_reloads): Don't apply the reg_rtx move
2432         optimization if the SET_DEST satisfies elimination_target_reg_p.
2433         * reload1.c (elimination_target_reg_p): New function.
2434         (gen_reload): In the move/add2 fallback, make sure that op0
2435         does not overlap the destination register.
2436
2437 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
2438
2439         * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
2440         transform only GIMPLE_MODIFY_STMTs.
2441         * tree-complex.c (expand_complex_operations_1): Ditto.
2442         (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
2443         * tree-ssa-loop-manip.c (build_if_stmt): Removed.
2444         (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
2445         branches.
2446         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
2447         tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
2448         * omp-low.c (expand_parallel_call, expand_omp_for_generic,
2449         expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
2450         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
2451         slpeel_add_loop_guard): Ditto.
2452         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
2453         * lambda-code.c (perfect_nestify): Ditto.
2454         * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
2455         before the first statement.
2456         * tree-optimize.c (execute_free_datastructures): Fix comments.
2457         (execute_free_cfg_annotations): Do not call disband_implicit_edges.
2458         * tree-flow.h (disband_implicit_edges): Declaration removed.
2459         * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
2460         branches.
2461         (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle COND_EXPRs
2462         without gotos.
2463         (disband_implicit_edges, has_label_p): Removed.
2464         (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
2465         (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
2466         branches.
2467         * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
2468         side effects.
2469         * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
2470         also for COND_EXPRs.
2471         * cfgexpand.c (label_rtx_for_bb): New function.
2472         (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
2473         Use label_rtx_for_bb to find the labels.
2474         (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
2475         last block.  Detect fallthru edges.
2476
2477 2007-04-26  Ian Lance Taylor  <iant@google.com>
2478
2479         PR target/28675
2480         * reload.c (find_reloads_subreg_address): If the address was valid
2481         in the original mode but not in the new mode, reload the whole
2482         address.
2483
2484 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
2485
2486         * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
2487         (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
2488         (cleanup_control_expr_graph): Do not invalidate dominance info.
2489         Record altered blocks.
2490         (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
2491         (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
2492         cleanup_tree_cfg_bb): New functions.
2493         (remove_forwarder_block): Do not maintain the worklist of blocks.
2494         Record altered blocks.
2495         (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
2496         not over whole cfg.
2497         (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1.  Only call
2498         delete_unreachable_blocks if dominators are not available.
2499         * tree-inline.c (optimize_inline_calls): Free dominance information
2500         earlier.
2501         * tree-flow.h (remove_edge_and_dominated_blocks,
2502         cfgcleanup_altered_bbs): Altered.
2503         * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
2504         blocks.
2505         (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
2506         functions.
2507         (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
2508         do not invalidate dominators.
2509
2510 2007-04-26  Anatoly Sokolov <aesok@post.ru>
2511
2512         * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
2513         ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
2514         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2515         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2516
2517 2007-04-26  Steve Ellcey  <sje@cup.hp.com>
2518
2519         * config/ia64/ia64.md (ip_value):  Fix itanium_class attribute.
2520
2521 2007-04-26  Richard Guenther  <rguenther@suse.de>
2522
2523         PR tree-optimization/31703
2524         * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
2525         the right type for the target of the bittest.
2526
2527 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
2528
2529         * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
2530         ix86_sol10_return_in_memory.
2531
2532 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
2533
2534         * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
2535         variables.
2536
2537 2007-04-26  Jakub Jelinek  <jakub@redhat.com>
2538
2539         PR c++/31598
2540         * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
2541
2542         PR tree-optimization/30558
2543         * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
2544         clear this_state.prev_try.
2545
2546 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
2547             Mark Mitchell  <mark@codesourcery.com>
2548
2549         * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
2550         * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
2551         * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
2552
2553 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
2554
2555         PR driver/31107
2556         * doc/invoke.texi (%:print-asm-header): Document.
2557         * gcc.c (asm_options): Use %:print-asm-header() for --target-help
2558         and -ftarget-help.
2559         (static_spec_functions): Add print-asm-header.
2560         (main): Print a banner before the --target-help linker options.
2561         (print_asm_header_spec_function): New function.
2562
2563 2007-04-25  Kaz Kojima  <kkojima@gcc.gnu.org>
2564
2565         PR target/31403
2566         * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
2567         (movsf_ie): Likewise.
2568
2569 2007-04-25  Paolo Carlini  <pcarlini@suse.de>
2570
2571         * doc/extend.texi ([Type Traits]): Adjust per N2255.
2572
2573 2007-04-25  Bob Wilson  <bob.wilson@acm.org>
2574
2575         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an exception
2576         for divide-by-zero.
2577         (__umodsi3, __modsi3): Likewise.
2578
2579 2007-04-25  Dirk Mueller  <dmueller@suse.de>
2580
2581         * c-typeck.c (build_compound_expr): Annotate warning()
2582         call with OPT_Wunused_value.
2583         * tree-ssa.c (warn_uninit): Annotate warning with
2584         OPT_Wunintialized.
2585         * c-common.c (handle_sentinel_attribute): Annotate warning
2586         call with OPT_Wattributes.
2587
2588 2007-04-25  Thiemo Seufer  <ths@mips.com>
2589
2590         * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
2591         (mips16): Fix typo.
2592         * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
2593         on to the assembler.  Improve handling of -mno-mips16.  Add handling
2594         of -mno-mips3d, -mno-dsp, -mno-dspr2.
2595         * doc/invoke.texi (MIPS Options): Whitespace cleanup.  Fix wrong use
2596         of @itemx.  Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
2597         -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
2598
2599 2007-04-25  Danny Smith  <dannysmith.users.sourceforge.net>
2600
2601         PR target/31680
2602         * config/i386/winnt.c (i386_pe_file_end): Strip only
2603         USER_LABEL_PREFIX when writing export name.
2604
2605 2007-04-25  Richard Sandiford  <richard@codesourcery.com>
2606
2607         * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h.  Include
2608         sh/elf.h, vx-common.h and vxworks.h.
2609         * config/sh/sh.h: Include config/vxworks-dummy.h.
2610         (SUBTARGET_OVERRIDE_OPTIONS): Define.
2611         (OVERRIDE_OPTIONS): Use it.
2612         * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
2613         (vxworks_picreg): New pattern.
2614         * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2615         VXWORKS_OS_CPP_BUILTINS.
2616         (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
2617         to their VXWORKS_* equivalents.
2618         (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
2619         (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
2620         * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
2621         (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
2622         * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
2623         -mrtp/-fPIC multilibs.
2624         (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
2625         (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
2626         (MULTILIB_OSDIRNAMES): Delete.
2627
2628 2007-04-25  Anatoly Sokolov <aesok@post.ru>
2629
2630         PR target/18989
2631         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
2632
2633 2007-04-24  Brooks Moses  <brooks.moses@codesourcery.com>
2634
2635         * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
2636         rounding mode to be specified by the caller.
2637         (real_to_mpfr) Likewise.
2638         * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
2639         include new arguments.
2640         * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
2641
2642 2007-04-24  Ian Lance Taylor  <iant@google.com>
2643
2644         PR tree-optimization/31605
2645         * tree-vrp.c (set_value_range): Check that min and max are not
2646         both overflow infinities.
2647         (set_value_range_to_value): New static function.
2648         (extract_range_from_binary_expr): Call set_value_range_to_value.
2649         (extract_range_from_cond_expr): Likewise.
2650         (extract_range_from_expr): Likewise.
2651         (extract_range_from_unary_expr): Likewise.  Don't create a range
2652         which overflows on both sides.
2653         (vrp_meet): Check for a useless range.
2654         (vrp_visit_phi_node): If we see a constant which looks like an
2655         overflow infinity, turn off the TREE_OVERFLOW flag.
2656
2657 2007-04-24  Ian Lance Taylor  <iant@google.com>
2658
2659         * flow.c (elim_reg_cond): Handle a comparison of a subreg.
2660
2661 2007-04-24  Simon Martin  <simartin@users.sourceforge.net>
2662
2663         PR diagnostic/25923
2664         * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
2665         diagnostic message is being built.
2666         * tree-pretty-print.c (dump_generic_node): Only write the
2667         formatted text into BUFFER's stream if we are not building a
2668         diagnostic message.
2669         * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
2670         dump_generic_node.
2671         * Makefile.in (toplev.o): Depend on tree-pass.h.
2672
2673 2007-04-24  Ian Lance Taylor  <iant@google.com>
2674
2675         PR tree-optimization/31602
2676         * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
2677         conditionals in the copied loop header.
2678         * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
2679         warnings if TREE_NO_WARNING is set.
2680         * doc/invoke.texi (Warning Options): Clarify that
2681         -Wstrict-overflow does not warn about loops.
2682
2683 2007-04-24  Janis Johnson  <janis187@us.ibm.com>
2684
2685         * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
2686         expand on the comment about _Decimal128 arguments and check the
2687         integer result of the modulus operation; for 64-bit ELF ABI, ensure
2688         that _Decimal128 argument uses even/odd register pair.
2689         (function_arg): Ditto.
2690
2691 2007-04-24  Hui-May Chang <hm.chang@apple.com>
2692
2693         * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
2694         instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
2695
2696 2007-04-24  Richard Guenther  <rguenther@suse.de>
2697             Olga Golovanevsky  <olga@il.ibm.com>
2698
2699         * fold-const.c (multiple_of_p): Check for bottom
2700         to be zero.
2701
2702 2007-04-24  Richard Henderson  <rth@redhat.com>
2703
2704         * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
2705         IS_IBM_EXTENDED.  Also define in terms of WIDEST_HARDWARE_FP_SIZE.
2706         * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
2707         looking for non-zero bits shifted out.  Avoid a recursive call
2708         when constructing the scalar.
2709         (__floatundisf): Likewise.
2710
2711 2007-04-24  Nathan Froyd  <froydnj@codesourcery.com>
2712
2713         * dwarf2out.c (field_byte_offset): Move the existing logic
2714         under the control of PCC_BITFIELD_TYPE_MATTERS and just use
2715         the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
2716
2717 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
2718
2719         PR target/31641
2720         * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant length
2721         argument of 0 for memset.
2722         (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
2723         unsigned shift instead of the signed variant.
2724
2725 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
2726
2727         * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
2728         "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
2729         "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
2730         "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
2731         "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
2732         "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
2733         "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
2734         "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
2735         "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
2736         ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
2737         "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
2738         "mul<mode>3", "div<mode>3"): Insn definitions added.
2739         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
2740         "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
2741         to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
2742         ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
2743         "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
2744         "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
2745         ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
2746         * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
2747         TARGET_FLOAT_FORMAT): Macro definitions removed.
2748         (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
2749         * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
2750         z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
2751         (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
2752         (s390_gen_rtx_const_DI): Function removed.
2753         * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
2754
2755 2007-04-24  Richard Sandiford  <richard@codesourcery.com>
2756
2757         * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
2758         over an external ffs function.
2759
2760 2007-04-24  Chao-ying Fu  <fu@mips.com>
2761             Richard Sandiford  <richard@nildram.co.uk>
2762
2763         * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
2764         * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
2765         (smadd_widen_optab, umadd_widen_optab): Define.
2766         * optabs.c (init_optabs): Initialize smadd_widen_optab and
2767         umadd_widen_optab.
2768         * genopinit.c (optabs): Fill in smadd_widen_optab and
2769         umadd_widen_optab.
2770         * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
2771         and umadd_widen_optab to implement multiply-add sequences.
2772         * config/mips/mips.md (*<su>mul_acc_di): Rename to...
2773         (<u>maddsidi4): ...this.  Extend condition to include
2774         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
2775         of operand 0 to "ka" and use the three-operand form of madd<u>
2776         for TARGET_DSPR2.
2777         * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
2778         to define_expands.
2779         * config/mips/constraints.md (ka): New register constraint.
2780
2781 2007-04-24  Jan Hubicka  <j@suse.cz>
2782
2783         Revert:
2784
2785         2007-04-23  Jan Hubicka  <jh@suse.cz>
2786         * function.c (init_function_start): Don't init line number info.
2787         (expand_function_end): Update.
2788         (reset_block_changes, record_block_change, finalize_block_changes,
2789         check_block_change, free_block_changes): Kill.
2790         * function.h (reset_block_changes, record_block_change,
2791         finalize_block_changes, check_block_change, free_block_changes): Remove
2792         prototypes.
2793         (struct function): Remove ib_boundaries_block.
2794         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
2795         Use curr_insn_locator to initialize locator.
2796         (emit_line_note): Remove.
2797         * cfgexpand.c (expand_gimple_cond_expr): Update.
2798         (construct_exit_block): Likewise.
2799         (tree_expand_cfg): Initialize/finalize locators.
2800         * expr.c (expand_expr_real): Update.
2801         * cfglayout.c (line_locators_locs, line_locators_lines,
2802         file_locators_locs, file_locators_files): Remove.
2803         (set_block_levels): Move to cfgexpand.c.
2804         (insn_locators_initialize): Remove.
2805         (pass_insn_locators_initialize): Remove.
2806         (locations_locators_locs, locations_locators_vals): New static vars.
2807         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
2808         Likewise.
2809         (insn_locators_alloc, insn_locators_finalize,
2810         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
2811         New functions.
2812         (locator_location): New.
2813         (locator_line, locator_file): Rewrite.
2814         * rtl.h (emit_line_note): Kill.
2815         (insn_locators_alloc, insn_locators_finalize,
2816         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
2817         Declare.
2818         * tree-inline.c (initialize_cfun): Do not initialize
2819         ib_boundaries_block.
2820         * passes.c (pass_insn_locators_initialize): Remove.
2821
2822 2007-04-24  Daniel Franke  <franke.daniel@gmail.com>
2823
2824         * doc/invoke.texi: Removed leading '-' from option index entries.
2825
2826 2007-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
2827
2828         * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
2829         Use phi_nodes_ptr.
2830         (create_phi_node): Use set_phi_nodes.
2831         * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
2832         * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
2833         (combine_blocks):  Use bb_stmt_list and set_bb_stmt_list.
2834         * tree-flow-inline.h (phi_nodes, set_phi_nodes,
2835         (bsi_start, bsi_last): Use bb_stmt_list.
2836         (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
2837         * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
2838         Traverse the statements using tsi iterator.
2839         * basic-block.h (struct basic_block_def): Fields stmt_list
2840         and phi_nodes moved to ...
2841         (struct tree_bb_info): ... new structure.
2842         * tree-cfg.c (create_bb): Allocate il.tree.  Use set_bb_stmt_list.
2843         (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
2844         (remove_bb): Handle blocks with NULL stmt list.  Clear il.tree field.
2845         (tree_verify_flow_info): Verify that il.tree is not set for
2846         entry and exit block.
2847         (tree_split_block): Use set_bb_stmt_list.
2848
2849 2007-04-23  Mike Stump  <mrs@apple.com>
2850
2851         * config/i386/i386.c (ix86_tune_features
2852         [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
2853         nocona and core2.
2854
2855 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2856
2857         * config/i386/i386.md (prefix_extra): New attribute.
2858         (length): Add prefix_extra.
2859
2860         * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
2861         (sse2_movntv2di): Likewise.
2862         (sse2_cvtps2dq): Likewise.
2863         (sse2_cvtpd2pi): Likewise.
2864         (sse2_cvttpd2pi): Likewise.
2865         (*sse2_cvtpd2ps): Likewise.
2866         (*add<mode>3): Likewise.
2867         (sse2_ssadd<mode>3): Likewise.
2868         (sse2_usadd<mode>3): Likewise.
2869         (*sub<mode>3): Likewise.
2870         (sse2_sssub<mode>3): Likewise.
2871         (sse2_ussub<mode>3): Likewise.
2872         (*mulv8hi3): Likewise.
2873         (*smulv8hi3_highpart): Likewise.
2874         (*umulv8hi3_highpart): Likewise.
2875         (sse2_umulv2siv2di3): Likewise.
2876         (sse2_pmaddwd): Likewise.
2877         (ashr<mode>3): Likewise.
2878         (lshr<mode>3): Likewise.
2879         (ashl<mode>3): Likewise.
2880         (sse2_ashlti3): Likewise.
2881         (sse2_lshrti3): Likewise.
2882         (*umaxv16qi3): Likewise.
2883         (*smaxv8hi3): Likewise.
2884         (*uminv16qi3): Likewise.
2885         (*sminv8hi3): Likewise.
2886         (sse2_eq<mode>3): Likewise.
2887         (sse2_gt<mode>3): Likewise.
2888         (*and<mode>3): Likewise.
2889         (sse2_nand<mode>3): Likewise.
2890         (*ior<mode>3): Likewise.
2891         (*xor<mode>3): Likewise.
2892         (sse2_packsswb): Likewise.
2893         (sse2_packssdw): Likewise.
2894         (sse2_packuswb): Likewise.
2895         (sse2_punpckhbw): Likewise.
2896         (sse2_punpcklbw): Likewise.
2897         (sse2_punpckhwd): Likewise.
2898         (sse2_punpcklwd): Likewise.
2899         (sse2_punpckhdq): Likewise.
2900         (sse2_punpckldq): Likewise.
2901         (sse2_punpckhqdq): Likewise.
2902         (sse2_punpcklqdq): Likewise.
2903         (*sse2_pinsrw): Likewise.
2904         (*sse2_pextrw): Likewise.
2905         (sse2_pshufd_1): Likewise.
2906         (sse2_uavgv16qi3): Likewise.
2907         (sse2_uavgv8hi3): Likewise.
2908         (sse2_psadbw): Likewise.
2909         (sse2_pmovmskb): Likewise.
2910         (*sse2_maskmovdqu): Likewise.
2911         (*sse2_maskmovdqu_rex64): Likewise.
2912         (sse4a_extrqi): Likewise.
2913         (sse4a_extrq): Likewise.
2914         (sse3_lddqu): Set prefix_rep.
2915         (sse3_addsubv4sf3): Likewise.
2916         (sse3_haddv4sf3): Likewise.
2917         (sse3_hsubv4sf3): Likewise.
2918         (sse_cvtss2si): Likewise.
2919         (sse_cvtss2si_2): Likewise.
2920         (sse_cvtss2siq): Likewise.
2921         (sse_cvtss2siq_2): Likewise.
2922         (sse_cvttss2si): Likewise.
2923         (sse_cvttss2siq): Likewise.
2924         (sse2_cvttps2dq): Likewise.
2925         (sse3_movshdup): Likewise.
2926         (sse3_movsldup): Likewise.
2927         (sse2_cvtsd2si): Likewise.
2928         (sse2_cvtsd2si_2): Likewise.
2929         (sse2_cvtsd2siq): Likewise.
2930         (sse2_cvtsd2siq_2): Likewise.
2931         (sse2_cvttsd2si): Likewise.
2932         (sse2_cvttsd2siq): Likewise.
2933         (*sse2_cvtpd2dq): Likewise.
2934         (*sse2_cvttpd2dq): Likewise.
2935         (sse2_pshuflw_1): Likewise.
2936         (sse2_pshufhw_1): Likewise.
2937         (sse4a_insertqi): Likewise.
2938         (sse4a_insertq): Likewise.
2939         (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
2940         (ssse3_phadddv4si3): Likewise.
2941         (ssse3_phaddswv8hi3): Likewise.
2942         (ssse3_phsubwv8hi3): Likewise.
2943         (ssse3_phsubdv4si3): Likewise.
2944         (ssse3_phsubswv8hi3): Likewise.
2945         (ssse3_pmaddubswv8hi3): Likewise.
2946         (ssse3_pmulhrswv8hi3): Likewise.
2947         (ssse3_pshufbv16qi3): Likewise.
2948         (ssse3_psign<mode>3): Likewise.
2949         (ssse3_palignrti): Likewise.
2950         (abs<mode>2): Likewise.
2951         (ssse3_phaddwv4hi3): Set prefix_extra.
2952         (ssse3_phadddv2si3): Likewise.
2953         (ssse3_phaddswv4hi3): Likewise.
2954         (ssse3_phsubwv4hi3): Likewise.
2955         (ssse3_phsubdv2si3): Likewise.
2956         (ssse3_phsubswv4hi3): Likewise.
2957         (ssse3_pmaddubswv4hi3): Likewise.
2958         (ssse3_pmulhrswv4hi3): Likewise.
2959         (ssse3_pshufbv8qi3): Likewise.
2960         (ssse3_psign<mode>3): Likewise.
2961         (ssse3_palignrdi): Likewise.
2962         (abs<mode>2): Likewise.
2963         (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
2964         (*vec_dupv2df): Set mode to V2DF instead of V4SF.
2965         (sse2_pmovmskb): Set mode to SI instead of V2DF.
2966
2967 2007-04-23  Nick Clifton  <nickc@redhat.com>
2968
2969         * params.def: Fix formatting of emacs local variables.
2970
2971 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
2972
2973         * config/i386/sse.md (sse2_stored): Don't split to inter-unit
2974         move if inter-unit move isn't allowed.
2975         Don't split moving the first element of V2DI to DI to inter-unit
2976         move if inter-unit move isn't allowed.
2977
2978 2007-04-23  Richard Guenther  <rguenther@suse.de>
2979
2980         * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
2981         and CDI_POST_DOMINATORS separately.
2982
2983 2007-04-23  Nick Clifton  <nickc@redhat.com>
2984
2985         * c.opt (Wformat-contains-nul): Add warning attribute.
2986
2987 2007-04-23  Jan Hubicka  <jh@suse.cz>
2988
2989         * function.c (init_function_start): Don't init line number info.
2990         (expand_function_end): Update.
2991         (reset_block_changes, record_block_change, finalize_block_changes,
2992         check_block_change, free_block_changes): Kill.
2993         * function.h (reset_block_changes, record_block_change,
2994         finalize_block_changes, check_block_change, free_block_changes): Remove
2995         prototypes.
2996         (struct function): Remove ib_boundaries_block.
2997         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
2998         Use curr_insn_locator to initialize locator.
2999         (emit_line_note): Remove.
3000         * cfgexpand.c (expand_gimple_cond_expr): Update.
3001         (construct_exit_block): Likewise.
3002         (tree_expand_cfg): Initialize/finalize locators.
3003         * expr.c (expand_expr_real): Update.
3004         * cfglayout.c (line_locators_locs, line_locators_lines,
3005         file_locators_locs, file_locators_files): Remove.
3006         (set_block_levels): Move to cfgexpand.c.
3007         (insn_locators_initialize): Remove.
3008         (pass_insn_locators_initialize): Remove.
3009         (locations_locators_locs, locations_locators_vals): New static vars.
3010         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
3011         Likewise.
3012         (insn_locators_alloc, insn_locators_finalize,
3013         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
3014         New functions.
3015         (locator_location): New.
3016         (locator_line, locator_file): Rewrite.
3017         * rtl.h (emit_line_note): Kill.
3018         (insn_locators_alloc, insn_locators_finalize,
3019         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
3020         Declare.
3021         * tree-inline.c (initialize_cfun): Do not initialize
3022         ib_boundaries_block.
3023         * passes.c (pass_insn_locators_initialize): Remove.
3024
3025 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3026
3027         PR middle-end/31448
3028         * expr.c (reduce_to_bit_field_precision): Handle
3029         CONST_INT rtx's.
3030
3031 2007-04-22  Uros Bizjak  <ubizjak@gmail.com>
3032
3033         PR tree-optimization/24659
3034         * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
3035         OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
3036         (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
3037         * genopinit.c (optabs): Rename vec_pack_mod_optab
3038         to vec_pack_trunc_optab.
3039         * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
3040         early for scalar floating point operands for NOP_EXPR.
3041         (vectorizable_type_promotion): Ditto.
3042         * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
3043         vec_pack_trunc_optab.
3044         (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
3045
3046         * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
3047         * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
3048         Rename from VEC_PACK_MOD_EXPR.
3049         (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
3050         * expr.c (expand_expr_real_1): Ditto.
3051         * tree-inline.c (estimate_num_insns_1): Ditto.
3052         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
3053
3054         * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
3055         (vec_unpacks_lo_v4sf): Ditto.
3056         (vec_pack_trunc_v2df): Ditto.
3057         (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
3058         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
3059         (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
3060
3061         * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
3062         vec_pack_mod_v8hi.
3063         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
3064
3065         * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
3066         Rename from VEC_PACK_MOD_EXPR.  This expression also represent
3067         packing of floating point operands.
3068         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
3069         represent unpacking of floating point operands.
3070         * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
3071         [vec_unpacks_hi]: Ditto.
3072         [vec_unpacks_lo]: Ditto.
3073
3074 2007-04-22  Jan Hubicka  <jh@suse.cz>
3075
3076         * final.c (rest_of_handle_final): Call
3077         targetm.asm_out.constructor/targetm.asm_out.destructor
3078         * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
3079         proper priority via decl_*_priority_insert.
3080         * c-common.c (c_expand_body): Likewise.
3081
3082 2007-04-22  Richard Guenther  <rguenther@suse.de>
3083
3084         PR tree-optimization/29789
3085         * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
3086         (rewrite_reciprocal): New helper split out from
3087         determine_invariantness_stmt.
3088         (rewrite_bittest): Likewise.
3089         (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
3090         A & (1 << B) if (1 << B) is loop invariant but (A >> B)
3091         is not.
3092
3093 2007-04-22  Revital Eres  <eres@il.ibm.com>
3094
3095         * loop-unroll.c (var_to_expand): New field to support also
3096         insns of the form x = something + x.
3097         (analyze_insn_to_expand_var): Use it.
3098         (expand_var_during_unrolling): Likewise.
3099
3100 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
3101
3102         * predict.c: Include pointer-set.h.
3103         (bb_predictions): New variable.
3104         (tree_predicted_by_p, tree_predict_edge,
3105         remove_predictions_associated_with_edge): Use bb_predictions map
3106         instead of bb->predictions.
3107         (clear_bb_predictions, assert_is_empty): New functions.
3108         (combine_predictions_for_bb): Use bb_predictions map.  Call
3109         clear_bb_predictions.
3110         (tree_estimate_probability): Create and free bb_predictions map.
3111         * Makefile.in (predict.o): Add pointer-set.h dependency.
3112         * basic-block.h (struct basic_block_def): Remove predictions
3113         field.
3114         * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
3115
3116 2007-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
3117
3118         PR target/31480
3119         * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
3120         is null.
3121
3122 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3123
3124         * timevar.c (timevar_print): Change reference of --disable-checking to
3125         --enable-checking=release.  Also warn if assert checking is disabled.
3126
3127 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3128
3129         PR C/30265
3130         * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
3131         decl as addressable if the compound literal was marked as
3132         addressable.
3133         Mark the decl as a gimple register if it is a complex or
3134         vector decl and does not live in memory.
3135
3136 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3137
3138         * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
3139         (GENERIC_NEXT): New function macro.
3140         (PHI_CHAIN): Use phi_node's new chain variable.
3141         (tree_phi_node): Change tree_common to tree_base
3142         and add the chain field.
3143         * tree-phinodes.c (make_phi_node): Don't set
3144         TREE_TYPE on the new node.
3145         * c-decl.c (lang_tree_node): Use GENERIC_NEXT
3146         instead of checking GIMPLE_TUPLE_P in chain_next.
3147         * tree-vect-transform.c
3148         (get_initial_def_for_induction): Look at
3149         PHI_RESULT_TREE for the type of the phi node.
3150         (update_vuses_to_preheader): Use PHI_CHAIN
3151         instead of TREE_CHAIN on the phi node.
3152         * tree-ssa-structalias.c (compute_points_to_sets):
3153         Likewise.
3154         (ipa_pta_execute): Likewise.
3155
3156 2007-04-21  Richard Guenther  <rguenther@suse.de>
3157
3158         PR middle-end/31136
3159         * fold-const.c (fold_unary): Call fold_convert_const on the
3160         original tree.
3161
3162 2007-04-21  Alexandre Oliva  <aoliva@redhat.com>
3163
3164         * gcse.c (store_killed_in_insn): Handle PARALLELs.
3165         (store_killed_in_pat): New.
3166
3167 2007-04-20  Richard Henderson  <rth@redhat.com>
3168
3169         PR target/31628
3170         * config/i386/i386.c (type_has_variadic_args_p): Look for any
3171         TREE_LIST with a void_type_node value, not void_list_node exactly.
3172
3173 2007-04-21  Douglas Gregor  <doug.gregor@gmail.com>
3174
3175         * doc/standards.texi: Re-arrange into language-specific
3176         subsections. Add a C++ section, documenting which standards we
3177         support.
3178
3179 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
3180
3181         * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
3182         * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
3183
3184 2007-04-20  Daniel Jacobowitz  <dan@codesourcery.com>
3185
3186         * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
3187         ecrti.o and crtbegin.o.
3188         (LIB_DEFAULT_SPEC): Include -lc.
3189         (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
3190
3191 2007-04-20  Richard Henderson  <rth@redhat.com>
3192
3193         PR target/28623
3194         * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
3195         argument; update all callers.
3196         (get_unaligned_offset): New.
3197         * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
3198         get_unaligned_address, just pass on the address directly.
3199         (unaligned_extendqidi): Use gen_lowpart instead of open-coding
3200         the subreg in the helper patterns.
3201         (unaligned_extendqidi_le): Use get_unaligned_offset.
3202         (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
3203         (unaligned_extendhidi_be): Likewise.
3204         (unaligned_extendhidi): Tidy.
3205         * config/alpha/alpha-protos.h: Update.
3206
3207 2007-04-20  Richard Henderson  <rth@redhat.com>
3208
3209         * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
3210         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
3211         * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
3212         * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
3213         * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
3214         (CPP_SPEC): Don't include %(cpp_subtarget).
3215         * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
3216         (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
3217         * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
3218
3219 2007-04-20  Jakub Jelinek  <jakub@redhat.com>
3220
3221         * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
3222         for __builtin_ia32_cmpordss.
3223
3224         PR tree-optimization/31632
3225         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
3226         and arg1 for optimizations of comparison against min/max values.
3227         Fold arg0 to arg1's type for optimizations of comparison against
3228         min+1 and max-1 values.
3229
3230 2007-04-19  Bernd Schmidt  <bernd.schmidt@analog.com>
3231
3232         * reload.c (combine_reloads): When trying to use a dying register,
3233         check whether it's uninitialized and don't use if so.
3234
3235 2007-04-19  Brooks Moses  <brooks.moses@codesourcery.com>
3236
3237         * fold-const.c: Remove prototypes for native_encode_expr and
3238         native_interpret_expr.
3239         (native_encode_expr): Make non-static.
3240         (native_interpret_expr): Likewise.
3241         * tree.h: Add prototypes for the above.
3242
3243 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
3244
3245         * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
3246         *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
3247         *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
3248         spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
3249         tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
3250         Add length attributes.
3251
3252 2007-04-19  Janis Johnson  <janis187@us.ibm.com>
3253
3254         * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
3255         not that it is 1.
3256
3257         * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
3258         __STDC_WANT_DEC_FP__.
3259
3260 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
3261
3262         * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
3263         for long double compatibility.
3264         * configure: Regenerate.
3265
3266 2007-04-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
3267
3268         PR rtl-optimization/29841
3269         * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
3270         trap instructions.
3271         * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
3272         that may cause control flow transfer from being moved.
3273
3274 2007-04-18  Jan Hubicka  <jh@suse.cz>
3275
3276         * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
3277         types.
3278
3279 2007-04-18  Eric Christopher  <echristo@apple.com>
3280
3281         * config/rs6000/darwin.md (load_macho_picbase): Use link register
3282         only. Update operands.
3283         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
3284         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
3285         link register to pic register.
3286
3287 2007-04-18  Dirk Mueller  <dmueller@suse.de>
3288
3289         PR diagnostic/31227
3290         * tree-vrp.c (search_for_addr_array): New.
3291         (check_array_bounds): Suppress warning about
3292         address taken of array refs if its not de-referenced.
3293
3294 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
3295
3296         * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
3297         * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
3298
3299         * tree-vectorizer.h (NITERS_KNOWN_P): New.
3300         * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
3301         instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
3302
3303         * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
3304         dump print.
3305         (vect_analyze_operations): Fix indenetation.  Fix a comment.  Fix a
3306         print message.
3307         (vect_analyze_scalar_cycles): Fix indentation.
3308         (vect_enhance_data_refs_alignment): Fix check in case of peeling.
3309         (vect_mark_relevant): Include phis in relevance analysis.
3310
3311         * tree-vect-transform.c (vect_transform_loop): Add an assert.
3312
3313 2007-04-18  Anatoly Sokolov <aesok@post.ru>
3314
3315         * config/avr/avr.c (ptrreg_to_str): Replace error() with
3316         output_operand_lossage().
3317
3318 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
3319
3320         * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
3321         the unused code for reduction without adjust-in-epilog to simplify the
3322         function.
3323
3324 2007-04-18  Wolfgang Gellerich  <gellerich@de.ibm.com>
3325
3326         * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
3327         (S390_TDC_NEGATIVE_ZERO): New constant.
3328         (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
3329         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
3330         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
3331         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
3332         (S390_TDC_POSITIVE_INFINITY): New constant.
3333         (S390_TDC_NEGATIVE_INFINITY): New constant.
3334         (S390_TDC_POSITIVE_QUIET_NAN): New constant.
3335         (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
3336         (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
3337         (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
3338         (S390_TDC_INFINITY): New constant.
3339         * config/s390/s390.c (s390_canonicalize_comparison): Renamed
3340         UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
3341         optimization for UNSPEC_CCZ_TO_INT.
3342         * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
3343         ("*ccz_to_int"): New insn.
3344         ("isinf<mode>2"): New insn.
3345         (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
3346         (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
3347         (UNSPEC_CCZ_TO_INT): New constant.
3348
3349 2007-04-18  Richard Guenther  <rguenther@suse.de>
3350
3351         PR tree-optimization/19431
3352         PR tree-optimization/21463
3353         * tree-pass.h (pass_phiprop): Declare.
3354         * passes.c (init_optimization_passes): New phiprop pass.
3355         * tree-ssa-forwprop.c (struct phiprop_d): New structure.
3356         (phivn_valid_p): New helper function.
3357         (phiprop_insert_phi): Likewise.
3358         (propagate_with_phi): Likewise.
3359         (tree_ssa_phiprop): New propagator propagating loads
3360         through phi nodes if profitable.
3361
3362 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
3363
3364         * tree-vect-analyze.c (process_use): New function.
3365         (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
3366         Check phis in all bbs.
3367         * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
3368         assert.
3369
3370 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
3371
3372         * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
3373         we use REG_EQUAL.
3374
3375 2007-04-17  Anatoly Sokolov <aesok@post.ru>
3376
3377         PR target/30483
3378         * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
3379         error().
3380
3381 2007-04-17  H.J. Lu  <hongjiu.lu@intel.com>
3382
3383         * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
3384         on "0".
3385         (sse_vmmulv4sf3): Likewise.
3386         (sse2_vmaddv2df3): Likewise.
3387         (sse2_vmmulv2df3): Likewise.
3388
3389 2007-04-17  Zdenek Dvorak  <dvorakz@suse.cz>
3390
3391         PR rtl-optimization/31360
3392         * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
3393         (target_reg_cost): New.
3394         (init_set_costs): Initialize target_reg_cost.  Add comments
3395         regarding the rationale of the costs.
3396         (global_cost_for_size): Renamed to...
3397         (estimate_reg_pressure_cost): ... and simplify.  Decrease importance
3398         of register pressure.
3399         * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
3400         estimate_reg_pressure_cost.  Add number of ivs.
3401         (determine_set_costs): Dump target_reg_cost.
3402         * loop-invariant.c (gain_for_invariant):  Use
3403         estimate_reg_pressure_cost.  Removed n_inv_uses argument.
3404         (best_gain_for_invariant, find_invariants_to_move): Remove
3405         n_inv_uses.
3406         * cfgloop.h (target_small_cost, target_pres_cost): Removed.
3407         (target_reg_cost): Declare.
3408         (global_cost_for_size): Declaration removed.
3409         (estimate_reg_pressure_cost): Declare.
3410
3411 2007-04-17  Peter Bergner  <bergner@vnet.ibm.com>
3412
3413         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
3414         regnos into even/odd register pairs.
3415         * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
3416         TDmode similar to the other floating point modes.
3417         [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
3418         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
3419         define_expand's.
3420         (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
3421         nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
3422         (movdd_hardfloat64): Use TARGET_MFPGPR.
3423
3424 2007-04-17  Bernd Schmidt  <bernd.schmidt@analog.com>
3425
3426         * reload1.c (delete_output_reload): Don't count output in n_inherited.
3427
3428         Revert
3429         2005-01-05  Richard Henderson  <rth@redhat.com>
3430         PR rtl-opt/10692
3431         * reload1.c (do_input_reload): Restrict the optimization deleteing
3432         a previous output reload to RELOAD_FOR_INPUT.
3433
3434 2007-04-17  Dorit Nuzman  <dorit@il.ibm.com>
3435
3436         * tree-vectorizer.h (stmt_vec_info_type): Add enum value
3437         induc_vec_info_type.
3438         (vectorizable_induction): New function declaration.
3439         * tree-vect-transform.c (get_initial_def_for_induction): No need to
3440         check if already vectorized.  Find first place in BB where new stmts
3441         can be inserted.  Takes only one argument.
3442         (vectorizable_induction): New function.
3443         (vect_transform_stmt): Add case for induc_vec_info_type to call
3444         vectorizable_induction.
3445         (vect_transform_loop): Consider phis for vectorization.
3446         * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
3447         condition.
3448         (analyze_operations): Call vectorizable_induction when analyzing phis.
3449         Fix comment.
3450         (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
3451         (vect_mark_relevant): Include phis in relevance analysis.
3452         (vect_mark_stmts_to_be_vectorize): Likewise.
3453         * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
3454
3455 2007-04-16  Lawrence Crowl  <crowl@google.com>
3456
3457         * doc/invoke.texi (Debugging Options): Add documentation for the
3458         -femit-struct-debug options -femit-struct-debug-baseonly,
3459         -femit-struct-debug-reduced, and
3460         -femit-struct-debug-detailed[=...].
3461
3462         * c-opts.c (c_common_handle_option): Add
3463         OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
3464         and OPT_femit_struct_debug_detailed_.
3465         * c.opt: Add specifications for
3466         -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
3467         and -femit-struct-debug-detailed[=...].
3468         * opts.c (set_struct_debug_option): Parse the
3469         -femit-struct-debug-... options.
3470         * opts.c (matches_main_base, main_input_basename,
3471         main_input_baselength, base_of_path, matches_main_base): Add
3472         variables and functions to compare header base name to compilation
3473         unit base name.
3474         * opts.c (should_emit_struct_debug): Add to determine to emit a
3475         structure based on the option.
3476         (dump_struct_debug) Also disabled function to debug this
3477         function.
3478         * opts.c (handle_options): Save the base name of the
3479         compilation unit.
3480
3481         * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
3482         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
3483         This hook indicates if a type is generic.  Set it by default
3484         to "never generic".
3485         * langhooks.h (struct lang_hooks_for_types): Add a new hook
3486         to determine if a struct type is generic or not.
3487         * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
3488         * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
3489         * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
3490         with live C++ hook.
3491
3492         * flags.h (enum debug_info_usage): Add an enumeration to describe
3493         a program's use of a structure type.
3494         * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
3495         to indicate the program's usage of the type.  Filter structs based
3496         on the -femit-struct-debug-... specification.
3497         (gen_type_die): Split into two routines, gen_type_die and
3498         gen_type_die_with_usage.  gen_type_die is now a wrapper
3499         that assumes direct usage.
3500         (gen_type_die_with_usage): Replace calls to gen_type_die
3501         with gen_type_die_with_usage adding the program usage of
3502         the referenced type.
3503         (dwarf2out_imported_module_or_decl): Suppress struct debug
3504         information using should_emit_struct_debug when appropriate.
3505
3506 2007-04-16  Ian Lance Taylor  <iant@google.com>
3507
3508         PR tree-optimization/31522
3509         * tree-vrp.c (vr_phi_edge_counts): New static variable.
3510         (vrp_initialize): Allocate vr_phi_edge_counts.
3511         (vrp_visit_phi_node): Don't push to infinity if we saw a new
3512         executable edge.  Drop test for all constants.
3513         (vrp_finalize): Free vrp_phi_edge_counts.
3514
3515         * doc/cpp.texi (Common Predefined Macros): Clarify description of
3516         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
3517
3518         * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
3519         predecessors at head rather than tail.
3520
3521 2007-04-16  Matthias Klose  <doko@debian.org>
3522
3523         * config/alpha/linux.h (CPP_SPEC): Define.
3524         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
3525
3526 2007-04-16  Aldy Hernandez  <aldyh@redhat.com>
3527
3528         * function.h: Remove sequence_stack extern declaration.
3529
3530 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
3531
3532         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
3533         TARGET_FIDOA.
3534         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
3535         defined.
3536
3537 2007-04-16  Anatoly Sokolov <aesok@post.ru>
3538
3539         * config/avr/avr.c (avr_arch_types): Rearranging  array.
3540         (enum avr_arch): Add.
3541         (avr_mcu_types): Use avr_arch enumeration constants instead of
3542         numbers.
3543         * config/avr/avr.h (LINK_SPEC): Simplify.
3544
3545 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
3546
3547         * config/m68k/m68k.c (m68k_libcall_value,
3548         m68k_function_value): Use macros for register names more.
3549
3550         * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
3551         instead.
3552         (M68K_REGNAME): Use A6_REG.
3553         * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
3554
3555 2007-04-16  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3556
3557         PR middle-end/28071
3558         * sched-int.h (struct deps): Split field 'pending_lists_length' into
3559         'pending_read_list_length' and 'pending_write_list_length'.  Update
3560         comment.
3561         * sched-deps.c (add_insn_mem_dependence): Change signature.  Update
3562         to handle two length counters instead of one.  Update all uses.
3563         (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
3564         two length counters instead of one.
3565         * sched-rgn.c (propagate_deps): Update to handle two length counters
3566         instead of one.
3567
3568 2007-04-16  H.J. Lu  <hongjiu.lu@intel.com>
3569
3570         PR target/31582
3571         * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
3572         copy of source, pass it to ix86_expand_vector_set and return
3573         it as target.
3574
3575 2007-04-16  David Ung  <davidu@mips.com>
3576             Joseph Myers  <joseph@codesourcery.com>
3577
3578         * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
3579         PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
3580         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
3581         Add 74K processor information.
3582         * config/mips/mips.md: Include 74k.md.
3583         (cpu): Add 74kc,74kf,74kx.
3584         (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
3585         * config/mips/74k.md: New.
3586         * doc/invoke.texi (MIPS Options): Document 74K support.
3587
3588 2007-04-16  Dorit Nuzman  <dorit@il.ibm.com>
3589
3590         * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
3591         vectorizable_* functions.
3592         * tree-vect-transform.c (vectorizable_call): Add check for
3593         STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
3594         (vectorizable_store): likewise.
3595         (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
3596         Add comments.
3597         (vectorizable_operation, vectorizable_type_demotion): Likewise.
3598         (vectorizable_type_promotion, vectorizable_load): Likewise.
3599         (vectorizable_live_operation, vectorizable_condition): Likewise.
3600         (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
3601         STMT_VINFO_LIVE_P.
3602         (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
3603
3604 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
3605
3606         * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
3607         register numbers more.
3608         * config/m68k/m68k.h (STACK_POINTER_REGNUM,
3609         FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
3610         M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
3611         FUNCTION_VALUE_REGNO_P): Likewise.
3612         * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
3613         STATIC_CHAIN_REGNUM): Likewise.
3614         * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
3615         * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
3616         STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
3617         * config/m68k/m68k.md (FP_REG): New.
3618
3619 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
3620
3621         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
3622         alignment on fido.
3623
3624 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
3625
3626         * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
3627         tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
3628         comment typos.
3629
3630 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
3631
3632         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
3633         cold loops.
3634
3635 2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3636
3637         PR c/31520
3638         * c-decl.c (finish_decl): Grab the type of the decl after the call
3639         to store_init_value.
3640
3641 2007-04-14  Steven Bosscher  <steven@gcc.gnu.org>
3642
3643         * common.opt (fforward-propagate): Fix "Optimization" annotation.
3644
3645 2007-04-14  Jakub Jelinek  <jakub@redhat.com>
3646
3647         PR c++/25874
3648         * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free dominators,
3649         post dominators and cleanup cfg before returning.
3650
3651 2007-04-14  Bernd Schmidt  <bernd.schmidt@analog.com>
3652
3653         * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
3654         * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
3655
3656 2007-04-14  Kazu Hirata  <kazu@codesourcery.com>
3657
3658         * config.gcc: Recognize fido.
3659         * config/m68k/m68k-devices.def (fidoa): New.
3660         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
3661         __mfido__.
3662         (FL_FIDOA, TARGET_FIDOA): New.
3663         * config/m68k/m68k.opt (mfidoa): New.
3664
3665 2007-04-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3666
3667         PR middle-end/31322
3668         * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
3669         when a personality function is used.
3670
3671 2007-04-13  Bob Wilson  <bob.wilson@acm.org>
3672
3673         * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
3674
3675 2007-04-13  Mike Stump  <mrs@apple.com>
3676
3677         * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
3678         we can...
3679         * config/darwin.opt (fapple-kext): Make C++ only.
3680         * config/darwin.c (darwin_override_options): Remove code to ensure
3681         -fapple-kext is given for C++ only.
3682
3683 2007-04-13  Richard Sandiford  <richard@codesourcery.com>
3684
3685         * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
3686         * config/mips/mips.c (override_options): Call
3687         SUBTARGET_OVERRIDE_OPTIONS, if defined.
3688
3689 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3690
3691         * config/i386/i386.opt (msvr3-shlib): Removed.
3692
3693         * doc/invoke.texi: Remove -msvr3-shlib.
3694
3695 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
3696
3697         * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
3698         with "popcnt" instruction.
3699
3700 2007-04-13  Richard Guenther  <rguenther@suse.de>
3701
3702         PR tree-optimization/21258
3703         * tree-vrp.c (compare_case_labels): New helper.
3704         (find_switch_asserts): New function.
3705         (find_assert_locations): Call it for SWITCH_EXPRs.
3706
3707 2007-04-13  Uros Bizjak  <ubizjak@gmail.com>
3708
3709         * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
3710         * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
3711         check is now implied in X87_FLOAT_MODE_P.
3712         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
3713         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
3714         (fix_trunc<mode>_i386_fisttp): Ditto.
3715         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
3716         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
3717         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
3718         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
3719         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
3720         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
3721         (unnamed_splitters): Ditto.
3722         * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
3723         for X87_FLOAT_MODE_P mode.  Override FIRST_FLOAT_REG with
3724         FIRST_SSE_REG for local functions when SSE math is enabled or
3725         for functions with sseregparm attribute.
3726         (standard_80387_constant_p): Return -1 if mode is not
3727         X87_FLOAT_MODE_P.
3728         (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
3729         (ix86_expand_compare): Ditto.
3730         (ix86_expand_carry_flag_compare): Ditto.
3731         (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
3732         of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
3733         DECIMAL_FLOAT_MODE_P.
3734         (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
3735         of SCALAR_FLOAT_MODE_P.
3736         (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
3737         [MINUS]: ... here.  Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
3738         checks before FLOAT_MODE_P.
3739         [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
3740         before FLOAT_MODE_P.
3741         [DIV]: Ditto.
3742         [NEG]: Ditto.
3743         [ABS]: Ditto.
3744         [SQRT]: Ditto.
3745         [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
3746
3747 2007-04-12  Paolo Bonzini  <bonzini@gnu.org>
3748             Charles Wilson  <libtool@cwilson.fastmail.fm>
3749
3750         * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
3751         (libgcc.mvars): Don't depend on them.
3752         * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
3753         * exec-tool.in: New.
3754
3755 2007-04-12  Brooks Moses  <brooks.moses@codesourcery.com>
3756
3757         * doc/invoke.text (--help): Document --help=common.
3758
3759 2007-04-12  Thomas Neumann  <tneumann@users.sourceforge.net>
3760
3761         * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
3762
3763 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
3764
3765         * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
3766         * genemit.c (main): Emit #include "integrate.h".
3767         * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
3768         (LOADGP_RTP): New mips_loadgp_style.
3769         * config/mips/mips.h: Include config/vxworks-dummy.h.
3770         (TARGET_RTP_PIC): New macro.
3771         (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
3772         (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
3773         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
3774         for TARGET_RTP_PIC.
3775         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define.  Pass down
3776         -mvxworks-pic when using -mrtp and a PIC option.
3777         * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
3778         for RTP PIC.
3779         (mips_symbolic_constant_p, mips_symbolic_address_p)
3780         (mips_symbol_insns): Handle SYMBOL_HALF.
3781         (override_options): Warn about -G and -mrtp being used together.
3782         Initialize mips_lo_relocs[SYMBOL_HALF].
3783         (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
3784         (mips_emit_loadgp): Handle LOADGP_RTP.
3785         (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
3786         * config/mips/mips.md (loadgp_rtp): New insn and splitter.
3787         (tablejump): Handle function-relative case table entries if
3788         TARGET_RTP_PIC.
3789         * config/mips/predicates.md (symbol_ref_operand): New predicate.
3790
3791 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
3792
3793         * config/mips/mips.md (load_call<mode>): Allow any general register.
3794         destination.
3795         (sibcall_value_internal, sibcall_value_multiple_internal)
3796         (call_value_internal, call_value_split, call_value_multiple_internal)
3797         (call_value_multiple_split): Remove constraints from operand 0.
3798
3799 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
3800
3801         * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
3802         rather than loadgp_noshared.
3803         * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
3804         instead of gen_loadgp_noshared.  Use gen_loadgp_newabi instead of
3805         gen_loadgp.
3806         * config/mips/mips.md (loadgp): Rename to...
3807         (loadgp_newabi): ...this.
3808         (loadgp_noshared): Rename to...
3809         (loadgp_absolute): ...this.
3810
3811 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
3812
3813         * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
3814         false for locally-binding symbols.
3815         (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
3816
3817 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
3818
3819         * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
3820         (SYMBOL_GOT_PAGE_OFST): ...this.
3821         (SYMBOL_GOT_GLOBAL): Rename to...
3822         (SYMBOL_GOT_DISP): ...this.
3823         (SYMBOL_GOTOFF_GLOBAL): Rename to...
3824         (SYMBOL_GOTOFF_DISP): ...this.  Update comments accordingly.
3825         * config/mips/mips.c (mips_global_symbol_p): New function.
3826         (mips_symbol_binds_local_p): Likewise.
3827         (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
3828         and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST.  Use mips_global_symbol_p
3829         and mips_symbol_binds_local_p.
3830         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
3831         (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
3832         SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
3833         SYMBOL_GOTOFF_DISP.
3834         (mips_ok_for_lazy_binding_p): New function.
3835         (mips_load_call_address, mips_expand_call): Use it.
3836         (mips_dangerous_for_la25_p): Likewise.
3837         * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
3838         (*got_disp<mode>): Use got_disp_operand instead of
3839         global_got_operand.  Use SYMBOL_GOTOFF_DISP instead of
3840         SYMBOL_GOTOFF_GLOBAL.
3841         (*got_page<mode>): Use got_page_ofst_operand instead of
3842         local_got_operand.
3843         * config/mips/predicates.md (const_call_insn_operand): Use
3844         SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
3845         (global_got_operand): Rename to...
3846         (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
3847         SYMBOL_GOT_GLOBAL.
3848         (local_got_operand): Rename to...
3849         (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
3850         of SYMBOL_GOT_LOCAL.
3851
3852 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
3853
3854         * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
3855         TARGET_CALL_CLOBBERED_GP.
3856         (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
3857         (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
3858         (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
3859         (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
3860         of TARGET_ABICALLS && !TARGET_NEWABI.
3861         (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
3862         * config/mips/mips.c (mips_load_call_address): Check
3863         TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
3864         (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
3865         Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
3866         (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
3867         TARGET_ABICALLS && TARGET_NEWABI.
3868         (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
3869         TARGET_ABICALLS.
3870         (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
3871         (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
3872         TARGET_ABICALLS && TARGET_NEWABI.
3873         (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
3874         TARGET_ABICALLS.  Check TARGET_CALL_SAVED_GP instead of
3875         TARGET_NEWABI.  Use TARGET_USE_PIC_FN_ADDR_REG to decide
3876         whether indirect calls must use $25.
3877         (mips_extra_live_on_entry): Check TARGET_GOT instead of
3878         TARGET_ABICALLS.
3879         * config/mips/mips.md (jal_macro): Check flag_pic and
3880         TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
3881         (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
3882         instead of TARGET_ABICALLS.
3883         (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
3884         TARGET_ABICALLS && TARGET_OLDABI.
3885         (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
3886         (sibcall): In the comment above the define_insn, mention
3887         TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
3888         * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
3889         instead of TARGET_ABICALLS.
3890
3891 2007-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
3892
3893         * doc/md.texi (Blackfin family constraints): Document PA and PB.
3894         * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
3895         (MACFLAGS_MATCH_P): New macro.
3896         * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
3897         (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
3898         * config/bfin/bfin.md (MACFLAG_IS_M): New constant.  Renumber some of
3899         the other MACFLAG constants.
3900         (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
3901         (flag_machi): Tighten constraints.  Renumber some of the operands.
3902         (flag_machi_acconly): Tighten constraints.  Correct operand numbers in
3903         output template.
3904         (flag_machi_parts_acconly): New pattern.
3905         (flag_macinithi): Tighten constraints.  Allow any accumulator to be
3906         used.
3907         (flag_macinit1hi): Tighten constraints.
3908         (flag_mul_macv2hi_parts_acconly): New pattern.
3909
3910         * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
3911         Use a more efficient implementation.
3912         * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
3913         inline sequences when not optimizing for size.
3914
3915         * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
3916         movhi_high2low): Delete, merge functionality into...
3917         (packv2hi): ... this pattern.
3918
3919         2007-02-11  Jie Zhang  <jie.zhang@analog.com>
3920         * config/bfin/bfin.opt (msim): New option.
3921         (mcpu=): New option.
3922         * config/bfin/bfin-protos.h (enum bfin_cpu): New.
3923         (bfin_cpu_t): Typedef of enum bfin_cpu.
3924         (bfin_cpu_type): New declaration.
3925         * config/bfin/elf.h (STARTFILE_SPEC): Add support for
3926         -msim and -mcpu= options.
3927         (LIB_SPEC): Likewise.
3928         * config/bfin/bfin.c (bfin_cpu_type): Define.
3929         (bfin_handle_option): Handle -mcpu= option.
3930         * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
3931         (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
3932         __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
3933
3934 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
3935
3936         * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
3937         (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
3938         (powerpc-wrs-vxworksae): Use ${tm_file}.
3939         (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
3940         after elfos.h.  Remove i386/sysv4.h and add i386/vx-common.h.
3941         * config/i386/vx-common.h: New file.
3942
3943 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
3944
3945         * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
3946         of crt0.o%s.
3947
3948 2007-04-12  Andreas Krebbel  <krebbel1@de.ibm.com>
3949
3950         * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
3951         ldxtr.
3952
3953 2007-04-12  Douglas Gregor  <doug.gregor@gmail.com>
3954
3955         PR c++/31078
3956         PR c++/31103
3957         * c-common.c (c_build_qualified_type): Set canonical type
3958         appropriately.
3959
3960 2007-04-12  Richard Guenther  <rguenther@suse.de>
3961
3962         * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
3963         lower bound and element size if lower bound is not zero
3964         or either of the ARRAY_REF operands is set.
3965
3966 2007-04-12  Richard Guenther  <rguenther@suse.de>
3967
3968         PR tree-optimization/24689
3969         PR tree-optimization/31307
3970         * fold-const.c (operand_equal_p): Compare INTEGER_CST array
3971         indices by value.
3972         * gimplify.c (canonicalize_addr_expr): To be consistent with
3973         gimplify_compound_lval only set operands two and three of
3974         ARRAY_REFs if they are not gimple_min_invariant.  This makes