OSDN Git Service

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