OSDN Git Service

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