expr.c (store_expr): Optimize initialization of an array with STRING_CST.
[gcc.git] / gcc / ChangeLog
1 2007-08-24 Jakub Jelinek <jakub@redhat.com>
2
3 * expr.c (store_expr): Optimize initialization of an array
4 with STRING_CST.
5 * expr.h (builtin_strncpy_read_str): New prototype.
6 * builtins.c (builtin_strncpy_read_str): Remove prototype.
7 No longer static.
8
9 2007-08-24 Uros Bizjak <ubizjak@gmail.com>
10
11 PR middle-end/33157
12 * ifcvt.c (noce_find_if_block): Do not clear if_info.cond_earliest
13 field when initializing if_info structure.
14
15 2007-08-24 Richard Guenther <rguenther@suse.de>
16
17 * Makefile.in (tree-inline.o): Add $(TARGET_H) and $(INTEGRATE_H)
18 dependencies.
19 * c-objc-common.c (c_cannot_inline_tree_fn): Remove.
20 * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Likewise.
21 * tree-inline.c (inlinable_function_p): Fold in common parts of
22 the cannot_inline_tree_fn langhook.
23 * langhooks-def.h (lhd_tree_inlining_cannot_inline_tree_fn): Remove.
24 (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN): Likewise.
25 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
26 cannot_inline_tree_fn langhook.
27 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
28 cannot_inline_tree_fn member.
29
30 2007-08-24 Richard Guenther <rguenther@suse.de>
31
32 * expr.c (get_inner_reference): Do computation of bitoffset
33 from offset in a way we can detect overflow reliably.
34
35 2007-08-24 Jie Zhang <jie.zhang@analog.com>
36
37 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define for uClibc.
38
39 2007-08-24 Jie Zhang <jie.zhang@analog.com>
40
41 * config/bfin/bfin.opt (mfast-fp): Add.
42 * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Let
43 libbffastfp override libgcc if -mfast-fp.
44 * config/bfin/bfin.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
45 * doc/invoke.texi (Option Summary): Mention -mfast-fp.
46 (Blackfin Options): Document -mfast-fp.
47
48 2007-08-24 Jakub Jelinek <jakub@redhat.com>
49
50 PR tree-optimization/32573
51 PR middle-end/32946
52 * tree-data-ref.c (initialize_data_dependence_relation): Clear
53 DDR_SUBSCRIPTS, DDR_DIR_VECTS and DDR_DIST_VECTS at the beginning.
54 (finalize_ddr_dependent): Clear DDR_SUBSCRIPTS after freeing it.
55 (build_classic_dist_vector): Return false rather than true if
56 DDR_ARE_DEPENDENT is non-NULL at the beginning. Return false
57 if either subscript_dependence_tester_1 or build_classic_dist_vector_1
58 returned false. Don't call save_dist_v before calling
59 build_classic_dist_vector_1.
60 (free_dependence_relation): Don't guard freeing DDR_SUBSCRIPTS
61 with NULL DDR_ARE_DEPENDENT. Also free DDR_DIST_VECTS and/or
62 DDR_DIR_VECTS vectors.
63
64 2007-08-23 Brian Sidebotham <brian.sidebotham@gmail.com>
65
66 * configure.ac (leb128): Modify sed statement to work with any binutils
67 version string.
68 * configure: Regenerate
69
70 2007-08-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
71
72 * config/arc/arc-protos.h arc_select_cc_mode, gen_compare_reg):
73 Wrap in RTX_CODE macro guard.
74 * config/arm/pe.c (arm_dllexport_p, arm_dllimport_p,
75 arm_dllexport_name_p, arm_dllimport_name_p, arm_mark_dllexport,
76 arm_mark_dllimport, arm_pe_encode_section_info,
77 arm_pe_unique_section): Use ISO-C function declarations.
78 * config/c4x/c4x-c.c (c4x_parse_pragma, c4x_pr_CODE_SECTION,
79 c4x_pr_DATA_SECTION, c4x_pr_FUNC_IS_PURE,
80 c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT, c4x_pr_ignored):
81 Likewise.
82 * config/iq2000/iq2000.h (ASM_OUTPUT_SKIP): Fix format warning.
83 * config/m68hc11/m68hc11.h (ASM_OUTPUT_EXTERNAL): Undef before
84 defining.
85 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Fix format
86 warnings.
87 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Likewise.
88 * config/pdp11/pdp11.c (pdp11_output_function_epilogue): Likewise.
89 (register_move_cost): Use ISO-C function declarations.
90 * config/pdp11/pdp11.h (PRINT_OPERAND): Fix format warnings.
91 * config/score/score-protos.h (score_declare_object): Add
92 ATTRIBUTE_PRINTF_4.
93 * config/score/score.h (ASM_DECLARE_OBJECT_NAME): Fix format
94 warnings.
95 * final.c (profile_function): Avoid empty if-bodies.
96
97
98 * calls.c (must_pass_in_stack_var_size,
99 must_pass_in_stack_var_size_or_pad): Constify.
100 * config/alpha/alpha-protos.h (function_value): Likewise.
101 * config/alpha/alpha.c (alpha_return_in_memory,
102 alpha_pass_by_reference, function_value,
103 unicosmk_must_pass_in_stack, TARGET_PROMOTE_FUNCTION_ARGS,
104 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
105 Likewise.
106 * config/arc/arc.c (arc_return_in_memory, arc_pass_by_reference,
107 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
108 TARGET_PROMOTE_PROTOTYPES): Likewise.
109 * config/arm/arm-protos.h (arm_return_in_memory,
110 arm_pad_arg_upward, arm_function_value): Likewise.
111 * config/arm/arm.c (arm_pass_by_reference,
112 arm_promote_prototypes, arm_return_in_msb, arm_must_pass_in_stack,
113 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
114 arm_function_value, arm_return_in_memory, arm_pad_arg_upward):
115 Likewise.
116 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
117 * config/avr/avr-protos.h (avr_function_value): Likewise.
118 * config/avr/avr.c (avr_return_in_memory,
119 gas_output_limited_string, gas_output_ascii, avr_function_value,
120 avr_return_in_memory): Likewise.
121 * config/bfin/bfin-protos.h (bfin_return_in_memory): Likewise.
122 * config/bfin/bfin.c (bfin_pass_by_reference,
123 bfin_return_in_memory, TARGET_PROMOTE_PROTOTYPES,
124 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN):
125 Likewise.
126 * config/cris/cris.c (cris_pass_by_reference,
127 TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
128 * config/crx/crx.c (crx_return_in_memory): Likewise.
129 * config/darwin.c (function_base, machopic_function_base_name):
130 Likewise.
131 * config/fr30/fr30.c (fr30_must_pass_in_stack,
132 TARGET_PROMOTE_PROTOTYPES): Likewise.
133 * config/frv/frv.c (frv_must_pass_in_stack): Likewise.
134 * config/h8300/h8300.c (h8300_return_in_memory): Likewise.
135 * config/i386/i386-protos.h (ix86_return_in_memory,
136 ix86_sol10_return_in_memory): Likewise.
137 * config/i386/i386.c (ix86_function_value,
138 ix86_function_sseregparm, ix86_must_pass_in_stack,
139 type_natural_mode, classify_argument, examine_argument,
140 construct_container, ix86_pass_by_reference, function_value_32,
141 function_value_64, ix86_function_value_1, return_in_memory_32,
142 return_in_memory_64, return_in_memory_ms_64,
143 ix86_return_in_memory, ix86_sol10_return_in_memory,
144 TARGET_PROMOTE_PROTOTYPES): Likewise.
145 * config/ia64/ia64-protos.h (ia64_function_value,
146 ia64_hpux_function_arg_padding): Likewise.
147 * config/ia64/ia64.c (hfa_element_mode, ia64_return_in_memory,
148 ia64_function_value, bundle_state_hash, bundle_state_eq_p,
149 ia64_hpux_function_arg_padding): Likewise.
150 * config/iq2000/iq2000-protos.h (function_arg,
151 iq2000_function_value): Likewise.
152 * config/iq2000/iq2000.c (iq2000_return_in_memory,
153 iq2000_pass_by_reference, TARGET_PROMOTE_FUNCTION_ARGS,
154 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
155 function_arg, iq2000_function_value): Likewise.
156 * config/m32c/m32c-protos.h (m32c_function_value,
157 m32c_promote_function_return): Likewise.
158 * config/m32c/m32c.c (m32c_pass_by_reference,
159 m32c_promote_prototypes, m32c_promote_function_return,
160 m32c_function_value): Likewise.
161 * config/m32r/m32r.c (m32r_return_in_memory,
162 m32r_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
163 m32r_in_small_data_p): Likewise.
164 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg_padding):
165 Likewise.
166 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory,
167 m68hc11_function_arg_padding): Likewise.
168 * config/m68k/m68k-protos.h (m68k_function_value): Likewise.
169 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES,
170 m68k_function_value): Likewise.
171 * config/mcore/mcore-protos.h (mcore_num_arg_regs,
172 mcore_function_value): Likewise.
173 * config/mcore/mcore.c (handle_structs_in_regs,
174 mcore_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
175 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
176 mcore_num_arg_regs, mcore_function_value): Likewise.
177 * config/mips/mips-protos.h (mips_pad_arg_upward,
178 mips_function_value): Likewise.
179 * config/mips/mips.c (mips_fpr_return_fields, mips_return_in_msb,
180 mips_return_in_memory, mips_pass_by_reference, mips_callee_copies,
181 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
182 TARGET_PROMOTE_PROTOTYPES, mips_pad_arg_upward,
183 mips_function_value): Likewise.
184 * config/mmix/mmix-protos.h (mmix_function_outgoing_value):
185 Likewise.
186 * config/mmix/mmix.c (mmix_pass_by_reference,
187 TARGET_PROMOTE_FUNCTION_ARGS, mmix_function_outgoing_value,
188 mmix_encode_section_info): Likewise.
189 * config/mn10300/mn10300-protos.h (mn10300_function_value):
190 Likewise.
191 * config/mn10300/mn10300.c (mn10300_return_in_memory,
192 mn10300_pass_by_reference, TARGET_PROMOTE_PROTOTYPES,
193 mn10300_function_value): Likewise.
194 * config/mt/mt-protos.h (mt_function_value): Likewise.
195 * config/mt/mt.c (mt_pass_by_reference, mt_function_value,
196 mt_pass_in_stack, TARGET_PROMOTE_PROTOTYPES): Likewise.
197 * config/pa/pa-protos.h (function_arg_padding, function_value,
198 pa_return_in_memory): Likewise.
199 * config/pa/pa.c (pa_pass_by_reference,
200 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
201 function_arg_padding, function_value, pa_return_in_memory):
202 Likewise.
203 * config/pdp11/pdp11.c (pdp11_return_in_memory): Likewise.
204 * config/rs6000/rs6000-protos.h (rs6000_function_value,
205 function_arg_padding): Likewise.
206 * config/rs6000/rs6000.c (rs6000_return_in_memory,
207 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
208 rs6000_pass_by_reference, rs6000_must_pass_in_stack,
209 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
210 function_arg_padding, altivec_expand_dst_builtin,
211 altivec_expand_builtin, rs6000_expand_builtin, spe_init_builtins,
212 altivec_init_builtins, rs6000_common_init_builtins,
213 rs6000_function_value): Likewise.
214 * s390/s390-protos.h (s390_function_value): Likewise.
215 * config/s390/s390.c (s390_function_arg_size,
216 s390_pass_by_reference, s390_return_in_memory,
217 s390_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
218 TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
219 * config/score/score-protos.h (score_function_value): Likewise.
220 * config/score/score.c (score_arg_partial_bytes,
221 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
222 TARGET_PROMOTE_PROTOTYPES, score_return_in_memory,
223 score_pass_by_reference, score_add_offset, score_function_value):
224 Likewise.
225 * config/sh/sh-protos.h (sh_attr_renesas_p,
226 sh_promote_prototypes): Likewise.
227 * config/sh/sh.c (sh_return_in_memory, sh_pass_by_reference,
228 sh_callee_copies, sh_promote_prototypes, shcompact_byref,
229 sh_attr_renesas_p): Likewise.
230 * config/sparc/sparc-protos.h (function_value,
231 function_arg_padding): Likewise.
232 * config/sparc/sparc.c (sparc_promote_prototypes,
233 sparc_return_in_memory, sparc_pass_by_reference,
234 TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
235 function_arg_record_value_2, function_arg_record_value_1,
236 function_arg_record_value, function_arg_record_value,
237 function_arg_padding, function_value): Likewise.
238 * config/spu/spu-protos.h (spu_function_value): Likewise.
239 * config/spu/spu.c (spu_pass_by_reference, spu_return_in_memory,
240 spu_function_value): Likewise.
241 * config/stormy16/stormy16-protos.h (xstormy16_function_value):
242 Likewise.
243 * config/stormy16/stormy16.c (xstormy16_return_in_memory,
244 xstormy16_function_value, TARGET_PROMOTE_FUNCTION_ARGS,
245 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
246 Likewise.
247 * config/v850/v850.c (v850_return_in_memory,
248 v850_pass_by_reference, TARGET_PROMOTE_PROTOTYPES): Likewise.
249 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): Likewise.
250 * config/xtensa/xtensa.c (xtensa_return_in_msb,
251 xtensa_return_in_memory, TARGET_PROMOTE_FUNCTION_ARGS,
252 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES):
253 Likewise.
254 * explow.c (promote_mode, hard_function_value): Likewise.
255 * expr.h (hard_function_value, promote_mode): Likewise.
256 * function.c (aggregate_value_p): Likewise.
257 * hooks.c (hook_bool_const_tree_true): New.
258 * hooks.h (hook_bool_const_tree_true): New.
259 * sdbout.c (SET_KNOWN_TYPE_TAG, plain_type_1): Constify.
260 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
261 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
262 TARGET_RETURN_IN_MSB): Likewise.
263 * target.h (promote_function_args, promote_function_return,
264 promote_prototypes, return_in_memory, return_in_msb,
265 pass_by_reference, must_pass_in_stack, callee_copies,
266 function_value): Likewise.
267 * targhooks.c (default_return_in_memory,
268 hook_pass_by_reference_must_pass_in_stack,
269 hook_callee_copies_named,
270 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
271 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
272 default_function_value): Likewise.
273 * targhooks.h (default_return_in_memory,
274 hook_pass_by_reference_must_pass_in_stack,
275 hook_callee_copies_named,
276 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false,
277 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true,
278 default_function_value): Likewise.
279 * tree-ssa-structalias.c (const_equiv_class_label_t): New.
280 (equiv_class_label_hash, equiv_class_label_eq): Constify.
281 * tree-vectorizer.c (bb_in_loop_p): Likewise.
282 * tree.c (needs_to_live_in_memory): Likewise.
283 * tree.h (struct tree_type, needs_to_live_in_memory,
284 aggregate_value_p, must_pass_in_stack_var_size,
285 must_pass_in_stack_var_size_or_pad): Likewise.
286 * vmsdbgout.c (write_debug_addr, write_debug_delta4,
287 write_debug_string, ASM_OUTPUT_DEBUG_STRING, write_rtnbeg,
288 lookup_filename): Likewise.
289
290 2007-08-23 Uros Bizjak <ubizjak@gmail.com>
291
292 PR target/17390
293 * config/i386/i386.c (ix86_expand_fp_compare): Expand fp comparison to
294 fake fcomi i387 instruction for !TARGET_CMOVE.
295 (ix86_expand_branch): Expand natural sequence with one jump for
296 all targets, not only TARGET_CMOVE.
297 * config/i386/i386.md (*cmpfp_0_cc): New define_insn_and_split
298 pattern to implement fake fcomi sequence. Split instruction after
299 reload to correct compare sequences.
300 (*cmpfp_xf_cc): Ditto.
301 (*cmpfp_<mode>_cc): Ditto.
302 (*cmpfp_u_cc): Ditto.
303 (*cmpfp_<mode>_cc): Ditto.
304
305 2007-08-23 Richard Guenther <rguenther@suse.de>
306
307 * tree-pretty-print.c (dump_generic_node): Annotate
308 GIMPLE_MODIFY_STMTs with volatile ops with "{v}".
309
310 2007-08-23 Richard Guenther <rguenther@suse.de>
311
312 * builtins.c (expand_builtin_mathfn): Wrap argument in
313 save_expr directly instead of re-building the call.
314 (expand_builtin_mathfn_2): Likewise.
315 (expand_builtin_mathfn_3): Likewise.
316 (expand_builtin_interclass_mathfn): Likewise.
317 (expand_builtin_int_roundingfn): Set arg.
318 (expand_builtin_int_roundingfn_2): Likewise.
319
320 2007-08-23 Paolo Bonzini <bonzini@gnu.org>
321
322 * config/i386/sse.md (*sse_and<mode>3, *sse_ior<mode>3,
323 *sse_nand<mode>3, *sse_xor<mode>3): New.
324
325 2007-08-23 Uros Bizjak <ubizjak@gmail.com>
326
327 * config/i386/i386.h (PRINT_OPERAND_PUNCT_VALID_P): Add ';' code.
328 * config/i386/i386.c (print_operand): Handle ';' code. Output
329 semicolon for TARGET_MACHO.
330 * config/i386/sync.md (*sync_compare_and_swap<mode>): Use '%;' to
331 emit semicolon after 'lock' prefix.
332 (sync_double_compare_and_swap<mode>): Ditto.
333 (*sync_double_compare_and_swapdi_pic): Ditto.
334 (*sync_compare_and_swap_cc<mode>): Ditto.
335 (sync_double_compare_and_swap_cc<mode>): Ditto.
336 (*sync_double_compare_and_swap_ccdi_pic): Ditto.
337 (sync_old_add<mode>): Ditto.
338 (sync_add<mode>): Ditto.
339 (sync_sub<mode>): Ditto.
340 (sync_ior<mode>): Ditto.
341 (sync_and<mode>): Ditto.
342 (sync_xor<mode>): Ditto.
343
344 2007-08-22 Chao-ying Fu <fu@mips.com>
345
346 * rtl.c (rtx_code_size): Check CONST_FIXED to calcualte correct sizes
347 in DEF_RTL_EXPR.
348 (copy_rtx): Handle CONST_FIXED.
349 (rtx_equal_p): Likewise.
350 * rtl.h (fixed_value.h): New include.
351 (rtx_def): Add a new field of fixed_value to u.
352 (XCNMPFV): Define for accessing fixed_value.
353 (CONST_FIXED_VALUE, CONST_FIXED_VALUE_HIGH, CONST_FIXED_VALUE_LOW):
354 Define.
355 * rtl.def (CONST_FIXED): New constant.
356 (SS_MULT, US_MULT, SS_DIV, US_DIV, FRACT_CONVERT,
357 UNSIGNED_FRACT_CONVERT, SAT_FRACT, UNSIGNED_SAT_FRACT, US_NEG,
358 US_ASHIFT): New codes.
359 * doc/rtl.texi (Expressions): Document const_fixed, us_neg, ss_mult,
360 us_mult, ss_div, us_div, us_ashift, fract_convert, sat_fract,
361 unsigned_fract_convert, unsigned_sat_fract): Document them.
362 * varasm.c (assemble_integer): Extend to support fixed-point constants
363 by using different machine classes.
364 (decode_addr_const): Handle FIXED_CST.
365 (const_hash_1): Likewise.
366 (compare_constant): Likewise.
367 (copy_constant): Likewise.
368 (const_rtx_hash_1): Handle CONST_FIXED.
369 (output_constant_pool_2): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
370 MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
371 MODE_VECTOR_UACCUM.
372 (initializer_constant_valid_p): Handle FIXED_CST.
373 (output_constant): Support FIXED_POINT_TYPE.
374 * gengenrtl.c (excluded_rtx): Check CONST_FIXED to exclude.
375 * cse.c (hash_rtx): Support CONST_FIXED.
376 (exp_equiv_p): Likewise.
377 (cannon_reg): Likewise.
378 (fold_rtx): Likewise.
379 (equiv_constant): Likewise.
380 (cse_process_notes_1): Likewise.
381 (count_reg_usage): Likewise.
382 * cselib.c (entry_and_rtx_equal_p): Check CONST_FIXED.
383 (rtx_equal_for_cselib_p): Handle CONST_FIXED.
384 (wrap_constant): Check CONST_FIXED.
385 (cselib_hash_rtx): Support CONST_FIXED.
386 (cselib_subst_to_values): Likewise.
387 * df-scan.c (df_uses_record): Likewise.
388 * gcse.c (want_to_gcse_p): Likewise.
389 (oprs_unchanged_p): Likewise.
390 (oprs_not_set_p): Likewise.
391 (compute_transp): Likewise.
392 (extract_mentioned_regs_helper): Likewise.
393 * genemit.c (gen_exp): Likewise.
394 * local-alloc.c (equiv_init_varies_p): Likewise.
395 (contains_replace_regs): Likewise.
396 (memref_referenced_p): Likewise.
397 * loop-invariant.c (check_maybe_invariant): Likewise.
398 (hash_invariant_expr_1): Likewise.
399 (invariant_expr_equal_p): Likewise.
400 * postreload-gcse.c (oprs_unchanged_p): Likewise.
401 * regclass.c (reg_scan_mark_refs): Likewise.
402 * regrename.c (scan_rtx): Likewise.
403 * resource.c (mark_referenced_resources): Likewise.
404 (mark_set_resources): Likewise.
405 * rtlanal.c (rtx_unstable_p): Likewise.
406 (rtx_varies_p): Likewise.
407 (count_occurrences): Likewise.
408 (reg_mentioned_p): Likewise.
409 (modified_between_p): Likewise.
410 (modified_in_p): Likewise.
411 (volatile_insn_p): Likewise.
412 (volatile_refs_p): Likewise.
413 (side_effects_p): Likewise.
414 (may_trap_p_1): Likewise.
415 (inequality_comparisons_p): Likewise.
416 (computed_jump_p_1): Likewise.
417 (commutative_operand_precedence): Likewise.
418 * sched-deps.c (sched_analyze_2): Likewise.
419 * sched-vis.c (print_value): Likewise.
420 * reload.c (operands_match_p): Likewise.
421 (subst_reg_equivs): Likewise.
422 * reload1.c (eliminate_regs_1): Likewise.
423 (elimination_effects): Likewise.
424 (scan_paradoxical_subregs): Likewise.
425 * alias.c (rtx_equal_for_memref_p): Likewise.
426 * Makefile.in (RTL_BASE_H): Add fixed-value.h.
427 * emit-rtl.c (const_fixed_htab): New hash table.
428 (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed):
429 Declare.
430 (const_fixed_htab_hash, const_fixed_htab_eq, lookup_const_fixed,
431 const_fixed_from_fixed_value): New functions.
432 (verify_rtx_sharing): Handle CONST_FIXED.
433 (copy_rtx_if_shared_1): Likewise.
434 (reset_used_flags): Likewise.
435 (set_used_flags): Likewise.
436 (copy_insn_1): Likewise.
437 (init_emit_once): Create const_fixed_htab.
438 Store fixed-point scalar and vector zero and one to const_tiny_rtx.
439
440 2007-08-22 Zdenek Dvorak <ook@ucw.cz>
441
442 PR tree-optimization/32949
443 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Test nowrap_type_p
444 before failing for ivs with non-constant step.
445
446 2007-08-22 Hans-Peter Nilsson <hp@axis.com>
447
448 * doc/md.texi (Iterators): Renamed from Macros. All contents
449 changed to reflect rename of respectively define_code_macro and
450 define_mode_macro to define_code_iterator and define_mode_iterator.
451 (Mode Iterators, Code Iterators): Similar.
452 * read-rtl.c (struct iterator_group, struct iterator_traverse_data)
453 (uses_mode_iterator_p, apply_mode_iterator, uses_code_iterator_p)
454 (apply_iterator_to_string, uses_iterator_p, apply_iterator_traverse)
455 (initialize_iterators, find_iterator, check_code_iterator)
456 (map_attr_string, apply_mode_maps, apply_iterator_to_rtx, add_mapping)
457 (read_mapping, read_rtx_1): Similar.
458 * config/alpha/sync.md, config/alpha/alpha.md, config/frv/frv.md,
459 config/s390/s390.md, config/m32c/blkmov.md, config/m32c/m32c.md,
460 config/spu/spu.md, config/sparc/sparc.md, config/sparc/sync.md,
461 config/i386/i386.md, config/i386/mmx.md, config/i386/sse.md,
462 config/i386/sync.md, config/crx/crx.md, config/xtensa/xtensa.md,
463 config/cris/cris.c, config/cris/cris.md, config/ia64/sync.md,
464 config/ia64/div.md, config/ia64/vect.md, config/ia64/ia64.md,
465 config/m68k/m68k.md, config/rs6000/spe.md, config/rs6000/altivec.md,
466 config/rs6000/sync.md, config/rs6000/rs6000.md,
467 config/arm/vec-common.md, config/arm/neon.md, config/arm/iwmmxt.md,
468 config/arm/arm.md, config/mips/mips-dsp.md, config/mips/mips.md,
469 config/vax/vax.md, config/bfin/bfin.md: Similar.
470
471 2007-08-22 David Daney <ddaney@avtrex.com>
472
473 * doc/install.texi (Testing): Mention testing on a simulator.
474
475 2007-08-22 Janis Johnson <janis187@us.ibm.com>
476
477 * config/dfp-bit.c (DFP_TO_DFP): Check for overflow.
478
479 * doc/libgcc.texi (Decimal float library routines): Fix formatting
480 and rearrange floating point conversion functions into different
481 categories.
482
483 2007-08-22 Maxim Kuvyrkov <maxim@codesourcery.com>
484
485 * target.h (struct gcc_target.sched: dfa_pre_advance_cycle,
486 dfa_post_advance_cycle): New scheduler hooks.
487 * target-def.h (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
488 TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): New macros to initialize
489 new hooks.
490 (TARGET_SCHED): Use them.
491 * doc/tm.texi (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE,
492 TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Document new hooks.
493 * haifa-sched.c (advance_one_cycle): Invoke new hooks.
494
495 * genautomata.c (insn_has_dfa_reservation_p): New DFA interface
496 function to facilitate debugging.
497 (INSN_HAS_DFA_RESERVATION_P_FUNC_NAME): New macro.
498 (output_insn_has_dfa_reservation_p): New static function to output
499 insn_has_dfa_reservation_p ().
500 (write_automata): Use it.
501 * genattr.c (main): Output declaration for
502 insn_has_dfa_reservation_p ().
503
504 2007-08-22 Christian Bruel <christian.bruel@st.com>
505 Richard Guenther <rguenther@suse.de>
506
507 * fold-const.c (fold_binary): Optimize A-A if -ffinite-math-only.
508 * simplify_rtx (simplify_binary_operation_1): Likewise.
509
510 2007-08-22 Rask Ingemann Lambertsen <rask@sygehus.dk>
511
512 PR rtl-optimization/32557
513 * df-problems.c (df_note_bb_compute): Use mws->start_regno instead
514 of REGNO (mws->mw_reg).
515
516 2007-08-22 Richard Guenther <rguenther@suse.de>
517
518 PR middle-end/33007
519 * builtins.c (expand_builtin_int_roundingfn): Replace call
520 argument wrapped with SAVE_EXPR directly.
521 (expand_builtin_int_roundingfn_2): Likewise.
522
523 2007-08-22 Richard Guenther <rguenther@suse.de>
524
525 * tree-inline.c (inlinable_function_p): Restore disregarding
526 inline limits for GNU extern inline functions.
527
528 2007-08-22 Richard Guenther <rguenther@suse.de>
529
530 PR middle-end/32563
531 * tree.c (host_integerp): Treat sizetype as signed as it is
532 sign-extended.
533
534 2007-08-21 Ian Lance Taylor <iant@google.com>
535
536 PR tree-optimization/33134
537 * tree-vrp.c (adjust_range_with_scev): Call
538 set_value_range_to_value.
539
540 2007-08-21 Aldy Hernandez <aldyh@redhat.com>
541
542 * value-prof.h (gimple_remove_histogram_value): Remove duplicate
543 prototype.
544
545 2007-08-21 Aldy Hernandez <aldyh@redhat.com>
546
547 * tree-flow-inline.h (next_imm_use_stmt): Remove unecessary
548 whitespace.
549
550 2007-08-21 Nathan Froyd <froydnj@codesourcery.com>
551
552 * config/rs6000/rs6000.c (expand_block_clear): Add TARGET_SPE
553 cases to set eight bytes at a time.
554 (expand_block_move): Likewise.
555
556 2007-08-21 Jakub Jelinek <jakub@redhat.com>
557
558 PR debug/32610
559 * dwarf2out.c (gen_decl_die): Don't call
560 gen_tagged_type_instantiation_die if decl doesn't have tagged type.
561
562 2007-08-21 Paul Brook <paul@codesourcery.com>
563 Nathan Sidwell <nathan@codesourcery.com>
564 Mark Mitchell <mark@codesourcery.com>
565 Joseph Myers <joseph@codesourcery.com>
566
567 * configure.ac: Add --with-pkgversion and --with-bugurl.
568 * configure: Regenerate.
569 * doc/install.texi: Document them.
570 * version.c (version_string): Remove VERSUFFIX.
571 (VERSUFFIX): Remove.
572 (pkgversion_string): New.
573 (bug_report_url): Do not hard-code initializer.
574 * version.h (pkgversion_string): Declare.
575 * Makefile.in (PKGVERSION_s, BUGURL_s, PKGVERSION, BUGURL_TEXI):
576 Define.
577 (version.o): Define PKGVERSION and BUGURL.
578 (gcc-vers.texi): Define VERSION_PACKAGE and BUGURL.
579 (%.pod): Define BUGURL.
580 * gcc.c (process_command, main): Use pkgversion_string.
581 * toplev.c (compile_file, print_version): Likewise.
582 * protoize.c (main): Likewise.
583 * gcov.c (print_version): Likewise. Update copyright date.
584 * gcov-dump.c (print_version): Likewise. Update copyright date.
585 * mips-tdump.c (main): Likewise. Update copyright date.
586 * mips-tfile.c (main): Likewise. Update copyright date.
587 * doc/include/gcc-common.texi: Include VERSION_PACKAGE as subtitle.
588 * doc/bugreport.texi: Use BUGURL for bug-reporting instructions;
589 shorten description.
590 * doc/gcc.texi: Include VERSION_PACKAGE in version description.
591 * doc/gccint.texi: Likewise.
592 * doc/invoke.texi: Use BUGURL for bug-reporting instructions.
593 Update copyright date.
594
595 2007-08-21 Uros Bizjak <ubizjak@gmail.com>
596
597 * config/i386/i386.c (ix86_expand_clear): Use FLAGS_REG.
598 (ix86_expand_strlensi_unroll_1): Ditto.
599 (ix86_expand_branch): Use FLAGS_REG and FPSR_REG.
600 (ix86_expand_carry_flag_compare): Update comment.
601
602 2007-08-21 Jakub Jelinek <jakub@redhat.com>
603
604 PR middle-end/32912
605 * fold-const.c (fold_unary): Optimize BIT_NOT_EXPR of VECTOR_CST.
606 (fold_binary): Handle vectors in X | ~X and X ^ ~X optimizations.
607
608 2007-08-21 Richard Guenther <rguenther@suse.de>
609
610 * fold-const.c (fold_binary): Revert removing of index +p PTR folding.
611
612 2007-08-21 Richard Guenther <rguenther@suse.de>
613
614 PR middle-end/33122
615 * fold-const.c (fold_binary): Remove index +p PTR folding.
616 Fix types of POINTER_PLUS_EXPR generated by folding of
617 (PTR +p B) +p A.
618
619 2007-08-20 Chao-ying Fu <fu@mips.com>
620
621 * c-common.h (enum rid): Add new enumeration values of RID_SAT,
622 RID_FRACT, and RID_ACCUM. RID_SAT needs to be inserted before
623 RID_ONEWAY, so that it can be checked in declspecs_add_type.
624 (c_common_fixed_point_type_for_size): Declare.
625 * c-parser.c (reswords): Add _Fract, _Accum, and _Sat.
626 (c_token_starts_typename): Handle RID_FRACT, RID_ACCUM, and RID_SAT.
627 (c_token_starts_declspecs): Likewise.
628 (c_parser_declspecs): Likewise.
629 (c_parser_attributes): Likewise.
630 * c-tree.h (enum c_typespec_keyword): Add cts_fract and cts_accum.
631 (c_declspecs): Add saturating_p.
632 * c-decl.c (build_null_declspecs): Initialize saturating_p.
633 (declspecs_add_type): Avoid using complex with _Fract, _Accum, or
634 _Sat. Handle RID_SAT.
635 Avoid using void, bool, char, int, float, double, _Decimal32,
636 _Decimal64, _Decimal128, and complex with _Sat.
637 Handle RID_FRACT and RID_ACCUM.
638 Make sure _Sat is used with _Fract or _Accum.
639 (finish_declspecs): Handle cts_fract and cts_accum.
640 * c-common.c (fixed-value.h): New include.
641 (constant_expression_warning): Handle FIXED_CST.
642 (overflow_warning): Likewise.
643 (warnings_for_convert_and_check): Likewise.
644 (c_common_fixed_point_type_for_size): New.
645 (c_common_type_for_mode): Handle fixed-point modes to
646 return various saturating/non-saturating, signed/unsigned types.
647 (c_common_signed_or_unsigned_type): Support fixed-point types.
648 (shorten_compare): Check fixed-point zero.
649 Handle FIXED_POINT_TYPE.
650 (c_common_truthvalue_conversion): Handle FIXED_CST.
651 Handle FIXED_POINT_TYPE.
652 (c_common_nodes_and_builtins): Record builtin types for fixed-point
653 types.
654 (handle_mode_attribute): Handle fixed-point modes. Need to check
655 if the signness of base type and fixed-point modes are consistent.
656 (handle_vector_size_attribute): Handle fixed-point modes.
657 (same_scalar_type_ignoring_signedness): Handle FIXED_POINT_TYPE.
658 (warn_for_div_by_zero): Check fixed-point zero.
659 * c-typeck.c (c_common_type): Check FIXED_POINT_TYPE. Build
660 a common fixed-point type based on fbit, ibit, sign, and saturation.
661 (build_unary_op): Allow FIXED_POINT_TYPE for CONVERT_EXPR,
662 NEGATE_EXPR, TRUTH_NOT_EXPR, PREINCREMENT_EXPR, POSTINCREMENT_EXPR,
663 PREDECREMENT_EXPR, and POSTDECREMENT_EXPR.
664 (convert_for_assignment): Support FIXED_POINT_TYPE.
665 (digest_init): Handle FIXED_POINT_TYPE.
666 (build_binary_op): Support FIXED_POINT_TYPE in *_DIV_EXPR,
667 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
668 TRUTH_XOR_EXPR, RSHIFT_EXPR, LSHIFT_EXPR, EQ_EXPR, NE_EXPR, LE_EXPR,
669 GE_EXPR, LT_EXPR, GT_EXPR.
670 * target-def.h (TARGET_FIXED_POINT_SUPPORTED_P): New.
671 (TARGET_INITIALIZER): Add TARGET_FIXED_POINT_SUPPORTED_P.
672 * target.h (gcc_target): Add fixed_point_supported_p.
673 * targhooks.c (default_scalar_mode_supported_p): Handle MODE_FRACT,
674 MODE_UFRACT, MODE_ACCUM, and MODE_UACCUM.
675 (default_fixed_point_supported_p): Define.
676 * targhooks.h (default_fixed_point_supported_p): Declare.
677 * doc/tm.texi (TARGET_FIXED_POINT_SUPPORTED_P): Add.
678 * doc/install.texi (Configuration): Add --enable-fixed-point.
679 * configure.ac (--enable-fixed-point): New to enable fixed-point
680 arithmetic extension to C. For mips targets, we enable it by default.
681 * configure, config.in: Regenerate.
682
683 2007-08-20 Pawel Sikora <pluto@pld-linux.org>
684
685 * doc/invoke.texi (-Wnon-virtual-dtor): Update documentation.
686
687 2007-08-20 David Edelsohn <edelsohn@gnu.org>
688
689 * dwarf2out.c (text_section_used): Move declaration outside ifdef
690 DWARF2_DEBUGGING_INFO.
691 (cold_text_section_used): Same.
692 (cold_text_section): Same.
693
694 2007-08-20 Richard Guenther <rguenther@suse.de>
695
696 * c-typeck.c (convert_for_assignment): Use the type of
697 the member for the initialization.
698
699 2007-08-20 Richard Guenther <rguenther@suse.de>
700
701 * c-objc-common.c (c_disregard_inline_limits): Remove.
702 * c-objc-common.h (c_disregard_inline_limits): Likewise.
703 * cgraphunit.c (cgraph_process_new_functions): Call
704 disregard_inline_limits_p.
705 (cgraph_preserve_function_body_p): Likewise.
706 * ipa-inline.c (compute_inline_parameters): Likewise.
707 * langhooks-def.h (lhd_tree_inlining_disregard_inline_limits):
708 Remove.
709 (LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS): Remove.
710 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
711 disregard_inline_limits langhook.
712 * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
713 Remove.
714 * langhooks.h (lang_hooks_for_tree_inlining): Remove
715 disregard_inline_limits langhook.
716 * tree-inline.c (disregard_inline_limits_p): New function.
717 * tree-inline.h (disregard_inline_limits_p): Declare.
718
719 2007-08-20 Richard Guenther <rguenther@suse.de>
720
721 * langhooks-def.h (lhd_tree_inlining_auto_var_in_fn_p): Remove.
722 (LANG_HOOKS_TREE_INLINING_AUTO_VAR_IN_FN_P): Likewise.
723 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove initializer for
724 auto_var_in_fn_p langhook.
725 * langhooks.c (lhd_tree_inlining_auto_var_in_fn_p): Rename and
726 move ...
727 * tree.c (auto_var_in_fn_p): ... here.
728 (find_var_from_fn): Call auto_var_in_fn_p directly.
729 * langhooks.h (lang_hooks_for_tree_inlining): Remove
730 auto_var_in_fn_p langhook.
731 * tree-inline.c (remap_decls): Call auto_var_in_fn_p directly.
732 (copy_body_r): Likewise.
733 (self_inlining_addr_expr): Likewise.
734 * tree.h (auto_var_in_fn_p): Declare.
735
736 2007-08-20 Richard Guenther <rguenther@suse.de>
737
738 * tree.c (WALK_SUBTREE): Call walk_tree_1.
739 (walk_type_fields): Take lh parameter.
740 (walk_tree): Rename to ...
741 (walk_tree_1): ... this. Do not call the walk_subtrees
742 langhook but the now passed callback. Pass lh on recursion.
743 (walk_tree_without_duplicates): Rename to ...
744 (walk_tree_without_duplicates_1): ... this. Take lh parameter
745 and call walk_tree_1.
746 * tree.h (walk_tree_lh): New typedef.
747 (walk_tree_1): Declare.
748 (walk_tree_without_duplicates_1): Likewise.
749 (walk_tree): New define to walk_tree_1 with NULL lh parameter.
750 (walk_tree_without_duplicates): New define to
751 walk_tree_without_duplicates_1 with NULL lh parameter.
752 * langhooks.c (lhd_tree_inlining_walk_subtrees): Remove.
753 * langhooks.h (lang_hooks_for_tree_inlining): Remove walk_subtrees
754 langhook.
755 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Remove.
756 (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Likewise.
757 (LANG_HOOKS_TREE_INLINING_INITIALIZER): Remove walk_subtrees
758 initializer.
759
760 2007-08-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
761
762 PR middle-end/30564
763 * tree-inline.c (optimize_inline_calls): Move the cgraph checking
764 code in front of the compacting of basic blocks.
765 Move the folding of statements inbetween the cgraph checking
766 and compacting of basic blocks.
767
768 2007-08-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
769 Serge Belyshev <belyshev@depni.sinp.msu.ru>
770
771 PR target/32522
772 * config/alpha/alpha.c (va_list_skip_additions): Check for
773 POINTER_PLUS_EXPR in addition to PLUS_EXPR.
774 (alpha_stdarg_optimize_hook): Look for POINTER_PLUS_EXPR instead of
775 PLUS_EXPR when checking ap.__base.
776 (alpha_va_start): Create POINTER_PLUS_EXPR instead of PLUS_EXPR
777 when doing addition on pointer types. Use size_int instead of
778 build_int_cst.
779 (alpha_gimplify_va_arg_1): Likewise, but use sizetype instead of
780 ptr_type in the second operand.
781
782 2007-08-19 Andrew Pinski <pinskia@gmail.com>
783
784 PR target/33115
785 * config/i386/darwin.h (CC1_SPEC): Add %(cc1_cpu) in front.
786
787 2007-08-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
788
789 PR middle-end/32940
790 * cfgexpand.c (expand_one_register_var): Mark pointer
791 DECL_ARTIFICIAL as REG_POINTER also.
792 * stmt.c (expand_decl): Likewise.
793
794 2007-08-19 Daniel Berlin <dberlin@dberlin.org>
795
796 Fix PR 32772
797 Fix PR 32716
798 Fix PR 32328
799 Fix PR 32303
800
801 * tree-flow.h (struct stmt_ann_d): Remove makes_clobbering_call.
802 * tree-ssa-alias.c (init_transitive_clobber_worklist): Add
803 on_worklist argument and avoid adding things to worklist multiple
804 times.
805 (add_to_worklist): Ditto.
806 (mark_aliases_call_clobbered): Mark entire structure clobbered if
807 single SFT is clobbered.
808 (set_initial_properties): Ditto.
809 (compute_call_clobbered): Update for changes to function
810 arguments.
811 (create_overlap_variables_for): Always create SFT for offset 0.
812 (create_structure_vars): Handle PHI's, since we are in SSA form at
813 this point.
814 * tree-ssa-loop-ivopts.c (get_ref_tag): Don't return subvars.
815 * tree-ssa-operands.c (access_can_touch_variable): Don't handle
816 TARGET_MEM_REF.
817 (add_vars_for_offset): Figure out aliases from access + points-to.
818 (add_virtual_operand): Use add_vars-for_offset.
819 (get_tmr_operands): Update for NMT changes, rewrite to be correct.
820 (add_call_clobber_ops): Remove makes_clobbering_call set.
821 (get_expr_operands): Always pass through the INDIRECT_REF
822 reference.
823 * tree-ssa-structalias.c (struct constraint_graph): Remove
824 variables member.
825 Add pe, pe_rep, pointer_label, loc_label, pointed_by, points_to,
826 address_taken, pt_used, number_incoming.
827 (FIRST_ADDR_NODE): Removed.
828 (merge_graph_nodes): Remove broken code for the moment.
829 (init_graph): New function.
830 (build_pred_graph): Remove code to init_graph.
831 Add location equivalence support.
832 (struct scc_info): Rename roots to deleted.
833 (scc_visit): Ditto.
834 (init_scc_info): Ditto
835 (init_topo_info): Use graph->size.
836 (compute_topo_order): Ditto.
837 (do_da_constraint): Removed.
838 (do_sd_constraint): Remove calls to find().
839 set_union_with_increment should always get 0 as last arg here.
840 (do_complex_constraint): Replace do_da_constraint with assert.
841 Stop calling find.
842 (struct equiv_class_label): New.
843 (pointer_equiv_class_table): Ditto.
844 (location_equiv_class_table): Ditto.
845 (equiv_class_label_hash): Ditto.
846 (equiv_class_label_eq): Ditto
847 (equiv_class_lookup): Ditto.
848 (equiv_class_ladd): Ditto.
849 (pointer_equiv_class): Ditto.
850 (location_equiv_class): Ditto.
851 (condense_visit): Rename and rewrite from label_visit to do only
852 SCC related stuff for HU.
853 (label_visit): Do HU work for HU.
854 (perform_var_substitution): Update to do HU and location
855 equivalence.
856 (free_var_substitution_info): Update to free HU and location
857 equivalence structures. */
858 (find_equivalent_node): Update for pointer but not location
859 equivalence.
860 (unite_pointer_equivalences): New function.
861 (move_complex_constraints): Rewrite to only do moving.
862 (rewrite_constraints): Split out of move_complex_constraints.
863 (solve_graph): Use graph->size.
864 (process_constraint_1): Add from_call argument, use it.
865 Split *a = &b into two constraints.
866 (process_constraint): Use new process_constraint_1.
867 (get_constraint_for_component_ref): Handle bitmaxsize == -1 case.
868 (get_constraint_for): Handle non-pointer integers properly.
869 Remove code that used to handle structures.
870 (handle_ptr_arith): Fix a few bugs in pointer arithmetic handling
871 with unknown addends.
872 (handle_rhs_call): New function.
873 (find_func_aliases): Use handle_rhs_call.
874 (set_uids_in_ptset): Add an assert.
875 (set_used_smts): Fix bug in not considering unified vars.
876 (compute_tbaa_pruning): Stop initing useless iteration_obstack.
877 (compute_points_to_sets): Update for other function changes.
878 (delete_points_to_sets): Ditto.
879 (ipa_pta_execute): Ditto.
880 (pass_ipa_pta): We need to update SSA after ipa_pta.
881
882 2007-08-19 Jan Hubicka <jh@suse.cz>
883
884 * i386.md: Replace "rim" and "mri" constraints by "g".
885
886 2007-08-19 Joseph Myers <joseph@codesourcery.com>
887
888 * dwarf2out.c (text_section_used, cold_text_section_used,
889 cold_text_section, dwarf2out_note_section_used): New.
890 (dwarf2out_init): Initialize cold_text_section.
891 (dwarf2out_switch_text_section, dwarf2out_begin_function): Call
892 dwarf2out_note_section_used.
893 (size_of_aranges): Only count entry for text section if it was
894 used. Count entry for cold text section if it was used.
895 (output_aranges): Only output entries for text section and cold
896 text section if they were used.
897
898 2007-08-19 Andrew Pinski <pinskia@gmail.com>
899
900 * tree-pretty-print.c (debug_generic_expr): Add a comment about
901 the function.
902 (debug_generic_stmt): Likewise.
903 (debug_tree_chain): Likewise.
904
905 2007-08-19 Dorit Nuzman <dorit@il.ibm.com>
906
907 * tree-data-refs.c (split_constant_offset): Expose.
908 * tree-data-refs.h (split_constant_offset): Add declaration.
909
910 * tree-vectorizer.h (dr_alignment_support): Renamed
911 dr_unaligned_software_pipeline to dr_explicit_realign_optimized.
912 Added a new value dr_explicit_realign.
913 (_stmt_vec_info): Added new fields: dr_base_address, dr_init,
914 dr_offset, dr_step, and dr_aligned_to, along with new access
915 functions for these fields: STMT_VINFO_DR_BASE_ADDRESS,
916 STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET, STMT_VINFO_DR_STEP, and
917 STMT_VINFO_DR_ALIGNED_TO.
918
919 * tree-vectorizer.c (vect_supportable_dr_alignment): Add
920 documentation.
921 In case of outer-loop vectorization with non-fixed misalignment - use
922 the dr_explicit_realign scheme instead of the optimized realignment
923 scheme.
924 (new_stmt_vec_info): Initialize new fields.
925
926 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Handle the
927 'nested_in_vect_loop' case. Change verbosity level.
928 (vect_analyze_data_ref_access): Handle the 'nested_in_vect_loop' case.
929 Don't fail on zero step in the outer-loop for loads.
930 (vect_analyze_data_refs): Call split_constant_offset to calculate
931 base, offset and init relative to the outer-loop.
932
933 * tree-vect-transform.c (vect_create_data_ref_ptr): Replace the unused
934 BSI function argument with a new function argument - at_loop.
935 Simplify the condition that determines STEP. Takes additional argument
936 INV_P. Support outer-loop vectorization (handle the
937 nested_in_vect_loop case), including zero step in the outer-loop. Call
938 vect_create_addr_base_for_vector_ref with additional argument.
939 (vect_create_addr_base_for_vector_ref): Takes additional argument LOOP.
940 Updated function documentation. Handle the 'nested_in_vect_loop' case.
941 Fixed and simplified calculation of step.
942 (vectorizable_store): Call vect_create_data_ref_ptr with loop instead
943 of bsi, and with additional argument. Call bump_vector_ptr with
944 additional argument. Fix typos. Handle the 'nested_in_vect_loop' case.
945 (vect_setup_realignment): Takes additional arguments INIT_ADDR and
946 DR_ALIGNMENT_SUPPORT. Returns another value AT_LOOP. Handle the case
947 when the realignment setup needs to take place inside the loop.
948 Support the dr_explicit_realign scheme. Allow generating the optimized
949 realignment scheme for outer-loop vectorization. Added documentation.
950 (vectorizable_load): Support the dr_explicit_realign scheme. Handle
951 the 'nested_in_vect_loop' case, including loads that are invariant in
952 the outer-loop and the realignment schemes. Handle the case when the
953 realignment setup needs to take place inside the loop. Call
954 vect_setup_realignment with additional arguments. Call
955 vect_create_data_ref_ptr with additional argument and with loop instead
956 of bsi. Fix 80-column overflow. Fix typos. Rename PHI_STMT to PHI.
957 (vect_gen_niters_for_prolog_loop): Call
958 vect_create_addr_base_for_vector_ref with additional arguments.
959 (vect_create_cond_for_align_checks): Likewise.
960 (bump_vector_ptr): Updated to support the new dr_explicit_realign
961 scheme: takes additional argument bump; argument ptr_incr is now
962 optional; updated documentation.
963 (vect_init_vector): Takes additional argument (bsi). Use it, if
964 available, to insert the vector initialization.
965 (get_initial_def_for_induction): Pass additional argument in call to
966 vect_init_vector.
967 (vect_get_vec_def_for_operand): Likewise.
968 (vect_setup_realignment): Likewise.
969 (vectorizable_load): Likewise.
970
971 2007-08-19 Dorit Nuzman <dorit@il.ibm.com>
972
973 * tree-vectorizer.h (vect_is_simple_reduction): Takes a loop_vec_info
974 as argument instead of struct loop.
975 (nested_in_vect_loop_p): New function.
976 (vect_relevant): Add enum values vect_used_in_outer_by_reduction and
977 vect_used_in_outer.
978 (is_loop_header_bb_p): New. Used to differentiate loop-header phis
979 from other phis in the loop.
980 (destroy_loop_vec_info): Add additional argument to declaration.
981
982 * tree-vectorizer.c (supportable_widening_operation): Also check if
983 nested_in_vect_loop_p (don't allow changing the order in this case).
984 (vect_is_simple_reduction): Takes a loop_vec_info as argument instead
985 of struct loop. Call nested_in_vect_loop_p and don't require
986 flag_unsafe_math_optimizations if it returns true.
987 (new_stmt_vec_info): When setting def_type for phis differentiate
988 loop-header phis from other phis.
989 (bb_in_loop_p): New function.
990 (new_loop_vec_info): Inner-loop phis already have a stmt_vinfo, so
991 just update their loop_vinfo. Order of BB traversal now matters -
992 call dfs_enumerate_from with bb_in_loop_p.
993 (destroy_loop_vec_info): Takes additional argument to control whether
994 stmt_vinfo of the loop stmts should be destroyed as well.
995 (vect_is_simple_reduction): Allow the "non-reduction" use of a
996 reduction stmt to be defines by a non loop-header phi.
997 (vectorize_loops): Call destroy_loop_vec_info with additional argument.
998
999 * tree-vect-transform.c (vectorizable_reduction): Call
1000 nested_in_vect_loop_p. Check for multitypes in the inner-loop.
1001 (vectorizable_call): Likewise.
1002 (vectorizable_conversion): Likewise.
1003 (vectorizable_operation): Likewise.
1004 (vectorizable_type_promotion): Likewise.
1005 (vectorizable_type_demotion): Likewise.
1006 (vectorizable_store): Likewise.
1007 (vectorizable_live_operation): Likewise.
1008 (vectorizable_reduction): Likewise. Also pass loop_info to
1009 vect_is_simple_reduction instead of loop.
1010 (vect_init_vector): Call nested_in_vect_loop_p.
1011 (get_initial_def_for_reduction): Likewise.
1012 (vect_create_epilog_for_reduction): Likewise.
1013 (vect_init_vector): Check which loop to work with, in case there's an
1014 inner-loop.
1015 (get_initial_def_for_inducion): Extend to handle outer-loop
1016 vectorization. Fix indentation.
1017 (vect_get_vec_def_for_operand): Support phis in the case vect_loop_def.
1018 In the case vect_induction_def get the vector def from the induction
1019 phi node, instead of calling get_initial_def_for_inducion.
1020 (get_initial_def_for_reduction): Extend to handle outer-loop
1021 vectorization.
1022 (vect_create_epilog_for_reduction): Extend to handle outer-loop
1023 vectorization.
1024 (vect_transform_loop): Change assert to just skip this case. Add a
1025 dump printout.
1026 (vect_finish_stmt_generation): Add a couple asserts.
1027
1028 (vect_estimate_min_profitable_iters): Multiply
1029 cost of inner-loop stmts (in outer-loop vectorization) by estimated
1030 inner-loop bound.
1031 (vect_model_reduction_cost): Don't add reduction epilogue cost in case
1032 this is an inner-loop reduction in outer-loop vectorization.
1033
1034 * tree-vect-analyze.c (vect_analyze_scalar_cycles_1): New function.
1035 Same code as what used to be vect_analyze_scalar_cycles, only with
1036 additional argument loop, and loop_info passed to
1037 vect_is_simple_reduction instead of loop.
1038 (vect_analyze_scalar_cycles): Code factored out into
1039 vect_analyze_scalar_cycles_1. Call it for each relevant loop-nest.
1040 Updated documentation.
1041 (analyze_operations): Check for inner-loop loop-closed exit-phis during
1042 outer-loop vectorization that are live or not used in the outerloop,
1043 cause this requires special handling.
1044 (vect_enhance_data_refs_alignment): Don't consider versioning for
1045 nested-loops.
1046 (vect_analyze_data_refs): Check that there are no datarefs in the
1047 inner-loop.
1048 (vect_mark_stmts_to_be_vectorized): Also consider vect_used_in_outer
1049 and vect_used_in_outer_by_reduction cases.
1050 (process_use): Also consider the case of outer-loop stmt defining an
1051 inner-loop stmt and vice versa.
1052 (vect_analyze_loop_1): New function.
1053 (vect_analyze_loop_form): Extend, to allow a restricted form of nested
1054 loops. Call vect_analyze_loop_1.
1055 (vect_analyze_loop): Skip (inner-)loops within outer-loops that have
1056 been vectorized. Call destroy_loop_vec_info with additional argument.
1057
1058 * tree-vect-patterns.c (vect_recog_widen_sum_pattern): Don't allow
1059 in the inner-loop when doing outer-loop vectorization. Add
1060 documentation and printout.
1061 (vect_recog_dot_prod_pattern): Likewise. Also add check for
1062 GIMPLE_MODIFY_STMT (in case we encounter a phi in the loop).
1063
1064 2007-08-18 Andrew Pinski <pinskia@gmail.com>
1065
1066 * tree-affine.h (print_aff): New prototype.
1067 (debug_aff): Likewise.
1068 * tree-affine.c (print_aff): New function.
1069 (debug_aff): Likewise.
1070
1071 2007-08-18 Paul Brook <paul@codesourcery.com>
1072 Joseph Myers <joseph@codesourcery.com>
1073
1074 * common.opt (-fdebug-prefix-map=): New option.
1075 * opts.c: Include debug.h.
1076 (common_handle_option): Handle -fdebug-prefix-map.
1077 * final.c: Include ggc.h.
1078 (struct debug_prefix_map, debug_prefix_maps, add_debug_prefix_map,
1079 remap_debug_filename): New.
1080 * Makefile.in (final.o, opts.o): Update dependencies.
1081 * debug.h (remap_debug_filename, add_debug_prefix_map): Declare.
1082 * configure.ac: Check for assembler --debug-prefix-map support.
1083 * configure, config.in: Regenerate.
1084 * gcc.c (ASM_MAP): Define conditional on HAVE_AS_DEBUG_PREFIX_MAP.
1085 (ASM_DEBUG_SPEC): Include ASM_MAP.
1086 * doc/install.texi (--with-debug-prefix-map): Document.
1087 * doc/invoke.texi (-fdebug-prefix-map): Document.
1088 * dbxout.c (dbxout_init, dbxout_start_source_file,
1089 dbxout_source_file): Call remap_debug_filename.
1090 * dwarf2out.c (add_comp_dir_attribute, maybe_emit_file,
1091 dwarf2out_start_source_file, dwarf2out_finish): Call
1092 remap_debug_filename.
1093 (file_table_relative_p): Do not check d->emitted_number.
1094 * toplev.c (output_file_directive): Call remap_debug_filename.
1095 * vmsdbgout.c (write_srccorr): Call remap_debug_filename.
1096 * xcoffout.c (xcoffout_source_file): Call remap_debug_filename.
1097
1098 2007-08-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1099
1100 * loop-invariant.c (find_invariants_to_move): Add missing macro
1101 argument.
1102
1103 2007-08-17 Tom Tromey <tromey@redhat.com>
1104
1105 * tree.h (struct tree_label_decl): Removed old "java" fields.
1106
1107 2007-08-17 Richard Sandiford <richard@codesourcery.com>
1108 Nigel Stephens <nigel@mips.com>
1109
1110 * config/mips/sde.h (DRIVER_SELF_SPECS): Add commas.
1111 Treat -mno-data-in-code and -mcode-xonly as aliases for
1112 -mcode-readable=no and -mcode-readable=pcrel respectively.
1113 * config/mips/t-sde (TARGET_LIBGCC2_CFLAGS): Add -mcode-xonly.
1114 (MULTILIB_OPTIONS): Add -mcode-readable=no multilibs.
1115 (MULTILIB_DIRNAMES): Update accordingly.
1116
1117 2007-08-17 H.J. Lu <hongjiu.lu@intel.com>
1118
1119 * Makefile.in (version.o): Depend on $(REVISION) only if
1120 REVISION_s is defined.
1121
1122 2007-08-17 Sa Liu <saliu@de.ibm.com>
1123 Ulrich Weigand <uweigand@de.ibm.com>
1124
1125 PR middle-end/32970
1126 * tree.c (reconstruct_complex_type): For a pointer to a vector,
1127 use build_qualified_type to retain qualifiers of the base type.
1128
1129 2007-08-17 Chen Liqin <liqin@sunnorth.com.cn>
1130
1131 * config/score/score.md : Update pattern tablejump.
1132 * config/score/score.c : Update score_initialize_trampoline
1133 function.
1134 * config/score/score.h (TRAMPOLINE_TEMPLATE): Added macro.
1135 (TRAMPOLINE_INSNS, TRAMPOLINE_SIZE) Update macro.
1136 * doc/contrib.texi: Add my entry.
1137
1138 2007-08-16 H.J. Lu <hongjiu.lu@intel.com>
1139
1140 * Makefile.in (REVISION): New.
1141 (REVISION_c): New.
1142 (REVISION_s): New.
1143 (version.o): Also depend on $(REVISION). Add
1144 -DREVISION=$(REVISION_s).
1145
1146 * version.c (version_string): Add REVISION.
1147
1148 2007-08-16 Seongbae Park <seongbae.park@gmail.com>
1149
1150 * tree-eh.c (lower_try_finally_onedest): Reset the locus
1151 of GOTO that's relocated to a different block.
1152
1153 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1154
1155 * c-common.c (const_strip_array_types): New.
1156 * c-common.h (lang_missing_noreturn_ok_p): Delete.
1157 (const_strip_array_types): New.
1158 * c-objc-common.c (c_disregard_inline_limits,
1159 c_warn_unused_global_decl): Constify.
1160 * c-tree.h (c_disregard_inline_limits, c_warn_unused_global_decl,
1161 c_vla_type_p, c_incomplete_type_error): Likewise.
1162 * c-typeck.c (c_incomplete_type_error, c_vla_type_p): Likewise.
1163 * hooks.c (hook_bool_const_tree_false): New.
1164 * hooks.h (hook_bool_const_tree_false): Likewise.
1165 * langhooks-def.h (lhd_warn_unused_global_decl,
1166 lhd_incomplete_type_error, lhd_expr_size,
1167 lhd_tree_inlining_disregard_inline_limits,
1168 lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
1169 LANG_HOOKS_GENERIC_TYPE_P, LANG_HOOKS_TYPE_MAX_SIZE): Constify.
1170 * langhooks.c (lhd_warn_unused_global_decl,
1171 lhd_incomplete_type_error,
1172 lhd_tree_inlining_disregard_inline_limits,
1173 lhd_tree_inlining_auto_var_in_fn_p, lhd_tree_dump_type_quals,
1174 lhd_expr_size): Likewise.
1175 * langhooks.h (lang_hooks_for_tree_inlining,
1176 lang_hooks_for_tree_dump, lang_hooks_for_types,
1177 lang_hooks_for_decls, lang_hooks): Likewise.
1178 * pointer-set.c (pointer_set_t, pointer_set_create,
1179 pointer_set_contains, insert_aux, pointer_set_insert,
1180 pointer_set_traverse, pointer_map_t, pointer_map_create,
1181 pointer_map_contains, pointer_map_insert, pointer_map_traverse):
1182 Likewise.
1183 * pointer-set.h (pointer_set_contains, pointer_set_insert,
1184 pointer_set_traverse, pointer_map_contains, pointer_map_insert,
1185 pointer_map_traverse): Likewise.
1186 * predict.c (assert_is_empty): Likewise.
1187 * tree-affine.c (free_name_expansion): Likewise.
1188 * tree-cfg.c (edge_to_cases_cleanup): Likewise.
1189 * tree.c (size_in_bytes, max_int_size_in_bytes): Likewise.
1190 * tree.h (size_in_bytes, max_int_size_in_bytes): Likewise.
1191
1192 2007-08-16 Victor Kaplansky <victork@il.ibm.com>
1193
1194 * tree-vectorizer.c (new_loop_vec_info): Initialize new
1195 field.
1196 (destroy_loop_vec_info): Add call to VEC_free.
1197 * tree-vectorizer.h (may_alias_ddrs): Define.
1198 (LOOP_VINFO_MAY_ALIAS_DDRS): Define.
1199 * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
1200 Change reporting to dump.
1201 (vect_is_duplicate_ddr): New.
1202 (vect_mark_for_runtime_alias_test): New.
1203 (vect_analyze_data_ref_dependences) Add call to
1204 vect_mark_for_runtime_alias_test.
1205 (vect_enhance_data_refs_alignment): Define local variable
1206 vect_versioning_for_alias_required, don't perform
1207 peeling for alignment if versioning for alias is
1208 required.
1209 (vect_enhance_data_refs_alignment): Use
1210 PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS instead of
1211 PARAM_VECT_MAX_VERSION_CHECKS.
1212 * tree-vect-transform.c
1213 (vect_create_cond_for_alias_checks): New.
1214 (vect_transform_loop): Add call to
1215 vect_create_cond_for_alias_checks.
1216 (vect_vfa_segment_size): New.
1217 * params.def (PARAM_VECT_MAX_VERSION_FOR_ALIGNMENT_CHECKS):
1218 Rename.
1219 (PARAM_VECT_MAX_VERSION_FOR_ALIAS_CHECKS): Define.
1220 * gcc/doc/invoke.texi
1221 (vect-max-version-for-alignment-checks): Document.
1222 (vect-max-version-for-alias-checks): Document.
1223 (vect-max-version-checks): Remove.
1224
1225 2007-08-16 Uros Bizjak <ubizjak@gmail.com>
1226
1227 * config/i386/i386.md (*rep_movdi_rex64): Emit "rep" prefix on
1228 the same line as the instruction for all asm dialects.
1229 (*rep_movsi): Ditto.
1230 (*rep_movsi_rex64): Ditto.
1231 (*rep_movqi): Ditto.
1232 (*rep_movqi_rex64): Ditto.
1233 (*rep_stosdi_rex64): Ditto.
1234 (*rep_stossi): Ditto.
1235 (*rep_stossi_rex64): Ditto.
1236 (*rep_stosqi): Ditto.
1237 (*rep_stosqi_rex64): Ditto.
1238 (*cmpstrnqi_nz_1): Ditto.
1239 (*cmpstrnqi_nz_rex_1): Ditto.
1240 (*cmpstrnqi_1): Ditto.
1241 (*cmpstrnqi_rex_1): Ditto.
1242 (*strlenqi_1): Ditto.
1243 (*strlenqi_rex_1): Ditto.
1244 * config/i386/sync.md (*sync_compare_and_swap<mode>): Emit "lock"
1245 prefix on the same line as the instruction for all asm dialects.
1246 (sync_double_compare_and_swap<mode>): Ditto.
1247 (*sync_double_compare_and_swapdi_pic): Ditto.
1248 (*sync_compare_and_swap_cc<mode>): Ditto.
1249 (sync_double_compare_and_swap_cc<mode>): Ditto.
1250 (*sync_double_compare_and_swap_ccdi_pic): Ditto.
1251 (sync_old_add<mode>): Ditto.
1252 (sync_add<mode>): Ditto.
1253 (sync_sub<mode>): Ditto.
1254 (sync_ior<mode>): Ditto.
1255 (sync_and<mode>): Ditto.
1256 (sync_xor<mode>): Ditto.
1257
1258 2007-08-16 Richard Sandiford <richard@codesourcery.com>
1259
1260 PR middle-end/32897
1261 * reload.c (find_reloads): Check that the memory returned by
1262 find_reloads_toplev was not the result of forcing a constant
1263 to memory.
1264 (find_reloads_toplev): Always use simplify_gen_subreg to get
1265 the subreg of a constant. If the result is also a constant,
1266 but not a legitimate one, force it into the constant pool
1267 and reload its address.
1268
1269 2007-08-15 David Edelsohn <edelsohn@gnu.org>
1270
1271 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add CLZ, CTZ, and
1272 POPCOUNT.
1273
1274 2007-08-15 Daniel Jacobowitz <dan@codesourcery.com>
1275
1276 * config/rs6000/rs6000.c (rs6000_file_start): Output a .gnu_attribute
1277 directive for the current vector ABI.
1278
1279 2007-08-15 Steve Ellcey <sje@cup.hp.com>
1280
1281 PR target/32963
1282 * caller-save.c (reg_save_code): Set invalide status on restore code.
1283
1284 2007-08-15 Diego Novillo <dnovillo@google.com>
1285
1286 * tree-ssa-alias.c (compute_memory_partitions): Use
1287 alias_bitmap_obstack to allocate bitmaps.
1288 (reset_alias_info): Factor out of init_alias_info.
1289 Mark all name tags not associated to an SSA name for renaming.
1290 (init_alias_info): Call it.
1291 (create_name_tags): Tidy. Add comments.
1292 (dump_points_to_info_for): Do not call get_mem_sym_stats_for.
1293
1294 2007-08-15 Maxim Kuvyrkov <maxim@codesourcery.com>
1295
1296 * config/mips/mips.c (vr4130_swap_insns_p): Use new interface to
1297 scheduler dependencies.
1298
1299 2007-08-15 Rask Ingemann Lambertsen <rask@sygehus.dk>
1300
1301 * config/i386/i386.md (subsi3_carry_zext): Remove "m" constraint for
1302 "register_operand".
1303 (*iorsi_1_zext): Likewise.
1304 (*iorsi_1_zext_imm): Likewise.
1305 * config/i386/sse.md: (*sse4_1_extractps): Use "nonimmediate_operand"
1306 with "rm"/"xm" constraint.
1307 (sse2_vmsqrtv2df2): Likewise.
1308
1309 2007-08-15 Jakub Jelinek <jakub@redhat.com>
1310
1311 PR middle-end/33074
1312 * emit-rtl.c (try_split): Use INSN_LIST instead of EXPR_LIST for
1313 REG_LIBCALL note.
1314
1315 2007-08-14 Daniel Berlin <dberlin@dberlin.org>
1316
1317 * tree-pass.h (PROP_pta): Removed.
1318 (TODO_rebuild_alias): New.
1319 (pass_may_alias): Removed.
1320 * tree-ssa-ccp.c (execute_fold_all_builtins): Only rebuild
1321 aliasing if we changed something.
1322 * tree-ssa-alias.c (compute_may_aliases): Make non-static. Update
1323 SSA internally.
1324 (pass_may_alias): Removed.
1325 (create_structure_vars): Return TODO_rebuild_alias.
1326 * tree-ssa-pre.c (do_pre): Return TODO_rebuild_alias.
1327 * tree-sra.c (tree_sra): Only rebuild aliasing if something
1328 changed.
1329 (tree_sra_early): We never affect aliasing right now.
1330 * tree-flow.h (compute_may_aliases): New prototype.
1331 * passes.c: Remove pass_may_alias from the passes.
1332 (execute_function_todo): Support TODO_rebuild_alias.
1333
1334 2007-08-14 Kai Tietz <kai.tietz@onevision.com>
1335
1336 * i386.c: (legitimize_address): Move dllimported variable check
1337 infront of legitimizing pic address of CONST symbols.
1338
1339 2007-08-14 Steve Ellcey <sje@cup.hp.com>
1340
1341 PR tree-optimization/32941
1342 * tree-eh.c (struct leh_tf_state): Add goto_queue_map field.
1343 (goto_queue_cmp): Remove.
1344 (find_goto_replacement): Change search method.
1345 (maybe_record_in_goto_queue): Add assert.
1346 (lower_try_finally): Remove qsort call, add pointer_map_destroy call.
1347 * Makefile.in (tree-eh.o): Add pointer-set.h dependency.
1348
1349 2007-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1350
1351 * alias.c (component_uses_parent_alias_set): Constify.
1352 * alias.h (component_uses_parent_alias_set): Likewise.
1353 * cfgrtl.c (print_rtl_with_bb): Likewise.
1354 * double-int.c (tree_to_double_int, double_int_fits_to_tree_p,
1355 mpz_get_double_int): Likewise.
1356 * double-int.h (double_int_fits_to_tree_p, tree_to_double_int,
1357 mpz_get_double_int): Likewise.
1358 * expr.c (is_aligning_offset, undefined_operand_subword_p,
1359 mostly_zeros_p, all_zeros_p, safe_from_p, is_aligning_offset):
1360 Likewise.
1361 * expr.h (safe_from_p): Likewise.
1362 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru):
1363 Likewise.
1364 * gimplify.c (should_carry_locus_p, zero_sized_field_decl,
1365 zero_sized_type, goa_lhs_expr_p): Likewise.
1366 * omp-low.c (is_variable_sized, use_pointer_for_field): Likewise.
1367 * rtl.h (print_rtl_with_bb): Likewise.
1368 * sched-vis.c (print_exp, print_value, print_pattern): Likewise.
1369 * tree-cfg.c (const_first_stmt, const_last_stmt): New.
1370 * tree-flow-inline.h (bb_stmt_list): Constify.
1371 (cbsi_start, cbsi_last, cbsi_end_p, cbsi_next, cbsi_prev,
1372 cbsi_stmt): New.
1373 * tree-flow.h (const_block_stmt_iterator, cbsi_start, cbsi_last,
1374 const_first_stmt, const_last_stmt): New.
1375 (block_may_fallthru, empty_block_p): Constify.
1376 * tree-iterator.c (EXPR_FIRST_BODY, EXPR_LAST_BODY,
1377 EXPR_ONLY_BODY): New.
1378 (expr_first, expr_last, expr_only): Use macro for body.
1379 (const_expr_first, const_expr_last, const_expr_only): New.
1380 * tree-iterator.h (const_tree_stmt_iterator, ctsi_start,
1381 ctsi_last, ctsi_end_p, ctsi_one_before_end_p, ctsi_next,
1382 ctsi_prev, ctsi_stmt): New.
1383 * tree-scalar-evolution.c (get_loop_exit_condition): Constify.
1384 * tree-scalar-evolution.h (get_loop_exit_condition): Likewise.
1385 * tree-ssa-loop-niter.c (loop_only_exit_p,
1386 derive_constant_upper_bound): Likewise.
1387 * tree-ssa-phiopt.c (empty_block_p): Likewise.
1388 * tree-ssa-threadupdate.c (redirection_block_p): Likewise.
1389 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): Likewise.
1390 * tree-vectorizer.h (slpeel_can_duplicate_loop_p): Likewise.
1391 * tree-vrp.c (vrp_bitmap_equal_p): Likewise.
1392 * tree.c (get_type_static_bounds): Likewise.
1393 * tree.h (const_expr_first, const_expr_last, const_expr_only): New.
1394 (get_type_static_bounds): Constify.
1395
1396 2007-08-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
1397
1398 PR target/30315
1399 * config/i386/i386.h (CANONICALIZE_COMPARISON): New.
1400 * config/i386/i386.md (plusminus)(addsub)(SWI): New.
1401 (*<addsub><mode>3_cc_overflow): New.
1402 (*add<mode>3_cconly_overflow): New.
1403 (*sub<mode>3_cconly_overflow): New.
1404 (*<addsub>si3_zext_cc_overflow): New.
1405 * config/i386/predicates.md (fcmov_comparison_operator): Accept
1406 CCCmode for LTU, GTU, LEU and GEU.
1407 (ix86_comparison_operator): Likewise.
1408 (ix86_carry_flag_operator): Carry flag is set if LTU or GTU in CCCmode.
1409 * config/i386/i386.c (put_condition_code): Support CCCmode.
1410 (ix86_cc_mode): Use CCCmode when testing for overflow of PLUS
1411 or MINUS expressions.
1412
1413 2007-08-14 Andrew Pinski <pinskia@gmail.com>
1414
1415 PR c/30428
1416 * c-typeck.c (build_binary_op): Disallow vector float types with
1417 BIT_IOR_EXPR, BIT_AND_EXPR, and BIT_XOR_EXPR.
1418
1419 2007-08-14 Maxim Kuvyrkov <maxim@codesourcery.com>
1420
1421 * sched-int.h (struct _dep): Rename field 'kind' to 'type'.
1422 (DEP_KIND): Rename to DEP_TYPE. Update all uses.
1423 (dep_def): New typedef.
1424 (init_dep_1, sd_debug_dep): Declare functions.
1425 (DEP_LINK_KIND): Rename to DEP_LINK_TYPE.
1426 (debug_dep_links): Remove.
1427 (struct _deps_list): New field 'n_links'.
1428 (DEPS_LIST_N_LINKS): New macro.
1429 (FOR_EACH_DEP_LINK): Remove.
1430 (create_deps_list, free_deps_list, delete_deps_list): Remove
1431 declaration.
1432 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
1433 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
1434 (copy_deps_list_change_con, move_dep_link): Ditto.
1435 (struct haifa_insn_data): Split field 'back_deps' into 'hard_back_deps'
1436 and 'spec_back_deps'. New field 'resolved_forw_deps'. Remove field
1437 'dep_count'.
1438 (INSN_BACK_DEPS): Remove.
1439 (INSN_HARD_BACK_DEPS, INSN_SPEC_BACK_DEPS, INSN_RESOLVED_FORW_DEPS):
1440 New macros.
1441 (INSN_DEP_COUNT): Remove.
1442 (enum DEPS_ADJUST_RESULT): Add new constant DEP_NODEP. Fix comments.
1443 (spec_info, haifa_recovery_block_was_added_during_scheduling_p):
1444 Declare global variables.
1445 (deps_pools_are_empty_p, sched_free_deps): Declare functions.
1446 (add_forw_dep, compute_forward_dependences): Remove declarations.
1447 (add_or_update_back_dep, add_or_update_back_forw_dep): Ditto.
1448 (add_back_forw_dep, delete_back_forw_dep): Ditto.
1449 (debug_ds, sched_insn_is_legitimate_for_speculation_p): Declare
1450 functions.
1451 (SD_LIST_NONE, SD_LIST_HARD_BACK, SD_LIST_SPEC_BACK, SD_LIST_FORW):
1452 New constants.
1453 (SD_LIST_RES_BACK, SD_LIST_RES_FORW, SD_LIST_BACK): Ditto.
1454 (sd_list_types_def): New typedef.
1455 (sd_next_list): Declare function.
1456 (struct _sd_iterator): New type.
1457 (sd_iterator_def): New typedef.
1458 (sd_iterator_start, sd_iterator_cond, sd_iterator_next): New inline
1459 functions.
1460 (FOR_EACH_DEP): New cycle wrapper.
1461 (sd_lists_size, sd_lists_empty_p, sd_init_insn, sd_finish_insn):
1462 Declare functions.
1463 (sd_find_dep_between, sd_add_dep, sd_add_or_update_dep): Ditto.
1464 (sd_resolve_dep, sd_copy_back_deps, sd_delete_dep, sd_debug_lists):
1465 Ditto.
1466
1467 * sched-deps.c (init_dep_1): Make global.
1468 (DUMP_DEP_PRO, DUMP_DEP_CON, DUMP_DEP_STATUS, DUMP_DEP_ALL): New
1469 constants.
1470 (dump_dep): New static function.
1471 (dump_dep_flags): New static variable.
1472 (sd_debug_dep): New function.
1473 (add_to_deps_list, remove_from_deps_list): Update 'n_links' field of
1474 the list.
1475 (move_dep_link): Use remove_from_deps_list (), instead of
1476 detach_dep_link ().
1477 (dep_links_consistent_p, dump_dep_links, debug_dep_links): Remove.
1478 (dep_link_is_detached_p): New static function.
1479 (deps_obstack, dl_obstack, dn_obstack): Remove. Use dn_pool, dl_pool
1480 instead.
1481 (dn_pool, dl_pool): New alloc_pools.
1482 (dn_pool_diff, dl_pool_diff): New static variables.
1483 (create_dep_node, delete_dep_node): New static function.
1484 (create_deps_list): Make it static. Use alloc_pool 'dl_pool'.
1485 (deps_list_empty_p): Make it static. Use 'n_links' field.
1486 (deps_pools_are_empty_p): New static function.
1487 (alloc_deps_list, delete_deps_list): Remove.
1488 (dump_deps_list, debug_deps_list, add_back_dep_to_deps_list): Remove.
1489 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
1490 (copy_deps_list_change_con): Remove. Use sd_copy_back_deps () instead.
1491 (forward_dependency_cache): Remove.
1492 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Remove
1493 'back' from the names. Change signature to use dep_t instead of
1494 equivalent quad.
1495 (add_back_dep): Ditto. Make global.
1496 (check_dep_status): Rename to check_dep ().
1497 (sd_next_list, sd_lists_size, sd_lists_empty_p, sd_init_insn):
1498 New functions.
1499 (sd_finish_insn): Ditto.
1500 (sd_find_dep_between_no_cache): New static function.
1501 (sd_find_dep_between): New function.
1502 (ask_dependency_caches, set_dependency_caches): New static functions.
1503 (update_dependency_caches, change_spec_dep_to_hard, update_dep): Ditto.
1504 (add_or_update_dep_1): Separate pieces of functionality into
1505 ask_dependency_caches (), update_dependency_caches (),
1506 change_spec_dep_to_hard (), update_dep ().
1507 (get_back_and_forw_lists): New static function.
1508 (sd_add_dep): Separate setting of dependency caches into
1509 set_dependency_caches ().
1510 (sd_add_or_update_dep, sd_resolve_dep, sd_copy_back_deps):
1511 New functions.
1512 (sd_delete_dep): Ditto.
1513 (DUMP_LISTS_SIZE, DUMP_LISTS_DEPS, DUMP_LISTS_ALL): New constants.
1514 (dump_lists): New static function.
1515 (sd_debug_lists): New debug function.
1516 (delete_all_dependences, fixup_sched_groups): Update to use
1517 sd_* infrastructure.
1518 (sched_analyze_2): Create data-speculative dependency only if
1519 data-speculation is enabled.
1520 (sched_analyze_insn): If insn cannot be speculative, make all its
1521 dependencies non-speculative.
1522 (sched_analyze): Use sd_init_insn ().
1523 (add_forw_dep, compute_forward_dependencies): Remove.
1524 (delete_dep_nodes_in_back_deps): New static function.
1525 (sched_free_deps): New function.
1526 (init_dependency_caches): Init alloc_pools.
1527 (extend_depedency_caches): Update after removing of
1528 forward_dependency_cache.
1529 (free_dependency_caches): Ditto. Free alloc_pools.
1530 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Remove.
1531 (delete_forw_dep, add_or_update_back_dep, add_or_update_back_forw_dep):
1532 Ditto.
1533 (add_back_forw_dep, delete_back_forw_dep): Ditto.
1534 (add_dependence): Use init_dep ().
1535 (get_dep_weak_1): New static function.
1536 (get_dep_weak): Move logic to get_dep_weak_1 ().
1537 (dump_ds): New static function moved from haifa-sched.c:
1538 debug_spec_status ().
1539 (debug_ds): New debug function.
1540 (check_dep_status): Rename to check_dep (). Update to check whole
1541 dependencies.
1542
1543 * haifa-sched.c (spec_info): Make global.
1544 (added_recovery_block_p): Rename to
1545 'haifa_recovery_block_was_added_during_current_schedule_block_p'.
1546 (haifa_recovery_block_was_added_during_scheduling_p): New variable.
1547 (dep_cost, priority, rank_for_schedule, schedule_insn): Update
1548 to use new interfaces.
1549 (ok_for_early_queue_removal): Ditto.
1550 (schedule_block): Initialize logical uids of insns emitted by the
1551 target.
1552 (sched_init): Initialize new variable.
1553 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
1554 interfaces.
1555 (extend_global): Initialize insn data.
1556 (init_h_i_d): Remove code that is now handled in sd_init_insn ().
1557 (process_insn_forw_deps_be_in_spec): Change signature. Update to use
1558 new interfaces.
1559 (add_to_speculative_block): Update to use new interfaces.
1560 (create_recovery_block): Set new variables.
1561 (create_check_block_twin, fix_recovery_deps): Update to use new
1562 interfaces.
1563 (sched_insn_is_legitimate_for_speculation_p): New function.
1564 (speculate_insn): Move checking logic to
1565 sched_insn_is_legitimate_for_speculation_p ().
1566 (sched_remove_insn): Finalize sched-deps information of instruction.
1567 (clear_priorities, add_jump_dependencies): Update to use new
1568 interfaces.
1569 (debug_spec_status): Rename to dump_ds () and move to sched-deps.c.
1570
1571 * sched-rgn.c (set_spec_fed, find_conditional_protection): Update
1572 to use new interfaces.
1573 (is_conditionally_protected, is_pfree, is_prisky) Ditto.
1574 (new_ready): Try to use control speculation only if it is available.
1575 (add_branch_dependences): Update to use new interfaces.
1576 (compute_block_backward_dependences): Rename to
1577 compute_block_dependences (). Call
1578 targetm.sched.dependencies_evaluation_hook ().
1579 (free_block_dependencies): New static function.
1580 (debug_dependencies): Update to use new interfaces.
1581 (schedule_region): Remove separate computation of forward dependencies.
1582 Move call of targetm.sched.dependencies_evaluation_hook () to
1583 compute_block_dependences (). Free dependencies at the end of
1584 scheduling the region.
1585
1586 * sched-ebb.c (earliest_block_with_similiar_load): Update to use
1587 new interfaces.
1588 (add_deps_for_risky_insns): Ditto.
1589 (schedule_ebb): Remove separate computation of forward dependencies.
1590 Free dependencies at the end of scheduling the ebb.
1591
1592 * ddg.c (create_ddg_dependence): Update to use new interfaces.
1593 (build_intra_loop_deps): Ditto. Remove separate computation of
1594 forward dependencies. Free sched-deps dependencies.
1595
1596 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Update
1597 to use new interfaces.
1598 (ia64_dfa_new_cycle, ia64_gen_check): Ditto.
1599
1600 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Update to use
1601 new interfaces.
1602 (is_costly_group): Ditto.
1603
1604 2007-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1605
1606 * alias.c (rtx_equal_for_memref_p): Constify.
1607 * basic-block.h (const_edge, const_basic_block): New.
1608 (reg_set_to_hard_reg_set, dfs_enumerate_from, single_succ_p,
1609 single_pred_p, single_succ_edge, single_pred_edge, single_succ,
1610 single_pred, maybe_hot_bb_p, probably_cold_bb_p,
1611 probably_never_executed_bb_p, edge_probability_reliable_p,
1612 br_prob_note_reliable_p, forwarder_block_p, flow_nodes_print,
1613 inside_basic_block_p, control_flow_insn_p, dominated_by_p):
1614 Likewise.
1615 * bb-reorder.c (better_edge_p, push_to_next_round_p): Likewise.
1616 * bt-load.c (basic_block_freq, insn_sets_btr_p, can_move_up):
1617 Likewise.
1618 * cfganal.c (flow_active_insn_p, forwarder_block_p,
1619 flow_nodes_print, dfs_enumerate_from): Likewise.
1620 * cfgbuild.c (count_basic_blocks, inside_basic_block_p,
1621 control_flow_insn_p, count_basic_blocks): Likewise.
1622 * cfgloop.c (flow_bb_inside_loop_p, glb_enum_p,
1623 get_loop_body_with_size, loop_exit_edge_p): Likewise.
1624 * cfgloop.h (flow_bb_inside_loop_p, num_loop_insns,
1625 average_num_loop_insns, loop_exit_edge_p,
1626 just_once_each_iteration_p, can_duplicate_loop_p): Likewise.
1627 * cfgloopanal.c (just_once_each_iteration_p, num_loop_insns,
1628 average_num_loop_insns, seq_cost): Likewise.
1629 * cfgloopmanip.c (rpe_enum_p, can_duplicate_loop_p): Likewise.
1630 * dominance.c (dominated_by_p): Likewise.
1631 * emit-rtl.c (validate_subreg): Likewise.
1632 * except.c (can_throw_internal, can_throw_external): Likewise.
1633 * except.h (can_throw_internal, can_throw_external): Likewise.
1634 * gcse.c (gcse_constant_p, oprs_unchanged_p, oprs_anticipatable_p,
1635 oprs_available_p, hash_expr, expr_equiv_p, oprs_not_set_p,
1636 compute_transp, load_killed_in_block_p, reg_killed_on_edge,
1637 simple_mem, store_ops_ok, load_kills_store, find_loads,
1638 store_killed_in_insn, store_killed_after, store_killed_before,
1639 gcse_mem_operand, implicit_set_cond_p, store_killed_in_pat):
1640 Likewise.
1641 * ifcvt.c (count_bb_insns, cheap_bb_rtx_cost_p, noce_operand_ok,
1642 noce_mem_write_may_trap_or_fault_p): Likewise.
1643 * pointer-set.c (pointer_set_contains, pointer_map_contains):
1644 Likewise.
1645 * pointer-set.h (pointer_set_contains, pointer_map_contains):
1646 Likewise.
1647 * predict.c (can_predict_insn_p, maybe_hot_bb_p,
1648 probably_cold_bb_p, probably_never_executed_bb_p,
1649 edge_probability_reliable_p, br_prob_note_reliable_p,
1650 can_predict_insn_p): Likewise.
1651 * regclass.c (reg_set_to_hard_reg_set): Likewise.
1652 * resource.c (return_insn_p): Likewise.
1653 * rtl.h (reg_set_between_p, reg_set_p, validate_subreg):
1654 Likewise.
1655 * rtlanal.c (reg_set_between_p, reg_set_p): Likewise.
1656 * tracer.c (count_insns, ignore_bb_p, better_p): Likewise.
1657 * tree-cfg.c (verify_gimple_unary_expr, verify_gimple_binary_expr,
1658 verify_gimple_modify_stmt): Likewise.
1659 * tree-chrec.c (is_not_constant_evolution,
1660 is_multivariate_chrec_rec, is_multivariate_chrec,
1661 chrec_contains_symbols, chrec_contains_undetermined,
1662 tree_contains_chrecs, evolution_function_is_affine_multivariate_p,
1663 evolution_function_is_univariate_p, avoid_arithmetics_in_type_p,
1664 eq_evolutions_p, scev_direction): Likewise.
1665 * tree-chrec.h (automatically_generated_chrec_p, tree_is_chrec,
1666 eq_evolutions_p, is_multivariate_chrec, chrec_contains_symbols,
1667 chrec_contains_symbols_defined_in_loop,
1668 chrec_contains_undetermined, tree_contains_chrecs,
1669 evolution_function_is_affine_multivariate_p,
1670 evolution_function_is_univariate_p, chrec_zerop,
1671 evolution_function_is_constant_p, evolution_function_is_affine_p,
1672 evolution_function_is_affine_or_constant_p,
1673 tree_does_not_contain_chrecs, chrec_type): Likewise.
1674 * tree-data-ref.c (tree_fold_divides_p,
1675 object_address_invariant_in_loop_p, dr_may_alias_p,
1676 ziv_subscript_p, siv_subscript_p, gcd_of_steps_may_divide_p,
1677 same_access_functions, constant_access_functions,
1678 access_functions_are_affine_or_constant_p, find_vertex_for_stmt):
1679 Likewise.
1680 * tree-flow.h (scev_direction): Likewise.
1681 * tree-gimple.c (is_gimple_stmt): Likewise.
1682 * tree-outof-ssa.c (identical_copies_p, identical_stmt_lists_p):
1683 Likewise.
1684 * tree-pretty-print.c (op_prio): Likewise.
1685 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop,
1686 analyzable_condition, backedge_phi_arg_p): Likewise.
1687 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
1688 * tree-ssa-operands.c (get_name_decl, operand_build_cmp): Likewise.
1689 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p):
1690 Likewise.
1691
1692 2007-08-13 Dan Hipschman <dsh@google.com>
1693
1694 PR c/32953
1695 * c-format.c (check_format_arg): Move check for zero-length
1696 format strings below the check for unterminated strings.
1697
1698 2007-08-13 Andrew Pinski <pinskia@gmail.com>
1699
1700 PR C/30427
1701 * c-typeck.c (build_unary_op <case BIT_NOT_EXPR>): Reject vector float
1702 types.
1703
1704 2007-08-13 Nick Clifton <nickc@redhat.com>
1705
1706 * config/arm/arm_neon.h: Revert GPLv3 patch to this file.
1707
1708 2007-08-12 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1709
1710 PR fortran/32860
1711 * c-format.c (gcc_gfc_length_specs): New array.
1712 (gcc_gfc_char_table): Add unsigned specifier, and references to
1713 the l length modifier.
1714 (format_types_orig): Use the new gcc_gfc_length_specs.
1715
1716 2007-08-12 Sa Liu <saliu@de.ibm.com>
1717
1718 * emit-rtl.c (try_split): Relink the insns with REG_LIBCALL note
1719 and with REG_RETVAL note after split.
1720
1721 2007-08-11 David Daney <ddaney@avtrex.com>
1722
1723 * config/mips/mips.c (mips_sched_reorder): Mark cycle parameter
1724 as ATTRIBUTE_UNUSED.
1725
1726 2007-08-11 David Edelsohn <edelsohn@gnu.org>
1727 Segher Boessenkool <segher@kernel.crashing.org>
1728
1729 * config/rs6000/rs6000.h (CC1_CPU_SPEC): Define as empty string if
1730 HAVE_LOCAL_CPU_DETECT not defined.
1731
1732 2007-08-11 Jan Hubicka <jh@suse.cz>
1733
1734 * cgraphunit.c (record_cdtor_fn): Declare all cdtors always inlined.
1735 (cgraph_process_new_functions): Honor previous value of
1736 disregard_inline_limits.
1737 * ipa-inline.c (compute_inline_parameters): Likewise.
1738
1739 2007-08-11 Ian Lance Taylor <iant@google.com>
1740
1741 * alias.h (alias_set_type): Define new type.
1742 (ALIAS_SET_MEMORY_BARRIER): Use it.
1743 * rtl.h: Include alias.h.
1744 (struct mem_attrs): Use alias_set_type.
1745 * tree.h: Include alias.h
1746 (struct tree_type): Use alias_set_type.
1747 (struct tree_struct_field_tag): Likewise.
1748 (struct tree_decl_common): Likewise.
1749 * alias.c (struct alias_set_entry): Use alias_set_type.
1750 (get_alias_set_entry, alias_set_subset_of): Likewise.
1751 (alias_sets_conflict_p): Likewise.
1752 (alias_sets_must_conflict_p): Likewise.
1753 (objects_must_conflict_p): Likewise.
1754 (get_alias_set, new_alias_set): Likewise.
1755 (record_alias_subset, record_component_aliases): Likewise.
1756 (varargs_set, frame_set): Change to alias_set_type.
1757 (get_varargs_alias_set): Use alias_set_type.
1758 (get_frame_alias_set): Likewise.
1759 * builtins.c (setjmp_alias_set): Change to alias_set_type.
1760 * dse.c (struct store_info): Use alias_set_type.
1761 (struct read_info, struct clear_alias_mode_holder): Likewise.
1762 (clear_alias_set_lookup, canon_address): Likewise.
1763 (record_store, check_mem_read_rtx): Likewise.
1764 (dse_record_singleton_alias_set): Likewise.
1765 (dse_invalidate_singleton_alias_set): Likewise.
1766 * emit-rtl.c (get_mem_attrs): Likewise.
1767 (set_mem_attributes_minus_bitpos): Likewise.
1768 (set_mem_alias_set): Likewise.
1769 * expr.c (store_constructor_field, store_field): Likewise.
1770 * gimplify.c (struct gimplify_init_ctor_preeval_data): Likewise.
1771 * langhooks.c (lhd_get_alias_set): Likewise.
1772 * langhooks-def.h (lhd_get_alias_set): Likewise.
1773 * reload1.c (alter_reg): Likewise.
1774 * tree-flow.h (struct fieldoff): Likewise.
1775 * tree-ssa-alias.c (struct alias_map_d): Likewise.
1776 (may_alias_p, get_smt_for, create_sft): Likewise.
1777 * tree-ssa-alias-warnings.c (nonstandard_alias_types_p): Likewise.
1778 * tree-ssa-structalias.c (set_uids_in_ptset): Likewise.
1779 (merge_smts_into): Likewise.
1780 * varasm.c (const_alias_set): Likewise.
1781 * c-common.c (strict_aliasing_warning): Likewise.
1782 (c_common_get_alias_set): Likewise.
1783 * dse.h (dse_record_singleton_alias_set): Update declaration.
1784 (dse_invalidate_singleton_alias_set): Likewise.
1785 * emit-rtl.h (set_mem_alias_set): Likewise.
1786 * c-common.h (c_common_get_alias_set): Likewise.
1787 * print-rtl.c (print_rtx): Cast MEM_ALIAS_SET when printing it.
1788 * print-tree.c (print_node): Likewise.
1789 * config/alpha/alpha.c (alpha_sr_alias_set): Change to
1790 alias_set_type.
1791 (alpha_setup_incoming_varargs): Use alias_set_type.
1792 * config/i386/i386.c (setup_incoming_varargs_64): Use
1793 alias_set_type.
1794 (setup_incoming_varargs_ms_64): Likewise.
1795 (ix86_GOT_alias_set): Likewise.
1796 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
1797 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
1798 (set): Change to alias_set_type.
1799 (get_TOC_alias_set): Use alias_set_type.
1800 * config/rs6000/rs6000-protos.h (get_TOC_alias_set): Update
1801 declaration.
1802 * config/sh/sh.c (sh_builtin_saveregs): Use alias_set_type.
1803 * config/sparc/sparc.c (sparc_sr_alias_set): Change to
1804 alias_set_type.
1805 (struct_value_alias_set): Likewise.
1806 * Makefile.in (GTFILES): Add $(srcdir)/alias.h.
1807
1808 2007-08-11 Richard Sandiford <richard@codesourcery.com>
1809
1810 * config/vxworks-dummy.h (TARGET_VXWORKS): Define.
1811 * config/vxworks.h (TARGET_VXWORKS): Override.
1812 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define
1813 "mips" if TARGET_VXWORKS.
1814
1815 2007-08-11 Richard Sandiford <richard@codesourcery.com>
1816
1817 * calls.c (avoid_likely_spilled_reg): New function.
1818 (expand_call): Use it.
1819
1820 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1821
1822 * c-typeck.c (build_c_cast): Add OPT_Wcast_qual to warnings.
1823
1824 2007-08-10 Adam Nemet <anemet@caviumnetworks.com>
1825
1826 * config/mips/predicates.md (const_call_insn_operand): Invoke
1827 SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs.
1828
1829 2007-08-10 David Edelsohn <edelsohn@gnu.org>
1830
1831 PR target/33042
1832 * config/rs6000/driver-rs6000.c: Include link.h.
1833 Use ElfW instead of wordsize-specif typedef.
1834
1835 2007-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1836
1837 * system.h (CONST_CAST): New.
1838 * c-decl.c (c_make_fname_decl): Use it.
1839 * c-lex.c (cb_ident, lex_string): Likewise.
1840 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
1841 * gcc.c (set_spec, read_specs, for_each_path, execute, do_spec_1,
1842 give_switch, set_multilib_dir): Likewise.
1843 * gengtype-parse.c (string_seq, typedef_name): Likewise.
1844 * passes.c (execute_one_pass): Likewise.
1845 * prefix.c (update_path): Likewise.
1846 * pretty-print.c (pp_base_destroy_prefix): Likewise.
1847 * tree.c (build_string): Likewise.
1848
1849 2007-08-10 Aldy Hernandez <aldyh@redhat.com>
1850
1851 * tree-flow-inline.h (is_exec_stmt): Remove.
1852 (is_label_stmt): Remove.
1853 * tree-flow.h: Remove prototypes for is_exec_stmt, get_filename, and
1854 is_label_stmt.
1855
1856 2007-08-10 Andreas Krebbel <krebbel1@de.ibm.com>
1857
1858 * lower-subreg.c (resolve_shift_zext): Don't adjust
1859 src_reg_num for wordmode operands.
1860
1861 2007-08-10 Sandra Loosemore <sandra@codesourcery.com>
1862 David Ung <davidu@mips.com>
1863
1864 * config/mips/mips.c (TARGET_SCHED_INIT): Define.
1865 (TARGET_SCHED_REORDER2): Define.
1866 (mips_maybe_swap_ready): New.
1867 (mips_last_74k_agen_insn): New.
1868 (mips_74k_agen_init): New.
1869 (mips_74k_agen_reorder): New function to group loads and stores
1870 in the ready queue.
1871 (mips_sched_init): New.
1872 (mips_sched_reorder): Don't do initialization here. Call
1873 mips_74k_agen_reorder.
1874 (mips_variable_issue): Call mips_74k_agen_init.
1875
1876 2007-08-10 Aldy Hernandez <aldyh@redhat.com>
1877
1878 * tree-flow-inline.h (get_filename): Remove.
1879
1880 2007-08-10 Richard Sandiford <richard@codesourcery.com>
1881
1882 * config/mips/mips-protos.h (mips_address_insns): Add a boolean
1883 argument.
1884 (mips_fetch_insns): Delete in favor of...
1885 (mips_load_store_insns): ...this new function.
1886 * config/mips/mips.c (mips_address_insns): Add a boolean argument
1887 to say whether multiword moves _might_ be split.
1888 (mips_fetch_insns): Delete in favor of...
1889 (mips_load_store_insns): ...this new function.
1890 (mips_rtx_costs): Update the call to mips_address_insns.
1891 (mips_address_cost): Likewise.
1892 * config/mips/mips.md (length): Use mips_load_store_insns instead
1893 of mips_fetch_insns.
1894 * config/mips/constraints.md (R): Use mips_address_insns rather
1895 than mips_fetch_insns. Assume that the move never needs to be split.
1896
1897 2007-08-09 Sandra Loosemore <sandra@codesourcery.com>
1898
1899 * config/mips/mips.opt (mhard-float, msoft-float): Make these
1900 control TARGET_HARD_FLOAT_ABI and TARGET_SOFT_FLOAT_ABI, rather
1901 than TARGET_HARD_FLOAT and TARGET_SOFT_FLOAT.
1902 * config/mips/mips.h (mips16_hard_float): Delete.
1903 (TARGET_HARD_FLOAT_ABI, TARGET_SOFT_FLOAT_ABI): Delete these
1904 definitions, and replace with....
1905 (TARGET_HARD_FLOAT, TARGET_SOFT_FLOAT): Define.
1906 * config/mips/mips.c (mips16_hard_float): Delete. Replace
1907 all references with (TARGET_MIPS16 && TARGET_HARD_FLOAT_ABI).
1908 (MIPS_MARCH_CONTROLS_SOFT_FLOAT): Update comments.
1909 (override_options): Replace MASK_SOFT_FLOAT references with
1910 MASK_SOFT_FLOAT_ABI. Delete twiddling with MASK_SOFT_FLOAT
1911 and mips16_hard_float when TARGET_MIPS16.
1912
1913 2007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
1914
1915 PR c/32796
1916 * c-typeck.c (build_binary_op): Check for non pointer types before
1917 calling int_fits_type_p.
1918
1919 2007-08-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
1920
1921 PR middle-end/32813
1922 * fold-const.c (omit_one_operand): Return only the ommitted expression
1923 if the result is an empty statement.
1924 (pedantic_omit_one_operand): Likewise.
1925
1926 2007-08-09 Daniel Berlin <dberlin@dberlin.org>
1927
1928 * c-typeck.c (readonly_error): Improve error for assignment.
1929
1930 * c-pretty-print.c (pp_c_additive_expression): Handle pointer-plus
1931 expression.
1932 (pp_c_expression): Ditto.
1933
1934 2007-08-09 Simon Baldwin <simonb@google.com>
1935
1936 * simplify-rtx.c (simplify_binary_operation_1): Removed erroneous
1937 break that was preventing simplify_associative_operation() for xor.
1938
1939 2007-08-09 Sandra Loosemore <sandra@codesourcery.com>
1940 Nigel Stephens <nigel@mips.com>
1941
1942 * doc/tm.texi (CLZ_DEFINED_VALUE_AT_ZERO, CTZ_DEFINED_VALUE_AT_ZERO):
1943 Document change in interpretation of value from boolean to
1944 tri-state integer.
1945 * optabs.c (expand_ffs, expand_ctz): New functions to compute
1946 ffs and ctz using clz.
1947 (expand_unop): Call them.
1948 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Fix its
1949 result value.
1950 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
1951 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Likewise, to
1952 enable the new ffs expansion on this target.
1953
1954 2007-08-09 Jan Hubicka <jh@suse.cz>
1955
1956 * optabs.c (expand_widen_pattern_expr): Use optabs accestors.
1957 (expand_ternary_op): Likewise.
1958 (expand_vec_shift_expr): Likewise.
1959 (expand_binop_directly): Likewise.
1960 (expand_binop): Likewise.
1961 (sign_expand_binop): Likewise.
1962 (expand_twoval_unop): Likewise.
1963 (expand_twoval_binop): Likewise.
1964 (expand_twoval_binop_libfunc): Likewise.
1965 (widen_clz): Likewise.
1966 (widen_bswap): Likewise.
1967 (expand_parity): Likewise.
1968 (expand_unop): Likewise.
1969 (expand_abs_nojump): Likewise.
1970 (expand_copysign): Likewise.
1971 (emit_no_conflict_block): Likewise.
1972 (emit_libcall_block): Likewise.
1973 (can_compare_p): Likewise.
1974 (prepare_cmp_insn): Likewise.
1975 (emit_cmp_and_jump_insn_1): Likewise.
1976 (prepare_float_lib_cmp): Likewise.
1977 (emit_conditional_add): Likewise.
1978 (gen_add2_insn): Likewise.
1979 (have_add2_insn): Likewise.
1980 (gen_sub2_insn): Likewise.
1981 (have_sub2_insn): Likewise.
1982 (can_extend_p): Likewise.
1983 (can_fix_p): Likewise.
1984 (can_float_p): Likewise.
1985 (expand_float): Likewise.
1986 (expand_fix): Likewise.
1987 (expand_sfix_optab): Likewise.
1988 (new_optab): Likewise.
1989 (new_convert_optab): Likewise.
1990 (init_libfuncs): Likewise.
1991 (init_interclass_conv_libfuncs): Likewise.
1992 (init_intraclass_conv_libfuncs): Likewise.
1993 (set_conv_libfunc): Likewise.
1994 (init_optabs): Likewise.
1995 (debug_optab_libfuncs): Likewise.
1996 (gen_cond_trap): Likewise.
1997 * optabs.h (optab_handler, convert_optab_hanlder): New.
1998 * genopinit.c: Update optabs generation table.
1999 * reload.c (find_reloads_address_1): Use optabs accestors.
2000 * builtins.c (expand_builtin_mathfn): Likewise.
2001 (expand_builtin_mathfn_2): Likewise.
2002 (expand_builtin_mathfn_3): Likewise.
2003 (expand_builtin_interclass_mathfn): Likewise.
2004 (expand_builtin_sincos): Likewise.
2005 (expand_builtin_cexpi): Likewise.
2006 (expand_builtin_powi): Likewise.
2007 (expand_builtin_strlen): Likewise.
2008 * dojump.c (do_jump): Likewise.
2009 * expr.c (convert_move): Likewise.
2010 (move_by_pieces): Likewise.
2011 (move_by_pieces_ninsns): Likewise.
2012 (can_store_by_pieces): Likewise.
2013 (store_by_pieces_1): Likewise.
2014 (emit_move_via_integer): Likewise.
2015 (emit_move_complex): Likewise.
2016 (emit_move_ccmode): Likewise.
2017 (emit_move_insn_1): Likewise.
2018 (emit_single_push_insn): Likewise.
2019 (store_constructor): Likewise.
2020 (expand_expr_real_1): Likewise.
2021 (do_store_flag): Likewise.
2022 * ada/misc.c (gnat_compute_largest_alignment): Likewise.
2023 (enumerate_modes): Likewise.
2024 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
2025 (supportable_widening_operation): Likewise.
2026 (supportable_narrowing_operation): Likewise.
2027 * expmed.c (store_bit_field_1): Likewise.
2028 (extract_bit_field_1): Likewise.
2029 (expand_mult_highpart_optab): Likewise.
2030 (expand_smod_pow2): Likewise.
2031 (expand_divmod): Likewise.
2032 (emit_store_flag): Likewise.
2033 * tree-vect-patterns.c
2034 (vect_pattern_recog_1): Likewise.
2035 * tree-ssa-loop-prefetch.c
2036 (nontemporal_store_p): Likewise.
2037 * tree-vect-transform.c (vect_model_reduction_cost): Likewise.
2038 (vect_create_epilog_for_reduction): Likewise.
2039 (vectorizable_reduction): Likewise.
2040 (vectorizable_operation): Likewise.
2041 (vect_strided_store_supported): Likewise.
2042 (vectorizable_store): Likewise.
2043 (vect_strided_load_supported): Likewise.
2044 (vectorizable_load): Likewise.
2045 * combine.c (simplify_comparison): Likewise.
2046 * tree-vect-generic.c
2047 (type_for_widest_vector_mode): Likewise.
2048 (expand_vector_operations_1): Likewise.
2049 * config/spu/spu.c (spu_expand_mov): Likewise.
2050 (spu_emit_vector_compare): Likewise.
2051 * config/rs6000/rs6000.c
2052 (rs6000_emit_vector_compare): Likewise.
2053 * stmt.c (add_case_node): Likewise.
2054 * reload1.c (gen_reload):
2055
2056 2007-08-09 Michael Matz <matz@suse.de>
2057
2058 * tree.h (fixed_zerop): Declare as taking a const_tree.
2059 * tree.c (fixed_zerop): Take a const_tree.
2060
2061 2007-08-09 Ira Rosen <irar@il.ibm.com>
2062
2063 * tree-vect-transform.c (vectorizable_store): Remove call to
2064 copy_virtual_operands() and call mark_symbols_for_renaming() for
2065 the created vector store.
2066 (vect_setup_realignment): Don't call copy_virtual_operands() and
2067 update_vuses_to_preheader().
2068 (vectorizable_load): Don't call copy_virtual_operands().
2069 (update_vuses_to_preheader): Remove.
2070
2071 2007-08-08 Chao-ying Fu <fu@mips.com>
2072
2073 * tree.def (FIXED_POINT_TYPE): New type.
2074 (FIXED_CST): New constant.
2075 (FIXED_CONVERT_EXPR): New expr.
2076 * doc/c-tree.texi (Types): Document FIXED_POINT_TYPE.
2077 (Expressions): Document FIXED_CST and FIXED_CONVERT_EXPR.
2078 * tree.h (struct tree_base): Add saturating_flag.
2079 Remove one bit of spare for saturating_flag.
2080 (NUMERICAL_TYPE_CHECK): Support FIXED_POINT_TYPE.
2081 (NON_SAT_FIXED_POINT_TYPE_P, SAT_FIXED_POINT_TYPE_P,
2082 FIXED_POINT_TYPE_P): Define.
2083 (TYPE_SATURATING): Define.
2084 (TREE_FIXED_CST_PTR, TREE_FIXED_CST): Define.
2085 (struct tree_fixed_cst): New.
2086 (TYPE_IBIT, TYPE_FBIT): Define.
2087 (tree_node): Add fixed_cst.
2088 (enum tree_index): Add new enumeration values of
2089 TI_SAT_SFRACT_TYPE, TI_SAT_FRACT_TYPE, TI_SAT_LFRACT_TYPE,
2090 TI_SAT_LLFRACT_TYPE, TI_SAT_USFRACT_TYPE, TI_SAT_UFRACT_TYPE,
2091 TI_SAT_ULFRACT_TYPE, TI_SAT_ULLFRACT_TYPE, TI_SFRACT_TYPE,
2092 TI_FRACT_TYPE, TI_LFRACT_TYPE, TI_LLFRACT_TYPE, TI_USFRACT_TYPE,
2093 TI_UFRACT_TYPE, TI_ULFRACT_TYPE, TI_ULLFRACT_TYPE,
2094 TI_SAT_SACCUM_TYPE, TI_SAT_ACCUM_TYPE, TI_SAT_LACCUM_TYPE,
2095 TI_SAT_LLACCUM_TYPE, TI_SAT_USACCUM_TYPE, TI_SAT_UACCUM_TYPE,
2096 TI_SAT_ULACCUM_TYPE, TI_SAT_ULLACCUM_TYPE, TI_SACCUM_TYPE,
2097 TI_ACCUM_TYPE, TI_LACCUM_TYPE, TI_LLACCUM_TYPE, TI_USACCUM_TYPE,
2098 TI_UACCUM_TYPE, TI_ULACCUM_TYPE, TI_ULLACCUM_TYPE,
2099 TI_QQ_TYPE, TI_HQ_TYPE,_TYPE, TI_SQ_TYPE, TI_DQ_TYPE, TI_TQ_TYPE,
2100 TI_UQQ_TYPE, TI_UHQ_TYPE, TI_USQ_TYPE, TI_UDQ_TYPE, TI_UTQ_TYPE,
2101 TI_SAT_QQ_TYPE, TI_SAT_HQ_TYPE, TI_SAT_SQ_TYPE, TI_SAT_DQ_TYPE,
2102 TI_SAT_TQ_TYPE, TI_SAT_UQQ_TYPE, TI_SAT_UHQ_TYPE, TI_SAT_USQ_TYPE,
2103 TI_SAT_UDQ_TYPE, TI_SAT_UTQ_TYPE, TI_HA_TYPE, TI_SA_TYPE, TI_DA_TYPE,
2104 TI_TA_TYPE, TI_UHA_TYPE, TI_USA_TYPE, TI_UDA_TYPE, TI_UTA_TYPE,
2105 TI_SAT_HA_TYPE, TI_SAT_SA_TYPE, TI_SAT_DA_TYPE, TI_SAT_TA_TYPE,
2106 TI_SAT_UHA_TYPE, TI_SAT_USA_TYPE, TI_SAT_UDA_TYPE, TI_SAT_UTA_TYPE.
2107 (sat_short_fract_type_node, sat_fract_type_node,
2108 sat_long_fract_type_node, sat_long_long_fract_type_node,
2109 sat_unsigned_short_fract_type_node, sat_unsigned_fract_type_node,
2110 sat_unsigned_long_fract_type_node,
2111 sat_unsigned_long_long_fract_type_node, short_fract_type_node,
2112 fract_type_node, long_fract_type_node, long_long_fract_type_node,
2113 unsigned_short_fract_type_node, unsigned_fract_type_node,
2114 unsigned_long_fract_type_node, unsigned_long_long_fract_type_node,
2115 sat_short_accum_type_node, sat_accum_type_node,
2116 sat_long_accum_type_node, sat_long_long_accum_type_node,
2117 sat_unsigned_short_accum_type_node, sat_unsigned_accum_type_node,
2118 sat_unsigned_long_accum_type_node,
2119 sat_unsigned_long_long_accum_type_node, short_accum_type_node,
2120 accum_type_node, long_accum_type_node, long_long_accum_type_node,
2121 unsigned_short_accum_type_node, unsigned_accum_type_node,
2122 unsigned_long_accum_type_node, unsigned_long_long_accum_type_node,
2123 qq_type_node, hq_type_node, sq_type_node, dq_type_node, tq_type_node,
2124 uqq_type_node, uhq_type_node, usq_type_node, udq_type_node,
2125 utq_type_node, sat_qq_type_node, sat_hq_type_node, sat_sq_type_node,
2126 sat_dq_type_node, sat_tq_type_node, sat_uqq_type_node,
2127 sat_uhq_type_node, sat_usq_type_node, sat_udq_type_node,
2128 sat_utq_type_node, ha_type_node, sa_type_node, da_type_node,
2129 ta_type_node, uha_type_node, usa_type_node, uda_type_node,
2130 uta_type_node, sat_ha_type_node, sat_sa_type_node, sat_da_type_node,
2131 sat_ta_type_node, sat_uha_type_node, sat_usa_type_node,
2132 sat_uda_type_node, sat_uta_type_node): New macro.
2133 (make_fract_type, make_accum_type): Declare.
2134 (make_signed_fract_type, make_unsigned_fract_type,
2135 make_sat_signed_fract_type, make_sat_unsigned_fract_type,
2136 make_signed_accum_type, make_unsigned_accum_type,
2137 make_sat_signed_accum_type, make_sat_unsigned_accum_type,
2138 make_or_reuse_signed_fract_type, make_or_reuse_unsigned_fract_type,
2139 make_or_reuse_sat_signed_fract_type,
2140 make_or_reuse_sat_unsigned_fract_type, make_or_reuse_signed_accum_type,
2141 make_or_reuse_unsigned_accum_type, make_or_reuse_sat_signed_accum_type,
2142 make_or_reuse_sat_unsigned_accum_type): New macro.
2143 (fixed_zerop): Declare.
2144 * defaults.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE,
2145 LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
2146 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
2147 LONG_LONG_ACCUM_TYPE_SIZE): Define.
2148 * treestruct.def: Add TS_FIXED_CST.
2149 * Makefile.in (c-pretty-print.o): Add dependence on fixed-value.h.
2150 (tree.o): Likewise.
2151 (tree-dump.o): Likewise.
2152 (print-tree.o): Likewise.
2153 (tree-pretty-print.o): Likewise.
2154 (fold-const.o): Likewise.
2155 * tree-complex.c (some_nonzerop): Handle FIXED_CST.
2156 * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle FIXED_CST.
2157 (is_gimple_min_invariant): Handle FIXED_CST.
2158 * stor-layout.c (int_mode_for_mode): Handle MODE_FRACT, MODE_UFRACT,
2159 MODE_ACCUM, MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
2160 MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
2161 (layout_type): Handle FIXED_POINT_TYPE.
2162 (make_fract_type, make_accum_type): New functions.
2163 * tree-browser.c (browse_tree): Handle FIXED_POINT_TYPE.
2164 * tree-dump.c (fixed-value.h): New include.
2165 (dump_fixed): New function.
2166 (dequeue_and_dump): Handle FIXED_POINT_TYPE and FIXED_CST.
2167 * tree-inline.c (remap_type_1): Handle FIXED_POINT_TYPE.
2168 (estimate_num_insns_1): Handle FIXED_CST and FIXED_CONVERT_EXPR.
2169 * tree-pretty-print.c (fixed-value.h): New include.
2170 (dump_generic_node): Handle FIXED_POINT_TYPE, FIXED_CST, and
2171 FIXED_CONVERT_EXPR.
2172 * tree-scalar-evolution.c (get_scalar_evolution): Handle FIXED_CST.
2173 * tree-ssa-loop-im.c (for_each_index): Handle FIXED_CST.
2174 * tree-ssa-pre.c (poolify_tree): Handle FIXED_CST.
2175 * tree-ssa-reassoc.c (break_up_subtract_bb): We can do reassociation
2176 for non-saturating fixed-point types.
2177 (reassociate_bb): Likewise.
2178 * emit-rtl.c (fixed-value.h): New include.
2179 (fconst0, fconst1): New array.
2180 (init_emit_once): Initialize fconst0 and fconst1 for fixed-point modes.
2181 * tree-vect-generic.c expand_vector_operation): Support
2182 MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, and
2183 MODE_VECTOR_UACCUM.
2184 (type_for_widest_vector_mode): Add one parameter for the
2185 saturating flag.
2186 Check scalar FRACT, UFRACT, ACCUM, and UACCUM mode to select their
2187 vector mode.
2188 Pass the satp parameter to type_for_mode for fixed-point types.
2189 (expand_vector_operations_1): Pass the saturating flag to
2190 type_for_widest_vector_mode.
2191 Support MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
2192 and MODE_VECTOR_UACCUM.
2193 * tree-vect-transform.c (vect_is_simple_cond): Support FIXED_CST.
2194 (vectorizable_condition): Likewise.
2195 * tree.c (fixed-value.h): New include.
2196 (tree_code_size): Support FIXED_CST.
2197 (build_fixed): New function.
2198 (build_one_cst): Support FIXED_POINT_TYPE for accum types.
2199 (fixed_zerop): New function.
2200 (tree_node_structure): Support FIXED_CST.
2201 (type_contains_placeholder_1): Support FIXED_POINT_TYPE.
2202 (build_type_attribute_qual_variant): Handle FIXED_POINT_TYPE.
2203 (type_hash_eq): Handle FIXED_POINT_TYPE.
2204 (simple_cst_equal): Support FIXED_CST.
2205 (iterative_hash_expr): Handle FIXED_CST.
2206 (get_unwidened): Make sure type is not FIXED_POINT_TYPE.
2207 (get_narrower): Likewise.
2208 (variably_modified_type_p): Handle FIXED_POINT_TYPE.
2209 (make_or_reuse_fract_type, make_or_reuse_accum_type): New functions.
2210 (build_common_tree_nodes_2): Use MAKE_FIXED_TYPE_NODE_FAMILY and
2211 MAKE_FIXED_MODE_NODE macros to initialize fixed-point type
2212 nodes.
2213 (build_vector_type_for_mode): Handle MODE_VECTOR_FRACT,
2214 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
2215 (initializer_zerop): Support FIXED_CST.
2216 (walk_tree): Handle FIXED_CST and FIXED_POINT_TYPE.
2217 * dwarf2out.c (base_type_die): Use DW_ATE_signed_fixed or
2218 DW_ATE_unsigned_fixed to describe FIXED_POINT_TYPE.
2219 (is_base_type): Handle FIXED_POINT_TYPE.
2220 (add_type_attribute): Handle FIXED_POINT_TYPE.
2221 (gen_type_die_with_usage): Handle FIXED_POINT_TYPE.
2222 * print-tree.c (fixed-value.h): New include.
2223 (print_node_brief): Support FIXED_CST.
2224 (print_node): Support FIXED_POINT_TYPE and FIXED_CST.
2225 * c-pretty-print.c (fixed-value.h): New include.
2226 (pp_c_type_specifier): Handle FIXED_POINT_TYPE. Need to pass
2227 TYPE_SATURATING to c_common_type_for_mode for fixed-point modes.
2228 (pp_c_direct_abstract_declarator): Handle FIXED_POINT_TYPE.
2229 Support fixed-point types for inner items in VECTOR_TYPE.
2230 (pp_c_direct_declarator): Likewise.
2231 (pp_c_declarator): Likewise.
2232 (pp_c_fixed_constant): New function.
2233 (pp_c_constant): Handle FIXED_CST.
2234 (pp_c_primary_expression): Likewise.
2235 (pp_c_expression): Likewise.
2236 * fold-const.c (fixed-value.h): New include.
2237 (negate_expr_p): Return true for FIXED_CST.
2238 (fold_negate_expr): Support FIXED_CST.
2239 (split_tree): Support FIXED_CST.
2240 (const_binop): Support FIXED_CST.
2241 (fold_convert_const_int_from_fixed): New function to convert from
2242 fixed to int.
2243 (fold_convert_const_real_from_fixed): New function to convert from
2244 fixed to real.
2245 (fold_convert_const_fixed_from_fixed): New function to convert from
2246 fixed to another fixed.
2247 (fold_convert_const_fixed_from_int): New function to convert from
2248 int to fixed.
2249 (fold_convert_const_fixed_from_real): New function to convert from
2250 real to fixed.
2251 (fold_convert_const): Support conversions from fixed to int, from
2252 fixed to real, from fixed to fixed, from int to fixed, and from real
2253 to fixed.
2254 (fold_convert): Support FIXED_CST and FIXED_POINT_TYPE.
2255 (operand_equal_p): Support FIXED_CST.
2256 (make_range): For fixed-point modes, we need to pass the
2257 saturating flag as the 2nd parameter.
2258 (tree_swap_operands_p): Handle FIXED_CST.
2259 (fold_plusminus_mult_expr): For fract modes, we cannot generate
2260 constant 1.
2261 (fold_unary): Support FIXED_CONVERT_EXPR.
2262 (fold_binary): Handle FIXED_CST.
2263 Make sure the type is not saturating, before associating operations.
2264 Ex: A + B + C, A * B * C, (A1 * C1) +/- (A2 * C2).
2265 (tree_expr_nonnegative_warnv_p): Handle FIXED_CST.
2266 (fold_negate_const): Support FIXED_CST.
2267 (fold_relational_const): Support FIXED_CST.
2268 * gimplify.c (omp_firstprivatize_type_sizes): Handle FIXED_POINT_TYPE.
2269 (gimplify_expr): Handle FIXED_CST.
2270 (gimplify_type_sizes): Handle FIXED_POINT_TYPE.
2271 * ipa-prop.c (ipa_callsite_compute_param): Support FIXED_CST.
2272 * ipa-type-escape.c (type_to_consider): Handle FIXED_POINT_TYPE.
2273 * doc/tm.texi (Type Layout): Document SHORT_FRACT_TYPE_SIZE,
2274 FRACT_TYPE_SIZE, LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE,
2275 SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE,
2276 LONG_LONG_ACCUM_TYPE_SIZE.
2277 * dbxout.c (dbxout_type): Handle FIXED_POINT_TYPE.
2278 * c-aux-info.c (gen_type): Handle FIXED_POINT_TYPE.
2279 * tree-sra.c (is_sra_scalar_type): Support FIXED_POINT_TYPE.
2280 * expmed.c (extract_bit_field): Support MODE_FRACT, MODE_UFRACT,
2281 MODE_ACCUM, and MODE_UACCUM.
2282 * tree-vectorizer.c (vect_is_simple_reduction): Check for saturating
2283 fixed-point types to disable reduction.
2284 * explow.c (promote_mode): Support FIXED_POINT_TYPE.
2285
2286 2007-08-08 David Edelsohn <edelsohn@gnu.org>
2287
2288 * config/rs6000/x-rs6000: New file.
2289 * config/rs6000/darwin.h (CC1_SPEC): Add cc1_cpu.
2290 * config/rs6000/rs6000.h (EXTRA_SPECS): Add cc1_cpu.
2291 (EXTRA_SPEC_FUNCTIONS): Define.
2292 (HAVE_LOCAL_CPU_DETECT): Define.
2293 (CC1_CPU_SPEC): Define.
2294 * config/rs6000/driver-rs6000.c: New file.
2295 * config/rs6000/aix.h (CC1_SPEC): Define.
2296 * config/rs6000/sysv4.h (CC1_SPEC): Add cc1_cpu.
2297 * config.host: Add x-rs6000 to host_xmake_file if host and target
2298 are rs6000 or powerpc.
2299
2300 2007-08-08 Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
2301
2302 * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Use +=.
2303
2304 2007-08-08 Richard Sandiford <richard@codesourcery.com>
2305 Sandra Loosemore <sandra@codesourcery.com>
2306 Chao-ying Fu <fu@mips.com>
2307 Nigel Stephens <nigel@mips.com>
2308 David Ung <davidu@mips.com>
2309
2310 * doc/invoke.texi (-mcode-readable): Document.
2311 * config/mips/mips.opt (mcode-readable): New option.
2312 * config/mips/mips-protos.h (SYMBOL_32_HIGH): New symbol type.
2313 * config/mips/mips.h (mips_code_readable_setting): New enum.
2314 (mips_code_readable): Declare.
2315 (TARGET_MIPS16_TEXT_LOADS, TARGET_MIPS16_PCREL_LOADS): New macros.
2316 (TARGET_MIPS16_SHORT_JUMP_TABLES): New macro.
2317 (JUMP_TABLES_IN_TEXT_SECTION): Use it.
2318 (CASE_VECTOR_MODE, CASE_VECTOR_PC_RELATIVE): Likewise. Remove
2319 boiler-plate comments.
2320 (ASM_OUTPUT_ADDR_DIFF_ELT): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
2321 * config/mips/mips.c (mips_code_readable): New variable.
2322 (mips_classify_symbol): Only return SYMBOL_PC_RELATIVE for
2323 MIPS16 labels if TARGET_MIPS16_SHORT_JUMP_TABLES. Use both the
2324 context and -mcode-readable setting to restrict the use of
2325 SYMBOL_PC_RELATIVE for MIPS16 constant pool references.
2326 Only return TARGET_FORCE_TO_MEM if PC-relative loads are allowed.
2327 (mips_symbolic_constant_p): Handle SYMBOL_32_HIGH.
2328 (mips_blocks_for_constant_p): Only return false for
2329 TARGET_MIPS16_PCREL_LOADS.
2330 (mips_symbol_insns_1): Treat HIGHs as 2 extended instructions
2331 for MIPS16. Handle SYMBOL_32_HIGH.
2332 (mips_const_insns): Allow HIGHs for MIPS16 too.
2333 (mips_unspec_address_offset): New function, split out from...
2334 (mips_unspec_address): ...here.
2335 (mips_output_move): Handle MIPS16 HIGH moves. Use "li" to load
2336 16-bit symbolic constants. Assert approropiate conditions for
2337 using the "la" and "dla" macros.
2338 (mips_handle_option): Handle -mcode-readable=.
2339 (override_options): Use %hi/%lo relocations for TARGET_MIPS16 too.
2340 Set up mips_lo_relocs[SYMBOL_32_HIGH].
2341 (mips_strip_unspec_address): New function, split out from...
2342 (print_operand_reloc): ...here.
2343 (print_operand): Pass constants through mips_strip_unspec_address.
2344 (print_operand_address): Likewise.
2345 (mips_output_mi_thunk): Remove guard of mips16_lay_out_constants.
2346 (mips_select_rtx_section): Remove MIPS16 handling.
2347 (mips16_gp_pseudo_reg): Check currently_expanding_to_rtl.
2348 (mips16_rewrite_pool_refs): Wrap the labels in an address UNSPEC.
2349 (mips16_lay_out_constants): Do nothing unless
2350 TARGET_MIPS16_PCREL_LOADS.
2351 (mips_avoid_hazards): Remove guard of mips16_lay_out_constants.
2352 * config/mips/mips.md: Split HIGHs for MIPS16.
2353 (tablejump): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
2354
2355 2007-08-08 Richard Sandiford <richard@codesourcery.com>
2356
2357 * config/mips/mips-protos.h (mips_emit_move): Declare.
2358 * config/mips/mips.c (mips_emit_move): New function.
2359 (mips_force_temporary): Use mips_emit_move instead of emit_move_insn.
2360 (mips_legitimize_const_move): Likewise.
2361 (mips_legitimize_move): Likewise.
2362 (mips_split_64bit_move): Likewise.
2363 (mips_restore_gp): Likewise.
2364 (mips_load_call_address): Likewise.
2365 (mips_emit_fcc_reload): Likewise.
2366 (mips_set_return_address): Likewise.
2367 (mips_block_move_straight): Likewise.
2368 (mips_block_move_loop): Likewise.
2369 (mips_setup_incoming_varargs): Likewise.
2370 (mips_save_reg): Likewise.
2371 (mips_expand_prologue): Likewise.
2372 (mips_restore_reg): Likewise.
2373 (mips_expand_epilogue): Likewise.
2374 (mips_output_mi_thunk): Likewise.
2375 (build_mips16_call_stub): Likewise.
2376 (mips_builtin_branch_and_move): Likewise.
2377 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Likewise.
2378 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
2379 (fixuns_truncdfdi2): Likewise.
2380 (fixuns_truncsfsi2): Likewise.
2381 (fixuns_truncsfdi2): Likewise.
2382 (loadgp_absolute): Likewise.
2383 (builtin_setjmp_setup): Likewise.
2384 (builtin_longjmp): Likewise.
2385 (untyped_call): Likewise.
2386
2387 2007-08-08 Richard Sandiford <richard@codesourcery.com>
2388
2389 * config/mips/mips-protos.h (mips_split_symbol): Add a mode and
2390 an "rtx *" argument. Return a bool.
2391 * config/mips/mips.c (mips_split_symbol): Accept arbitrary source
2392 values and return true if they can be split. Take the same kind of
2393 mode argument as mips_symbol_insns. Add a "lo_sum_out" parameter
2394 and store the lo_sum there if nonnull. Use the symbol type to
2395 determine whether a $gp or HIGH is needed.
2396 (mips_legitimize_address): Update call to mips_split_symbol and
2397 simplify accordingly.
2398 (mips_legitimize_const_move): Likewise.
2399 * config/mips/mips.md: In the combine define_split,
2400 check mips_split_symbol instead of splittable_symbolic_operand.
2401 Update use of mips_split_symbol in the generator code.
2402 * config/mips/predicates.md (splittable_symbolic_operand): Delete.
2403
2404 2007-08-08 Richard Sandiford <richard@codesourcery.com>
2405
2406 * config/mips/mips.c (mips_symbolic_address_p): Delete.
2407 (mips_symbol_insns_1): New function, split out from...
2408 (mips_symbol_insns): ...here. Take a mode argument. Treat loads
2409 and stores separately from load addresses.
2410 (mips_classify_address): Replace uses of mips_symbolic_address_p
2411 with uses of mips_symbol_insns.
2412 (mips_address_insns): Update calls to mips_symbol_insns.
2413 (mips_const_insns): Likewise.
2414 (mips_legitimize_address): Likewise.
2415
2416 2007-08-08 Richard Sandiford <richard@codesourcery.com>
2417
2418 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): New symbol type.
2419 * config/mips/mips.c (mips_classify_symbol): Skip TARGET_ABICALLS
2420 block for locally-binding symbols if TARGET_ABSOLUTE_ABICALLS.
2421 Return SYMBOL_FORCE_TO_MEM instead of SYMBOL_ABSOLUTE for
2422 non-call contexts if TARGET_MIPS16.
2423 (mips_symbolic_constant_p): Handle SYMBOL_FORCE_TO_MEM.
2424 (mips_symbolic_address_p): Likewise. Remove special TARGET_MIPS16
2425 code for SYMBOL_ABSOLUTE.
2426 (mips_symbol_insns): Likewise.
2427
2428 2007-08-08 Richard Sandiford <richard@codesourcery.com>
2429
2430 * config/mips/mips-protos.h (mips_symbol_context): New enumeration.
2431 * config/mips/mips.c (mips_classify_symbol): Take a context argument.
2432 (mips_symbolic_constant_p): Likewise. Update the call to
2433 mips_classify_symbol.
2434 (mips_classify_address): Update the calls to mips_symbolic_constant_p.
2435 (mips_const_insns): Likewise. Update the call to mips_classify_symbol.
2436 (mips_legitimize_address): Update the call to mips_symbolic_constant_p.
2437 (print_operand_reloc): Add a context argument. Update the call to
2438 mips_symbolic_constant_p.
2439 (print_operand): Update the calls to print_operand_reloc.
2440 (print_operand_address): Use print_operand_reloc rather than
2441 print_operand.
2442 (mips_rewrite_small_data_p): Add a context argument. Update the call
2443 to mips_symbolic_constant_p.
2444 (mips_small_data_pattern_1): Make DATA the containing mem.
2445 Update the call to mips_rewrite_small_data_p.
2446 (mips_rewrite_small_data_1): Likewise.
2447 (mips_use_anchors_for_symbol_p): Update the call to
2448 mips_symbolic_constant_p.
2449 * config/mips/predicates.md (const_call_insn_operand): Likewise.
2450 (splittable_symbolic_operand): Likewise.
2451 (move_operand): Likewise.
2452 (absolute_symbolic_operand): Likewise.
2453 (got_disp_operand): Likewise.
2454 (got_page_ofst_operand): Likewise.
2455
2456 2007-08-08 Richard Sandiford <richard@codesourcery.com>
2457
2458 * config/mips/mips-protos.h (SYMBOL_GENERAL): Rename to...
2459 (SYMBOL_ABSOLUTE): ...this.
2460 (SYMBOL_SMALL_DATA): Rename to...
2461 (SYMBOL_GP_RELATIVE): ...this.
2462 (SYMBOL_CONSTANT_POOL): Rename to...
2463 (SYMBOL_PC_RELATIVE): ...this.
2464 * config/mips/mips.c (mips_classify_symbol, mips_symbolic_constant_p)
2465 (mips_symbolic_address_p, mips_symbol_insns, override_options)
2466 (mips_rewrite_small_data_p, mips_use_anchors_for_symbol_p): Update
2467 after above changes.
2468 * config/mips/predicates.md (const_call_insn_operand): Likewise.
2469 (general_symbolic_operand): Rename to...
2470 (absolute_symbolic_operand): ...this.
2471 * config/mips/mips.md: Update after above changes.
2472
2473 2007-08-08 Vladimir Yanovsky <yanov@il.ibm.com>
2474 Revital Eres <eres@il.ibm.com>
2475
2476 * ddg.c (print_ddg): Add dump information.
2477 * modulo-sched.c (print_node_sched_params): Add parameter and
2478 verbosity.
2479 (calculate_maxii): Remove function.
2480 (undo_generate_reg_moves): Likewise.
2481 (undo_permute_partial_schedule): Likewise.
2482 (kernel_number_of_cycles): Likewise.
2483 (MAXII_FACTOR): New definition to calculate the upper bound of II.
2484 (sms_schedule): Use it. Remove profitability checks.
2485 (sms_schedule_by_order): Fix order of nodes within the cycle.
2486
2487 2007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
2488
2489 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt0.o in profile mode, add
2490 -profile option, add pie support.
2491 (ENDFILE_SPEC): New spec.
2492 * config/gnu.h (LIB_SPEC): Add -profile option.
2493
2494 2007-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
2495
2496 * config/i386/gnu.h (CPP_SPEC): Add -pthread option.
2497 * config/gnu.h (LIB_SPEC): Likewise.
2498
2499 2007-08-07 Yaz Saito <saito@google.com>
2500 Ian Lance Taylor <iant@google.com>
2501
2502 * common.opt (finstrument-functions-exclude-function-list): New
2503 option.
2504 (finstrument-functions-exclude-file-list): New option.
2505 * opts.c (char_p): Define and DEF_VEC.
2506 (flag_instrument_functions_exclude_functions): New static
2507 variable.
2508 (flag_instrument_functions_exclude_files): New static variable.
2509 (add_instrument_functions_exclude_list): New static function.
2510 (flag_instrument_functions_exclude_p): New function.
2511 (common_handle_option): Handle new options.
2512 * flags.h (flag_instrument_functions_exclude_p): Declare.
2513 * gimplify.c (gimplify_function_tree): Call
2514 flag_instrument_functions_exclude_p.
2515 * doc/invoke.texi (Option Summary): Mention new options.
2516 (Code Gen Options): Document new options.
2517
2518 2007-08-07 Ian Lance Taylor <iant@google.com>
2519
2520 PR rtl-optimization/32776
2521 * lower-subreg.c (resolve_clobber): Call resolve_reg_notes.
2522 (resolve_use): Likewise.
2523 (decompose_multiword_subregs): Remove "changed" local variable.
2524
2525 2007-08-07 Carlos O'Donell <carlos@codesourcery.com>
2526
2527 * configure.ac: Define HAVE_GNU_AS if $gas_flag is yes.
2528 * configure: Regenerate.
2529 * config.in: Regenerate.
2530 * gcc.c [HAVE_GNU_AS]: Add "%{v} %{w:-W} %{I*} " to asm_options
2531 spec string.
2532
2533 2007-08-07 Ian Lance Taylor <iant@google.com>
2534
2535 * lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
2536 note, just delete the insn.
2537
2538 2007-08-07 Andreas Schwab <schwab@suse.de>
2539
2540 PR bootstrap/32973
2541 * gengtype-lex.l: Ignore backslash/newline pair while scanning a
2542 struct definition.
2543
2544 2007-08-07 Andreas Krebbel <krebbel1@de.ibm.com>
2545
2546 * lower-subreg.c (resolve_subreg_use): Remove assertion.
2547 (find_decomposable_shift_zext, resolve_shift_zext): New functions.
2548 (decompose_multiword_subregs): Use the functions above to decompose
2549 multiword shifts and zero-extends.
2550
2551 2007-08-07 Rask Ingemann Lambertsen <rask@sygehus.dk>
2552
2553 * doc/sourcebuild.texi (Test Directives): Fix "compile" and
2554 "assemble" descriptions which were swapped.
2555
2556 2007-08-06 Chao-ying Fu <fu@mips.com>
2557
2558 * fixed-value.h: New file.
2559 * fixed-value.c: New file.
2560 * Makefile.in (OBJS-common): Add fixed-value.o.
2561 (fixed-value.o): New rule.
2562 (GTFILES): Add fixed-value.h.
2563 * double-int.c (double_int_scmp): We should use unsigned HOST_WIDE_INT
2564 to compare a.low and b.low.
2565 * gengtype.c (main): Handle FIXED_VALUE_TYPE type as scalar typedef.
2566
2567 2007-08-06 H.J. Lu <hongjiu.lu@intel.com>
2568 Daniel Jacobowitz <dan@codesourcery.com>
2569
2570 PR target/31868
2571 * config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
2572 tmake_file.
2573 (x86_64-*-netbsd*): Likewise.
2574 (x86_64-*-linux*): Likewise.
2575 (x86_64-*-kfreebsd*-gnu): Likewise.
2576 (x86_64-*-knetbsd*-gnu): Likewise.
2577 (i[34567]86-*-solaris2.1[0-9]*): Likewise.
2578
2579 * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.
2580
2581 * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
2582 Add -fno-asynchronous-unwind-tables.
2583
2584 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
2585 * config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
2586 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
2587 * config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
2588 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.
2589
2590 2007-08-06 Steve Ellcey <sje@cup.hp.com>
2591
2592 * config/ia64/ia64.c (ia64_c_mode_for_suffix): New.
2593 (TARGET_C_MODE_FOR_SUFFIX): New.
2594
2595 2007-08-06 Steve Ellcey <sje@cup.hp.com>
2596
2597 * config/ia64/div.md (m2subrf4_cond): Change 'g' to 'G'.
2598
2599 2007-08-06 Steve Ellcey <sje@cup.hp.com>
2600
2601 * config/ia64/ia64.h (MODES_TIEABLE_P): Fix typo.
2602
2603 2007-08-06 H.J. Lu <hongjiu.lu@intel.com>
2604
2605 * config/i386/i386.md: Check TARGET_ macros and optimize_size
2606 before checking function returns in conditional expressions.
2607
2608 2007-08-06 Alfred Minarik <a.minarik@aon.at>
2609
2610 PR pch/13676
2611 * doc/invoke.texi: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header.
2612
2613 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
2614
2615 PR middle-end/32988
2616 * tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check
2617 for INTEGRAL_TYPE_P.
2618
2619 2008-08-05 Paolo Bonzini <bonzini@gnu.org>
2620
2621 * configure.ac: Remove --enable-checking=df from default settings.
2622 * tree-pass.h (TODO_df_verify): New. Shift TODO_mark_first_instance.
2623 * df-core.c (df_finish_pass) [ENABLE_CHECKING]: Schedule verification
2624 if the parameter is true.
2625 (df_analyze) [!ENABLE_DF_CHECKING]: Also do verification if the
2626 DF_VERIFY_SCHEDULED flag is true.
2627 * df.h (enum df_changeable_flags): Add DF_VERIFY_SCHEDULED.
2628 (df_finish_pass): Adjust prototype.
2629 * passes.c (execute_todo): Schedule verification if TODO_df_verify is
2630 true.
2631
2632 * see.c (pass_see): Add TODO_df_verify.
2633 * loop-init.c (pass_rtl_move_loop_invariants): Add TODO_df_verify.
2634 * global.c (rest_of_handle_global_alloc): Schedule verification
2635 after the pass.
2636 * local-alloc.c (rest_of_handle_local_alloc): Schedule verification
2637 before the pass.
2638 * function.c (pass_thread_prologue_and_epilogue): Add TODO_df_verify.
2639 * gcse.c (rest_of_handle_gcse): Adjust call to df_finish_pass.
2640 * loop-iv.c (iv_analysis_done): Schedule verification after the pass.
2641
2642 * config/sh/sh.c (sh_output_mi_thunk): Remove dead code.
2643 * config/ia64/ia64.c (ia64_reorg): Adjust call to df_finish_pass.
2644 * config/bfin/bfin.c (bfin_reorg): Adjust call to df_finish_pass.
2645
2646 2007-08-05 Vladimir Yanovsky <yanov@il.ibm.com>
2647 Revital Eres <eres@il.ibm.com>
2648
2649 * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Document new
2650 flag.
2651 * ddg.c (create_ddg_dependence): Rename to...
2652 (create_ddg_dep_from_intra_loop_link): This. Do not check
2653 for interloop edges. Do not create anti dependence edge when
2654 a true dependence edge exists in the opposite direction and
2655 -fmodulo-sched-allow-regmoves is set.
2656 (build_intra_loop_deps): Call create_ddg_dep_from_intra_loop_link.
2657 (add_cross_iteration_register_deps): Create anti dependence edge
2658 when -fno-modulo-sched-allow-regmoves is set.
2659 * common.opt (-fmodulo-sched-allow-regmoves): New flag.
2660
2661 2007-08-04 Richard Sandiford <richard@codesourcery.com>
2662
2663 * config/arm/arm.md (movsi): Add braces.
2664
2665 2007-08-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
2666
2667 PR middle-end/32780
2668 * fold-const.c (fold_binary <case MINUS_EXPR>): Fix the type of
2669 operands for the folding of "A - (A & B)" into "~B & A"; cast them
2670 to type.
2671
2672 2007-08-03 Zdenek Dvorak <ook@ucw.cz>
2673
2674 * tree-ssa-threadupdate.c (thread_through_all_blocks): Use loops'
2675 state accessor functions.
2676 * cfgloopmanip.c (remove_path, create_preheaders,
2677 force_single_succ_latches, fix_loop_structure): Ditto.
2678 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
2679 tree_duplicate_loop_to_header_edge): Ditto.
2680 * cfgloopanal.c (mark_irreducible_loops): Ditto.
2681 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize):
2682 Ditto.
2683 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures,
2684 cleanup_tree_cfg): Ditto.
2685 * tree-cfg.c (tree_merge_blocks): Ditto.
2686 * cfgloop.c (rescan_loop_exit, record_loop_exits,
2687 release_recorded_exits, get_loop_exit_edges, verify_loop_structure,
2688 loop_preheader_edge, single_exit): Ditto.
2689 (flow_loops_find): Do not clear loops->state.
2690 * cfgloop.h (loops_state_satisfies_p, loops_state_set,
2691 loops_state_clear): New functions.
2692
2693 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2694
2695 PR middle-end/32399
2696 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
2697 when adding to the base and convert ELT to sizetype instead of type.
2698
2699 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2700
2701 PR middle-end/32304
2702 * ipa-reference.c (has_proper_scope_for_analysis): Return false when
2703 the decl's type has TYPE_NEEDS_CONSTRUCTING set.
2704
2705 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2706
2707 PR middle-end/32935
2708 * fold-convert.c (fold_negate_expr <NOP_EXPR>): Convert back to the
2709 correct type the negate expression.
2710
2711 2007-08-03 Jan Hubicka <jh@suse.cz>
2712
2713 * i386.c (setup_incoming_varargs_64): Tolerate 64bit preferred
2714 stack boundary.
2715
2716 2007-08-03 David Edelsohn <edelsohn@gnu.org>
2717
2718 * config/rs6000/rs6000.c (struct processor_cost): Change
2719 l1_cache_lines to l1_cache_size. Add l2_cache_size.
2720 (*_cost): Convert l1 cache information to kilobytes. Add l2 cache
2721 information.
2722 (rios1_costs, rios2_cost): Correct cache line size.
2723 (rs6000_override_options): Set l2-cache-size parameter.
2724
2725 2007-08-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
2726 Diego Novillo <dnovillo@google.com>
2727
2728 PR 31521
2729 * tree-vrp.c (simplify_div_or_mod_using_ranges): Also simplify
2730 if the range includes 0.
2731
2732 2007-08-03 Ben Elliston <bje@au.ibm.com>
2733
2734 * config/spu/spu.md (dftsv, dftsv_celledp): Attach the appropriate
2735 mode to unspec expressions to silence a warning from the generator
2736 programs.
2737
2738 2007-08-02 Steve Ellcey <sje@cup.hp.com>
2739
2740 * config/ia64/constraints.md ("U"): Make constraint vector only.
2741
2742 2007-08-02 Nathan Froyd <froydnj@codesourcery.com>
2743
2744 PR middle-end/25446
2745 * c-objc-common.c (c_cannot_inline_tree_fn): Check for an
2746 always_inline attribute on the function decl.
2747
2748 2007-08-02 Nathan Froyd <froydnj@codesourcery.com>
2749
2750 PR middle-end/25445
2751 * varasm.c (default_binds_local_p_1): Consult flag_whole_program
2752 if we are compiling with -fPIC.
2753
2754 2007-08-02 Sandra Loosemore <sandra@codesourcery.com>
2755 Nigel Stephens <nigel@mips.com>
2756
2757 * longlong.h [__mips__] (count_leading_zeros, COUNT_LEADING_ZEROS_0):
2758 Define for MIPS32 and MIPS64.
2759
2760 2007-08-02 Nick Clifton <nickc@redhat.com>
2761
2762 * config/host-hpux.c: Change copyright header to refer to version
2763 3 of the GNU General Public License and to point readers at the
2764 COPYING3 file and the FSF's license web page.
2765 * config/alpha/predicates.md, config/alpha/vms-ld.c,
2766 config/alpha/linux.h, config/alpha/alpha.opt,
2767 config/alpha/linux-elf.h, config/alpha/vms.h, config/alpha/elf.h,
2768 config/alpha/vms-unwind.h, config/alpha/ev4.md,
2769 config/alpha/ev6.md, config/alpha/alpha.c, config/alpha/vms-cc.c,
2770 config/alpha/alpha.h, config/alpha/sync.md,
2771 config/alpha/openbsd.h, config/alpha/alpha.md,
2772 config/alpha/alpha-modes.def, config/alpha/ev5.md,
2773 config/alpha/alpha-protos.h, config/alpha/freebsd.h,
2774 config/alpha/osf5.h, config/alpha/netbsd.h, config/alpha/vms64.h,
2775 config/alpha/constraints.md, config/alpha/osf.h,
2776 config/alpha/xm-vms.h, config/alpha/unicosmk.h, config/linux.h,
2777 config/frv/predicates.md, config/frv/frv.h, config/frv/linux.h,
2778 config/frv/frv.md, config/frv/frv.opt, config/frv/frv-modes.def,
2779 config/frv/frv-asm.h, config/frv/frv-protos.h,
2780 config/frv/frv-abi.h, config/frv/frv.c, config/s390/tpf.h,
2781 config/s390/s390.c, config/s390/predicates.md, config/s390/s390.h,
2782 config/s390/linux.h, config/s390/tpf.md, config/s390/tpf.opt,
2783 config/s390/2064.md, config/s390/2084.md, config/s390/s390.md,
2784 config/s390/s390.opt, config/s390/s390-modes.def,
2785 config/s390/fixdfdi.h, config/s390/constraints.md,
2786 config/s390/s390-protos.h, config/s390/s390x.h, config/elfos.h,
2787 config/dbxcoff.h, config/m32c/predicates.md, config/m32c/cond.md,
2788 config/m32c/m32c.c, config/m32c/minmax.md, config/m32c/blkmov.md,
2789 config/m32c/m32c-pragma.c, config/m32c/m32c.h,
2790 config/m32c/prologue.md, config/m32c/m32c.abi,
2791 config/m32c/muldiv.md, config/m32c/bitops.md, config/m32c/mov.md,
2792 config/m32c/addsub.md, config/m32c/m32c.md, config/m32c/m32c.opt,
2793 config/m32c/t-m32c, config/m32c/m32c-modes.def,
2794 config/m32c/jump.md, config/m32c/shift.md,
2795 config/m32c/m32c-protos.h, config/libgloss.h,
2796 config/spu/spu-protos.h, config/spu/predicates.md,
2797 config/spu/spu-builtins.h, config/spu/spu.c,
2798 config/spu/spu-builtins.def, config/spu/spu-builtins.md,
2799 config/spu/spu.h, config/spu/spu-elf.h, config/spu/constraints.md,
2800 config/spu/spu.md, config/spu/spu-c.c, config/spu/spu.opt,
2801 config/spu/spu-modes.def, config/spu/t-spu-elf, config/interix.h,
2802 config/sparc/hypersparc.md, config/sparc/predicates.md,
2803 config/sparc/linux.h, config/sparc/sp64-elf.h,
2804 config/sparc/supersparc.md, config/sparc/cypress.md,
2805 config/sparc/openbsd1-64.h, config/sparc/openbsd64.h,
2806 config/sparc/niagara.md, config/sparc/sparc.md,
2807 config/sparc/long-double-switch.opt, config/sparc/ultra3.md,
2808 config/sparc/sparc.opt, config/sparc/sync.md,
2809 config/sparc/sp-elf.h, config/sparc/sparc-protos.h,
2810 config/sparc/ultra1_2.md, config/sparc/biarch64.h,
2811 config/sparc/sparc.c, config/sparc/little-endian.opt,
2812 config/sparc/sysv4-only.h, config/sparc/sparc.h,
2813 config/sparc/linux64.h, config/sparc/freebsd.h,
2814 config/sparc/sol2.h, config/sparc/rtemself.h,
2815 config/sparc/netbsd-elf.h, config/sparc/vxworks.h,
2816 config/sparc/sparc-modes.def, config/sparc/sparclet.md,
2817 config/sparc/sysv4.h, config/vx-common.h, config/netbsd-aout.h,
2818 config/flat.h, config/m32r/m32r.md, config/m32r/predicates.md,
2819 config/m32r/little.h, config/m32r/m32r.c, config/m32r/m32r.opt,
2820 config/m32r/linux.h, config/m32r/constraints.md,
2821 config/m32r/m32r.h, config/m32r/m32r-protos.h, config/vxworks.opt,
2822 config/darwin-c.c, config/darwin.opt, config/i386/i386.h,
2823 config/i386/cygming.h, config/i386/linux.h, config/i386/cygwin.h,
2824 config/i386/i386.md, config/i386/netware-crt0.c,
2825 config/i386/sco5.h, config/i386/mmx.md, config/i386/vx-common.h,
2826 config/i386/kaos-i386.h, config/i386/winnt-stubs.c,
2827 config/i386/netbsd64.h, config/i386/djgpp.h, config/i386/gas.h,
2828 config/i386/sol2.h, config/i386/constraints.md,
2829 config/i386/netware-libgcc.c, config/i386/sysv5.h,
2830 config/i386/predicates.md, config/i386/geode.md,
2831 config/i386/x86-64.h, config/i386/kfreebsd-gnu.h,
2832 config/i386/freebsd64.h, config/i386/vxworksae.h,
2833 config/i386/pentium.md, config/i386/lynx.h, config/i386/i386elf.h,
2834 config/i386/rtemself.h, config/i386/netbsd-elf.h,
2835 config/i386/ppro.md, config/i386/k6.md, config/i386/netware.c,
2836 config/i386/netware.h, config/i386/i386-modes.def,
2837 config/i386/sysv4-cpp.h, config/i386/i386-interix.h,
2838 config/i386/cygwin1.c, config/i386/djgpp.opt, config/i386/uwin.h,
2839 config/i386/unix.h, config/i386/ptx4-i.h, config/i386/xm-djgpp.h,
2840 config/i386/att.h, config/i386/winnt.c, config/i386/beos-elf.h,
2841 config/i386/sol2-10.h, config/i386/darwin64.h, config/i386/sse.md,
2842 config/i386/i386.opt, config/i386/bsd.h, config/i386/cygming.opt,
2843 config/i386/xm-mingw32.h, config/i386/linux64.h,
2844 config/i386/openbsdelf.h, config/i386/xm-cygwin.h,
2845 config/i386/sco5.opt, config/i386/darwin.h, config/i386/mingw32.h,
2846 config/i386/winnt-cxx.c, config/i386/i386-interix3.h,
2847 config/i386/nwld.c, config/i386/nwld.h, config/i386/host-cygwin.c,
2848 config/i386/cygwin2.c, config/i386/i386-protos.h,
2849 config/i386/sync.md, config/i386/openbsd.h,
2850 config/i386/host-mingw32.c, config/i386/i386-aout.h,
2851 config/i386/nto.h, config/i386/biarch64.h,
2852 config/i386/i386-coff.h, config/i386/freebsd.h,
2853 config/i386/driver-i386.c, config/i386/knetbsd-gnu.h,
2854 config/i386/host-i386-darwin.c, config/i386/vxworks.h,
2855 config/i386/crtdll.h, config/i386/i386.c, config/i386/sysv4.h,
2856 config/darwin-protos.h, config/linux.opt, config/sol2.c,
2857 config/sol2.h, config/sh/symbian.c, config/sh/sh-protos.h,
2858 config/sh/linux.h, config/sh/elf.h, config/sh/superh.h,
2859 config/sh/sh4.md, config/sh/coff.h, config/sh/newlib.h,
2860 config/sh/embed-elf.h, config/sh/symbian-pre.h, config/sh/rtems.h,
2861 config/sh/kaos-sh.h, config/sh/sh4a.md, config/sh/constraints.md,
2862 config/sh/sh64.h, config/sh/sh.opt, config/sh/symbian-post.h,
2863 config/sh/sh-c.c, config/sh/predicates.md, config/sh/sh.c,
2864 config/sh/sh.h, config/sh/shmedia.md, config/sh/sh-modes.def,
2865 config/sh/little.h, config/sh/sh1.md, config/sh/sh4-300.md,
2866 config/sh/superh64.h, config/sh/rtemself.h,
2867 config/sh/netbsd-elf.h, config/sh/sh.md, config/sh/vxworks.h,
2868 config/usegas.h, config/svr3.h, config/pdp11/pdp11-protos.h,
2869 config/pdp11/2bsd.h, config/pdp11/pdp11.md, config/pdp11/pdp11.c,
2870 config/pdp11/pdp11.opt, config/pdp11/pdp11-modes.def,
2871 config/pdp11/pdp11.h, config/avr/rtems.h, config/avr/avr-protos.h,
2872 config/avr/predicates.md, config/avr/constraints.md,
2873 config/avr/avr.md, config/avr/avr.c, config/avr/avr.opt,
2874 config/avr/avr.h, config/sol2-protos.h, config/dbxelf.h,
2875 config/lynx.opt, config/crx/crx.h, config/crx/crx-protos.h,
2876 config/crx/crx.md, config/crx/crx.c, config/crx/crx.opt,
2877 config/c4x/c4x-c.c, config/c4x/c4x.c, config/c4x/c4x.opt,
2878 config/c4x/c4x-modes.def, config/c4x/rtems.h,
2879 config/c4x/predicates.md, config/c4x/c4x.h,
2880 config/c4x/c4x-protos.h, config/c4x/c4x.md, config/kfreebsd-gnu.h,
2881 config/xtensa/predicates.md, config/xtensa/xtensa.c,
2882 config/xtensa/linux.h, config/xtensa/xtensa.h,
2883 config/xtensa/elf.h, config/xtensa/xtensa.md,
2884 config/xtensa/xtensa.opt, config/xtensa/constraints.md,
2885 config/xtensa/xtensa-protos.h, config/dbx.h,
2886 config/stormy16/predicates.md, config/stormy16/stormy16.md,
2887 config/stormy16/stormy16.c, config/stormy16/stormy16.opt,
2888 config/stormy16/stormy16.h, config/stormy16/stormy16-protos.h,
2889 config/host-solaris.c, config/fr30/fr30.h,
2890 config/fr30/predicates.md, config/fr30/fr30-protos.h,
2891 config/fr30/fr30.md, config/fr30/fr30.c, config/fr30/fr30.opt,
2892 config/vxworksae.h, config/sol2-c.c, config/lynx.h,
2893 config/m68hc11/m68hc11-protos.h, config/m68hc11/predicates.md,
2894 config/m68hc11/m68hc11.md, config/m68hc11/m68hc11.c,
2895 config/m68hc11/m68hc11.opt, config/m68hc11/m68hc11.h,
2896 config/m68hc11/m68hc12.h, config/openbsd-oldgas.h,
2897 config/host-linux.c, config/interix3.h, config/cris/cris.c,
2898 config/cris/predicates.md, config/cris/linux.h,
2899 config/cris/cris.h, config/cris/aout.h, config/cris/cris.md,
2900 config/cris/linux.opt, config/cris/cris.opt, config/cris/elf.opt,
2901 config/cris/aout.opt, config/cris/cris-protos.h,
2902 config/vxworks-dummy.h, config/netbsd.h, config/netbsd-elf.h,
2903 config/iq2000/iq2000.h, config/iq2000/predicates.md,
2904 config/iq2000/iq2000-protos.h, config/iq2000/iq2000.md,
2905 config/iq2000/iq2000.c, config/iq2000/iq2000.opt,
2906 config/host-darwin.c, config/mt/mt.md, config/mt/mt.c,
2907 config/mt/mt.opt, config/mt/t-mt, config/mt/mt.h,
2908 config/mt/mt-protos.h, config/svr4.h, config/host-darwin.h,
2909 config/chorus.h, config/mn10300/mn10300.c,
2910 config/mn10300/mn10300.opt, config/mn10300/predicates.md,
2911 config/mn10300/mn10300.h, config/mn10300/linux.h,
2912 config/mn10300/constraints.md, config/mn10300/mn10300-protos.h,
2913 config/mn10300/mn10300.md, config/ia64/predicates.md,
2914 config/ia64/itanium1.md, config/ia64/unwind-ia64.h,
2915 config/ia64/ia64-c.c, config/ia64/sync.md, config/ia64/ia64.c,
2916 config/ia64/itanium2.md, config/ia64/ia64.h, config/ia64/vect.md,
2917 config/ia64/freebsd.h, config/ia64/ia64.md,
2918 config/ia64/ia64-modes.def, config/ia64/constraints.md,
2919 config/ia64/hpux.h, config/ia64/ia64-protos.h, config/windiss.h,
2920 config/gofast.h, config/rtems.h, config/sol2-10.h,
2921 config/m68k/predicates.md, config/m68k/m68k.md,
2922 config/m68k/linux.h, config/m68k/m68k-modes.def,
2923 config/m68k/print-sysroot-suffix.sh, config/m68k/m68k-protos.h,
2924 config/m68k/coff.h, config/m68k/m68k-none.h, config/m68k/ieee.opt,
2925 config/m68k/openbsd.h, config/m68k/m68k-aout.h,
2926 config/m68k/m68k.opt, config/m68k/m68020-elf.h,
2927 config/m68k/m68kelf.h, config/m68k/m68k-devices.def,
2928 config/m68k/uclinux-oldabi.h, config/m68k/m68k.c,
2929 config/m68k/constraints.md, config/m68k/rtemself.h,
2930 config/m68k/netbsd-elf.h, config/m68k/m68k.h,
2931 config/m68k/uclinux.h, config/rs6000/power4.md,
2932 config/rs6000/host-darwin.c, config/rs6000/6xx.md,
2933 config/rs6000/linux.h, config/rs6000/eabi.h,
2934 config/rs6000/aix41.opt, config/rs6000/xcoff.h,
2935 config/rs6000/secureplt.h, config/rs6000/linuxspe.h,
2936 config/rs6000/eabialtivec.h, config/rs6000/8540.md,
2937 config/rs6000/darwin8.h, config/rs6000/kaos-ppc.h,
2938 config/rs6000/windiss.h, config/rs6000/603.md,
2939 config/rs6000/aix41.h, config/rs6000/cell.md,
2940 config/rs6000/mpc.md, config/rs6000/aix43.h, config/rs6000/beos.h,
2941 config/rs6000/gnu.h, config/rs6000/rtems.h, config/rs6000/aix.opt,
2942 config/rs6000/darwin.md, config/rs6000/darwin64.h,
2943 config/rs6000/default64.h, config/rs6000/7xx.md,
2944 config/rs6000/darwin.opt, config/rs6000/spe.md,
2945 config/rs6000/rs6000.opt, config/rs6000/rs6000-c.c,
2946 config/rs6000/rios2.md, config/rs6000/linuxaltivec.h,
2947 config/rs6000/7450.md, config/rs6000/linux64.h,
2948 config/rs6000/constraints.md, config/rs6000/440.md,
2949 config/rs6000/darwin.h, config/rs6000/host-ppc64-darwin.c,
2950 config/rs6000/rs6000.c, config/rs6000/aix52.h,
2951 config/rs6000/rs6000.h, config/rs6000/power6.md,
2952 config/rs6000/predicates.md, config/rs6000/altivec.md,
2953 config/rs6000/aix64.opt, config/rs6000/rios1.md,
2954 config/rs6000/rs6000-modes.def, config/rs6000/rs64.md,
2955 config/rs6000/eabisim.h, config/rs6000/sysv4le.h,
2956 config/rs6000/darwin7.h, config/rs6000/dfp.md,
2957 config/rs6000/linux64.opt, config/rs6000/sync.md,
2958 config/rs6000/vxworksae.h, config/rs6000/power5.md,
2959 config/rs6000/lynx.h, config/rs6000/biarch64.h,
2960 config/rs6000/rs6000.md, config/rs6000/sysv4.opt,
2961 config/rs6000/eabispe.h, config/rs6000/e500.h,
2962 config/rs6000/freebsd.h, config/rs6000/rs6000-protos.h,
2963 config/rs6000/netbsd.h, config/rs6000/e500-double.h,
2964 config/rs6000/aix.h, config/rs6000/vxworks.h,
2965 config/rs6000/40x.md, config/rs6000/aix51.h,
2966 config/rs6000/sysv4.h, config/arc/arc-protos.h, config/arc/arc.md,
2967 config/arc/arc.c, config/arc/arc.opt, config/arc/arc-modes.def,
2968 config/arc/arc.h, config/mcore/mcore-elf.h,
2969 config/mcore/mcore-protos.h, config/mcore/predicates.md,
2970 config/mcore/mcore.md, config/mcore/mcore.c,
2971 config/mcore/mcore.opt, config/mcore/mcore.h,
2972 config/mcore/mcore-pe.h, config/darwin.c, config/freebsd-nthr.h,
2973 config/score/predicates.md, config/score/score-version.h,
2974 config/score/score-protos.h, config/score/misc.md,
2975 config/score/elf.h, config/score/score.c, config/score/mac.md,
2976 config/score/score7.md, config/score/score.h,
2977 config/score/score-conv.h, config/score/score-mdaux.c,
2978 config/score/score.md, config/score/score.opt,
2979 config/score/score-modes.def, config/score/score-mdaux.h,
2980 config/score/mul-div.S, config/arm/uclinux-elf.h,
2981 config/arm/semi.h, config/arm/ecos-elf.h, config/arm/arm1020e.md,
2982 config/arm/symbian.h, config/arm/linux-elf.h,
2983 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
2984 config/arm/elf.h, config/arm/aout.h, config/arm/arm.c,
2985 config/arm/thumb2.md, config/arm/vec-common.md, config/arm/coff.h,
2986 config/arm/strongarm-pe.h, config/arm/arm.h,
2987 config/arm/cortex-a8-neon.md, config/arm/semiaof.h,
2988 config/arm/cortex-a8.md, config/arm/uclinux-eabi.h,
2989 config/arm/arm-modes.def, config/arm/linux-eabi.h,
2990 config/arm/rtems-elf.h, config/arm/neon-schedgen.ml,
2991 config/arm/arm-cores.def, config/arm/arm-protos.h,
2992 config/arm/vfp.md, config/arm/aof.h, config/arm/linux-gas.h,
2993 config/arm/wince-pe.h, config/arm/neon.md,
2994 config/arm/constraints.md, config/arm/neon.ml,
2995 config/arm/xscale-elf.h, config/arm/strongarm-coff.h,
2996 config/arm/arm.opt, config/arm/arm926ejs.md,
2997 config/arm/predicates.md, config/arm/iwmmxt.md,
2998 config/arm/arm_neon.h, config/arm/unknown-elf.h,
2999 config/arm/kaos-arm.h, config/arm/bpabi.h, config/arm/pe.opt,
3000 config/arm/neon-testgen.ml, config/arm/arm.md,
3001 config/arm/xscale-coff.h, config/arm/pe.c,
3002 config/arm/arm-generic.md, config/arm/pe.h,
3003 config/arm/kaos-strongarm.h, config/arm/freebsd.h,
3004 config/arm/neon-docgen.ml, config/arm/netbsd.h, config/arm/fpa.md,
3005 config/arm/strongarm-elf.h, config/arm/cirrus.md,
3006 config/arm/netbsd-elf.h, config/arm/vxworks.h,
3007 config/arm/neon-gen.ml, config/kaos.h, config/darwin-driver.c,
3008 config/pa/predicates.md, config/pa/pa64-hpux.h,
3009 config/pa/pa-hpux.opt, config/pa/som.h, config/pa/pa-hpux1010.opt,
3010 config/pa/pa-hpux1111.opt, config/pa/pa-pro-end.h,
3011 config/pa/elf.h, config/pa/fptr.c, config/pa/pa64-linux.h,
3012 config/pa/pa.md, config/pa/pa.opt, config/pa/pa-hpux.h,
3013 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
3014 config/pa/pa-hpux1010.h, config/pa/pa-protos.h,
3015 config/pa/pa-osf.h, config/pa/pa-hpux1111.h, config/pa/pa-64.h,
3016 config/pa/milli64.S, config/pa/pa.c, config/pa/pa-linux.h,
3017 config/pa/pa.h, config/pa/pa32-linux.h, config/pa/pa64-hpux.opt,
3018 config/pa/pa64-regs.h, config/pa/pa-modes.def,
3019 config/pa/constraints.md, config/darwin9.h, config/mips/4100.md,
3020 config/mips/linux.h, config/mips/elfoabi.h, config/mips/elf.h,
3021 config/mips/sdb.h, config/mips/windiss.h, config/mips/rtems.h,
3022 config/mips/3000.md, config/mips/iris5.h, config/mips/5000.md,
3023 config/mips/7000.md, config/mips/9000.md, config/mips/4600.md,
3024 config/mips/linux64.h, config/mips/elforion.h,
3025 config/mips/constraints.md, config/mips/generic.md,
3026 config/mips/predicates.md, config/mips/4300.md,
3027 config/mips/mips-ps-3d.md, config/mips/iris.h, config/mips/24k.md,
3028 config/mips/mips.md, config/mips/mips.opt, config/mips/4k.md,
3029 config/mips/5k.md, config/mips/vr4120-div.S,
3030 config/mips/openbsd.h, config/mips/iris6.h, config/mips/4000.md,
3031 config/mips/mips-protos.h, config/mips/6000.md,
3032 config/mips/mips.c, config/mips/mips.h, config/mips/r3900.h,
3033 config/mips/74k.md, config/mips/netbsd.h, config/mips/vxworks.h,
3034 config/mips/mips-modes.def, config/mips/vr.h,
3035 config/soft-fp/t-softfp, config/openbsd.h, config/ptx4.h,
3036 config/freebsd-spec.h, config/vax/vax.c, config/vax/openbsd.h,
3037 config/vax/vax.h, config/vax/elf.h, config/vax/vax.md,
3038 config/vax/bsd.h, config/vax/vax.opt, config/vax/vax-modes.def,
3039 config/vax/openbsd1.h, config/vax/netbsd.h,
3040 config/vax/vax-protos.h, config/vax/netbsd-elf.h,
3041 config/vax/vaxv.h, config/vax/ultrix.h, config/freebsd.h,
3042 config/h8300/rtems.h, config/h8300/predicates.md,
3043 config/h8300/h8300.c, config/h8300/h8300.h, config/h8300/elf.h,
3044 config/h8300/h8300.md, config/h8300/h8300.opt,
3045 config/h8300/coff.h, config/h8300/h8300-protos.h,
3046 config/v850/v850.md, config/v850/predicates.md,
3047 config/v850/v850-c.c, config/v850/v850.c, config/v850/v850.opt,
3048 config/v850/v850.h, config/v850/v850-protos.h, config/vxworks.c,
3049 config/knetbsd-gnu.h, config/sol2-6.h, config/vxworks.h,
3050 config/mmix/mmix.h, config/mmix/predicates.md,
3051 config/mmix/mmix-protos.h, config/mmix/mmix.md,
3052 config/mmix/mmix.c, config/mmix/mmix.opt,
3053 config/mmix/mmix-modes.def, config/bfin/bfin.opt,
3054 config/bfin/rtems.h, config/bfin/bfin-modes.def,
3055 config/bfin/predicates.md, config/bfin/bfin-protos.h,
3056 config/bfin/bfin.c, config/bfin/bfin.h, config/bfin/bfin.md:
3057 Likewise.
3058
3059 2007-08-02 Richard Sandiford <richard@codesourcery.com>
3060
3061 * emit-rtl.c (reset_used_decls): Rename to...
3062 (set_used_decls): ...this. Set the used flag rather than clearing it.
3063 (unshare_all_rtl_again): Update accordingly. Set flags on argument
3064 DECL_RTLs rather than resetting them.
3065
3066 2007-08-02 Andreas Krebbel <krebbel1@de.ibm.com>
3067
3068 * config/s390/s390.md ("*xordi3_cconly"): Change xr to xg.
3069
3070 2007-08-01 Sandra Loosemore <sandra@codesourcery.com>
3071
3072 * reload.c (find_reloads_address_part): Pass correct MEMREFLOC
3073 argument to find_reloads_address.
3074
3075 2007-08-01 Daniel Jacobowitz <dan@codesourcery.com>
3076
3077 PR tree-optimization/32919
3078 * tree-ssa-sccvn.c (visit_phi): Do not visit abnormal PHIs.
3079 * tree-ssa-coalesce.c (ssa_conflicts_dump): New.
3080 (coalesce_ssa_name): Call it.
3081
3082 2007-08-01 Sandra Loosemore <sandra@codesourcery.com>
3083 David Ung <davidu@mips.com>
3084
3085 * config/mips/mips16.S (__mips16_unordsf2, __mips16_floatunsisf): New.
3086 (__mips16_unorddf2, __mips16_floatunsidf): New.
3087 * config/mips/mips.c (mips_init_libfuncs): Add optab entries for
3088 above functions.
3089 * config/mips/t-libgcc-mips16 (LIB1ASMFUNCS): Add new functions.
3090
3091 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
3092
3093 * tree-pretty-print.c (dump_generic_node): Dump OMP_SECTIONS_SWITCH.
3094 Display new operands of OMP_SECTIONS and OMP_CONTINUE.
3095 * tree.h (OMP_SECTIONS_CONTROL): New macro.
3096 (OMP_DIRECTIVE_P): Add OMP_SECTIONS_SWITCH.
3097 * omp-low.c (get_ws_args_for, determine_parallel_type,
3098 expand_omp_for_generic, expand_omp_for_static_nochunk,
3099 expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
3100 Work with more precise CFG.
3101 (build_omp_regions_1): Handle OMP_SECTIONS_SWITCH.
3102 (lower_omp_sections): Emit OMP_SECTIONS_SWITCH. Add arguments to
3103 OMP_CONTINUE.
3104 * tree-gimple.c (is_gimple_stmt): Handle OMP_SECTIONS_SWITCH.
3105 * gimple-low.c (lower_stmt): Ditto.
3106 * tree-inline.c (estimate_num_insns_1): Ditto.
3107 * tree.def (OMP_SECTIONS, OMP_CONTINUE): Added new operands.
3108 (OMP_SECTIONS_SWITCH): New.
3109 * tree-cfgcleanup.c (cleanup_omp_return): New.
3110 (cleanup_tree_cfg_bb): Call cleanup_omp_return.
3111 * tree-cfg.c (make_edges): Create back edges for OMP_CONTINUE
3112 and exit edge for OMP_FOR. Handle OMP_SECTIONS_SWITCH.
3113 (tree_redirect_edge_and_branch): Handle omp constructs.
3114
3115 * fortran/trans-openmp.c (gfc_trans_omp_sections): Build OMP_SECTIONS
3116 with three arguments.
3117
3118 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
3119
3120 * tree-cfg.c (tree_merge_blocks): Preserve loop exit phi nodes only
3121 in loop closed ssa.
3122
3123 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
3124
3125 * tree-ssa-threadupdate.c (thread_through_all_blocks): Record that
3126 the loop structures may need fixing.
3127 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
3128 New functions.
3129 (cleanup_tree_cfg_loop): Removed.
3130 (cleanup_tree_cfg): If loops need fixing, call repair_loop_structures.
3131 * tree-predcom.c (tree_predictive_commoning): Return TODO_cleanup_cfg
3132 instead of running cleanup_tree_cfg_loop.
3133 * cfgloop.h (LOOPS_NEED_FIXUP): New constant.
3134 * tree-flow.h (cleanup_tree_cfg_loop): Declaration removed.
3135 (tree_predictive_commoning): Declaration changed.
3136 * passes.c (execute_function_todo): Do not use cleanup_tree_cfg_loop.
3137
3138 2007-08-01 Zdenek Dvorak <ook@ucw.cz>
3139
3140 * doc/invoke.texi (l1-cache-size): Update documentation.
3141 (l2-cache-size): Document.
3142 * params.h (L2_CACHE_SIZE): New macro.
3143 * tree-ssa-loop-prefetch.c (L1_CACHE_SIZE_BYTES): Reflect
3144 that L1_CACHE_SIZE is in kB now.
3145 (L2_CACHE_SIZE_BYTES): New macro.
3146 (tree_ssa_prefetch_arrays): Show size in kB.
3147 * config/i386/i386.h (struct processor_costs): Add l1_cache_size
3148 and l2_cache_size fields.
3149 * config/i386/driver-i386.c (describe_cache): Detect cache size
3150 in kB.
3151 * config/i386/i386.c (size_cost, i386_cost, i486_cost,pentium_cost,
3152 pentiumpro_cost, geode_cost, k6_cost, athlon_cost, k8_cost,
3153 amdfam10_cost, pentium4_cost, nocona_cost, core2_cost,
3154 generic64_cost, generic32_cost): Add l1_cache_size and l2_cache_size.
3155 (override_options): Set l1-cache-size and l2-cache-size to default
3156 values if not specified otherwise.
3157 * params.def (PARAM_L1_CACHE_SIZE): Change to set in kB.
3158 (PARAM_L2_CACHE_SIZE): New.
3159
3160 2007-08-01 Nigel Stephens <nigel@mips.com>
3161 David Ung <davidu@mips.com>
3162 Thiemo Seufer <ths@mips.com>
3163 Chris Dearman <chris@mips.com>
3164 Richard Sandiford <richard@codesourcery.com>
3165
3166 * config.gcc (mips*-sde-elf*): New stanza.
3167 (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
3168 (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
3169 (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*, mips-*-elf*)
3170 (mipsel-*-elf*, mips64-*-elf*, mips64el-*-elf*, mips64orion-*-elf*)
3171 (mips64orionel-*-elf*, mips*-*-rtems*, mips-wrs-windiss)
3172 (mipstx39-*-elf*, mipstx39el-*-elf*): Add mips/t-libgcc-mips16
3173 to tmake_file.
3174 * config/mips/sde.h: New file.
3175 * config/mips/t-libgcc-mips16: Likewise.
3176 * config/mips/t-sde: Likewise.
3177 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove settings
3178 of _ABIN32, _ABI64, _ABIO32, _MIPS_SIM, _MIPS_SZLONG, _MIPS_SZPTR,
3179 _MIPS_FPSET and _MIPS_SZINT.
3180 * config/mips/iris.h (TARGET_OS_CPP_BUILTINS): Likewise.
3181 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Remove separate
3182 insertion of a default -mips option. Use MIPS_32BIT_OPTION_SPEC.
3183 * config/mips/t-isa3264 (LIB1ASMSRC, LIB1ASMFUNCS): Delete.
3184 * config/mips/t-r3900 (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
3185 * config/mips/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
3186 * config/mips/mips.h (TARGET_CPU_CPP_BUITINS): Define _ABIO32,
3187 _ABIN32, _ABI64, _ABIO64, _MIPS_SIM, _MIPS_SZINT, _MIPS_SZLONG,
3188 _MIPS_SZPTR and _MIPS_FPSET.
3189 (MIPS_ISA_LEVEL_SPEC): Inject the default -mips option if no
3190 architecture is specified.
3191 (MIPS_32BIT_OPTION_SPEC): New macro.
3192
3193 2007-07-31 Dan Hipschman <dsh@google.com>
3194
3195 * gcc.c (end_going_arg): New function.
3196 (do_spec_2): Use it.
3197 (do_spec_1): Use it.
3198
3199 2007-07-31 H.J. Lu <hongjiu.lu@intel.com>
3200
3201 * ddg.c (add_cross_iteration_register_deps): Declare bb_info
3202 only if ENABLE_CHECKING is defined.
3203
3204 2007-07-31 Kenneth Zadeck <zadeck@naturalbridge.com>
3205
3206 * df.h (DF_RU, DF_RU_BB_INFO, df_ru_bb_info, df_ru,
3207 df_ru_add_problem, df_ru_get_bb_info): Removed.
3208 (DF_RD, DF_UREC, DF_CHAIN, DF_NOTE): Renumbered.
3209 * df-problems.c (df_ru_problem_data, df_ru_set_bb_info,
3210 df_ru_free_bb_info, df_ru_alloc,
3211 df_ru_bb_local_compute_process_def,
3212 df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
3213 df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
3214 df_ru_transfer_function, df_ru_free, df_ru_start_dump,
3215 df_ru_top_dump, df_ru_bottom_dump, df_problem problem_RU,
3216 df_ru_add_problem): Removed.
3217
3218 2007-07-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3219
3220 PR target/32847
3221 * pa.md (casesi32): Use match_scratch. Revise insn condition.
3222 (casesi32p, casesi64p): Likewise.
3223 (casesi): Adjust for above.
3224
3225 2007-07-31 Richard Sandiford <richard@codesourcery.com>
3226
3227 * mode-switching.c (create_pre_exit): Don't search past calls.
3228
3229 2007-07-31 Sandra Loosemore <sandra@codesourcery.com>
3230
3231 * config/mips/mips.h (ISA_HAS_SYNCI): Add !TARGET_MIPS16 test.
3232
3233 2007-07-31 Revital Eres <eres@il.ibm.com>
3234
3235 * ddg.c (add_deps_for_def): Rename to...
3236 (add_cross_iteration_register_deps): This. Change implementation
3237 to use only reaching def and def-use chains to construct the
3238 inter loop dependencies.
3239 (add_deps_for_use): Remove function.
3240 (build_inter_loop_deps): Call add_cross_iteration_register_deps
3241 function to build the inter loop dependencies.
3242 * modulo-sched.c (sms_schedule): Build only
3243 reaching def and def-use chains for the propose of the ddg
3244 construction.
3245
3246 2007-07-31 Julian Brown <julian@codesourcery.com>
3247
3248 * config/arm/neon.md (vec_set<mode>_internal, vec_setv2di_internal):
3249 New define_insns. Use correct RTL.
3250 (vec_set<mode>): Write as expander.
3251
3252 2007-07-31 Razya Ladelsky <razya@il.ibm.com>
3253
3254 * matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring
3255 to an unallocated space.
3256
3257 2007-07-30 Jan Sjodin <jan.sjodin@amd.com>
3258
3259 * tree-data-ref.c
3260 (split_constant_offset): Enable split_constant_offset to extract
3261 constants from other statements.
3262 * tree-vect-transform.c
3263 (vect_create_addr_base_for_vector_ref): Generate data_ref_base
3264 to a temp var. Force base_offset to be simple.
3265
3266 2007-07-30 Seongbae Park <seongbae.park@gmail.com>
3267
3268 * df-scan.c (df_scan_verify): Remove artificial limit on
3269 the number of blocks for verification.
3270 * df-problems.c (df_lr_bb_local_compute, df_simulate_find_defs,
3271 df_simulate_defs): Avoid unnecessary insn checking for defs.
3272
3273 2007-07-29 Mark Mitchell <mark@codesourcery.com>
3274
3275 * config/m68k/lb1sf68.asm (FUNC): New macro.
3276 (__mulsi3): Use it.
3277 (__udivsi3): Likewise.
3278 (__divsi3): Likewise.
3279 (__umodsi3): Likewise.
3280 (__modsi3): Likewise.
3281 (__subdf3): Likewise.
3282 (__adddf3): Likewise.
3283 (__muldf3): Likewise.
3284 (__divdf3): Likewise.
3285 (__negdf2): Likewise.
3286 (__cmpdf2): Likewise.
3287 (__subsf3): Likewise.
3288 (__addsf3): Likewise.
3289 (__mulsf3): Likewise.
3290 (__divsf3): Likewise.
3291 (__negsf2): Likewise.
3292 (__cmpsf2): Likewise.
3293 (__eqdf2): Likewise.
3294 (__nedf2): Likewise.
3295 (__gtdf2): Likewise.
3296 (__gedf2): Likewise.
3297 (__ltdf2): Likewise.
3298 (__ledf2): Likewise.
3299 (__eqsf2): Likewise.
3300 (__nesf2): Likewise.
3301 (__gtsf2): Likewise.
3302 (__gesf2): Likewise.
3303 (__ltsf2): Likewise.
3304 (__lesf2): Likewise.
3305
3306 2007-07-30 Ollie Wild <aaw@google.com>
3307
3308 * c-ppoutput.c (print_lines_directives_only): New function.
3309 (scan_translation_unit_directives_only): New function.
3310 (preprocess_file): Add call to scan_translation_unit_directives_only.
3311 * c-opts.c (c_common_handle_option): Add OPT_fdirectives_only.
3312 (sanitize_cpp_opts): Add default flag_dump_macros setting for
3313 -fdirectives-only. Add errors for -fdirectives-only conflict with
3314 -Wunused-macros and -traditional.
3315 (finish_options): Add builtin macro initialization for
3316 -fdirectives-only + -fpreprocessed.
3317 * c.opt (fdirectives-only): New.
3318 * doc/cppopts.texi (fdirectives-only): New.
3319
3320 2007-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3321
3322 * alias.c (record_set, memory_modified_1): Constify.
3323 * bt-load.c (note_btr_set): Likewise.
3324 * caller-save.c (mark_set_regs, add_stored_regs): Likewise.
3325 * combine.c (set_nonzero_bits_and_sign_copies,
3326 expand_field_assignment, record_dead_and_set_regs_1,
3327 use_crosses_set_p, reg_dead_at_p_1, can_combine_p,
3328 likely_spilled_retval_1): Likewise.
3329 * config/frv/frv.c (frv_registers_update_1, frv_io_check_address,
3330 frv_io_handle_set): Likewise.
3331 * config/mips/mips.c (mips_sim_record_set,
3332 vr4130_true_reg_dependence_p_1): Likewise.
3333 * config/mt/mt.c (insn_dependent_p_1): Likewise.
3334 * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
3335 * config/sh/sh.c (flow_dependent_p_1): Likewise.
3336 * cselib.c (cselib_invalidate_rtx_note_stores): Likewise.
3337 * dce.c (mark_nonreg_stores_1, mark_nonreg_stores_2): Likewise.
3338 * ddg.c (mark_mem_store): Likewise.
3339 * df-problems.c (df_urec_mark_reg_change): Likewise.
3340 * function.c (update_epilogue_consts): Likewise.
3341 * gcse.c (record_set_info, record_last_set_info,
3342 mems_conflict_for_gcse_p, canon_list_insert, reg_set_info,
3343 reg_clear_last_set): Likewise.
3344 * global.c (mark_reg_store, mark_reg_clobber, reg_becomes_live):
3345 Likewise.
3346 * jump.c (reversed_comparison_code_parts): Likewise.
3347 * local-alloc.c (validate_equiv_mem_from_store, no_equiv,
3348 reg_is_set): Likewise.
3349 * loop-iv.c (mark_altered): Likewise.
3350 * mode-switching.c (reg_becomes_live): Likewise.
3351 * optabs.c (no_conflict_move_test): Likewise.
3352 * postreload-gcse.c (record_last_set_info, find_mem_conflicts):
3353 Likewise.
3354 * postreload.c (reload_combine_note_store, move2add_note_store):
3355 Likewise.
3356 * regmove.c (flags_set_1): Likewise.
3357 * regrename.c (note_sets, kill_clobbered_value, kill_set_value):
3358 Likewise.
3359 * reload1.c (mark_not_eliminable, forget_old_reloads_1):
3360 Likewise.
3361 * resource.c (update_live_status): Likewise.
3362 * rtl.h (set_of, note_stores): Likewise.
3363 * rtlanal.c (set_of_1, parms_set, struct set_of_data, set_of,
3364 note_stores, parms_set): Likewise.
3365 * sched-rgn.c (sets_likely_spilled_1): Likewise.
3366 * stack-ptr-mod.c (notice_stack_pointer_modification_1):
3367 Likewise.
3368 * var-tracking.c (count_stores, add_stores): Likewise.
3369
3370 2007-07-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3371
3372 * alias.c (mems_in_disjoint_alias_sets_p,
3373 fixed_scalar_and_varying_struct_p, aliases_everything_p,
3374 nonoverlapping_component_refs_p, nonoverlapping_memrefs_p,
3375 write_dependence_p, mems_in_disjoint_alias_sets_p,
3376 read_dependence, true_dependence, canon_true_dependence,
3377 anti_dependence, output_dependence): Constify.
3378 * combine.c (extended_count): Likewise.
3379 * cse.c (cse_rtx_varies_p, hash_rtx, exp_equiv_p): Likewise.
3380 * cselib.c (get_value_hash, references_value_p,
3381 cselib_reg_set_mode, cselib_rtx_varies_p): Likewise.
3382 * cselib.h (cselib_reg_set_mode, references_value_p): Likewise.
3383 * emit-rtl.c (mem_expr_equal_p, active_insn_p): Likewise.
3384 * function.c (contains, prologue_epilogue_contains,
3385 sibcall_epilogue_contains): Likewise.
3386 * jump.c (simplejump_p, condjump_p, condjump_in_parallel_p,
3387 pc_set, any_uncondjump_p, any_condjump_p, onlyjump_p,
3388 only_sets_cc0_p, sets_cc0_p, rtx_renumbered_equal_p, true_regnum,
3389 reg_or_subregno): Likewise.
3390 * recog.c (asm_noperands): Likewise.
3391 * reload1.c (function_invariant_p): Likewise.
3392 * rtl.h (mem_expr_equal_p, active_insn_p, rtx_varies_p,
3393 rtx_addr_varies_p, asm_noperands, exp_equiv_p, hash_rtx,
3394 condjump_p, any_condjump_p, any_uncondjump_p, pc_set,
3395 simplejump_p, onlyjump_p, only_sets_cc0_p, sets_cc0_p,
3396 true_regnum, reg_or_subregno, condjump_in_parallel_p,
3397 extended_count, prologue_epilogue_contains,
3398 sibcall_epilogue_contains, function_invariant_p, true_dependence,
3399 canon_true_dependence, read_dependence, anti_dependence,
3400 output_dependence): Likewise.
3401 * rtlanal.c (rtx_varies_p, rtx_addr_varies_p): Likewise.
3402
3403 2007-07-30 Julian Brown <julian@codesourcery.com>
3404
3405 * config/arm/neon.md (V_ext): New mode attribute.
3406 (neon_vget_lane<mode>): Replace with define_expand.
3407 (neon_vget_lane<mode>_sext_internal)
3408 (neon_vget_lane<mode>_zext_internal): New define_insns for double
3409 and quad precision vectors.
3410 (neon_vget_lanedi): Add bounds check. Remove dead comment.
3411 * config/arm/neon.ml (get_lane): Make 32-bit get-lane intrinsics
3412 have typeless 32-bit result.
3413
3414 2007-07-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
3415
3416 PR tree-opt/32527
3417 * tree-affine.h (aff_tree): The type of rest is sizetype for types
3418 of pointers.
3419 * tree-affine.c (aff_combination_scale): If type is a pointer type,
3420 use sizetype for rest.
3421 (aff_combination_add_elt): Likewise. Don't specialize pointer types.
3422 (aff_combination_convert): Don't convert rest for pointer types.
3423
3424 2007-07-28 Daniel Berlin <dberlin@dberlin.org>
3425
3426 * Makefile.in (tree-ssa-alias.o): Add alloc-pool.h
3427
3428 * tree-ssa-alias.c: Add alloc-pool.h.
3429 (init_alias_info): Free alias_bitmap_obstack.
3430 (delete_alias_info): Call delete_mem_ref_stats.
3431 (get_mem_sym_stats_for): Use alloc_pool.
3432 (init_mem_ref_stats): Do not delete mem_ref_stats here.
3433 (delete_mem_sym_stats): Removed.
3434
3435 2007-07-29 Sebastian Pop <sebpop@gmail.com>
3436
3437 * tree-data-ref.c (add_multivariate_self_dist): Parametric access
3438 functions cannot be represented as classical distance vectors.
3439
3440 2007-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3441
3442 * attribs.c (hash_attr, eq_attr, init_attributes): Constify.
3443 * builtins.c (validate_arg, builtin_mathfn_code,
3444 validate_arglist): Likewise.
3445 * calls.c (call_expr_flags): Likewise.
3446 * combine.c (reg_nonzero_bits_for_combine,
3447 reg_num_sign_bit_copies_for_combine, get_last_value,
3448 reg_truncated_to_mode): Likewise.
3449 * emit-rtl.c (subreg_lowpart_p): Likewise.
3450 * expr.c (highest_pow2_factor_for_target,
3451 categorize_ctor_elements_1, categorize_ctor_elements,
3452 count_type_elements, contains_packed_reference,
3453 highest_pow2_factor, highest_pow2_factor_for_target): Likewise.
3454 * fold-const.c (may_negate_without_overflow_p, int_const_binop,
3455 fold_convertible_p, operand_equal_p, tree_swap_operands_p,
3456 native_encode_int, native_encode_real, native_encode_complex,
3457 native_encode_vector, native_encode_expr, native_interpret_int,
3458 native_interpret_real, native_interpret_complex,
3459 native_interpret_vector, native_interpret_expr): Likewise.
3460 * function.c (use_register_for_decl): Likewise.
3461 * gimplify.c (get_name): Likewise.
3462 * langhooks-def.h (lhd_return_null_const_tree): New.
3463 (LANG_HOOKS_GET_CALLEE_FNDECL): Use it.
3464 * langhooks.c (lhd_return_null_const_tree): New.
3465 * langhooks.h (lang_get_callee_fndecl): Constify.
3466 * output.h (constructor_static_from_elts_p): Likewise.
3467 * rtl-factoring.c (gen_symbol_ref_rtx_for_label): Likewise.
3468 * rtl.h (nonzero_bits, num_sign_bit_copies, truncated_to_mode,
3469 subreg_lowpart_p, noop_move_p, struct rtl_hooks): Likewise.
3470 * rtlanal.c (cached_nonzero_bits, nonzero_bits1,
3471 cached_num_sign_bit_copies, num_sign_bit_copies1, noop_move_p,
3472 nonzero_bits, num_sign_bit_copies, truncated_to_mode): Likewise.
3473 * rtlhooks-def.h (reg_nonzero_bits_general,
3474 reg_num_sign_bit_copies_general, reg_truncated_to_mode_general):
3475 Likewise.
3476 * rtlhooks.c (reg_num_sign_bit_copies_general,
3477 reg_nonzero_bits_general, reg_truncated_to_mode_general):
3478 Likewise.
3479 * stmt.c (warn_if_unused_value, is_body_block): Likewise.
3480 * stor-layout.c (mode_for_size_tree): Likewise.
3481 * tree-ssa-loop-im.c (memref_eq): Likewise.
3482 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): Likewise.
3483 * tree.c (contains_placeholder_p, type_list_equal,
3484 simple_cst_equal, get_callee_fndecl, operand_equal_for_phi_arg_p):
3485 Likewise.
3486 * tree.h (tree_int_cst_sign_bit, may_negate_without_overflow_p,
3487 mode_for_size_tree, categorize_ctor_elements, count_type_elements,
3488 contains_placeholder_p, contains_packed_reference,
3489 get_callee_fndecl, operand_equal_for_phi_arg_p,
3490 warn_if_unused_value, is_body_block, native_encode_expr,
3491 native_interpret_expr, fold_convertible_p, operand_equal_p,
3492 int_const_binop, tree_swap_operands_p, builtin_mathfn_code,
3493 validate_arglist, simple_cst_equal, type_list_equal,
3494 use_register_for_decl, call_expr_flags, get_name,
3495 highest_pow2_factor): Likewise.
3496 (const_call_expr_arg_iterator_d,
3497 init_const_call_expr_arg_iterator, next_const_call_expr_arg,
3498 first_const_call_expr_arg, more_const_call_expr_args_p,
3499 FOR_EACH_CONST_CALL_EXPR_ARG): New.
3500 * varasm.c (constructor_static_from_elts_p): Constify.
3501
3502 2007-07-28 Kazu Hirata <kazu@codesourcery.com>
3503
3504 * cfglayout.c, config/arm/arm.c, config/arm/cortex-a8.md,
3505 config/arm/neon-schedgen.ml, config/arm/neon.ml,
3506 config/arm/vec-common.md, config/ia64/div.md, cselib.c,
3507 df-core.c, df.h, dominance.c, optabs.c, opts.c, reg-stack.c,
3508 regstat.c, target.h, tree-ssa-live.c, tree-ssa-pre.c,
3509 tree-vect-transform.c, tree.def: Fix comment typos. Follow
3510 spelling conventions.
3511 * doc/invoke.texi: Follow spelling conventions.
3512
3513 2007-07-29 Vladimir Yanovsky <yanov@il.ibm.com>
3514 Revital Eres <eres@il.ibm.com>
3515
3516 * modulo-sched.c (sms_schedule): Avoid loops which includes
3517 auto-increment instructions.
3518
3519 2007-07-28 Richard Guenther <rguenther@suse.de>
3520
3521 PR middle-end/32920
3522 * fold-const.c (fold_cond_expr_with_comparison): Convert
3523 operand zero of MIN/MAX_EXPR to correct type.
3524
3525 2007-07-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3526
3527 * calls.c (special_function_p, setjmp_call_p, alloca_call_p,
3528 flags_from_decl_or_type): Constify.
3529 * gcc.c (do_spec_1): Likewise.
3530 * print-tree.c (dump_addr, print_node_brief): Likewise.
3531 * tree-cfg.c (stmt_starts_bb_p, is_ctrl_stmt, computed_goto_p,
3532 simple_goto_p, tree_can_make_abnormal_goto, stmt_starts_bb_p,
3533 tree_purge_all_dead_eh_edges): Likewise.
3534 * tree-flow.h (is_ctrl_stmt, computed_goto_p, simple_goto_p,
3535 tree_can_make_abnormal_goto, tree_purge_all_dead_eh_edges):
3536 Likewise.
3537 * tree.c (expr_location, expr_has_location, expr_locus,
3538 expr_filename, expr_lineno, get_inner_array_type,
3539 fields_compatible_p): Likewise.
3540 * tree.h (get_inner_array_type, fields_compatible_p,
3541 expr_location, expr_has_location, expr_locus, expr_filename,
3542 expr_lineno, dump_addr, print_node_brief, flags_from_decl_or_type,
3543 setjmp_call_p, alloca_call_p): Likewise.
3544
3545 2007-07-28 Daniel Berlin <dberlin@dberlin.org>
3546
3547 * timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE,
3548 TV_FLOW_INSENSITIVE.
3549
3550 * tree-ssa-alias.c (compute_call_clobbered): Push/pop
3551 TV_CALL_CLOBBER.
3552 (compute_flow_sensitive_aliasing): Ditto for TV_FLOW_SENSITIVE.
3553 (compute_flow_insensitive_aliasing): Ditto for
3554 TV_FLOW_INSENSITIVE.
3555
3556 2007-07-27 Jan Hubicka <jh@suse.cz>
3557
3558 * config/i386/i386.c (register_move_cost): Remove accidentally
3559 comitted #if 0 block.
3560
3561 * attribs.c: Include hashtab.h
3562 (attribute_hash): New.
3563 (substring): New structure.
3564 (extract_attribute_substring, substring_hash, hash_attr, eq_attr):
3565 New function.
3566 (init_attributes): Initialize attribute hash.
3567 (decl_attributes): Use attribute hash.
3568 * Makefile.in (attribs.c): Depend on hashtab.h.
3569
3570 2007-07-27 Steve Ellcey <sje@cup.hp.com>
3571
3572 * config/ia64/vect.md (vec_initv2si): Remove bad BIG_ENDIAN test.
3573
3574 2007-07-27 Richard Sandiford <richard@codesourcery.com>
3575
3576 * doc/invoke.texi (mdsp, mdspr2): Document the __mips_dsp,
3577 __mips_dspr2 and __mips_dsp_rev macros.
3578 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dsp_rev.
3579
3580 2007-07-27 Douglas Gregor <doug.gregor@gmail.com>
3581
3582 * c-common.h (enum rid): Add RID_DECLTYPE, update RID_LAST_CXX0X.
3583
3584 2007-07-26 Kenneth Zadeck <zadeck@naturalbridge.com>
3585
3586 PR middle-end/32749
3587
3588 * df-problems.c (df_create_unused_note): Removed do_not_gen parm
3589 and the updating of the live and do_not_gen sets.
3590 (df_note_bb_compute): Added updating of live and do_not_gen sets
3591 for regular defs so that the case of clobber inside conditional
3592 call is processed correctly.
3593
3594 2007-07-27 Zdenek Dvorak <dvorakz@suse.cz>
3595
3596 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Generate the
3597 operands with compatible type.
3598
3599 2007-07-27 Richard Sandiford <richard@codesourcery.com>
3600
3601 * expr.h (store_bit_field): Don't return a value.
3602 * expmed.c (check_predicate_volatile_ok): New function.
3603 (store_bit_field_1): New function, extracted from store_bit_field.
3604 Take a fallback_p argument and return true if the operation succeeded.
3605 Only use store_fixed_bit_field if fallback_p. Don't recompute
3606 mode_for_extraction; use op_mode instead. Try forcing memories
3607 into registers if the insv expander fails.
3608 (store_bit_field): Use store_bit_field_1 with fallback_p true.
3609 Don't return a value.
3610 (convert_extracted_bit_field): New function, extracted from
3611 store_bit_field.
3612 (extract_bit_field_1): Likewise. Take a fallback_p argument
3613 and return NULL if the operation succeeded. Only use
3614 extract_fixed_bit_field if fallback_p. Only calculate one
3615 extraction mode. Combine code for extv and extzv. Try forcing
3616 memories into registers if the ext(z)v expander fails.
3617 (extract_bit_field): Use extract_bit_field_1 with fallback_p true.
3618
3619 2007-07-27 Richard Sandiford <rsandifo@nildram.co.uk>
3620
3621 * df.h (df_mw_hardreg): Turn df_ref_type and df_ref_flags
3622 into bitfields.
3623 (df_ref): Likewise. Put regno with other integer fields.
3624
3625 2007-07-27 Richard Sandiford <rsandifo@nildram.co.uk>
3626
3627 * df.h (df_mw_hardreg): Remove "loc" field.
3628 * df-scan.c (df_ref_record): Don't set it. Remove redundant
3629 local variable.
3630 * df-problems.c (df_whole_mw_reg_unused_p): New function,
3631 split out from df_set_unused_notes_for_mw. Return false for
3632 partial references. Assert that mw_reg is a REG when returning true.
3633 (df_set_unused_notes_for_mw): Use it. Use mw_reg instead of *loc.
3634 (df_whole_mw_reg_dead_p): New function, split out from
3635 df_set_dead_notes_for_mw. Return false for partial references.
3636 Assert that mw_reg is a REG when returning true.
3637 (df_set_dead_notes_for_mw): Use it. Use mw_reg instead of *loc.
3638 Remove redundant bitmap check.
3639
3640 2007-07-26 H.J. Lu <hongjiu.lu@intel.com>
3641
3642 * config/ia64/t-ia64 ($(T)crtbegin.o): Removed.
3643 ($(T)crtend.o): Likwise.
3644 ($(T)crtbeginS.o): Likwise.
3645 ($(T)crtendS.o): Likwise.
3646 ($(T)crtfastmath.o): Likwise.
3647
3648 2007-07-26 Zdenek Dvorak <dvorakz@suse.cz>
3649
3650 * dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
3651 * function.h (dom_computed, n_bbs_in_dom_tree): New macros.
3652 * basic-block.h (struct control_flow_graph): Added x_dom_computed
3653 and x_n_bbs_in_dom_tree fields.
3654
3655 2007-07-26 Steve Ellcey <sje@cup.hp.com>
3656
3657 PR tree-optimization/32087
3658 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
3659 Do not call scale_bbs_frequencies_int with prob of zero.
3660
3661 2007-07-26 Julian Brown <julian@codesourcery.com>
3662
3663 * config/arm/arm-protos.h (neon_lane_bounds, neon_const_bounds)
3664 (neon_element_bits): Add prototypes.
3665 * config/arm/arm.c (bounds_check, neon_lane_bounds)
3666 (neon_const_bounds, neon_element_bits): New functions.
3667 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_lanedi)
3668 (neon_vget_lanev2di, neon_vset_lane<mode>, neon_vset_lanedi)
3669 (neon_vset_lanev2di, neon_vdup_lane<mode>, neon_vdup_lanedi)
3670 (neon_vdup_lanev2di, neon_vcvt_n<mode>, neon_vmul_lane<mode>)
3671 (neon_vmull_lane<mode>, neon_vqdmull_lane<mode>)
3672 (neon_vqdmulh_lane<mode>, neon_vmla_lane<mode>)
3673 (neon_vmlal_lane<mode>, neon_vqdmlal_lane<mode>)
3674 (neon_vmls_lane<mode>, neon_vmlsl_lane<mode>)
3675 (neon_vqdmlsl_lane<mode>, neon_vext<mode>, neon_vshr_n<mode>)
3676 (neon_vshrn_n<mode>, neon_vqshrn_n<mode>, neon_vqshrun_n<mode>)
3677 (neon_vshl_n<mode>, neon_vshl_n<mode>, neon_vqshl_n<mode>)
3678 (neon_vqshlu_n<mode>, neon_vshll_n<mode>, neon_vsra_n<mode>)
3679 (neon_vsri_n<mode>, neon_vsli_n<mode>): Add bounds checks.
3680
3681 2007-07-26 Nathan Froyd <froydnj@codesourcery.com>
3682
3683 * config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo.
3684 (HAVE_AS_GNU_ATTRIBUTE): Undefine.
3685
3686 2007-07-26 Mark Shinwell <shinwell@codesourcery.com>
3687 Julian Brown <julian@codesourcery.com>
3688
3689 * config/arm/arm.c (arm_mac_accumulator_is_mul_result): New.
3690 * config/arm/arm-protos.h (arm_mac_accumulator_is_mul_result): New.
3691 * config/arm/cortex-a8.md: New.
3692 * config/arm/cortex-a8-neon.md: New.
3693 * config/arm/neon-schedgen.ml: New.
3694 * config/arm/neon.md (vqh_mnem): New.
3695 (neon_type): New.
3696 (Is_float_mode): New.
3697 (Scalar_mul_8_16): New.
3698 (Is_d_reg): New.
3699 (V_mode_nunits): New.
3700 (All instruction patterns): Annotate with neon_type attribute
3701 values.
3702 * config/arm/arm.md: Include cortex-a8.md.
3703 (insn): Add smmla, umaal, smlald, smlsld, clz, mrs, msr and xtab
3704 values.
3705 Annotate instruction patterns accordingly.
3706 (generic_sched): Do not use generic scheduling for Cortex-A8.
3707 (generic_vfp): Do not use generic VFP scheduling for Cortex-A8.
3708
3709 2007-07-26 Daniel Jacobowitz <dan@codesourcery.com>
3710
3711 * fold-const.c (fold_read_from_constant_string): Use
3712 build_int_cst_type.
3713 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
3714
3715 2007-07-26 Nick Clifton <nickc@redhat.com>
3716
3717 * tree-ssa-operands.h: Change copyright header to refer to version
3718 3 of the GNU General Public License and to point readers at the
3719 COPYING3 file and the FSF's license web page.
3720 * tree-vrp.c, regrename.c, attribs.c, loop-unswitch.c,
3721 sched-ebb.c, fwprop.c, tree-loop-linear.c, dwarf2asm.c,
3722 tree-into-ssa.c, dwarf2asm.h, tree-ssa-loop-im.c, sbitmap.c,
3723 targhooks.c, tree-dump.c, tree-complex.c, sbitmap.h, targhooks.h,
3724 tree-dump.h, regstat.c, see.c, machmode.h, hooks.c, cgraphbuild.c,
3725 hooks.h, genrecog.c, tree-ssa-threadupdate.c, gen-protos.c,
3726 flags.h, rtlhooks.c, gencheck.c, tree-ssa-loop-niter.c,
3727 opts-common.c, dbgcnt.def, tree-pretty-print.c, tracer.c,
3728 gengtype.c, mkconfig.sh, gengtype.h, tree-ssa-loop-unswitch.c,
3729 cgraph.c, c-lex.c, cgraph.h, libfuncs.h, cfgloopmanip.c,
3730 rtl-error.c, optabs.c, postreload-gcse.c, tree-ssa-loop-manip.c,
3731 optabs.h, genmddeps.c, defaults.h, postreload.c, value-prof.c,
3732 tree-ssa-loop-ch.c, tree-tailcall.c, gengenrtl.c, value-prof.h,
3733 genopinit.c, tree.c, tree.h, reload.c, tree-pass.h, ipa-cp.c,
3734 reload.h, bitmap.c, bitmap.h, tree-scalar-evolution.c,
3735 c-config-lang.in, tree-scalar-evolution.h, target.h, cppspec.c,
3736 rtlanal.c, ddg.c, lambda-mat.c, mips-tdump.c, ddg.h,
3737 tree-phinodes.c, mips-tfile.c, pointer-set.c, pointer-set.h,
3738 diagnostic.c, final.c, diagnostic.h, builtins.c, genoutput.c,
3739 gcc.c, lists.c, tree-ssa-alias-warnings.c, gcc.h, cfghooks.c,
3740 input.h, gensupport.c, fold-const.c, cfghooks.h, insn-notes.def,
3741 gensupport.h, builtin-attrs.def, sync-builtins.def, params.c,
3742 cfgloopanal.c, params.h, graphds.c, omp-low.c, tree-ssa-dse.c,
3743 graphds.h, gcov.c, cfg.c, genextract.c, ipa-reference.c,
3744 genautomata.c, tree-ssa-uncprop.c, auto-inc-dec.c, toplev.c,
3745 tree-gimple.c, ipa-reference.h, vmsdbgout.c, errors.c, toplev.h,
3746 reorg.c, tree-gimple.h, tree-chrec.c, pretty-print.c, errors.h,
3747 real.c, tree-chrec.h, pretty-print.h, debug.c, real.h, genemit.c,
3748 omega.c, c-cppbuiltin.c, genmultilib, debug.h, omega.h,
3749 tree-ssa-sccvn.c, genconfig.c, tree-ssa-sccvn.h, cgraphunit.c,
3750 regs.h, df-scan.c, vec.c, hosthooks-def.h, vec.h,
3751 tree-ssa-copyrename.c, scan.c, builtin-types.def, tree-ssa-ccp.c,
3752 scan.h, mode-classes.def, haifa-sched.c, dominance.c, dojump.c,
3753 double-int.c, gcov-io.c, dbxout.c, builtins.def, double-int.h,
3754 dbxout.h, tree-ssa-loop-ivopts.c, df-core.c, mode-switching.c,
3755 gengtype-lex.l, tree-nomudflap.c, modulo-sched.c, c-objc-common.c,
3756 hosthooks.h, c-objc-common.h, caller-save.c, graph.c,
3757 ipa-pure-const.c, graph.h, c-format.c, cse.c, fix-header.c,
3758 c-format.h, web.c, tree-stdarg.c, genpeep.c, tree-stdarg.h,
3759 tree-ssa-math-opts.c, xcoffout.c, tree-ssa-dom.c, tree-nrv.c,
3760 xcoffout.h, tree-ssa-propagate.c, ipa-utils.c,
3761 tree-ssa-propagate.h, tree-ssa-alias.c, loop-init.c, ipa-utils.h,
3762 gimple-low.c, rtl.def, c-tree.h, tree-ssa-sink.c, ipa-inline.c,
3763 mkmap-symver.awk, machmode.def, c-pch.c, cfganal.c, global.c,
3764 alloc-pool.c, c-semantics.c, alloc-pool.h, jump.c, ifcvt.c,
3765 dwarf2out.c, expr.c, cfgbuild.c, tree-browser.c, dwarf2out.h,
3766 expr.h, longlong.h, opts.c, gcov-iov.c, opts.h, dwarf2.h,
3767 genattrtab.c, genconditions.c, genattr.c, optc-gen.awk,
3768 timevar.def, tree-ssa-loop-ivcanon.c, hard-reg-set.h, predict.c,
3769 tree-ssa-loop.c, host-default.c, predict.h, recog.c, dbgcnt.c,
3770 recog.h, dbgcnt.h, c-aux-info.c, tree-ssa-address.c, timevar.c,
3771 dse.c, lcm.c, tree-ssa-ifcombine.c, timevar.h, dse.h,
3772 matrix-reorg.c, tree-vn.c, treestruct.def, fp-test.c, c-decl.c,
3773 tree-eh.c, c-errors.c, c-pretty-print.c, regmove.c,
3774 lambda-trans.c, c-pretty-print.h, et-forest.c, et-forest.h,
3775 ebitmap.c, configure.ac, local-alloc.c, function.c, langhooks.c,
3776 ebitmap.h, cppdefault.c, tree-vectorizer.c, function.h,
3777 langhooks.h, print-rtl.c, cppdefault.h, df.h, tree-vectorizer.h,
3778 sdbout.c, stor-layout.c, sdbout.h, rtlhooks-def.h, read-rtl.c,
3779 gcse.c, ipa-type-escape.c, vmsdbg.h, alias.c, gengtype-parse.c,
3780 ipa-type-escape.h, domwalk.c, alias.h, tree-if-conv.c, profile.c,
3781 init-regs.c, domwalk.h, ipa.c, gccbug.in, tree-data-ref.c,
3782 loop-unroll.c, tree-data-ref.h, tree-flow-inline.h, tree-affine.c,
3783 mkmap-flat.awk, tree-affine.h, tree-vect-analyze.c, c.opt, ggc.h,
3784 opt-gather.awk, c-typeck.c, gimplify.c, coretypes.h, exec-tool.in,
3785 insn-addr.h, tree-ssa-phiopt.c, c-pragma.c, c-pragma.h, calls.c,
3786 tree-ssa-coalesce.c, genmodes.c, loop-doloop.c, predict.def,
3787 dwarf.h, tree.def, rtl-factoring.c, lower-subreg.c, expmed.c,
3788 bt-load.c, ggc-common.c, genflags.c, tree-dfa.c, except.c,
3789 coverage.c, except.h, emit-rtl.c, cfgexpand.c, coverage.h,
3790 stringpool.c, cselib.c, emit-rtl.h, tree-cfgcleanup.c, c-opts.c,
3791 cselib.h, cfgcleanup.c, simplify-rtx.c, tree-ssa-pre.c, explow.c,
3792 tree-ssa-live.c, tree-sra.c, tree-ssa-live.h, tree-predcom.c,
3793 loop-invariant.c, genpreds.c, protoize.c, opth-gen.awk, c-dump.c,
3794 lambda.h, loop-iv.c, tree-mudflap.c, ipa-prop.c, print-tree.c,
3795 tree-mudflap.h, tree-ssa-copy.c, ipa-prop.h, cfglayout.c,
3796 tree-ssa-forwprop.c, c-convert.c, cfglayout.h, common.opt,
3797 ggc-zone.c, ggc-page.c, c-omp.c, tree-ssa-dce.c, gencodes.c,
3798 varasm.c, tree-vect-patterns.c, libada-mk.in, tree-ssa-ter.c,
3799 sched-deps.c, tree-nested.c, c-ppoutput.c, tree-ssa.c,
3800 target-def.h, tree-ssa-loop-prefetch.c, lambda-code.c,
3801 omp-builtins.def, rtl.c, regclass.c, stab.def, intl.c, rtl.h,
3802 intl.h, tree-inline.c, conditions.h, tree-inline.h, integrate.c,
3803 sched-int.h, tree-iterator.c, integrate.h, tree-iterator.h,
3804 genchecksum.c, tree-optimize.c, output.h, tree-vect-transform.c,
3805 tree-object-size.c, combine.c, tree-outof-ssa.c, addresses.h,
3806 bb-reorder.c, stack-ptr-mod.c, resource.c, var-tracking.c,
3807 cfgloop.c, system.h, resource.h, ggc-none.c, tree-profile.c,
3808 cfgloop.h, c-gimplify.c, c-common.c, opt-functions.awk,
3809 tree-vect-generic.c, tree-flow.h, df-problems.c, scan-decls.c,
3810 c-common.h, config.gcc, reg-stack.c, tlink.c, main.c, stub-objc.c,
3811 fixproto, config.host, Makefile.in, gccspec.c, sched-rgn.c,
3812 vecprim.h, basic-block.h, tree-ssa-structalias.c,
3813 tree-ssa-structalias.h, c-common.def, sched-vis.c, tree-cfg.c,
3814 passes.c, genconstants.c, c-incpath.c, c-incpath.h,
3815 struct-equiv.c, c-parser.c, tree-ssa-reassoc.c, varray.c, sreal.c,
3816 varray.h, dfp.c, sreal.h, combine-stack-adj.c, dfp.h,
3817 reg-notes.def, cfgrtl.c, config.build, varpool.c, gengtype-yacc.y,
3818 stmt.c, dce.c, tree-browser.def, prefix.c, statistics.h,
3819 params.def, dce.h, c-lang.c, gcov-dump.c, prefix.h,
3820 tree-ssanames.c, collect2.c, collect2.h, tree-ssa-threadedge.c,
3821 convert.c, convert.h, langhooks-def.h, reload1.c,
3822 tree-ssa-operands.c: Likewise.
3823
3824 2007-07-26 Jan Hubicka <jh@suse.cz>
3825
3826 * tree-ssa-live.c: Include debug.h and flags.h.
3827 (mark_scope_block_unused): New function.
3828 (remove_unused_scope_block_p): New function.
3829 (remove_unused_locals): Remove unused blocks too.
3830
3831 2007-07-25 Ian Lance Taylor <iant@google.com>
3832
3833 * combine.c (combine_max_regno): Remove. Remove all uses.
3834 (struct reg_stat_struct): Rename from struct reg_stat.
3835 (reg_stat_type): Define, and declare VECs.
3836 (reg_stat): Change from pointer to VEC. Change all uses.
3837 (combine_split_insns): New static function.
3838 (try_combine, find_split_point): Call it instead of split_insns.
3839
3840 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
3841
3842 * cfghooks.c (split_block): Fix the information about loop latch.
3843
3844 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
3845
3846 * cfgloopmanip.c (fix_loop_structure): Call force_single_succ_latches.
3847
3848 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
3849
3850 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
3851 Scan the new edge for loop exit info.
3852
3853 2007-07-25 Andreas Tobler <a.tobler@schweiz.org>
3854
3855 * config/darwin.c: Include debug.h.
3856
3857 2007-07-25 Steve Ellcey <sje@cup.hp.com>
3858
3859 PR target/32218
3860 * tree-vect-patterns.c (vect_pattern_recog_1): Check for valid type.
3861
3862 2007-07-25 Steve Ellcey <sje@cup.hp.com>
3863
3864 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle RFmode.
3865 (HARD_REGNO_MODE_OK): Ditto.
3866 (MODES_TIEABLE_P): Ditto.
3867 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
3868 (CLASS_MAX_NREGS): Ditto.
3869 * config/ia64/ia64.c (ia64_print_operand_address): Add R format.
3870 * config/ia64/ia64.md (divsf3_internal_thr): Removed.
3871 (divdf3_internal_thr): Removed.
3872 * config/ia64/div.md: New file.
3873 * config/ia64/constraints.md: Add H constraint.
3874
3875 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3876
3877 * sbitmap.c (sbitmap_verify_popcount, sbitmap_alloc_with_popcount,
3878 sbitmap_copy, sbitmap_copy_n, sbitmap_equal, sbitmap_empty_p,
3879 sbitmap_union_of_diff_cg, sbitmap_union_of_diff, sbitmap_not,
3880 sbitmap_difference, sbitmap_any_common_bits, sbitmap_a_and_b_cg,
3881 sbitmap_a_and_b, sbitmap_a_xor_b_cg, sbitmap_a_xor_b,
3882 sbitmap_a_or_b_cg, sbitmap_a_or_b, sbitmap_a_subset_b_p,
3883 sbitmap_a_or_b_and_c_cg, sbitmap_a_or_b_and_c,
3884 sbitmap_a_and_b_or_c_cg, sbitmap_a_and_b_or_c,
3885 sbitmap_first_set_bit, sbitmap_last_set_bit, dump_sbitmap,
3886 dump_sbitmap_file, debug_sbitmap, popcount_table,
3887 sbitmap_popcount): Constify.
3888 * sbitmap.h (const_sbitmap, const_sbitmap_ptr): New.
3889 (sbitmap_iterator, sbitmap_iter_init, dump_sbitmap,
3890 dump_sbitmap_file, sbitmap_copy, sbitmap_copy_n, sbitmap_equal,
3891 sbitmap_empty_p, sbitmap_union_of_diff, sbitmap_union_of_diff_cg,
3892 sbitmap_difference, sbitmap_not, sbitmap_a_or_b_and_c,
3893 sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c,
3894 sbitmap_a_and_b_or_c_cg, sbitmap_any_common_bits, sbitmap_a_and_b,
3895 sbitmap_a_and_b_cg, sbitmap_a_or_b, sbitmap_a_or_b_cg,
3896 sbitmap_a_xor_b, sbitmap_a_xor_b_cg, sbitmap_a_subset_b_p,
3897 sbitmap_first_set_bit, sbitmap_last_set_bit, debug_sbitmap,
3898 sbitmap_popcount, sbitmap_verify_popcount): Constify.
3899
3900 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3901
3902 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_element_zerop,
3903 bitmap_copy, bitmap_clear_bit, popcount_table, bitmap_count_bits,
3904 bitmap_first_set_bit, bitmap_and, bitmap_and_into,
3905 bitmap_elt_copy, bitmap_and_compl, bitmap_and_compl_into,
3906 bitmap_compl_and_into, bitmap_elt_ior, bitmap_ior,
3907 bitmap_ior_into, bitmap_xor, bitmap_xor_into, bitmap_equal_p,
3908 bitmap_intersect_p, bitmap_intersect_compl_p,
3909 bitmap_ior_and_compl, bitmap_ior_and_compl_into,
3910 debug_bitmap_file, debug_bitmap, bitmap_print, bitmap_hash):
3911 Constify.
3912 * bitmap.h (bitmap_copy, bitmap_equal_p, bitmap_intersect_p,
3913 bitmap_intersect_compl_p, bitmap_count_bits, bitmap_and,
3914 bitmap_and_into, bitmap_and_compl, bitmap_and_compl_into,
3915 bitmap_compl_and_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
3916 bitmap_xor_into, bitmap_ior_and_compl, bitmap_ior_and_compl_into,
3917 debug_bitmap, debug_bitmap_file, bitmap_print,
3918 bitmap_first_set_bit, bitmap_hash, bmp_iter_set_init,
3919 bmp_iter_and_init, bmp_iter_and_compl_init): Likewise.
3920
3921 2007-07-25 Daniel Berlin <dberlin@dberlin.org>
3922
3923 * config/darwin.c (darwin_override_options): Additional fix for
3924 debug info formats that don't support var tracking.
3925
3926 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3927
3928 * cselib.c (entry_and_rtx_equal_p): Constify.
3929 * gengtype.c (output_mangled_typename, write_types, write_local):
3930 Likewise.
3931 * gengtype.h (const_type_p): New.
3932 * see.c (eq_descriptor_extension, hash_descriptor_extension):
3933 Constify.
3934 * tlink.c (scan_linker_output): De-constify.
3935 * tree-ssa-loop-im.c (memref_eq): Constify.
3936 * tree-ssa-structalias.c (const_shared_bitmap_info_t): New.
3937 (shared_bitmap_hash, shared_bitmap_eq): Constify.
3938
3939 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3940
3941 * c-common.c (fname_as_string, c_type_hash): Constify.
3942 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
3943 * cgraph.c (edge_hash, edge_eq): Likewise.
3944 * dwarf2out.c (decl_die_table_eq, decl_loc_table_eq): Likewise.
3945 * emit-rtl.c (mem_attrs_htab_eq, reg_attrs_htab_hash,
3946 reg_attrs_htab_eq): Likewise.
3947 * except.c (t2r_eq, t2r_hash, ttypes_filter_eq, ehl_hash, ehl_eq):
3948 Likewise.
3949 * genautomata.c (const_reserv_sets_t, const_unit_decl_t,
3950 const_decl_t, const_state_t, const_automata_list_el_t): New.
3951 (first_out_arc, DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL,
3952 DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV,
3953 automaton_decl_hash, automaton_decl_eq_p, insn_decl_hash,
3954 insn_decl_eq_p, decl_hash, decl_eq_p, alt_state_cmp,
3955 reserv_sets_cmp, reserv_sets_eq, state_hash, state_eq_p,
3956 automata_list_hash, automata_list_eq_p, compare_states_for_equiv,
3957 compare_max_occ_cycle_nums, out_state_arcs_num,
3958 compare_transition_els_num, units_cmp, state_reservs_cmp):
3959 Constify.
3960 * genmodes.c (cmp_modes): Likewise.
3961 * ggc-common.c (saving_htab_hash, saving_htab_eq): Likewise.
3962 * gimplify.c (compare_case_labels): Likewise.
3963 * ipa-type-escape.c (get_name_of_type, type_brand_s): Likewise.
3964 * loop-unroll.c (si_info_hash, ve_info_hash): Likewise.
3965 * matrix-reorg.c (mtt_info_hash): Likewise.
3966 * postreload-gcse.c (hash_expr_for_htab, expr_equiv_p): Likewise.
3967 * rtl-factoring.c (const_p_hash_bucket, const_p_hash_elem): New.
3968 (htab_hash_bucket, htab_hash_elem): Constify.
3969 * tree-browser.c (TB_parent_eq): Likewise.
3970 * tree-scalar-evolution.c (hash_scev_info): Likewise.
3971 * tree-ssa-alias.c (sort_tags_by_id): Likewise.
3972 * tree-ssa-coalesce.c (const_coalesce_pair_p): New.
3973 (coalesce_pair_map_hash, coalesce_pair_map_eq, compare_pairs):
3974 Constify.
3975 * tree-ssa-dom.c (avail_expr_hash, avail_expr_eq): Likewise.
3976 * tree-ssa-pre.c (const_expr_pred_trans_t): New.
3977 (expr_pred_trans_hash, expr_pred_trans_eq): Constify.
3978 * tree-ssa-sccvn.c (const_vn_binary_op_t, const_vn_unary_op_t,
3979 const_vn_phi_t, const_vn_reference_op_t, const_vn_reference_t):
3980 New.
3981 (vn_reference_op_eq, vn_reference_hash, vn_reference_eq,
3982 vn_unary_op_hash, vn_unary_op_eq, vn_binary_op_hash,
3983 vn_binary_op_eq, vn_phi_hash, vn_phi_eq): Constify.
3984 * tree-ssa-threadupdate.c (redirection_data_hash,
3985 redirection_data_eq): Likewise.
3986 * tree-ssa-uncprop.c (equiv_hash, equiv_eq): Likewise.
3987 * tree-ssa.c (var_ann_eq): Likewise.
3988 * tree-vrp.c (compare_case_labels): Likewise.
3989 * tree.c (int_cst_hash_hash, int_cst_hash_eq,
3990 tree_map_base_marked_p, type_hash_marked_p, tree_check_failed,
3991 tree_not_check_failed, tree_class_check_failed,
3992 tree_range_check_failed, tree_not_class_check_failed,
3993 omp_clause_check_failed, omp_clause_range_check_failed,
3994 tree_contains_struct_check_failed, tree_operand_check_failed):
3995 Likewise.
3996 * tree.h (tree_contains_struct_check_failed, tree_check_failed,
3997 tree_not_check_failed, tree_class_check_failed,
3998 tree_range_check_failed, tree_not_class_check_failed,
3999 tree_operand_check_failed, omp_clause_operand_check_failed,
4000 tree_operand_length): Likewise.
4001 * var-tracking.c (const_variable): New.
4002 (variable_htab_hash, variable_htab_eq): Constify.
4003 * varasm.c (const_desc_hash): Likewise.
4004
4005 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4006
4007 * expr.c (handled_component_p): Constify.
4008 * fold-const.c (fit_double_type): Likewise.
4009 * real.h (real_value_from_int_cst): Likewise.
4010 * tree-flow-inline.h (gimple_in_ssa_p,
4011 gimple_aliases_computed_p, gimple_addressable_vars,
4012 gimple_call_clobbered_vars, gimple_referenced_vars,
4013 gimple_global_var, gimple_nonlocal_all, gimple_var_anns,
4014 end_htab_p, end_referenced_vars_p, var_ann, function_ann,
4015 may_aliases, end_readonly_imm_use_p, has_zero_uses,
4016 has_single_use, single_imm_use, num_imm_uses, is_exec_stmt,
4017 is_label_stmt, is_global_var, phi_ssa_name_p,
4018 factoring_name_p, is_call_clobbered, tree_common_ann,
4019 op_iter_done, end_imm_use_stmt_p, end_imm_use_on_stmt_p,
4020 unmodifiable_var_p, array_ref_contains_indirect_ref,
4021 ref_contains_array_ref, lookup_subvars_for_var,
4022 var_can_have_subvars, overlap_subvar, gimple_ssa_operands,
4023 gimple_mem_ref_stats): Likewise.
4024 * tree-flow.h (tree_common_ann, var_ann, function_ann,
4025 may_aliases, is_exec_stmt, is_label_stmt,
4026 ref_contains_array_ref, array_ref_contains_indirect_ref,
4027 var_can_have_subvars, overlap_subvar, is_call_clobbered,
4028 unmodifiable_var_p): Likewise.
4029 * tree-gimple.c (is_gimple_min_invariant): Likewise.
4030 * tree-gimple.h (is_gimple_min_invariant): Likewise.
4031 * tree.c (type_hash_list, attribute_hash_list, tree_size,
4032 cst_and_fits_in_hwi, real_value_from_int_cst,
4033 build_real_from_int_cst, integer_zerop, integer_onep,
4034 integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2,
4035 tree_floor_log2, real_zerop, real_onep, real_twop,
4036 real_minus_onep, really_constant_p, purpose_member, chain_member,
4037 list_length, fields_length, int_size_in_bytes, bit_position,
4038 int_bit_position, byte_position, int_byte_position, expr_align,
4039 array_type_nelts, tree_node_structure,
4040 type_contains_placeholder_1, iterative_hash_pointer,
4041 is_attribute_with_length_p, is_attribute_p, check_qualified_type,
4042 tree_map_base_eq, type_hash_list, type_hash_eq,
4043 attribute_hash_list, type_num_arguments, tree_int_cst_equal,
4044 tree_int_cst_lt, tree_int_cst_compare, host_integerp,
4045 tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
4046 simple_cst_list_equal, compare_tree_int, iterative_hash_expr,
4047 int_fits_type_p, get_containing_scope, decl_function_context,
4048 decl_type_context, omp_clause_operand_check_failed,
4049 initializer_zerop, int_cst_value, num_ending_zeros): Likewise.
4050 * tree.h (omp_clause_operand_check_failed, tree_size,
4051 build_real_from_int_cst, array_type_nelts, purpose_member,
4052 tree_int_cst_equal, tree_int_cst_lt, tree_int_cst_compare,
4053 host_integerp, tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
4054 is_attribute_p, check_qualified_type, expr_align,
4055 int_size_in_bytes, bit_position, int_bit_position, byte_position,
4056 int_byte_position, list_length, fields_length, initializer_zerop,
4057 integer_zerop, integer_onep, integer_all_onesp, integer_pow2p,
4058 integer_nonzerop, cst_and_fits_in_hwi, num_ending_zeros,
4059 tree_node_structure, handled_component_p, get_containing_scope,
4060 decl_function_context, decl_type_context, real_zerop,
4061 type_num_arguments, fit_double_type, really_constant_p,
4062 int_fits_type_p, tree_log2, tree_floor_log2, iterative_hash_expr,
4063 compare_tree_int, chain_member, simple_cst_list_equal, real_onep,
4064 real_twop, real_minus_onep, int_cst_value): Likewise.
4065
4066 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4067
4068 * cfglayout.c (insn_scope, insn_line): Constify.
4069 * emit-rtl.c (const_int_htab_hash, const_int_htab_eq,
4070 const_double_htab_hash, const_double_htab_eq,
4071 mem_attrs_htab_hash): Likewise.
4072 * loop-iv.c (biv_eq): Likewise.
4073 * print-rtl.c (print_rtx, print_decl_name, print_mem_expr,
4074 print_inline_rtx, debug_rtx, debug_rtx_list, debug_rtx_range,
4075 debug_rtx_find, print_rtl, print_rtl_single, print_simple_rtl):
4076 Likewise.
4077 * rtl-error.c (location_for_asm, diagnostic_for_asm,
4078 error_for_asm, warning_for_asm, _fatal_insn,
4079 _fatal_insn_not_found): Likewise.
4080 * rtl.c (rtx_size, shared_const_p, shallow_copy_rtx_stat,
4081 rtx_equal_p, rtl_check_failed_bounds, rtl_check_failed_type1,
4082 rtl_check_failed_type2, rtl_check_failed_code1,
4083 rtl_check_failed_code2, rtl_check_failed_code_mode,
4084 rtvec_check_failed_bounds, rtl_check_failed_flag): Likewise.
4085 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
4086 rtl_check_failed_type2, rtl_check_failed_code1,
4087 rtl_check_failed_code2, rtl_check_failed_code_mode,
4088 rtvec_check_failed_bounds, rtl_check_failed_flag, LABEL_KIND,
4089 SET_LABEL_KIND, rhs_regno, subreg_lsb, subreg_regno, subreg_nregs,
4090 shared_const_p, rtx_size, shallow_copy_rtx_stat, rtx_equal_p,
4091 get_pool_mode, insn_line, insn_file, simplify_replace_rtx,
4092 mode_signbit_p, rtx_addr_can_trap_p, nonzero_address_p,
4093 rtx_unstable_p, get_integer_term, get_related_value,
4094 offset_within_block_p, reg_mentioned_p, count_occurrences,
4095 reg_referenced_p, reg_used_between_p, no_labels_between_p,
4096 single_set_2, multiple_sets, set_noop_p, refers_to_regno_p,
4097 reg_overlap_mentioned_p, dead_or_set_p, dead_or_set_regno_p,
4098 find_reg_note, find_regno_note, find_reg_equal_equiv_note,
4099 find_constant_src, find_reg_fusage, find_regno_fusage,
4100 pure_call_p, remove_note, side_effects_p, volatile_refs_p,
4101 volatile_insn_p, may_trap_p, may_trap_after_code_motion_p,
4102 may_trap_or_fault_p, inequality_comparisons_p, tablejump_p,
4103 computed_jump_p, auto_inc_p, in_expr_list_p,
4104 remove_node_from_expr_list, loc_mentioned_in_p,
4105 label_is_jump_target_p, reversed_comparison_code_parts,
4106 debug_rtx, debug_rtx_list, debug_rtx_range, debug_rtx_find,
4107 print_mem_expr, print_rtl, print_simple_rtl, print_rtl_single,
4108 print_inline_rtx): Likewise.
4109 * rtlanal.c (covers_regno_p, covers_regno_no_parallel_p,
4110 computed_jump_p_1, nonzero_bits1, rtx_unstable_p,
4111 rtx_addr_can_trap_p_1, rtx_addr_can_trap_p, nonzero_address_p,
4112 get_integer_term, get_related_value, offset_within_block_p,
4113 count_occurrences, reg_mentioned_p, no_labels_between_p,
4114 reg_used_between_p, reg_referenced_p, single_set_2,
4115 multiple_sets, set_noop_p, refers_to_regno_p,
4116 reg_overlap_mentioned_p, dead_or_set_p,
4117 covers_regno_no_parallel_p, covers_regno_p,
4118 dead_or_set_regno_p, find_reg_note, find_regno_note,
4119 find_reg_equal_equiv_note, find_constant_src, find_reg_fusage,
4120 find_regno_fusage, pure_call_p, remove_note, in_expr_list_p,
4121 remove_node_from_expr_list, volatile_insn_p, volatile_refs_p,
4122 side_effects_p, may_trap_p_1, may_trap_p,
4123 may_trap_after_code_motion_p, may_trap_or_fault_p,
4124 inequality_comparisons_p, tablejump_p, computed_jump_p_1,
4125 computed_jump_p, auto_inc_p, loc_mentioned_in_p, subreg_lsb,
4126 subreg_regno, subreg_nregs, label_is_jump_target_p): Likewise.
4127 * simplify-rtx.c (neg_const_int, plus_minus_operand_p,
4128 mode_signbit_p, simplify_replace_rtx, plus_minus_operand_p):
4129 Likewise.
4130 * toplev.h (_fatal_insn_not_found, _fatal_insn, error_for_asm,
4131 warning_for_asm): Likewise.
4132 * tree.h (print_rtl): Likewise.
4133 * varasm.c (get_pool_mode): Likewise.
4134
4135 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4136
4137 * c-lex.c (c_lex_with_flags, lex_string): Constify.
4138 * c-ppoutput.c (print_line, pp_dir_change): Likewise.
4139 * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
4140 * cfg.c (bb_copy_original_hash, bb_copy_original_eq): Likewise.
4141 * cfgloop.c (loop_exit_hash, loop_exit_eq): Likewise.
4142 * ddg.c (compare_sccs): Likewise.
4143 * df-scan.c (df_ref_compare, df_mw_compare): Likewise.
4144 * dfp.c (decimal_real_from_string, decimal_to_decnumber,
4145 decimal_to_binary, decimal_do_compare, decimal_real_to_decimal,
4146 decimal_do_fix_trunc, decimal_real_to_integer,
4147 decimal_real_to_integer2, decimal_real_maxval): Likewise.
4148 * dse.c (const_group_info_t): New.
4149 (invariant_group_base_eq, invariant_group_base_hash): Constify.
4150 * dwarf2out.c (const_dw_die_ref): New.
4151 (decl_die_table_hash, decl_die_table_eq, file_info_cmp): Constify.
4152 * tree-browser.c (TB_parent_eq): Likewise.
4153 * unwind-dw2-fde.c (__register_frame_info_bases,
4154 __deregister_frame_info_bases, fde_unencoded_compare, fde_split,
4155 add_fdes, linear_search_fdes, binary_search_unencoded_fdes):
4156 Likewise.
4157 * unwind-dw2-fde.h (get_cie, next_fde): Likewise.
4158 * unwind-dw2.c (uw_frame_state_for): Likewise.
4159 * value-prof.c (histogram_hash, histogram_eq): Likewise.
4160 * value-prof.h (const_histogram_value): New.
4161
4162 2007-07-25 Richard Sandiford <richard@codesourcery.com>
4163
4164 * config/mips/mips.c (machine_function): Add
4165 initialized_mips16_gp_pseudo_p.
4166 (mips16_gp_pseudo_reg): Do not emit the initialization of
4167 mips16_gp_pseudo_rtx when being called from the gimple cost-
4168 calculation routines; emit it on the first use outside those
4169 routines.
4170
4171 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4172
4173 * coretypes.h (const_bitmap, const_rtx, const_rtvec, const_tree):
4174 New.
4175
4176 * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
4177 RTVEC_ELT, XWINT, XCWINT, XCMWINT, XCNMPRV, BLOCK_SYMBOL_CHECK,
4178 RTL_FLAG_CHECK1, RTL_FLAG_CHECK2, RTL_FLAG_CHECK3,
4179 RTL_FLAG_CHECK4, RTL_FLAG_CHECK5, RTL_FLAG_CHECK6,
4180 RTL_FLAG_CHECK7, RTL_FLAG_CHECK8, LABEL_KIND, SET_LABEL_KIND):
4181 Preserve const-ness of parameters through use of __typeof(),
4182 also constify and tidy.
4183
4184 * tree.h (TREE_CHECK, TREE_NOT_CHECK, TREE_CHECK2,
4185 TREE_NOT_CHECK2, TREE_CHECK3, TREE_NOT_CHECK3, TREE_CHECK4,
4186 NON_TREE_CHECK4, TREE_CHECK5, TREE_NOT_CHECK5,
4187 CONTAINS_STRUCT_CHECK, TREE_CLASS_CHECK, TREE_RANGE_CHECK,
4188 OMP_CLAUSE_SUBCODE_CHECK, OMP_CLAUSE_RANGE_CHECK, EXPR_CHECK,
4189 GIMPLE_STMT_CHECK, NON_TYPE_CHECK, TREE_VEC_ELT_CHECK,
4190 PHI_NODE_ELT_CHECK, OMP_CLAUSE_ELT_CHECK, TREE_OPERAND_CHECK,
4191 TREE_OPERAND_CHECK_CODE, GIMPLE_STMT_OPERAND_CHECK,
4192 TREE_RTL_OPERAND_CHECK, TREE_CHAIN, TREE_TYPE): Likewise.
4193
4194 2007-07-25 Julian Brown <julian@codesourcery.com>
4195 Mark Shinwell <shinwell@codesourcery.com>
4196
4197 * config/alpha/alpha.c (alpha_mangle_fundamental_type): Rename to...
4198 (alpha_mangle_type): This.
4199 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
4200 (TARGET_MANGLE_TYPE): Define this instead.
4201 * config/arm/arm-protos.h (arm_mangle_type): Add prototype.
4202 * config/arm/arm.c (TARGET_MANGLE_TYPE): Define target hook.
4203 (arm_init_neon_builtins): Fix comment.
4204 (arm_mangle_map_entry): New.
4205 (arm_mangle_map): New.
4206 (arm_mangle_type): New.
4207 * config/i386/i386.c (ix86_mangle_fundamental_type): Rename to...
4208 (ix86_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
4209 mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
4210 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
4211 (TARGET_MANGLE_TYPE): Define this instead.
4212 * config/ia64/ia64.c (ia64_mangle_fundamental_type): Rename to...
4213 (ia64_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
4214 mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
4215 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
4216 (TARGET_MANGLE_TYPE): Define this instead.
4217 * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Rename
4218 to...
4219 (rs6000_mangle_type): This. Use TYPE_MAIN_VARIANT.
4220 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
4221 (TARGET_MANGLE_TYPE): Define this instead.
4222 * config/s390/s390.c (s390_mangle_fundamental_type): Rename to...
4223 (s390_mangle_type): This.
4224 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
4225 (TARGET_MANGLE_TYPE): Define this instead.
4226 * config/sparc/sparc.c (sparc_mangle_fundamental_type): Rename to...
4227 (sparc_mangle_type): This.
4228 (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
4229 (TARGET_MANGLE_TYPE): Define this instead.
4230 * cp/mangle.c (write_type): Call mangle_type target hook on all
4231 types before mangling. Use original type, not main variant, as
4232 argument.
4233 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename hook to...
4234 (TARGET_MANGLE_TYPE): This.
4235 * target.h (gcc_target): Rename mangle_fundamental_type to
4236 mangle_type.
4237 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename section to...
4238 (TARGET_MANGLE_TYPE): This. Note slightly different semantics.
4239
4240 2007-07-25 Julian Brown <julian@codesourcery.com>
4241 Paul Brook <paul@codesourcery.com>
4242 Joseph Myers <joseph@codesourcery.com>
4243 Mark Shinwell <shinwell@codesourcery.com>
4244
4245 * Makefile.in (TEXI_GCC_FILES): Add arm-neon-intrinsics.texi.
4246 * config.gcc (arm*-*-*): Add arm_neon.h to extra headers.
4247 (with_fpu): Allow --with-fpu=neon.
4248 * config/arm/aof.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
4249 * config/arm/aout.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
4250 * config/arm/arm-modes.def (EI, OI, CI, XI): New modes.
4251 * config/arm/arm-protos.h (neon_immediate_valid_for_move)
4252 (neon_immediate_valid_for_logic, neon_output_logic_immediate)
4253 (neon_pairwise_reduce, neon_expand_vector_init, neon_reinterpret)
4254 (neon_emit_pair_result_insn, neon_disambiguate_copy)
4255 (neon_vector_mem_operand, neon_struct_mem_operand, output_move_quad)
4256 (output_move_neon): Add prototypes.
4257 * config/arm/arm.c (FL_NEON): New flag for NEON processor capability.
4258 (all_fpus): Add FPUTYPE_NEON.
4259 (fp_model_for_fpu): Add NEON field.
4260 (arm_return_in_memory): Return vectors <= 16 bytes in ARM registers.
4261 (arm_arg_partial_bytes): Allow NEON vectors to be passed partially
4262 in registers.
4263 (arm_legitimate_address_p): Don't support fancy addressing for NEON
4264 structure moves.
4265 (thumb2_legitimate_address_p): Likewise.
4266 (neon_valid_immediate): Recognize and prepare constants suitable for
4267 NEON instructions.
4268 (neon_immediate_valid_for_move): New function. Recognize and prepare
4269 immediates for NEON move instructions.
4270 (neon_immediate_valid_for_logic): New function. Recognize and
4271 prepare immediates for NEON logic instructions.
4272 (neon_output_logic_immediate): New function. Create asm string
4273 suitable for outputting immediate logic instructions.
4274 (neon_pairwise_reduce): New function. Implement reduction using
4275 pairwise operations.
4276 (neon_expand_vector_init): New function. Expand a (possibly
4277 non-constant) vector initialization.
4278 (neon_vector_mem_operand): New function. Memory operands supported
4279 for quad-word loads/stores to/from ARM or NEON registers. Don't
4280 allow base+offset addressing for core regs.
4281 (neon_struct_mem_operand): New function. Valid mems for NEON
4282 structure moves.
4283 (coproc_secondary_reload_class): Enable NEON registers to be loaded
4284 from neon_vector_mem_operand addresses without a secondary register.
4285 (add_minipool_forward_ref): Handle >8-byte minipool entries.
4286 (add_minipool_backward_ref): Likewise.
4287 (dump_minipool): Likewise.
4288 (push_minipool_fix): Likewise.
4289 (output_move_quad): New function. Output quad-word moves, loads and
4290 stores using ARM registers.
4291 (output_move_vfp): Add support for vectors in VFP (NEON) D
4292 registers.
4293 (output_move_neon): Output a NEON load/store to/from a quadword
4294 register.
4295 (arm_print_operand): Implement new codes:
4296 - 'c' for unadorned integers (without a # sign).
4297 - 'J', 'K' for reg+2/reg+3, reg+3/reg+2 in little/big-endian
4298 mode.
4299 - 'e', 'f' for the low and high D parts of a NEON Q register.
4300 - 'q' outputs a NEON Q register.
4301 - 'h' outputs ranges of D registers for VLDM/VSTM etc.
4302 - 'T' prints NEON opcode features from a coded bitmask.
4303 - 'F' is similar to T, but signed/unsigned codes both print as
4304 'i'.
4305 - 't' is similar to T, but 'u' is printed instead of 'p'.
4306 - 'O' prints 'r' if NEON instruction should perform rounding (as
4307 specified by bitmask), else prints nothing.
4308 - '#' is a punctuation character to stop operand numbers from
4309 running together with following digits in the assembler
4310 strings for instructions (when using mode attributes).
4311 (arm_assemble_integer): Handle extra NEON vector modes. Permute
4312 constant vectors in big-endian mode, where necessary.
4313 (arm_hard_regno_mode_ok): Allow vectors in VFP/NEON registers.
4314 Handle EI, OI, CI, XI modes.
4315 (ashlv4hi3, ashlv2si3, lshrv4hi3, lshrv2si3, ashrv4hi3)
4316 (ashrv2si3): Rename IWMMXT2_BUILTINs to...
4317 (ashlv4hi3_iwmmxt, ashlv2si3_iwmmxt, lshrv4hi3_iwmmxt)
4318 (lshrv2si3_iwmmxt, ashrv4hi3_iwmmxt, ashrv2si3_iwmmxt): New names.
4319 (neon_builtin_type_bits): Add enumeration, one bit for each vector
4320 type.
4321 (v8qi_UP, v4hi_UP, v2si_UP, v2sf_UP, di_UP, v16qi_UP, v8hi_UP)
4322 (v4si_UP, v4sf_UP, v2di_UP, ti_UP, ei_UP, oi_UP, UP): Define macros
4323 to turn v8qi, etc. into bits defined above.
4324 (neon_itype): New enumeration. Classifications of NEON builtins.
4325 (neon_builtin_datum): Define struct. Contains information about
4326 a single builtin (with multiple modes).
4327 (CF): Define helper macro for...
4328 (VAR1...VAR10): Define builtins with a type, name and 1-10 different
4329 modes.
4330 (neon_builtin_data): New array. Define information about builtins
4331 for use during initialization/expansion.
4332 (arm_init_neon_builtins): New function.
4333 (arm_init_builtins): Call arm_init_neon_builtins if TARGET_NEON is
4334 true.
4335 (neon_builtin_compare): New function.
4336 (locate_neon_builtin_icode): New function. Find an insn code for a
4337 builtin given a function code for that builtin. Also return type of
4338 builtin (NEON_BINOP, NEON_UNOP etc.).
4339 (builtin_arg): New enumeration. Types of arguments for builtins.
4340 (arm_expand_neon_args): New function. Expand a generic NEON builtin.
4341 Takes a variable argument list of builtin_arg types, terminated by
4342 NEON_ARG_STOP.
4343 (arm_expand_neon_builtin): New function. Expand a NEON builtin.
4344 (neon_reinterpret): New function. Expand NEON reinterpret intrinsic.
4345 (neon_emit_pair_result_insn): New function. Support returning pairs
4346 of vectors via a pointer.
4347 (neon_disambiguate_copy): New function. Set up operands for a
4348 multi-word copy such that registers do not get clobbered.
4349 (arm_expand_builtin): Call arm_expand_neon_builtin if fcode >=
4350 ARM_BUILTIN_NEON_BASE.
4351 (arm_file_start): Set float-abi attribute for NEON.
4352 (arm_vector_mode_supported_p): Enable NEON vector modes.
4353 (arm_mangle_map_entry): New.
4354 (arm_mangle_map): New.
4355 (arm_mangle_vector_type): New.
4356 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_NEON__
4357 when appropriate.
4358 (TARGET_NEON): New macro. Target supports NEON.
4359 (fputype): Add FPUTYPE_NEON.
4360 (UNITS_PER_SIMD_WORD): Define. Allow quad-word registers to be used
4361 for vectorization based on command-line arg.
4362 (NEON_REGNO_OK_FOR_NREGS): Define.
4363 (VALID_NEON_DREG_MODE, VALID_NEON_QREG_MODE)
4364 (VALID_NEON_STRUCT_MODE): Define.
4365 (PRINT_OPERAND_PUNCT_VALID_P): '#' is valid punctuation.
4366 (arm_builtins): Add ARM_BUILTIN_NEON_BASE.
4367 * config/arm/arm.md (VUNSPEC_POOL_16): Insert constant for unspec.
4368 (consttable_16): Add pattern for outputting 16-byte minipool
4369 entries.
4370 (movv2si, movv4hi, movv8qi): Remove blank expanders (redefined in
4371 vec-common.md).
4372 (vec-common.md, neon.md): Include md files.
4373 * config/arm/arm.opt (mvectorize-with-neon-quad): Add option.
4374 * config/arm/constraints.md (constraint "Dn", "Dl", "DL"): Define.
4375 (memory_constraint "Ut", "Un", "Us"): Define.
4376 * config/arm/iwmmxt.md (VMMX, VSHFT): New mode macros.
4377 (MMX_char): New mode attribute.
4378 (addv8qi3, addv4hi3, addv2si3): Remove. Replace with...
4379 (*add<mode>3_iwmmxt): New insn pattern.
4380 (subv8qi3, subv4hi3, subv2si3): Remove. Replace with...
4381 (*sub<mode>3_iwmmxt): New insn pattern.
4382 (mulv4hi3): Rename to...
4383 (*mulv4hi3_iwmmxt): This.
4384 (smaxv8qi3, smaxv4hi3, smaxv2si3, umaxv8qi3, umaxv4hi3)
4385 (umaxv2si3, sminv8qi3, sminv4hi3, sminv2si3, uminv8qi3)
4386 (uminv4hi3, uminv2si3): Remove. Replace with...
4387 (*smax<mode>3_iwmmxt, *umax<mode>3_iwmmxt, *smin<mode>3_iwmmxt)
4388 (*umin<mode>3_iwmmxt): These.
4389 (ashrv4hi3, ashrv2si3, ashrdi3_iwmmxt): Replace with...
4390 (ashr<mode>3_iwmmxt): This new pattern.
4391 (lshrv4hi3, lshrv2si3, lshrdi3_iwmmxt): Replace with...
4392 (lshr<mode>3_iwmmxt): This new pattern.
4393 (ashlv4hi3, ashlv2si3, ashldi3_iwmmxt): Replace with...
4394 (ashl<mode>3_iwmmxt): This new pattern.
4395 * config/arm/neon-docgen.ml: New file. Generate documentation for
4396 intrinsics.
4397 * config/arm/neon-gen.ml: New file. Generate arm_neon.h header.
4398 * config/arm/arm_neon.h: New (autogenerated).
4399 * config/arm/neon-testgen.ml: New file. Generate NEON tests
4400 automatically.
4401 * config/arm/neon.md: New file. Define NEON instructions.
4402 * config/arm/neon.ml: New file. Abstract description of NEON
4403 instructions, used to generate arm_neon.h header, documentation and
4404 tests.
4405 * config/arm/t-arm (MD_INCLUDES): Add vec-common.md, neon.md.
4406 * vec-common.md: New file. Shared parts for iWMMXt and NEON vector
4407 support.
4408 * doc/extend.texi (ARM Built-in Functions): Rename and remove
4409 extraneous comma.
4410 (ARM NEON Intrinsics): New subsection.
4411 * doc/arm-neon-intrinsics.texi: New (autogenerated).
4412
4413 2007-07-25 Danny Smith <dannysmith@users.sourceforge.net>
4414
4415 * config/i386/i386-protos.h (i386_pe_asm_file_end): Remove
4416 prototype.
4417
4418 2007-07-24 Jan Hubicka <jh@suse.cz>
4419
4420 * regclass.c (move_table): New type.
4421 (move_cost, may_move_in_cost, may_move_out_cost): Use it.
4422 (init_move_cost): Break out from ...
4423 (init_reg_sets_1): ... here; simplify computation of
4424 have_regs-of_mode and contains_reg_of_mode.
4425 (record_reg_classes): Unswitch internal loops.
4426 (copy_cost): Trigger lazy initialization of move cost
4427 (record_address_regs): Likewise.
4428
4429 2007-07-24 Daniel Berlin <dberlin@dberlin.org>
4430
4431 * config/darwin.c (darwin_override_options): Don't force on
4432 flag_var_tracking_uninit when no debug info is requested.
4433
4434 2007-07-25 Zdenek Dvorak <dvorakz@suse.cz>
4435
4436 * cfgloop.c (init_loops_structure): New function.
4437 (flow_loops_find): Create root of the loop tree unconditionally.
4438
4439 2007-07-24 Daniel Jacobowitz <dan@codesourcery.com>
4440
4441 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use fold_convert.
4442
4443 2007-07-24 Jan Hubicka <jh@suse.cz>
4444
4445 * caller-save.c: Include ggc.h, gt-caller-save.h
4446 (reg_save_code, reg_restore_code): Rename to ...
4447 (cached_reg_save_code, cached_reg_restore_code): ... those.
4448 (savepat, restpat, test_reg, test_mem, saveinsn, restinsn): New.
4449 (reg_save_code, reg_restore_code): New functions.
4450 (init_caller_save): Do not intialize
4451 reg_save_code/reg_restore_code tables.
4452 * Makefile.in: (gt-caller-save.h): New.
4453
4454 2007-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
4455
4456 * tree-ssa-ifcombine.c (ifcombine_ifandif): Use a ONE operand
4457 with the mode of the original operand instead of
4458 integer_one_node.
4459
4460 2007-07-23 Jan Hubicka <jH@suse.cz>
4461
4462 * i386.c (ix86_secondary_memory_needed): Break out to...
4463 (inline_secondary_memory_needed): ... here.
4464 (ix86_memory_move_cost): Break out to ...
4465 (inline_memory_move_cost): ... here; add support for IN value of 2 for
4466 maximum of input and output; fix handling of Q_REGS on 64bit.
4467 (ix86_secondary_memory_needed): Microoptimize.
4468
4469 2007-07-23 Sebastian Pop <sebpop@gmail.com>
4470
4471 * tree-data-ref.c (find_vertex_for_stmt, create_rdg_edge_for_ddr,
4472 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
4473 stmts_from_loop, known_dependences_p, build_rdg): New.
4474 * tree-data-ref.h: Depends on graphds.h.
4475 (rdg_vertex, RDGV_STMT, rdg_dep_type, rdg_edge, RDGE_TYPE): New.
4476 (build_rdg): Declared.
4477 * Makefile.in (TREE_DATA_REF_H): Depends on graphds.h.
4478
4479 2007-07-23 Daniel Berlin <dberlin@dberlin.org>
4480
4481 * tree-ssa-propagate.c (valid_gimple_expression_p): Match up with
4482 ccp_min_invariant.
4483
4484 2007-07-23 Peter Bergner <bergner@vnet.ibm.com>
4485 Jakub Jelinek <jakub@redhat.com>
4486
4487 PR middle-end/PR28690
4488 * optabs.c (expand_binop): (emit_cmp_and_jump_insns): Allow
4489 EQ compares.
4490 * rtlanal.c (commutative_operand_precedence): Prefer both REG_POINTER
4491 and MEM_POINTER operands over REG and MEM operands.
4492 (swap_commutative_operands_p): Change return value to bool.
4493 * rtl.h: Update the corresponding prototype.
4494 * tree-ssa-address.c (gen_addr_rtx): Use simplify_gen_binary
4495 instead of gen_rtx_PLUS.
4496 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Change return
4497 value to bool. Change function arguments to rtx's and update code
4498 to match.
4499 (simplify_plus_minus): Update the simplify_plus_minus_op_data_cmp
4500 calls to match the new declaration.
4501 * simplify-rtx.c (simplify_associative_operation): Don't
4502 reorder simplify_binary_operation arguments.
4503
4504 2007-07-23 Richard Sandiford <richard@codesourcery.com>
4505
4506 * config/mips/mips.c (override_options): Use mips_costs to derive
4507 the default branch cost.
4508 * config/mips/mips.h (BRANCH_COST): Use mips_branch_cost rather
4509 than mips_costs.
4510 * config/mips/mips.opt (mbranch-cost=): New option.
4511 * doc/invoke.texi (-mbranch-cost): Document new MIPS option.
4512
4513 2007-07-23 Richard Sandiford <richard@codesourcery.com>
4514
4515 * config/mips/mips.h (GR_REG_CLASS_P, COP_REG_CLASS_P): Delete.
4516 (SECONDARY_MEMORY_NEEDED): Delete commented-out definition.
4517 * config/mips/mips.c (mips_register_move_cost): Use reg_class_subset_p
4518 instead of GR_REG_CLASS_P and COP_REG_CLASS_P.
4519
4520 2007-07-23 Richard Sandiford <richard@codesourcery.com>
4521
4522 * config/mips/constraints.md (ks): New constraint.
4523 * config/mips/mips.md (*add<mode>3_sp1, *add<mode>3_sp2): Fold into...
4524 (*add<mode>3_mips16): ...here.
4525
4526 2007-07-21 Uros Bizjak <ubizjak@gmail.com>
4527
4528 * optabs.h (enum optab_index): Add new OTI_signbit.
4529 (signbit_optab): Define corresponding macro.
4530 (enum insn_code signbit_optab[]): Remove array.
4531 * optabs.c (init_optabs): Initialize signbit_optab using init_optab.
4532 (expand_copysign_absneg): If back end provides signbit insn, use it
4533 instead of bit operations on floating point argument.
4534 * builtins.c (enum insn_code signbit_optab[]): Remove array.
4535 (expand_builtin_signbit): Check signbit_optab->handlers[].insn_code
4536 for availability of signbit insn.
4537
4538 * config/i386/i386.md (signbit<mode>2): New insn pattern to implement
4539 signbitf, signbit and signbitl built-ins as inline x87 intrinsics when
4540 SSE mode is not active.
4541 (isinf<mode>2): Disable for mfpmath=sse,387.
4542
4543 2007-07-22 Ben Elliston <bje@au.ibm.com>
4544
4545 * regclass.c (invalid_mode_change_p): Attach ATTRIBUTE_UNUSED to
4546 `class' parameter.
4547 * struct-equiv.c (note_local_live): Likewise for `y_regno'.
4548
4549 2007-07-20 Richard Guenther <rguenther@suse.de>
4550
4551 * tree-cfg.c (verify_expr): COND_EXPRs can have any
4552 integral typed condition.
4553 * tree-ssa.c (useless_type_conversion_p): Do not preserve
4554 booleanness. Only preserve conversions from a non-base
4555 type to a base type, not in general between types with
4556 different TYPE_MIN_VALUE or TYPE_MAX_VALUE.
4557 * tree.def (COND_EXPR): Document that the condition
4558 can be of any integral type.
4559
4560 2007-07-20 Nigel Stephens <nigel@mips.com>
4561 Richard Sandiford <richard@codesourcery.com>
4562
4563 * config/mips/mips.h (mips_dwarf_regno): Declare.
4564 (DBX_REGISTER_NUMBER): Remove redundant brackets.
4565 (HI_REGNUM, LO_REGNUM): Define in an endian-dependent way.
4566 (AC1HI_REGNUM, AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM)
4567 (AC3HI_REGNUM, AC3LO_REGNUM, ACC_HI_REG_P): Delete.
4568 (reg_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
4569 (REG_CLASS_NAMES): Update accordingly.
4570 * config/mips/mips.c (mips_dwarf_regno): New array.
4571 (mips_regno_to_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
4572 (mips_subword): Remove special handling for accumulator registers.
4573 (override_options): Initiailize mips_dwarf_regno. Remove use
4574 of ACC_HI_REG_P.
4575 (mips_swap_registers): New function.
4576 (mips_conditional_register_usage): Swap accumulator registers
4577 around if TARGET_LITTLE_ENDIAN.
4578 (mips_cannot_change_mode_class): Remove special treatment of ACC_REGS.
4579 * config/mips/constraints.md (h, l): Use the endianness to choose
4580 between MD0_REG and MD1_REG.
4581 * config/mips/mips.md (*mfhilo_<mode>_macc): Use a fixed-string,
4582 alternative-dependent template.
4583
4584 2007-07-20 Richard Sandiford <richard@codesourcery.com>
4585
4586 * config/arm/arm.md (movsi): Use can_create_pseudo_p instead of
4587 no_new_pseudos.
4588
4589 2007-07-20 Zdenek Dvorak <dvorakz@suse.cz>
4590
4591 * function.c (thread_prologue_and_epilogue_insns): Fix exit
4592 predecessor fallthru flags.
4593
4594 2007-07-20 Zdenek Dvorak <dvorakz@suse.cz>
4595
4596 * tree-ssa-loop-niter.c (assert_loop_rolls_lt): Convert the operands
4597 of compare to the same type.
4598 * cfgloopmanip.c (add_loop): Update information about loop exits.
4599 (loop_version): Remove the innermost loop requirement.
4600 * tree-ssa-loop-manip.c (determine_exit_conditions): Convert bounds
4601 to sizetype for pointers.
4602
4603 2007-07-18 H.J. Lu <hongjiu.lu@intel.com>
4604
4605 * Makefile.in (D32PBIT_FUNCS): Add _sd_to_tf and _tf_to_sd.
4606 (D64PBIT_FUNCS): Add _dd_to_tf and _tf_to_dd.
4607 (D128PBIT_FUNCS): Add _td_to_tf and _tf_to_td.
4608
4609 * config/dfp-bit.c: Empty for TFmode conversions.
4610
4611 2007-07-18 Caroline Tice <ctice@apple.com>
4612
4613 * var-tracking.c (find_src_status): Check for COND_EXEC insns
4614 and handle them correctly; check that src is not NULL before
4615 trying to use it.
4616 (find_src_set_src): Likewise.
4617
4618 2007-07-18 Bob Wilson <bob.wilson@acm.org>
4619
4620 * config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New.
4621 (struct alignment_context, init_alignment_context): New.
4622 (xtensa_expand_compare_and_swap, xtensa_expand_atomic): New.
4623 * config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default.
4624 (XCHAL_HAVE_S32C1I): Likewise.
4625 (TARGET_RELEASE_SYNC, TARGET_S32C1I): New.
4626 * config/xtensa/xtensa.md (UNSPECV_MEMW): New constant.
4627 (UNSPECV_S32RI, UNSPECV_S32C1I): Likewise.
4628 (ATOMIC, HQI): New macros.
4629 (memory_barrier, *memory_barrier): New.
4630 (sync_lock_releasesi): New.
4631 (sync_compare_and_swapsi, sync_compare_and_swap<mode>): New.
4632 (sync_lock_test_and_set<mode>): New.
4633 (sync_<atomic><mode>): New.
4634 (sync_old_<atomic><mode>, sync_new_<atomic><mode>): New.
4635 * config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New.
4636 (xtensa_expand_atomic): New.
4637
4638 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4639
4640 PR target/30652
4641
4642 * builtins.c (expand_builtin_interclass_mathfn): Provide a generic
4643 transformation for builtin ISNORMAL.
4644 (expand_builtin): Handle BUILT_IN_ISNORMAL.
4645 * builtins.def (BUILT_IN_ISNORMAL): New.
4646 * doc/extend.texi: Document isnormal.
4647
4648 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4649
4650 PR target/30652
4651
4652 * builtins.c (expand_builtin_interclass_mathfn): Allow for missing
4653 optabs infrastructure. Provide generic implementation for
4654 FINITE/ISFINITE.
4655 (expand_builtin): Handle FINITE/ISFINITE.
4656 (fold_builtin_classify): Make ISFINITE canonical instead of FINITE.
4657 (fold_builtin_1): Likewise.
4658
4659 * builtins.def (BUILT_IN_ISFINITE): New.
4660
4661 * doc/extend.texi: Document isfinite.
4662
4663 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4664
4665 PR target/30652
4666 PR middle-end/20558
4667
4668 * builtins.c (expand_builtin_interclass_mathfn): Provide a
4669 generic fallback for isinf.
4670 * c-cppbuiltin.c (builtin_define_float_constants): Move FP max
4671 calculation code ...
4672 * real.c (get_max_float): ... to here.
4673 * real.h (get_max_float): New.
4674
4675 2007-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4676
4677 PR middle-end/32668
4678
4679 * builtin-attrs.def (ATTR_TYPEGENERIC,
4680 ATTR_CONST_NOTHROW_TYPEGENERIC): New.
4681
4682 * builtins.def (BUILT_IN_ISINF, BUILT_IN_ISNAN,
4683 BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
4684 BUILT_IN_ISLESSEQUAL, BUILT_IN_ISLESSGREATER,
4685 BUILT_IN_ISUNORDERED): Use ATTR_CONST_NOTHROW_TYPEGENERIC.
4686
4687 * c-common.c (handle_type_generic_attribute): New.
4688 (c_common_attribute_table): Add "type generic".
4689
4690 * c-typeck.c (convert_arguments): Handle "type generic" functions.
4691
4692 2007-07-18 Daniel Berlin <dberlin@dberlin.org>
4693
4694 * tree-ssa-sccvn.c (try_to_simplify): Use valid_gimple_expression
4695 * tree-ssa-propagate (valid_gimple_expression): Handle ADDR_EXPR
4696 properly.
4697
4698 2007-07-18 Rask Ingemann Lambertsen <rask@sygehus.dk>
4699
4700 PR target/32808
4701 * config/cris/cris.c (cris_print_index): Don't use XEXP before
4702 checking that the operand is an expression.
4703
4704 2007-07-19 Christoph von Wittich <Christoph_vW@reactos.org>
4705 Danny Smith <dannysmith@users.sourceforge.net>
4706
4707 PR/other 30335
4708 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Put
4709 file mapping object in local namespace if Windows version later
4710 than NT4
4711
4712 2007-07-18 Richard Sandiford <richard@codesourcery.com>
4713
4714 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Declare.
4715 * config/arm/arm.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
4716 arm_cannot_force_const_mem.
4717 (arm_cannot_force_const_mem): New function.
4718 * config/arm/arm.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macro.
4719 (LEGITIMATE_CONSTANT_P): Test arm_cannot_force_const_mem instead
4720 of arm_tls_referenced_p.
4721 * config/arm/arm.md (movsi): Split out-of-section constants when
4722 ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P.
4723 * config/arm/vxworks.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
4724
4725 2007-07-18 Richard Sandiford <richard@codesourcery.com>
4726
4727 * config/mips/mips.md (clear_cache): Treat the size argument as Pmode.
4728
4729 2007-07-18 Richard Sandiford <richard@codesourcery.com>
4730
4731 * config/mips/mips.md (*extendqihi2): Convert the destination
4732 to SImode.
4733
4734 2007-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4735
4736 * config/pa/fptr.c: Update license header.
4737 * config/pa/milli64.S: Likewise.
4738
4739 2007-07-17 Nick Clifton <nickc@redhat.com>
4740
4741 * COPYING_v3: New file. Contains version 3 of the GNU General
4742 Public License.
4743 * COPYING.LIB_v3: New file. Contains version 3 of the GNU
4744 Lesser General Public License.
4745 * doc/include/gpl_v3.texi: New file. Contains version 3 of
4746 the GNU General Public License.
4747
4748 2007-07-17 Zdenek Dvorak <dvorakz@suse.cz>
4749
4750 PR rtl-optimization/32773
4751 * cfglayout.c (force_one_exit_fallthru): New function.
4752 (cfg_layout_finalize): Use it.
4753
4754 2007-07-16 Richard Guenther <rguenther@suse.de>
4755 Uros Bizjak <ubizjak@gmail.com>
4756
4757 * tree-if-conv.c (find_phi_replacement_condition): Unshare "*cond"
4758 before forcing it to gimple operand.
4759
4760 2007-07-16 Sandra Loosemore <sandra@codesourcery.com>
4761 David Ung <davidu@mips.com>
4762
4763 * config/mips/mips.h (TUNE_24K): Define.
4764 (TUNE_MACC_CHAINS): Add TUNE_24K.
4765 * config/mips/mips.md: (*mul_acc_si, *mul_sub_si): Change type to
4766 imadd.
4767 * config/mips/74k.md (r74k_int_mult): Split madd/msub to ..
4768 (r74k_int_madd): .. this new reservation.
4769 (define_bypass): Fixed bypasses for r74k_int_madd to use
4770 mips_linked_madd_p.
4771 * config/mips/24k.md (define_bypass): Define new
4772 r24k_int_mul3->r24k_int_madd bypass using mips_linked_madd_p.
4773
4774 2007-07-16 Sandra Loosemore <sandra@codesourcery.com>
4775 Nigel Stephens <nigel@mips.com>
4776
4777 * config/mips/mips.md: Include 20kc.md.
4778 * config/mips/20kc.md: New file.
4779 * config/mips/mips.c (mips_rtx_cost_data): Fill in 20Kc costs.
4780 (mips_adjust_cost): Tweak for 20Kc.
4781 (mips_issue_rate): Likewise.
4782 * config/mips/mips.h (TUNE_20KC): Define.
4783
4784 2007-07-16 David Edelsohn <edelsohn@gnu.og>
4785
4786 * config/rs6000/rs6000.c (struct processor_cost): Add
4787 cache_line_size, l1_cache_lines, and simultaneous_prefetches
4788 fields.
4789 (*_cost): Add cache information.
4790 (rs6000_override_options): Set cache parameters.
4791
4792 2007-07-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4793
4794 PR bootstrap/3456
4795 * config.gcc (mips-sgi-irix[56]*): Enable pthread support.
4796 * doc/install.texi (mips-sgi-irix6): pthread support works now.
4797
4798 2007-07-16 Paul Brook <paul@codesourcery.com>
4799
4800 PR target/32753
4801 * config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.
4802 (cirrus_thumb2_movsi_insn): Ditto.
4803
4804 2007-07-15 Geoffrey Keating <geoffk@apple.com>
4805
4806 * config/rs6000/darwin-fallback.c (interpret_libc): Change
4807 CR2_REGNO to R_CR2.
4808
4809 2007-07-15 Andrew Haley <aph@redhat.com>
4810
4811 * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL
4812 before looking in the context.
4813
4814 2007-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4815
4816 PR middle-end/32398
4817 PR middle-end/32769
4818 * pa-protos.h (pa_eh_return_handler_rtx): Declare.
4819 * pa.c (pa_extra_live_on_entry, rp_saved): Declare.
4820 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4821 (pa_output_function_prologue): Use rp_saved and
4822 current_function_is_leaf to generate .CALLINFO statement.
4823 (hppa_expand_prologue): Set rp_saved.
4824 (hppa_expand_epilogue): Use rp_saved.
4825 (pa_extra_live_on_entry, pa_eh_return_handler_rtx): New functions.
4826 * pa.h (EH_RETURN_HANDLER_RTX): Use pa_eh_return_handler_rtx.
4827
4828 2007-07-14 Dirk Mueller <dmueller@suse.de>
4829
4830 * omega.c (coalesce): Fix memory leak on early exit.
4831 * matrix-reorg.c (check_allocation_function): Likewise.
4832 * tree-vect-transform.c (vect_get_new_vect_var): free result
4833 of concat().
4834 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4835 pass pointer to edge vector
4836 (partition_hot_cold_basic_blocks): Fix memory leak.
4837 * collect2.c (prefix_from_string): Free temporary storage.
4838 * reload1.c (fixup_abnormal_edges): Free sbitmap.
4839
4840 2007-07-14 Kaz Kojima <kkojima@gcc.gnu.org>
4841
4842 * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
4843 (DO_GLOBAL_DTORS_BODY): Likewise.
4844
4845 2007-07-14 Sandra Loosemore <sandra@codesourcery.com>
4846 Nigel Stephens <nigel@mips.com>
4847
4848 * config/mips/mips.c (mips_classify_symbol): Don't return
4849 SYMBOL_SMALL_DATA for constant pool addresses if
4850 TARGET_EMBEDDED_DATA is true.
4851
4852 2007-07-14 Uros Bizjak <ubizjak@gmail.com>
4853
4854 * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
4855 except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
4856 __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
4857 __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
4858 __builtin_ia32_storehps, __builtin_ia32_storelps,
4859 __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
4860 __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
4861 __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
4862 __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
4863 __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
4864 __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
4865 __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
4866 __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
4867 using def_builtin_const.
4868
4869 2007-07-14 Eric Botcazou <ebotcazou@adacore.com>
4870
4871 PR tree-optimization/32705
4872 * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
4873 (simplify_binary_expression): Use SSA_VAL consistently.
4874
4875 2007-07-13 David Edelsohn <edelsohn@gnu.org>
4876
4877 * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
4878 (SPEFSCR_REGNO): Delete definition.
4879 * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
4880 COUNT_REGISTER_REGNUM -> CTR_REGNO.
4881 * config/rs6000/rs6000.h: Do not define *_REGNO.
4882 LINK_REGISTER_REGNUM -> LR_REGNO.
4883 COUNT_REGISTER_REGNUM -> CTR_REGNO.
4884 * config/rs6000/predicates.md: LINK_REGISTER_REGNUM -> LR_REGNO.
4885 COUNT_REGISTER_REGNUM -> CTR_REGNO.
4886 * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
4887 R_VRSAVE, R_VSCR. Use them.
4888 * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
4889 R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR. Use them.
4890 * config/rs6000/rs6000.md: Define REGNO constants. Use them.
4891 * config/rs6000/aix.h: Define R_LR. Use it.
4892
4893 2007-07-13 Caroline Tice <ctice@apple.com>
4894
4895 * toplev.c (process_options): Turn flag_var_tracking_uninit off when
4896 flag_var_tracking is explicitly turned off (i.e. when variable
4897 tracking is not feasible); otherwise, turn flag_var_tracking on when
4898 flag_var_tracking_uninit is on.
4899 * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
4900 note definitions, to allow recording of initialization status in the
4901 notes.
4902 * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4903 (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
4904 determine if two note locations are equal.
4905 (output_loc_list): Don't output list entries whose start & end labels
4906 are the same.
4907 (reg_loc_descriptor): Add parameter for initialization status; pass it
4908 to other loc descriptor functions.
4909 (one_reg_loc_descriptor): Add parameter for initialization status;
4910 check its value and add DW_OP_GNU_uninit to returned loc descr if
4911 appropriate.
4912 (multiple_reg_loc_descriptor): Add parameter for initialization
4913 status;
4914 pass init status argument to other loc descriptor functions; check
4915 value of intialization parameter and add DW_OP_GNU_uninit to returned
4916 loc descr if appropriate.
4917 (based_loc_descr): Add parameter for initialization status; add new
4918 variable for return value; check value of initialization parameter and
4919 add DW_OP_GNU_uninit to returned loc descr if appropriate.
4920 (concatn_mem_loc_descriptor): Add parameter for initialization status;
4921 pass init status argument to other loc descriptor functions; check
4922 value of intialization parameter and add DW_OP_GNU_uninit to returned
4923 loc descr if appropriate.
4924 (mem_loc_descriptor): Likewise.
4925 (concat_loc_descriptor): Likewise.
4926 (concatn_loc_descriptor): Likewise.
4927 (loc_descriptor): Add parameter for initialization status; pass it as
4928 argument to other loc descriptor function calls.
4929 (loc_descriptor_from_tree_1): Add appropriate initialization status
4930 to loc descriptor function calls.
4931 (add_location_or_const_value_attribute): Get initialization status
4932 from VAR_LOCATION note; add initialization status to loc descriptor
4933 function calls.
4934 * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
4935 * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
4936 status is uninitialized, add "[uninint]" to output.
4937 * common.opt (fvar-tracking-uninit): New option, similar to
4938 fvar-tracking, to turn on tracking of uninitialized variables; creates
4939 a new global flag, flag_var_tracking_uninit.
4940 * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
4941 (enum var_init_status): New type, for var initialization status field.
4942 * var-tracking.c (struct location_chain_def): Two new fields, init,
4943 for initialization status, and set_src for the assignment value expr.
4944 (unshare_variable): New parameter for initialization status;
4945 initialize new init and set_src fields.
4946 (var_reg_set): New parameters for initialization status and value;
4947 pass them to set_variable_part.
4948 (var_mem_set): Likewise.
4949 (get_init_value): New function.
4950 (var_reg_delete_and_set): New initialization status & value
4951 parameters; add call to get_init_value if status is unknown; pass new
4952 parameters to clobber_variable_part and var_reg_set.
4953 (var_mem_delete_and_set): Likewise.
4954 (var_reg_delete): Pass null set_src value to clobber_variable_part.
4955 (var_mem_delete): Likewise.
4956 (variable_union): Pass status to unshare_variable; initialize new init
4957 and set_src fields. If flag_var_tracking_uninit is not set, force
4958 status to initialized.
4959 (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
4960 used later to get the set_src value.
4961 (find_src_status): New function.
4962 (find_src_set_src): New function.
4963 (compute_bb_dataflow): Pass init status to calls to var_reg_set,
4964 var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
4965 MO_SET, get set_src value and pass it to var_reg_delete_and_set
4966 and var_mem_delete_and_set.
4967 (dump_variable): Print out "[uninit]" if appropriate.
4968 (set_variable_part): Add new initialization and set_src parameters;
4969 pass status to unshare_variable; set node->init and node- >set_src
4970 fields and modify slot in hash table appropriately; save the init and
4971 set_src values if appropriate and assign to the new node.
4972 (clobber_variable_part): New set_src parameter; if two nodes have
4973 same variable and same location but different set_src (assignment)
4974 values, clobber old node.
4975 (delete_variable_part): Pass init status to unshare_variable.
4976 (emit_note_insn_var_location): Add initialized var; assign var's init
4977 status to new 'initialized'; pass new init status field to calls to
4978 gen_rtx_VAR_LOCATION. If flag_var_tracking_uninit is not set, force
4979 status to initialized.
4980 (emit_notes_in_bb): Pass initialization status to calls to
4981 var_reg_set, var_mem_set, var_reg_delete_and_set and
4982 var_mem_delete_and_set; for MO_SET, get set_src value and pass it to
4983 var_reg_delete_and_set and var_mem_delete_and_set; call
4984 emit_notes_for_changes on NEXT_INSN(insn) rather than on insn, to
4985 make up for change in add_stores.
4986 (vt_add_function_parameters): Add status to calls to
4987 set_variable_part.
4988 * config/darwin.c (darwin_override_options): Turn on uninitialized
4989 tracking automatically, if var_tracking is on and the system is
4990 10.5 or higher.
4991
4992 2007-07-13 Sa Liu <saliu@de.ibm.com>
4993
4994 * config.gcc: Add options for arch and tune on SPU.
4995 * config/spu/predicates.md: Add constant operands 0 and 1.
4996 * config/spu/spu-builtins.def: Add builtins for double precision
4997 floating point comparison: si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt,
4998 si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
4999 spu_testsv.
5000 * config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with
5001 a CELLEDP target.
5002 * config/spu/spu-protos.h: Add new function prototypes.
5003 * config/spu/spu.c (spu_override_options): Check options -march and
5004 -mtune.
5005 (spu_comp_icode): Add comparison code for DFmode and vector mode.
5006 (spu_emit_branch_or_set): Use the new code for DFmode and vector
5007 mode comparison.
5008 (spu_const_from_int): New. Create a vector constant from 4 ints.
5009 (get_vec_cmp_insn): New. Get insn index of vector compare instruction.
5010 (spu_emit_vector_compare): New. Emit vector compare.
5011 (spu_emit_vector_cond_expr): New. Emit vector conditional expression.
5012 * config/spu/spu.h: Add options -march and -mtune. Define processor
5013 types PROCESSOR_CELL and PROCESSOR_CELLEDP. Define macro
5014 CANONICALIZE_COMPARISON.
5015 * config/spu/spu.md: Add new insns for double precision compare
5016 and double precision vector compare. Add vcond and smax/smin patterns
5017 to enable DFmode vector conditional expression.
5018 * config/spu/spu.opt: Add options -march and -mtune.
5019 * config/spu/spu_internals.h: Add builtins for CELLEDP target:
5020 si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv. Add builtin for
5021 both CELL and CELLEDP targets: spu_testsv.
5022 * config/spu/spu_intrinsics.h: Add flag mnemonics for test special
5023 values.
5024
5025 2007-07-13 Richard Guenther <rguenther@suse.de>
5026
5027 PR tree-optimization/32721
5028 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
5029 TREE_THIS_VOLATILE on the folded reference.
5030 * tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
5031 if the array reference has TREE_THIS_VOLATILE set.
5032
5033 2007-07-13 H.J. Lu <hongjiu.lu@intel.com>
5034
5035 PR other/32188
5036 * doc/libgcc.texi: Update DFP intrinsics for DPD and BID.
5037
5038 2007-07-13 Andreas Schwab <schwab@suse.de>
5039
5040 * gengtype-lex.l: Allow declarations to be indented.
5041
5042 2007-07-12 Geoffrey Keating <geoffk@apple.com>
5043
5044 * ginclude/tgmath.h: New.
5045 * config.gcc: Use GCC's tgmath.h on non-glibc systems.
5046 * doc/sourcebuild.texi (Headers): Document use_gcc_tgmath.
5047 * configure.ac (STMP_FIXPROTO): Honor use_gcc_tgmath.
5048 * configure: Regenerate.
5049
5050 2007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
5051
5052 * config/sh/linux-unwind.h (sh_fallback_frame_state): Use
5053 correct index when setting register save state for xd
5054 registers.
5055
5056 2007-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
5057
5058 * config/sh/sh.c (mark_use): Remove.
5059
5060 2007-07-12 Paul Brook <paul@codesourcery.com>
5061
5062 * config/arm/arm.c (thumb1_compute_save_reg_mask): Make sure scratch
5063 reg does not overlap return value.
5064
5065 2007-07-12 Daniel Berlin <dberlin@dberlin.org>
5066
5067 * tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
5068 (set_expression_vuses): Ditto.
5069 (init_pre): Initialize expression_vuses.
5070
5071 2007-07-12 Zdenek Dvorak <dvorakz@suse.cz>
5072
5073 * config/i386/sse.md (storentdf, storentsf): New.
5074
5075 2007-07-12 Geoffrey Keating <geoffk@apple.com>
5076
5077 * builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
5078 FUNCTION_DECL.
5079 * tree.c (build_decl_stat): Move code from here...
5080 (make_node_stat): ... to here. Don't uselessly clear DECL_USER_ALIGN.
5081 (expr_align): Honor DECL_ALIGN on a FUNCTION_DECL. Add comment
5082 about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
5083 * tree.h (DECL_USER_ALIGN): Fix misplaced comment.
5084 * varasm.c (assemble_start_function): Use DECL_ALIGN instead of
5085 FUNCTION_BOUNDARY.
5086
5087 2007-07-12 Dorit Nuzman <dorit@il.ibm.com>
5088 Devang Patel <dpatel@apple.com>
5089
5090 PR tree-optimization/25413
5091 * targhooks.c (default_builtin_vector_alignment_reachable): New.
5092 * targhooks.h (default_builtin_vector_alignment_reachable): New.
5093 * tree.h (contains_packed_reference): New.
5094 * expr.c (contains_packed_reference): New.
5095 * tree-vect-analyze.c (vector_alignment_reachable_p): New.
5096 (vect_enhance_data_refs_alignment): Call
5097 vector_alignment_reachable_p.
5098 * target.h (vector_alignment_reachable): New builtin.
5099 * target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
5100 * config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
5101 (TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.
5102
5103 2007-07-12 Dorit Nuzman <dorit@il.ibm.com>
5104
5105 * target.h (builtin_vectorization_cost): Add new target builtin.
5106 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
5107 * tree-vectorizer.h (TARG_SCALAR_STMT_COST): New.
5108 (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST): New.
5109 * tree-vect-analyze.c (vect_analyze_slp_instance): Initisliaze
5110 uninitialized variables.
5111 * tree-vect-transform.c (cost_for_stmt): New function.
5112 (vect_estimate_min_profitable_iters): Call cost_for_stmt instead of
5113 using cost 1 for all scalar stmts. Be less conservative when
5114 estimating the number of prologue/epulogue iterations. Call
5115 targetm.vectorize.builtin_vectorization_cost. Return
5116 min_profitable_iters-1.
5117 (vect_model_reduction_cost): Use TARG_SCALAR_TO_VEC_COST for
5118 initialization cost instead of TARG_VEC_STMT_COST. Use
5119 TARG_VEC_TO_SCALAR_COST instead of TARG_VEC_STMT_COST for reduction
5120 epilogue code. Fix epilogue cost computation.
5121 * config/spu/spu.c (spu_builtin_vectorization_cost): New.
5122 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Implement.
5123 * config/spu/spu.h (TARG_COND_BRANCH_COST, TARG_SCALAR_STMT_COST):
5124 (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST, TARG_VEC_STMT_COST):
5125 (TARG_VEC_TO_SCALAR_COST, TARG_SCALAR_TO_VEC, TARG_VEC_LOAD_COST):
5126 (TARG_VEC_UNALIGNED_LOAD_COST, TARG_VEC_STORE_COST): Define.
5127
5128 2007-07-12 Richard Guenther <rguenther@suse.de>
5129
5130 * gimplify.c (gimplify_conversion): Make sure that the result
5131 from maybe_fold_offset_to_reference is trivially convertible
5132 to the desired type before doing the simplification.
5133 (gimplify_expr): Likewise.
5134 * fold-const.c (fold_binary): Use the correct types for
5135 building the simplified expression.
5136
5137 2007-07-12 Zdenek Dvorak <dvorakz@suse.cz>
5138
5139 PR rtl-optimization/32729
5140 * cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
5141 that fallthru to exit.
5142
5143 2007-07-12 Kaz Kojima <kkojima@gcc.gnu.org>
5144
5145 * config/sh/sh.md (symGOTOFF2reg): Add missing parenthesis.
5146 (symDTPOFF2reg): Likewise.
5147
5148 2007-07-11 Daniel Berlin <dberlin@dberlin.org>
5149
5150 PR tree-optimization/32663
5151
5152 * tree.h (VALUE_HANDLE_VUSES): Remove.
5153 (struct tree_value_handle): Remove vuses.
5154
5155 * tree-vn.c (create_value_handle_for_expr): Don't set
5156 VALUE_HANDLE_VUSES.
5157
5158 * tree-ssa-pre.c (expression_vuses): New.
5159 (alloc_expression_id): Set up expression_vuses.
5160 (get_expression_vuses): New.
5161 (set_expression_vuses): Ditto.
5162 (clear_expression_ids): Modify for expression_vuses.
5163 (phi_translate_1): Ditto.
5164 (phi_translate_set): Ditto.
5165 (value_dies_in_block_x): Ditto
5166 (valid_in_sets): Ditto.
5167 (add_to_sets): Ditto.
5168 (find_existing_value_expr): Ditto.
5169 (create_value_handle_for_expr): Ditto.
5170 (make_values_for_stmt): Ditto.
5171 (vuse_equiv): Remove.
5172
5173 2007-07-11 Alexandre Oliva <aoliva@redhat.com>
5174
5175 * Makefile.in (mostlyclean): Remove object files.
5176
5177 2007-07-11 Kenneth Zadeck <zadeck@naturalbridge.com>
5178
5179 * toplev.c (no_new_pseudos): Deleted.
5180 * rtl.h (no_new_pseudos): Deleted.
5181 * tree-pass.h (pass_no_new_pseudos): Deleted.
5182 * passes.c (pass_no_new_pseudos): Deleted.
5183 * final.c (rest_of_clean_state): Removed no_new_pseudos.
5184 (rest_of_no_new_pseudos, pass_no_new_pseudos): Deleted.
5185 * struct-equiv.c (rtx_equiv_p): Replaced no_new_pseudos with
5186 reload_completed.
5187 * cfgcleanup.c (try_crossjump_to_edge): Ditto.
5188 * rtlhooks.c (gen_lowpart_general): Ditto.
5189 * optabs.c (prepare_operand): Ditto.
5190 * mode-switching.c (rest_of_handle_mode_switching): Deleted set of
5191 no_new_pseudos.
5192 * modulo-sched.c (rest_of_handle_sms): Ditto.
5193 * see.c (rest_of_handle_see): Ditto.
5194 * ifcvt.c (if_convert): Ditto.
5195 (gate_handle_if_after_combine): Replaced no_new_pseudos with
5196 reload_completed.
5197 * init-regs.c (gate_initialize_regs): Deleted set of
5198 no_new_pseudos.
5199 * lower-subreg.c (decompose_multiword_subregs): Ditto.
5200 * bb-reorder.c (rest_of_handle_partition_blocks): Ditto.
5201 * doc/md.texi: Changed no_new_pseudos to can_create_pseudo_p.
5202
5203 2007-07-11 Uros Bizjak <ubizjak@gmail.com>
5204
5205 PR target/32661
5206 * config/i386/sse.md (*sse2_storeq_rex64): Handle 64bit mem->reg moves.
5207 (*vec_extractv2di_1_sse2): Disable for TARGET_64BIT.
5208 (*vec_extractv2di_1_rex64): New insn pattern.
5209
5210 2007-07-11 David Daney <ddaney@avtrex.com>
5211
5212 * config/mips/linux-unwind.h (mips_fallback_frame_state): Rewrite
5213 return address calculation. Substitute DWARF_ALT_FRAME_RETURN_COLUMN
5214 for SIGNAL_UNWIND_RETURN_COLUMN.
5215 * config/mips/mips.h (SIGNAL_UNWIND_RETURN_COLUMN): Remove.
5216 (DWARF_FRAME_REGNUM): Rewrite.
5217 (DWARF_ALT_FRAME_RETURN_COLUMN) Define.
5218
5219 2007-07-11 Nick Clifton <nickc@redhat.com>
5220
5221 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Revert previous
5222 delta and use gen_int_mode in place of GET_INT instead.
5223
5224 2007-07-11 Uros Bizjak <ubizjak@gmail.com>
5225
5226 * reg-stack.c (struct tree_opt_pass pass_stack_regs): Nullify name
5227 and letter field.
5228
5229 2007-07-11 Douglas Gregor <doug.gregor@gmail.com>
5230
5231 * params.def (PARAM_VERIFY_CANONICAL_TYPES): Remove.
5232 (PARAM_USE_CANONICAL_TYPES): New; decides whether to use canonical
5233 types or not.
5234 * params.h (VERIFY_CANONICAL_TYPES): Remove.
5235 (USE_CANONICAL_TYPES): New.
5236 * doc/invoke.texi (verify-canonical-types): Remove.
5237 (use-canonical-types): Add.
5238
5239 2007-07-11 Ulrich Weigand <uweigand@de.ibm.com>
5240
5241 * config/spu/spu.c (spu_optimization_options): Remove setting of
5242 parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
5243 (spu_override_options): Move it here.
5244
5245 2007-07-11 Richard Sandiford <richard@codesourcery.com>
5246
5247 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and -m4ksd.
5248 * config/mips/mips.c (mips_cpu_info_table): Mention
5249 MIPS_ISA_LEVEL_SPEC in the comment.
5250
5251 2007-07-11 Eric Botcazou <ebotcazou@adacore.com>
5252
5253 PR tree-optimization/32713
5254 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle REAL_CST.
5255
5256 2007-07-11 Paolo Carlini <pcarlini@suse.de>
5257
5258 PR middle-end/30482
5259 * c-opts.c (c_common_post_options): Do not change flag_complex_method
5260 conditional to flag_isoc99.
5261 (c_common_init_options): Do it here, unconditionally.
5262
5263 2007-07-11 Eric Botcazou <ebotcazou@adacore.com>
5264
5265 PR tree-optimization/32589
5266 * doc/tree-ssa.texi (Rough GIMPLE Grammar): Add missing rule.
5267 * tree-gimple.c (is_gimple_min_invariant): Clarify head comment.
5268 * tree-ssa-propagate.c (valid_gimple_expression_p): New
5269 predicate, extracted from...
5270 (set_rhs): ...here. Call it for the expression on entry.
5271 * tree-ssa-propagate.h (valid_gimple_expression_p): Declare.
5272 * tree-ssa-sccvn.c: Include tree-ssa-propagate.h.
5273 (simplify_binary_expression): Use valid_gimple_expression_p
5274 to validate the simplification.
5275 * Makefile.in (tree-ssa-sccvn.o): Depends on tree-ssa-propagate.h.
5276
5277 2007-07-11 Danny Smith <dannysmith@users.sourceforge.net>
5278
5279 * config/i386/cygming.h (PREFERRED_DEBUGGING_TYPE): Define to
5280 DWARF2_DEBUG on 32 bit target too.
5281 (DWARF2_UNWIND_INFO): Reorganize 64-bit vs 32-bit definition.
5282
5283 2007-07-11 Nick Clifton <nickc@redhat.com>
5284
5285 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Provide alternative
5286 version for 64-bit hosts.
5287
5288 2007-07-10 David Daney <ddaney@avtrex.com>
5289
5290 * config/mips/mips.h (ISA_HAS_SYNCI): New target capability
5291 predicate.
5292 (INITIALIZE_TRAMPOLINE): Emit clear_cache insn instead of library
5293 call.
5294 * config/mips/mips.c (mips_expand_synci_loop): New function.
5295 * config/mips/mips.md (UNSPEC_CLEAR_HAZARD): New constant.
5296 (UNSPEC_RDHWR): Same.
5297 (UNSPEC_SYNCI): Same.
5298 (UNSPEC_SYNC): Same.
5299 (clear_cache): New expand.
5300 (sync): New insn.
5301 (synci): Same.
5302 (rdhwr): Same.
5303 (clear_hazard): Same.
5304 * config/mips/mips-protos.h (mips_expand_synci_loop): Declare
5305 function.
5306 * testsuite/gcc.target/mips/clear-cache-1.c: New test.
5307 * testsuite/gcc.target/mips/clear-cache-2.c: New test.
5308
5309 2007-07-10 Ian Lance Taylor <iant@google.com>
5310
5311 * emit-rtl.c (gen_reg_rtx): Check can_create_pseudo_p rather than
5312 no_new_pseudos.
5313
5314 2007-07-10 David Daney <ddaney@avtrex.com>
5315
5316 * builtins.def (BUILT_IN_CLEAR_CACHE): New builtin.
5317 * builtins.c (expand_builtin___clear_cache): New function.
5318 (expand_builtin): Call expand_builtin___clear_cache for
5319 BUILT_IN_CLEAR_CACHE case.
5320 * doc/extend.texi (__builtin___clear_cache): Document new builtin.
5321 * doc/md.texi (clear_cache): Document new instruction pattern.
5322 * testsuite/gcc.dg/builtins-64.c: New test.
5323
5324 2007-07-11 Hans-Peter Nilsson <hp@axis.com>
5325
5326 * config/cris/cris.md ("movsi"): Fix typo in last change.
5327
5328 2007-07-09 Geoffrey Keating <geoffk@apple.com>
5329
5330 PR 32617
5331 * c-common.c (c_alignof_expr): Look at DECL_ALIGN of
5332 FUNCTION_DECLs.
5333 (handle_aligned_attribute): Allow use on FUNCTION_DECLs.
5334 * varasm.c (assemble_start_function): Honor DECL_ALIGN
5335 for FUNCTION_DECLs. Don't use align_functions_log if
5336 DECL_USER_ALIGN.
5337 * print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
5338 even for FUNCTION_DECLs.
5339 * c-decl.c (merge_decls): Propagate DECL_ALIGN even for
5340 FUNCTION_DECLs.
5341 * tree.h (DECL_ALIGN): Update for new location of 'align'.
5342 (DECL_FUNCTION_CODE): Update for new location and name of
5343 'function_code'.
5344 (DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
5345 (struct tree_decl_common): Move 'align' and 'off_align' out
5346 of union, ensure they're still on a 32-bit boundary. Remove
5347 other fields in union 'u1'.
5348 (struct tree_function_decl): Add field 'function_code' replacing
5349 'u1.f' in tree_decl_common.
5350 * tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
5351 * doc/extend.texi (Function Attributes): Add 'aligned' attribute.
5352 (Variable Attributes): Cross-reference 'aligned' attribute
5353 to Function Attributes.
5354 * flags.h (force_align_functions_log): Delete.
5355 * toplev.c (force_align_functions_log): Delete.
5356
5357 2007-07-10 Uros Bizjak <ubizjak@gmail.com>
5358
5359 PR target/32708
5360 * config/i386/sse.md (vec_concatv2di): Disable for TARGET_64BIT.
5361 (*vec_concatv2di_rex): New insn pattern.
5362
5363 2007-07-10 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5364
5365 PR target/32538
5366 * config/mips/iris6.h (LIBGCC_SPEC): Add libm.
5367
5368 2007-07-10 Ian Lance Taylor <iant@google.com>
5369
5370 Replace no_new_pseudos in backends.
5371 * rtl.h (can_create_pseudo_p): Define.
5372 * config/darwin.c (machopic_indirect_data_reference): Use
5373 can_create_pseudo_p () instead of no_new_pseudos.
5374 (machopic_indirect_data_reference): Likewise.
5375 (machopic_legitimize_pic_address): Likewise.
5376 * config/alpha/alpha.c (alpha_legitimize_address): Likewise.
5377 (alpha_emit_set_const_1): Likewise.
5378 (alpha_emit_set_const): Likewise.
5379 (alpha_emit_conditional_move): Likewise.
5380 (alpha_split_conditional_move): Likewise.
5381 * config/alpha/alpha.md (various splitters): Likewise.
5382 (movti): Likewise.
5383 * config/arm/arm.c (legitimize_pic_address): Likewise.
5384 (arm_load_pic_register): Likewise.
5385 * config/arm/arm.md (addsi3, subsi3, andsi3, iorsi3): Likewise.
5386 (movdi, movsi, movhi, movqi, movsf, movdf): Likewise.
5387 * config/bfin/bfin.c (legitimize_pic_address): Likewise.
5388 * config/cris/cris.c (cris_expand_pic_call_address): Likewise.
5389 * config/cris/cris.md (movsi): Likewise.
5390 * config/frv/frv.md (symGOT2reg_hilo): Likewise.
5391 (symGOTOFF2reg_hilo): Likewise.
5392 (symGPREL2reg, symGPREL2reg_hilo): Likewise.
5393 * config/h8300/h8300.md (insv, extzv): Likewise.
5394 * config/i386/i386.c (ix86_expand_move): Likewise.
5395 (ix86_expand_vector_move): Likewise.
5396 (ix86_prepare_fp_compare_args): Likewise.
5397 (ix86_expand_carry_flag_compare): Likewise.
5398 * config/i386/i386.md (tls_dynamic_gnu2_32): Likewise.
5399 (tls_dynamic_gnu2_combine_32): Likewise.
5400 (tls_dynamic_gnu2_64, tls_dynamic_gnu2_combine_64): Likewise.
5401 * config/ia64/ia64.c (ia64_expand_move): Likewise.
5402 (ia64_expand_movxf_movrf): Likewise.
5403 * config/m32c/m32c.c (m32c_prepare_move): Likewise.
5404 (m32c_split_move): Likewise.
5405 (m32c_expand_insv): Likewise.
5406 * config/m68k/m68k.md (movsi): Likewise.
5407 * config/mips/mips.c (mips_force_temporary): Likewise.
5408 (mips_split_symbol): Likewise.
5409 (mips_move_integer): Likewise.
5410 (mips_legitimize_const_move): Likewise.
5411 * config/mn10300/mn10300.md (movsi): Likewise.
5412 * config/pa/pa.c (emit_move_sequence): Likewise.
5413 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5414 (rs6000_got_register): Likewise.
5415 (create_TOC_reference): Likewise.
5416 (rs6000_machopic_legitimize_pic_address): Likewise.
5417 * config/rs6000/rs6000.md (add<mode>3): Likewise.
5418 (various splitters): Likewise.
5419 (iorsi3, xorsi3, iordi3, xordi3): Likewise.
5420 (movsi_got): Likewise.
5421 * config/s390/s390.c (emit_symbolic_move): Likewise.
5422 * config/s390/s390.md (movhi, movqi): Likewise.
5423 (load_multiple, store_multiple): Likewise.
5424 * config/score/score.c (score_force_temporary): Likewise.
5425 * config/sh/sh.c (prepare_move_operands): Likewise.
5426 (prepare_cbranch_operands): Likewise.
5427 (emit_fpu_switch): Likewise.
5428 (fpscr_set_from_mem): Likewise.
5429 * config/sh/sh.md (movdicc, movsicc, movsicc_umin): Likewise.
5430 (adddi3, subsi3): Likewise.
5431 (various splitters): Likewise.
5432 (divsi_inv_fp_combine): Likewise.
5433 (symGOT_load, symGOTOFF2reg, symDTPOFF2reg): Likewise.
5434 (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu): Likewise.
5435 (sne): Likewise.
5436 * config/sh/predicates.md (xor_operand): Likewise.
5437 * config/sparc/sparc.c (legitimize_tls_address): Likewise.
5438 * config/sparc/sparc.md (movsi_pic_label_ref): Likewise.
5439 (movdi_pic_label_ref): Likewise.
5440 * config/spu/spu.c (spu_split_immediate): Likewise.
5441 * config/alpha/alpha.md (various splitters): Remove test
5442 !no_new_pseudos || reload_completed.
5443 * config/ia64/ia64.c (ia64_output_mi_thunk): Don't set
5444 no_new_pseudos.
5445 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
5446 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
5447 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
5448 * config/score/score.c (th_output_mi_thunk): Likewise.
5449 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
5450 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5451
5452 2007-07-10 Kaz Kojima <kkojima@gcc.gnu.org>
5453
5454 PR rtl-optimization/32664
5455 * mode-switching.c (create_pre_exit): Skip barrier insns.
5456
5457 2007-07-10 Zdenek Dvorak <dvorakz@suse.cz>
5458
5459 * tree-scalar-evolution.c (scev_const_prop): Add arguments to
5460 force_gimple_operand_bsi.
5461 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
5462 rewrite_use_compare): Ditto.
5463 * tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
5464 Ditto.
5465 * tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
5466 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
5467 * lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
5468 * tree-profile.c (prepare_instrumented_value,
5469 tree_gen_interval_profiler, tree_gen_pow2_profiler,
5470 tree_gen_one_value_profiler, tree_gen_ic_profiler,
5471 tree_gen_ic_func_profiler, tree_gen_average_profiler,
5472 tree_gen_ior_profiler): Ditto.
5473 * tree-ssa-reassoc.c (negate_value): Ditto.
5474 * matrix-reorg.c (transform_access_sites, transform_allocation_sites):
5475 Use force_gimple_operand_bsi.
5476 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
5477 * tree-if-conv.c (add_to_dst_predicate_list,
5478 find_phi_replacement_condition): Ditto.
5479 * gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
5480 Call mark_symbols_for_renaming for new statements.
5481 * tree-flow.h (force_gimple_operand_bsi): Declaration changed.
5482
5483 2007-07-10 Zdenek Dvorak <dvorakz@suse.cz>
5484
5485 * cfghooks.c (remove_edge): New function.
5486 (redirect_edge_and_branch, remove_branch, merge_blocks): Updated
5487 loop exit rescans.
5488 * cfghooks.h (remove_edge): Declare.
5489 * cfg.c (remove_edge): Renamed to remove_edge_raw.
5490 * basic-block.h (remove_edge): Declaration changed to remove_edge_raw.
5491
5492 2007-07-09 Wolfgang Gellerich <gellerich@de.ibm.com>
5493
5494 * optabs.h: Added declaration for signbit_optab.
5495 * optabs.c: (init_optabs): Added initialization for signbit_optab.
5496 * genoptinit.c (optabs): Added entry for signbit insns.
5497 * builtins.c (expand_builtin_signbit): Added code to use a signbit
5498 insn, if available.
5499 * config/s390/s390.h (S390_TDC_SIGNBIT_SET): New constant.
5500 * config/s390/s390.md (signbit<mode>2): New expander.
5501
5502 2007-07-09 Richard Guenther <rguenther@suse.de>
5503
5504 PR middle-end/32698
5505 * fold-const.c (fold_plusminus_mult_expr): Move constant
5506 arguments second to allow decomposing.
5507
5508 2007-07-09 Alexandre Oliva <aoliva@oliva.athome.lsd.ic.unicamp.br>
5509
5510 Revert:
5511 2007-07-06 Alexandre Oliva <aoliva@redhat.com>
5512 PR debug/23551
5513 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
5514 Disregard DECL_FROM_INLINE.
5515
5516 2007-07-09 Uros Bizjak <ubizjak@gmail.com>
5517
5518 PR target/27855
5519 * doc/invoke.texi: Add ftree-reassoc flag.
5520 * common.opt (ftree-reassoc): New flag.
5521 * tree-ssa-reassoc.c (gate_tree_ssa_reassoc): New static function.
5522 (struct tree_opt_pass pass_reassoc): Use gate_tree_ssa_reassoc.
5523
5524 2007-07-09 Uros Bizjak <ubizjak@gmail.com>
5525
5526 PR tree-optimization/32681
5527 * tree-if-conv.c (find_phi_replacement_condition): Use the condition
5528 saved in second_edge->aux when first_bb is a loop header.
5529
5530 2007-07-09 Jan HUbicka <jh@suse.cz>
5531
5532 * cse.c (cse_insn): Avoid invalid sharing on trial replacement.
5533
5534 2007-07-09 Richard Guenther <rguenther@suse.de>
5535
5536 * c-decl.c (start_function): Do not promote return type.
5537
5538 2007-07-08 Daniel Franke <franke.daniel@gmail.com>
5539
5540 * function.c (do_warn_unused_parameter): Do not warn if
5541 TREE_NO_WARNING is set.
5542
5543 2007-07-08 Andreas Schwab <schwab@suse.de>
5544
5545 * doc/invoke.texi (DEC Alpha/VMS Options): Fix typo.
5546
5547 2007-07-08 Sandra Loosemore <sandra@codesourcery.com>
5548
5549 Revert this patch:
5550 2007-07-06 Sandra Loosemore <sandra@codesourcery.com>
5551
5552 * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
5553 apply to assembly language, too.
5554 * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
5555
5556 2007-07-07 Daniel Berlin <dberlin@dberlin.org>
5557
5558 Revert (note the sccvn portions are *not* reverted)
5559 2007-07-06 Daniel Berlin <dberlin@dberlin.org>
5560
5561 Fix PR tree-optimization/23488
5562
5563 * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
5564 handles.
5565 * tree-flow-inline.h (get_value_handle): Ditto.
5566 * tree-ssa-pre.c (decl_vh_map): New.
5567 (decl_node_pool): New.
5568 (can_value_number_operation): Support DECL_P.
5569 (can_PRE_operation): Ditto.
5570 (create_expression_by_pieces): Ditto.
5571 (find_existing_value_expr): Modify to differnetiate between
5572 addressing and top level.
5573 (create_value_handle_for_expr): Handle DECL's.
5574 (poolify_tree): Ditto.
5575 (make_values_for_phi): Don't insert into PHI_GEN during FRE.
5576 (make_values_for_stmt): Handle DECL's properly.
5577 (init_pre): Reorg to not init useless things during FRE.
5578 (fini_pre): Ditto.
5579 * tree-flow.h: Include pointer-set.h.
5580 (decl_vh_map): Declare.
5581 * Makefile.in (TREE_FLOW_H): Add pointer-set.h
5582
5583 2007-07-07 Eric Weddington <eweddington@cso.atmel.com>
5584
5585 * config/avr/constraints.md (define_memory_constraint "Q"): Fix
5586 the constraint description.
5587 * doc/md.texi: Update documentation of AVR constraints.
5588
5589 2007-07-07 Kazu Hirata <kazu@codesourcery.com>
5590
5591 * auto-inc-dec.c, config/arm/arm.c,
5592 config/m32r/constraints.md, config/mips/mips.md,
5593 config/rs6000/rs6000.c, cselib.c, dce.c, df-core.c,
5594 df-problems.c, df-scan.c, df.h, dse.c, gimplify.c,
5595 tree-if-conv.c, tree-ssa-sccvn.c, tree-ssa.c: Fix comment
5596 typos. Follow spelling conventions.
5597 * doc/invoke.texi, doc/rtl.texi: Fix typos.
5598
5599 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
5600 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
5601
5602 * tree-ssa-operands.c (realloc_vop, realloc_vdef,
5603 realloc_vuse): Remove.
5604 * tree-ssa-operands.h: Remove the prototype for realloc_vdef
5605 and realloc_vuse.
5606
5607 2007-07-06 Daniel Berlin <dberlin@dberlin.org>
5608
5609 Fix PR tree-optimization/23488
5610
5611 * tree-ssa-sccvn.c (expr_has_constants): Handle tcc_declaration.
5612 (try_to_simplify): Ditto.
5613 (visit_use): Ditto.
5614 * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
5615 handles.
5616 * tree-flow-inline.h (get_value_handle): Ditto.
5617 * tree-ssa-pre.c (decl_vh_map): New.
5618 (decl_node_pool): New.
5619 (can_value_number_operation): Support DECL_P.
5620 (can_PRE_operation): Ditto.
5621 (create_expression_by_pieces): Ditto.
5622 (find_existing_value_expr): Modify to differnetiate between
5623 addressing and top level.
5624 (create_value_handle_for_expr): Handle DECL's.
5625 (poolify_tree): Ditto.
5626 (make_values_for_phi): Don't insert into PHI_GEN during FRE.
5627 (make_values_for_stmt): Handle DECL's properly.
5628 (init_pre): Reorg to not init useless things during FRE.
5629 (fini_pre): Ditto.
5630 * tree-flow.h: Include pointer-set.h.
5631 (decl_vh_map): Declare.
5632 * Makefile.in (TREE_FLOW_H): Add pointer-set.h
5633
5634 2007-07-06 Sandra Loosemore <sandra@codesourcery.com>
5635
5636 * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
5637 apply to assembly language, too.
5638 * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
5639
5640 2007-07-06 Ian Lance Taylor <iant@google.com>
5641 Zack Weinberg <zackw@panix.com>
5642
5643 PR middle-end/32441
5644 * builtins.c (std_expand_builtin_va_start): Don't use make_tree.
5645
5646 2007-07-06 Richard Sandiford <richard@codesourcery.com>
5647
5648 * config/sh/sh.md (*prefetch_i4): Disable for TARGET_VXWORKS_RTP.
5649 (prefetch): Likewise if "pref" would be used.
5650
5651 2007-07-06 Josh Conner <jconner@apple.com>
5652
5653 PR middle-end/32602
5654 PR middle-end/32603
5655 * calls.c (store_one_arg): Handle arguments which are partially
5656 on the stack when detecting argument overlap.
5657
5658 2007-07-06 Bernd Schmidt <bernd.schmidt@analog.com>
5659
5660 * reload1.c (choose_reload_regs): Set reload_spill_index for regs
5661 chosen during find_reloads.
5662
5663 2007-07-06 Richard Guenther <rguenther@suse.de>
5664
5665 * gimplify.c (gimplify_call_expr): Prefer DECL_ARGUMENTS over
5666 TYPE_ARG_TYPES for verification of argument types. Use
5667 DECL_ARG_TYPE instead of the PARM_DECL type. Take excess
5668 parameters as variable arguments.
5669
5670 2007-07-06 Andreas Krebbel <krebbel1@de.ibm.com>
5671
5672 * libgcc2.h (word_type): Type definition removed.
5673 (cmp_return_type, shift_count_type): Type definitions added.
5674 (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
5675 replaced with shift_count_type.
5676 (__cmpdi2, __ucmpdi2): word_type of return type replaced with
5677 cmp_return_type.
5678 * libgcc2.c (__udivmoddi4, __moddi3): Type of local variable c
5679 changed from word_type to Wtype.
5680 (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
5681 replaced with shift_count_type.
5682 (__cmpdi2, __ucmpdi2): word_type of return type replaced with
5683 cmp_return_type.
5684 * c-common.c (handle_mode_attribute): Handling for libgcc_cmp_return
5685 and libgcc_shift_count attribute added.
5686 * target-def.h (TARGET_LIBGCC_CMP_RETURN_MODE,
5687 TARGET_LIBGCC_SHIFT_COUNT_MODE): New target hooks defined.
5688 (TARGET_INITIALIZER): New target hooks added.
5689 * targhooks.c (default_libgcc_cmp_return_mode,
5690 default_libgcc_shift_count_mode): Default implementations for the new
5691 target hooks added.
5692 * targhooks.h (default_libgcc_cmp_return_mode,
5693 default_libgcc_shift_count_mode): Function prototypes added.
5694 * target.h (struct gcc_target): Fields for the new target hooks added.
5695 * optabs.c (expand_binop): Use shift_count_mode when expanding shift
5696 as library call.
5697 (prepare_cmp_insn): Use cmp_return_mode when expanding comparison as
5698 library call.
5699
5700 * doc/tm.texi (TARGET_LIBGCC_CMP_RETURN_MODE,
5701 TARGET_LIBGCC_SHIFT_COUNT_MODE): Documentation added.
5702
5703 * config/s390/s390.c (s390_libgcc_cmp_return_mode,
5704 s390_libgcc_shift_count_mode): Functions added.
5705 (TARGET_LIBGCC_CMP_RETURN_MODE, TARGET_LIBGCC_SHIFT_COUNT_MODE):
5706 Target hooks defined.
5707
5708 2007-07-06 Richard Sandiford <richard@codesourcery.com>
5709
5710 * config/mips/mips.c (compute_frame_size): Restore the original
5711 gp_sp_offset for !GENERATE_MIPS16E_SAVE_RESTORE and remove the
5712 fp_size term from the GENERATE_MIPS16E_SAVE_RESTORE calculation.
5713 Document why the difference is needed.
5714
5715 2007-07-06 Richard Guenther <rguenther@suse.de>
5716
5717 * c-common.c (boolean_increment): Use correctly typed
5718 constant.
5719
5720 2007-07-06 Richard Sandiford <richard@codesourcery.com>
5721
5722 * config/mips/mips.c (mips16e_save_restore_pattern_p): Check that
5723 the topmost argument register is not also included in the save mask.
5724 (mips16e_collect_argument_save_p): Take a pointer to the argument
5725 register, rather than a pointer to the number of arguments.
5726 (mips16e_collect_argument_saves): Only include argument saves
5727 that aren't in the register mask.
5728
5729 2007-07-06 Uros Bizjak <ubizjak@gmail.com>
5730
5731 PR rtl-optimization/32450
5732 * function.c (thread_prologue_and_epilogue_insns): Emit blockage insn
5733 to ensure that instructions are not moved into the prologue when
5734 profiling is on. Remove unused prologue_end variable.
5735 (expand_function_end): Emit blockage insn instead of ASM_INPUT rtx
5736 as a scheduling barrier.
5737
5738 2007-07-06 Alexandre Oliva <aoliva@redhat.com>
5739
5740 PR debug/23551
5741 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
5742 Disregard DECL_FROM_INLINE.
5743
5744 2007-07-05 Adam Nemet <anemet@caviumnetworks.com>
5745
5746 * rtlanal.c (num_sign_bit_copies1): Improve cases of ANDing or
5747 IORing with a constant.
5748
5749 2007-07-05 Seongbae Park <seongbae.park@gmail.com>
5750
5751 PR rtl-optimization/32475
5752 * df-scan.c (df_def_record_1): Add a use of the stack pointer
5753 for every definition of the stack pointer.
5754
5755 2007-07-05 Richard Earnshaw <rearnsha@arm.com>
5756
5757 * arm.c (vfp3_const_double_index): Copy signed results of
5758 REAL_VALUE_TO_INT into unsigned vars.
5759
5760 2007-07-05 Richard Guenther <rguenther@suse.de>
5761
5762 PR middle-end/32639
5763 * alias.c (get_alias_set): Tread METHOD_TYPE the same as
5764 FUNCTION_TYPE.
5765 * tree-ssa.c (useless_type_conversion_p): Check canonical
5766 types early.
5767
5768 2007-07-05 Anatoly Sokolov <aesok@post.ru>
5769
5770 * config/avr/avr.md (zero_extendqihi2, zero_extendqisi2,
5771 zero_extendhisi2): Change to define_insn_and_split.
5772 (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New.
5773
5774 2007-07-05 Paolo Bonzini <bonzini@gnu.org>
5775
5776 * function.c (match_asm_constraints_1, rest_of_match_asm_constraints,
5777 pass_match_asm_constraints): New.
5778 * passes.c (init_optimization_passes): Add new pass.
5779 * stmt.c (expand_asm_operands): Set cfun->has_asm_statement.
5780 * function.h (struct function): Add has_asm_statement bit.
5781 (current_function_has_asm_statement): New.
5782 * tree-pass.h (pass_match_asm_constraints): New.
5783
5784 2007-07-05 Richard Sandiford <rsandifo@nildram.co.uk>
5785
5786 * config/mips/mips.c (mips_file_start): Avoid declaration
5787 after code.
5788
5789 2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
5790
5791 * optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
5792
5793 2007-07-05 Uros Bizjak <ubizjak@gmail.com>
5794
5795 * rtl.def (NOTE): Change print format string to print
5796 operand 5 as a note insn name.
5797
5798 2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
5799 David Ung <davidu@mips.com>
5800
5801 * config/mips/mips.c (mips_cpu_info): Add 4ksc and 4ksd processors.
5802 * doc/invoke.texi: (MIPS Options): Document them.
5803
5804 2007-07-05 Sandra Loosemore <sandra@codesourcery.com>
5805 David Ung <davidu@mips.com>
5806
5807 Add support for SmartMIPS ASE.
5808
5809 * optabs.c (expand_binop_directly): New, broken out from...
5810 (expand_binop): Here. Make it try rotating in the other
5811 direction even when the second operand isn't constant.
5812 * config/mips/mips.md (*lwxs): New.
5813 * config/mips/mips.opt (msmartmips): New.
5814 * config/mips/mips.c (mips_lwxs_address_p): New.
5815 (mips_rtx_costs): Make it recognize scaled indexed addressing.
5816 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
5817 __mips_smartmips when compiling for TARGET_SMARTMIPS.
5818 (ISA_HAS_ROR): Define for TARGET_SMARTMIPS.
5819 (ISA_HAS_LWXS): New.
5820 (ASM_SPEC): Add -msmartmips/-mno-smartmips.
5821 * doc/invoke.texi (MIPS Options): Document -msmartmips/-mno-smartmips.
5822 * testsuite/gcc.target/mips/smartmips-lwxs.c: New test case.
5823 * testsuite/gcc.target/mips/smartmips-ror-1.c: New test case.
5824 * testsuite/gcc.target/mips/smartmips-ror-2.c: New test case.
5825 * testsuite/gcc.target/mips/smartmips-ror-3.c: New test case.
5826 * testsuite/gcc.target/mips/smartmips-ror-4.c: New test case.
5827
5828 2007-07-05 Dorit Nuzman <dorit@il.ibm.com>
5829
5830 * tree-vectorizer.c (new_loop_vec_info): Initialize
5831 LOOP_VINFO_COST_MODEL_MIN_ITERS.
5832 * tree-vectorizer.h (_loop_vec_info): Added new filed
5833 min_profitable_iters.
5834 (LOOP_VINFO_COST_MODEL_MIN_ITERS): New access macro to above new field.
5835 (TARG_SCALAR_TO_VEC_COST): Define cost of scalar to vector operation.
5836 * tree-vect-analyze.c (vect_analyze_operations): Set
5837 LOOP_VINFO_COST_MODEL_MIN_ITERS.
5838 * tree-vect-transform.c (vect_estimate_min_profitable_iters): Use
5839 VEC_length to determine if there are any LOOP_VINFO_MAY_MISALIGN_STMTS.
5840 Fix calculation of peel_iters_prologue. Move consideration of epilogue
5841 and prologue cost to after they are computed.
5842 (vect_model_induction_cost): Use TARG_SCALAR_TO_VEC_COST instead of
5843 TARG_VEC_STMT_COST.
5844 (vect_model_simple_cost): Takes additional argument dt. Consider cost
5845 of creating vectors from scalars according to dt.
5846 (vect_model_store_cost): Likewise.
5847 (vectorizable_call): Use dt array instead of scalar dt. Call
5848 vect_model_simple_cost with additional argument dt.
5849 (vectorizable_assignment): Likewise.
5850 (vectorizable_operation): Likewise.
5851 (vectorizable_type_demotion): Likewise.
5852 (vectorizable_type_promotion): Likewise.
5853 (vectorizable_store): Use dt array instead of scalar dt. Call
5854 vect_model_store_cost with additional argument dt.
5855 (vect_do_peeling_for_loop_bound): Don't call
5856 vect_estimate_min_profitable_iters. Instead, lookup
5857 LOOP_VINFO_COST_MODEL_MIN_ITERS. Don't always print
5858 "may not be profitable".
5859
5860 2007-07-05 Dorit Nuzman <dorit@il.ibm.com>
5861
5862 PR testsuite/32014
5863 * config/rs6000/altivec.md (UNSPEC_VUPKHS_V4SF, UNSPEC_VUPKLS_V4SF):
5864 (UNSPEC_VUPKHU_V4SF, UNSPEC_VUPKLU_V4SF): New.
5865 (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi): New patterns.
5866 (vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): New patterns.
5867
5868 2007-07-05 Zdenek Dvorak <dvorakz@suse.cz>
5869
5870 * config/i386/i386.c (ix86_address_cost): Do not consider more complex
5871 addressing modes cheaper.
5872
5873 2007-07-05 Alexandre Oliva <aoliva@redhat.com>
5874
5875 * dwarf2out.c (dw_ranges_by_label_ref): New typedef.
5876 (dw_ranges_struct): Rename block_num to num. Adjust.
5877 (dw_ranges_by_label_struct): New.
5878 (ranges_by_label, ranges_by_label_allocated,
5879 ranges_by_label_in_use): New variables.
5880 (add_ranges_num): Factored most of the code out of...
5881 (add_ranges): ... this one. Rewrite in terms of the former.
5882 (add_ranges_by_labels): New.
5883 (output_ranges): Output by-label ranges.
5884 (dwarf2out_finish): Output range for multiple-section
5885 compile_unit. Output standard DW_AT_low_pc in addition to
5886 unexpected DW_AT_entry_pc.
5887
5888 2007-07-04 Daniel Berlin <dberlin@dberlin.org>
5889
5890 PR tree-optimization/32604
5891 PR tree-optimization/32606
5892
5893 * tree-ssa-pre.c (bb_bitmap_sets): Removed antic_safe_loads.
5894 (compute_antic_safe): Removed.
5895 (ANTIC_SAFE_LOADS): Ditto.
5896 (compute_antic_aux): Don't print ANTIC_SAFE_LOADS.
5897 (execute_pre): Don't call compute_antic_safe.
5898 (vuse_equiv): New function.
5899 (make_values_for_stmt): Use it
5900 * tree-ssa-sccvn.c (set_ssa_val_to): Remove assert, since it is
5901 not always true.
5902
5903 2007-07-04 Anatoly Sokolov <aesok@post.ru>
5904
5905 PR target/31331
5906 * config/avr/avr.c (avr_naked_function_p): Handle receiving a type
5907 rather than a decl.
5908 (avr_attribute_table): Make "naked" attribute apply to function types
5909 rather than to decls.
5910 (avr_handle_fntype_attribute): New function.
5911
5912 2007-07-04 Joseph Myers <joseph@codesourcery.com>
5913
5914 * target-def.h (TARGET_INITIALIZER): Remove trailing whitespace
5915 after \.
5916
5917 2007-07-04 David Ung <davidu@mips.com>
5918 Joseph Myers <joseph@codesourcery.com>
5919
5920 * config/mips/mips.md (type): Add logical, signext and move.
5921 (one_cmpl<mode>2, *and<mode>3, *and<mode>3_mips16, *ior<mode>3,
5922 *ior<mode>3_mips16, two unnamed insns after *ior<mode>3_mips16,
5923 *nor<mode>3, "Combiner patterns to optimize truncate/zero_extend
5924 combinations", *zero_extend<SHORT:mode><GPR:mode>2,
5925 *zero_extendqihi2, *extend<SHORT:mode><GPR:mode>2_mips16e,
5926 *extend<SHORT:mode><GPR:mode>2_se<SHORT:size>, *movdi_64bit,
5927 *movdi_64bit_mips16, *movsi_internal, *movsi_mips16, movcc,
5928 *movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16,
5929 *movsf_hardfloat, *movsf_softfloat, *movsf_mips16,
5930 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit,
5931 movv2sf_hardfloat_64bit): Use the new types.
5932 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16,
5933 *movdf_softfloat, *movdf_mips16): Use "multi".
5934 (extendqihi2): Replace with a define_expand.
5935 (*extendqihi2_mips16e, *extendqihi2, *extendqihi2_seb): New.
5936 Based on extend<SHORT:mode><GPR:mode>2 patterns.
5937 * config/mips/74k.md (r74k_int_logical): New reservation and
5938 bypasses.
5939 (r74k_int_arith): Remove "slt".
5940 * config/mips/24k.md, config/mips/4130.md, config/mips/4k.md,
5941 config/mips/5400.md, config/mips/5500.md, config/mips/5k.md,
5942 config/mips/7000.md, config/mips/9000.md, config/mips/generic.md,
5943 config/mips/sb1.md, config/mips/sr71k.md: Add new types to
5944 reservations for "arith".
5945
5946 2007-07-04 Richard Guenther <rguenther@suse.de>
5947
5948 * tree-ssa.c (useless_type_conversion_p): Add handling for
5949 scalar float and vector types. Only call the types_compatible_p
5950 langhook for aggregate types as last resort. Follow the
5951 rules.
5952
5953 2007-07-04 Richard Guenther <rguenther@suse.de>
5954
5955 * tree-inline.c (estimate_num_insns_1): Treat CONVERT_EXPR
5956 the same as NOP_EXPR.
5957
5958 2007-07-04 Nick Clifton <nickc@redhat.com>
5959
5960 * target.h (struct gcc_target): Add target_help field.
5961 * target-def.h (TARGET_HELP): New.
5962 (TARGET_INITIALIZER): Use TARGET_HELP.
5963 * opts.c (command_handle_option): Invoke target_help function, if
5964 defined, when the user has specified --target-help on the command
5965 line.
5966 * doc/invoke.texi: Mention that --target-help might print
5967 additional information.
5968 * doc/tm.texi: Document TARGET_HELP hook.
5969
5970 * arm.c (TARGET_HELP): Override default definition.
5971 (arm_target_help): New - display a wrapped list of cores and
5972 architectures supported.
5973
5974 2007-07-04 Rask Ingemann Lambertsen <rask@sygehus.dk>
5975
5976 * config/v850/v850.c (expand_prologue): Make sure
5977 GEN_INT() argument is sign extended rather than zero extended.
5978 (expand_epilogue): Likewise.
5979 (output_move_double): Delete.
5980 * config/v850/v850-protos.h (output_move_double): Delete.
5981 * config/v850/v850.md (movdi): Delete.
5982 (*movdi_internal): Delete.
5983 (movdf): Delete.
5984 (*movdf_internal): Delete.
5985
5986 2007-07-04 Richard Sandiford <richard@codesourcery.com>
5987
5988 * config/sh/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Reject -mrelax
5989 unless compiling RTP PIC.
5990
5991 2007-07-04 Richard Guenther <rguenther@suse.de>
5992
5993 PR tree-optimization/32482
5994 * tree-ssa-ifcombine.c (recognize_single_bit_test): Use the
5995 original ssa name if we didn't find a shift expression.
5996 Fix shift constant for bit zero test.
5997
5998 2007-07-04 Richard Sandiford <richard@codesourcery.com>
5999
6000 * config/sh/lib1funcs.asm (ic_invalidate): Align constant pool.
6001
6002 2007-07-04 Richard Sandiford <richard@codesourcery.com>
6003
6004 * config.gcc (arm-wrs-vxworks): Don't include svr4.h.
6005 * config/vxworks.h (PTRDIFF_TYPE, SIZE_TYPE, TARGET_POSIX_IO): Define.
6006 * config/arm/vxworks.h (ASM_SPEC): Delete.
6007 (SUBTARGET_EXTRA_ASM_SPEC): Define.
6008
6009 2007-07-04 Sebastian Pop <sebpop@gmail.com>
6010
6011 * tree-data-ref.h (data_dependence_relation): New flag reversed_p.
6012 (DDR_REVERSED_P): New.
6013 * tree-data-ref.c (initialize_data_dependence_relation,
6014 build_classic_dist_vector): Set DDR_REVERSED_P.
6015
6016 2007-07-04 Sebastian Pop <sebpop@gmail.com>
6017
6018 PR middle-end/32457
6019 * tree-data-ref.c (analyze_siv_subscript_cst_affine,
6020 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
6021 init_omega_for_ddr_1): Use non conservative number of iterations
6022 estimations.
6023 (analyze_subscript_affine_affine): Use HOST_WIDE_INT instead of int.
6024 (analyze_siv_subscript): Remove FIXME and reinitialization of
6025 last_conflicts to chrec_dont_know.
6026 * testsuite/gfortran.dg/vect/pr32457.f90: New.
6027
6028 2007-07-04 Douglas Gregor <doug.gregor@gmail.com>
6029
6030 * tree.c (maybe_canonicalize_argtypes): Improve description.
6031
6032 2007-07-04 Douglas Gregor <doug.gregor@gmail.com>
6033
6034 * tree.c (maybe_canonicalize_argtypes): New.
6035 (build_function_type): Set canonical type.
6036 (build_method_type_directly): Ditto.
6037 (reconstruct_complex_type): Rebuild the METHOD_TYPE node
6038 properly.
6039
6040 2007-07-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
6041
6042 * tree-ssa-loop-ivopts.c (strip_offset_1): Treat POINTER_PLUS_EXPR
6043 like PLUS_EXPR.
6044 (rewrite_use_nonlinear_expr): Likewise.
6045
6046 2007-07-03 Seongbae Park <seongbae.park@gmail.com>
6047
6048 * rtl.def (UNSPEC, USE, CLOBBER): More comments.
6049
6050 2007-07-04 Ben Elliston <bje@au.ibm.com>
6051
6052 * dwarf2out.c: Move DWARF2 abbreviation glossary closer to the top
6053 of this file.
6054
6055 * c-objc-common.c (c_types_compatible_p): Fix indentation.
6056
6057 * doc/tm.texi (Run-time Target): Capitalise "CPU".
6058 (Exception Handling): Likewise.
6059
6060 2007-07-03 Jan Hubicka <jh@suse.cz>
6061
6062 * ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
6063
6064 2007-07-03 Eric Christopher <echristo@apple.com>
6065
6066 * doc/cppopts.texi: Add conflicting option note to -dM.
6067 * doc/invoke.texi: Add note about possible conflicts with
6068 -E for -dCHARS and note that -dM will not produce
6069 any results if there is no machine dependent reorg.
6070
6071 2007-07-03 Geoffrey Keating <geoffk@apple.com>
6072
6073 * tree.h (DECL_ALIGN): Back out previous change.
6074
6075 2007-07-03 Joseph Myers <joseph@codesourcery.com>
6076
6077 * configure.ac: Test for .dtprelword support on MIPS.
6078 * configure, config.in: Regenerate.
6079 * config/mips/mips.c (mips_output_dwarf_dtprel): New.
6080 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
6081
6082 2007-07-03 Julian Brown <julian@codesourcery.com>
6083
6084 * config.gcc (with_fpu): Allow --with-fpu=vfp3.
6085 * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
6086 * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
6087 * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
6088 capability.
6089 (all_fpus): Add FPUTYPE_VFP3.
6090 (fp_model_for_fpu): Add VFPv3 field.
6091 (arm_rtx_costs_1): Give cost to VFPv3 constants.
6092 (vfp3_const_double_index): New function. Return integer index of
6093 VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
6094 isn't suitable.
6095 (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
6096 and argument represents a valid RTX for a VFPv3 constant.
6097 (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
6098 two instructions.
6099 (vfp_emit_fstmd): Similar, for fstmd.
6100 (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
6101 constants, represented as integer indices.
6102 (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
6103 VFP_REGNO_OK_FOR_DOUBLE macros.
6104 (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
6105 (arm_file_start): Set float-abi attribute for VFPv3, and output
6106 correct ".fpu" assembler directive.
6107 (arm_dbx_register_numbering): Add FIXME.
6108 * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
6109 (fputype): Add FPUTYPE_VFP3.
6110 (FIXED_REGISTERS): Add 32 registers for D16-D31.
6111 (CALL_USED_REGISTERS): Likewise.
6112 (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
6113 of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
6114 (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
6115 (D7_VFP_REGNUM): New.
6116 (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
6117 (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
6118 (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
6119 (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
6120 (REG_ALLOC_ORDER): Adjust for VFPv3.
6121 (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
6122 (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
6123 VFP_LO_REGS, VFP_HI_REGS.
6124 (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
6125 (IS_VFP_CLASS): Define macro.
6126 (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
6127 IS_VFP_CLASS.
6128 (REGISTER_MOVE_COST): Likewise.
6129 * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
6130 * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
6131 (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
6132 (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
6133 (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
6134 (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
6135 (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
6136 (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
6137 (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
6138 (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
6139 (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
6140 where appropriate for single-word registers.
6141 (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
6142 As above. Fix type attributes.
6143 * config/arm/constraints.md (register_contraint "t"): Define.
6144 (register_constraint "w"): Change to D0-D15, or D0-D31 for
6145 VFPv3/NEON.
6146 (register_constraint "x"): Define.
6147 (constraint "Dv"): Define.
6148
6149 2007-07-03 Geoffrey Keating <geoffk@apple.com>
6150
6151 * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
6152
6153 2007-07-03 Tom Tromey <tromey@redhat.com>
6154
6155 * c-parser.c (objc_pq_context): Removed.
6156 (objc_need_raw_identifier): Likewise.
6157 (c_parser) <objc_pq_context>: New field.
6158 <objc_need_raw_identifier>: Likewise.
6159 (OBJC_NEED_RAW_IDENTIFIER): Removed.
6160 (c_lex_one_token): Update.
6161 (c_parser_objc_protocol_definition): Update.
6162 (c_parser_objc_method_definition): Update.
6163 (c_parser_objc_methodproto): Update.
6164 (c_parser_declspecs): Update.
6165
6166 2007-07-03 David Ung <davidu@mips.com>
6167
6168 * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
6169
6170 2007-07-03 David Ung <davidu@mips.com>
6171 Richard Sandiford <richard@codesourcery.com>
6172
6173 * doc/invoke.texi: Document -march=74kf3_2.
6174 * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
6175 (TUNE_74K): Check for it.
6176 * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
6177 (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
6178 * config/mips/mips.md (cpu): Add 74kf3_2.
6179 * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
6180 (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
6181 (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
6182 (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
6183 74kf3_2 to the CPU list.
6184 (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
6185 (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
6186 (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
6187 (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
6188 (r74kf3_2_fxfer_from_c1): New insn reservations.
6189
6190 2007-07-03 Richard Sandiford <richard@codesourcery.com>
6191 David Ung <davidu@mips.com>
6192
6193 * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
6194 -march=24kx with -march=24kf1_1. Likewise 24ke[fx], 34k[fx]
6195 and 74k[fx]. Document aliases for the new options.
6196 * config/mips/mips.h (PROCESSOR_24KF): Rename to...
6197 (PROCESSOR_24KF2_1): ...this.
6198 (PROCESSOR_24KX): Rename to...
6199 (PROCESSOR_24KF1_1): ...this.
6200 (PROCESSOR_74KF): Rename to...
6201 (PROCESSOR_74KF2_1): ...this.
6202 (PROCESSOR_74KX): Rename to...
6203 (PROCESSOR_74KF1_1): ...this.
6204 (TUNE_74K): Update PROCESSOR_* names.
6205 * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
6206 for 24kf. Add 24kf1_1 and 24kfx as synonyms for 24kx. Likewise
6207 the 24ke*, 34k* and 74k* processors. Update PROCESSOR_* names.
6208 (mips_rtx_cost_data): Update processor names in comments.
6209 (mips_issue_rate): Update PROCESSOR_* names.
6210 * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
6211 24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
6212 * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
6213 to r24kf2_1_*. Rename r24kx_* insn reservations to r24kf1_1_*.
6214 Update cpu attribute names.
6215 (r24k_fpu_iss): Rename this reservation to...
6216 (r24kf2_1_fpu_iss): ...this and update all uses.
6217 (r24kx_fpu_iss): Rename this reservation to...
6218 (r24kf1_1_fpu_iss): ...this and update all uses.
6219 * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
6220 to r74kf2_1_*. Rename r74kx_* insn reservations to r74kf1_1_*.
6221 Update cpu attribute names.
6222
6223 2007-07-01 Kaz Kojima <kkojima@gcc.gnu.org>
6224
6225 * config/m32r/constraints.md: New file.
6226 * config/m32r/m32r.c: Include tm-constrs.h.
6227 (small_data_operand): Use satisfies_constraint_* instead of macro.
6228 (addr24_operand, gen_compare): Likewise.
6229 * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
6230 (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
6231 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
6232 EXTRA_CONSTRAINT): Likewise.
6233 * config/m32r/m32r.md: Include constraints.md.
6234 (*movsi_insn): Use satisfies_constraint_* instead of macro.
6235 (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
6236 * config/m32r/predicates.md (conditional_move_operand): Likewise.
6237 (two_insn_const_operand, int8_operand, uint16_operand,
6238 reg_or_int16_operand, reg_or_uint16_operand,
6239 reg_or_cmp_int16_operand, cmp_int16_operand,
6240 seth_add3_operand): Likewise.
6241
6242 2007-07-03 Eric Christopher <echristo@gmail.com>
6243
6244 * libgcc2.h: Conditionally declare __bswapsi2 and
6245 __bswapdi2.
6246
6247 2007-07-03 H.J. Lu <hongjiu.lu@intel.com>
6248
6249 * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
6250 defined.
6251
6252 2007-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6253
6254 PR target/28307
6255 * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
6256 (__gthrw_pragma): Provide default definition.
6257 (__gthrw2): Use it.
6258 * gthr-posix.c (__gthrw_pragma): Define.
6259
6260 2007-07-03 Daniel Berlin <dberlin@dberlin.org>
6261
6262 * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
6263 before declaring inequality.
6264
6265 2007-07-03 Rask Ingemann Lambertsen <rask@sygehus.dk>
6266
6267 * combine.c (recog_for_combine): Log the success or failure of
6268 matching new insn patterns against the machine description in
6269 detailed dumps.
6270
6271 2007-07-03 Revital Eres <eres@il.ibm.com>
6272
6273 * ddg.c (print_sccs): New function.
6274 (check_sccs): New function.
6275 (create_ddg_all_sccs): Use it.
6276 * ddg.h (print_sccs): Declare.
6277 * modulo-sched.c (sms_order_nodes): Call print_sccs.
6278
6279 2007-07-03 Uros Bizjak <ubizjak@gmail.com>
6280
6281 * targhooks.h (default_mode_for_suffix): New function declaration.
6282 * targhooks.c (default_mode_for_suffix): New default target hook.
6283 * target.h (struct c): New structure in the targetm struct.
6284 (mode_for_suffix): New target hook as part of struct c.
6285 target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
6286 default_mode_for_suffix.
6287 (TARGET_C): New define.
6288 * c-lex.c: Include "target.h".
6289 (interpret_float): Use targetm.c.mode_for_suffix to determine
6290 the mode for a given non-standard suffix.
6291 Makefile.in (c-lex.o): Depend on $(TARGET_H).
6292
6293 * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
6294 (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
6295
6296 * doc/extend.texi (Floating Types): New node. Document __float80 and
6297 __float128 types. Document 'w', 'W', 'q' and 'Q' suffixes.
6298
6299 2007-07-03 Kaz Kojima <kkojima@gcc.gnu.org>
6300
6301 PR target/32506
6302 * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
6303 predicate instead of target_operand.
6304 (divsi3_i1_media, divsi3_media_2): Likewise.
6305
6306 2007-07-02 Eric Botcazou <ebotcazou@adacore.com>
6307
6308 * tree.h (alias_sets_might_conflict_p): Rename into
6309 alias_sets_must_conflict_p.
6310 * alias.c (alias_sets_might_conflict_p): Likewise.
6311 (alias_sets_conflict_p): Use it.
6312 (objects_must_conflict_p): Likewise.
6313 * c-common.c (strict_aliasing_warning): Adjust.
6314
6315 2007-07-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
6316
6317 * rtlhooks.c (gen_lowpart_if_possible): Check for
6318 invalid subreg before calling gen_lowpart_SUBREG.
6319
6320 2007-07-02 Geoffrey Keating <geoffk@apple.com>
6321
6322 * config/darwin9.h: Add copyright notice.
6323 (LINK_COMMAND_SPEC): Add comment.
6324 (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
6325 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
6326 DARWIN_LIBSYSTEM_HAS_UNWIND.
6327
6328 2007-07-02 Jakub Jelinek <jakub@redhat.com>
6329
6330 PR libgomp/32468
6331 * omp-low.c (check_combined_parallel): New function.
6332 (lower_omp_parallel): Call it via walk_stmts, set
6333 OMP_PARALLEL_COMBINED if appropriate.
6334 (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
6335 isn't the only statement in WS_ENTRY_BB or OMP_RETURN
6336 the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
6337 don't consider it as combined parallel.
6338
6339 2007-07-02 Richard Sandiford <richard@codesourcery.com>
6340
6341 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
6342 (gcc_tooldir): Likewise.
6343 * configure: Regenerate.
6344 * Makefile.in (libsubdir_to_prefix): New variable, based on the
6345 old configure.ac gcc_tooldir setting.
6346 (prefix_to_exec_prefix): New variable.
6347 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
6348 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
6349
6350 2007-07-02 Daniel Berlin <dberlin@dberlin.org>
6351
6352 Fix PR tree-optimization/32583
6353 Fix PR tree-optimization/32584
6354 * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
6355 (phi_translate_set): Use phi_translate directly now.
6356 (make_values_for_stmt): Don't value number RHS if we already know
6357 it is constant.
6358
6359 2007-07-02 Steve Ellcey <sje@cup.hp.com>
6360 Jim Wilson <wilson@specifix.com>
6361
6362 PR target/31684
6363 * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
6364 copy_insn.
6365
6366 2007-07-02 Sandra Loosemore <sandra@codesourcery.com>
6367 Richard Sandiford <richard@codesourcery.com>
6368 Nigel Stephens <nigel@mips.com>
6369
6370 * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
6371 (mips16e_output_save_restore): Declare.
6372 (mips16e_save_restore_pattern_p): Likewise.
6373 * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
6374 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
6375 for GENERATE_MIPS16E_SAVE_RESTORE. Return 0x400 for TARGET_MIPS16
6376 && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
6377 (BITSET_P): New global macro, extracted from...
6378 (mips_for_each_saved_reg): ...here.
6379 (mips16e_save_restore_info): New struct.
6380 (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
6381 (mips16e_save_restore_regs): New variable.
6382 (mips_split_plus, mips16e_find_first_register): New functions.
6383 (mips16e_mask_registers): New function.
6384 (compute_frame_size): Expand the commentary before the function.
6385 Enforce the MIPS16e save and restore register range restrictions.
6386 Pad the general register save area at the low end.
6387 (mips16e_save_restore_reg, mips16e_build_save_restore)
6388 (mips16e_save_restore_pattern_p, mips16e_add_register_range)
6389 (mips16e_output_save_restore, mips16e_collect_propagate_value)
6390 (mips16e_collect_argument_save, mips16e_collect_argument_saves):
6391 New functions.
6392 (mips_expand_prologue, mips_expand_epilogue): Handle
6393 GENERATE_MIPS16E_SAVE_RESTORE.
6394 * config/mips/mips.md (*mips16e_save_restore): New pattern.
6395
6396 2007-07-02 Uros Bizjak <ubizjak@gmail.com>
6397
6398 PR tree-optimization/31966
6399 PR tree-optimization/32533
6400 * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
6401 "basic_block" description as its third argument. Update function
6402 calls to get destination bb from "edge" argument. Save "cond" into
6403 aux field of the edge. Update prototype for changed arguments.
6404 (if_convertible_loop_p): Clear aux field of incoming edges if bb
6405 contains phi node.
6406 (find_phi_replacement_condition): Operate on incoming edges, not
6407 on predecessor blocks. If there is a condition saved in the
6408 incoming edge aux field, AND it with incoming bb predicate.
6409 Return source bb of the first edge.
6410 (clean_predicate_lists): Clean aux field of outgoing node edges.
6411 (tree_if_conversion): Do not initialize cond variable. Move
6412 variable declaration into the loop.
6413 (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
6414 initializations of new_stmt, arg0 and arg1 variables.
6415
6416 2007-07-02 Jakub Jelinek <jakub@redhat.com>
6417
6418 * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
6419 SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
6420
6421 2007-07-02 Richard Guenther <rguenther@suse.de>
6422
6423 * tree-ssa.c (useless_type_conversion_p): Document
6424 future intent as defining the middle-end type system.
6425 Re-structure to call langhook last, group by type class,
6426 mark questionable parts.
6427
6428 2007-07-02 Richard Guenther <rguenther@suse.de>
6429
6430 * tree-flow.h (types_compatible_p): Declare.
6431 * tree-ssa.c (types_compatible_p): New function.
6432 * ipa-type-escape.c (discover_unique_type): Use
6433 types_compatible_p instead of lang_hooks.types_compatible_p.
6434 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
6435 * tree-vn.c (expressions_equal_p): Likewise.
6436 * tree.c (fields_compatible_p): Likewise.
6437 * tree-ssa-dom.c (avail_expr_eq): Likewise.
6438 (cprop_operand): Use useless_type_conversion_p instead of
6439 lang_hooks.types_compatible_p.
6440 * tree-inline.c (setup_one_parameter): Likewise.
6441 (declare_return_variable): Likewise.
6442 * tree-nrv.c (tree_nrv): Likewise.
6443 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
6444 (maybe_fold_offset_to_component_ref): Likewise.
6445 (maybe_fold_offset_to_reference): Likewise.
6446 * tree-ssa-copy.c (may_propagate_copy): Likewise.
6447 (merge_alias_info): Likewise.
6448 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6449 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
6450 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
6451 * tree-tailcall.c (find_tail_calls): Likewise.
6452 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
6453 * gimplify.c (canonicalize_addr_expr): Likewise.
6454 (fold_indirect_ref_rhs): Likewise.
6455 (gimplify_addr_expr): Likewise. Swap parameters to cpt_same_type.
6456 (cpt_same_type): Likewise.
6457 (check_pointer_types_r): Swap parameters to cpt_same_type
6458 where appropriate.
6459 * fold-const.c (fold_convert): Revert fix for PR15988.
6460 * tree-inline.c (setup_one_parameter): Instead fix it here by
6461 using fold_build1 instead of fold_convert and checking for
6462 error_mark_node. Convert only if the conversion is necessary.
6463
6464 2007-07-02 Joseph Myers <joseph@codesourcery.com>
6465
6466 * configure.ac: Check for .gnu_attribute on Power.
6467 * configure: Regenerate.
6468 * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
6469 attribute for floating-point ABI.
6470
6471 2007-07-02 Ira Rosen <irar@il.ibm.com>
6472
6473 PR tree-optimization/32230
6474 PR tree-optimization/32477
6475 * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base
6476 address is a constant.
6477
6478 2007-07-02 Richard Sandiford <richard@codesourcery.com>
6479
6480 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
6481 (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
6482 (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
6483 stanzas. Use the first part of the triplet to set MIPS_ISA_DEFAULT.
6484 Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
6485 64-bit targets. Add support for *-elfoabi*.
6486 * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
6487 different settings if $(tm_defines) does not select the EABI.
6488 (MULTILIB_EXCLUSIONS): Define in those circumstances.
6489 * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
6490 (MIPS_ARCH_OPTION_SPEC): Likewise.
6491 (MIPS_ISA_LEVEL_SPEC): Likewise.
6492 (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
6493 * config/mips/elfoabi.h: New file.
6494
6495 2007-07-02 Richard Guenther <rguenther@suse.de>
6496
6497 * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
6498 (useless_type_conversion_p): ... this.
6499 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
6500 (useless_type_conversion_p): ... this.
6501 * builtins.c (fold_builtin_memory_op): Rename
6502 tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
6503 * tree-cfg.c (verify_expr): Likewise.
6504 * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
6505 * tree-ssa-ccp.c (ccp_fold): Likewise.
6506 * tree-ssa-copy.c (may_propagate_copy): Likewise.
6507 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
6508 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6509 * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
6510 * tree-ssa-pre.c (eliminate): Likewise.
6511 * tree-ssa.c (delete_tree_ssa): Likewise.
6512 (tree_ssa_useless_type_conversion): Likewise.
6513 * tree.c (build2_stat): Likewise.
6514
6515 2007-07-01 Daniel Berlin <dberlin@dberlin.org>
6516
6517 Fix PR tree-optimization/32571
6518 * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
6519 simplifying them.
6520
6521 2007-07-01 Daniel Berlin <dberlin@dberlin.org>
6522
6523 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
6524 and other expected operations explicitly, change default to
6525 gcc_unreachable.
6526
6527 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
6528
6529 * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
6530 PARALLEL.
6531 * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
6532 (tls_load_dot_plus_eight): Move the label number into the unspec.
6533 * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
6534
6535 2007-07-01 Andreas Schwab <schwab@suse.de>
6536
6537 * dwarf2out.c (initial_return_save): Define only if used.
6538
6539 2007-07-01 Kenneth Zadeck <zadeck@naturalbridge.com>
6540
6541 Unreverting Richard's Revert of:
6542
6543 2007-06-27 Richard Sandiford <richard@codesourcery.com>
6544
6545 * dce.c (deletable_insn_p_1): New function, split out from...
6546 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
6547 specially, not those inside PARALLELs. Remove BODY argument
6548 and adjust recursive call accordingly.
6549 (prescan_insns_for_dce): Update call to delete_insn_p.
6550
6551 2007-07-01 Vladimir Yanovsky <yanov@il.ibm.com>
6552 Revital Eres <eres@il.ibm.com>
6553
6554 * ddg.c (create_ddg_all_sccs): Fix missed
6555 initialization of scc_nodes.
6556
6557 2007-07-01 Uros Bizjak <ubizjak@gmail.com>
6558
6559 PR middle-end/32559
6560 * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
6561 X + ~X to 1 only for INTEGRAL_TYPE_P type.
6562
6563 2007-06-30 Joseph Myers <joseph@codesourcery.com>
6564
6565 * configure.ac: Check for .gnu_attribute on MIPS.
6566 * configure, config.in: Regenerate.
6567 * config/mips/mips.c (mips_file_start): If supported, output
6568 attribute for floating-point ABI.
6569
6570 2007-06-30 Uros Bizjak <ubizjak@gmail.com>
6571
6572 PR target/32433
6573 * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
6574 (ffs_cmove): New expander to expand using ctz pattern.
6575 (*ffs_cmove): Remove pattern.
6576 (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
6577 (ffsdi2): Expand using ctz pattern.
6578 (*ffs_rex64): Remove pattern.
6579
6580 2007-06-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6581
6582 PR rtl-optimization/32296
6583 * pa.md (return): Delete pattern.
6584 (return_internal): Remove "(const_int 1)" from pattern.
6585 (epilogue): Use return_internal pattern for trivial returns.
6586 * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
6587 * pa.c (hppa_can_use_return_insn_p): Delete function. Include "df.h".
6588
6589 2007-06-30 Daniel Berlin <dberlin@dberlin.org>
6590
6591 * tree-ssa-pre.c (is_exception_related): New function
6592 (can_value_number_operation): Use it.
6593
6594 2007-06-30 Daniel Berlin <dberlin@dberlin.org>
6595
6596 Fix PR tree-optimization/32540
6597 Fix PR tree-optimization/31651
6598
6599 * tree-ssa-sccvn.c: New file.
6600
6601 * tree-ssa-sccvn.h: Ditto.
6602
6603 * tree-vn.c: Include tree-ssa-sccvn.h
6604 (val_expr_paid_d): Removed.
6605 (value_table): Ditto.
6606 (vn_compute): Ditto.
6607 (val_expr_pair_hash): Ditto.
6608 (val_expr_pair_expr_eq): Ditto.
6609 (copy_vuses_from_stmt): Ditto.
6610 (vn_delete): Ditto.
6611 (vn_init): Ditto.
6612 (shared_vuses_from_stmt): Ditto.
6613 (print_creation_to_file): Moved up.
6614 (sort_vuses): Ditto.
6615 (sort_vuses_heap): Ditto.
6616 (set_value_handle): Make non-static.
6617 (make_value_handle): Ditto.
6618 (vn_add): Rewritten to use sccvn lookups.
6619 (vn_add_with_vuses): Ditto.
6620 (vn_lookup): Ditto (and second argument removed).
6621 (vn_lookup_with_vuses): Ditto.
6622 (vn_lookup_or_add): Ditto (and second argument removed);
6623 (vn_lookup_or_add_with_vuses): Ditto.
6624 (vn_lookup_with_stmt): New.
6625 (vn_lookup_or_add_with_stmt): Ditto.
6626 (create_value_handle_for_expr): Ditto.
6627
6628 * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
6629 (seen_during_translate): New function.
6630 (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
6631 (phi_trans_add): Ditto.
6632 (constant_expr_p): FIELD_DECL is always constant.
6633 (phi_translate_1): Renamed from phi_translate, add seen bitmap.
6634 Use constant_expr_p.
6635 Avoid infinite recursion on mutually valued expressions.
6636 Change callers of vn_lookup_or_add.
6637 (phi_translate): New function.
6638 (compute_antic_safe): Allow phi nodes.
6639 (create_component_ref_by_pieces): Update for FIELD_DECL change.
6640 (find_or_generate_expression): Rewrite slightly.
6641 (create_expression_by_pieces): Updated for vn_lookup_or_add
6642 change.
6643 Update VN_INFO for new names.
6644 (insert_into_preds_of_block): Update for new names.
6645 (add_to_exp_gen): New function.
6646 (add_to_sets): Use vn_lookup_or_add_with_stmt.
6647 (find_existing_value_expr): Rewrite to changed vn_lookup.
6648 (create_value_expr_from): Ditto, and use add_to_exp_gen.
6649 (try_look_through_load): Removed.
6650 (try_combine_conversion): Ditto.
6651 (get_sccvn_value): New function.
6652 (make_values_for_phi): Ditto.
6653 (make_values_for_stmt): Ditto.
6654 (compute_avail): Rewritten for vn_lookup_or_add changes and to use
6655 SCCVN.
6656 (init_pre): Update for SCCVN changes.
6657 (fini_pre): Ditto.
6658 (execute_pre): Ditto.
6659
6660 * tree-flow.h (make_value_handle): Declare.
6661 (set_value_handle): Ditto.
6662 (sort_vuses_heap): Ditto.
6663 (vn_lookup_or_add_with_stmt): Ditto.
6664 (vn_lookup_with_stmt): Ditto.
6665 (vn_compute): Remove.
6666 (vn_init): Ditto.
6667 (vn_delete): Ditto.
6668 (vn_lookup): Update arguments.
6669
6670 * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
6671 (tree-vn.o): Ditto.
6672 (tree-ssa-sccvn.o): New.
6673 (OBJS-common): Add tree-ssa-sccvn.o
6674
6675 2007-06-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6676
6677 PR c/4076
6678 * c-typeck.c (build_external_ref): Don't mark as used if called
6679 from itself.
6680 * calls.c (rtx_for_function_call): Likewise.
6681
6682 2007-06-30 Richard Sandiford <richard@codesourcery.com>
6683
6684 Revert:
6685
6686 2007-06-27 Richard Sandiford <richard@codesourcery.com>
6687
6688 * dce.c (deletable_insn_p_1): New function, split out from...
6689 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
6690 specially, not those inside PARALLELs. Remove BODY argument
6691 and adjust recursive call accordingly.
6692 (prescan_insns_for_dce): Update call to delete_insn_p.
6693
6694 2007-06-30 Rask Ingemann Lambertsen <rask@sygehus.dk>
6695
6696 * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
6697 (try_combine): Move potential calls to undo_all() so they happen
6698 before we commit to using the combined insns.
6699
6700 2006-06-30 Jan Hubicka <jh@suse.cz>
6701
6702 * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
6703 code.
6704
6705 2006-06-30 Thomas Neumann <tneumann@users.sourceforge.net>
6706
6707 * ipa.c (cgraph_postorder): Cast according to the coding conventions.
6708 (cgraph_remove_unreachable_nodes): Likewise.
6709 * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
6710 * ipa-inline.c (update_caller_keys): Cast according to the coding
6711 conventions.
6712 (cgraph_decide_recursive_inlining): Likewise.
6713 (cgraph_decide_inlining_of_small_function): Likewise.
6714 (try_inline): Likewise.
6715 (cgraph_decide_inlining_incrementally): Likewise.
6716 * ipa-pure-const.c (get_function_state): Likewise.
6717 (scan_function): Likewise.
6718 (analyze_function): Likewise.
6719 (static_execute): Likewise.
6720 * ipa-reference.c (scan_for_static_refs): Likewise.
6721 (merge_callee_local_info): Likewise.
6722 (analyze_function): Use type safe memory macros.
6723 (static_execute): Likewise. Cast according to the coding conventions.
6724 * ipa-type-escape.c (scan_for_regs): Cast according to the coding
6725 conventions.
6726 * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
6727 names.
6728 (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
6729 * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
6730 variable names.
6731
6732 2007-06-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
6733
6734 PR middle-end/30024
6735 * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
6736 for complex modes (both int and real).
6737
6738 2007-06-29 Jan Hubicka <jh@suse.cz>
6739
6740 * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
6741
6742 2007-06-29 Jan Hubicka <jh@suse.cz>
6743
6744 PR middle-end/32372
6745 * cse.c (cse_insn): Avoid invalid sharing in between register note and
6746 the insn pattern.
6747
6748 2007-06-29 Anatoly Sokolov <aesok@post.ru>
6749
6750 PR target/32335
6751 * config/avr/avr.c: Include dataflow header file.
6752 (expand_prologue): Adjust for prologue insn change.
6753 * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
6754 inside a insn.
6755
6756 2007-06-29 Richard Guenther <rguenther@suse.de>
6757
6758 PR middle-end/32493
6759 * gimplify.c (gimplify_call_expr): Ignore variable argument parts
6760 during type verification.
6761
6762 2007-06-29 Jan Hubicka <jh@suse.cz>
6763
6764 * recog.c (validate_change_rtx_1): Unshare TO argument.
6765
6766 2007-06-29 Uros Bizjak <ubizjak@gmail.com>
6767
6768 PR tree-optimization/24659
6769 * tree-vect-transform.c (vectorizable_call): Handle
6770 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
6771
6772 * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
6773 * config/i386/i386.c (enum ix86_builtins)
6774 [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
6775 (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
6776 description.
6777 (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
6778 const using def_builtin_const.
6779 (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
6780 input operands in the same modes as the result.
6781 (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
6782
6783 2007-06-29 Richard Sandiford <rsandifo@nildram.co.uk>
6784
6785 * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
6786 (df_set_dead_notes_for_mw): Likewise.
6787
6788 2007-06-29 Eric Botcazou <ebotcazou@adacore.com>
6789
6790 * c-common.c (pointer_int_sum): Do the negation in sizetype.
6791
6792 2007-06-28 DJ Delorie <dj@redhat.com>
6793
6794 * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
6795
6796 2007-06-28 Geoffrey Keating <geoffk@apple.com>
6797
6798 * doc/invoke.texi (C++ Dialect Options): Document
6799 fvisibility-ms-compat.
6800 * c.opt (fvisibility-ms-compat): New.
6801
6802 2007-06-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
6803
6804 PR tree-opt/32417
6805 * tree-affine.c (aff_combination_add_elt): Handle
6806 pointer addition specially.
6807
6808 2007-06-28 Jakub Jelinek <jakub@redhat.com>
6809
6810 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
6811 decl is non-external for AIX ABI.
6812
6813 2007-06-28 David Edelsohn <edelsohn@gnu.org>
6814
6815 * config/rs6000/predicates.md (current_file_function_operand):
6816 Ensure the symbol is non-external for AIX ABI.
6817
6818 2007-06-28 Nick Clifton <nickc@redhat.com>
6819
6820 * common.opt (fipa-matrix-reorg): Add Optimization attribute.
6821 (fdce, fdse, fpredictive-commoning): Likewise.
6822
6823 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6824
6825 PR other/31400
6826 * gcc.c (process_command): Recognize the new -static-libgfortran
6827 option.
6828
6829 2007-06-27 Rask Ingemann Lambertsen <rask@sygehus.dk>
6830
6831 PR target/32418
6832 * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
6833 Use a call clobbered hard reg instead of a pseudo reg.
6834
6835 2007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
6836
6837 * config/sh/sh.md (load_gbr): Use correct operand constraint.
6838
6839 2007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
6840
6841 PR target/32479
6842 * config/sh/sh.md (udivsi3): Don't wrap the sequence with
6843 REG_LIBCALL and REG_RETVAL notes.
6844 (divsi3, mulsi3): Likewise.
6845 (mulhisi3): Likewise. Use emit_libcall_block.
6846 (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
6847
6848 2007-06-27 Seongbae Park <seongbae.park@gmail.com>
6849
6850 PR rtl-optimization/32481
6851 * combine.c (adjust_for_new_dest): Rescan the changed insn.
6852
6853 2007-06-27 Richard Sandiford <richard@codesourcery.com>
6854
6855 * dce.c (deletable_insn_p_1): New function, split out from...
6856 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
6857 specially, not those inside PARALLELs. Remove BODY argument
6858 and adjust recursive call accordingly.
6859 (prescan_insns_for_dce): Update call to delete_insn_p.
6860
6861 2007-06-27 Richard Guenther <rguenther@suse.de>
6862
6863 PR middle-end/32492
6864 * tree.h (fold_convertible_p): Declare.
6865 * fold-const.c (fold_convertible_p): New function.
6866 * gimplify.c (gimplify_call_expr): Use fold_convertible_p
6867 instead of lang_hooks.types_compatible_p.
6868
6869 2007-06-26 Jan Hubicka <jh@suse.cz>
6870
6871 * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
6872 * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
6873 early use validate_unshare_change.
6874 (reload_combine): Likewise.
6875 * recog.c (change_t): New field unshare.
6876 (validate_change_1): Rename from validate_change; add argument unshare.
6877 (validate_change): Turn into wrapper of validate_change_1; update
6878 prototype for bools.
6879 (validate_unshare_change): New.
6880 (confirm_change_group): Unshare changes if asked for; avoid unnecesary
6881 calls of df_insn_rescan.
6882 * recog.h (validate_change): Replace ints by bools.
6883 (validate_unshare_change): Declare.
6884
6885 2007-06-26 Kenneth Zadeck <zadeck@naturalbridge.com>
6886
6887 * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
6888
6889 2007-06-26 Steve Ellcey <sje@cup.hp.com>
6890
6891 * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
6892
6893 2007-06-25 Jan Hubicka <jh@suse.cz>
6894
6895 * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
6896 uninlinable call.
6897 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
6898 cgraph_decide_inlining_incrementally): Move uninlinability checks to
6899 places other call site specific checks are performed.
6900
6901 2007-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
6902
6903 PR tree-opt/32421
6904 * tree-vect-transform.c (vectorizable_operation): Convert
6905 POINTER_PLUS_EXPR over to PLUS_EXPR.
6906
6907 2007-06-25 Chao-ying Fu <fu@mips.com>
6908
6909 * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
6910 UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
6911 Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
6912 Document GET_MODE_IBIT, and GET_MODE_FBIT.
6913
6914 * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
6915 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
6916 (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
6917 SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
6918 SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
6919 ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
6920 ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
6921 SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
6922 ALL_FIXED_POINT_MODE_P): New define.
6923 (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
6924 MODE_UACCUM.
6925 (GET_MODE_IBIT, GET_MODE_FBIT): New define.
6926
6927 * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
6928 MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
6929 MODE_VECTOR_UACCUM): New mode classes.
6930
6931 * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
6932 UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
6933 Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
6934 USA, UDA, and UTA.
6935
6936 * genmodes.c (struct mode_data): Add ibit and fbit fields.
6937 (blank_mode): Initialize ibit and fbit.
6938 (adj_ibit, adj_fbit): New to adjust ibit and fbit.
6939 (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
6940 MODE_UACCUM.
6941 (new_adjust): Change required_class to required_class_from and
6942 required_class_to for testing within a range.
6943 (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
6944 MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
6945 MODE_VECTOR_UACCUM.
6946 (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
6947 (make_fixed_point_mode): New.
6948 (_ADD_ADJUST): Change C to C1 and C2.
6949 (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
6950 use a range for machine classes.
6951 (ADJUST_IBIT, ADJUST_FBIT): New.
6952 (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
6953 CONST_MODE_FBIT.
6954 (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
6955 MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
6956 Emit adjustment for ibit and fbit.
6957 (emit_mode_ibit, emit_mode_fbit): New.
6958 (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
6959
6960 2007-06-25 Nathan Froyd <froydnj@codesourcery.com>
6961
6962 * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
6963 as the source of the set.
6964
6965 2007-06-25 Roman Zippel <zippel@linux-m68k.org>
6966
6967 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
6968 FP_REGNO_P): Use IN_RANGE.
6969 (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
6970 (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
6971 (DATA_REG_P): Use DATA_REGNO_P.
6972 (FP_REG_P): Use FP_REGNO_P.
6973 (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
6974 * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
6975 REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
6976
6977 2007-06-24 Jan Hubicka <jh@suse.cz>
6978
6979 PR middle-end/30563
6980 * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
6981
6982 2007-06-24 Sebastian Pop <sebpop@gmail.com>
6983
6984 PR middle-end/32461
6985 * fold-const.c (fold_binary): Strip nops of operand 0
6986 of BIT_NOT_EXPR before calling operand_equal_p.
6987 * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
6988 * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
6989
6990 2007-06-23 Mark Mitchell <mark@codesourcery.com>
6991
6992 * doc/extend.texi: Document that dllimport and dllexport imply
6993 default visibility.
6994 * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
6995 imported or exported declaration, including type declarations.
6996 * c-common.c (handle_visibility_attribute): Check for conflicts
6997 with dllimport/dllexport.
6998 (c_determine_visibility): Handle dllimport/dllexport as an
6999 explicit visibility atttribute.
7000
7001 2007-06-23 Richard Guenther <rguenther@suse.de>
7002
7003 PR tree-optimization/16876
7004 PR middle-end/29478
7005 * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
7006 for CALL_EXPRs.
7007 * tree-inline.c (initialize_inlined_parameters): Do not call
7008 lang_hooks.tree_inlining.convert_parm_for_inlining.
7009 * cgraphbuild.c (initialize_inline_failed): Set inline failed
7010 reason for mismatched types.
7011 * gimplify.c (gimplify_call_expr): Verify the call expression
7012 arguments match the called function type signature. Otherwise
7013 mark the call expression to be not considered for inlining
7014 using CALL_CANNOT_INLINE_P flag.
7015 * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
7016 edges call expression.
7017 (cgraph_decide_inlining_of_small_function): Likewise.
7018 (cgraph_decide_inlining): Likewise.
7019 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
7020 Remove define.
7021 * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
7022 * c-typeck.c (c_convert_parm_for_inlining): Remove.
7023 * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
7024 Remove declaration.
7025 (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
7026 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
7027 Remove.
7028 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
7029 convert_parm_for_inlining member.
7030
7031 2007-06-23 Richard Earnshaw <rearnsha@arm.com>
7032
7033 PR target/31152
7034 * arm.md (negscc): Match the correct operand for optimized LT0 test.
7035 Remove optimization for GT.
7036
7037 2007-06-23 Kenneth Zadeck <zadeck@naturalbridge.com>
7038
7039 PR middle-end/32437
7040 * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
7041 is a PARALLEL.
7042 (prescan_insns_for_dce): Add extra parameter.
7043
7044 2007-06-23 Jan Hubicka <jh@suse.cz>
7045
7046 PR middle-end/31541
7047 * gimplify.c (mark_addressable): New function.
7048 (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
7049
7050 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
7051
7052 PR middle-end/32374
7053 * expr.c (store_constructor): Do not clobber non-zeroed memory.
7054
7055 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
7056
7057 PR target/32413
7058 * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
7059 moves between MMX/SSE registers to at least 8 units to prevent
7060 ICE caused by non-tieable SI/HI/QImodes in SSE registers.
7061
7062 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
7063
7064 * config/i386/i386.c (override_options): Correct x86_sahf
7065 setting condition.
7066
7067 2007-06-21 David Daney <ddaney@avtrex.com>
7068
7069 PR target/32406
7070 * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
7071 to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
7072 (exception_receiver): Renamed to ...
7073 (nonlocal_goto_receiver): ... this.
7074
7075 2007-06-22 Roman Zippel <zippel@linux-m68k.org>
7076
7077 * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
7078 (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
7079 partial register accesses.
7080
7081 2007-06-21 Adam Nemet <anemet@caviumnetworks.com>
7082
7083 * fold-const.c (debug_fold_checksum): Move it under
7084 ENABLE_FOLD_CHECKING.
7085
7086 2007-06-21 Sebastian Pop <sebpop@gmail.com>
7087
7088 PR middle-end/20623
7089 * tree.h (debug_fold_checksum): Declared.
7090 * fold-const.c (build_fold_addr_expr_with_type_1): New.
7091 (build_fold_addr_expr_with_type, build_fold_addr_expr): Use
7092 build_fold_addr_expr_with_type_1.
7093 (fold_addr_expr, debug_fold_checksum): New.
7094 (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
7095 (fold_unary, fold_comparison, split_address_to_core_and_offset):
7096 Use fold_addr_expr.
7097
7098 2007-06-21 Sebastian Pop <sebpop@gmail.com>
7099
7100 PR tree-optimization/19590
7101 * tree-vrp.c (adjust_range_with_scev): Set the range when the result
7102 of scev is a constant.
7103 * gcc/testsuite/gcc.dg/tree-ssa/pr19590.c: New.
7104
7105 2007-06-21 Kenneth Zadeck <zadeck@naturalbridge.com>
7106
7107 * df-problems.c (df_note_bb_compute): Made computation of live
7108 info consistent with df_lr.
7109
7110 2007-06-21 Richard Guenther <rguenther@suse.de>
7111
7112 PR tree-optimization/32453
7113 * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
7114 for pointer anti-range.
7115
7116 2007-06-21 H.J. Lu <hongjiu.lu@intel.com>
7117
7118 * config/i386/i386.c (processor_target_table): Increase maximum
7119 skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
7120 default 64bit.
7121
7122 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
7123 byte alignment if > 8 byte alignment is preferred.
7124 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
7125
7126 2007-06-21 Jakub Jelinek <jakub@redhat.com>
7127
7128 PR tree-optimization/31866
7129 * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
7130 if ASM_EXPR's input is not a SSA_NAME.
7131
7132 PR middle-end/32362
7133 * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
7134 but decl is a global var, instead return decl.
7135 * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
7136 even for is_global_var decls, if they are private in some outer
7137 context.
7138
7139 2007-06-21 Richard Guenther <rguenther@suse.de>
7140
7141 PR tree-optimization/32451
7142 * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
7143
7144 2007-06-21 Christian Bruel <christian.bruel@st.com>
7145
7146 * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
7147 * config/sh/sh.c (sh_loads_bankedreg_p): New function.
7148 (push_regs): Changed saving order or banked registers.
7149 (sh_expand_epilogue): Likewise.
7150 * config/sh/sh.h (BANKED_REGISTER_P): New macro.
7151 (FIRST_BANKED_REG): Likewise.
7152 (LAST_BANKED_REG): Likewise.
7153 * config/sh/sh.md (banked) New attribute.
7154 (in_delay_slot): Check banked attribute.
7155
7156 2007-06-20 Sebastian Pop <sebpop@gmail.com>
7157
7158 PR tree-optimization/32075
7159 * tree-data-ref.c (subscript_dependence_tester_1,
7160 analyze_miv_subscript, analyze_overlapping_iterations,
7161 add_distance_for_zero_overlaps, build_classic_dist_vector,
7162 subscript_dependence_tester_1, analyze_overlapping_iterations,
7163 subscript_dependence_tester, access_functions_are_affine_or_constant_p,
7164 compute_affine_dependence, compute_all_dependences): Pass loop_nest
7165 to evolution_function_is_affine_multivariate_p.
7166
7167 2007-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
7168
7169 * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
7170
7171 2007-06-20 Rask Ingemann Lambertsen <rask@sygehus.dk>
7172
7173 PR target/32335
7174 * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
7175 for TARGET_A16.
7176 * config/m32c/prologue.md (epilogue_exitd_16): New.
7177 (epilogue_reit_16): New.
7178 (epilogue_exitd): Rename to epilogue_exitd_24.
7179 (epilogue_reit): Rename to epilogue_reit_24.
7180
7181 2007-06-20 Seongbae Park <seongbae.park@gmail.com>
7182 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
7183
7184 * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
7185 New counters.
7186 * haifa-sched.c (queue_to_ready): Don't requeue next insn
7187 if dbg_cnt (sched_insn) reaches the limit.
7188 (choose_ready): New parameter INSN_PTR and new return value.
7189 (schedule_block): Handle dbg_cnt (sched_insn). Handle
7190 the new return value from choose_ready.
7191 * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
7192 (rest_of_handle_global_alloc): New global_alloc_at_func.
7193
7194 2007-06-20 Adam Nemet <anemet@caviumnetworks.com>
7195
7196 PR tree-optimization/25737
7197 * tree.h (struct tree_struct_field_tag): Add new field alias_set.
7198 (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
7199 * tree-flow.h (struct fieldoff): Add new field alias_set.
7200 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
7201 argument addressable_type. Set alias_set of fieldoff.
7202 * tree-ssa-alias.c (create_sft): Add new argument alias_set.
7203 (create_overlap_variables_for): Pass alias_set from fieldoff to
7204 create_sft.
7205 * alias.c (get_alias_set): Use alias_set from SFT if set.
7206
7207 2007-06-20 Hui-May Chang <hm.chang@apple.com>
7208
7209 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
7210 of a variable as an unsigned HOST_WIDE_INT integer.
7211
7212 2007-06-20 Zdenek Dvorak <dvorakz@suse.cz>
7213
7214 PR rtl-optimization/32405
7215 * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
7216
7217 2007-06-20 Jakub Jelinek <jakub@redhat.com>
7218
7219 * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
7220
7221 PR middle-end/31959
7222 * builtins.c: Include diagnostic.h.
7223 (expand_builtin_expect): Make gcc_assert more permissive.
7224 * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
7225
7226 PR inline-asm/32109
7227 * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
7228 and !allows_mem.
7229
7230 PR middle-end/32285
7231 * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
7232 if ACCUMULATE_OUTGOING_ARGS.
7233
7234 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
7235
7236 * config/m68hc11/m68hc11.c: Include dataflow header file.
7237 (m68hc11_reorg): Port to dataflow.
7238
7239 2007-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
7240
7241 * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
7242 (struct df_problem.free_blocks_on_set_blocks): New field.
7243 (struct dataflow.optional_p): New field.
7244 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
7245 (df_live_set_all_dirty): New function.
7246 * df-scan.c (df_scan_alloc): Initialize optional_p.
7247 (problem_SCAN): Initialize free_blocks_on_set_blocks.
7248 * df-core.c (df_set_blocks): Removed use of
7249 DF_FIRST_OPTIONAL_PROBLEM. Now uses
7250 df_problem.free_blocks_on_set_blocks to determine which blocks are
7251 recycled.
7252 (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
7253 (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM. Now
7254 uses dataflow.optional_p to determine if problem should be
7255 deleted.
7256 (rest_of_handle_df_initialize): Only start live problem if
7257 -02 or above.
7258 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
7259 * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
7260 df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
7261 (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
7262 problem_NOTE): Initialize free_blocks_on_set_blocks.
7263 (df_lr_bb_local_compute): Recompute luids if df_live problem is
7264 not active.
7265 (df_live_set_all_dirty, df_note_alloc): New function.
7266 * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
7267 df_get_live_*.
7268 * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
7269 * postreload.c (reload_combine): Ditto.
7270 * cse.c (cse_extended_basic_block): Ditto.
7271 * regmove.c (mark_flags_life_zones): Ditto.
7272 * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
7273 erase_matching_seqs): Ditto.
7274 * bt-load.c (compute_defs_uses_and_gen): Ditto.
7275 * integrate (allocate_initial_values): Ditto.
7276 * combine.c (reg_dead_at_p): Ditto.
7277 * resource.c (mark_target_live_regs): Ditto.
7278 * sched-rgn.c (check_live_1, update_live_1): Ditto.
7279 * config/sh/sh.c (find_r0_life_regions): Ditto.
7280 * global.c (rest_of_handle_global_alloc): Only add back df_live
7281 for -O > 1.
7282 * local-alloc.c (rest_of_handle_local_alloc): Only remove
7283 df_live for -O > 1.
7284 * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
7285 df_get_live_*.
7286 (if_convert): Make sure df_live is there at -O == 1.
7287 (pass_if_after_combine): Cleanup flags.
7288 * init-regs.c (initialize_uninitialized_regs): Make sure df_live
7289 is there at -O == 1.
7290
7291 2007-06-19 Seongbae Park <seongbae.park@gmail.com>
7292
7293 * config/arm/arm.c (arm_get_frame_offsets): Set
7294 offsets->locals_base to avoid negative stack size.
7295 (thumb1_expand_prologue): Assert on negative stack size.
7296
7297 2007-06-19 Sebastian Pop <sebpop@gmail.com>
7298
7299 PR tree-optimization/32367
7300 * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side
7301 of the chrec has no evolution in that loop.
7302 * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
7303
7304 2007-06-19 Bob Wilson <bob.wilson@acm.org>
7305
7306 * config/xtensa/xtensa.c: Include "df.h".
7307 (xtensa_builtin_saveregs): Use adjust_address instead of
7308 change_address.
7309 (xtensa_va_start): Invoke make_tree with sizetype for
7310 expand_builtin_saveregs and then convert the result to a pointer.
7311 Use POINTER_PLUS_EXPR. Use size_int instead of build_int_cst.
7312 (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
7313 Subtract argument size from index value as integers and then use
7314 POINTER_PLUS_EXPR to add the result to the array address.
7315
7316 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
7317
7318 PR target/32335
7319 * config/m32c/m32c.c: Include dataflow header file.
7320 (m32c_emit_prologue): Adjust for prologue insn change.
7321 * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
7322 once inside a PARALLEL. Assume frame size passed in operand 0
7323 includes space to save the fb register.
7324 (prologue_enter_24): Likewise.
7325 (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
7326
7327 2007-06-19 David Daney <ddaney@avtrex.com
7328
7329 PR target/32313
7330 * config/mips/mips.md (cprestore): Mark $gp as used.
7331
7332 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
7333
7334 PR target/32369
7335 * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
7336 (frv_ifcvt_modify_insn): Likewise.
7337
7338 2007-06-19 Richard Guenther <rguenther@suse.de>
7339
7340 * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
7341 only handle positive offsets that fit in a HOST_WIDE_INT.
7342
7343 2007-06-19 Uros Bizjak <ubizjak@gmail.com>
7344
7345 * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
7346 result of rsqrt insn for zero input argument to avoid NaN.
7347
7348 2007-06-19 Richard Guenther <rguenther@suse.de>
7349
7350 PR middle-end/31950
7351 * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
7352
7353 2007-06-19 Jakub Jelinek <jakub@redhat.com>
7354
7355 PR tree-optimization/32353
7356 * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
7357
7358 2007-06-19 Nick Clifton <nickc@redhat.com>
7359
7360 * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
7361
7362 2007-06-18 Uros Bizjak <ubizjak@gmail.com>
7363
7364 PR target/32389
7365 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
7366 * config/i386/i386.c (assign_386_stack_local): Assert that
7367 SLOT_VIRTUAL is valid only before virtual regs are instantiated.
7368 (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
7369 Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
7370 * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
7371
7372 2007-06-18 Steve Ellcey <sje@cup.hp.com>
7373
7374 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
7375
7376 2007-06-18 Seongbae Park <seongbae.park@gmail.com>
7377
7378 PR rtl-optimization/32321
7379 * gcse.c (replace_store_insn): Update the note before
7380 calling emit_insn_after.
7381
7382 2007-06-18 Kenneth Zadeck <zadeck@naturalbridge.com>
7383
7384 PR middle-end/32355
7385 * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
7386 cse_main.
7387 * df-problems.c (df_note_bb_compute): Fix dumping info.
7388
7389 2007-06-18 Kazu Hirata <kazu@codesourcery.com>
7390
7391 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
7392 insn with emit_jump_insn.
7393
7394 2007-06-18 Uros Bizjak <ubizjak@gmail.com>
7395
7396 PR tree-optimization/32383
7397 * targhooks.c (default_builtin_reciprocal): Add new bool argument.
7398 * targhooks.h (default_builtin_reciprocal): Update prototype.
7399 * target.h (struct gcc_target): Update builtin_reciprocal.
7400 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
7401 * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
7402 where arg1 is not SSA_NAME. Pass true to targetm.builtin_reciprocal
7403 when fndecl is in BUILT_IN_MD class.
7404 (execute_convert_to_rsqrt): Ditto.
7405
7406 * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
7407 argument. Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
7408 Convert BUILT_IN_SQRTF code only when md_fn is false.
7409
7410 2007-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
7411
7412 * bt-load.c (move_btr_def): Fix the order of arguments
7413 to validate_replace_rtx.
7414
7415 2007-06-18 Nathan Sidwell <nathan@codesourcery.com>
7416
7417 * config/m68k/m68k-devices.def: Add 54450..54455.
7418
7419 2007-06-17 Uros Bizjak <ubizjak@gmail.com>
7420
7421 PR rtl-optimization/32366
7422 * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
7423 FLOAT_EXTEND]: Prevent non-scalar modes from entering
7424 significand_size.
7425
7426 2007-06-17 Kenneth Zadeck <zadeck@naturalbridge.com>
7427
7428 PR middle-end/32349
7429 * modulo-sched (generate_reg_moves): Added rescan parameter and if
7430 this is true, rescan insn being modified.
7431 (sms_schedule): Added rescan parameter.
7432 (rest_of_handle_sms): Moved freeing of dominance info to before
7433 getting out of cfg_layout.
7434
7435 2007-06-17 Nathan Sidwell <nathan@codesourcery.com>
7436
7437 * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
7438 * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
7439 appropriate.
7440
7441 * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
7442 FL_CF_EMAC from the entry for isac.
7443
7444 * config/m68k/predicates.md (const_call_operand): Adjust comment.
7445 (const_sibcall_operand): New.
7446 (sibcall_operand): Use it.
7447 * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
7448 (m68k_isas): ISAC does not imply FPU or EMAC.
7449 (override_options): Add ISA_C logic for symbolic jump & call.
7450
7451 2007-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
7452
7453 * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
7454 return mode from the builtin itself.
7455 (sparc_fold_builtin): Fix cast of zero constant.
7456
7457 2007-06-16 Uros Bizjak <ubizjak@gmail.com>
7458
7459 * targhooks.c (default_builtin_reciprocal): New default target hook.
7460 * targhooks.h (default_builtin_reciprocal): Add prototype.
7461 * hooks.c (hook_tree_tree_bool_null): Remove hook.
7462 * hooks.h (hook_tree_tree_bool_null): Remove prototype.
7463 * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
7464 default_builtin_reciprocal.
7465
7466 2007-06-16 Uros Bizjak <ubizjak@gmail.com>
7467
7468 PR middle-end/31723
7469 * hooks.c (hook_tree_tree_bool_null): New hook.
7470 * hooks.h (hook_tree_tree_bool_null): Add prototype.
7471 * tree-pass.h (pass_convert_to_rsqrt): Declare.
7472 * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
7473 * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
7474 and convert it to reciprocal a*rfunc(b).
7475 (execute_convert_to_rsqrt): New function.
7476 (gate_convert_to_rsqrt): New function.
7477 (pass_convert_to_rsqrt): New pass definition.
7478 * target.h (struct gcc_target): Add builtin_reciprocal.
7479 * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
7480 (TARGET_INITIALIZER): Initialize builtin_reciprocal with
7481 TARGET_BUILTIN_RECIPROCAL.
7482 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
7483
7484 * config/i386/i386.h (TARGET_RECIP): New define.
7485 * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
7486 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
7487 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
7488 and not optimizing for size.
7489 (*rcpsf2_sse): New insn pattern.
7490 (*rsqrtsf2_sse): Ditto.
7491 (rsqrtsf2): New expander. Expand by calling ix86_emit_swsqrtsf
7492 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
7493 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
7494 and not optimizing for size.
7495 (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
7496 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
7497 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
7498 and not optimizing for size.
7499 * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
7500 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
7501 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
7502 and not optimizing for size.
7503 (*sse_rsqrtv4sf2): Do not export.
7504 (sqrtv4sf2): Ditto.
7505 (sse_rsqrtv4sf2): New expander. Expand by calling ix86_emit_swsqrtsf
7506 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
7507 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
7508 and not optimizing for size.
7509 (sqrtv4sf2): Ditto.
7510 * config/i386/i386.opt (mrecip): New option.
7511 * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
7512 (ix86_emit_swsqrtsf): Ditto.
7513 * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
7514 (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
7515 builtin definition.
7516 (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
7517 ix86_expand_unop1_builtin.
7518 (ix86_emit_swdivsf): New function.
7519 (ix86_emit_swsqrtsf): Ditto.
7520 (ix86_builtin_reciprocal): New function.
7521 (TARGET_BUILTIN_RECIPROCAL): Use it.
7522 (ix86_vectorize_builtin_conversion): Rename from
7523 ix86_builtin_conversion.
7524 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
7525 * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
7526 "i386 and x86_64 Options" section.
7527 (Intel 386 and AMD x86_64 Options): Document -mrecip.
7528
7529 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
7530 Zdenek Dvorak <dvorakz@suse.cz>
7531 Richard Guenther <rguenther@suse.de>
7532 Kaz Kojima <kkojima@gcc.gnu.org>
7533
7534 * tree-vrp.c (compare_values_warnv): Convert val2 to
7535 the type of val1.
7536 (extract_range_from_assert): Create
7537 POINTER_PLUS_EXPR for pointer types.
7538 (extract_range_from_binary_expr): Handle
7539 only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
7540 for pointer types.
7541 * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
7542 * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
7543 POINTER_PLUS_EXPR as PLUS_EXPR.
7544 (number_of_iterations_lt_to_ne):
7545 For pointer types, use sizetype when
7546 creating MINUS_EXPR/PLUS_EXPRs.
7547 (assert_loop_rolls_lt): For pointer types, use sizetype when
7548 creating MINUS_EXPR/PLUS_EXPRs.
7549 (number_of_iterations_le): Likewise.
7550 (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
7551 (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
7552 like PLUS_EXPR and MINUS_EXPR.
7553 * tree-pretty-print.c (dump_generic_node): Handle
7554 POINTER_PLUS_EXPR.
7555 (op_prio): Likewise.
7556 (op_symbol_1): Likewise.
7557 * optabs.c (optab_for_tree_code): Likewise.
7558 * tree-ssa-loop-manip.c (create_iv): Handle pointer base
7559 specially.
7560 * tree-tailcall.c (process_assignment): Mention
7561 POINTER_PLUS_EXPR in a TODO comment.
7562 * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or
7563 MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
7564 not used with a pointer and an integer type.
7565 * tree-scalar-evolution.c (add_to_evolution_1): Convert the
7566 increment using chrec_convert_rhs instead of chrec_convert.
7567 (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
7568 PLUS_EXPR except for the right hand side's type will be
7569 sizetype.
7570 (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
7571 (fold_used_pointer_cast): Kill.
7572 (pointer_offset_p): Kill.
7573 (fold_used_pointer): Kill.
7574 (pointer_used_p): Kill.
7575 (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
7576 call fold_used_pointer.
7577 (instantiate_parameters_1): Convert the increment
7578 using chrec_convert_rhs instead of chrec_convert.
7579 Handle POINTER_PLUS_EXPR as PLUS_EXPR.
7580 * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
7581 instead of PLUS_EXPR.
7582 (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
7583 PLUS_EXPR for pointers.
7584 (std_gimplify_va_arg_expr): Likewise.
7585 (fold_builtin_memory_op): Likewise.
7586 (fold_builtin_strstr): Likewise.
7587 (fold_builtin_strchr): Likewise.
7588 (fold_builtin_strrchr): Likewise.
7589 (fold_builtin_strpbrk): Likewise.
7590 (expand_builtin_memory_chk): Likewise.
7591 (fold_builtin_memory_chk): Likewise.
7592 (std_expand_builtin_va_start): Use
7593 sizetype for the call to make_tree and then convert
7594 to the pointer type.
7595 (fold_builtin_memchr): Use POINTER_PLUS_EXPR
7596 instead of PLUS_EXPR for adding to a pointer.
7597 (std_gimplify_va_arg_expr): Use fold_build2 for
7598 the creating of POINTER_PLUS_EXPR. For the BIT_AND_EXPR, cast
7599 the operands to sizetype first and then cast the BIT_AND_EXPR
7600 back to the pointer type.
7601 * fold-const.c (build_range_check): Handle pointer types
7602 specially.
7603 (extract_array_ref): Look for POINTER_PLUS_EXPR instead
7604 of PLUS_EXPR's. Make sure the offset is converted to
7605 sizetype.
7606 (try_move_mult_to_index): Strip the NOPs from the offset.
7607 Remove code argument and replace all uses with PLUS_EXPR.
7608 (fold_to_nonsharp_ineq_using_bound): Handle pointer types
7609 specially. Don't use a pointer type for MINUS_EXPR.
7610 (fold_unary): Handle for (T1)(X op Y),
7611 only p+ as that is the only as that can be handled for
7612 binary operators now.
7613 (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
7614 POINTER_PLUS_EXPR.
7615 <case PLUS_EXPR>: Add folding of PTR+INT into
7616 PTR p+ INT.
7617 Don't call try_move_mult_to_index.
7618 <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
7619 into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
7620 (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
7621 Don't call try_move_mult_to_index.
7622 (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
7623 (tree_expr_nonzero_p): Likewise.
7624 (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
7625 of PLUS_EXPR for the complex expression folding.
7626 * tree-chrec.c (chrec_fold_plus_poly_poly): If the
7627 first chrec is a pointer type, then the second should
7628 be sizetype and not the first's type.
7629 For POINTER_PLUS_EXPR, use a different right hand side type.
7630 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
7631 (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
7632 different right hand side type.
7633 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
7634 (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
7635 instead of PLUS_EXPR.
7636 When either operand is zero, convert the other operand.
7637 (chrec_apply): Use chrec_convert_rhs
7638 on the argument x instead of chrec_convert.
7639 (reset_evolution_in_loop): For pointer types, the new_evol
7640 should be sizetype.
7641 (convert_affine_scev): For POINTER_PLUS_EXPR, use a
7642 different right hand side type.
7643 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
7644 (chrec_convert_rhs): New function.
7645 (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
7646 different right hand side type.
7647 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
7648 * tree-chrec.h (chrec_convert_rhs): New prototype.
7649 (build_polynomial_chrec): For pointer types, the right hand
7650 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
7651 POINTER_PLUS_EXPR instead of PLUS_EXPR's.
7652 Remove subtraction case as it is always addition now.
7653 Make sure the offset is converted to sizetype.
7654 (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
7655 Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
7656 * tree-ssa-loop-ivopts.c (determine_base_object): Abort for
7657 PLUS_EXPR in pointer type.
7658 Handle POINTER_PLUS_EXPR.
7659 (tree_to_aff_combination): Likewise.
7660 (force_expr_to_var_cost): Likewise.
7661 (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
7662 instead of PLUS_EXPR for pointers.
7663 * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
7664 instead of PLUS_EXPR of pointer types.
7665 * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
7666 as PLUS_EXPR.
7667 (check_va_list_escapes): Likewise.
7668 (check_all_va_list_escapes): Likewise.
7669 * dwarf2out.c (loc_descriptor_from_tree_1):
7670 Handle POINT_PLUS_EXPR as a PLUS_EXPR.
7671 * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
7672 (string_constant): Likewise.
7673 * tree-ssa-address.c (tree_mem_ref_addr): When adding
7674 the offset to the base, use POINTER_PLUS_EXPR.
7675 (add_to_parts): Convert the index to sizetype.
7676 (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
7677 * matrix-reorg.c (collect_data_for_malloc_call): Stmt
7678 will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
7679 Offset only holds something for PLUS_EXPR.
7680 (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
7681 a PLUS_EXPR.
7682 (analyze_transpose): POINTER_PLUS_EXPR will only show up now
7683 and not PLUS_EXPR.
7684 (analyze_accesses_for_modify_stmt): Likewise.
7685 Remove comment about the type being integral type as it is
7686 wrong now.
7687 (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
7688 PLUS_EXPR.
7689 (transform_access_sites): POINTER_PLUS_EXPR will only show up now
7690 and not PLUS_EXPR.
7691 Correct the type which the artimentic is done in (is now
7692 sizetype).
7693 Reindent one loop.
7694 * tree-data-ref.c (split_constant_offset): Handle
7695 POINTER_PLUS_EXPR
7696 * tree-affine.c (tree_to_aff_combination): Likewise.
7697 * c-typeck.c (build_unary_op): For pointers create the increment
7698 as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
7699 for pointers.
7700 * gimplify.c (gimplify_self_mod_expr): Create a
7701 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
7702 (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
7703 * tree.def (POINTER_PLUS_EXPR): New tree code.
7704 * tree-predcom.c (ref_at_iteration): If we have a pointer
7705 type do the multiplication in sizetype.
7706 * tree-mudflap.c (mf_xform_derefs_1): Create a
7707 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
7708 * tree-ssa-forwprop.c
7709 (forward_propagate_addr_into_variable_array_index):
7710 Don't expect there to be a cast for the index as that
7711 does not exist anymore.
7712 (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
7713 instead of PLUS_EXPR.
7714 Don't check for the first operand of the POINTER_PLUS_EXPR
7715 was the index as it cannot be.
7716 Call forward_propagate_addr_into_variable_array_index with
7717 the SSA_NAME instead of the statement.
7718 * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
7719 (compare_constant): Likewise.
7720 (copy_constant): Likewise.
7721 (compute_reloc_for_constant): Likewise.
7722 (output_addressed_constants): Likewise.
7723 (initializer_constant_valid_p): Likewise.
7724 * tree-ssa.c (tree_ssa_useless_type_conversion_1):
7725 Convert the MIN/MAX of the inner type to the outer
7726 type before comparing them.
7727 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Handle
7728 POINTER_PLUS_EXPR instead of PLUS_EXPR.
7729 (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
7730 of PLUS_EXPR for pointers.
7731 * tree-inline.c (estimate_num_insns_1): Handle
7732 POINTER_PLUS_EXPR.
7733 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
7734 Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
7735 (bump_vector_ptr): Create a POINTER_PLUS_EXPR
7736 instead of PLUS_EXPR for the pointer increment statement.
7737 (vect_update_ivs_after_vectorizer): For pointer types, create
7738 POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
7739 MULT_EXPR in sizetype.
7740 (vect_gen_niters_for_prolog_loop): Add a cast when creating
7741 byte_misalign.
7742 * tree-object-size.c (plus_expr_object_size): Handle
7743 POINTER_PLUS_EXPR instead of PLUS_EXPR. Removing all the extra
7744 code which is trying to figure out which side is a pointer and
7745 is the index.
7746 (check_for_plus_in_loops_1): Likewise.
7747 (check_for_plus_in_loops): Likewise.
7748 * c-common.c (pointer_int_sum): Create a
7749 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
7750 * tree-ssa-structalias.c (handle_ptr_arith): Handle
7751 only POINTER_PLUS_EXPR. Removing all the extra
7752 code which is trying to figure out which side is a pointer and
7753 is the index.
7754 * tree-cfg.c (verify_expr): Add extra checking for pointers and
7755 PLUS_EXPR and MINUS_EXPR.
7756 Also add checking to make sure the operands of POINTER_PLUS_EXPR
7757 are correct.
7758 * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
7759 with make_tree, instead of a pointer type.
7760 * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
7761 for pointers instead of PLUS_EXPR.
7762 (s390_gimplify_va_arg): Likewise.
7763 * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
7764 instead of PLUS_EXPR when doing addition on pointer
7765 types. Use sizetype for the second operand.
7766 (spu_gimplify_va_arg_expr): Likewise.
7767 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use
7768 POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
7769 a pointer. Don't create a BIT_AND_EXPR for pointer types.
7770 * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
7771 for the pointer addition and also use size_int/sizetype
7772 for the offset.
7773 (ix86_gimplify_va_arg): Likewise.
7774 Perform BIT_AND_EXPR on sizetype arguments.
7775 * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
7776 and convert its result to a pointer type. Use POINTER_PLUS_EXPR
7777 for the pointer additions and also use size_int for the offsets.
7778 (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
7779 additions and also use size_int for the offsets. Perform
7780 BIT_AND_EXPR on sizetype arguments.
7781 * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
7782 POINTER_PLUS_EXPR for pointers and create the
7783 BIT_AND_EXPR in sizetype.
7784 * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
7785 instead of PLUS_EXPR for pointer addition.
7786 (rs6000_va_start): Likewise.
7787 Also use sizetype for the offset.
7788 * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
7789 as PLUS_EXPR/MINUS_EXPR.
7790 (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
7791 PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
7792 Don't use BIT_AND_EXPR on a pointer type, convert the
7793 expression to sizetype first.
7794 * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
7795 for pointers.
7796 (mips_gimplify_va_arg_expr): Likewise.
7797 Don't create BIT_AND_EXPR in a pointer type.
7798
7799 2007-06-15 Eric Christopher <echristo@apple.com>
7800
7801 * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
7802 (x86_64-*-darwin*): Ditto.
7803 * config/i386/darwin.h (CRTEND_SPEC): New. Add support
7804 for above.
7805
7806 2007-06-15 Matthew Wilcox <matthew@wil.cx>
7807
7808 * doc/extend.texi: Document behavior of __attribute__((aligned))
7809 on typedefs.
7810
7811 2007-06-15 Mark Mitchell <mark@codesourcery.com>
7812
7813 * rtlanal.c (note_stores): Improve documentation.
7814
7815 2007-06-15 Bernd Schmidt <bernd.schmidt@analog.com>
7816
7817 * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
7818 LOCAL_LABEL_PREFIX): Delete.
7819 * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
7820 (bfin_internal_label): Delete.
7821
7822 2007-06-15 Uros Bizjak <ubizjak@gmail.com>
7823
7824 * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
7825 define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
7826 otherwise define to LIBGCC2_TF_CEXT.
7827 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
7828 (LIBGCC_TF_CEXT): Ditto.
7829 (TF_SIZE): Ditto.
7830
7831 2007-06-14 Seongbae Park <seongbae.park@gmail.com>
7832
7833 PR rtl-optimization/32339
7834 * df-scan.c (df_uses_record): Don't modify flags but just add to
7835 it for df_ref_record.
7836
7837 2007-06-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
7838
7839 * tree-mudflap.c: Fix whitespace issues.
7840
7841 2007-06-15 Kazu Hirata <kazu@codesourcery.com>
7842
7843 * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
7844
7845 2007-06-14 Eric Christopher <echristo@apple.com>
7846
7847 * config/i386/sse.md (movdi_to_sse): Rewrite body.
7848 (movv4sf): Use gcc_unreachable instead of abort.
7849
7850 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7851
7852 PR target/32268
7853 * config/i386/sfp-machine.h (CMPtype): New define.
7854 (mach stubs): Use CMPtype instead of int as a return type.
7855
7856 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
7857
7858 * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
7859 config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
7860 config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
7861 config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
7862 config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
7863 config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
7864 config/soft-fp/soft-fp.h: Update from glibc CVS.
7865
7866 2007-06-14 Bernd Schmidt <bernd.schmidt@analog.com>
7867
7868 * config/bfin/uclinux.h (MFWRAP_SPEC): New.
7869
7870 2007-06-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
7871
7872 PR target/32341
7873 * config/v850/v850.c: Include dataflow header file.
7874 (substitute_ep_register): Fix typo.
7875
7876 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
7877
7878 * configure.ac: Fix earlier checkin.
7879 * configure: Regenerated.
7880
7881 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
7882
7883 * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
7884 * aclocal.m4: Regenerate.
7885 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
7886 ACX_PROG_CC_WARNINGS_ARE_ERRORS,
7887 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
7888 * configure: Regenerate.
7889 * Makefile.in (LOOSE_WARN): Subst loose_warn.
7890
7891 * Makefile.in (quickstrap): Build libgcc too.
7892
7893 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
7894
7895 * configure.ac: Add --enable-checking=df. Explicitly mention that
7896 the variables are initialized as for "release".
7897 * df-core.c: Use it.
7898 * configure: Regenerate.
7899 * config.in: Regenerate.
7900
7901 2007-06-14 Bob Wilson <bob.wilson@acm.org>
7902
7903 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
7904 validate_replace_rtx instead of replace_rtx.
7905 (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
7906
7907 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
7908
7909 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
7910 (DWARF2_UNWIND_INFO): Override default if configured with
7911 SJLJ EH disabled.
7912 * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
7913 (ENDFILE_SPEC): Add crtend.o.
7914 * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
7915 (ENDFILE_SPEC): Add crtend.o.
7916 (TARGET_USE_JCR_SECTION): Define.
7917 (MD_UNWIND_SUPPORT): Define for 32-bit target.
7918
7919 * config/i386/cygming-crtbegin.c: New file.
7920 * config/i386/cygming-crtend.c: New file.
7921
7922 2007-06-14 Pascal Obry Pascal Obry <obry@adacore.com>
7923
7924 * config/i386/w32-unwind.h: New file.
7925
7926 2007-06-13 Eric Christopher <echristo@apple.com>
7927
7928 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
7929 the user set a value below STACK_BOUNDARY.
7930
7931 2007-06-13 Thiemo Seufer <ths@networkno.de>
7932
7933 * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
7934 imply -lpthread for -pthread.
7935
7936 2007-06-13 Kazu Hirata <kazu@codesourcery.com>
7937
7938 * basic-block.h: Remove the prototype for
7939 free_basic_block_vars.
7940 * cfglayout.h: Remove the prototype for
7941 insn_locators_initialize.
7942 * tree.h: Remove the prototype for emit_line_note.
7943
7944 * tree-ssa-pre.c (mergephitemp): Remove.
7945 (init_pre): Don't use mergephitemp.
7946
7947 2007-06-13 Eric Christopher <echristo@apple.com>
7948
7949 * config/i386/i386.c (override_options): If we've specified
7950 an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
7951
7952 2007-06-13 Bob Wilson <bob.wilson@acm.org>
7953
7954 * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
7955 is defined.
7956
7957 2007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
7958
7959 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
7960 * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
7961 (eh_store_handler): New pattern.
7962 (eh_return): Emit it instead of a plain move.
7963
7964 2007-06-13 Uros Bizjak <ubizjak@gmail.com>
7965
7966 * config/i386/i386.c (ix86_init_mmx_sse_builtins)
7967 [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
7968 [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
7969 def_builtin_const.
7970
7971 2007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
7972
7973 * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
7974 (find_next_insn_start, find_load): New functions.
7975 (bfin_reorg): Use them to deal with the fact that parallel insns are
7976 no longer represented as a SEQUENCE.
7977
7978 2007-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
7979
7980 * config/sparc/sparc.c (sparc_override_options): Initialize
7981 fpu mask correctly.
7982
7983 2007-06-13 Dave Korn <dave.korn@artimi.com>
7984
7985 * config/i386/i386.c (ix86_eax_live_at_start_p): Use
7986 df_get_live_out.
7987
7988 2007-06-13 Kazu Hirata <kazu@codesourcery.com>
7989
7990 * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
7991 config/sh/divcost-analysis, dbgcnt.def, df-core.c,
7992 df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
7993 tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
7994 tree-vect-transform.c: Fix comment typos. Follow spelling
7995 conventions.
7996
7997 2007-06-12 Seongbae Park <seongbae.park@gmail.com>
7998
7999 * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
8000 to the exit block use set.
8001 (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring".
8002 * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
8003 * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
8004
8005 2007-06-12 Seongbae Park <seongbae.park@gmail.com>
8006
8007 * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
8008 * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
8009 to indicate an error.
8010 (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters):
8011 New functions.
8012 (dbg_cnt_process_opt): Print an error on a bad argument.
8013 * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
8014 * common.opt (-fdbg-cnt-list): New.
8015 * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
8016
8017 2007-06-12 Eric Botcazou <ebotcazou@adacore.com>
8018
8019 * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
8020 flag on ref-all pointers.
8021
8022 2007-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
8023
8024 PR middle-end/31579
8025 * expr.c (expand_expr_addr_expr_1): Call expand_expr
8026 for the offset with the modifier as EXPAND_INITIALIZER
8027 if the modifier is EXPAND_INITIALIZER.
8028 (expand_expr_real_1 <case INTEGER_CST>): Don't force to
8029 a register if we had an overflow.
8030
8031 2007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8032
8033 * real.c (real_isfinite): New.
8034 (real_sqrt): Use it.
8035 * real.h (real_isfinite): New.
8036 * builtins.c: Use it.
8037
8038 2007-06-12 Ian Lance Taylor <iant@google.com>
8039 Daniel Berlin <dberlin@dberlin.org>
8040
8041 PR libstdc++/29286
8042 * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
8043 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
8044 (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
8045 (DECL_NO_TBAA_P): Define.
8046 (struct tree_decl_common): Add no_tbaa_flag field.
8047 * tree-ssa-structalias.c (struct variable_info): Add
8048 no_tbaa_pruning field.
8049 (new_var_info): Initialize no_tbaa_pruning field.
8050 (unify_nodes): Copy no_tbaa_pruning field.
8051 (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
8052 (dump_solution_for_var): Print no_tbaa_pruning flag.
8053 (set_uids_in_ptset): Add no_tbaa_pruning parameter. Change all
8054 callers.
8055 (compute_tbaa_pruning): New static function.
8056 (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
8057 Call compute_tbaa_pruning.
8058 * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
8059 * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
8060 * gimple-low.c (lower_stmt): Likewise.
8061 * tree-gimple.c (is_gimple_stmt): Likewise.
8062 * tree-ssa-operands.c (get_expr_operands): Likewise.
8063 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8064 * tree-inline.c (estimate_num_insns_1): Likewise.
8065 (copy_result_decl_to_var): Likewise.
8066 * expr.c (expand_expr_real_1): Likewise.
8067 * tree-pretty-print.c (dump_generic_node): Likewise.
8068 * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
8069 * omp-low.c (omp_copy_decl_2): Likewise.
8070 * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
8071 * doc/c-tree.texi (Expression trees): Document
8072 CHANGE_DYNAMIC_TYPE_EXPR.
8073
8074 2007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8075
8076 * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
8077 with !HONOR_NANS and !HONOR_INFINITIES.
8078 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8079
8080 2007-06-12 Tristan Gingold <gingold@adacore.com>
8081
8082 * gcov.c: Comments updated.
8083 (source_info): Add file_time field.
8084 (source_index): New variable.
8085 (mutiple_files): New variable.
8086 (generate_results): New function extracted from process_file.
8087 (process_file): Save and restore chain of functions, generate
8088 results and free structures only if not merging results.
8089 (release_structures): File names are now freed in create_file_names
8090 (create_file_names): Free previous file names.
8091 (find_source): File date is now read here and modifications in
8092 source files is checked here.
8093 (read_graph_file): Only reverse order of functions for the current
8094 object file.
8095 (make_gcov_file_name): Do not generate long names if input_name is
8096 NULL.
8097 (output_lines): If merging results do not display graph, data and
8098 runs informations.
8099 Checking source file modification is done in find_source.
8100
8101 * doc/gcov.texi: Append an s to sourcefile.
8102
8103 2007-06-12 Bernd Schmidt <bernd.schmidt@analog.com>
8104
8105 * config/bfin/bfin.md (UNSPEC_NOP): New constant.
8106 (forced_nop): New pattern.
8107 * config/bfin/bfin.c: Include "df.h".
8108 (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
8109 (bfin_discover_loop): Use df_get_live_in instead of
8110 global_live_at_start.
8111 (bfin_reorder_loops): Pass 0 to cfg_layout_initialize. Call
8112 df_analyze when done.
8113 (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
8114 the insns. Use QImode for the final insn in a bundle. Call
8115 df_insn_rescan on generated NOPs; use gen_forced_nop instead of
8116 gen_nop.
8117 (reorder_var_tracking_notes): New function.
8118 (bfin_reorg): Pass no argument to split_all_insns. Don't call
8119 update_life_info. Call df_analyze after scheduling and bundle
8120 generation. Call reorder_var_tracking_notes if generating these
8121 notes. Call df_finish_pass at the end.
8122
8123 2007-06-12 Dirk Mueller <dmueller@suse.de>
8124
8125 * optabs.c (debug_optab_libfuncs): fix gcc_assert to
8126 a comparison, not an assignment.
8127
8128 2007-06-12 Olivier Hainque <hainque@adacore.com>
8129
8130 * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
8131 Request walking the subtrees only, leaving the current is_lhs/val_only
8132 untouched.
8133 (convert_non_local_reference): Likewise.
8134
8135 2007-06-12 Nathan Sidwell <nathan@codesourcery.com>
8136
8137 * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
8138
8139 2007-06-12 Richard Guenther <rguenther@suse.de>
8140
8141 PR tree-optimization/15353
8142 PR tree-optimization/31657
8143 * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
8144 * timevar.def: Add TV_TREE_IFCOMBINE.
8145 * tree-pass.h (pass_tree_ifcombine): Declare.
8146 * tree-ssa-ifcombine.c: New file.
8147 * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
8148 * tree-flow.h (blocks_in_phiopt_order): Declare.
8149 * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
8150 (tree-ssa-ifcombine.o): New dependencies.
8151
8152 2007-06-12 Uros Bizjak <ubizjak@gmail.com>
8153
8154 PR rtl-optimization/32293
8155 * combine.c (simplify_if_then_else): Truncate return from
8156 nonzero_bits() to correct mode.
8157
8158 2007-06-12 Uros Bizjak <ubizjak@gmail.com>
8159
8160 * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
8161 into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
8162
8163 2007-06-11 Diego Novillo <dnovillo@google.com>
8164
8165 * Makefile.in (reload1.o-warn): Remove.
8166
8167 2007-06-11 Seongbae Park <seongbae.park@gmail.com>
8168
8169 * combine.c (subst): Use reg_overlap_mentioned_p
8170 instead of comparing register numbers directly.
8171
8172 2007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
8173
8174 * reload1.c (mark_home_live_1): Use the mode parameter.
8175
8176 2007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
8177
8178 * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
8179 df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
8180 word "deferred".
8181 * df-core.c: Ditto.
8182
8183 2007-06-11 Daniel Berlin <dberlin@dberlin.org>
8184
8185 * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
8186
8187 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
8188
8189 * config/i386/i386.md ("*movtf_internal): Penalize moves to and
8190 from integer registers.
8191 (FP mode splitters): Handle TFmode.
8192
8193 2007-06-11 Eric Botcazou <ebotcazou@adacore.com>
8194
8195 * tree-ssa-structalias.c (find_what_p_points_to): Return false
8196 for ref-all pointers that point-to anything.
8197
8198 2007-06-11 Joseph Myers <joseph@codesourcery.com>
8199
8200 * config/arm/arm.c (arm_output_dwarf_dtprel,
8201 TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
8202
8203 2007-06-11 Bernd Schmidt <bernd.schmidt@analog.com>
8204
8205 * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
8206 movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
8207 to memory moves.
8208
8209 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
8210
8211 * tree.c (signed_or_unsigned_type_for): New.
8212 (unsigned_type_for): Use signed_or_unsigned_type_for.
8213 (signed_type_for): Use signed_or_unsigned_type_for.
8214 * tree.h (signed_or_unsigned_type_for): New.
8215 (get_signed_or_unsigned_type): Remove.
8216 * fold-const.c (fold_negate_expr): Use signed_type_for instead of
8217 lang_hooks.types.signed_type
8218 (size_diffop): Likewise.
8219 (all_ones_mask_p): Likewise.
8220 (build_range_check): Likewise.
8221 (fold_cond_expr_with_comparison): Likewise.
8222 (fold_cond_expr_with_comparison): Likewise.
8223 (unextend): Likewise.
8224 (extract_muldiv_1): Likewise.
8225 (fold_single_bit_test_into_sign_test): Likewise.
8226 (fold_binary): Likewise.
8227 (fold_ternary): Likewise.
8228 (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
8229 instead of get_signed_or_unsigned_type.
8230 * c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
8231 (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
8232 * expr.c (signed_or_unsigned_type_for): Use
8233 signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
8234 * langhooks.c (get_signed_or_unsigned_type): Remove.
8235 (lhd_signed_or_unsigned_type): Remove.
8236 * langhooks.h (lang_hooks_for_types): Remove signed_type and
8237 signed_or_unsigned_type.
8238 (lhd_signed_or_unsigned_type): Remove.
8239 * expmed.c (make_tree): Use signed_type_for instead of
8240 lang_hooks.types.signed_type.
8241 * c-common.c (same_scalar_type_ignoring_signedness): Use
8242 c_common_signed_type instead of lang_hooks.types.signed_type.
8243 (c_common_unsigned_type): New.
8244 (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
8245 (shorten_compare): Use c_common_unsigned_type instead of
8246 c_common_signed_or_unsigned_type.
8247 (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
8248 unsigned_type_for.
8249 * convert.c (convert_to_integer): Use signed_type_for instead of
8250 lang_hooks.types.signed_type.
8251 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
8252 (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
8253 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
8254 * c-format.c (check_format_types): Use c_common_unsigned_type
8255 instead of unsigned_type_for.
8256 * c-decl.c (groakdeclarator): Likewise.
8257 * c-typeck.c (convert_for_assignment): Likewise.
8258 * c-common.h (c_common_unsigned_type): New.
8259
8260 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
8261
8262 PR target/32280
8263 * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
8264 * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
8265
8266 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
8267
8268 PR middle-end/32279
8269 * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
8270 into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
8271
8272 2007-06-10 Jan Sjodin <jan.sjodin@amd.com>
8273 Sebastian Pop <sebpop@gmail.com>
8274
8275 * lambda-code.c (remove_iv): New.
8276 (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
8277
8278 2007-06-10 Zdenek Dvorak <dvorakz@suse.cz>
8279
8280 * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
8281 * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
8282 * tree-ssa-loop-prefetch.c: Include optabs.h.
8283 (FENCE_FOLLOWING_MOVNT): New macro.
8284 (struct mem_ref): Add independent_p and storent_p fields.
8285 (record_ref): Initalize the new fields.
8286 (gather_memory_references_ref): Return true if the reference
8287 could be analysed.
8288 (gather_memory_references): Check whether all memory accesses
8289 in loop were recorded.
8290 (should_issue_prefetch_p): Return false for nontemporal stores.
8291 (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
8292 may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
8293 (determine_loop_nest_reuse): Detect independent memory references.
8294 (loop_prefetch_arrays): Call mark_nontemporal_stores.
8295 * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
8296 * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
8297 * config/i386/i386.h (x86_mfence): Declare.
8298 (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
8299 * config/i386/i386.c (x86_mfence): New variable.
8300 (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
8301
8302 * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
8303 * optabs.c (init_optabs): Initialize storent_optab.
8304 * optabs.h (enum optab_index): Add OTI_storent.
8305 (storent_optab): Declare.
8306 * genopinit.c (optabs): Add initialization for storent_optab.
8307 * tree.h (MOVE_NONTEMPORAL): New macro.
8308 * expr.c (expand_assignment, store_expr, store_constructor_field,
8309 store_constructor, store_field, expand_expr_real_1): Propagate
8310 nontemporality of the expanded store.
8311 (emit_storent_insn): New function.
8312 * expr.h (expand_assignment, store_expr): Declaration changed.
8313 * function.c (assign_parm_setup_reg): Pass false as nontemporality
8314 to expand_assignment.
8315 * stmt.c (expand_asm_expr): Ditto.
8316 * calls.c (initialize_argument_information): Pass false as
8317 nontemporality to store_expr.
8318 * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
8319 storentsi): New.
8320
8321 2007-06-09 Daniel Berlin <dberlin@dberlin.org>
8322
8323 * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
8324 parameter, use it.
8325 (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
8326
8327 2007-06-09 Daniel Berlin <dberlin@dberlin.org>
8328
8329 * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
8330 and allow DECL_P here.
8331
8332 2007-06-09 Zdenek Dvorak <dvorakz@suse.cz>
8333
8334 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
8335 follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
8336 track of the size of the expression.
8337 * cfghooks.c (merge_blocks): Remove block from loops structure only
8338 after call of the merge_blocks hook.
8339
8340 2007-06-09 Tom Tromey <tromey@redhat.com>
8341
8342 * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
8343 (deprecated_state): Removed.
8344 (start_decl): Update.
8345 (enum deprecated_states): Moved earlier.
8346 (groktypename): Update.
8347 (push_parm_decl): Likewise.
8348 (grokfield): Likewise.
8349 (start_function): Likewise.
8350
8351 2007-06-09 Ian Lance Taylor <iant@google.com>
8352
8353 PR tree-optimization/32169
8354 * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
8355 CONVERT_EXPR, check whether min and max both converted to an
8356 overflow infinity representation.
8357
8358 2007-06-08 Eric Botcazou <ebotcazou@adacore.com>
8359
8360 * reload1.c (fixup_abnormal_edges): Clear bb field for insns
8361 not inserted on the edge.
8362
8363 2007-06-08 Bob Wilson <bob.wilson@acm.org>
8364
8365 * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
8366 instructions if they are supported.
8367 (__divsi3, __umodsi3, __modsi3): Likewise.
8368 (__ashldi3, __ashrdi3, __lshrdi3): New.
8369 * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
8370
8371 2007-06-08 Harsha Jagasia <harsha.jagasia@amd.com>
8372 Tony Linthicum <tony.linthicum@amd.com>
8373
8374 * doc/invoke.texi: Add fvect-cost-model flag.
8375 * common.opt (fvect-cost-model): New flag.
8376 * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
8377 cost fields in stmt_vec_info struct for STMT.
8378 * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
8379 fields in stmt_vec_info struct and access functions for the same.
8380 (TARG_COND_BRANCH_COST): Define cost of conditional branch.
8381 (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
8382 load, store and vector to scalar operation.
8383 (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
8384 (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
8385 (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
8386 (TARG_VEC_STORE_COST): Define cost of vector store.
8387 (vect_estimate_min_profitable_iters): Define new function.
8388 * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
8389 check to evaluate if loop iterations are less than minimum profitable
8390 iterations determined by cost model or minimum vect loop bound defined
8391 by user, whichever is more conservative.
8392 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
8393 run-time check to evaluate if loop iterations are less than minimum
8394 profitable iterations determined by cost model or minimum vect loop
8395 bound defined by user, whichever is more conservative.
8396 (vect_estimate_min_profitable_iterations): New function to estimate
8397 mimimimum iterartions required for vector version of loop to be
8398 profitable over scalar version.
8399 (vect_model_reduction_cost): New function.
8400 (vect_model_induction_cost): New function.
8401 (vect_model_simple_cost): New function.
8402 (vect_cost_strided_group_size): New function.
8403 (vect_model_store_cost): New function.
8404 (vect_model_load_cost): New function.
8405 (vectorizable_reduction): Call vect_model_reduction_cost during
8406 analysis phase.
8407 (vectorizable_induction): Call vect_model_induction_cost during
8408 analysis phase.
8409 (vectorizable_load): Call vect_model_load_cost during analysis phase.
8410 (vectorizable_store): Call vect_model_store_cost during analysis phase.
8411 (vectorizable_call, vectorizable_assignment, vectorizable_operation,
8412 vectorizable_promotion, vectorizable_demotion): Call
8413 vect_model_simple_cost during analysis phase.
8414
8415 2007-06-08 Simon Baldwin <simonb@google.com>
8416
8417 * reg-stack.c (get_true_reg): Readability change. Moved default case
8418 label into direct switch statement scope.
8419
8420 2007-06-08 Simon Baldwin <simonb@google.com>
8421
8422 * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
8423 in gcc_assert() with '==' comparison.
8424
8425 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
8426
8427 * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
8428 TARGET_ABM handling of x86_popcnt variable.
8429
8430 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
8431
8432 * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
8433 __builtin_copysignq and __builtin_infq built-in functions.
8434
8435 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
8436
8437 * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
8438 SSE4.2 section. Correct built-in function names in SSE4A section.
8439
8440 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
8441
8442 PR tree-optimization/32243
8443 * tree-vect-transform.c (vectorizable_type_promotion): Move check
8444 for ncopies after ratio check between nunits_out and nunits_in.
8445 (vectorizable_type_demotion): Remove single-use variable "scalar_type".
8446
8447 2007-06-08 Dorit Nuzman <dorit@il.ibm.com>
8448
8449 PR tree-optimization/32224
8450 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
8451 vectorization upon a non GIMPLE_MODIFY_STMT.
8452
8453 2007-06-08 Christian Bruel <christian.bruel@st.com>
8454
8455 PR target/29953
8456 * config/sh/sh.md (doloop_end): New pattern and splitter.
8457 * loop-iv.c (simple_rhs_p): Check for hardware registers.
8458
8459 2007-06-08 Zdenek Dvorak <dvorakz@suse.cz>
8460
8461 PR middle-end/32209
8462 * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
8463 functions.
8464 (verify_dominators): Do not change dominance tree.
8465
8466 2007-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
8467
8468 * config/sh/constraints.md: New file.
8469 * config/sh/sh.c: Include tm-constrs.h.
8470 (reg_class_from_letter): Remove.
8471 (prepare_cbranch_operands): Use satisfies_constraint_*
8472 function instead of macro.
8473 (andcosts, broken_move, sh_secondary_reload): Likewise.
8474 * config/sh/predicates.md (trapping_target_operand): Likewise.
8475 (and_operand, arith_operand, arith_reg_or_0_operand,
8476 cmp_operand, logical_operand, target_operand,
8477 ua_address_operand, ua_offset, xor_operand): Likewise.
8478 * config/sh/sh.md: Include constraints.md.
8479 (*movsicc_t_false): Use satisfies_constraint_* function
8480 instead of macro.
8481 (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
8482 lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
8483 movdi_const_16bit+1, beq, bne, *ptb): Likewise.
8484 * config/sh/sh.h (reg_class_from_letter): Remove prototype.
8485 (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
8486 (REG_CLASS_FROM_CONSTRAINT): Remove.
8487 (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
8488 CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
8489 CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
8490 CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
8491 CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
8492 (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
8493 function instead of macro.
8494 (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
8495 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
8496 EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
8497 EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
8498 (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
8499 (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
8500 (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
8501 (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
8502 (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
8503 EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
8504 EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
8505 EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
8506 EXTRA_CONSTRAINT_STR): Likewise.
8507 (GO_IF_LEGITIMATE_INDEX): Fix indentation.
8508
8509 2007-06-07 Geoffrey Keating <geoffk@apple.com>
8510
8511 * config/i386/darwin.h (STACK_BOUNDARY): Define.
8512
8513 2007-06-07 Simon Martin <simartin@users.sourceforge.net>
8514
8515 PR c++/30759
8516 * c-common.h (flag_cpp0x): Replaced by...
8517 (cxx_dialect): ... this new variable specifying the C++ dialect that
8518 is used.
8519 * c-common.c (flag_cpp0x): Removed.
8520 (cxx_dialect): Defined.
8521 * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
8522 cxx_dialect.
8523 * c-opts.c (c_common_post_options): Likewise.
8524 (set_std_cxx98): Set cxx_dialect to cxx98.
8525 (set_std_cxx0x): Set cxx_dialect to cxx0x.
8526
8527 2007-06-07 Geoffrey Keating <geoffk@apple.com>
8528 Hui-May Chang <hm.chang@apple.com>
8529
8530 * doc/invoke.texi (Darwin Options): Update documentation for
8531 -mmacosx-version-min.
8532 * config.gcc (*-*-darwin*): Set extra_gcc_objs.
8533 * config/darwin-driver.c: New file.
8534 * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
8535 * config/t-darwin (darwin-driver.o): New rule.
8536
8537 * config/darwin-c.c (version_as_macro): Ignore low digit.
8538
8539 2007-06-07 Uros Bizjak <ubizjak@gmail.com>
8540
8541 * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
8542 (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
8543 (CSGNMODE): New mode macro.
8544 (CSGNVMODE): New mode attribute.
8545 (copysign<mode>3): Rename from copysingsf3 and copysigndf3. Macroize
8546 expander using CSGNMODE mode macro. Handle TFmode.
8547 (copysign<mode>3_const): Rename from copysignsf3_const and
8548 copysigndf3_const. Macroize pattern using CSGNMODE mode macro.
8549 Handle TFmode.
8550 (copysign<mode>3_var): Rename from copysignsf3_var and
8551 copysigndf3_var. Macroize pattern using CSGNMODE mode macro.
8552 Handle TFmode.
8553 (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
8554 mode macro. Handle TFmode.
8555 * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
8556 (iortf3, *iortf3): Ditto.
8557 (xortf3, *xortf3): Ditto.
8558 * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
8559 TFmode and TImode masks.
8560 (ix86_expand_copysign): Expand TFmode copysign insn.
8561 (IX86_BUILTIN_INFQ): New.
8562 (IX86_BUILTIN_FABSQ): Ditto.
8563 (IX86_BUILTIN_COPYSIGNQ): Ditto.
8564 (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
8565 [__builtin_fabsq]: Ditto.
8566 [__builtin_copysignq]: Ditto.
8567 (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
8568 [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
8569 [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
8570 ix86_expand_binop_builtin().
8571
8572 2007-06-07 Bob Wilson <bob.wilson@acm.org>
8573
8574 * config/xtensa/lib1funcs.asm: Clean up whitespace.
8575
8576 2007-06-07 Steve Ellcey <sje@cup.hp.com>
8577
8578 PR target/31850
8579 * rtl.h (push_to_sequence2): New.
8580 * emit-rtl.c (push_to_sequence2): New.
8581 * function.c (assign_parm_data_all): Add new fields.
8582 (assign_parm_setup_block): Call push_to_sequence2 instead of
8583 push_to_sequence.
8584 (assign_parm_setup_reg): Ditto.
8585 (assign_parm_setup_stack): Ditto.
8586 (assign_parms_unsplit_complex): Ditto.
8587 (assign_parms): Change field name.
8588
8589 2007-06-07 Zdenek Dvorak <dvorakz@suse.cz>
8590
8591 PR tree-optimization/32220
8592 * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
8593 phi node is reached before defining statement.
8594
8595 2007-06-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
8596
8597 PR tree-opt/32231
8598 * tree-vect-transform.c (vectorizable_call): Call update_stmt
8599 after changing the right hand side of the assignment.
8600
8601 2007-06-06 Eric Christopher <echristo@apple.com>
8602
8603 * config.gcc (i?86-*-darwin*): Remove arch parameter.
8604 (x86_64-*-darwin*): Ditto.
8605 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
8606 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
8607
8608 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
8609
8610 * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
8611 coding conventions.
8612 (add_key): Likewise.
8613 * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
8614 * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
8615 variable names.
8616 * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory
8617 macros.
8618 (add_cost_one_coalesce): Likewise.
8619 * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
8620 variable names. Rename orig to orig_name for consistency.
8621 * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the
8622 coding conventions.
8623 (cprop_into_successor_phis): Avoid using C++ keywords as variable
8624 names.
8625 (record_equivalences_from_stmt): Likewise.
8626 * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
8627 the coding conventions.
8628 (memory_ssa_name_same): Likewise.
8629 (dse_optimize_stmt): Likewise.
8630 (dse_record_phis): Likewise.
8631 (dse_finalize_block): Likewise.
8632 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
8633 keywords as variable names.
8634 (may_move_till): Cast according to the coding conventions.
8635 (force_move_till_expr): Avoid using C++ keywords as variable names.
8636 (force_move_till): Cast according to the coding conventions.
8637 (memref_hash): Likewise.
8638 (memref_eq): Likewise.
8639 (gather_mem_refs_stmt): Likewise.
8640 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid
8641 using C++ keywords as variable names.
8642 (idx_find_step): Cast according to the coding conventions.
8643 (idx_record_use): Likewise.
8644 (find_depends): Likewise.
8645 (prepare_decl_rtl): Likewise.
8646 (mbc_entry_hash): Likewise.
8647 (mbc_entry_eq): Likewise.
8648 * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
8649 (simplify_replace_tree): Avoid using C++ keywords as variable names.
8650 (idx_infer_loop_bounds): Cast according to the coding conventions.
8651 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
8652 * tree-ssa-math-opts.c (occ_new ): Likwise.
8653 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
8654 macros.
8655 * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as
8656 variable names.
8657 (add_use_op): Likewise.
8658 (add_vop): Likewise.
8659 (add_vuse_op): Likewise.
8660 (add_vdef_op): Likewise.
8661 (get_expr_operands): Likewise.
8662 (push_stmt_changes): Use type safe memory macros.
8663 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
8664 keywords as variable names.
8665 (conditional_replacement): Likewise.
8666 (minmax_replacement): Likewise.
8667 (abs_replacement): Likewise.
8668 * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
8669 coding conventions.
8670 (insert_fake_stores): Avoid using C++ keywords as variable names.
8671 * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
8672 conventions.
8673 * tree-ssa-structalias.c (heapvar_lookup): Likewise.
8674 (heapvar_insert): Use type safe memory macros.
8675 (new_var_info): Cast according to the coding conventions.
8676 (new_constraint): Likewise.
8677 (remove_preds_and_fake_succs): Use type safe memory macros.
8678 * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
8679 conventions.
8680 (thread_single_edge): Likewise.
8681 (thread_through_loop_header): Likewise.
8682
8683 2007-06-06 Eric Christopher <echristo@apple.com>
8684
8685 * config/i386/i386.c (override_options): Move handling
8686 of TARGET_SUBTARGET* earlier.
8687
8688 2007-06-06 Paolo Bonzini <bonzini@gnu.org>
8689
8690 * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
8691 use %n on printf.
8692
8693 2007-06-06 Zdenek Dvorak <dvorakz@suse.cz>
8694
8695 * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
8696 emited outside of basic block.
8697 * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
8698 the created blocks.
8699 * rtl.h (delete_insn_chain): Declaration changed.
8700 * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
8701 non-removed insns.
8702 (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
8703 (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
8704 rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
8705 to delete_insn_chain.
8706 (rtl_verify_flow_info_1): Verify that the insns in header and footer
8707 do not have bb field set.
8708 (rtl_verify_flow_info): Verify that insns between basic blocks do not
8709 have bb field set.
8710 * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
8711 * cfgcleanup.c (try_optimize_cfg): Ditto.
8712
8713 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
8714
8715 * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
8716 (lambda_body_vector_new): Use type safe memory macros.
8717 (lambda_linear_expression_new): Likewise.
8718 (lambda_loopnest_new): Likewise.
8719 (lambda_lattice_new): Likewise.
8720 (replace_uses_equiv_to_x_with_y): Cast according to the coding
8721 conventions. Use type safe memory macros.
8722 * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
8723 (lambda_body_vector_s): Likewise.
8724 * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
8725 * lambda-trans.c (lambda_trans_matrix_new): Likewise.
8726
8727 2007-06-06 Richard Guenther <rguenther@suse.de>
8728
8729 * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
8730 if we need to schedule cfg_cleanup.
8731 (tree_ssa_forward_propagate_single_use_vars): Do so.
8732
8733 2007-06-06 Ian Lance Taylor <iant@google.com>
8734
8735 * fold-const.c (merge_ranges): If range_successor or
8736 range_predecessor fail, just return 0.
8737
8738 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
8739
8740 PR tree-optimization/32216
8741 * tree-vectorizer.c (supportable_widening_operation): Determine
8742 signedness of FIX_TRUNC_EXPR from output operand.
8743 (supportable_narrowing_operation): Ditto.
8744 * tree-vect-generic.c (expand_vector_operations_1): Determine
8745 signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
8746 from input operand.
8747
8748 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
8749
8750 * config/i386/i386.c (enum pta_flags): Move out of struct scope...
8751 (struct pta): ...from here. Change flags to unsigned to avoid
8752 excessive casting (as it is used as a bit mask).
8753 (override_options): Add casts according to the coding convenventions.
8754 (x86_64_elf_unique_section): Likewise.
8755 (examine_argument): Avoid using C++ keywords as variable names.
8756 (construct_container): Likewise.
8757 (legitimize_pic_address): Likewise.
8758 (get_dllimport_decl): Cast according to the coding conventions. Use
8759 type safe memory macros.
8760 (legitimize_address): Cast according to the coding conventions.
8761 (emit_i387_cw_initialization): Corrected the type of slot to enum
8762 ix86_stack_slot.
8763 (ix86_init_machine_status): Use type safe memory macros.
8764 (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
8765 (bdesc_pcmpistr): Likewise.
8766 (bdesc_crc32): Likewise.
8767 (bdesc_sse_3arg): Likewise.
8768 (bdesc_2arg): Likewise.
8769 (bdesc_1arg): Likewise.
8770 (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
8771 (ix86_expand_sse_pcmpistr): Likewise.
8772 (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
8773 (ix86_builtin_vectorized_function): Change the type of fn to unsigned
8774 int to match the langhook definition.
8775 (ix86_builtin_conversion): Change the type of code to unsigned init to
8776 match the langhook definition.
8777 (ix86_preferred_reload_class): Avoid using C++ keywords as variable
8778 names.
8779 (ix86_preferred_output_reload_class): Likewise.
8780 (ix86_cannot_change_mode_class): Likewise.
8781 (ix86_memory_move_cost): Likewise.
8782 (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
8783 avoid excessive casting later on.
8784 (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
8785
8786 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
8787
8788 * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
8789 as flags setting insn.
8790 (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
8791
8792 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
8793
8794 * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
8795 (UNSPEC_ROUND): New.
8796 ("sse4_1_round<mode>2"): New insn pattern.
8797 ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for
8798 SSE4.1 targets.
8799 ("floor<mode>2"): Rename from floordf2 and floorsf2. Macroize
8800 expander using SSEMODEF mode macro. Expand using
8801 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
8802 ("ceil<mode>2"): Rename from ceildf2 and ceilsf2. Macroize
8803 expander using SSEMODEF mode macro. Expand using
8804 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
8805 ("btrunc<mode>2"): Rename from btruncdf2 and btruncsf2. Macroize
8806 expander using SSEMODEF mode macro. Expand using
8807 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
8808 * config/i386/sse.md ("sse4_1_roundpd", "sse4_1_roundps"): Use
8809 UNSPEC_ROUND instead of UNSPEC_ROUNDP.
8810 ("sse4_1_roundsd", "sse4_1_roundss"): Use UNSPEC_ROUND instead of
8811 UNSPEC_ROUNDS.
8812
8813 2007-06-06 Jan Sjodin <jan.sjodin@amd.com>
8814 Sebastian Pop <sebpop@gmail.com>
8815
8816 * lambda.h (build_linear_expr): New.
8817 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression):
8818 Use build_linear_expr, call fold and force_gimple_operand.
8819 (lambda_loopnest_to_gcc_loopnest): Check that there is
8820 something to insert.
8821 * testsuite/gcc.dg/tree-ssa/ltrans-6.c: New.
8822
8823 2007-06-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
8824
8825 PR preprocessor/23479
8826 * doc/extend.texi: Document the 0b-prefixed binary integer
8827 constant extension.
8828
8829 2007-06-05 Uros Bizjak <ubizjak@gmail.com>
8830
8831 PR tree-optimization/32215
8832 * tree-vectorizer.c (supportable_widening_operation): Return false
8833 for unsupported FIX_TRUNC_EXPR tree code.
8834 (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
8835
8836 2007-06-06 Nathan Froyd <froydnj@codesourcery.com>
8837
8838 * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
8839 register on SPE targets. Change documentation to reflect
8840 reality.
8841 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
8842 Change FIXED_SCRATCH to 14 and document why we're keeping r14
8843 out of the register allocation pool.
8844 (rs6000_reg_live_or_pic_offset_p): New function.
8845 (rs6000_emit_prologue): Move the actual saving of LR up to free
8846 r0 for holding r11. Split saving of SPE 64-bit registers into
8847 its own case. Ensure that offsets will always be in-range for
8848 'evstdd' by using r11 as a scratch register to point at the start
8849 of the SPE save area. Save r11 if necessary, as it is the static
8850 chain register.
8851 (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
8852 into its own case. Ensure that offsets will always be in-range
8853 for 'evldd' by using r11 as a scratch register to point at the
8854 start of the SPE save area. Also adjust r11 when restoring
8855 the stack pointer to compensate for pre-loading r11.
8856
8857 2007-06-05 Thomas Neumann <tneumann@users.sourceforge.net>
8858
8859 * cfg.c (init_flow): Use type safe memory macros.
8860 (alloc_block): Likewise.
8861 (unchecked_make_edge): Likewise.
8862 (dump_flow_info): Avoid using C++ keywords as variable names.
8863 (copy_original_table_clear): Cast according to the coding conventions.
8864 (copy_original_table_set): Likewise.
8865 * cfgexpand (label_rtx_for_bb): Likewise.
8866 (expand_gimple_basic_block): Likewise.
8867 * cfghooks.c (dump_bb): Likewise.
8868 (lv_adjust_loop_header_phi): Avoid using C++ keywords as
8869 variable names.
8870 (lv_add_condition_to_bb): Likewise.
8871 * cfglayout (relink_block_chain): Cast according to the coding
8872 conventions.
8873 (fixup_reorder_chain): Likewise.
8874 (fixup_fallthru_exit_predecessor): Likewise.
8875 * cfgloop.c (glb_enum_p): Likewise.
8876 (get_exit_description): Likewise.
8877 (dump_recorded_exit): Likewise.
8878 * cfgloop.h (enum loop_estimation): Move out of struct scope...
8879 (struct loop): ... from here.
8880 * cfgloopmanip.c (rpe_enum_p): Cast according to the coding
8881 conventions.
8882 * cfgrtl.c (rtl_create_basic_block): Likewise.
8883 (rtl_split_block): Likewise.
8884 (rtl_dump_bb): Likewise.
8885 (cfg_layout_split_block): Likewise.
8886 (init_rtl_bb_info): Use typesafe memory macros.
8887
8888 * graphds.h (struct graph_edge): Renamed edge to graph_edge.
8889 * graphds.h: Updated all usages of edge to graph_edge.
8890 * graphds.c: Likewise.
8891 * cfgloopanal.c: Likewise.
8892
8893 2007-06-05 Ian Lance Taylor <iant@google.com>
8894
8895 * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
8896 PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
8897 (extract_range_from_assert): Set TREE_NO_WARNING when creating an
8898 expression.
8899 (test_for_singularity): Likewise.
8900
8901 2007-06-05 H.J. Lu <hongjiu.lu@intel.com>
8902
8903 * config/i386/constraints.md ("Y2"): Replaced by ...
8904 ("Yt"): This.
8905 * config/i386/i386.md: Likewise.
8906 * config/i386/mmx.md: Likewise.
8907 * config/i386/sse.md: Likewise.
8908
8909 2007-06-05 H.J. Lu <hongjiu.lu@intel.com>
8910
8911 * config/i386/constraints.md ("z"): Replaced by ...
8912 ("Y0"): This.
8913 * config/i386/sse.md (sse4_1_blendvpd): Likewise.
8914 (sse4_1_blendvps): Likewise.
8915 (sse4_1_pblendvb): Likewise.
8916 (sse4_2_pcmpestr): Likewise.
8917 (sse4_2_pcmpestrm): Likewise.
8918 (sse4_2_pcmpestr_cconly): Likewise.
8919 (sse4_2_pcmpistr): Likewise.
8920 (sse4_2_pcmpistrm): Likewise.
8921 (sse4_2_pcmpistr_cconly): Likewise.
8922
8923 2007-06-05 Razya Ladelsky <razya@il.ibm.com>
8924
8925 * matrix-reorg.c (transform_access_sites): Fix computation.
8926 (transform_allocation_sites): Same.
8927
8928 2007-06-05 Uros Bizjak <ubizjak@gmail.com>
8929
8930 * config/i386/i386.c (override_options): Use
8931 TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
8932
8933 2007-06-05 Uros Bizjak <ubizjak@gmail.com>
8934
8935 * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
8936 (nonimm_not_xmm0_operand): Ditto.
8937 * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
8938 as operand[0] and operand[1] predicate. Use "nonimm_not_xmm0_operand"
8939 as operand[2] predicate. Require "z" class XMM register for
8940 operand[3]. Adjust asm template.
8941 ("sse4_1_blendvpd"): Ditto.
8942 ("sse4_1_pblendvb"): Ditto.
8943 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
8944 force op2 into xmm0 register for variable blend instructions.
8945
8946 2007-06-04 Tom Tromey <tromey@redhat.com>
8947
8948 * c-tree.h (start_enum): Update.
8949 (build_enumerator): Likewise.
8950 * c-decl.c (enum_next_value): Removed.
8951 (enum_overflow): Likewise.
8952 (start_enum): Add c_enum_contents argument. Don't use globals.
8953 (build_enumerator): Likewise.
8954 * c-tree.h (struct c_enum_contents): New struct.
8955
8956 2007-06-04 Tom Tromey <tromey@redhat.com>
8957
8958 * c-common.c (c_common_get_alias_set): Fix indentation.
8959
8960 2007-06-04 Ian Lance Taylor <iant@google.com>
8961
8962 * tree-vrp.c (adjust_range_with_scev): When loop is not expected
8963 to overflow, reduce overflow infinity to regular infinity.
8964 (vrp_var_may_overflow): New static function.
8965 (vrp_visit_phi_node): Check vrp_var_may_overflow.
8966
8967 2007-06-04 Kazu Hirata <kazu@codesourcery.com>
8968
8969 * stor-layout.c (layout_type): Remove duplicate code.
8970
8971 2007-06-04 Uros Bizjak <ubizjak@gmail.com>
8972
8973 PR c/32191
8974 * c-common.c (c_define_builtins): Call targetm.init_builtins ()
8975 before build_common_builtin_nodes ().
8976
8977 2007-06-04 Steve Ellcey <sje@cup.hp.com>
8978
8979 PR target/31733
8980 * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
8981
8982 2007-06-04 Jan Hubicka <jh@suse.cz>
8983
8984 * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
8985 reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
8986 instead of _stat version.
8987
8988 2007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
8989
8990 PR tree-optimization/32194
8991 * tree-predcom.c (determine_offset): Check that both references have
8992 the same type.
8993
8994 2007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
8995
8996 * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
8997 Change dom_bbs to vector. Add argument to iterate_fix_dominators call.
8998 * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
8999 * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
9000 Add argument to iterate_fix_dominators call.
9001 (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
9002 * gcse.c (hoist_code): Change domby to vector.
9003 * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
9004 Add argument to iterate_fix_dominators call.
9005 * loop-doloop.c (doloop_modify): Changed recount_dominator to
9006 recompute_dominator.
9007 * lambda-code.c (perfect_nestify): Ditto.
9008 * cfgloopanal.c: Include graphds.h.
9009 (struct edge, struct vertex, struct graph, dump_graph, new_graph,
9010 add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
9011 (mark_irreducible_loops): Use graphds_scc. Remove argument from
9012 add_edge call.
9013 * graphds.c: New file.
9014 * graphds.h: New file.
9015 * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
9016 (get_dominated_by, get_dominated_by_region): Change return type to
9017 vector.
9018 (verify_dominators): Recompute all dominators and compare the results.
9019 (recount_dominator): Renamed to ...
9020 (recompute_dominator): ... this. Do not check that the block is
9021 dominated by entry.
9022 (iterate_fix_dominators): Reimplemented.
9023 (prune_bbs_to_update_dominators, root_of_dom_tree,
9024 determine_dominators_for_sons): New functions.
9025 * et-forest.c (et_root): New function.
9026 * et-forest.h (et_root): Declare.
9027 * Makefile.in (graphds.o): Add.
9028 (cfgloopanal.o): Add graphds.h dependency.
9029 (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
9030 * basic-block.h (get_dominated_by, get_dominated_by_region,
9031 iterate_fix_dominators): Declaration changed.
9032 (recount_dominator): Renamed to ...
9033 (recompute_dominator): ... this.
9034 * tree-ssa-threadupdate.c (thread_block): Free dominance info.
9035 (thread_through_all_blocks): Do not free dominance info.
9036
9037 2007-06-03 Andreas Schwab <schwab@suse.de>
9038
9039 * config/m68k/m68k.c (override_options): Don't override
9040 REAL_MODE_FORMAT.
9041 * config/m68k/m68k-modes.def (SF, DF): Define to use
9042 motorola_single_format and motorola_double_format, resp.
9043 * real.c (motorola_single_format): Renamed from
9044 coldfire_single_format.
9045 (motorola_double_format): Renamed from coldfire_double_format.
9046 (encode_ieee_extended): Generate a proper canonical NaN image
9047 respecting canonical_nan_lsbs_set.
9048 (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
9049 true.
9050 * real.h: Adjust declarations.
9051
9052 2007-06-03 Kaz Kojima <kkojima@gcc.gnu.org>
9053
9054 PR target/32163
9055 * config/sh/sh.md (symGOT_load): Don't schedule insns when
9056 the symbol is generated with the stack protector.
9057
9058 2007-06-03 Kazu Hirata <kazu@codesourcery.com>
9059
9060 * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
9061 (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
9062 "interrupt".
9063 * doc/extend.texi (interrupt): Mention m68k.
9064
9065 2007-06-02 Uros Bizjak <ubizjak@gmail.com>
9066
9067 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
9068 safe_vector_operand() if input operand is VECTOR_MODE_P operand.
9069 (ix86_expand_sse_pcmpestr): Do not check operands for
9070 "register_operand", when insn operand predicate is "register_operand".
9071 (ix86_expand_sse_pcmpistr): Ditto.
9072
9073 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
9074 Uros Bizjak <ubizjak@gmail.com>
9075
9076 * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
9077 (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
9078 (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
9079 (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
9080 * config/i386/constraints.md ("z"): New register constraint
9081 for members of SSE_FIRST_REG class.
9082 * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
9083 * config/i386/i386.c (regclass_map): Change class of %xmm0 to
9084 SSE_FIRST_REG class.
9085 (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
9086 (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
9087 (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
9088 (IX86_BUILTIN_PCMPESTRM128): Likewise.
9089 (IX86_BUILTIN_PCMPESTRA128): Likewise.
9090 (IX86_BUILTIN_PCMPESTRC128): Likewise.
9091 (IX86_BUILTIN_PCMPESTRO128): Likewise.
9092 (IX86_BUILTIN_PCMPESTRS128): Likewise.
9093 (IX86_BUILTIN_PCMPESTRZ128): Likewise.
9094 (IX86_BUILTIN_PCMPISTRI128): Likewise.
9095 (IX86_BUILTIN_PCMPISTRM128): Likewise.
9096 (IX86_BUILTIN_PCMPISTRA128): Likewise.
9097 (IX86_BUILTIN_PCMPISTRC128): Likewise.
9098 (IX86_BUILTIN_PCMPISTRO128): Likewise.
9099 (IX86_BUILTIN_PCMPISTRS128): Likewise.
9100 (IX86_BUILTIN_PCMPISTRZ128): Likewise.
9101 (struct builtin_description): Change "flag" field to unsigned.
9102 (bdesc_pcmpestr): New builtin description table.
9103 (bdesc_pcmpistr): Likewise.
9104 (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
9105 v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
9106 Initialize pcmp[ei]str[im] insns for SSE4.2.
9107 (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
9108 (ix86_expand_sse_pcmpistr): Likewise.
9109 (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
9110 * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
9111 (UNSPEC_PCMPISTR): Likewise.
9112 * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
9113 (sse4_2_pcmpestri):New isns pattern.
9114 (sse4_2_pcmpestrm): Likewise.
9115 (sse4_2_pcmpestr_cconly): Likewise.
9116 (sse4_2_pcmpistr): New insn patern and splitter.
9117 (sse4_2_pcmpistri):New isns pattern.
9118 (sse4_2_pcmpistrm): Likewise.
9119 (sse4_2_pcmpistr_cconly): Likewise.
9120 * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
9121 in SSE4.2.
9122
9123 2007-06-01 David Daney <ddaney@avtrex.com>
9124
9125 * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
9126 LOADGP_ABSOLUTE and not binds_local_p.
9127
9128 2007-06-01 Geoffrey Keating <geoffk@apple.com>
9129
9130 * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
9131
9132 2007-06-01 Ian Lance Taylor <iant@google.com>
9133
9134 * tree-vrp.c (compare_name_with_value): Always set
9135 used_strict_overflow if we get a result from the variable itself.
9136
9137 2007-06-01 Ian Lance Taylor <iant@google.com>
9138
9139 PR rtl-optimization/31455
9140 * lower-subreg.c (find_decomposable_subregs): Don't decompose
9141 subregs which have a cast between modes which are not tieable.
9142
9143 2007-06-01 Uros Bizjak <ubizjak@gmail.com>
9144
9145 * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
9146 breaks after return statements.
9147
9148 2007-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
9149
9150 * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
9151 only after no_new_pseudos.
9152
9153 2007-05-31 Eric Christopher <echristo@apple.com>
9154
9155 * expr.c (convert_move): Assert that we don't have a BLKmode
9156 operand.
9157 (store_expr): Handle BLKmode moves by calling emit_block_move.
9158
9159 2007-05-31 Daniel Berlin <dberlin@dberlin.org>
9160
9161 * c-typeck.c (build_indirect_ref): Include type in error message.
9162 (build_binary_op): Pass types to binary_op_error.
9163 * c-common.c (binary_op_error): Take two type arguments, print out
9164 types with error.
9165 * c-common.h (binary_op_error): Update prototype.
9166
9167 2007-05-31 H.J. Lu <hongjiu.lu@intel.com>
9168
9169 * config/i386/i386.c: Correct coments on -mno-sse4.
9170
9171 2007-05-31 H.J. Lu <hongjiu.lu@intel.com>
9172
9173 * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
9174 (x86_64-*-*): Likewise.
9175 * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
9176 (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
9177 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
9178 (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
9179 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
9180 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
9181 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
9182 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
9183 (OPTION_MASK_ISA_SSE4): Likewise.
9184 (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
9185 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
9186 (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET. Handle SSE4.2.
9187 (override_options): Support SSE4.2.
9188 (ix86_build_const_vector): Support SImode and DImode.
9189 (ix86_build_signbit_mask): Likewise.
9190 (ix86_expand_int_vcond): Support V2DImode.
9191 (IX86_BUILTIN_CRC32QI): New for SSE4.2.
9192 (IX86_BUILTIN_CRC32HI): Likewise.
9193 (IX86_BUILTIN_CRC32SI): Likewise.
9194 (IX86_BUILTIN_CRC32DI): Likewise.
9195 (IX86_BUILTIN_PCMPGTQ): Likewise.
9196 (bdesc_crc32): Likewise.
9197 (bdesc_sse_3arg): Likewise.
9198 (ix86_expand_crc32): Likewise.
9199 (ix86_init_mmx_sse_builtins): Support SSE4.2.
9200 (ix86_expand_builtin): Likewise.
9201 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
9202 __SSE4_2__ for -msse4.2.
9203 * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
9204 (CRC32MODE): Likewise.
9205 (crc32modesuffix): Likewise.
9206 (crc32modeconstraint): Likewise.
9207 (sse4_2_crc32<mode>): Likewise.
9208 (sse4_2_crc32di): Likewise.
9209 * config/i386/i386.opt (msse4.2): New for SSE4.2.
9210 (msse4): Likewise.
9211 * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
9212 * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
9213 * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
9214 (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
9215 (vcondu<mode>): Likewise.
9216 * doc/extend.texi: Document SSE4.2 built-in functions.
9217 * doc/invoke.texi: Document -msse4.2/-msse4.
9218
9219 2007-05-31 Zdenek Dvorak <dvorakz@suse.cz>
9220
9221 PR tree-optimization/32160
9222 * tree-predcom.c (predcom_tmp_var): New function. Mark created
9223 variable as gimple reg.
9224 (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
9225
9226 2007-05-31 Kazu Hirata <kazu@codesourcery.com>
9227
9228 * gcc.c (main): Don't consider linker options when issuing the
9229 warning about a linker input file not being used.
9230
9231 2007-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9232
9233 * tree-vrp.c (compare_names): Initialize sop.
9234
9235 2007-05-30 Dirk Mueller <dmueller@suse.de>
9236
9237 * cgraphunit.c (cgraph_analyze_function): Remove
9238 computation of inline parameters.
9239
9240 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
9241
9242 * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
9243
9244 2007-05-30 Richard Sandiford <richard@codesourcery.com>
9245
9246 * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
9247 Add vx-common.h. Include vxworks.h between vx-common.h and
9248 arm/vxworks.h.
9249 * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
9250 redefining.
9251 * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
9252 (TARGET_ASM_DESTRUCTOR): Likewise.
9253 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
9254 instead of arm_is_xscale. Use VXWORKS_OS_CPP_BUILTINS.
9255 (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
9256 (CC1_SPEC): Add -tstrongarm. Line up backslashes.
9257 (VXWORKS_ENDIAN_SPEC): Define.
9258 (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
9259 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
9260 VXWORKS_* equivalents.
9261 (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
9262 (ASM_FILE_START): Delete.
9263 (TARGET_VERSION): Reformat.
9264 (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
9265 (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
9266 * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
9267 (FPBIT, DPBIT): Define.
9268 (fp-bit.c, dp-bit.c): New rules.
9269 (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
9270 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
9271 * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
9272 * config/arm/arm.h: Include vxworks-dummy.h.
9273 * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
9274 Mark with ATTRIBUTE_UNUSED.
9275 (arm_override_options): Do not allow VxWorks RTP PIC to be used
9276 for Thumb. Force r9 to be the PIC register for VxWorks RTPs and
9277 make it incompatible with -msingle-pic-base.
9278 (arm_function_ok_for_sibcall): Return false for calls that might
9279 go through a VxWorks PIC PLT entry.
9280 (require_pic_register): New function, split out from...
9281 (legitimize_pic_address): ...here. Do not use GOTOFF accesses
9282 for VxWorks RTPs.
9283 (arm_load_pic_register): Handle the VxWorks RTP initialization
9284 sequence. Use pic_reg as a shorthand for cfun->machine->pic_reg.
9285 (arm_emit_call_insn): New function.
9286 (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
9287 * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
9288 (pic_offset_arm): New pattern.
9289 (call, call_value): Use arm_emit_call_insn.
9290 (call_internal, call_value_internal): New expanders.
9291 * config/arm/lib1funcs.asm (__PLT__): Define to empty for
9292 VxWorks unless __PIC__.
9293
9294 2007-05-30 Eric Christopher <echristo@gmail.com>
9295
9296 * genrecog.c: Include regs.h in generated file.
9297 * genemit.c: Ditto. Fix up formatting.
9298 * config/mn10300/constraints.md: New.
9299 * config/mn10300/mn10300.md: Include.
9300 * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
9301 Fix up for removed macro.
9302 * config/mn10300/predicates.md (call_address_operand): Ditto.
9303 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
9304 (CONST_OK_FOR_I): Ditto.
9305 (CONST_OK_FOR_J): Ditto.
9306 (CONST_OK_FOR_K): Ditto.
9307 (CONST_OK_FOR_L): Ditto.
9308 (CONST_OK_FOR_M): Ditto.
9309 (CONST_OK_FOR_N): Ditto.
9310 (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
9311 (OK_FOR_Q): Ditto.
9312 (OK_FOR_R): Ditto.
9313 (OK_FOR_T): Ditto.
9314 (EXTRA_CONSTRAINT): Ditto.
9315
9316 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
9317
9318 * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
9319 Remove defines.
9320 * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
9321 OPTION_MASK_ISA_64BIT.
9322 * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
9323
9324 2007-05-30 Richard Guenther <rguenther@suse.de>
9325
9326 PR middle-end/32152
9327 * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
9328 types for comparison.
9329 * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
9330 with original typed arguments.
9331 * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
9332
9333 2007-05-30 Jakub Jelinek <jakub@redhat.com>
9334
9335 PR tree-optimization/31769
9336 * except.c (duplicate_eh_regions): Clear prev_try if
9337 ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
9338
9339 2007-05-30 Zdenek Dvorak <dvorakz@suse.cz>
9340
9341 * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
9342 * tree-ssa-sink.c (statement_sink_location): Return basic block and
9343 bsi of the location where statements should be inserted.
9344 (sink_code_in_bb): Take bsi from statement_sink_location.
9345 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
9346 instead of bsi_start.
9347 * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
9348 bsi_insert_after.
9349 * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
9350 (bsi_move_before): Document inconsistency with bsi_move_after.
9351 (tree_redirect_edge_and_branch): Do not create labels if not necessary.
9352
9353 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
9354
9355 * config/i386/i386.h (TARGET_ABM): New define.
9356 (TARGET_POPCNT): Ditto.
9357 (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
9358 New temporary defines to redefine from OPTION_ISA_* defines.
9359 (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
9360 New temporary defines to redefine from OPTION_MASK_ISA_* defines.
9361 (ix86_isa_flags): New extern int declaration.
9362 (TARGET_SUBTARGET_DEFAULT): New define.
9363 (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
9364 (TARGET_SUBTARGET32_DEFAULT): Ditto.
9365 (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
9366 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
9367 * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
9368 * config/i386/darwin.h: Change TARGET_64BIT define to
9369 OPTION_ISA_64BIT.
9370
9371 * config/i386/i386.opt (m3dnowa): Define as undocumented option
9372 using existing "ix86_isa_flags" varible.
9373 (m32, m64): Use existing "ix86_isa_flags" variable.
9374 (mmmx, m3dnow): Ditto.
9375 (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
9376 (mabm): Define as non-negative option using "x86_abm" variable.
9377 (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
9378
9379 * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
9380 Rewrite feature test bitmap.
9381 (ix86_isa_flags): New initialized global int varible.
9382 (ix86_isa_flags_explicit): New static int variable.
9383 (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
9384 msse, msse2, msse3, msse4.1 and msse4a option is processed. Change
9385 i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
9386 target_flags_explicit.
9387 (override_options): Remove "target_enable" and "target_disable" fields
9388 from "struct ptt". Update processor_target_table accordingly. Remove
9389 PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
9390 defined and rearrange PTA_* bits. Use "ix86_isa_flags" instead of
9391 "target_flags" and "ix86_isa_flags_explicit" instead of
9392 "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
9393 MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*. Set "x86_abm" to true when
9394 PTA_ABM is set in processor_alias_table flags entry. Set "x86_popcnt"
9395 to true when either of PTA_POPCNT or PTA_ABM is set in
9396 processor_alias_table flags entry. Set "x86_prefetch_sse" to true
9397 when either of PTA_PREFETCH_SSE or PTA_SSE is set in
9398 processor_alias_table flags entry. Remove handling of
9399 "target_enable" and "target_disable" fields of processor_target_table.
9400 Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
9401 targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
9402 Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
9403 targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
9404 (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
9405 "target_flags".
9406 (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
9407
9408 2007-05-29 David Daney <ddaney@avtrex.com>
9409
9410 PR gcc/31975
9411 * config/mips/mips.c (mips_output_mi_thunk): Emit
9412 NOTE_INSN_PROLOGUE_END at beginning of the thunk.
9413
9414 2007-05-29 Hui-May Chang <hm.chang@apple.com>
9415 * config/i386/i386.c (ix86_function_regparm): Added checking of
9416 ix86_force_align_arg_pointer to determine the number of
9417 register parameters.
9418
9419 2007-05-29 Zdenek Dvorak <dvorakz@suse.cz>
9420
9421 * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
9422 (SET_DR_MISALIGNMENT): New.
9423 * tree-vect-analyze.c (vect_compute_data_ref_alignment,
9424 vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
9425 Use SET_DR_MISALIGNMENT.
9426 * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
9427 pointer.
9428 * tree-data-ref.c (create_data_ref, compute_all_dependences,
9429 find_loop_nest): Export.
9430 * tree-data-ref.h (struct data_reference): Change aux field to pointer.
9431 (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
9432 * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
9433 (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
9434 New macros.
9435 (struct mem_ref): Add field reuse_distance.
9436 (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
9437 Initialize reuse_distance field.
9438 (issue_prefetch_ref): Select temporality of prefetch according to
9439 reuse_distance.
9440 (volume_of_references, volume_of_dist_vector, add_subscript_strides,
9441 self_reuse_distance, determine_loop_nest_reuse): New functions.
9442 (loop_prefetch_arrays): Call determine_loop_nest_reuse.
9443 (tree_ssa_prefetch_arrays): Dump L2 cache size.
9444 * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
9445 dependency.
9446
9447 2007-05-29 Daniel Berlin <dberlin@dberlin.org>
9448
9449 * tree-ssa-alias.c: Add aliasing overview.
9450
9451 2007-05-29 Zuxy Meng <zuxy.meng@gmail.com>
9452 Danny Smith <dannysmith@users.sourceforge.net>
9453
9454 PR target/29498
9455 * config/i386/t-crtfm: Compile crtfastmath.o with
9456 -minline-all-stringops.
9457 * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
9458 * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
9459
9460 2007-05-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9461
9462 * doc/md.texi: Document constraints on HP PA-RISC.
9463
9464 * pa/constraints.md: New file.
9465 * pa.md: Include constraints.md.
9466 * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
9467 (integer_store_memory_operand, ldil_cint_p): New functions.
9468 * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
9469 * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
9470 IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
9471 * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
9472 * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
9473
9474 2007-05-28 Andrew Pinski <Andrew_pinski@playstation.sony.com>
9475
9476 PR c/31339
9477 * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
9478 case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
9479 case POSTDECREMENT_EXPR>): Return the error_mark_node
9480 if either the real or imaginary parts would an
9481 error_mark_node.
9482
9483 2007-05-28 Daniel Berlin <dberlin@dberlin.org>
9484
9485 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
9486 name when we remove it from a call.
9487
9488 2007-05-28 Kazu Hirata <kazu@codesourcery.com>
9489
9490 * targhooks.c (default_narrow_bitfield): Remove.
9491 * targhooks.h: Remove the prototype for
9492 default_narrow_bitfield.
9493
9494 * langhooks-def.h: Remove the prototype for
9495 hook_get_alias_set_0.
9496 * langhooks.c (hook_get_alias_set_0): Remove.
9497
9498 * global.c (EXECUTE_IF_CONFLICT): Remove.
9499
9500 2007-05-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
9501
9502 PR tree-opt/32100
9503 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
9504 return true when truth_value_p is true and the type
9505 is of signed:1.
9506
9507 2007-05-28 Gerald Pfeifer <gerald@pfeifer.com>
9508
9509 * doc/install.texi (Prerequisites): We no longer require Autoconf
9510 2.13 for the top-level.
9511
9512 2007-05-28 Uros Bizjak <ubizjak@gmail.com>
9513
9514 * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
9515 memory access via x86_expand_vector_move_misalign() only for
9516 TImode values on 32-bit targets.
9517
9518 2007-05-28 Razya Ladelsky <razya@il.ibm.com>
9519
9520 * matrix-reorg.c: New file. Implement matrix flattening and
9521 transposing optimization.
9522 * tree-pass.h: Add matrix reorg pass.
9523 * common.opt: Add fipa-mreorg flag.
9524 * Makefile.in: Add matrix-reorg.c.
9525 * passes.c: Add matrix reorg pass.
9526 * varpool.c (add_new_static_var): New function.
9527 * cgraph.h (add_new_static_var): Declare.
9528
9529 2007-05-27 Eric Christopher <echristo@apple.com>
9530
9531 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
9532 sp_offset depending on stack size. Save r12 depending
9533 on registers we're saving later.
9534 (rs6000_emit_epilogue): Update sp_offset depending only
9535 on stack size.
9536
9537 2007-05-27 Zdenek Dvorak <dvorakz@suse.cz>
9538
9539 * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
9540 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
9541 * ifcvt.c (if_convert): Ditto.
9542 * tree-ssa-threadupdate.c (thread_block): Ditto.
9543 (thread_through_all_blocks): Ditto. Assert that loops were analysed.
9544 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
9545 verify_loop_closed_ssa): Check number_of_loops instead of
9546 current_loops.
9547 * predict.c (tree_estimate_probability): Ditto.
9548 * tree-if-conv.c (main_tree_if_conversion): Ditto.
9549 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
9550 * modulo-sched.c (sms_schedule): Ditto.
9551 * tree-scalar-evolution.c (scev_const_prop): Ditto.
9552 (scev_finalize): Do not do anything if scev analysis was not
9553 initialized.
9554 * cfgloopanal.c (mark_irreducible_loops): Do not check whether
9555 current_loops == NULL.
9556 (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
9557 * loop-init.c (loop_optimizer_init): Do not free current_loops when
9558 there are no loops.
9559 (loop_optimizer_finalize): Assert that loops were analyzed.
9560 (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
9561 rtl_doloop): Check number_of_loops instead of current_loops.
9562 * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
9563 current_loops == NULL.
9564 (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
9565 gate_tree_vectorize tree_linear_transform, check_data_deps,
9566 tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
9567 tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
9568 Check number_of_loops instead of current_loops.
9569 (tree_ssa_loop_done): Do not check whether current_loops == NULL.
9570 * tree-ssa-pre.c (fini_pre): Do not take do_fre argument. Always
9571 free loops if available.
9572 (execute_pre): Do not pass do_fre to fini_pre.
9573
9574 2007-05-27 Tobias Burnus <burnus@net-b.de>
9575
9576 PR middle-end/32083
9577 * real.c (mpfr_from_real): Fix sign of -Inf.
9578
9579 2007-05-27 H.J. Lu <hongjiu.lu@intel.com>
9580
9581 * tree-vect-transform.c (vectorizable_conversion): Initialize
9582 tree_code variables to ERROR_MARK.
9583 (vectorizable_type_demotion): Likewise.
9584 (vectorizable_type_promotion): Likewise.
9585
9586 2007-05-26 Uros Bizjak <ubizjak@gmail.com>
9587
9588 PR target/32065
9589 * config/i386/i386.md (movti): Handle push operands via
9590 ix86_expand_push().
9591
9592 2007-05-26 Kazu Hirata <kazu@codesourcery.com>
9593
9594 * basic-block.h: Remove the prototype for merge_seq_blocks.
9595 * cfgcleanup.c (merge_seq_blocks): Remove.
9596
9597 * tree-flow.h: Remove the prototype for is_aliased_with.
9598 * tree-ssa-alias.c (is_aliased_with): Remove.
9599
9600 2007-05-26 H.J. Lu <hongjiu.lu@intel.com>
9601
9602 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
9603
9604 * config/i386/i386.c (ix86_expand_sse4_unpack): New.
9605
9606 * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
9607 ix86_expand_sse4_unpack if SSE4.1 is enabled.
9608 (vec_unpacks_hi_v16qi): Likewise.
9609 (vec_unpacku_lo_v16qi): Likewise.
9610 (vec_unpacks_lo_v16qi): Likewise.
9611 (vec_unpacku_hi_v8hi): Likewise.
9612 (vec_unpacks_hi_v8hi): Likewise.
9613 (vec_unpacku_lo_v8hi): Likewise.
9614 (vec_unpacks_lo_v8hi): Likewise.
9615 (vec_unpacku_hi_v4si): Likewise.
9616 (vec_unpacks_hi_v4si): Likewise.
9617 (vec_unpacku_lo_v4si): Likewise.
9618 (vec_unpacks_lo_v4si): Likewise.
9619
9620 2007-05-26 Kazu Hirata <kazu@codesourcery.com>
9621
9622 * c-typeck.c, config/arm/arm.c, config/darwin.c,
9623 config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
9624 omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
9625 follow spelling conventions in various
9626 warning/error/diagnostic messages.
9627
9628 * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
9629 df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
9630 fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
9631 tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
9632 tree-vrp.c: Fix comment typos. Follow spelling conventions.
9633 * doc/tm.texi: Follow spelling conventions.
9634
9635 2007-05-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
9636
9637 PR tree-opt/32090
9638 * tree-ssa-forwprop.c
9639 (forward_propagate_addr_into_variable_array_index): Remove
9640 the lhs argument. Use the type of def_rhs instead of lhs.
9641 (forward_propagate_addr_expr_1): Update use of
9642 forward_propagate_addr_into_variable_array_index.
9643
9644 2007-05-25 Sandra Loosemore <sandra@codesourcery.com>
9645 Nigel Stephens <nigel@mips.com>
9646
9647 * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
9648 function attributes, "far" being an alias for "long_call".
9649 (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
9650 (mips_near_type_p, mips_far_type_p): New.
9651 (mips_comp_type_attributes): New function to check that attributes
9652 attached to a function type are compatible.
9653 (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
9654 TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
9655 to the target function of the thunk.
9656 (mips_encode_section_info): Check for "near" and "far" function
9657 attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
9658
9659 * config/mips/predicates.md (const_call_insn_operand): Test only
9660 SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
9661
9662 * doc/extend.texi (Function Attributes): Document MIPS "near" and
9663 "far" attributes.
9664
9665 * testsuite/gcc.target/mips/near-far-1.c: New test case.
9666 * testsuite/gcc.target/mips/near-far-2.c: New test case.
9667 * testsuite/gcc.target/mips/near-far-3.c: New test case.
9668 * testsuite/gcc.target/mips/near-far-4.c: New test case.
9669
9670 2007-05-25 Eric Christopher <echristo@apple.com>
9671
9672 * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
9673 to x86-darwin configurations.
9674 * config/i386/t-darwin: Add softfp support.
9675 * config/i386/t-darwin64: Ditto.
9676 * config/i386/sfp-machine.h: If mach then don't use
9677 aliasing, emit a stub to call.
9678
9679 2007-05-25 Kazu Hirata <kazu@codesourcery.com>
9680
9681 * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
9682 haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
9683 tree-predcom.c, tree-ssa-alias-warnings.c,
9684 tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
9685 comment typos. Follow spelling conventions.
9686 * doc/cpp.texi, doc/invoke.texi: Fix typos.
9687
9688 2007-05-26 Uros Bizjak <ubizjak@gmail.com>
9689
9690 PR target/32065
9691 * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
9692 constants into memory. Expand unaligned memory references for
9693 SSE modes via x86_expand_vector_move_misalign() function.
9694
9695 2007-05-25 Uros Bizjak <ubizjak@gmail.com>
9696
9697 * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
9698 "memory" attribute for "sseishft" type insn without operands[2].
9699
9700 2007-05-25 Dirk Mueller <dmueller@suse.de>
9701 Marcus Meissner <meissner@suse.de>
9702
9703 * doc/extend.texi (alloc_size): New attribute.
9704 * c-common.c (handle_alloc_size_attribute): New.
9705 * tree-object-size.c (alloc_object_size): Use alloc_size
9706 attribute, if available.
9707
9708 2007-05-25 H.J. Lu <hongjiu.lu@intel.com>
9709
9710 * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
9711 with MASK_SSE2.
9712 (__builtin_ia32_vec_ext_v2di): Likewise.
9713 (__builtin_ia32_vec_ext_v4si): Likewise.
9714 (__builtin_ia32_vec_ext_v8hi): Likewise.
9715 (__builtin_ia32_vec_ext_v16qi): Likewise.
9716 (__builtin_ia32_vec_set_v8hi): Likewise.
9717
9718 2007-05-25 H.J. Lu <hongjiu.lu@intel.com>
9719
9720 * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
9721
9722 2007-05-25 Richard Sandiford <richard@codesourcery.com>
9723
9724 * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
9725 (arm_is_longcall_p): Rename to...
9726 (arm_is_long_call_p): ...this. Take a single tree argument and
9727 return a bool.
9728 * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
9729 (CUMULATIVE_ARGS): Remove call_cookie.
9730 (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
9731 (ENCODED_LONG_CALL_ATTR_P): Delete.
9732 (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
9733 LONG_CALL_FLAG_CHAR cases.
9734 (ARM_DECLARE_FUNCTION_SIZE): Delete.
9735 * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
9736 ARM_DECLARE_FUNCTION_SIZE.
9737 * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
9738 (arm_function_arg): Return const0_rtx for VOIDmode arguments.
9739 (arm_encode_call_attribute, current_file_function_operand): Delete.
9740 (arm_function_in_section_p): New function.
9741 (arm_is_longcall_p): Rename to...
9742 (arm_is_long_call_p): ...this. Take the target function as a single
9743 argument and return a bool. Do not rely on call cookies. Check
9744 whether the target symbol is in the same section as the current
9745 function, not just the same compilation unit.
9746 (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
9747 (arm_encode_section_info): Don't encode a call type.
9748 * config/arm/arm.md (call, call_value): Update calls to
9749 arm_is_long(_)call_p. Simplify logic.
9750 (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
9751 Update calls to arm_is_long(_)call_p.
9752
9753 2007-05-25 Richard Guenther <rguenther@suse.de>
9754
9755 PR tree-optimization/31982
9756 * tree-ssa-forwprop.c
9757 (forward_propagate_addr_into_variable_array_index): Handle arrays
9758 with element size one.
9759
9760 2007-05-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
9761
9762 * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
9763 (umulsi3_highpart): Likewise.
9764
9765 2007-05-24 Ian Lance Taylor <iant@google.com>
9766
9767 PR rtl-optimization/32069
9768 * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
9769 is NULL.
9770
9771 2007-05-24 Ollie Wild <aaw@google.com>
9772
9773 * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
9774 description.
9775
9776 2007-05-24 Richard Sandiford <rsandifo@nildram.co.uk>
9777
9778 * postreload-gcse.c (reg_changed_after_insn_p): New function.
9779 (oprs_unchanged_p): Use it to check all registers in a REG.
9780 (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
9781 (reg_set_between_after_reload_p): Delete.
9782 (reg_used_between_after_reload_p): Likewise.
9783 (reg_set_or_used_since_bb_start): Likewise.
9784 (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
9785 and reg_used_between_p instead of reg_set_or_used_since_bb_start.
9786 Use reg_set_between_p instead of reg_set_between_after_reload_p.
9787 * rtlanal.c (reg_set_p): Check whether REG overlaps
9788 regs_invalidated_by_call, rather than just checking the
9789 membership of REGNO (REG).
9790
9791 2007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
9792
9793 * doc/passes.texi: Document predictive commoning.
9794 * doc/invoke.texi (-fpredictive-commoning): Document.
9795 * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
9796 * tree-ssa-loop-im.c (get_lsm_tmp_name): Export. Allow
9797 adding indices to the generated name.
9798 (schedule_sm): Pass 0 to get_lsm_tmp_name.
9799 * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
9800 * tree-pretty-print.c (op_symbol_1): Renamed to ...
9801 (op_symbol_code): ... and exported.
9802 (dump_omp_clause, op_symbol): Use op_symbol_code
9803 instead of op_symbol_1.
9804 * tree-pass.h (pass_predcom): Declare.
9805 * timevar.def (TV_PREDCOM): New timevar.
9806 * tree-ssa-loop.c (run_tree_predictive_commoning,
9807 gate_tree_predictive_commoning, pass_predcom): New.
9808 * tree-data-ref.c (find_data_references_in_loop): Find the
9809 references in dominance order.
9810 (canonicalize_base_object_address): Ensure that the result has
9811 pointer type.
9812 (dr_analyze_innermost): Export.
9813 (create_data_ref): Code to fail for references with invariant
9814 address moved ...
9815 (find_data_references_in_stmt): ... here.
9816 * tree-data-ref.h (dr_analyze_innermost): Declare.
9817 * tree-affine.c: Include tree-gimple.h and hashtab.h.
9818 (aff_combination_find_elt, name_expansion_hash,
9819 name_expansion_eq, tree_to_aff_combination_expand,
9820 double_int_constant_multiple_p, aff_combination_constant_multiple_p):
9821 New functions.
9822 * tree-affine.h (aff_combination_constant_multiple_p,
9823 tree_to_aff_combination_expand): Declare.
9824 * tree-predcom.c: New file.
9825 * common.opt (fpredictive-commoning): New option.
9826 * tree-flow.h (op_symbol_code, tree_predictive_commoning,
9827 stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
9828 * Makefile.in (tree-predcom.o): Add.
9829 (tree-affine.o): Add TREE_GIMPLE_H dependency.
9830 * passes.c (init_optimization_passes): Add dceloop after
9831 copy propagation in loop optimizer. Add predictive commoning
9832 to loop optimizer passes.
9833
9834 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
9835
9836 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
9837 default hook.
9838
9839 2007-05-24 Jan Hubicka <jh@suse.cz>
9840
9841 * gengenrtl.c (gendecl, gendef): Output the gens annotated for
9842 statistics.
9843 (genheader): Include statistics.h.
9844
9845 * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
9846 notes are gone.
9847 * print-rtl.c (flag_dump_unnumbered): Update comments.
9848 (print_rtl): Fix my previous change.
9849 * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
9850 specific data.
9851
9852 2007-05-24 Zdenek Dvorak <dvorakz@suse.cz>
9853
9854 PR middle-end/32018
9855 * tree-ssa-threadupdate.c (thread_through_loop_header): Use
9856 set_loop_copy.
9857 (thread_through_all_blocks): Call initialize_original_copy_tables
9858 and free_original_copy_tables.
9859 * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
9860 Use set_loop_copy.
9861 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
9862 * cfghooks.c (duplicate_block): Use get_loop_copy.
9863 * cfg.c: Include cfgloop.h.
9864 (loop_copy): New hash table.
9865 (initialize_original_copy_tables): Initialize loop_copy table.
9866 (free_original_copy_tables): Free loop_copy table.
9867 (copy_original_table_clear, copy_original_table_set,
9868 set_loop_copy, get_loop_copy): New functions.
9869 (set_bb_original, set_bb_copy): Use copy_original_table_set.
9870 * cfgloop.h (struct loop): Remove copy field.
9871 * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
9872 * basic-block.h (set_loop_copy, get_loop_copy): Declare.
9873
9874 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
9875
9876 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
9877 -msse/-msse2/-msse3.
9878
9879 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
9880
9881 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
9882 __builtin_ia32_vec_set_v2di with MASK_64BIT.
9883
9884 2007-05-24 Danny Smith <dannysmith@users.sourceforge.net>
9885
9886 PR target/27067
9887 * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
9888 * targhooks.h (default_mangle_decl_assembler_name): Declare
9889 default hook.
9890 * targhooks.c (default_mangle_decl_assembler_name): Define
9891 default hook.
9892 * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
9893 default hook.
9894 * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
9895 * langhooks.c (lhd_set_decl_assembler_name): Call
9896 targetm.mangle_decl_assembler_name for names with global scope.
9897
9898 * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
9899 default.
9900 (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
9901 * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
9902 Declare.
9903 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
9904 New. Factored out of i386_pe_encode_section_info.
9905 (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
9906 Move check for prior decoration of stdcall
9907 symbols to i386_pe_encode_section_info.
9908 (i386_pe_encode_section_info): Adjust call to
9909 gen_stdcall_or_fastcall_suffix. Use
9910 i386_pe_maybe_mangle_decl_assembler_name, if needed.
9911 (i386_pe_mangle_decl_assembler_name): New. Wrap
9912 i386_pe_maybe_mangle_decl_assembler_name.
9913
9914 2007-05-16 Rafael Avila de Espindola <espindola@google.com>
9915
9916 * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
9917 INTEGRAL_TYPE_P and TYPE_UNSIGNED.
9918 * langhooks.c (get_signed_or_unsigned_type): Don't check for
9919 INTEGRAL_TYPE_P or TYPE_UNSIGNED.
9920 (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
9921 TYPE_UNSIGNED.
9922
9923 2007-05-23 Sandra Loosemore <sandra@codesourcery.com>
9924 Nigel Stephens <nigel@mips.com>
9925 Richard Sandiford <richard@codesourcery.com>
9926
9927 Fix up MIPS16 hard float and add support for complex.
9928
9929 * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
9930 (TARGET_SOFT_FLOAT_ABI): New.
9931 (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
9932 __mips_soft_float to reflect the ABI in use, not whether the
9933 FPU is directly accessible (e.g., in MIPS16 mode).
9934 (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
9935 (UNITS_PER_FPVALUE): Likewise.
9936
9937 * config/mips/mips.c (mips_expand_call): Remove redundant
9938 TARGET_MIPS16 check.
9939 (mips_arg_regno): New.
9940 (function_arg_advance): When setting bits in cum->fp_code for
9941 MIPS16, don't subtract 1 from cum->arg_number, since it is now
9942 zero-based.
9943 (function_arg): Use mips_arg_regno.
9944 (mips_return_mode_in_fpr_p): New.
9945 (mips16_call_stub_mode_suffix): New.
9946 (mips16_cfun_returns_in_fpr_p): New.
9947 (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
9948 (mips_output_function_prologue): Test mips16_hard_float, not
9949 !TARGET_SOFT_FLOAT, to decide when a function stub is required.
9950 (mips_expand_epilogue): Call MIPS16 helper routines to copy
9951 return value into a floating-point register.
9952 (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
9953 (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
9954 (mips16_fp_args): Handle MIPS32r2 ISA which supports
9955 TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
9956 word of double arguments from or to the high bits of 64-bit
9957 floating point registers.
9958 (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
9959 (mips16_fpret_double): New helper function.
9960 (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p. Add
9961 support for complex modes. Fill in DECL_RESULT for stubdecl.
9962 (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
9963
9964 * config/mips/mips16.S
9965 (RET, ARG1, ARG2): New.
9966 (MERGE_GPRf, MERGE_GPRt): New.
9967 (DELAYt, DELAYf): New.
9968 (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
9969 (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
9970 (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
9971 (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
9972 (SFOP): Renamed to...
9973 (OPSF3): This, and macro-ified. Updated all uses.
9974 (SFOP2): Renamed to...
9975 (OPSF2): This, and macro-ified. Updated all uses.
9976 (SFCMP): Renamed to...
9977 (CMPSF): This, and macro-ified. Updated all uses.
9978 (SFREVCMP): Renamed to...
9979 (REVCMPSF): This, and macro-ified. Updated all uses.
9980 (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
9981 (LDDBL1, LDDBL2, RETDBL): Deleted.
9982 (DFOP): Renamed to...
9983 (OPDF3): This, and macro-ified. Updated all uses.
9984 (DFOP2): Renamed to...
9985 (OPDF2): This, and macro-ified. Updated all uses.
9986 (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
9987 (DFCMP): Renamed to...
9988 (CMPDF): This, and macro-ified. Updated all uses.
9989 (DFREVCMP): Renamed to...
9990 (REVCMPDF): This, and macro-ified. Updated all uses.
9991 (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
9992 (RET_FUNCTION): New.
9993 (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
9994 (__mips16_ret_sc, __mips16_ret_dc): New.
9995 (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
9996 STUB_ARGS_6, STUB_ARGS_10): New.
9997 (CALL_STUB_NO_RET): New.
9998 (__mips16_call_stub_1): Macro-ified.
9999 (__mips16_call_stub_5): Macro-ified.
10000 (__mips16_call_stub_2): Macro-ified.
10001 (__mips16_call_stub_6): Macro-ified.
10002 (__mips16_call_stub_9): Macro-ified.
10003 (__mips16_call_stub_10): Macro-ified.
10004 (CALL_STUB_RET): New.
10005 (__mips16_call_stub_sf_0): Macro-ified.
10006 (__mips16_call_stub_sf_1): Macro-ified.
10007 (__mips16_call_stub_sf_5): Macro-ified.
10008 (__mips16_call_stub_sf_2): Macro-ified.
10009 (__mips16_call_stub_sf_6): Macro-ified.
10010 (__mips16_call_stub_sf_9): Macro-ified.
10011 (__mips16_call_stub_sf_10): Macro-ified.
10012 (__mips16_call_stub_df_0): Macro-ified.
10013 (__mips16_call_stub_df_1): Macro-ified.
10014 (__mips16_call_stub_df_5): Macro-ified.
10015 (__mips16_call_stub_df_2): Macro-ified.
10016 (__mips16_call_stub_df_6): Macro-ified.
10017 (__mips16_call_stub_df_9): Macro-ified.
10018 (__mips16_call_stub_df_10): Macro-ified.
10019 (__mips16_call_stub_sc_0): New.
10020 (__mips16_call_stub_sc_1): New.
10021 (__mips16_call_stub_sc_5): New.
10022 (__mips16_call_stub_sc_2): New.
10023 (__mips16_call_stub_sc_6): New.
10024 (__mips16_call_stub_sc_9): New.
10025 (__mips16_call_stub_sc_10): New.
10026 (__mips16_call_stub_dc_0): New.
10027 (__mips16_call_stub_dc_1): New.
10028 (__mips16_call_stub_dc_5): New.
10029 (__mips16_call_stub_dc_2): New.
10030 (__mips16_call_stub_dc_6): New.
10031 (__mips16_call_stub_dc_9): New.
10032 (__mips16_call_stub_dc_10): New.
10033
10034 * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
10035 * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
10036 * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
10037
10038 2007-05-23 Ian Lance Taylor <iant@google.com>
10039
10040 * doc/invoke.texi (Invoking GCC): Document that the order of the
10041 -l option matters.
10042
10043 2007-05-23 Chen Liqin <liqin@sunnorth.com.cn>
10044
10045 PR target/30987
10046 * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
10047 * config/score/predicate.md (const_pow2, const_npow2): Remove.
10048 * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
10049 undef.
10050
10051 PR target/30474
10052 * config/score/score.c (score_print_operand): Make sure that only
10053 lower bits are used.
10054
10055 2007-05-22 Ian Lance Taylor <iant@google.com>
10056
10057 * tree-vrp.c (avoid_overflow_infinity): New static function,
10058 broken out of set_value_range_to_value.
10059 (set_value_range_to_value): Call avoid_overflow_infinity.
10060 (extract_range_from_assert): Likewise.
10061
10062 2007-05-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
10063
10064 PR middle-end/31095
10065 * builtins.c (expand_builtin_memmove_args): Strip nops that don't
10066 change the type before looking for a COMPOUND_EXPR.
10067
10068 2007-05-22 Ian Lance Taylor <iant@google.com>
10069
10070 * lower-subreg.c (decompose_multiword_subregs): If we change an
10071 insn, call remove_retval_note on it.
10072
10073 2007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
10074
10075 * regs.h (end_hard_regno): New function.
10076 (END_HARD_REGNO, END_REGNO): New macros.
10077 (add_to_hard_reg_set): New function.
10078 (remove_from_hard_reg_set): Likewise.
10079 (in_hard_reg_set_p): Likewise.
10080 (overlaps_hard_reg_set_p): Likewise.
10081 * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
10082 (note_btr_set): Use END_HARD_REGNO.
10083 * caller-save.c (setup_save_areas): Use end_hard_regno.
10084 (mark_set_regs): Use END_HARD_REGNO.
10085 (add_stored_regs): Use end_hard_regno.
10086 (mark_referenced_regs): Use add_to_hard_reg_set.
10087 * combine.c (update_table_tick): Use END_REGNO.
10088 (record_value_for_reg): Likewise.
10089 (record_dead_and_set_regs): Likewise.
10090 (get_last_value_validate): Likewise.
10091 (use_crosses_set_p): Likewise.
10092 (reg_dead_at_p_1): Likewise.
10093 (reg_dead_at_p): Likewise.
10094 (mark_used_regs_combine): Use add_to_hard_reg_set.
10095 (move_deaths): Use END_HARD_REGNO.
10096 (reg_bitfield_target_p): Use end_hard_regno.
10097 (distribute_notes): Use END_HARD_REGNO.
10098 * cse.c (mention_regs): Use END_REGNO.
10099 (insert): Use add_to_hard_reg_set.
10100 (invalidate): Use END_HARD_REGNO.
10101 (invalidate_for_call): Likewise.
10102 (exp_equiv_p): Use END_REGNO.
10103 (cse_insn): Likewise.
10104 * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
10105 * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
10106 * df-scan.c (df_ref_record): Use END_HARD_REGNO.
10107 * function.c (keep_stack_depressed): Use end_hard_regno.
10108 * global.c (global_alloc): Use end_hard_regno.
10109 (global_conflicts): Use add_to_hard_reg_set instead of
10110 mark_reg_live_nc.
10111 (find_reg): Likewise.
10112 (mark_reg_store): Likewise.
10113 (mark_reg_conflicts): Likewise.
10114 (mark_reg_death): Use remove_from_hard_reg_set.
10115 (mark_reg_live_nc): Delete.
10116 (set_preference): Use end_hard_regno.
10117 * local-alloc.c (mark_life): Use add_to_hard_reg_set and
10118 remove_from_hard_reg_set.
10119 (post_mark_life): Use add_to_hard_reg_set.
10120 * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
10121 (reg_becomes_live): Use add_to_hard_reg_set.
10122 * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
10123 (peep2_find_free_register): Use add_to_hard_reg_set.
10124 * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
10125 * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
10126 * regrename.c (note_sets): Use add_to_hard_reg_set.
10127 (clear_dead_regs): Use remove_from_hard_reg_set.
10128 (regrename_optimize): Use add_to_hard_reg_set.
10129 (find_oldest_value_reg): Use in_hard_reg_set_p.
10130 * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
10131 (hard_reg_set_here_p): Use end_hard_regno.
10132 (decompose): Likewise.
10133 (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
10134 (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
10135 * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
10136 (mark_home_live): Use end_hard_regno.
10137 (spill_hard_reg): Likewise.
10138 (clear_reload_reg_in_use): Likewise.
10139 * reorg.c (delete_prior_computation): Use END_REGNO.
10140 * resource.c (update_live_status): Use END_HARD_REGNO.
10141 (mark_referenced_resources): Use add_to_hard_reg_set.
10142 (mark_set_resources): Likewise.
10143 (mark_target_live_regs): Likewise. Use remove_from_hard_reg_set.
10144 * rtlanal.c (refers_to_regno_p): Use END_REGNO.
10145 (reg_overlap_mentioned_p): Likewise.
10146 (dead_or_set_p): Likewise. Use an exclusive upper loop bound.
10147 (covers_regno_no_parallel_p): Use END_REGNO.
10148 (find_regno_note): Likewise.
10149 (find_reg_fusage): Use END_HARD_REGNO.
10150 * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
10151 * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
10152
10153 2007-05-22 Richard Sandiford <rsandifo@nildram.co.uk>
10154
10155 * mode-switching.c (reg_dies): Change type of second argument to
10156 "HARD_REG_SET *".
10157 (optimize_mode_switching): Update accordingly.
10158
10159 2007-05-22 Richard Sandiford <richard@codesourcery.com>
10160
10161 * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
10162 in favor of...
10163 (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
10164 (hard_reg_set_empty_p): ...these new functions.
10165 * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
10166 GO_IF_HARD_REG_SUBSET.
10167 * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
10168 instead of GO_IF_HARD_REG_EQUAL.
10169 * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
10170 instead of GO_IF_HARD_REG_EQUAL.
10171 * global.c (find_reg): Use hard_reg_set_empty_p instead of
10172 GO_IF_HARD_REG_SUBSET.
10173 (modify_reg_pav): Use hard_reg_set_empty_p instead of
10174 GO_IF_HARD_REG_EQUAL.
10175 * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
10176 of GO_IF_HARD_REG_SUBSET.
10177 * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
10178 instead of GO_IF_HARD_REG_EQUAL.
10179 * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
10180 hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
10181 (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
10182 of GO_IF_HARD_REG_SUBSET,
10183 * reload1.c (finish_spills): Use hard_reg_subset_p instead of
10184 GO_IF_HARD_REG_SUBSET.
10185 * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
10186 instead of GO_IF_HARD_REG_EQUAL.
10187 * config/sh/sh.c (push_regs, calc_live_regs): Use
10188 hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
10189 (hard_regs_intersect_p): Delete.
10190
10191 2007-05-22 Janis Johnson <janis187@us.ibm.com>
10192
10193 * doc/sourcebuild.texi (Test Directives) Add dg-message.
10194
10195 2007-05-22 H.J. Lu <hongjiu.lu@intel.com>
10196 Richard Henderson <rth@redhat.com>
10197
10198 * config.gcc (i[34567]86-*-*): Add smmintrin.h to
10199 extra_headers.
10200 (x86_64-*-*): Likewise.
10201
10202 * i386/i386-modes.def (V2QI): New.
10203
10204 * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
10205 SSE4A.
10206 (override_options): Support SSE4.1.
10207 (IX86_BUILTIN_BLENDPD): New for SSE4.1.
10208 (IX86_BUILTIN_BLENDPS): Likewise.
10209 (IX86_BUILTIN_BLENDVPD): Likewise.
10210 (IX86_BUILTIN_BLENDVPS): Likewise.
10211 (IX86_BUILTIN_PBLENDVB128): Likewise.
10212 (IX86_BUILTIN_PBLENDW128): Likewise.
10213 (IX86_BUILTIN_DPPD): Likewise.
10214 (IX86_BUILTIN_DPPS): Likewise.
10215 (IX86_BUILTIN_INSERTPS128): Likewise.
10216 (IX86_BUILTIN_MOVNTDQA): Likewise.
10217 (IX86_BUILTIN_MPSADBW128): Likewise.
10218 (IX86_BUILTIN_PACKUSDW128): Likewise.
10219 (IX86_BUILTIN_PCMPEQQ): Likewise.
10220 (IX86_BUILTIN_PHMINPOSUW128): Likewise.
10221 (IX86_BUILTIN_PMAXSB128): Likewise.
10222 (IX86_BUILTIN_PMAXSD128): Likewise.
10223 (IX86_BUILTIN_PMAXUD128): Likewise.
10224 (IX86_BUILTIN_PMAXUW128): Likewise.
10225 (IX86_BUILTIN_PMINSB128): Likewise.
10226 (IX86_BUILTIN_PMINSD128): Likewise.
10227 (IX86_BUILTIN_PMINUD128): Likewise.
10228 (IX86_BUILTIN_PMINUW128): Likewise.
10229 (IX86_BUILTIN_PMOVSXBW128): Likewise.
10230 (IX86_BUILTIN_PMOVSXBD128): Likewise.
10231 (IX86_BUILTIN_PMOVSXBQ128): Likewise.
10232 (IX86_BUILTIN_PMOVSXWD128): Likewise.
10233 (IX86_BUILTIN_PMOVSXWQ128): Likewise.
10234 (IX86_BUILTIN_PMOVSXDQ128): Likewise.
10235 (IX86_BUILTIN_PMOVZXBW128): Likewise.
10236 (IX86_BUILTIN_PMOVZXBD128): Likewise.
10237 (IX86_BUILTIN_PMOVZXBQ128): Likewise.
10238 (IX86_BUILTIN_PMOVZXWD128): Likewise.
10239 (IX86_BUILTIN_PMOVZXWQ128): Likewise.
10240 (IX86_BUILTIN_PMOVZXDQ128): Likewise.
10241 (IX86_BUILTIN_PMULDQ128): Likewise.
10242 (IX86_BUILTIN_PMULLD128): Likewise.
10243 (IX86_BUILTIN_ROUNDPD): Likewise.
10244 (IX86_BUILTIN_ROUNDPS): Likewise.
10245 (IX86_BUILTIN_ROUNDSD): Likewise.
10246 (IX86_BUILTIN_ROUNDSS): Likewise.
10247 (IX86_BUILTIN_PTESTZ): Likewise.
10248 (IX86_BUILTIN_PTESTC): Likewise.
10249 (IX86_BUILTIN_PTESTNZC): Likewise.
10250 (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
10251 (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
10252 (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
10253 (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
10254 (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
10255 (bdesc_ptest): New.
10256 (bdesc_sse_3arg): Likewise.
10257 (bdesc_2arg): Likewise.
10258 (bdesc_1arg): Likewise.
10259 (ix86_init_mmx_sse_builtins): Support SSE4.1. Handle SSE builtins
10260 with 3 args.
10261 (ix86_expand_sse_4_operands_builtin): New.
10262 (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
10263 smaller than 8 bits as the 2nd arg.
10264 (ix86_expand_sse_ptest): New.
10265 (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
10266 (ix86_expand_vector_set): Support SSE4.1.
10267 (ix86_expand_vector_extract): Likewise.
10268
10269 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
10270 __SSE4_1__ for -msse4.1.
10271
10272 * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
10273 (UNSPEC_INSERTPS): Likewise.
10274 (UNSPEC_DP): Likewise.
10275 (UNSPEC_MOVNTDQA): Likewise.
10276 (UNSPEC_MPSADBW): Likewise.
10277 (UNSPEC_PHMINPOSUW): Likewise.
10278 (UNSPEC_PTEST): Likewise.
10279 (UNSPEC_ROUNDP): Likewise.
10280 (UNSPEC_ROUNDS): Likewise.
10281
10282 * config/i386/i386.opt (msse4.1): New for SSE4.1.
10283
10284 * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
10285 (const_pow2_1_to_32768_operand): Likewise.
10286
10287 * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
10288 file.
10289
10290 * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
10291 SSE4.1.
10292 (sse4_1_insertps): Likewise.
10293 (*sse4_1_extractps): Likewise.
10294 (sse4_1_ptest): Likewise.
10295 (sse4_1_mulv2siv2di3): Likewise.
10296 (*sse4_1_mulv4si3): Likewise.
10297 (*sse4_1_smax<mode>3): Likewise.
10298 (*sse4_1_umax<mode>3): Likewise.
10299 (*sse4_1_smin<mode>3): Likewise.
10300 (*sse4_1_umin<mode>3): Likewise.
10301 (sse4_1_eqv2di3): Likewise.
10302 (*sse4_1_pinsrb): Likewise.
10303 (*sse4_1_pinsrd): Likewise.
10304 (*sse4_1_pinsrq): Likewise.
10305 (*sse4_1_pextrb): Likewise.
10306 (*sse4_1_pextrb_memory): Likewise.
10307 (*sse4_1_pextrw_memory): Likewise.
10308 (*sse4_1_pextrq): Likewise.
10309 (sse4_1_blendpd): Likewise.
10310 (sse4_1_blendps): Likewise.
10311 (sse4_1_blendvpd): Likewise.
10312 (sse4_1_blendvps): Likewise.
10313 (sse4_1_dppd): Likewise.
10314 (sse4_1_dpps): Likewise.
10315 (sse4_1_movntdqa): Likewise.
10316 (sse4_1_mpsadbw): Likewise.
10317 (sse4_1_packusdw): Likewise.
10318 (sse4_1_pblendvb): Likewise.
10319 (sse4_1_pblendw): Likewise.
10320 (sse4_1_phminposuw): Likewise.
10321 (sse4_1_extendv8qiv8hi2): Likewise.
10322 (*sse4_1_extendv8qiv8hi2): Likewise.
10323 (sse4_1_extendv4qiv4si2): Likewise.
10324 (*sse4_1_extendv4qiv4si2): Likewise.
10325 (sse4_1_extendv2qiv2di2): Likewise.
10326 (*sse4_1_extendv2qiv2di2): Likewise.
10327 (sse4_1_extendv4hiv4si2): Likewise.
10328 (*sse4_1_extendv4hiv4si2): Likewise.
10329 (sse4_1_extendv2hiv2di2): Likewise.
10330 (*sse4_1_extendv2hiv2di2): Likewise.
10331 (sse4_1_extendv2siv2di2): Likewise.
10332 (*sse4_1_extendv2siv2di2): Likewise.
10333 (sse4_1_zero_extendv8qiv8hi2): Likewise.
10334 (*sse4_1_zero_extendv8qiv8hi2): Likewise.
10335 (sse4_1_zero_extendv4qiv4si2): Likewise.
10336 (*sse4_1_zero_extendv4qiv4si2): Likewise.
10337 (sse4_1_zero_extendv2qiv2di2): Likewise.
10338 (*sse4_1_zero_extendv2qiv2di2): Likewise.
10339 (sse4_1_zero_extendv4hiv4si2): Likewise.
10340 (*sse4_1_zero_extendv4hiv4si2): Likewise.
10341 (sse4_1_zero_extendv2hiv2di2): Likewise.
10342 (*sse4_1_zero_extendv2hiv2di2): Likewise.
10343 (sse4_1_zero_extendv2siv2di2): Likewise.
10344 (*sse4_1_zero_extendv2siv2di2): Likewise.
10345 (sse4_1_roundpd): Likewise.
10346 (sse4_1_roundps): Likewise.
10347 (sse4_1_roundsd): Likewise.
10348 (sse4_1_roundss): Likewise.
10349 (mulv4si3): Don't expand for SSE4.1.
10350 (smax<mode>3): Likewise.
10351 (umaxv4si3): Likewise.
10352 (uminv16qi3): Likewise.
10353 (umin<mode>3): Likewise.
10354 (umaxv8hi3): Rewrite. Only enabled for SSE4.1.
10355
10356 * doc/extend.texi: Document SSE4.1 built-in functions.
10357
10358 * doc/invoke.texi: Document -msse4.1.
10359
10360 2007-05-22 Nathan Sidwell <nathan@codesourcery.com>
10361
10362 * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
10363 * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
10364 * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
10365 (ASM_SPEC): Add asm_pcrel_spec.
10366 (EXTRA_SPECS): Add asm_pcrel_spec.
10367
10368 2007-05-21 David Daney <ddaney@avtrex.com>
10369
10370 * doc/install.texi (Building a cross compiler): Add requirements
10371 for Java cross compiler.
10372
10373 2007-05-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
10374
10375 PR middle-end/31995
10376 * tree-chrec.c (evolution_function_is_affine_multivariate_p):
10377 Add loopno argument. Use evolution_function_is_invariant_rec_p
10378 instead of evolution_function_is_constant_p.
10379 Update calls to evolution_function_is_affine_multivariate_p.
10380 * tree-chrec.h (evolution_function_is_affine_multivariate_p):
10381 Add loopno argument.
10382 * tree-scalar-evolution.c (gather_chrec_stats): Call
10383 evolution_function_is_affine_multivariate_p with a loop
10384 number of 0.
10385 * tree-data-ref.c (analyze_miv_subscript): Likewise.
10386 (analyze_overlapping_iterations): Likewise.
10387 (access_functions_are_affine_or_constant_p): Likewise.
10388 (build_classic_dist_vector_1): If the access functions
10389 are equal, don't do anything.
10390
10391 2007-05-21 Paolo Bonzini <bonzini@gnu.org>
10392 Paolo Carlini <pcarlini@suse.de>
10393 Uros Bizjak <ubizjak@gmail.com>
10394
10395 * c-cppbuiltin.c (c_cpp_builtins): Define
10396 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
10397 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
10398 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
10399 * doc/cpp.texi ([Standard Predefined Macros]): Document.
10400
10401 2007-05-21 Mike Stump <mrs@apple.com>
10402
10403 * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
10404 handling as well.
10405 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
10406
10407 2007-05-21 Uros Bizjak <ubizjak@gmail.com>
10408
10409 * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
10410 implementation if __OPTIMIZE__ is not defined.
10411 (_mm_alignr_pi8): Ditto.
10412 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
10413 (_mm_inserti_si64): Ditto.
10414 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
10415 (_mm_slli_epi16): Ditto.
10416 (_mm_slli_epi32): Ditto.
10417 (_mm_slli_epi64): Ditto.
10418 (_mm_srai_epi16): Ditto.
10419 (_mm_srai_epi32): Ditto.
10420 (_mm_srli_si128): Ditto.
10421 (_mm_slli_si128): Ditto.
10422 (_mm_srli_epi16): Ditto.
10423 (_mm_srli_epi32): Ditto.
10424 (_mm_srli_epi64): Ditto.
10425 (_mm_extract_epi16): Ditto.
10426 (_mm_insert_epi16): Ditto.
10427 (_mm_shufflehi_epi16): Ditto.
10428 (_mm_shufflelo_epi16): Ditto.
10429 (_mm_shuffle_epi32): Ditto.
10430 * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
10431 (_m_pextrw): Ditto.
10432 (_mm_insert_pi16): Ditto.
10433 (_m_pinsrw): Ditto.
10434 (_mm_shuffle_pi16): Ditto.
10435 (_m_pshufw): Ditto.
10436 (_mm_shufle_ps): Ditto.
10437 (_mm_prefetch): Ditto.
10438
10439 2007-05-21 Andreas Krebbel <krebbel1@de.ibm.com>
10440
10441 * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
10442 * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
10443 * real.c (encode_i370_single, decode_i370_single,
10444 encode_i370_double, decode_i370_double): Functions removed.
10445 (i370_single_format, i370_double_format): Initializations removed.
10446 (real_maxval, round_for_format, exact_real_truncate, significand_size):
10447 Consider the log2_b field to always be one.
10448 (ieee_single_format, mips_single_format, coldfire_single_format,
10449 ieee_double_format, mips_double_format, coldfire_double_format,
10450 ieee_extended_motorola_format, ieee_extended_intel_96_format,
10451 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
10452 ibm_extended_format, mips_extended_format, ieee_quad_format,
10453 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
10454 decimal_single_format, decimal_double_format, decimal_quad_format,
10455 c4x_single_format, c4x_extended_format, real_internal_format): Remove
10456 initialization of log2_b.
10457 * real.h (i370_single_format, i370_double_format): Declarations
10458 removed.
10459 * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
10460 field to always be one.
10461
10462 2007-05-21 Andreas Schwab <schwab@suse.de>
10463
10464 * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
10465 NOTE_INSN_BASIC_BLOCK_P.
10466 (process_for_unwind_directive): Likewise.
10467
10468 2007-05-21 Nathan Sidwell <nathan@codesourcery.com>
10469
10470 * builtins.c (expand_builtin_setjmp_setup): Update comment.
10471 * function.h (struct function): Move va_list_gpr_size,
10472 va_list_fpr_size, function_frequency to front of bitfields. Add
10473 calls_unwind_init.
10474 (current_function_calls_unwind_init): New.
10475 * except.c (expand_builtin_unwind_init): Set
10476 current_function_calls_unwind_init not
10477 current_function_has_nonlocal_label.
10478 * reload1.c (has_nonexceptional_receiver): New.
10479 (reload): Use it and current_function_calls_unwind_init to
10480 determine whether call-saved regs must be saved.
10481
10482 2007-05-20 Jan Hubicka <jh@suse.cz>
10483
10484 * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
10485 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
10486 * ddg.c (create_ddg): LIkewise.
10487 * final.c (final): Remove hunk moving line number notes around since
10488 they are no longer present at this stage.
10489 (final_scan_insn): Use NOTE_KIND instead of
10490 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
10491 (output_asm_label): Likewise.
10492 * reorg.c (dbr_schedule): Likewise.
10493 * haifa-sched.c (unlink_other_notes): Likewise.
10494 * mode-switching.c (optimize_mode_switching): Likewise.
10495 * graph.c (start_bb): Likewise.
10496 * rtl.def (NOTE): Update description.
10497 * jump.c (squeeze_notes): Delete.
10498 (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
10499 NOTE_INSN_BASIC_BLOCK_P when possible.
10500 * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
10501 * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
10502 NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
10503 (dwarf2out_var_location): Likewise.
10504 * cfgbuild.c (make_edges): Likewise.
10505 (find_basic_blocks_1): Likewise.
10506 * function.c (reorder_blocks_1): Likewise.
10507 (epilogue_done): Likewise.
10508 (reposition_prologue_and_epilogue_notes): Likewise.
10509 * print-rtl.c (print_rtx): Likewise; drop code for printing
10510 line number notes.
10511 (print_rtl): Likewise.
10512 (print_rtl_single): Likewise.
10513 * gcse.c (insert_insn_start_bb): Likewise.
10514 * alias.c (init_alias_analysis): Likewise.
10515 * calls.c (fixup_tail_calls): Likewise.
10516 * except.c (sjlj_emit_function_enter): Likewise.
10517 * emit-rtl.c (add_insn_after): Likeiwse.
10518 (emit_label_before): Likewise.
10519 (emit_label_after): Likewise.
10520 (emit_note_before, emit_note_after, emit_note): Update
10521 parameter to be enum insn_note; do not deal with source
10522 files.
10523 * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
10524 Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
10525 when possible.
10526 (merge_blocks_move_successor_nojumps): Simplify now when
10527 we don't have BLOCK notes.
10528 (try_optimize_cfg): Likewise.
10529 * cfglayout.c (skip_insns_after_block): Likewise.
10530 (record_effective_endpoints): Likewise.
10531 (duplicate_insn_chain): Likewise.
10532 * varasm.c (output_constant_pool_1): Likewise.
10533 * sched-deps.c (sched_analyze): Likewise.
10534 * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
10535 Exterminate.
10536 (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
10537 * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
10538 (SET_INSN_DELETED): Simplify.
10539 (NOTE_LINE_NUMBER): Exterminate.
10540 (NOTE_LINE_KIND): New.
10541 (NOTE_INSN_BASIC_BLOCK_P): Update.
10542 (enum insn_note): Simplify.
10543 (GET_NOTE_INSN_NAME) Simplify.
10544 (emit_note_before, emit_note_after, emit_note): Update prototype.
10545 (squeeze_notes): Remove.
10546 * sched-int.h (NOTE_NOT_BB_P): Update.
10547 * resource.c (mark_target_live_regs): Update.
10548 * sched-rgn.c (debug_dependencies): Update.
10549 * sched-vis.c (print_insn): Update.
10550 * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
10551 * config/i386/i386.c (ix86_output_function_epilogue): Update.
10552 * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
10553 (TARGET_ADJUST_UNROLL_MAX): Likewise.
10554 (split_branches): Update.
10555 (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
10556 4.0.0.
10557 (sh_adjust_unroll_max): Exterminate.
10558 * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
10559 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
10560 (m68hc11_reorg): Likewise.
10561 * config/ia64/ia64.c (emit_insn_group_barriers): Update.
10562 (emit_predicate_relation_info): Update.
10563 (process_for_unwind_directive): Update.
10564 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
10565 (output_call): Update.
10566 * config/pa/pa.c (output_lbranch): Update.
10567 (output_millicode_call): Update.
10568 (output_call): Update.
10569 (pa_combine_instructions): Update.
10570 * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
10571 * config/bfin/bfin.c (gen_one_bundle): Update.
10572 * cfgrtl.c (can_delete_note_p): Update.
10573 (delete_insn): Update.
10574 (rtl_merge_blocks): Update.
10575 (commit_one_edge_insertion): Update.
10576 (rtl_verify_flow_info): Update.
10577 * stmt.c (expand_case): Do not call squeeze_notes.
10578
10579 2007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10580
10581 PR middle-end/7651
10582 PR c++/11856
10583 PR c/12963
10584 PR c/23587
10585 PR other/29694
10586 * c.opt (Wtype-limits): New.
10587 * doc/invoke.texi (Wtype-limits): Document it.
10588 (Wextra): Enabled by -Wextra.
10589 * c-opts.c (c_common_post_options): Enabled by -Wextra.
10590 * c-common.c (shorten_compare): Warn with Wtype-limits.
10591
10592 2007-05-20 Uros Bizjak <ubizjak@gmail.com>
10593
10594 * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
10595 inlined function, not as a macro.
10596 (_mm_alignr_pi8): Ditto.
10597 * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
10598 (_mm_inserti_si64): Ditto.
10599 * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
10600 (_mm_extract_epi16): Ditto.
10601 (_mm_insert_epi16): Ditto.
10602 (_mm_shufflehi_epi16): Ditto.
10603 (_mm_shufflelo_epi16): Ditto.
10604 (_mm_shuffle_epi32): Ditto.
10605 * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
10606 * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
10607 all functions.
10608 (_m_from_float): Add __extension__ to conversion. Use 0.0f for
10609 float constant.
10610 (_m_to_float): Use C89 compatible assignment.
10611
10612 2007-05-20 Martin Michlmayr <tbm@cyrius.com>
10613
10614 PR target/32007
10615 * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
10616
10617 2007-05-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10618
10619 PR middle-end/7651
10620 * doc/invoke.texi (Wreturn-type): Complete description.
10621 (Wextra): Delete item about return-type warning.
10622 * c-decl.c: Delete redundant Wextra warning.
10623
10624 2007-05-20 Uros Bizjak <ubizjak@gmail.com>
10625
10626 PR target/31585
10627 * config/i386/pmmintrin.h: Do not include xmmintrin.h
10628 * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
10629 inlined function, not as a macro.
10630 (_mm_prefetch): Ditto.
10631 (_m_pextrw): Ditto.
10632 (_mm_insert_pi16): Ditto.
10633 (_m_pinsrw): Ditto.
10634 (_mm_shuffle_pi16): Ditto. Add const to __N argument.
10635 (_m_pshufw): Ditto. Add const to __N argument.
10636 (_mm_shufle_ps): Ditto. Add const to __mask argument.
10637 * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
10638 (_mm_slli_epi32): Ditto.
10639 (_mm_srli_si128): Implement as always inlined function, not as a
10640 macro. Add __inline to function declaration.
10641 (_mm_slli_si128): Ditto.
10642
10643 2007-05-19 Uros Bizjak <ubizjak@gmail.com>
10644
10645 * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
10646 FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
10647 New constants.
10648 (struct fenv): New structure.
10649 (FP_HANDLE_EXCEPTIONS): New define.
10650 (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
10651 (_FP_DECL_EXP): New define.
10652 (FP_INIT_ROUNDMODE): New define.
10653 (FP_ROUNDMODE): New define.
10654
10655 2007-05-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10656
10657 * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
10658 (Wconversion): Update description.
10659 (Wconversion-sign): New.
10660 * c.opt (Wconversion-sign): New.
10661 * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
10662 means disabled for C++. Otherwise, take the status of Wconversion.
10663 * c-common.c (conversion_warning): Warn with either Wconversion or
10664 Wconversion-sign.
10665 (warnings_for_convert_and_check): Conditions are already checked by
10666 conversion_warning.
10667 (convert_and_check): Don't check warnings if the conversion failed.
10668
10669 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
10670 Anatoly Sokolov <aesok@dol.ru>
10671
10672 * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
10673 avr_epilogue_uses) : Add declaration.
10674 * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
10675 * config/avr/constraints.md (R): New constraint.
10676 config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
10677 UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
10678 (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
10679 (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
10680 (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
10681 call_prologue_saves, epilogue_restores, return_from_epilogue,
10682 return_from_main_epilogue, return_from_interrupt_epilogue,
10683 return_from_naked_epilogue, prologue, epilogue): New patterns.
10684 (jump): Handle symbol reference.
10685 * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
10686 avr_output_function_prologue, avr_output_function_epilogue): Remove
10687 functions.
10688 (avr_init_machine_status, expand_prologue, expand_epilogue,
10689 avr_asm_function_end_prologue, avr_epilogue_uses,
10690 avr_asm_function_begin_epilogue): New functions.
10691 (prologue_size, epilogue_size, jump_tables_size): Remove global
10692 variables.
10693 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
10694 (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
10695 (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
10696 (avr_override_options): Initialise init_machine_status.
10697 (output_movhi): Handle all stack pointer loads.
10698 (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
10699 (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
10700 * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
10701 (EPILOGUE_USES) Redefine.
10702 (machine_function) Declare.
10703
10704 2007-05-19 Richard Sandiford <richard@codesourcery.com>
10705
10706 * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
10707 Use a single return statement.
10708
10709 2007-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10710
10711 PR middle-end/30250
10712 * builtins.c (do_mpfr_lgamma_r): New.
10713 (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
10714 * tree.h (CASE_FLT_FN_REENT): New.
10715
10716 2007-05-18 Geoffrey Keating <geoffk@apple.com>
10717
10718 * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
10719 (output_die): Use 'unsigned long' with %x.
10720 * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
10721 HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
10722 * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
10723
10724 * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
10725
10726 2007-05-18 H.J. Lu <hongjiu.lu@intel.com>
10727
10728 PR target/31989
10729 PR target/31681
10730 PR target/31666
10731 * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
10732 true if function has no argument.
10733
10734 2007-05-18 DJ Delorie <dj@redhat.com>
10735
10736 * config/mips/mips.c (mips_offset_within_alignment_p): New.
10737 (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
10738
10739 2007-05-18 Uros Bizjak <ubizjak@gmail.com>
10740
10741 * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
10742 sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
10743 count_trailing_zeros.
10744 (__i386__): Implement count_leading_zeros using __builtin_clz().
10745 Implement count_trailing_zeros usign __builtin_ctz().
10746
10747 2007-05-18 Richard Sandiford <richard@codesourcery.com>
10748
10749 * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
10750
10751 2007-05-18 Uros Bizjak <ubizjak@gmail.com>
10752
10753 PR middle-end/31344
10754 * expr.c (emit_move_change_mode): Change mode of push operands here.
10755
10756 2007-05-17 Ian Lance Taylor <iant@google.com>
10757
10758 PR tree-optimization/31953
10759 * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
10760 Change all callers.
10761 (set_value_range_to_null): Call set_value_range_to_value.
10762 (extract_range_from_comparison): Likewise.
10763
10764 2007-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10765
10766 * toplev.c (print_version): Output GMP/MPFR version info.
10767
10768 * builtins.c (CASE_MATHFN_REENT): New macro.
10769 (mathfn_built_in): Use it.
10770 * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
10771 BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
10772 BUILT_IN_LGAMMAL_R): New.
10773 * doc/extend.texi: Document new builtins.
10774
10775 PR middle-end/31796
10776 * builtins.c (do_mpfr_remquo): New.
10777 (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
10778 (fold_builtin_3): Handle BUILT_IN_REMQUO.
10779
10780 PR middle-end/30251
10781 * builtins.c (fold_builtin_1): Handle y0, y1.
10782 (fold_builtin_2): Handle yn.
10783
10784 PR middle-end/30251
10785 * builtins.c (do_mpfr_bessel_n): New.
10786 (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
10787 (fold_builtin_2): Handle BUILT_IN_JN.
10788
10789 2007-05-17 Danny Smith <dannysmith@users.sourceforge.net>
10790
10791 PR target/31965
10792 * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
10793 TYPE_PRECISION (intmax_type_node).
10794
10795 2007-05-17 Steve Ellcey <sje@cup.hp.com>
10796
10797 PR target/31850
10798 * reload.c (subst_reloads): Remove checking.
10799
10800 2007-05-17 Eric Botcazou <ebotcazou@libertysurf.fr>
10801
10802 PR rtl-optimization/31691
10803 * combine.c (simplify_set): Build a new src pattern instead of
10804 substituting its operands in the COMPARE case.
10805
10806 2007-05-17 Zdenek Dvorak <dvorakz@suse.cz>
10807
10808 * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
10809 (execute_vrp): Preserve loops through jump threading.
10810 * tree-ssa-threadupdate.c (thread_single_edge,
10811 dbds_continue_enumeration_p, determine_bb_domination_status,
10812 thread_through_loop_header): New functions.
10813 (create_edge_and_update_destination_phis,
10814 create_edge_and_update_destination_phis): Set loops for the new blocks.
10815 (prune_undesirable_thread_requests): Removed.
10816 (redirect_edges): Do not pretend that redirect_edge_and_branch can
10817 create new blocks.
10818 (thread_block): Do not call prune_undesirable_thread_requests.
10819 Update loops.
10820 (mark_threaded_blocks): Select edges to thread here.
10821 (thread_through_all_blocks): Take may_peel_loop_headers argument.
10822 Thread edges through loop headers independently.
10823 * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
10824 * tree-pass.h (TODO_mark_first_instance): New.
10825 (first_pass_instance): Declare.
10826 * cfghooks.c (duplicate_block): Put the block to the original loop
10827 if copy is not specified.
10828 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
10829 jump threading. Pass may_peel_loop_headers to
10830 thread_through_all_blocks according to first_pass_instance.
10831 * cfgloop.h (create_preheader): Declare.
10832 * tree-flow.h (thread_through_all_blocks): Declaration changed.
10833 * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
10834 * passes.c (first_pass_instance): New variable.
10835 (next_pass_1): Set TODO_mark_first_instance.
10836 (execute_todo): Set first_pass_instance.
10837
10838 2007-05-17 Uros Bizjak <ubizjak@gmail.com>
10839
10840 PR tree-optimization/24659
10841 * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
10842 OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
10843 OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
10844 OTI_vec_pack_ufix_trunc.
10845 (vec_unpacks_float_hi_optab): Define new macro.
10846 (vec_unpacks_float_lo_optab): Ditto.
10847 (vec_unpacku_float_hi_optab): Ditto.
10848 (vec_unpacku_float_lo_optab): Ditto.
10849 (vec_pack_sfix_trunc_optab): Ditto.
10850 (vec_pack_ufix_trunc_optab): Ditto.
10851 * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
10852 and vec_pack_[s|u]fix_trunc_optab using
10853 vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
10854 * tree-vectorizer.c (supportable_widening_operation): Handle
10855 FLOAT_EXPR and CONVERT_EXPR. Update comment.
10856 (supportable_narrowing_operation): New function.
10857 * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
10858 * tree-vect-transform.c (vectorizable_conversion): Handle
10859 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
10860 (vect_gen_widened_results_half): Move before vectorizable_conversion.
10861 (vectorizable_type_demotion): Call supportable_narrowing_operation()
10862 to check for target support.
10863 * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
10864 for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
10865 for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
10866 for VEC_PACK_FIX_TRUNC_EXPR.
10867 (expand_binop): Special case mode of the result for
10868 vec_pack_[u|s]fix_trunc_optab.
10869 (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
10870 vec_pack_[u|s]fix_trunc_optab.
10871
10872 * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
10873 VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
10874 * tree-pretty-print.c (dump_generic_node): Handle
10875 VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
10876 VEC_PACK_FIX_TRUNC_EXPR.
10877 (op_prio): Ditto.
10878 * expr.c (expand_expr_real_1): Ditto.
10879 * tree-inline.c (estimate_num_insns_1): Ditto.
10880 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
10881
10882 * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
10883 (vec_unpacks_float_lo_v8hi): Ditto.
10884 (vec_unpacku_float_hi_v8hi): Ditto.
10885 (vec_unpacku_float_lo_v8hi): Ditto.
10886 (vec_unpacks_float_hi_v4si): Ditto.
10887 (vec_unpacks_float_lo_v4si): Ditto.
10888 (vec_pack_sfix_trunc_v2df): Ditto.
10889
10890 * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
10891 Document.
10892 [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
10893 [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
10894 * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
10895 [vec_pack_ufix_trunc]: Ditto.
10896 [vec_unpacks_float_hi]: Ditto.
10897 [vec_unpacks_float_lo]: Ditto.
10898 [vec_unpacku_float_hi]: Ditto.
10899 [vec_unpacku_float_lo]: Ditto.
10900
10901 2007-05-16 Uros Bizjak <ubizjak@gmail.com>
10902
10903 * soft-fp/README: Update for new files.
10904 * soft-fp/floattisf.c: New file.
10905 * soft-fp/floattidf.c: New file.
10906 * soft-fp/floattitf.c: New file.
10907 * soft-fp/floatuntisf.c: New file.
10908 * soft-fp/floatuntidf.c: New file.
10909 * soft-fp/floatuntitf.c: New file.
10910 * soft-fp/fixsfti.c: New file.
10911 * soft-fp/fixdfti.c: New file.
10912 * soft-fp/fixtfti.c: New file.
10913 * soft-fp/fixunssfti.c: New file.
10914 * soft-fp/fixunsdfti.c: New file.
10915 * soft-fp/fixunstfti.c: New file.
10916 * soft-fp/extendxftf.c: New file.
10917 * soft-fp/trunctfxf.c: New file.
10918
10919 * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
10920 (__trunctfxf2): Ditto.
10921
10922 * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
10923 __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
10924 __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
10925 __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
10926 __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
10927 __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
10928
10929 * config/i386/t-fprules-softfp64: New file.
10930 * config/i386/sfp-machine.h: New file.
10931 * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
10932 x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
10933 and soft-fp/t-softfp to tmake_file.
10934 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
10935 i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
10936
10937 * config/i386/t-linux64 (softfp_wrap_start): New.
10938 (softfp_wrap_end): New.
10939 * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
10940 supported for TARGET_64BIT.
10941
10942 2007-05-16 Rafael Avila de Espindola <espindola@google.com>
10943
10944 * c-common.c (c_common_signed_or_unsigned_type): Emulate
10945 c_common_unsigned_type behavior.
10946
10947 2007-05-16 Paolo Bonzini <bonzini@gnu.org>
10948
10949 * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
10950 calls as pure.
10951
10952 2007-05-16 Eric Christopher <echristo@apple.com>
10953
10954 * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
10955 saving after stack push. Set sp_offset whenever we push.
10956 (rs6000_emit_epilogue): Move altivec register restore before
10957 stack push.
10958
10959 2007-05-16 Richard Sandiford <richard@codesourcery.com>
10960
10961 * configure.ac: Allow sysroots to be relocated under $prefix as
10962 well as $exec_prefix.
10963 * configure: Regenerate.
10964
10965 2007-05-16 Richard Sandiford <richard@codesourcery.com>
10966
10967 Revert:
10968
10969 2007-05-12 Richard Sandiford <richard@codesourcery.com>
10970
10971 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
10972 (gcc_tooldir): Likewise.
10973 * configure: Regenerate.
10974 * Makefile.in (libsubdir_to_prefix): New variable, based on the
10975 old configure.ac gcc_tooldir setting.
10976 (prefix_to_exec_prefix): New variable.
10977 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
10978 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
10979
10980 2007-05-14 Janis Johnson <janis187@us.ibm.com>
10981
10982 * c-typeck.c (build_binary_op): Return early for error.
10983
10984 2007-05-15 Zdenek Dvorak <dvorakz@suse.cz>
10985
10986 * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
10987 struct nb_iter_bound.
10988 (free_numbers_of_iterations_estimates_loop): Use ggc_free.
10989 * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
10990 * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
10991 * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
10992 (struct scev_info_str, scalar_evolution_info): Add GTY markers.
10993 (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
10994 (del_scev_info): Use ggc_free.
10995 (scev_initialize): Allocate scalar_evolution_info in gc memory.
10996 * loop-init.c: Include ggc.h.
10997 (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
10998 (loop_optimizer_finalize): Use ggc_free.
10999 * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
11000 pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
11001 pass_iv_optimize): Add TODO_ggc_collect.
11002 * function.h (struct function): Remove skip marker from
11003 x_current_loops.
11004 * cfgloop.c: Include ggc.h.
11005 (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
11006 memory.
11007 (establish_preds): Vector superloops is gc allocated.
11008 (alloc_loop): Allocate loop using GGC_CNEW. Allocate head of
11009 loop->exits list.
11010 (flow_loops_find): Vector larray is gc allocated.
11011 (loop_exit_free): Use ggc_free.
11012 (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit. Reflect
11013 that head of exits list is now not a part of struct loop.
11014 (record_loop_exits): Allocate exits table in gc memory.
11015 (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect
11016 that head of exits list is now not a part of struct loop.
11017 * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
11018 struct loop_exit): Add GTY marker.
11019 (struct loop): Add GTY marker. Make superloops vector gc allocated.
11020 Add skip marker to aux field. Make head of exits list a separate
11021 object.
11022 (struct loops): Add GTY marker. Make larray vector gc allocated.
11023 Add param marker to exits table.
11024 (get_loops): Type changed.
11025 * Makefile.in (tree-scalar-evolution.o): Add
11026 gt-tree-scalar-evolution.h dependency.
11027 (cfgloop.o, loop-init.o): Add ggc.h dependency.
11028 (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
11029 * basic-block.h (struct basic_block_def): Remove skip marker from
11030 loop_father field.
11031
11032 2007-05-14 Uros Bizjak <ubizjak@gmail.com>
11033
11034 * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
11035 of 0 in the call to expand_expr().
11036 (expand_builtin_mathfn_3): Ditto.
11037 (expand_builtin_interclass_mathfn): Ditto.
11038 (expand_builtin_cexpi): Ditto.
11039 (expand_builtin_int_roundingfn): Ditto.
11040 (expand_builtin_int_roundingfn_2): Ditto.
11041 (expand_builtin_pow): Ditto.
11042 (expand_builtin_powi): Ditto.
11043 (expand_builtin_bswap): Ditto.
11044 (expand_builtin_unop): Ditto.
11045 (expand_builtin_fabs): Ditto.
11046 (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
11047 the call to expand_expr().
11048 (expand_builtin_sync_operation): Ditto.
11049 (expand_builtin_compare_and_swap): Ditto.
11050 (expand_builtin_lock_test_and_set): Ditto.
11051 * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
11052 instead of 0 in the call to expand_expr().
11053 (expand_builtin_extract_return_addr): Ditto.
11054 (expand_builtin_eh_return): Ditto.
11055 (expand_eh_return): Ditto.
11056 * explow.c (expr_size): Ditto.
11057 * expr.c (optimize_bitfield_assignment_op): Ditto.
11058 (expand_assignement): Ditto.
11059 (store_expr): Ditto.
11060 (store_field): Ditto.
11061 (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
11062 the call to expand_expr().
11063 (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
11064 in the call to expand_expr().
11065 [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
11066 BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
11067 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
11068 of expand_expr().
11069 * optabs.c (expand_vec_shift_expr): Ditto.
11070 (expand_vec_cond_expr): Ditto.
11071 (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
11072 call to expand_expr().
11073 * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
11074 in the call to expand_expr().
11075
11076 2007-05-14 Dave Korn <dave.korn@artimi.com>
11077
11078 * genautomata.c (gen_regexp_el): Allocate correct size for regexp.
11079
11080 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
11081
11082 * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
11083 instead of c_common_unsigned_type.
11084 (c_common_unsigned_type): Remove.
11085 (shorten_compare): Use c_common_signed_or_unsigned_type instead of
11086 c_common_unsigned_type.
11087 (c_common_nodes_and_builtins): Use unsigned_type_for instead of
11088 c_common_unsigned_type.
11089 * c-common.h (c_common_unsigned_type): Remove.
11090 * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
11091 c_common_unsigned_type.
11092 * c-format.c (check_format_types): Use unsigned_type_for instead of
11093 c_common_unsigned_type.
11094 * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
11095 * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead
11096 of c_common_unsigned_type.
11097 * convert.c (convert_to_integer): Use unsigned_type_for instead of
11098 lang_hooks.types.unsigned_type.
11099 * expmed.c (make_tree): Use unsigned_type_for instead of
11100 lang_hooks.types.unsigned_type.
11101 * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
11102 lang_hooks.types.unsigned_type.
11103 (build_range_check): Likewise.
11104 (fold_unary): Likewise.
11105 (fold_binary): Likewise.
11106 (fold_ternary): Likewise.
11107 * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
11108 * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
11109 * tree.c (get_unsigned_type): New.
11110 (unsigned_type_for): Use get_unsigned_type instead of
11111 lang_hooks.types.unsigned_type.
11112
11113 2007-05-14 Kazu Hirata <kazu@codesourcery.com>
11114
11115 * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
11116 to m68k_get_function_kind. Update its prototype.
11117 * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
11118 interrupt_thread.
11119 (m68k_interrupt_function_p): Return enum m68k_function_type
11120 instead of bool. Rename to m68k_get_function_kind.
11121 (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
11122 target is not fido.
11123 (m68k_compute_frame_layout): Don't mark any register for save
11124 if an interrupt_thread attribute is specified.
11125 (m68k_hard_regno_rename_ok): Update a use of
11126 m68k_interrupt_function_p.
11127 * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
11128 m68k_interrupt_function_p.
11129 (m68k_function_type): New.
11130 * config/m68k/m68k.md (*return): Output a 'sleep' instruction
11131 for a function with an interrupt_thread attribute.
11132 * doc/extend.texi: Document the interrupt_thread attribute.
11133
11134 2007-05-13 Daniel Berlin <dberlin@dberlin.org>
11135
11136 Fix PR tree-optimization/31911
11137 * tree-ssa-pre.c (phi_translate): Make sure to cache results even
11138 if they didn't change the expression.
11139
11140 2007-05-13 Zdenek Dvorak <dvorakz@suse.cz>
11141
11142 * tree-scalar-evolution.c (resolve_mixers): Exported.
11143 * tree-scalar-evolution.h (resolve_mixers): Declare.
11144 * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
11145 ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
11146 record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
11147 base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
11148 init_array_ref, init_pointer_ref, analyze_indirect_ref,
11149 strip_conversion, analyze_offset_expr, address_analysis,
11150 object_analysis, analyze_offset): Removed.
11151 (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
11152 split_constant_offset, canonicalize_base_object_address,
11153 object_address_invariant_in_loop_p, disjoint_objects_p,
11154 dr_may_alias_p, dr_address_invariant_p): New functions.
11155 (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
11156 and dr_analyze_alias.
11157 (initialize_data_dependence_relation): Use dr_may_alias_p
11158 and object_address_invariant_in_loop_p.
11159 (compute_self_dependence): Handle the case when
11160 DDR_ARE_DEPENDENT (ddr) is chrec_dont_know.
11161 (find_data_references_in_stmt): Restrict the analysis of data
11162 references to the given loop nest.
11163 (find_data_references_in_loop): Made static. Pass loop nest to
11164 find_data_references_in_stmt.
11165 (compute_data_dependences_for_loop): Use DR_VOPS.
11166 (free_data_ref): Free DR_VOPS.
11167 * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
11168 (struct innermost_loop_behavior): ... new.
11169 (struct base_object_info): Replaced by ...
11170 (struct indices): ... new.
11171 (struct dr_alias): New.
11172 (enum data_ref_type): Removed.
11173 (struct data_reference): Consist of struct innermost_loop_behavior,
11174 struct indices and struct dr_alias.
11175 (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
11176 (DR_MEMTAG): Renamed to ...
11177 (DR_SYMBOL_TAG): ... this.
11178 (find_data_references_in_loop): Declaration removed.
11179 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
11180 instead of DR_OFFSET_MISALIGNMENT. DR_ALIGNED_TO is never NULL.
11181 (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
11182 * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
11183
11184 2007-05-13 Revital Eres <eres@il.ibm.com>
11185
11186 * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
11187 which walks virtual def-use chains to find redundant stores.
11188 (dse_optimize_stmt): Call it.
11189
11190 2007-05-12 Steven Bosscher <steven@gcc.gnu.org>
11191
11192 * gcse.c (gcse_main): Do jump bypassing in CPROP2.
11193 * passes.c (init_optimization_passes): Move pass_jump_bypass
11194 after loop2.
11195
11196 * basic-block.h (bb_has_eh_pred): Fix style issue.
11197
11198 2007-05-12 Steven Bosscher <steven@gcc.gnu.org>
11199
11200 PR rtl-optimization/31848
11201 * loop-invariant.c (move_invariant_reg): If we move an insn
11202 with a REG_EQUAL note, and that insn is not always executed,
11203 remove the REG_EQUAL note.
11204
11205 2007-05-12 Richard Guenther <rguenther@suse.de>
11206
11207 PR tree-optimization/31797
11208 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
11209 propagate into a stmt that has volatile ops.
11210
11211 2007-05-12 Richard Sandiford <richard@codesourcery.com>
11212
11213 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
11214 (gcc_tooldir): Likewise.
11215 * configure: Regenerate.
11216 * Makefile.in (libsubdir_to_prefix): New variable, based on the
11217 old configure.ac gcc_tooldir setting.
11218 (prefix_to_exec_prefix): New variable.
11219 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
11220 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
11221
11222 2007-05-11 Silvius Rus <rus@google.com>
11223
11224 * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
11225 * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
11226 * c-common.h (strict_aliasing_warning): Change return type.
11227 * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
11228 * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
11229 (build_c_cast): Condition call to strict_aliasing_warning.
11230 * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
11231 * flags.h (set_Wstrict_aliasing): Declare.
11232 * opts.c (set_Wstrict_alising): Define, add call to.
11233 * tree-flow.h (strict_aliasing_warning_backend): Declare.
11234 * tree-ssa-alias-warnings.c: New file.
11235 * tree-ssa-alias.c (compute_may_aliases): Add call to
11236 strict_aliasing_warning_backend.
11237
11238 2007-05-11 Zdenek Dvorak <dvorakz@suse.cz>
11239
11240 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
11241 Use loop_depth and loop_outer accessor functions.
11242 * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
11243 determine_invariantness_stmt, move_computations_stmt): Ditto.
11244 * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
11245 add_loop, loopify, unloop, fix_loop_structure): Ditto.
11246 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
11247 * tree-scalar-evolution.c (interpret_loop_phi,
11248 compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
11249 instantiate_parameters_1, scev_const_prop): Ditto.
11250 * cfghooks.c (make_forwarder_block): Ditto.
11251 * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
11252 * modulo-sched.c (loop_canon_p): Ditto.
11253 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
11254 slpeel_can_duplicate_loop_p): Ditto.
11255 * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
11256 * tree-cfg.c (tree_duplicate_sese_region): Ditto.
11257 * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
11258 cancel_loop, verify_loop_structure): Ditto.
11259 (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
11260 add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
11261 superloops vector instead of "pred" array.
11262 (establish_preds): Take father loop as an argument. Initialize the
11263 superloops vector.
11264 (flow_loop_tree_node_add): Pass father loop to establish_preds.
11265 Do not initialize loop->outer.
11266 (flow_loop_tree_node_remove): Truncate the superloops vector.
11267 * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
11268 "pred" merged to "superloops" vector.
11269 (loop_depth, loop_outer): New.
11270 (fel_init): Use loop_outer.
11271
11272 2007-05-11 Jan Hubicka <jh@suse.cz>
11273
11274 * cgraphunit.c: Include gt-cgraphunit.h
11275 (static_ctors, static_dtors): New static vars.
11276 (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
11277 based on implementation in c-common.c
11278 (cgraph_finalize_function): Call record_cdtor_fn.
11279 (cgraph_optimize): Call cgraph_build_cdtor_fns.
11280 * decl.c (finish_function): Do not call c_record_cdtor_fn.
11281 (c_write_global_declarations): Do not call c_build_cdtor_fns.
11282 * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
11283 build_cdtor, c_build_cdtor_fns): Remove.
11284 * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
11285 c_build_cdtor_fns): Remove prototype.
11286
11287 2007-05-11 Paolo Carlini <pcarlini@suse.de>
11288
11289 PR other/31852
11290 * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
11291 * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
11292 * builtins.c (fold_builtin_memchr): New.
11293 (expand_builtin_memchr): Call the latter.
11294 (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
11295 * doc/extend.texi ([Other built-in functions provided by GCC]):
11296 Document memchr.
11297
11298 2007-05-11 Andreas Krebbel <krebbel1@de.ibm.com>
11299
11300 * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
11301 PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
11302 PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
11303 PFPO_OP1_TYPE_SHIFT): Constants added.
11304 (DFP_ALL): Mode macro defined.
11305 ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
11306 "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
11307 Insn definitions added.
11308 ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
11309 "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
11310 Expanders added.
11311
11312 2007-05-10 Zdenek Dvorak <dvorakz@suse.cz>
11313
11314 PR tree-optimization/31885
11315 * tree-chrec.c (chrec_contains_undetermined): Do not consider
11316 NULL_TREE to be undetermined.
11317 (automatically_generated_chrec_p): Return false for NULL.
11318
11319 2007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
11320
11321 * config/bfin/bfin.h (MOVE_RATIO): Define.
11322
11323 2007-05-10 Richard Sandiford <richard@codesourcery.com>
11324
11325 * config.gcc (sparc-wrs-vxworks): New target.
11326 * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
11327 * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
11328 * config/sparc/sparc.h: Include vxworks-dummy.h.
11329 (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
11330 include LABEL_REFs too.
11331 * config/sparc/sparc.c (sparc_expand_move): Don't assume that
11332 _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
11333 VxWorks.
11334 (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
11335 on VxWorks.
11336 (load_pic_register): Use gen_vxworks_load_got for VxWorks.
11337 (sparc_emit_call_insn): New function.
11338 (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
11339 functions when generating VxWorks PIC.
11340 * config/sparc/sparc.md (vxworks_load_got): New pattern.
11341 (call, call_value): Use sparc_emit_call_insn instead of
11342 emit_call_insn.
11343
11344 2007-05-09 Bob Wilson <bob.wilson@acm.org>
11345
11346 * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
11347
11348 2007-05-09 Bob Wilson <bob.wilson@acm.org>
11349
11350 * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
11351 for floating-point values if HOST_BITS_PER_LONG > 32. Use
11352 split_double instead of operand_subword.
11353
11354 2007-05-08 Bernd Schmidt <bernd.schmidt@analog.com>
11355
11356 * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
11357 * config/bfin/bfin.c (bfin_local_alignment): New function.
11358 * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
11359
11360 2007-05-08 Chao-ying Fu <fu@mips.com>
11361
11362 * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
11363 * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
11364 (smsub_widen_optab, umsub_widen_optab): Define.
11365 * optabs.c (init_optabs): Initialize smsub_widen_optab and
11366 umsub_widen_optab.
11367 * genopinit.c (optabs): Fill in smsub_widen_optab and
11368 umsub_widen_optab.
11369 * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
11370 and umsub_widen_optab to implement multiply-subtract sequences.
11371 * config/mips/mips.md (*msac<u>_di): Rename to...
11372 (<u>msubsidi4): ...this. Extend condition to include
11373 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
11374 of operand 0 to "ka" and use the three-operand form of msub<u>
11375 for TARGET_DSPR2.
11376 * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
11377 to define_expands.
11378
11379 2007-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
11380
11381 PR rtl-optimization/28011
11382 * reload.c (push_reload): Set dont_share if IN appears in OUT
11383 also when IN is a PLUS rtx.
11384 (reg_overlap_mentioned_for_reload_p): Return true if X and IN
11385 are same PLUS rtx.
11386
11387 2007-05-08 Kazu Hirata <kazu@codesourcery.com>
11388
11389 * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL. Don't
11390 call unshare_all_decls.
11391 (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
11392 (unshare_all_decls): Remove.
11393
11394 2007-05-08 Simon Martin <simartin@users.sourceforge.net>
11395
11396 PR 31847
11397 * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
11398 dumps.
11399
11400 2007-05-08 Sandra Loosemore <sandra@codesourcery.com>
11401 Nigel Stephens <nigel@mips.com>
11402
11403 * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
11404 Update comments and all uses.
11405 (MIN_FPRS_PER_FMT): Define.
11406 * config/mips/mips.c (function_arg): Fix to correctly handle
11407 the -mips32r2 -mfp64 -mabi=32 case.
11408 (override_options): Enable use of odd-numbered registers for
11409 SFmode values on MIPS32.
11410 (mips_save_reg_p): Save whole floating-point register pair if
11411 either half is used.
11412 (compute_frame_size): Fix comment.
11413
11414 2007-05-08 Jie Zhang <jie.zhang@analog.com>
11415
11416 * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
11417 argument of type bool.
11418 * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
11419 argument. Safely select temporary P register according to it.
11420 (do_link): Change call site of add_to_reg accordingly.
11421 (do_unlink): Add epilogue_p as a fourth argument and pass it
11422 to add_to_reg.
11423 (expand_interrupt_handler_epilogue): Change call of do_unlink
11424 accordingly.
11425 (bfin_expand_prologue): Add a third argument sibcall_p.
11426 * config/bfin/bfin.md (epilogue): Change call of
11427 bfin_expand_epilogue accordingly.
11428 (sibcall_epilogue): Likewise.
11429 (eh_return_internal): Likewise.
11430
11431 * config/bfin/bfin-protos.h (enum bfin_cpu): Add
11432 BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
11433 * config/bfin/bfin.c (bfin_handle_option): Handle
11434 -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
11435 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
11436 Support bf534, bf536 and bf561.
11437 * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
11438
11439 2007-05-08 Uros Bizjak <ubizjak@gmail.com>
11440
11441 PR target/31854
11442 * config/i386/i386.c (ix86_function_regparm): Process local
11443 functions only when TREE_CODE (decl) equals FUNCTION_DECL.
11444
11445 2007-05-07 Mike Stump <mrs@apple.com>
11446
11447 * doc/invoke.texi (Warning Options): Document that -Wempty-body
11448 also checks for and while statements in C++.
11449
11450 2007-05-07 Nathan Froyd <froydnj@codesourcery.com>
11451
11452 * gcc.c (at_file_supplied): New variable.
11453 (main): Set it if we expanded argv.
11454 (do_spec_1): Pass an @-file to the linker if we were called with
11455 an @-file argument and HAVE_GNU_LD.
11456 * collect2.c (at_file_supplied): New variable.
11457 (response_file): New variable.
11458 (collect_exit): Unlink response_file if necessary.
11459 (handler): Likewise.
11460 (do_wait): Likewise.
11461 (main): Set at_file_supplied if we expanded argv.
11462 (collect_execute): Pass an @-file to subprocesses if we were called
11463 with an @-file argument.
11464 * configure.ac: Add define for HAVE_GNU_LD.
11465 * configure: Regenerate.
11466 * config.in: Regenerate.
11467
11468 2007-05-07 Naveen.H.S <naveen.hs@kpitcummins.com>
11469
11470 * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
11471 operand to HI mode.
11472 (mulsi3): New.
11473 (divsi3): New.
11474 (udivsi3): New.
11475
11476 2007-05-07 Jayant Sonar <jayants@kpitcummins.com>
11477
11478 * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
11479 (TARGET_ENCODE_SECTION_INFO): Re-define.
11480 (m32c_encode_section_info): New
11481 (function_vector_handler): New
11482 (current_function_special_page_vector): New
11483 (m32c_special_page_vector_p): New.
11484 * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
11485 Prototype.
11486 * config/m32c/jump.md: Added instruction JSRS for functions
11487 with attribute "function_vector".
11488 * doc/extend.texi (function_vector): Added description
11489 for M16C, M32C targets.
11490
11491 2007-05-07 DJ Delorie <dj@redhat.com>
11492
11493 PR 31794
11494 * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
11495 ashrpsi3, lshrpsi3): Update shift count constraint.
11496
11497 2007-05-07 Danny Smith <dannysmith@users.sourceforge.net>
11498 Nathan Froyd <froydnj@codesourcery.com>
11499
11500 PR 22133
11501 * c-incpath.c (add_path): Strip trailing path separators.
11502
11503 2007-05-07 Eric Botcazou <ebotcazou@adacore.com>
11504
11505 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
11506 Free dominance info before purging EH edges.
11507 (eliminate_degenerate_phis): Likewise.
11508 (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
11509
11510 2007-05-07 Jan Hubicka <jh@suse.cz>
11511
11512 * gimplify.c (gimplify_expr): Do not crash when folding
11513 (void *)(int)&a + 4.
11514
11515 2007-05-07 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11516
11517 PR driver/31694
11518 * c-opts.c (lang_fortran): Make it non static.
11519 * c-common.h (lang_fortran): New prototype.
11520 * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
11521 -lang-fortran option was passed by the driver.
11522
11523 2007-05-06 Eric Botcazou <ebotcazou@adacore.com>
11524
11525 * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
11526 of ASSERT_CHECKING. Tweak message.
11527
11528 2007-05-06 Revital Eres <eres@il.ibm.com>
11529
11530 PR 30957
11531 * loop-unroll.c (insert_var_expansion_initialization):
11532 Initialize the expansions with -zero instead of +zero.
11533
11534 2007-05-05 Aurelien Jarno <aurelien@aurel32.net>
11535
11536 * config/pa/pa.md: Split tgd_load, tld_load and tie_load
11537 into pic and non-pic versions. Mark r19 as used for
11538 tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
11539 for tgd_load, tld_load and tie_load .
11540 * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
11541 version of tgd_load, tld_load and tie_load depending on the
11542 value of flag_pic.
11543
11544 2007-05-04 Ulrich Drepper <drepper@redhat.com>
11545 Jakub Jelinek <jakub@redhat.com>
11546
11547 * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
11548 (__do_global_dtors_aux): Use more paranoid loop to run
11549 destructors if HIDDEN_DTOR_LIST_END.
11550 (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
11551
11552 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11553
11554 * varasm.c (align_variable): Don't increase alignment for
11555 DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
11556 DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
11557
11558 2007-05-04 Josh Conner <jconner@apple.com>
11559
11560 * basic-block.h (cdi_direction): Assign values to all enumeration
11561 constants.
11562 (dom_computed): Remove.
11563 (dom_info_state): New.
11564 (set_dom_info_availability): New.
11565 * tree-ssa-loop-im.c (determine_invariantness): Initialize
11566 walk_data.dom_direction.
11567 * cfghooks.c (delete_basic_block): Use dom_info_available_p()
11568 instead of dom_computed[].
11569 (split_edge): Likewise.
11570 (create_basic_block): Likewise.
11571 (merge_blocks): Likewise.
11572 * ifcvt.c (find_if_header): Likewise.
11573 * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
11574 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
11575 * tree-ssa.c (verify_ssa): Likewise.
11576 * tree-cfg.c (tree_verify_flow_info): Likewise.
11577 (remove_edge_and_dominated_blocks): Likewise.
11578 * dominance.c (dom_computed): Make static.
11579 (calc_dfs_tree_nonrec): Change third param to a bool.
11580 (calc_dfs_tree): Change second param to a bool.
11581 (calc_idioms): Change second param to a bool. Use
11582 dom_convert_dir_to_idx.
11583 (init_dom_info): Validate dir before using.
11584 (dom_convert_dir_to_idx): New.
11585 (calculate_dominance_info): Use dom_convert_dir_to_idx. New
11586 variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
11587 (free_dominance_info): Use dom_convert_dir_to_idx.
11588 (get_immediate_dominator): Likewise.
11589 (set_immediate_dominator): Likewise.
11590 (get_dominated_by): Likewise.
11591 (redirect_immediate_dominators): Likewise.
11592 (nearest_common_denominator): Likewise.
11593 (dominated_by_p): Likewise.
11594 (bb_dom_dfs_in): Likewise.
11595 (bb_dom_dfs_out): Likewise.
11596 (recount_dominator): Likewise.
11597 (iterate_fix_dominators): Likewise.
11598 (add_to_dominance_info): Likewise.
11599 (delete_from_dominance_info): Likewise.
11600 (first_dom_son): Likewise.
11601 (next_dom_son): Likewise.
11602 (dom_info_available_p): Likewise.
11603 (dom_info_state): New.
11604 (set_dom_info_availability): New.
11605
11606 2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
11607
11608 * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
11609 Expander removed.
11610 ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
11611
11612 2007-05-04 Bob Wilson <bob.wilson@acm.org>
11613
11614 * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
11615 (subdi3, subdi_carry): Delete.
11616
11617 2007-05-04 Jan Hubicka <jh@suse.cz>
11618 Richard Guenther <rguenther@suse.de>
11619
11620 * opts.c (decode_options): Do not fiddle with inlining
11621 parameters in case of optimizing for size.
11622 * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
11623 for size do nothing.
11624 (cgraph_decide_inlining_of_small_function): When optimizing for
11625 size never inline functions increasing caller size.
11626 (cgraph_early_inlining): Inline for size when optimizing for size.
11627
11628 2007-05-04 Bernd Schmidt <bernd.schmidt@analog.com>
11629
11630 * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
11631 logical operations piecewise.
11632 (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
11633 zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
11634 subdi_sesidi_di): Delete.
11635 (add_with_carry): Produce carry in CC instead of a DREG to shorten
11636 the generated sequence. Allow three-reg add in constraints. Rewrite
11637 the rtl expression for carry to avoid zero_extend of a constant.
11638 (sub_with_carry): New pattern.
11639 (adddi3, subdi3): Change into define_expand. For subtract, generate a
11640 different sequence not involving jumps.
11641 (notbi): Now a named pattern.
11642
11643 2007-05-04 Bradley Lucier <lucier@math.purdue.edu>
11644
11645 * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
11646 Add the note about a significant loss of accuracy of some
11647 mathematical routines when these options are used.
11648
11649 2007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
11650
11651 * haifa-sched.c (rtx_vec_t): New typedef.
11652 (contributes_to_priority_p): Extract piece of priority () into new
11653 static function.
11654 (priority): Use the function. Add assertion.
11655 (rank_for_schedule, set_priorities): Add assertion to check that
11656 insn's priority is initialized.
11657 (clear_priorities, calc_priorities): Change signature. Make it update
11658 all relevant insns. Update all callers ('add_to_speculative_block ()'
11659 and 'create_block_check_twin ()').
11660 * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
11661 Add new field 'priority_status'.
11662 (INSN_PRIORITY_STATUS): New macro.
11663 (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
11664
11665 2007-05-04 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
11666
11667 * sched-ebb.c (debug_ebb_dependencies): New static function.
11668 (init_ready_list): Use it.
11669
11670 * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
11671 with changed signature and 'debug_rgn_dependencies ()'.
11672 (debug_rgn_dependencies): New static function.
11673 (init_ready_list): Use it.
11674
11675 * sched-int.h (debug_dependencies): Declare.
11676
11677 2007-05-04 Andreas Krebbel <krebbel1@de.ibm.com>
11678
11679 * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
11680
11681 2007-05-04 Dirk Mueller <dmueller@suse.de>
11682
11683 * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
11684
11685 2007-05-03 Jan Hubicka <jh@suse.cz>
11686
11687 * fold-const.c (fold_unary): Convert (T1)(X op Y) into
11688 ((T1)X op (T1)Y), for pointer type in more cases than before.
11689
11690 * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
11691
11692 * tree-object-size.c (plus_expr_object_size): When operand size is
11693 unknown, return unknown.
11694
11695 2007-05-03 Dirk Mueller <dmueller@suse.de>
11696
11697 * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
11698
11699 * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
11700 options.
11701
11702 * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
11703
11704 2007-05-03 Janis Johnson <janis187@us.ibm.com>
11705
11706 * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
11707
11708 2007-05-03 Joseph Myers <joseph@codesourcery.com>
11709
11710 * config/soft-fp/double.h, config/soft-fp/extended.h,
11711 config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
11712 config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
11713 config/soft-fp/op-2.h, config/soft-fp/op-4.h,
11714 config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
11715 glibc CVS.
11716
11717 2007-05-03 Ian Lance Taylor <iant@google.com>
11718
11719 * config/rs6000/rs6000.c (rs6000_override_options): Don't set
11720 MASK_PPC_GFXOPT for 8540 or 8548.
11721
11722 2007-05-03 Uros Bizjak <ubizjak@gmail.com>
11723
11724 * tree-vect-transform.c (vect_update_inits_of_drs): Use
11725 vect_print_dump_info() to output debug information.
11726
11727 2007-05-03 Uros Bizjak <ubizjak@gmail.com>
11728
11729 PR target/31768
11730 * config/i386/i386.c (print_operand) ['z']: Output 'w' for
11731 operands of size 2 when operand is not MEM_P.
11732
11733 2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
11734
11735 PR tree-optimization/30565
11736 * lambda-code.c (perfect_nestify): Fix updating of dominators.
11737
11738 2007-05-03 Bernd Schmidt <bernd.schmidt@analog.com>
11739
11740 * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
11741 (umulsi3_highpart): Use them.
11742 * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
11743 for final accumulator to D regisster tranfser.
11744
11745 2007-05-03 Dorit Nuzman <dorit@il.ibm.com>
11746
11747 PR tree-optimization/31699
11748 * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove
11749 wrong code.
11750 (vect_enhance_data_refs_alignment): Compute peel amount using
11751 TYPE_VECTOR_SUBPARTS instead of vf.
11752 * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
11753
11754 2007-05-02 Brooks Moses <brooks.moses@codesourcery.com>
11755
11756 PR bootstrap/31776
11757 * system.h: Remove inclusion of double-int.h
11758 * tree.h: Include double-int.h
11759 * gengtype.c: Likewise
11760 * cfgloop.h: Likewise
11761 * Makefile.in: Adjust dependencies on double-int.h
11762
11763 2007-05-02 Eric Christopher <echristo@apple.com>
11764
11765 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
11766 -shared to -Zdynamiclib.
11767
11768 2007-05-02 Seongbae Park <seongbae.park@gmail.com>
11769
11770 PR c++/31663
11771 * c-common.c (strip_pointer_or_array_types): New function.
11772 * c-common.h (strip_pointer_or_array_types): New function declaration.
11773
11774 2007-05-03 Zdenek Dvorak <dvorakz@suse.cz>
11775
11776 PR tree-optimization/31771
11777 * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
11778
11779 2007-05-02 Paul Brook <paul@codesourcery.com>
11780
11781 * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
11782
11783 2007-05-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
11784
11785 PR middle-end/29715
11786 * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
11787 transformation.
11788
11789 2007-05-02 Nick Clifton <nickc@redhat.com>
11790
11791 * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
11792
11793 2007-05-02 Richard Guenther <rguenther@suse.de>
11794
11795 PR tree-optimization/31146
11796 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
11797 argument, single_use_p. If we have a single use that is
11798 a conversion to the definition rhs type, propagate that rhs.
11799 (forward_propagate_addr_expr): Pass single_use_p argument
11800 to forward_propagate_addr_expr_1.
11801
11802 2007-05-01 H.J. Lu <hongjiu.lu@intel.com>
11803
11804 * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
11805 variable.
11806
11807 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
11808
11809 * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
11810 'AMD Family 10 core'.
11811
11812 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
11813
11814 * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
11815 and athlon64-sse3 as improved versions of k8, opteron and athlon64
11816 with SSE3 instruction set support.
11817 * doc/invoke.texi: Likewise.
11818
11819 2007-05-01 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
11820
11821 * config/i386/i386.c (override_options): Tuning 32-byte loop
11822 alignment for amdfam10 architecture. Increasing the max loop
11823 alignment to 24 bytes.
11824
11825 2007-05-01 Kazu Hirata <kazu@codesourcery.com>
11826
11827 * config/m68k/constraints.md: New.
11828 * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
11829 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
11830 EXTRA_CONSTRAINT): Remove.
11831 * config/m68k/m68k.md: Include constraints.md.
11832 * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
11833
11834 2007-05-01 Ian Lance Taylor <iant@google.com>
11835
11836 PR tree-optimization/31739
11837 * tree-vrp.c (vrp_val_is_max): New static function.
11838 (vrp_val_is_min): New static function.
11839 (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
11840 copying the node.
11841 (set_value_range): Use vrp_val_is_{max,min}.
11842 (extract_range_from_assert): Likewise.
11843 (extract_range_from_binary_expr): Likewise.
11844 (extract_range_from_unary_expr): Likewise.
11845 (dump_value_range, vrp_meet): Likewise.
11846 (vrp_visit_phi_node): Likewise.
11847 * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
11848
11849 2007-05-01 Mark Mitchell <mark@codesourcery.com>
11850
11851 * config/i386/gmon-sol2.c (size_t): New type.
11852 (intptr_t): Likewise.
11853 (s_textsize): Declare as size_t.
11854 (sbrk): Declare.
11855 (monstartup): Use size_t for sizes.
11856 (_mcount): Save and restore registers.
11857 (internal_mcount): Pass 0 as the first argument to monstartup
11858 in 64-bit mode.
11859 (moncontrol): Convert pointer to appropriately sized integer
11860 before passing to profil.
11861
11862 2007-05-01 Joseph Myers <joseph@codesourcery.com>
11863
11864 * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
11865 __NO_FPRS__, not just if _SOFT_DOUBLE.
11866 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
11867 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
11868 also for E500 double.
11869 * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
11870 suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
11871 && !TARGET_FPRS).
11872
11873 2007-05-01 Richard Guenther <rguenther@suse.de>
11874
11875 * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
11876 is NULL.
11877
11878 2007-05-01 Joseph Myers <joseph@codesourcery.com>
11879
11880 * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
11881
11882 2007-05-01 Jan Hubicka <jh@suse.cz>
11883
11884 * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
11885 invariant.
11886
11887 2007-05-01 Jan Hubicka <jh@suse.cz>
11888
11889 * tree.h (maybe_fold_offset_to_component_ref): Remove.
11890 (maybe_fold_offset_to_reference): Declare.
11891 * fold-const.c (fold_unary): Do not fold
11892 (type *)&A into &A->field_of_type_and_offset_0
11893 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
11894 size is unknown, give up.
11895 (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
11896 offsets.
11897 (maybe_fold_offset_to_reference): New.
11898 (maybe_fold_stmt_indirect): Use it.
11899 (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
11900 * gimplify.c (gimplify_conversion): Canonicalize conversions to
11901 field references.
11902 (gimplify_expr): Likewise for plus_expr.
11903
11904 2007-05-01 Zdenek Dvorak <dvorakz@suse.cz>
11905
11906 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
11907 bsi_after_labels. Always insert statements before bsi.
11908 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
11909 * predict.c (apply_return_prediction): Check for empty blocks.
11910 * cfgexpand.c (lab_rtx_for_bb): New variable.
11911 (label_rtx_for_bb): Do not create new tree labels.
11912 (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
11913 (tree_expand_cfg): Initialize lab_rtx_for_bb.
11914 * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
11915 creating edges.
11916 (label_for_bb): Add field used.
11917 (update_eh_label, main_block_label): Mark the label used.
11918 (cleanup_dead_labels): Remove unused labels.
11919
11920 2007-05-01 Richard Guenther <rguenther@suse.de>
11921
11922 * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
11923 if it is not about to be set.
11924 (get_value_range): Do not pre-allocate equiv bitmap.
11925 (update_value_range): No need to clear equiv field.
11926 (add_equivalence): Change prototype to get bitmap pointer.
11927 Allocate bitmap here if it is not already.
11928 (extract_range_from_assert): Do not allocate bitmap here.
11929 Update callers to add_equivalence.
11930 (extract_range_from_ssa_name): Likewise.
11931 (get_vr_for_comparison): New static helper.
11932 (compare_name_with_value): Handle NULL equiv bitmap by
11933 peeling the first iteration of the comparison loop.
11934 Use get_vr_for_comparison.
11935 (compare_names): Handle NULL equiv bitmaps by using fake
11936 ones. Use get_vr_for_comparison.
11937
11938 2007-04-30 Brooks Moses <brooks.moses@codesourcery.com>
11939
11940 * double-int.c (mpz_set_double_int): Moved from
11941 tree-ssa-loop-niter.c.
11942 (mpz_get_double_int): Likewise; also, add option to wrap
11943 out-of-range integers.
11944 * double-int.h: New prototypes for above.
11945 * tree.c (get_static_type_bounds): Moved from
11946 tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
11947 TYPE_MAX_VALUE if they exist..
11948 * tree.h: New prototype for above.
11949 * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
11950 get_type_bounds calls.
11951 (mpz_set_double_int): Move to double-int.c.
11952 (get_type_bounds): Move to tree.c, rename to
11953 get_static_type_bounds.
11954 (mpz_to_double_int): Move to double-int.c, rename to
11955 mpz_get_double_int.
11956
11957 2007-04-30 Bob Wilson <bob.wilson@acm.org>
11958
11959 * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
11960 DIV0 exception can fall through to a normal return.
11961
11962 2007-04-30 Alexandre Oliva <aoliva@redhat.com>
11963
11964 PR middle-end/22156
11965 Temporarily revert:
11966 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
11967 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
11968 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
11969 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
11970 initialize align to silence bogus warning.
11971 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
11972 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
11973 all_no_warning.
11974 (struct sra_walk_fns): Remove use_all parameter from use.
11975 (sra_hash_tree): Handle BIT_FIELD_REFs.
11976 (sra_elt_hash): Don't hash bitfld blocks.
11977 (sra_elt_eq): Skip them in parent compares as well. Handle
11978 BIT_FIELD_REFs.
11979 (sra_walk_expr): Don't maintain or pass down use_all_p.
11980 (scan_use): Remove use_all parameter.
11981 (scalarize_use): Likewise. Re-expand assignment to
11982 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
11983 output, and re-scalarize after output. Don't mark anything
11984 for no warning.
11985 (scalarize_ldst): Adjust.
11986 (scalarize_walk_gimple_modify_statement): Likewise.
11987 (build_element_name_1): Handle BIT_FIELD_REFs.
11988 (instantiate_element): Don't warn for any element whose parent
11989 is used as a whole.
11990 (instantiate_missing_elements_1): Return the sra_elt.
11991 (canon_type_for_field): New.
11992 (try_instantiate_multiple_fields): New.
11993 (instantiate_missing_elemnts): Use them.
11994 (mark_no_warning): Removed.
11995 (generate_one_element_ref): Handle BIT_FIELD_REFs.
11996 (REPLDUP, sra_build_elt_assignment): New.
11997 (generate_copy_inout): Use them.
11998 (generate_element_copy): Likewise. Handle bitfld differences.
11999 (generate_element_zero): Don't recurse for blocks. Use
12000 sra_build_elt_assignment.
12001 (generate_one_element_int): Take elt instead of var. Use
12002 sra_build_elt_assignment.
12003 (generate_element_init_1): Adjust.
12004 (scalarize_use, scalarize_copy): Use REPLDUP.
12005 (scalarize_ldst): Move assert before dereference.
12006 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
12007
12008 2007-04-30 Andrew Pinski <andrew_pinski@playstation.sony.com>
12009
12010 PR C++/31721
12011 * tree.c (reconstruct_complex_type): Reconstruct a reference
12012 correctly.
12013 Also use the same mode for the pointer as the old pointer type.
12014
12015 2007-04-30 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12016
12017 * doc/trouble.texi (Interoperation): Remove note about Ultrix
12018 Fortran compiler.
12019
12020 2007-04-29 Zdenek Dvorak <dvorakz@suse.cz>
12021
12022 PR rtl-optimization/31676
12023 * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
12024 (df_refs_record): Call it.
12025
12026 2007-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
12027
12028 * rtl.def (SS_ABS): New code.
12029 * config/bfin/bfin.c (print_operand): New modifier 'v'.
12030 (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
12031 BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
12032 BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
12033 (bfin_init_builtins): Define them.
12034 (bdesc_1arg, bdesc_2arg): Add some of them here, ...
12035 (bfin_expand_builtin): ... and handle the others here.
12036 * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
12037 flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
12038 (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
12039 (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
12040 operand is only HImode.
12041
12042 2007-04-29 Steven Bosscher <steven@gcc.gnu.org>
12043
12044 * regclass.c (scan_one_insn): Remove splitting of
12045 two address insns.
12046
12047 2007-04-28 Sandra Loosemore <sandra@codesourcery.com>
12048 Nigel Stephens <nigel@mips.com>
12049
12050 * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
12051
12052 2007-04-28 Jan Hubicka <jh@suse.cz>
12053
12054 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
12055 insn_locators_alloc instead of insn_locators_initialize;
12056 call reset_block_changes.
12057 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12058 * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
12059 * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
12060 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12061 * config/score/score.c (th_output_mi_thunk): Likewise.
12062 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12063 * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
12064 tolerate uninitialized locator info.
12065
12066 Re-apply:
12067 * function.c (init_function_start): Don't init line number info.
12068 (expand_function_end): Update.
12069 (reset_block_changes, record_block_change, finalize_block_changes,
12070 check_block_change, free_block_changes): Kill.
12071 * function.h (reset_block_changes, record_block_change,
12072 finalize_block_changes, check_block_change, free_block_changes):
12073 Remove prototypes.
12074 (struct function): Remove ib_boundaries_block.
12075 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
12076 Use curr_insn_locator to initialize locator.
12077 (emit_line_note): Remove.
12078 * cfgexpand.c (expand_gimple_cond_expr): Update.
12079 (construct_exit_block): Likewise.
12080 (tree_expand_cfg): Initialize/finalize locators.
12081 * expr.c (expand_expr_real): Update.
12082 * cfglayout.c (line_locators_locs, line_locators_lines,
12083 file_locators_locs, file_locators_files): Remove.
12084 (set_block_levels): Move to cfgexpand.c.
12085 (insn_locators_initialize): Remove.
12086 (pass_insn_locators_initialize): Remove.
12087 (locations_locators_locs, locations_locators_vals): New static vars.
12088 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
12089 Likewise.
12090 (insn_locators_alloc, insn_locators_finalize,
12091 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
12092 New functions.
12093 (locator_location): New.
12094 (locator_line, locator_file): Rewrite.
12095 * rtl.h (emit_line_note): Kill.
12096 (insn_locators_alloc, insn_locators_finalize,
12097 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
12098 Declare.
12099 * tree-inline.c (initialize_cfun): Do not initialize
12100 ib_boundaries_block.
12101 * passes.c (pass_insn_locators_initialize): Remove.
12102
12103 2007-04-28 Zdenek Dvorak <dvorakz@suse.cz>
12104
12105 * tree-cfg.c (move_block_to_fn): Release bb from dominance
12106 info. Update last_basic_block correctly.
12107
12108 2007-04-27 Kaz Kojima <kkojima@gcc.gnu.org>
12109
12110 PR target/31701
12111 * config/sh/sh.c (output_stack_adjust): Avoid using the frame
12112 register itself to hold the offset constant. Tell flow the use
12113 of r4 and r5 when they are used.
12114
12115 2007-04-27 Richard Guenther <rguenther@suse.de>
12116
12117 * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
12118 if we simplified anything.
12119 (tree_ssa_forward_propagate_single_use_vars): Defer overflow
12120 warnings until we did a simplification and the stmt was not
12121 marked as TREE_NO_WARNING.
12122
12123 2007-04-27 Mike Stump <mrs@apple.com>
12124
12125 * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
12126
12127 2007-04-27 Ian Lance Taylor <iant@google.com>
12128
12129 PR middle-end/31710
12130 * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
12131 TYPE_MAX_VALUE exist, convert them to the new type.
12132
12133 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
12134
12135 * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
12136 if it claims to be available.
12137 * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
12138 edge is redirected.
12139 (perform_tree_ssa_dce): Always free postdominators.
12140
12141 2007-04-27 Richard Henderson <rth@redhat.com>
12142
12143 * config/alpha/predicates.md (aligned_memory_operand): Mark
12144 as define_special_predicate.
12145 (unaligned_memory_operand, normal_memory_operand): Likewise.
12146 (reg_or_unaligned_mem_operand): Remove.
12147 (any_memory_operand): Match the documentation and check for
12148 non-renumbered pseudos during reload.
12149 * config/alpha/alpha.c (alpha_secondary_reload): Rename from
12150 alpha_secondary_reload_class, update to new interface, make static.
12151 Handle CQImode like HImode. Remove FP subreg check.
12152 (alpha_expand_mov): Use replace_equiv_address.
12153 (alpha_expand_mov_nobwx): Use any_memory_operand.
12154 (TARGET_SECONDARY_RELOAD): New.
12155 * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
12156 (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
12157 * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
12158 * config/alpha/alpha.md: ... here.
12159 (RELOAD12, reloadmode): New.
12160 (movcqi): New.
12161 (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
12162 Don't handle the aligned case here.
12163 (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
12164 (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
12165 reload_inhi_help. Don't expect a scratch register.
12166 (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
12167 reload_outhi_help.
12168 * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
12169
12170 2007-04-27 Richard Guenther <rguenther@suse.de>
12171
12172 * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
12173
12174 2007-04-27 Richard Guenther <rguenther@suse.de>
12175
12176 PR tree-optimization/30965
12177 PR tree-optimization/30978
12178 * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
12179 * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
12180 (find_equivalent_equality_comparison): Likewise.
12181 (simplify_cond): Likewise.
12182 (get_prop_source_stmt): New helper.
12183 (get_prop_dest_stmt): Likewise.
12184 (can_propagate_from): Likewise.
12185 (remove_prop_source_from_use): Likewise.
12186 (combine_cond_expr_cond): Likewise.
12187 (forward_propagate_comparison): New function.
12188 (forward_propagate_into_cond): Rewrite to use fold for
12189 tree combining.
12190 (tree_ssa_forward_propagate_single_use_vars): Call
12191 forward_propagate_comparison to propagate comparisons.
12192
12193 2007-04-27 Richard Guenther <rguenther@suse.de>
12194
12195 PR tree-optimization/31715
12196 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
12197 sure to do computation on the offset in an appropriate
12198 signed type.
12199
12200 2007-04-27 Richard Sandiford <richard@codesourcery.com>
12201
12202 * reload.h (elimination_target_reg_p): Declare.
12203 * reload.c (find_reloads): Don't apply the reg_rtx move
12204 optimization if the SET_DEST satisfies elimination_target_reg_p.
12205 * reload1.c (elimination_target_reg_p): New function.
12206 (gen_reload): In the move/add2 fallback, make sure that op0
12207 does not overlap the destination register.
12208
12209 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
12210
12211 * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
12212 transform only GIMPLE_MODIFY_STMTs.
12213 * tree-complex.c (expand_complex_operations_1): Ditto.
12214 (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
12215 * tree-ssa-loop-manip.c (build_if_stmt): Removed.
12216 (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
12217 branches.
12218 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
12219 tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
12220 * omp-low.c (expand_parallel_call, expand_omp_for_generic,
12221 expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
12222 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
12223 slpeel_add_loop_guard): Ditto.
12224 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
12225 * lambda-code.c (perfect_nestify): Ditto.
12226 * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
12227 before the first statement.
12228 * tree-optimize.c (execute_free_datastructures): Fix comments.
12229 (execute_free_cfg_annotations): Do not call disband_implicit_edges.
12230 * tree-flow.h (disband_implicit_edges): Declaration removed.
12231 * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
12232 branches.
12233 (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle
12234 COND_EXPRs without gotos.
12235 (disband_implicit_edges, has_label_p): Removed.
12236 (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
12237 (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
12238 branches.
12239 * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
12240 side effects.
12241 * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
12242 also for COND_EXPRs.
12243 * cfgexpand.c (label_rtx_for_bb): New function.
12244 (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
12245 Use label_rtx_for_bb to find the labels.
12246 (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
12247 last block. Detect fallthru edges.
12248
12249 2007-04-26 Ian Lance Taylor <iant@google.com>
12250
12251 PR target/28675
12252 * reload.c (find_reloads_subreg_address): If the address was valid
12253 in the original mode but not in the new mode, reload the whole
12254 address.
12255
12256 2007-04-27 Zdenek Dvorak <dvorakz@suse.cz>
12257
12258 * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
12259 (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
12260 (cleanup_control_expr_graph): Do not invalidate dominance info.
12261 Record altered blocks.
12262 (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
12263 (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
12264 cleanup_tree_cfg_bb): New functions.
12265 (remove_forwarder_block): Do not maintain the worklist of blocks.
12266 Record altered blocks.
12267 (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
12268 not over whole cfg.
12269 (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1. Only call
12270 delete_unreachable_blocks if dominators are not available.
12271 * tree-inline.c (optimize_inline_calls): Free dominance information
12272 earlier.
12273 * tree-flow.h (remove_edge_and_dominated_blocks,
12274 cfgcleanup_altered_bbs): Altered.
12275 * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
12276 blocks.
12277 (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
12278 functions.
12279 (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
12280 do not invalidate dominators.
12281
12282 2007-04-26 Anatoly Sokolov <aesok@post.ru>
12283
12284 * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
12285 ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
12286 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
12287 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
12288
12289 2007-04-26 Steve Ellcey <sje@cup.hp.com>
12290
12291 * config/ia64/ia64.md (ip_value): Fix itanium_class attribute.
12292
12293 2007-04-26 Richard Guenther <rguenther@suse.de>
12294
12295 PR tree-optimization/31703
12296 * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
12297 the right type for the target of the bittest.
12298
12299 2007-04-26 Richard Sandiford <richard@codesourcery.com>
12300
12301 * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
12302 ix86_sol10_return_in_memory.
12303
12304 2007-04-26 Richard Sandiford <richard@codesourcery.com>
12305
12306 * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
12307 variables.
12308
12309 2007-04-26 Jakub Jelinek <jakub@redhat.com>
12310
12311 PR c++/31598
12312 * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
12313
12314 PR tree-optimization/30558
12315 * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
12316 clear this_state.prev_try.
12317
12318 2007-04-26 Richard Sandiford <richard@codesourcery.com>
12319 Mark Mitchell <mark@codesourcery.com>
12320
12321 * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
12322 * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
12323 * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
12324
12325 2007-04-26 Richard Sandiford <richard@codesourcery.com>
12326
12327 PR driver/31107
12328 * doc/invoke.texi (%:print-asm-header): Document.
12329 * gcc.c (asm_options): Use %:print-asm-header() for --target-help
12330 and -ftarget-help.
12331 (static_spec_functions): Add print-asm-header.
12332 (main): Print a banner before the --target-help linker options.
12333 (print_asm_header_spec_function): New function.
12334
12335 2007-04-25 Kaz Kojima <kkojima@gcc.gnu.org>
12336
12337 PR target/31403
12338 * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
12339 (movsf_ie): Likewise.
12340
12341 2007-04-25 Paolo Carlini <pcarlini@suse.de>
12342
12343 * doc/extend.texi ([Type Traits]): Adjust per N2255.
12344
12345 2007-04-25 Bob Wilson <bob.wilson@acm.org>
12346
12347 * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an
12348 exception for divide-by-zero.
12349 (__umodsi3, __modsi3): Likewise.
12350
12351 2007-04-25 Dirk Mueller <dmueller@suse.de>
12352
12353 * c-typeck.c (build_compound_expr): Annotate warning()
12354 call with OPT_Wunused_value.
12355 * tree-ssa.c (warn_uninit): Annotate warning with
12356 OPT_Wunintialized.
12357 * c-common.c (handle_sentinel_attribute): Annotate warning
12358 call with OPT_Wattributes.
12359
12360 2007-04-25 Thiemo Seufer <ths@mips.com>
12361
12362 * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
12363 (mips16): Fix typo.
12364 * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
12365 on to the assembler. Improve handling of -mno-mips16. Add handling
12366 of -mno-mips3d, -mno-dsp, -mno-dspr2.
12367 * doc/invoke.texi (MIPS Options): Whitespace cleanup. Fix wrong use
12368 of @itemx. Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
12369 -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
12370
12371 2007-04-25 Danny Smith <dannysmith.users.sourceforge.net>
12372
12373 PR target/31680
12374 * config/i386/winnt.c (i386_pe_file_end): Strip only
12375 USER_LABEL_PREFIX when writing export name.
12376
12377 2007-04-25 Richard Sandiford <richard@codesourcery.com>
12378
12379 * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h. Include
12380 sh/elf.h, vx-common.h and vxworks.h.
12381 * config/sh/sh.h: Include config/vxworks-dummy.h.
12382 (SUBTARGET_OVERRIDE_OPTIONS): Define.
12383 (OVERRIDE_OPTIONS): Use it.
12384 * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
12385 (vxworks_picreg): New pattern.
12386 * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
12387 VXWORKS_OS_CPP_BUILTINS.
12388 (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
12389 to their VXWORKS_* equivalents.
12390 (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
12391 (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
12392 * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
12393 (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
12394 * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
12395 -mrtp/-fPIC multilibs.
12396 (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
12397 (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
12398 (MULTILIB_OSDIRNAMES): Delete.
12399
12400 2007-04-25 Anatoly Sokolov <aesok@post.ru>
12401
12402 PR target/18989
12403 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
12404
12405 2007-04-24 Brooks Moses <brooks.moses@codesourcery.com>
12406
12407 * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
12408 rounding mode to be specified by the caller.
12409 (real_to_mpfr) Likewise.
12410 * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
12411 include new arguments.
12412 * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
12413
12414 2007-04-24 Ian Lance Taylor <iant@google.com>
12415
12416 PR tree-optimization/31605
12417 * tree-vrp.c (set_value_range): Check that min and max are not
12418 both overflow infinities.
12419 (set_value_range_to_value): New static function.
12420 (extract_range_from_binary_expr): Call set_value_range_to_value.
12421 (extract_range_from_cond_expr): Likewise.
12422 (extract_range_from_expr): Likewise.
12423 (extract_range_from_unary_expr): Likewise. Don't create a range
12424 which overflows on both sides.
12425 (vrp_meet): Check for a useless range.
12426 (vrp_visit_phi_node): If we see a constant which looks like an
12427 overflow infinity, turn off the TREE_OVERFLOW flag.
12428
12429 2007-04-24 Ian Lance Taylor <iant@google.com>
12430
12431 * flow.c (elim_reg_cond): Handle a comparison of a subreg.
12432
12433 2007-04-24 Simon Martin <simartin@users.sourceforge.net>
12434
12435 PR diagnostic/25923
12436 * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
12437 diagnostic message is being built.
12438 * tree-pretty-print.c (dump_generic_node): Only write the
12439 formatted text into BUFFER's stream if we are not building a
12440 diagnostic message.
12441 * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
12442 dump_generic_node.
12443 * Makefile.in (toplev.o): Depend on tree-pass.h.
12444
12445 2007-04-24 Ian Lance Taylor <iant@google.com>
12446
12447 PR tree-optimization/31602
12448 * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
12449 conditionals in the copied loop header.
12450 * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
12451 warnings if TREE_NO_WARNING is set.
12452 * doc/invoke.texi (Warning Options): Clarify that
12453 -Wstrict-overflow does not warn about loops.
12454
12455 2007-04-24 Janis Johnson <janis187@us.ibm.com>
12456
12457 * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
12458 expand on the comment about _Decimal128 arguments and check the
12459 integer result of the modulus operation; for 64-bit ELF ABI, ensure
12460 that _Decimal128 argument uses even/odd register pair.
12461 (function_arg): Ditto.
12462
12463 2007-04-24 Hui-May Chang <hm.chang@apple.com>
12464
12465 * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
12466 instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
12467
12468 2007-04-24 Richard Guenther <rguenther@suse.de>
12469 Olga Golovanevsky <olga@il.ibm.com>
12470
12471 * fold-const.c (multiple_of_p): Check for bottom
12472 to be zero.
12473
12474 2007-04-24 Richard Henderson <rth@redhat.com>
12475
12476 * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
12477 IS_IBM_EXTENDED. Also define in terms of WIDEST_HARDWARE_FP_SIZE.
12478 * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
12479 looking for non-zero bits shifted out. Avoid a recursive call
12480 when constructing the scalar.
12481 (__floatundisf): Likewise.
12482
12483 2007-04-24 Nathan Froyd <froydnj@codesourcery.com>
12484
12485 * dwarf2out.c (field_byte_offset): Move the existing logic
12486 under the control of PCC_BITFIELD_TYPE_MATTERS and just use
12487 the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
12488
12489 2007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
12490
12491 PR target/31641
12492 * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant
12493 length argument of 0 for memset.
12494 (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
12495 unsigned shift instead of the signed variant.
12496
12497 2007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
12498
12499 * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
12500 "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
12501 "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
12502 "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
12503 "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
12504 "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
12505 "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
12506 "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
12507 "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
12508 ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
12509 "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
12510 "mul<mode>3", "div<mode>3"): Insn definitions added.
12511 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
12512 "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
12513 to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
12514 ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
12515 "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
12516 "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
12517 ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
12518 * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
12519 TARGET_FLOAT_FORMAT): Macro definitions removed.
12520 (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
12521 * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
12522 z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
12523 (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
12524 (s390_gen_rtx_const_DI): Function removed.
12525 * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
12526
12527 2007-04-24 Richard Sandiford <richard@codesourcery.com>
12528
12529 * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
12530 over an external ffs function.
12531
12532 2007-04-24 Chao-ying Fu <fu@mips.com>
12533 Richard Sandiford <richard@nildram.co.uk>
12534
12535 * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
12536 * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
12537 (smadd_widen_optab, umadd_widen_optab): Define.
12538 * optabs.c (init_optabs): Initialize smadd_widen_optab and
12539 umadd_widen_optab.
12540 * genopinit.c (optabs): Fill in smadd_widen_optab and
12541 umadd_widen_optab.
12542 * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
12543 and umadd_widen_optab to implement multiply-add sequences.
12544 * config/mips/mips.md (*<su>mul_acc_di): Rename to...
12545 (<u>maddsidi4): ...this. Extend condition to include
12546 GENERATE_MADD_MSUB and TARGET_DSPR2. Change the constraint
12547 of operand 0 to "ka" and use the three-operand form of madd<u>
12548 for TARGET_DSPR2.
12549 * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
12550 to define_expands.
12551 * config/mips/constraints.md (ka): New register constraint.
12552
12553 2007-04-24 Jan Hubicka <j@suse.cz>
12554
12555 Revert:
12556
12557 2007-04-23 Jan Hubicka <jh@suse.cz>
12558 * function.c (init_function_start): Don't init line number info.
12559 (expand_function_end): Update.
12560 (reset_block_changes, record_block_change, finalize_block_changes,
12561 check_block_change, free_block_changes): Kill.
12562 * function.h (reset_block_changes, record_block_change,
12563 finalize_block_changes, check_block_change, free_block_changes):
12564 Remove prototypes.
12565 (struct function): Remove ib_boundaries_block.
12566 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
12567 Use curr_insn_locator to initialize locator.
12568 (emit_line_note): Remove.
12569 * cfgexpand.c (expand_gimple_cond_expr): Update.
12570 (construct_exit_block): Likewise.
12571 (tree_expand_cfg): Initialize/finalize locators.
12572 * expr.c (expand_expr_real): Update.
12573 * cfglayout.c (line_locators_locs, line_locators_lines,
12574 file_locators_locs, file_locators_files): Remove.
12575 (set_block_levels): Move to cfgexpand.c.
12576 (insn_locators_initialize): Remove.
12577 (pass_insn_locators_initialize): Remove.
12578 (locations_locators_locs, locations_locators_vals): New static vars.
12579 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
12580 Likewise.
12581 (insn_locators_alloc, insn_locators_finalize,
12582 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
12583 New functions.
12584 (locator_location): New.
12585 (locator_line, locator_file): Rewrite.
12586 * rtl.h (emit_line_note): Kill.
12587 (insn_locators_alloc, insn_locators_finalize,
12588 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
12589 Declare.
12590 * tree-inline.c (initialize_cfun): Do not initialize
12591 ib_boundaries_block.
12592 * passes.c (pass_insn_locators_initialize): Remove.
12593
12594 2007-04-24 Daniel Franke <franke.daniel@gmail.com>
12595
12596 * doc/invoke.texi: Removed leading '-' from option index entries.
12597
12598 2007-04-23 Zdenek Dvorak <dvorakz@suse.cz>
12599
12600 * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
12601 Use phi_nodes_ptr.
12602 (create_phi_node): Use set_phi_nodes.
12603 * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
12604 * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
12605 (combine_blocks): Use bb_stmt_list and set_bb_stmt_list.
12606 * tree-flow-inline.h (phi_nodes, set_phi_nodes,
12607 (bsi_start, bsi_last): Use bb_stmt_list.
12608 (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
12609 * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
12610 Traverse the statements using tsi iterator.
12611 * basic-block.h (struct basic_block_def): Fields stmt_list
12612 and phi_nodes moved to ...
12613 (struct tree_bb_info): ... new structure.
12614 * tree-cfg.c (create_bb): Allocate il.tree. Use set_bb_stmt_list.
12615 (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
12616 (remove_bb): Handle blocks with NULL stmt list. Clear il.tree field.
12617 (tree_verify_flow_info): Verify that il.tree is not set for
12618 entry and exit block.
12619 (tree_split_block): Use set_bb_stmt_list.
12620
12621 2007-04-23 Mike Stump <mrs@apple.com>
12622
12623 * config/i386/i386.c (ix86_tune_features
12624 [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
12625 nocona and core2.
12626
12627 2007-04-23 H.J. Lu <hongjiu.lu@intel.com>
12628
12629 * config/i386/i386.md (prefix_extra): New attribute.
12630 (length): Add prefix_extra.
12631
12632 * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
12633 (sse2_movntv2di): Likewise.
12634 (sse2_cvtps2dq): Likewise.
12635 (sse2_cvtpd2pi): Likewise.
12636 (sse2_cvttpd2pi): Likewise.
12637 (*sse2_cvtpd2ps): Likewise.
12638 (*add<mode>3): Likewise.
12639 (sse2_ssadd<mode>3): Likewise.
12640 (sse2_usadd<mode>3): Likewise.
12641 (*sub<mode>3): Likewise.
12642 (sse2_sssub<mode>3): Likewise.
12643 (sse2_ussub<mode>3): Likewise.
12644 (*mulv8hi3): Likewise.
12645 (*smulv8hi3_highpart): Likewise.
12646 (*umulv8hi3_highpart): Likewise.
12647 (sse2_umulv2siv2di3): Likewise.
12648 (sse2_pmaddwd): Likewise.
12649 (ashr<mode>3): Likewise.
12650 (lshr<mode>3): Likewise.
12651 (ashl<mode>3): Likewise.
12652 (sse2_ashlti3): Likewise.
12653 (sse2_lshrti3): Likewise.
12654 (*umaxv16qi3): Likewise.
12655 (*smaxv8hi3): Likewise.
12656 (*uminv16qi3): Likewise.
12657 (*sminv8hi3): Likewise.
12658 (sse2_eq<mode>3): Likewise.
12659 (sse2_gt<mode>3): Likewise.
12660 (*and<mode>3): Likewise.
12661 (sse2_nand<mode>3): Likewise.
12662 (*ior<mode>3): Likewise.
12663 (*xor<mode>3): Likewise.
12664 (sse2_packsswb): Likewise.
12665 (sse2_packssdw): Likewise.
12666 (sse2_packuswb): Likewise.
12667 (sse2_punpckhbw): Likewise.
12668 (sse2_punpcklbw): Likewise.
12669 (sse2_punpckhwd): Likewise.
12670 (sse2_punpcklwd): Likewise.
12671 (sse2_punpckhdq): Likewise.
12672 (sse2_punpckldq): Likewise.
12673 (sse2_punpckhqdq): Likewise.
12674 (sse2_punpcklqdq): Likewise.
12675 (*sse2_pinsrw): Likewise.
12676 (*sse2_pextrw): Likewise.
12677 (sse2_pshufd_1): Likewise.
12678 (sse2_uavgv16qi3): Likewise.
12679 (sse2_uavgv8hi3): Likewise.
12680 (sse2_psadbw): Likewise.
12681 (sse2_pmovmskb): Likewise.
12682 (*sse2_maskmovdqu): Likewise.
12683 (*sse2_maskmovdqu_rex64): Likewise.
12684 (sse4a_extrqi): Likewise.
12685 (sse4a_extrq): Likewise.
12686 (sse3_lddqu): Set prefix_rep.
12687 (sse3_addsubv4sf3): Likewise.
12688 (sse3_haddv4sf3): Likewise.
12689 (sse3_hsubv4sf3): Likewise.
12690 (sse_cvtss2si): Likewise.
12691 (sse_cvtss2si_2): Likewise.
12692 (sse_cvtss2siq): Likewise.
12693 (sse_cvtss2siq_2): Likewise.
12694 (sse_cvttss2si): Likewise.
12695 (sse_cvttss2siq): Likewise.
12696 (sse2_cvttps2dq): Likewise.
12697 (sse3_movshdup): Likewise.
12698 (sse3_movsldup): Likewise.
12699 (sse2_cvtsd2si): Likewise.
12700 (sse2_cvtsd2si_2): Likewise.
12701 (sse2_cvtsd2siq): Likewise.
12702 (sse2_cvtsd2siq_2): Likewise.
12703 (sse2_cvttsd2si): Likewise.
12704 (sse2_cvttsd2siq): Likewise.
12705 (*sse2_cvtpd2dq): Likewise.
12706 (*sse2_cvttpd2dq): Likewise.
12707 (sse2_pshuflw_1): Likewise.
12708 (sse2_pshufhw_1): Likewise.
12709 (sse4a_insertqi): Likewise.
12710 (sse4a_insertq): Likewise.
12711 (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
12712 (ssse3_phadddv4si3): Likewise.
12713 (ssse3_phaddswv8hi3): Likewise.
12714 (ssse3_phsubwv8hi3): Likewise.
12715 (ssse3_phsubdv4si3): Likewise.
12716 (ssse3_phsubswv8hi3): Likewise.
12717 (ssse3_pmaddubswv8hi3): Likewise.
12718 (ssse3_pmulhrswv8hi3): Likewise.
12719 (ssse3_pshufbv16qi3): Likewise.
12720 (ssse3_psign<mode>3): Likewise.
12721 (ssse3_palignrti): Likewise.
12722 (abs<mode>2): Likewise.
12723 (ssse3_phaddwv4hi3): Set prefix_extra.
12724 (ssse3_phadddv2si3): Likewise.
12725 (ssse3_phaddswv4hi3): Likewise.
12726 (ssse3_phsubwv4hi3): Likewise.
12727 (ssse3_phsubdv2si3): Likewise.
12728 (ssse3_phsubswv4hi3): Likewise.
12729 (ssse3_pmaddubswv4hi3): Likewise.
12730 (ssse3_pmulhrswv4hi3): Likewise.
12731 (ssse3_pshufbv8qi3): Likewise.
12732 (ssse3_psign<mode>3): Likewise.
12733 (ssse3_palignrdi): Likewise.
12734 (abs<mode>2): Likewise.
12735 (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
12736 (*vec_dupv2df): Set mode to V2DF instead of V4SF.
12737 (sse2_pmovmskb): Set mode to SI instead of V2DF.
12738
12739 2007-04-23 Nick Clifton <nickc@redhat.com>
12740
12741 * params.def: Fix formatting of emacs local variables.
12742
12743 2007-04-23 H.J. Lu <hongjiu.lu@intel.com>
12744
12745 * config/i386/sse.md (sse2_stored): Don't split to inter-unit
12746 move if inter-unit move isn't allowed.
12747 Don't split moving the first element of V2DI to DI to inter-unit
12748 move if inter-unit move isn't allowed.
12749
12750 2007-04-23 Richard Guenther <rguenther@suse.de>
12751
12752 * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
12753 and CDI_POST_DOMINATORS separately.
12754
12755 2007-04-23 Nick Clifton <nickc@redhat.com>
12756
12757 * c.opt (Wformat-contains-nul): Add warning attribute.
12758
12759 2007-04-23 Jan Hubicka <jh@suse.cz>
12760
12761 * function.c (init_function_start): Don't init line number info.
12762 (expand_function_end): Update.
12763 (reset_block_changes, record_block_change, finalize_block_changes,
12764 check_block_change, free_block_changes): Kill.
12765 * function.h (reset_block_changes, record_block_change,
12766 finalize_block_changes, check_block_change, free_block_changes):
12767 Remove prototypes.
12768 (struct function): Remove ib_boundaries_block.
12769 * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
12770 Use curr_insn_locator to initialize locator.
12771 (emit_line_note): Remove.
12772 * cfgexpand.c (expand_gimple_cond_expr): Update.
12773 (construct_exit_block): Likewise.
12774 (tree_expand_cfg): Initialize/finalize locators.
12775 * expr.c (expand_expr_real): Update.
12776 * cfglayout.c (line_locators_locs, line_locators_lines,
12777 file_locators_locs, file_locators_files): Remove.
12778 (set_block_levels): Move to cfgexpand.c.
12779 (insn_locators_initialize): Remove.
12780 (pass_insn_locators_initialize): Remove.
12781 (locations_locators_locs, locations_locators_vals): New static vars.
12782 (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
12783 Likewise.
12784 (insn_locators_alloc, insn_locators_finalize,
12785 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
12786 New functions.
12787 (locator_location): New.
12788 (locator_line, locator_file): Rewrite.
12789 * rtl.h (emit_line_note): Kill.
12790 (insn_locators_alloc, insn_locators_finalize,
12791 set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
12792 Declare.
12793 * tree-inline.c (initialize_cfun): Do not initialize
12794 ib_boundaries_block.
12795 * passes.c (pass_insn_locators_initialize): Remove.
12796
12797 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
12798
12799 PR middle-end/31448
12800 * expr.c (reduce_to_bit_field_precision): Handle
12801 CONST_INT rtx's.
12802
12803 2007-04-22 Uros Bizjak <ubizjak@gmail.com>
12804
12805 PR tree-optimization/24659
12806 * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
12807 OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
12808 (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
12809 * genopinit.c (optabs): Rename vec_pack_mod_optab
12810 to vec_pack_trunc_optab.
12811 * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
12812 early for scalar floating point operands for NOP_EXPR.
12813 (vectorizable_type_promotion): Ditto.
12814 * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
12815 vec_pack_trunc_optab.
12816 (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
12817
12818 * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
12819 * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
12820 Rename from VEC_PACK_MOD_EXPR.
12821 (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
12822 * expr.c (expand_expr_real_1): Ditto.
12823 * tree-inline.c (estimate_num_insns_1): Ditto.
12824 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
12825
12826 * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
12827 (vec_unpacks_lo_v4sf): Ditto.
12828 (vec_pack_trunc_v2df): Ditto.
12829 (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
12830 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
12831 (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
12832
12833 * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
12834 vec_pack_mod_v8hi.
12835 (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
12836
12837 * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
12838 Rename from VEC_PACK_MOD_EXPR. This expression also represent
12839 packing of floating point operands.
12840 [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
12841 represent unpacking of floating point operands.
12842 * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
12843 [vec_unpacks_hi]: Ditto.
12844 [vec_unpacks_lo]: Ditto.
12845
12846 2007-04-22 Jan Hubicka <jh@suse.cz>
12847
12848 * final.c (rest_of_handle_final): Call
12849 targetm.asm_out.constructor/targetm.asm_out.destructor
12850 * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
12851 proper priority via decl_*_priority_insert.
12852 * c-common.c (c_expand_body): Likewise.
12853
12854 2007-04-22 Richard Guenther <rguenther@suse.de>
12855
12856 PR tree-optimization/29789
12857 * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
12858 (rewrite_reciprocal): New helper split out from
12859 determine_invariantness_stmt.
12860 (rewrite_bittest): Likewise.
12861 (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
12862 A & (1 << B) if (1 << B) is loop invariant but (A >> B)
12863 is not.
12864
12865 2007-04-22 Revital Eres <eres@il.ibm.com>
12866
12867 * loop-unroll.c (var_to_expand): New field to support also
12868 insns of the form x = something + x.
12869 (analyze_insn_to_expand_var): Use it.
12870 (expand_var_during_unrolling): Likewise.
12871
12872 2007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
12873
12874 * predict.c: Include pointer-set.h.
12875 (bb_predictions): New variable.
12876 (tree_predicted_by_p, tree_predict_edge,
12877 remove_predictions_associated_with_edge): Use bb_predictions map
12878 instead of bb->predictions.
12879 (clear_bb_predictions, assert_is_empty): New functions.
12880 (combine_predictions_for_bb): Use bb_predictions map. Call
12881 clear_bb_predictions.
12882 (tree_estimate_probability): Create and free bb_predictions map.
12883 * Makefile.in (predict.o): Add pointer-set.h dependency.
12884 * basic-block.h (struct basic_block_def): Remove predictions
12885 field.
12886 * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
12887
12888 2007-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
12889
12890 PR target/31480
12891 * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
12892 is null.
12893
12894 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
12895
12896 * timevar.c (timevar_print): Change reference of --disable-checking to
12897 --enable-checking=release. Also warn if assert checking is disabled.
12898
12899 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
12900
12901 PR C/30265
12902 * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
12903 decl as addressable if the compound literal was marked as
12904 addressable.
12905 Mark the decl as a gimple register if it is a complex or
12906 vector decl and does not live in memory.
12907
12908 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
12909
12910 * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
12911 (GENERIC_NEXT): New function macro.
12912 (PHI_CHAIN): Use phi_node's new chain variable.
12913 (tree_phi_node): Change tree_common to tree_base
12914 and add the chain field.
12915 * tree-phinodes.c (make_phi_node): Don't set
12916 TREE_TYPE on the new node.
12917 * c-decl.c (lang_tree_node): Use GENERIC_NEXT
12918 instead of checking GIMPLE_TUPLE_P in chain_next.
12919 * tree-vect-transform.c
12920 (get_initial_def_for_induction): Look at
12921 PHI_RESULT_TREE for the type of the phi node.
12922 (update_vuses_to_preheader): Use PHI_CHAIN
12923 instead of TREE_CHAIN on the phi node.
12924 * tree-ssa-structalias.c (compute_points_to_sets):
12925 Likewise.
12926 (ipa_pta_execute): Likewise.
12927
12928 2007-04-21 Richard Guenther <rguenther@suse.de>
12929
12930 PR middle-end/31136
12931 * fold-const.c (fold_unary): Call fold_convert_const on the
12932 original tree.
12933
12934 2007-04-21 Alexandre Oliva <aoliva@redhat.com>
12935
12936 * gcse.c (store_killed_in_insn): Handle PARALLELs.
12937 (store_killed_in_pat): New.
12938
12939 2007-04-20 Richard Henderson <rth@redhat.com>
12940
12941 PR target/31628
12942 * config/i386/i386.c (type_has_variadic_args_p): Look for any
12943 TREE_LIST with a void_type_node value, not void_list_node exactly.
12944
12945 2007-04-21 Douglas Gregor <doug.gregor@gmail.com>
12946
12947 * doc/standards.texi: Re-arrange into language-specific
12948 subsections. Add a C++ section, documenting which standards we
12949 support.
12950
12951 2007-04-21 Zdenek Dvorak <dvorakz@suse.cz>
12952
12953 * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
12954 * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
12955
12956 2007-04-20 Daniel Jacobowitz <dan@codesourcery.com>
12957
12958 * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
12959 ecrti.o and crtbegin.o.
12960 (LIB_DEFAULT_SPEC): Include -lc.
12961 (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
12962
12963 2007-04-20 Richard Henderson <rth@redhat.com>
12964
12965 PR target/28623
12966 * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
12967 argument; update all callers.
12968 (get_unaligned_offset): New.
12969 * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
12970 get_unaligned_address, just pass on the address directly.
12971 (unaligned_extendqidi): Use gen_lowpart instead of open-coding
12972 the subreg in the helper patterns.
12973 (unaligned_extendqidi_le): Use get_unaligned_offset.
12974 (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
12975 (unaligned_extendhidi_be): Likewise.
12976 (unaligned_extendhidi): Tidy.
12977 * config/alpha/alpha-protos.h: Update.
12978
12979 2007-04-20 Richard Henderson <rth@redhat.com>
12980
12981 * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
12982 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
12983 * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
12984 * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
12985 * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
12986 (CPP_SPEC): Don't include %(cpp_subtarget).
12987 * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
12988 (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
12989 * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
12990
12991 2007-04-20 Jakub Jelinek <jakub@redhat.com>
12992
12993 * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
12994 for __builtin_ia32_cmpordss.
12995
12996 PR tree-optimization/31632
12997 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
12998 and arg1 for optimizations of comparison against min/max values.
12999 Fold arg0 to arg1's type for optimizations of comparison against
13000 min+1 and max-1 values.
13001
13002 2007-04-19 Bernd Schmidt <bernd.schmidt@analog.com>
13003
13004 * reload.c (combine_reloads): When trying to use a dying register,
13005 check whether it's uninitialized and don't use if so.
13006
13007 2007-04-19 Brooks Moses <brooks.moses@codesourcery.com>
13008
13009 * fold-const.c: Remove prototypes for native_encode_expr and
13010 native_interpret_expr.
13011 (native_encode_expr): Make non-static.
13012 (native_interpret_expr): Likewise.
13013 * tree.h: Add prototypes for the above.
13014
13015 2007-04-19 Joseph Myers <joseph@codesourcery.com>
13016
13017 * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
13018 *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
13019 *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
13020 spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
13021 tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
13022 Add length attributes.
13023
13024 2007-04-19 Janis Johnson <janis187@us.ibm.com>
13025
13026 * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
13027 not that it is 1.
13028
13029 * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
13030 __STDC_WANT_DEC_FP__.
13031
13032 2007-04-19 Joseph Myers <joseph@codesourcery.com>
13033
13034 * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
13035 for long double compatibility.
13036 * configure: Regenerate.
13037
13038 2007-04-19 Eric Botcazou <ebotcazou@libertysurf.fr>
13039
13040 PR rtl-optimization/29841
13041 * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
13042 trap instructions.
13043 * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
13044 that may cause control flow transfer from being moved.
13045
13046 2007-04-18 Jan Hubicka <jh@suse.cz>
13047
13048 * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
13049 types.
13050
13051 2007-04-18 Eric Christopher <echristo@apple.com>
13052
13053 * config/rs6000/darwin.md (load_macho_picbase): Use link register
13054 only. Update operands.
13055 * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
13056 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
13057 link register to pic register.
13058
13059 2007-04-18 Dirk Mueller <dmueller@suse.de>
13060
13061 PR diagnostic/31227
13062 * tree-vrp.c (search_for_addr_array): New.
13063 (check_array_bounds): Suppress warning about
13064 address taken of array refs if its not de-referenced.
13065
13066 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
13067
13068 * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
13069 * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
13070
13071 * tree-vectorizer.h (NITERS_KNOWN_P): New.
13072 * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
13073 instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
13074
13075 * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
13076 dump print.
13077 (vect_analyze_operations): Fix indenetation. Fix a comment. Fix a
13078 print message.
13079 (vect_analyze_scalar_cycles): Fix indentation.
13080 (vect_enhance_data_refs_alignment): Fix check in case of peeling.
13081 (vect_mark_relevant): Include phis in relevance analysis.
13082
13083 * tree-vect-transform.c (vect_transform_loop): Add an assert.
13084
13085 2007-04-18 Anatoly Sokolov <aesok@post.ru>
13086
13087 * config/avr/avr.c (ptrreg_to_str): Replace error() with
13088 output_operand_lossage().
13089
13090 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
13091
13092 * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
13093 the unused code for reduction without adjust-in-epilog to simplify the
13094 function.
13095
13096 2007-04-18 Wolfgang Gellerich <gellerich@de.ibm.com>
13097
13098 * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
13099 (S390_TDC_NEGATIVE_ZERO): New constant.
13100 (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
13101 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
13102 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
13103 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
13104 (S390_TDC_POSITIVE_INFINITY): New constant.
13105 (S390_TDC_NEGATIVE_INFINITY): New constant.
13106 (S390_TDC_POSITIVE_QUIET_NAN): New constant.
13107 (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
13108 (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
13109 (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
13110 (S390_TDC_INFINITY): New constant.
13111 * config/s390/s390.c (s390_canonicalize_comparison): Renamed
13112 UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
13113 optimization for UNSPEC_CCZ_TO_INT.
13114 * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
13115 ("*ccz_to_int"): New insn.
13116 ("isinf<mode>2"): New insn.
13117 (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
13118 (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
13119 (UNSPEC_CCZ_TO_INT): New constant.
13120
13121 2007-04-18 Richard Guenther <rguenther@suse.de>
13122
13123 PR tree-optimization/19431
13124 PR tree-optimization/21463
13125 * tree-pass.h (pass_phiprop): Declare.
13126 * passes.c (init_optimization_passes): New phiprop pass.
13127 * tree-ssa-forwprop.c (struct phiprop_d): New structure.
13128 (phivn_valid_p): New helper function.
13129 (phiprop_insert_phi): Likewise.
13130 (propagate_with_phi): Likewise.
13131 (tree_ssa_phiprop): New propagator propagating loads
13132 through phi nodes if profitable.
13133
13134 2007-04-18 Dorit Nuzman <dorit@il.ibm.com>
13135
13136 * tree-vect-analyze.c (process_use): New function.
13137 (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
13138 Check phis in all bbs.
13139 * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
13140 assert.
13141
13142 2007-04-18 Bernd Schmidt <bernd.schmidt@analog.com>
13143
13144 * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
13145 we use REG_EQUAL.
13146
13147 2007-04-17 Anatoly Sokolov <aesok@post.ru>
13148
13149 PR target/30483
13150 * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
13151 error().
13152
13153 2007-04-17 H.J. Lu <hongjiu.lu@intel.com>
13154
13155 * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
13156 on "0".
13157 (sse_vmmulv4sf3): Likewise.
13158 (sse2_vmaddv2df3): Likewise.
13159 (sse2_vmmulv2df3): Likewise.
13160
13161 2007-04-17 Zdenek Dvorak <dvorakz@suse.cz>
13162
13163 PR rtl-optimization/31360
13164 * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
13165 (target_reg_cost): New.
13166 (init_set_costs): Initialize target_reg_cost. Add comments
13167 regarding the rationale of the costs.
13168 (global_cost_for_size): Renamed to...
13169 (estimate_reg_pressure_cost): ... and simplify. Decrease importance
13170 of register pressure.
13171 * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
13172 estimate_reg_pressure_cost. Add number of ivs.
13173 (determine_set_costs): Dump target_reg_cost.
13174 * loop-invariant.c (gain_for_invariant): Use
13175 estimate_reg_pressure_cost. Removed n_inv_uses argument.
13176 (best_gain_for_invariant, find_invariants_to_move): Remove
13177 n_inv_uses.
13178 * cfgloop.h (target_small_cost, target_pres_cost): Removed.
13179 (target_reg_cost): Declare.
13180 (global_cost_for_size): Declaration removed.
13181 (estimate_reg_pressure_cost): Declare.
13182
13183 2007-04-17 Peter Bergner <bergner@vnet.ibm.com>
13184
13185 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
13186 regnos into even/odd register pairs.
13187 * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
13188 TDmode similar to the other floating point modes.
13189 [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
13190 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
13191 define_expand's.
13192 (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
13193 nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
13194 (movdd_hardfloat64): Use TARGET_MFPGPR.
13195
13196 2007-04-17 Bernd Schmidt <bernd.schmidt@analog.com>
13197
13198 * reload1.c (delete_output_reload): Don't count output in n_inherited.
13199
13200 Revert
13201 2005-01-05 Richard Henderson <rth@redhat.com>
13202 PR rtl-opt/10692
13203 * reload1.c (do_input_reload): Restrict the optimization deleteing
13204 a previous output reload to RELOAD_FOR_INPUT.
13205
13206 2007-04-17 Dorit Nuzman <dorit@il.ibm.com>
13207
13208 * tree-vectorizer.h (stmt_vec_info_type): Add enum value
13209 induc_vec_info_type.
13210 (vectorizable_induction): New function declaration.
13211 * tree-vect-transform.c (get_initial_def_for_induction): No need to
13212 check if already vectorized. Find first place in BB where new stmts
13213 can be inserted. Takes only one argument.
13214 (vectorizable_induction): New function.
13215 (vect_transform_stmt): Add case for induc_vec_info_type to call
13216 vectorizable_induction.
13217 (vect_transform_loop): Consider phis for vectorization.
13218 * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
13219 condition.
13220 (analyze_operations): Call vectorizable_induction when analyzing phis.
13221 Fix comment.
13222 (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
13223 (vect_mark_relevant): Include phis in relevance analysis.
13224 (vect_mark_stmts_to_be_vectorize): Likewise.
13225 * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
13226
13227 2007-04-16 Lawrence Crowl <crowl@google.com>
13228
13229 * doc/invoke.texi (Debugging Options): Add documentation for the
13230 -femit-struct-debug options -femit-struct-debug-baseonly,
13231 -femit-struct-debug-reduced, and
13232 -femit-struct-debug-detailed[=...].
13233
13234 * c-opts.c (c_common_handle_option): Add
13235 OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
13236 and OPT_femit_struct_debug_detailed_.
13237 * c.opt: Add specifications for
13238 -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
13239 and -femit-struct-debug-detailed[=...].
13240 * opts.c (set_struct_debug_option): Parse the
13241 -femit-struct-debug-... options.
13242 * opts.c (matches_main_base, main_input_basename,
13243 main_input_baselength, base_of_path, matches_main_base): Add
13244 variables and functions to compare header base name to compilation
13245 unit base name.
13246 * opts.c (should_emit_struct_debug): Add to determine to emit a
13247 structure based on the option.
13248 (dump_struct_debug) Also disabled function to debug this
13249 function.
13250 * opts.c (handle_options): Save the base name of the
13251 compilation unit.
13252
13253 * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
13254 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
13255 This hook indicates if a type is generic. Set it by default
13256 to "never generic".
13257 * langhooks.h (struct lang_hooks_for_types): Add a new hook
13258 to determine if a struct type is generic or not.
13259 * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
13260 * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
13261 * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
13262 with live C++ hook.
13263
13264 * flags.h (enum debug_info_usage): Add an enumeration to describe
13265 a program's use of a structure type.
13266 * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
13267 to indicate the program's usage of the type. Filter structs based
13268 on the -femit-struct-debug-... specification.
13269 (gen_type_die): Split into two routines, gen_type_die and
13270 gen_type_die_with_usage. gen_type_die is now a wrapper
13271 that assumes direct usage.
13272 (gen_type_die_with_usage): Replace calls to gen_type_die
13273 with gen_type_die_with_usage adding the program usage of
13274 the referenced type.
13275 (dwarf2out_imported_module_or_decl): Suppress struct debug
13276 information using should_emit_struct_debug when appropriate.
13277
13278 2007-04-16 Ian Lance Taylor <iant@google.com>
13279
13280 PR tree-optimization/31522
13281 * tree-vrp.c (vr_phi_edge_counts): New static variable.
13282 (vrp_initialize): Allocate vr_phi_edge_counts.
13283 (vrp_visit_phi_node): Don't push to infinity if we saw a new
13284 executable edge. Drop test for all constants.
13285 (vrp_finalize): Free vrp_phi_edge_counts.
13286
13287 * doc/cpp.texi (Common Predefined Macros): Clarify description of
13288 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
13289
13290 * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
13291 predecessors at head rather than tail.
13292
13293 2007-04-16 Matthias Klose <doko@debian.org>
13294
13295 * config/alpha/linux.h (CPP_SPEC): Define.
13296 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
13297
13298 2007-04-16 Aldy Hernandez <aldyh@redhat.com>
13299
13300 * function.h: Remove sequence_stack extern declaration.
13301
13302 2007-04-16 Kazu Hirata <kazu@codesourcery.com>
13303
13304 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
13305 TARGET_FIDOA.
13306 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
13307 defined.
13308
13309 2007-04-16 Anatoly Sokolov <aesok@post.ru>
13310
13311 * config/avr/avr.c (avr_arch_types): Rearranging array.
13312 (enum avr_arch): Add.
13313 (avr_mcu_types): Use avr_arch enumeration constants instead of
13314 numbers.
13315 * config/avr/avr.h (LINK_SPEC): Simplify.
13316
13317 2007-04-16 Kazu Hirata <kazu@codesourcery.com>
13318
13319 * config/m68k/m68k.c (m68k_libcall_value,
13320 m68k_function_value): Use macros for register names more.
13321
13322 * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
13323 instead.
13324 (M68K_REGNAME): Use A6_REG.
13325 * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
13326
13327 2007-04-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
13328
13329 PR middle-end/28071
13330 * sched-int.h (struct deps): Split field 'pending_lists_length' into
13331 'pending_read_list_length' and 'pending_write_list_length'. Update
13332 comment.
13333 * sched-deps.c (add_insn_mem_dependence): Change signature. Update
13334 to handle two length counters instead of one. Update all uses.
13335 (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
13336 two length counters instead of one.
13337 * sched-rgn.c (propagate_deps): Update to handle two length counters
13338 instead of one.
13339
13340 2007-04-16 H.J. Lu <hongjiu.lu@intel.com>
13341
13342 PR target/31582
13343 * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
13344 copy of source, pass it to ix86_expand_vector_set and return
13345 it as target.
13346
13347 2007-04-16 David Ung <davidu@mips.com>
13348 Joseph Myers <joseph@codesourcery.com>
13349
13350 * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
13351 PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
13352 * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
13353 Add 74K processor information.
13354 * config/mips/mips.md: Include 74k.md.
13355 (cpu): Add 74kc,74kf,74kx.
13356 (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
13357 * config/mips/74k.md: New.
13358 * doc/invoke.texi (MIPS Options): Document 74K support.
13359
13360 2007-04-16 Dorit Nuzman <dorit@il.ibm.com>
13361
13362 * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
13363 vectorizable_* functions.
13364 * tree-vect-transform.c (vectorizable_call): Add check for
13365 STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
13366 (vectorizable_store): likewise.
13367 (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
13368 Add comments.
13369 (vectorizable_operation, vectorizable_type_demotion): Likewise.
13370 (vectorizable_type_promotion, vectorizable_load): Likewise.
13371 (vectorizable_live_operation, vectorizable_condition): Likewise.
13372 (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
13373 STMT_VINFO_LIVE_P.
13374 (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
13375
13376 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
13377
13378 * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
13379 register numbers more.
13380 * config/m68k/m68k.h (STACK_POINTER_REGNUM,
13381 FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
13382 M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
13383 FUNCTION_VALUE_REGNO_P): Likewise.
13384 * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
13385 STATIC_CHAIN_REGNUM): Likewise.
13386 * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
13387 * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
13388 STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
13389 * config/m68k/m68k.md (FP_REG): New.
13390
13391 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
13392
13393 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
13394 alignment on fido.
13395
13396 2007-04-15 Kazu Hirata <kazu@codesourcery.com>
13397
13398 * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
13399 tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
13400 comment typos.
13401
13402 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
13403
13404 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
13405 cold loops.
13406
13407 2007-04-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
13408
13409 PR c/31520
13410 * c-decl.c (finish_decl): Grab the type of the decl after the call
13411 to store_init_value.
13412
13413 2007-04-14 Steven Bosscher <steven@gcc.gnu.org>
13414
13415 * common.opt (fforward-propagate): Fix "Optimization" annotation.
13416
13417 2007-04-14 Jakub Jelinek <jakub@redhat.com>
13418
13419 PR c++/25874
13420 * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free
13421 dominators, post dominators and cleanup cfg before returning.
13422
13423 2007-04-14 Bernd Schmidt <bernd.schmidt@analog.com>
13424
13425 * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
13426 * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
13427
13428 2007-04-14 Kazu Hirata <kazu@codesourcery.com>
13429
13430 * config.gcc: Recognize fido.
13431 * config/m68k/m68k-devices.def (fidoa): New.
13432 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
13433 __mfido__.
13434 (FL_FIDOA, TARGET_FIDOA): New.
13435 * config/m68k/m68k.opt (mfidoa): New.
13436
13437 2007-04-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13438
13439 PR middle-end/31322
13440 * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
13441 when a personality function is used.
13442
13443 2007-04-13 Bob Wilson <bob.wilson@acm.org>
13444
13445 * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
13446
13447 2007-04-13 Mike Stump <mrs@apple.com>
13448
13449 * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
13450 we can...
13451 * config/darwin.opt (fapple-kext): Make C++ only.
13452 * config/darwin.c (darwin_override_options): Remove code to ensure
13453 -fapple-kext is given for C++ only.
13454
13455 2007-04-13 Richard Sandiford <richard@codesourcery.com>
13456
13457 * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
13458 * config/mips/mips.c (override_options): Call
13459 SUBTARGET_OVERRIDE_OPTIONS, if defined.
13460
13461 2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
13462
13463 * config/i386/i386.opt (msvr3-shlib): Removed.
13464
13465 * doc/invoke.texi: Remove -msvr3-shlib.
13466
13467 2007-04-13 H.J. Lu <hongjiu.lu@intel.com>
13468
13469 * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
13470 with "popcnt" instruction.
13471
13472 2007-04-13 Richard Guenther <rguenther@suse.de>
13473
13474 PR tree-optimization/21258
13475 * tree-vrp.c (compare_case_labels): New helper.
13476 (find_switch_asserts): New function.
13477 (find_assert_locations): Call it for SWITCH_EXPRs.
13478
13479 2007-04-13 Uros Bizjak <ubizjak@gmail.com>
13480
13481 * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
13482 * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
13483 check is now implied in X87_FLOAT_MODE_P.
13484 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
13485 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
13486 (fix_trunc<mode>_i386_fisttp): Ditto.
13487 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
13488 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
13489 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
13490 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
13491 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
13492 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
13493 (unnamed_splitters): Ditto.
13494 * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
13495 for X87_FLOAT_MODE_P mode. Override FIRST_FLOAT_REG with
13496 FIRST_SSE_REG for local functions when SSE math is enabled or
13497 for functions with sseregparm attribute.
13498 (standard_80387_constant_p): Return -1 if mode is not
13499 X87_FLOAT_MODE_P.
13500 (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
13501 (ix86_expand_compare): Ditto.
13502 (ix86_expand_carry_flag_compare): Ditto.
13503 (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
13504 of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
13505 DECIMAL_FLOAT_MODE_P.
13506 (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
13507 of SCALAR_FLOAT_MODE_P.
13508 (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
13509 [MINUS]: ... here. Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
13510 checks before FLOAT_MODE_P.
13511 [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
13512 before FLOAT_MODE_P.
13513 [DIV]: Ditto.
13514 [NEG]: Ditto.
13515 [ABS]: Ditto.
13516 [SQRT]: Ditto.
13517 [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
13518
13519 2007-04-12 Paolo Bonzini <bonzini@gnu.org>
13520 Charles Wilson <libtool@cwilson.fastmail.fm>
13521
13522 * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
13523 (libgcc.mvars): Don't depend on them.
13524 * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
13525 * exec-tool.in: New.
13526
13527 2007-04-12 Brooks Moses <brooks.moses@codesourcery.com>
13528
13529 * doc/invoke.text (--help): Document --help=common.
13530
13531 2007-04-12 Thomas Neumann <tneumann@users.sourceforge.net>
13532
13533 * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
13534
13535 2007-04-12 Richard Sandiford <richard@codesourcery.com>
13536
13537 * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
13538 * genemit.c (main): Emit #include "integrate.h".
13539 * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
13540 (LOADGP_RTP): New mips_loadgp_style.
13541 * config/mips/mips.h: Include config/vxworks-dummy.h.
13542 (TARGET_RTP_PIC): New macro.
13543 (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
13544 (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
13545 (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
13546 for TARGET_RTP_PIC.
13547 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define. Pass down
13548 -mvxworks-pic when using -mrtp and a PIC option.
13549 * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
13550 for RTP PIC.
13551 (mips_symbolic_constant_p, mips_symbolic_address_p)
13552 (mips_symbol_insns): Handle SYMBOL_HALF.
13553 (override_options): Warn about -G and -mrtp being used together.
13554 Initialize mips_lo_relocs[SYMBOL_HALF].
13555 (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
13556 (mips_emit_loadgp): Handle LOADGP_RTP.
13557 (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
13558 * config/mips/mips.md (loadgp_rtp): New insn and splitter.
13559 (tablejump): Handle function-relative case table entries if
13560 TARGET_RTP_PIC.
13561 * config/mips/predicates.md (symbol_ref_operand): New predicate.
13562
13563 2007-04-12 Richard Sandiford <richard@codesourcery.com>
13564
13565 * config/mips/mips.md (load_call<mode>): Allow any general register.
13566 destination.
13567 (sibcall_value_internal, sibcall_value_multiple_internal)
13568 (call_value_internal, call_value_split, call_value_multiple_internal)
13569 (call_value_multiple_split): Remove constraints from operand 0.
13570
13571 2007-04-12 Richard Sandiford <richard@codesourcery.com>
13572
13573 * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
13574 rather than loadgp_noshared.
13575 * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
13576 instead of gen_loadgp_noshared. Use gen_loadgp_newabi instead of
13577 gen_loadgp.
13578 * config/mips/mips.md (loadgp): Rename to...
13579 (loadgp_newabi): ...this.
13580 (loadgp_noshared): Rename to...
13581 (loadgp_absolute): ...this.
13582
13583 2007-04-12 Richard Sandiford <richard@codesourcery.com>
13584
13585 * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
13586 false for locally-binding symbols.
13587 (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
13588
13589 2007-04-12 Richard Sandiford <richard@codesourcery.com>
13590
13591 * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
13592 (SYMBOL_GOT_PAGE_OFST): ...this.
13593 (SYMBOL_GOT_GLOBAL): Rename to...
13594 (SYMBOL_GOT_DISP): ...this.
13595 (SYMBOL_GOTOFF_GLOBAL): Rename to...
13596 (SYMBOL_GOTOFF_DISP): ...this. Update comments accordingly.
13597 * config/mips/mips.c (mips_global_symbol_p): New function.
13598 (mips_symbol_binds_local_p): Likewise.
13599 (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
13600 and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST. Use
13601 mips_global_symbol_p and mips_symbol_binds_local_p.
13602 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
13603 (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
13604 SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
13605 SYMBOL_GOTOFF_DISP.
13606 (mips_ok_for_lazy_binding_p): New function.
13607 (mips_load_call_address, mips_expand_call): Use it.
13608 (mips_dangerous_for_la25_p): Likewise.
13609 * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
13610 (*got_disp<mode>): Use got_disp_operand instead of
13611 global_got_operand. Use SYMBOL_GOTOFF_DISP instead of
13612 SYMBOL_GOTOFF_GLOBAL.
13613 (*got_page<mode>): Use got_page_ofst_operand instead of
13614 local_got_operand.
13615 * config/mips/predicates.md (const_call_insn_operand): Use
13616 SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
13617 (global_got_operand): Rename to...
13618 (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
13619 SYMBOL_GOT_GLOBAL.
13620 (local_got_operand): Rename to...
13621 (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
13622 of SYMBOL_GOT_LOCAL.
13623
13624 2007-04-12 Richard Sandiford <richard@codesourcery.com>
13625
13626 * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
13627 TARGET_CALL_CLOBBERED_GP.
13628 (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
13629 (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
13630 (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
13631 (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
13632 of TARGET_ABICALLS && !TARGET_NEWABI.
13633 (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
13634 * config/mips/mips.c (mips_load_call_address): Check
13635 TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
13636 (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
13637 Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
13638 (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
13639 TARGET_ABICALLS && TARGET_NEWABI.
13640 (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
13641 TARGET_ABICALLS.
13642 (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
13643 (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
13644 TARGET_ABICALLS && TARGET_NEWABI.
13645 (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
13646 TARGET_ABICALLS. Check TARGET_CALL_SAVED_GP instead of
13647 TARGET_NEWABI. Use TARGET_USE_PIC_FN_ADDR_REG to decide
13648 whether indirect calls must use $25.
13649 (mips_extra_live_on_entry): Check TARGET_GOT instead of
13650 TARGET_ABICALLS.
13651 * config/mips/mips.md (jal_macro): Check flag_pic and
13652 TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
13653 (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
13654 instead of TARGET_ABICALLS.
13655 (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
13656 TARGET_ABICALLS && TARGET_OLDABI.
13657 (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
13658 (sibcall): In the comment above the define_insn, mention
13659 TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
13660 * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
13661 instead of TARGET_ABICALLS.
13662
13663 2007-04-12 Bernd Schmidt <bernd.schmidt@analog.com>
13664
13665 * doc/md.texi (Blackfin family constraints): Document PA and PB.
13666 * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
13667 (MACFLAGS_MATCH_P): New macro.
13668 * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
13669 (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
13670 * config/bfin/bfin.md (MACFLAG_IS_M): New constant. Renumber some of
13671 the other MACFLAG constants.
13672 (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
13673 (flag_machi): Tighten constraints. Renumber some of the operands.
13674 (flag_machi_acconly): Tighten constraints. Correct operand numbers in
13675 output template.
13676 (flag_machi_parts_acconly): New pattern.
13677 (flag_macinithi): Tighten constraints. Allow any accumulator to be
13678 used.
13679 (flag_macinit1hi): Tighten constraints.
13680 (flag_mul_macv2hi_parts_acconly): New pattern.
13681
13682 * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
13683 Use a more efficient implementation.
13684 * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
13685 inline sequences when not optimizing for size.
13686
13687 * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
13688 movhi_high2low): Delete, merge functionality into...
13689 (packv2hi): ... this pattern.
13690
13691 2007-02-11 Jie Zhang <jie.zhang@analog.com>
13692 * config/bfin/bfin.opt (msim): New option.
13693 (mcpu=): New option.
13694 * config/bfin/bfin-protos.h (enum bfin_cpu): New.
13695 (bfin_cpu_t): Typedef of enum bfin_cpu.
13696 (bfin_cpu_type): New declaration.
13697 * config/bfin/elf.h (STARTFILE_SPEC): Add support for
13698 -msim and -mcpu= options.
13699 (LIB_SPEC): Likewise.
13700 * config/bfin/bfin.c (bfin_cpu_type): Define.
13701 (bfin_handle_option): Handle -mcpu= option.
13702 * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
13703 (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
13704 __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
13705
13706 2007-04-12 Richard Sandiford <richard@codesourcery.com>
13707
13708 * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
13709 (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
13710 (powerpc-wrs-vxworksae): Use ${tm_file}.
13711 (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
13712 after elfos.h. Remove i386/sysv4.h and add i386/vx-common.h.
13713 * config/i386/vx-common.h: New file.
13714
13715 2007-04-12 Richard Sandiford <richard@codesourcery.com>
13716
13717 * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
13718 of crt0.o%s.
13719
13720 2007-04-12 Andreas Krebbel <krebbel1@de.ibm.com>
13721
13722 * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
13723 ldxtr.
13724
13725 2007-04-12 Douglas Gregor <doug.gregor@gmail.com>
13726
13727 PR c++/31078
13728 PR c++/31103
13729 * c-common.c (c_build_qualified_type): Set canonical type
13730 appropriately.
13731
13732 2007-04-12 Richard Guenther <rguenther@suse.de>
13733
13734 * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
13735 lower bound and element size if lower bound is not zero
13736 or either of the ARRAY_REF operands is set.
13737
13738 2007-04-12 Richard Guenther <rguenther@suse.de>
13739
13740 PR tree-optimization/24689
13741 PR tree-optimization/31307
13742 * fold-const.c (operand_equal_p): Compare INTEGER_CST array
13743 indices by value.
13744 * gimplify.c (canonicalize_addr_expr): To be consistent with
13745 gimplify_compound_lval only set operands two and three of
13746 ARRAY_REFs if they are not gimple_min_invariant. This makes
13747 it never at this place.
13748 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
13749
13750 2007-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13751
13752 * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
13753 null before emitting a .nsubspa directive.
13754
13755 2007-04-11 Diego Novillo <dnovillo@redhat.com>
13756
13757 * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
13758 need_to_partition_p if there are no memory statements in the
13759 function.
13760
13761 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
13762
13763 * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
13764 (gcd_of_steps_may_divide_p): New function.
13765 (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
13766
13767 2007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
13768
13769 * reload.c (find_reloads_toplev, find_reloads_address,
13770 find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
13771 not a pointer equality test, to decide if we need to call
13772 push_reg_equiv_alt_mem.
13773
13774 2007-04-11 Sebastian Pop <sebastian.pop@inria.fr>
13775
13776 * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
13777 insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps):
13778 New.
13779 (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
13780
13781 2007-04-11 Zdenek Dvorak <dvorakz@suse.cz>
13782
13783 * tree-data-ref.c (add_multivariate_self_dist): Force the distance
13784 vector to be positive.
13785
13786 2007-04-11 Diego Novillo <dnovillo@redhat.com>
13787
13788 PR 30735
13789 PR 31090
13790 * doc/invoke.texi: Document --params max-aliased-vops and
13791 avg-aliased-vops.
13792 * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
13793 debug_memory_partitions): Move to tree-flow.h
13794 * params.h (AVG_ALIASED_VOPS): Define.
13795 * tree-ssa-alias.c (struct mp_info_def): Remove. Update all
13796 users.
13797 (mp_info_t): Likewise.
13798 (get_mem_sym_stats_for): New.
13799 (set_memory_partition): Move from tree-flow-inline.h.
13800 (mark_non_addressable): Only clear the set of symbols for the
13801 partition if it exists.
13802 (dump_memory_partitions): Move from tree-ssa-operands.c
13803 (debug_memory_partitions): Likewise.
13804 (need_to_partition_p): New.
13805 (dump_mem_ref_stats): New.
13806 (debug_mem_ref_stats): New.
13807 (dump_mem_sym_stats): New.
13808 (debug_mem_sym_stats): New.
13809 (update_mem_sym_stats_from_stmt): New.
13810 (compare_mp_info_entries): New.
13811 (mp_info_cmp): Call it.
13812 (sort_mp_info): Change argument to a list of mem_sym_stats_t
13813 objects.
13814 (get_mpt_for): Move from tree-ssa-operands.c.
13815 (find_partition_for): New.
13816 (create_partition_for): Remove.
13817 (estimate_vop_reduction): New.
13818 (update_reference_counts): New.
13819 (build_mp_info): New.
13820 (compute_memory_partitions): Refactor.
13821 Document new heuristic.
13822 Call build_mp_info, update_reference_counts,
13823 find_partition_for and estimate_vop_reduction.
13824 (compute_may_aliases): Populate virtual operands before
13825 calling debugging dumps.
13826 (delete_mem_sym_stats): New.
13827 (delete_mem_ref_stats): New.
13828 (init_mem_ref_stats): New.
13829 (init_alias_info): Call it.
13830 (maybe_create_global_var): Remove alias_info argument.
13831 Get number of call sites and number of pure/const call sites
13832 from gimple_mem_ref_stats().
13833 (dump_alias_info): Call dump_memory_partitions first.
13834 (dump_points_to_info_for): Show how many times a pointer has
13835 been dereferenced.
13836 * opts.c (decode_options): For -O2 set --param
13837 max-aliased-vops to 500.
13838 For -O3 set --param max-aliased-vops to 1000 and --param
13839 avg-aliased-vops to 3.
13840 * fortran/options.c (gfc_init_options): Remove assignment to
13841 MAX_ALIASED_VOPS.
13842 * tree-flow-inline.h (gimple_mem_ref_stats): New.
13843 * tree-dfa.c (dump_variable): Dump memory reference
13844 statistics.
13845 Dump NO_ALIAS* settings.
13846 (referenced_var_lookup): Tidy.
13847 (mem_sym_stats): New.
13848 * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
13849 and ORIG are different SSA names for a memory partition.
13850 * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
13851 * tree-flow.h (struct mem_sym_stats_d): Define.
13852 (mem_sym_stats_t): Define.
13853 (struct mem_ref_stats_d): Define.
13854 (struct gimple_df): Add field mem_ref_stats.
13855 (enum noalias_state): Define.
13856 (struct var_ann_d): Add bitfield noalias_state.
13857 (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
13858 debug_mem_ref_stats, debug_memory_partitions,
13859 debug_mem_sym_stats): Declare.
13860 * tree-ssa-structalias.c (update_alias_info): Update call
13861 sites, pure/const call sites and asm sites in structure
13862 returned by gimple_mem_ref_stats.
13863 Remove local variable IS_POTENTIAL_DEREF.
13864 Increase NUM_DEREFS if the memory expression is a potential
13865 dereference.
13866 Call update_mem_sym_stats_from_stmt.
13867 If the memory references memory, call
13868 update_mem_sym_stats_from_stmt for all the direct memory
13869 symbol references found.
13870 (intra_create_variable_infos): Set noalias_state field for
13871 pointer arguments according to the value of
13872 flag_argument_noalias.
13873 * tree-ssa-structalias.h (struct alias_info): Remove fields
13874 num_calls_found and num_pure_const_calls_found.
13875 (update_mem_sym_stats_from_stmt): Declare.
13876 * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
13877 Set default value to 100.
13878 (PARAM_AVG_ALIASED_VOPS): Define.
13879
13880 2007-04-11 Richard Guenther <rguenther@suse.de>
13881
13882 PR middle-end/31530
13883 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
13884 a * -b + c as c - a * b if we honor sign dependent rounding.
13885
13886 2007-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
13887
13888 * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
13889 bfin_expand_strmov.
13890 * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
13891 bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
13892 variables.
13893 (initialize_trampoline): Don't use old-style function definition.
13894 (bfin_secondary_reload): Mark IN_P argument as unused.
13895
13896 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
13897
13898 PR tree-optimization/31343
13899 * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
13900 (build_polynomial_chrec): Return a scalar when the evolution is zero.
13901 * testsuite/gcc.dg/vect/pr31343.c: New.
13902
13903 2007-04-10 Eric Christopher <echristo@apple.com>
13904
13905 * config/i386/i386.h (X87_FLOAT_MODE_P): New.
13906 * config/i386/i386.md (*cmpfp0): Use.
13907 (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
13908 (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
13909 (fix_trunc<mode>_i386_fisttp): Ditto.
13910 (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
13911 (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
13912 (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
13913 (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
13914 (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
13915 (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
13916 (unnamed_splitters): Ditto.
13917 * config/i386/i386.c (output_fix_trunc): Assert that
13918 we're not being passed a TFmode operand.
13919
13920 2007-04-10 Zdenek Dvorak <dvorakz@suse.cz>
13921
13922 PR tree-optimization/31526
13923 * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
13924 n_basic_blocks to find newly added blocks.
13925
13926 2007-04-10 Uros Bizjak <ubizjak@gmail.com>
13927
13928 * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
13929 alternative.
13930 (fix_trunc<mode>si_sse): Ditto.
13931 (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
13932 (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
13933 (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
13934 (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
13935 (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
13936 expander using SSEMODEF mode macro.
13937 (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
13938 expander using SSEMODEF mode macro.
13939 (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
13940 *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
13941 (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
13942 *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
13943 (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
13944 *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
13945 (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
13946 Macroize insn using X87MODEF mode macro.
13947
13948 2007-04-09 H.J. Lu <hongjiu.lu@intel.com>
13949
13950 * config/i386/sse.md (sse2_pinsrw): Removed.
13951 (sse2_pextrw): Renamed to ...
13952 (*sse2_pextrw): This.
13953
13954 2007-04-09 Jan Hubicka <jh@suse.cz>
13955
13956 PR target/27869
13957 * config/i386/sse.md
13958 (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
13959 (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
13960 (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
13961 (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
13962
13963 2007-04-09 Jan Hubicka <jh@suse.cz>
13964
13965 * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
13966 multiple fields of union.
13967
13968 2007-04-09 Zdenek Dvorak <dvorakz@suse.cz>
13969
13970 * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
13971 (create_preheaders): Check that loops are available.
13972 (fix_loop_structure): Clean up, improve comments.
13973 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
13974 Check that loops are available. Set LOOP_CLOSED_SSA to the loops
13975 state flags.
13976 * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
13977 * predict.c (tree_estimate_probability): Do not call
13978 calculate_dominance_info. Call create_preheaders.
13979 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
13980 rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
13981 flags.
13982 * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
13983 * cfgloop.h (LOOP_CLOSED_SSA): New constant.
13984 * tree-cfg.c (tree_split_edge): Make an assert more precise.
13985 * tree-ssa-threadedge.c (thread_across_edge): Comment the function
13986 arguments.
13987
13988 2007-04-08 Jan Hubicka <jh@suse.cz>
13989
13990 * tree.h (maybe_fold_offset_to_component_ref): Declare.
13991 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
13992 * fold-const.c (fold_unary): Use it.
13993
13994 2007-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
13995
13996 * varasm.c (assemble_variable): Remove call to
13997 lang_hooks.decls.prepare_assemble_variable.
13998 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
13999 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
14000 * langhooks.h (lang_hooks_for_decls): Remove
14001 prepare_assemble_variable.
14002
14003 2007-04-08 Mike Stump <mrs@apple.com>
14004
14005 * config/i386/i386.c: Use inc/dec on Core2.
14006
14007 2007-04-08 Steven Bosscher <steven@gcc.gnu.org>
14008
14009 * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
14010 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
14011 lhd_tree_inlining_end_inlining): Remove.
14012 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
14013 add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
14014 end_inlining hooks.
14015 * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
14016 lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
14017 lhd_tree_inlining_end_inlining): Remove prototypes.
14018 (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
14019 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
14020 LANG_HOOKS_TREE_INLINING_START_INLINING,
14021 LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
14022
14023 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
14024 not set it.
14025
14026 2007-04-08 Anatoly Sokolov <aesok@post.ru>
14027
14028 PR target/29932
14029 * config/avr/predicates.md (io_address_operand): Delete predicate.
14030 (low_io_address_operand): Don't use 'mode' argument.
14031 (higth_io_address_operand): Rename ...
14032 (high_io_address_operand): ... to this. Don't use 'mode' argument.
14033 * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
14034 for above change.
14035
14036 2007-04-07 Daniel Berlin <dberlin@dberlin.org>
14037
14038 Revert change removing staticp.
14039
14040 2007-04-07 Anatoly Sokolov <aesok@post.ru>
14041
14042 PR target/30289
14043 * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
14044 earlyclobber.
14045
14046 2007-04-07 Bruce Korb <bkorb@gnu.org>
14047
14048 * c.opt: Add -Wformat-contains-nul.
14049 * c-format.c (set_Wformat): Set warn_format_contains_nul to the
14050 -Wformat setting.
14051 (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
14052 the NUL byte warning.
14053
14054 2007-04-07 H.J. Lu <hongjiu.lu@intel.com>
14055
14056 * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
14057
14058 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
14059
14060 * tree.c (staticp): No longer use staticp langhook.
14061 * langhooks.c (lhd_staticp): Removed.
14062 * langhooks.h (struct lang_hooks): Remove staticp.
14063 * c-common.c (c_staticp): Remove.
14064 * c-common.h (c_staticp): Ditto.
14065 * langhooks-defs.h (lhd_staticp): Ditto.
14066 (LHD_HOOKS_STATICP): Ditto
14067 * tree.h (gcc_assert_lowered): New macro.
14068
14069 2007-04-06 Zdenek Dvorak <dvorakz@suse.cz>
14070
14071 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
14072 argument "reliable".
14073 (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
14074 Add argument "reliable". Propagate it through calls.
14075 (infer_loop_bounds_from_undefined): Derive number of iterations
14076 estimates from references in blocks that do not dominate loop latch.
14077 (gcov_type_to_double_int): New function.
14078 (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
14079 and expected_loop_iterations_unbounded.
14080 * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
14081 (expected_loop_iterations): Use expected_loop_iterations_unbounded.
14082 * tree-data-ref.c (estimated_loop_iterations): Export.
14083 (get_references_in_stmt): Fix -- do not return addresses of local
14084 objects.
14085 * cfgloop.h (expected_loop_iterations_unbounded,
14086 estimated_loop_iterations): Declare.
14087
14088 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
14089
14090 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
14091
14092 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
14093
14094 * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
14095 and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
14096 (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
14097 Use output_387_reg_move().
14098 (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
14099 expander using X87MODEF12 mode macro.
14100 (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
14101 choosing register preferences. Use output_387_reg_move().
14102 (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
14103 instead of "x". Use output_387_reg_move().
14104 (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
14105 *truncxfdf2_i387_noop. Macroize insn using X87MODEF12 mode macro.
14106 (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
14107 *truncxfdf2_i387. Macroize insn using X87MODEF12 mode macro.
14108 Use output_387_reg_move().
14109 (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
14110 mode macro.
14111 (*truncxf?f_i387 splitter): Ditto.
14112
14113 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
14114
14115 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
14116 LANG_HOOKS_SAFE_FROM_P.
14117 * expr.c (safe_from_p): Remove langhook call.
14118 * langhooks.h (lang_hooks): Remove safe_from_p.
14119 (lhd_safe_from_p): Remove prototype.
14120 * langhooks.c (lhd_safe_from_p): Remove.
14121
14122 2007-04-06 Jan Hubicka <jh@suse.cz>
14123
14124 * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
14125 functions.
14126
14127 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
14128
14129 * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
14130 * config/i386/i386.md (*movsf_1, *movdf_nointeger,
14131 *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
14132 *movxf_integer): Use output_387_reg_move() for x87 reg->mem
14133 alternative.
14134 (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
14135 *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
14136
14137 2007-04-05 Richard Henderson <rth@redhat.com>
14138
14139 * config/alpha/alpha.c (print_operand) [+]: Remove.
14140 (alpha_end_function): Print nop if call at end of function.
14141 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
14142 * config/alpha/alpha.md (UNSPEC_LDGP1): New.
14143 (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
14144 (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
14145 (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
14146 the call pattern. Update peepholes to match.
14147
14148 2007-04-05 Janis Johnson <janis187@us.ibm.com>
14149
14150 * doc/extend.texi (Other Builtins): Add decimal float variants
14151 of signbit.
14152 * builtins.def: Ditto.
14153 * builtins.c (expand_builtin): Ditto.
14154
14155 2007-04-05 Uros Bizjak <ubizjak@gmail.com>
14156 H.J. Lu <hongjiu.lu@intel.com>
14157
14158 PR target/31478
14159 * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
14160 of V8HImode when calling ix86_binary_operator_ok.
14161 (sse2_pmaddwd): Call ix86_binary_operator_ok.
14162 (sdot_prodv8hi): Operands 1 and 2 must be register.
14163
14164 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
14165
14166 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
14167 initialize align to silence bogus warning.
14168
14169 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
14170
14171 PR middle-end/22156
14172 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
14173 all_no_warning.
14174 (struct sra_walk_fns): Remove use_all parameter from use.
14175 (sra_hash_tree): Handle BIT_FIELD_REFs.
14176 (sra_elt_hash): Don't hash bitfld blocks.
14177 (sra_elt_eq): Skip them in parent compares as well. Handle
14178 BIT_FIELD_REFs.
14179 (sra_walk_expr): Don't maintain or pass down use_all_p.
14180 (scan_use): Remove use_all parameter.
14181 (scalarize_use): Likewise. Re-expand assignment to
14182 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
14183 output, and re-scalarize after output. Don't mark anything
14184 for no warning.
14185 (scalarize_ldst): Adjust.
14186 (scalarize_walk_gimple_modify_statement): Likewise.
14187 (build_element_name_1): Handle BIT_FIELD_REFs.
14188 (instantiate_element): Don't warn for any element whose parent
14189 is used as a whole.
14190 (instantiate_missing_elements_1): Return the sra_elt.
14191 (canon_type_for_field): New.
14192 (try_instantiate_multiple_fields): New.
14193 (instantiate_missing_elemnts): Use them.
14194 (mark_no_warning): Removed.
14195 (generate_one_element_ref): Handle BIT_FIELD_REFs.
14196 (REPLDUP, sra_build_elt_assignment): New.
14197 (generate_copy_inout): Use them.
14198 (generate_element_copy): Likewise. Handle bitfld differences.
14199 (generate_element_zero): Don't recurse for blocks. Use
14200 sra_build_elt_assignment.
14201 (generate_one_element_int): Take elt instead of var. Use
14202 sra_build_elt_assignment.
14203 (generate_element_init_1): Adjust.
14204 (scalarize_use, scalarize_copy): Use REPLDUP.
14205 (scalarize_ldst): Move assert before dereference.
14206 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
14207
14208 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
14209
14210 * regmove.c: Fix unused variable warnings due to previous commit.
14211
14212 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
14213
14214 * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
14215 (regmove_bb_head): Remove.
14216 (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
14217 (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
14218 problems with fixup_match_1.
14219 Don't initialize/free regmove_bb_head.
14220
14221 (reg_is_remote_constant_p): If an insn is in the same basic block
14222 but not before INSN, consider it remote, too.
14223
14224 2007-04-05 Anatoly Sokolov <aesok@post.ru>
14225
14226 PR target/25448
14227 * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
14228 DECL_ASSEMBLER_NAME, not the DECL_NAME.
14229
14230 2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
14231
14232 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
14233 (CONDITIONAL_REGISTER_USAGE): Likewise.
14234
14235 2007-04-04 Richard Henderson <rth@redhat.com>
14236
14237 * config/alpha/lib1funcs.asm: Remove unused file.
14238
14239 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
14240
14241 PR other/31356
14242 * opts.c (print_specific_help): Fix --help=<language>
14243 header line.
14244 (common_handle_option): Support --help=common.
14245
14246 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
14247
14248 PR other/31353
14249 * gcc.c (main): Do not run the linker if
14250 print_subprocess_help indicates that it shouldn't be
14251 run.
14252
14253 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
14254
14255 PR doc/31355
14256 * doc/invoke.texi (--help=): Document <languages> value, fix
14257 formatting in tables of values.
14258
14259 2007-04-04 Danny Smith <dannysmith.users.sourceforge.net>
14260
14261 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
14262 dllimport attribute of virtual methods.
14263
14264 2007-04-04 Chen Liqin <liqin@sunnorth.com.cn>
14265
14266 * config/score/crti.asm: Change _bss_start to __bss_start.
14267 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
14268 (OUTGOING_REG_PARM_STACK_SPACE) update.
14269 * config/score/score.opt: add options to make backend support
14270 score5, score5u, score7 and score7d.
14271 * config/score/score.md: Likewise.
14272 * config/score/misc.md: Likewise.
14273 * config/score/mac.md: Likewise.
14274 * doc/invoke.texi: Likewise.
14275 * doc/md.texi: update constraints define.
14276
14277 2007-04-03 Richard Henderson <rth@redhat.com>
14278
14279 * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
14280 an appropriate type, use the mode instead.
14281
14282 2007-04-03 Richard Sandiford <richard@codesourcery.com>
14283
14284 * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
14285 Set the default --with-arch setting to mips2.
14286 * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
14287 (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
14288 (MULTILIB_OSDIRNAMES): Delete.
14289 (MULTILIB_DIRNAMES): Define.
14290 * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
14291 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
14292 (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
14293 definitions, except for _WRS_R3K_EXC_SUPPORT. Call
14294 VXWORKS_OS_CPP_BUILTINS.
14295 (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
14296 (MIPS_DEBUGGING_INFO): Undefine.
14297 (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
14298
14299 2007-04-03 Jakub Jelinek <jakub@redhat.com>
14300
14301 PR middle-end/30704
14302 * fold-const.c (native_encode_real): Encode real.c provided longs
14303 as a series of 32-bit native integers.
14304 (native_interpret_real): Interpret buffer as a series of 32-bit
14305 native integers.
14306
14307 2007-04-03 Richard Guenther <rguenther@suse.de>
14308
14309 * genpreds.c (write_insn_constraint_len): Write function
14310 optimized for CONSTRAINT_LEN implementation.
14311 (write_tm_preds_h): Output insn_constraint_len inline and
14312 use it for CONSTRAINT_LEN.
14313 (write_insn_preds_c): Don't output insn_constraint_len.
14314 * doc/md.texi (define_register_constraint): Document multi-letter
14315 constraints shall have the same length if they start with the same
14316 letter.
14317
14318 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
14319
14320 PR target/31175
14321 * config/i386/i386.md (isinf<mode>2): Expand only when
14322 TARGET_C99_FUNCTIONS is set.
14323
14324 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
14325
14326 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
14327 (x86_64-*-linux*): Ditto.
14328 * config/i386/i386.opt (mpc): New option.
14329 * config/i386/i386.c (overrride_options): Handle
14330 ix87_precision_string.
14331 * config/i386/crtprec.c: New file.
14332 * config/i386/t-crtpc: Ditto.
14333 * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
14334 and -mpc80 options.
14335 * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
14336 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
14337 crtprec32.o, crtprec64.o and crtprec80.o.
14338
14339 * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
14340 and -mpc80 options.
14341 (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
14342
14343 2007-04-02 Eric Christopher <echristo@apple.com>
14344
14345 * doc/invoke.texi (i386 and x86-64 Options): Document -m64
14346 limitations on darwin.
14347
14348 2007-04-02 Anatoly Sokolov <aesok@post.ru>
14349
14350 PR target/31137
14351 * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
14352
14353 2007-04-02 Dave Korn <dave.korn@artimi.com>
14354
14355 * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
14356
14357 2007-04-02 Dave Korn <dave.korn@artimi.com>
14358
14359 * libgcc2.h (exception_descriptor): Don't forward-declare.
14360 (__get_eh_table_language, __get_eh_table_version): Delete
14361 prototypes of long-dead functions.
14362
14363 2007-04-01 Daniel Berlin <dberlin@dberlin.org>
14364
14365 * ebitmap.h: New file
14366 * ebitmap.c: New file
14367 * Makefile.in (ebitmap.o): New target.
14368
14369 2007-04-01 Jan Hubicka <jh@suse.cz>
14370
14371 * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
14372 before very first instruction.
14373
14374 2007-04-01 Jan Hubicka <jh@suse.cz>
14375
14376 * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
14377 waring on 64bit hosts.
14378 * bitmap.h: Fix typo in bitmap_head_def.
14379
14380 2007-04-01 Steven Bosscher <steven@gcc.gnu.org>
14381
14382 PR rtl-optimization/31391
14383 * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
14384 into a DELETED_LABEL note, and the label is in an empty basic
14385 block, update BB_END as well as BB_HEAD.
14386
14387 2007-04-01 Richard Henderson <rth@redhat.com>
14388
14389 PR tree-optimization/31169
14390 * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
14391 to varying if the range is outside [0, prec-1].
14392
14393 2007-04-01 Richard Sandiford <richard@codesourcery.com>
14394
14395 PR target/31388
14396 * config/mips/mips.md (load_const_gp): New insn.
14397 * config/mips/mips.c (mips_split_symbol): Avoid using or creating
14398 the MIPS16 GP pseudo register if no_new_pseudos.
14399 (mips16_gp_pseudo_reg): Use gen_load_const_gp.
14400
14401 2007-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
14402
14403 PR target/31364
14404 * config/rs6000/rs6000.md (call): Convert to LR hard reg for
14405 secureplt.
14406 (call_value): Likewise.
14407
14408 2007-03-31 Wolfgang Bangerth <bangerth@dealii.org>
14409 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14410
14411 PR 14737
14412 * doc/invoke.texi: (optimization options): Reword description
14413 of -ffast-math. Document its primary purpose.
14414
14415 2007-03-31 Richard Guenther <rguenther@suse.de>
14416
14417 * omp-low.c (splay-tree.h): Include.
14418 (lookup_decl): Replace splay-tree usage by pointer-map.
14419 (maybe_lookup_decl): Likewise.
14420 (new_omp_context): Likewise.
14421 (delete_omp_context): Likewise.
14422 * gimplify.c (splay-tree.h): Include.
14423 * tree-inline.c (insert_decl_map): Replace splay-tree usage by
14424 pointer-map.
14425 (remap_ssa_name): Likewise.
14426 (remap_decl): Likewise.
14427 (remap_type_1): Likewise.
14428 (remap_type): Likewise.
14429 (copy_body_r): Likewise.
14430 (expand_call_inline): Likewise.
14431 (clone_body): Likewise.
14432 (copy_tree_r): Likewise.
14433 (remap_save_expr): Likewise.
14434 (unsave_r): Likewise.
14435 (unsave_expr_now): Likewise.
14436 (tree_function_versioning): Likewise.
14437 (build_duplicate_type): Likewise.
14438 * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
14439 (struct copy_body_data): Replace splay-tree by pointer-map.
14440 * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
14441 not $(SPLAY_TREE_H).
14442 (gimplify.o): Depend on $(SPLAY_TREE_H).
14443 (omp-low.p): Likewise.
14444
14445 2007-03-31 Anatoly Sokolov <aesok@post.ru>
14446
14447 * config/avr/predicates.md (even_register_operand,
14448 odd_register_operand): New predicates.
14449 * config/avr/avr.md (movw peephole2): New.
14450 (movw_r peephole2): New.
14451
14452 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
14453
14454 * tree.h (get_signed_or_unsigned_type): New.
14455 * fold-const.c (operand_equal_for_comparison_p): Use
14456 get_signed_or_unsigned_type instead of
14457 lang_hooks.types.signed_or_unsigned_type.
14458 * expr.c (store_expr): Ditto.
14459 * langhooks.c (get_signed_or_unsigned_type): New.
14460 (lhd_signed_or_unsigned_type): New.
14461 * langhooks.h (lhd_signed_or_unsigned_type): New.
14462 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
14463
14464 2007-03-30 Richard Henderson <rth@redhat.com>
14465
14466 * tree-ssa-loop-ivopts.c: Include target.h.
14467 (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
14468 (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
14469 (force_expr_to_var_cost): Use produce_memory_decl_rtl.
14470 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
14471
14472 2007-03-30 Richard Henderson <rth@redhat.com>
14473 Kai Tietz <kai.tietz@onevision.com>
14474
14475 * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
14476 default for 64-bit.
14477 (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
14478 (TARGET_64BIT_MS_ABI): New.
14479 (DBX_REGISTER_NUMBER): Handle 64-bit.
14480 (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
14481 (LONG_TYPE_SIZE): Force to 32.
14482 (REG_PARM_STACK_SPACE): New.
14483 (OUTGOING_REG_PARM_STACK_SPACE): New.
14484 (REGPARM_MAX, SSE_REGPARM_MAX): New.
14485 (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
14486 (STACK_BOUNDARY): Use 128 for 64-bit.
14487 * config/i386/cygwin.asm: Use push/ret to preserve call stack.
14488 Add 64-bit implementation.
14489 * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
14490 argument unused.
14491 * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
14492 (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
14493 Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
14494 for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
14495 (ix86_handle_cconv_attribute): Don't warn when ignoring if
14496 TARGET_64BIT_MS_ABI.
14497 (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
14498 (ix86_pass_by_reference): Likewise.
14499 (ix86_function_value_regno_p): Likewise.
14500 (ix86_build_builtin_va_list): Likewise.
14501 (ix86_va_start, ix86_gimplify_va_arg): Likewise.
14502 (function_arg_advance_ms_64): New.
14503 (function_arg_advance): Call it.
14504 (function_arg_ms_64): New.
14505 (function_arg): Call it.
14506 (function_value_ms_64): New.
14507 (ix86_function_value_1): Call it.
14508 (return_in_memory_ms_64): New.
14509 (ix86_return_in_memory): Call it.
14510 (setup_incoming_varargs_ms_64): New.
14511 (ix86_setup_incoming_varargs): Call it.
14512 (ix86_expand_prologue): Handle 64-bit stack probing.
14513 (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
14514 (output_pic_addr_const): Likewise.
14515 (x86_this_parameter): Likewise.
14516 (x86_output_mi_thunk): Likewise.
14517 (x86_function_profiler): Likewise.
14518 (TARGET_STRICT_ARGUMENT_NAMING): New.
14519 * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
14520 (TARGET_64BIT_MS_ABI): New.
14521 (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
14522 * config/i386/i386.md (allocate_stack_worker): Remove.
14523 (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
14524 describe the clobber of eax without a match_scratch.
14525 (allocate_stack_worker_postreload): Remove.
14526 (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
14527 describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
14528 (allocate_stack_worker_rex64_postreload): Remove.
14529 (allocate_stack): Handle 64-bit.
14530 * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
14531 * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
14532 (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
14533 (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
14534 (STANDARD_STARTFILE_PREFIX_1): Likewise.
14535 * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
14536 * config.build (x86_64-*-mingw*): New host.
14537 * config.host (x86_64-*-mingw*): New host.
14538 * config.gcc (x86_64-*-mingw*): New target.
14539 * gthr-win32.h (__gthread_key_create): Mark dtor unused.
14540
14541 2007-03-30 Richard Henderson <rth@redhat.com>
14542 Kai Tietz <kai.tietz@onevision.com>
14543
14544 * c-pragma.c (struct def_pragma_macro_value): New.
14545 (struct def_pragma_macro): New.
14546 (pushed_macro_table): New.
14547 (dpm_hash, dpm_eq): New.
14548 (handle_pragma_push_macro, handle_pragma_pop_macro): New.
14549 (init_pragma): Install them.
14550 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
14551
14552 2007-03-30 Anatoly Sokolov <aesok@post.ru>
14553
14554 * config/avr/avr.c (avr_override_options): Clear
14555 'flag_delete_null_pointer_checks'.
14556
14557 2007-03-30 Paolo Carlini <pcarlini@suse.de>
14558
14559 PR c++/26099
14560 * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
14561 RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
14562 RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
14563 RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
14564 RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
14565 RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
14566 RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
14567 C++ extensions.
14568 * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
14569
14570 2007-03-30 Steven Bosscher <steven@gcc.gnu.org>
14571
14572 * regmove.c: Move all of pass_stack_adjustments from here...
14573 * combine-stack-adj.c: ...to this new file.
14574 * Makefile.in: Add rules for combine-stack-adj.o.
14575
14576 2007-03-30 Zdenek Dvorak <dvorakz@suse.cz>
14577
14578 PR tree-optimization/31383
14579 * tree-data-ref.c (affine_function_equal_p): Do not require the
14580 vectors to have the same length.
14581
14582 2007-03-30 Jan Hubicka <jh@suse.cz>
14583
14584 PR middle-end/30700
14585 * dwarf2out.c (reference_to_unused): Ask cgraph for functions
14586 availablility; add more sanity checking; ask varpool only about
14587 VAR_DECL.
14588
14589 2007-03-29 Richard Henderson <rth@redhat.com>
14590
14591 * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
14592 to decide, but __SIZEOF_LONG_LONG__.
14593
14594 2007-03-29 Richard Henderson <rth@redhat.com>
14595
14596 * emutls.c (struct __emutls_array): New.
14597 (emutls_destroy): Use it instead of casting element 0 from void*.
14598 (__emutls_get_address): Likewise.
14599
14600 2007-03-29 Richard Henderson <rth@redhat.com>
14601
14602 * varasm.c (initializer_constant_valid_p): Don't deny
14603 DECL_DLLIMPORT_P on functions.
14604
14605 * config/i386/cygming.h: Remove function declarations.
14606 (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
14607 (ASM_OUTPUT_LABELREF): Remove.
14608 (COMMON_ASM_OP): Remove.
14609 (ASM_OUTPUT_COMMON): Remove.
14610 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
14611 (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
14612 (ASM_DECLARE_FUNCTION_NAME): Likewise.
14613 * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
14614 Rename from TARGET_ENCODE_SECTION_INFO.
14615 * config/i386/netware.h: Likewise.
14616 * config/i386/i386-protos.h: Update.
14617 * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
14618 of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
14619 (legitimate_constant_p): Reject dllimports.
14620 (dllimport_map, get_dllimport_decl): New.
14621 (legitimize_dllimport_symbol): New.
14622 (legitimize_address, ix86_expand_move): Use it.
14623 (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
14624 * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
14625 (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
14626 (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
14627 * config/i386/predicates.md (constant_call_address_operand): Only
14628 accept symbols; reject dllimport_p symbols.
14629 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
14630 i386_pe_maybe_record_exported_symbol.
14631 * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
14632 (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
14633 (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
14634 trust the setting of DECL_DLLIMPORT_P.
14635 (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
14636 (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
14637 (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
14638 tidy the argument scanning loop.
14639 (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
14640 SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
14641 (i386_pe_strip_name_encoding): Remove.
14642 (i386_pe_binds_local_p): New.
14643 (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
14644 (i386_pe_output_labelref): Remove.
14645 (i386_pe_asm_output_aligned_decl_common): New.
14646 (i386_pe_maybe_record_exported_symbol): Rename from
14647 i386_pe_record_exported_symbol; check for dllexported symbols.
14648
14649 2007-03-29 Zack Weinberg <zack@mrtock.ucsd.edu>
14650
14651 * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
14652 add comment explaining why vsnprintf cannot be used.
14653
14654 2007-03-29 Douglas Gregor <doug.gregor@gmail.com>
14655
14656 PR tree-optimization/30666
14657 * tree.c (build_complex_type): When creating type names for DWARF2
14658 debug info, create TYPE_DECLs for TYPE_NAME instead of
14659 IDENTIFIER_NODEs.
14660 (build_common_tree_nodes_2): Use build_complex_type when building
14661 predefined complex types, to preserve canonical types.
14662
14663 2007-03-29 Steven Bosscher <steven@gcc.gnu.org>
14664
14665 * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
14666 (noce_get_alt_condition): Look at it to determine whether to
14667 reverse the condition or not.
14668 (noce_get_condition): Substitute the truth for lies.
14669 (noce_find_if_block): Set the then_else_reversed field.
14670
14671 2007-03-29 Lars Poeschel <larsi@wh2.tu-dresden.de>
14672
14673 * config/fr30/fr30.md (movdi): Do not accept immediates as the
14674 destination of this insn.
14675 * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
14676 than calling gen_rtx_SET directly. Use r0 to hold the value of
14677 'address + 4' rather than a stack based temporary which can be
14678 mis-optimized away.
14679
14680 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
14681
14682 * config/s390/s390.c (s390_secondary_input_reload_class,
14683 s390_secondary_output_reload_class): Functions removed.
14684 (s390_secondary_reload): New function.
14685 (TARGET_SECONDARY_RELOAD): Target macro defined.
14686 * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
14687 SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
14688 * config/s390/s390.md ("reload_outti", "reload_outdi",
14689 "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
14690 "reload_out<mode>"): Expanders removed.
14691 ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
14692 "reload<mode>_nonoffmem_out"): Expanders added.
14693
14694 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
14695
14696 * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair
14697 action if SRC->DEST replacement failed anyway.
14698
14699 2007-03-28 Mike Stump <mrs@apple.com>
14700
14701 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
14702 * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
14703 * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
14704
14705 2007-03-28 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
14706
14707 * config.gcc: Accept barcelona as a variant of amdfam10.
14708 * config/i386/i386.c (override_options): Likewise.
14709 * doc/invoke.texi: Likewise.
14710
14711 2007-03-28 Eric Botcazou <ebotcazou@adacore.com>
14712
14713 * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
14714 offsets for BIT_FIELD_REF and COMPONENT_REF.
14715
14716 2007-03-28 Richard Guenther <rguenther@suse.de>
14717
14718 * tree.c (is_global_var): Move ...
14719 * tree-flow-inline.h (is_global_var): ... here.
14720 * tree.h (is_global_var): Remove declaration.
14721
14722 2007-03-28 Uros Bizjak <ubizjak@gmail.com>
14723
14724 * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
14725 option.
14726 (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
14727 * config/i386/i386.c (ix86_tune_features): Initialize new
14728 tuning option.
14729 * config/i386/predicates.md (promotable_binary_operator): Use
14730 TARGET_TUNE_PROMOTE_HIMODE_IMUL.
14731
14732 2007-03-28 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
14733
14734 PR target/31380
14735 * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
14736
14737 2007-03-28 Lars Poeschel <larsi@wh2.tu-dresden.de>
14738
14739 * config/fr30/fr30.md (movsi_internal): Change destination
14740 constraint from m to V and add m to the end.
14741
14742 2007-03-28 Christian Bruel <christian.bruel@st.com>
14743
14744 * config/sh/sh.md (movsi_i): Fix type attribute.
14745
14746 2007-03-28 Christian Bruel <christian.bruel@st.com>
14747
14748 * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
14749 (movsf_ie): Likewise.
14750
14751 2007-03-28 Christian Bruel <christian.bruel@st.com>
14752
14753 * config.gcc: Add sh4-300 to multilib.
14754 * config/sh/t-mlib-sh4-300: New file.
14755
14756 2007-03-28 Andreas Krebbel <krebbel1@de.ibm.com>
14757
14758 * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
14759 ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
14760 fix_trunc<mode>di2.
14761 ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
14762 fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
14763 ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
14764 "fixuns_trunctddi2"): Whitespace fix.
14765
14766 2007-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
14767
14768 * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
14769 the definition of struct sh_args.
14770 (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
14771 CALL_COOKIE_INT_REG_GET): Likewise.
14772
14773 2007-03-28 Steven Bosscher <steven@gcc.gnu.org>
14774
14775 * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
14776 transformations are applied successfully.
14777
14778 2007-03-27 Douglas Gregor <doug.gregor@gmail.com>
14779
14780 * tree.c (tree_contains_struct): Permit 512 tree codes.
14781 * tree.h (tree_contains_struct): Ditto.
14782 (MAX_TREE_CODES): Ditto.
14783 (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
14784 SPARE member to store remaining padding bits.
14785
14786 2007-03-27 Anatoly Sokolov <aesok@post.ru>
14787
14788 * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
14789 architecture.
14790
14791 2007-03-27 Janis Johnson <janis187@us.ibm.com>
14792
14793 * configure.ac: Fix assembler test for powerpc*-linux decimal float.
14794 * configure: Regenerate.
14795
14796 * configure: Regenerate using the correct version of autoconf.
14797
14798 2007-03-27 Anatoly Sokolov <aesok@post.ru>
14799
14800 * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
14801 pointer regs.
14802 * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
14803 regs to "__SP_L__" and "__SP_H__".
14804
14805 2007-03-27 Richard Guenther <rguenther@suse.de>
14806
14807 * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
14808 computations with it with a HOST_WIDE_INT variable.
14809
14810 2007-03-26 Mike Stump <mrs@apple.com>
14811
14812 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
14813 objective-c-header, objective-c++-header and objc++-cpp-output
14814 support.
14815 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
14816
14817 2007-03-26 Richard Henderson <rth@redhat.com>
14818
14819 PR target/31361
14820 * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
14821 IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
14822 IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
14823 IX86_BUILTIN_PSRLQ128): New.
14824 (ix86_init_mmx_sse_builtins): Add them.
14825 (ix86_expand_builtin): Expand them.
14826 * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
14827 operand 2 be TImode.
14828 * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
14829 _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
14830 _mm_srli_epi64): Mark __B const.
14831 (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
14832 (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
14833 _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
14834 new two-vector shift builtins.
14835
14836 2007-03-26 Ian Lance Taylor <iant@google.com>
14837
14838 PR tree-optimization/31345
14839 * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
14840 [+INF, +INF(OVF)] into VARYING.
14841
14842 2007-03-26 Zack Weinberg <zackw@panix.com>
14843
14844 * gengtype-parse.c: New file.
14845 * gengtype-yacc.y: Delete.
14846 * gengtype-lex.l: Don't include gengtype-yacc.h.
14847 Define YY_DECL and yyterminate appropriately for recursive
14848 descent parser. yylval is now a string out-parameter to yylex.
14849 (HWS, EOID): New shorthand.
14850 (IWORD): Add a couple more types.
14851 (yylex): Add a setup stanza. Remove the complex rules for
14852 detecting GTY'ed types and typedefs; replace with simple
14853 keyword detectors. Adjust everything for the changed
14854 definition of yylval. Ignore all pp-directives, not just #define.
14855 (yyerror): Delete.
14856 (parse_file): Rename yybegin; do not call yyparse.
14857 (yyend): New.
14858 * gengtype.c (xasprintf): Export again.
14859 (this_file): New. Use everywhere __FILE__ was being used.
14860 (get_lang_bitmap): Special case types defined in gengtype.c.
14861 (do_typedef, new_structure): Suppress definition of certain types.
14862 (new_structure): Improve diagnostics of duplicate definitions.
14863 Make sure location_s is associated with input.h.
14864 (nreverse_pairs, define_location_structures): New functions.
14865 (main): Improve tagging of kludge types. Remove old kludges
14866 for input.h types; use define_location_structures.
14867 * gengtype.h: Update prototypes. Define token codes here.
14868 * Makefile.in: Remove all references to gengtype-yacc.
14869 Add rules for gengtype-parse.o. Adjust rules for gengtype-lex.o
14870 and gengtype.
14871 * bitmap.h (struct bitmap_head_def): Coalesce definitions,
14872 add GTY((skip)) to the field that's only conditionally there.
14873 * doc/install.texi: Document that Bison is no longer required
14874 unless building treelang.
14875
14876 * gengtype.c: Don't include gtyp-gen.h.
14877 (srcdir): Declare here.
14878 (base_files, lang_dir_names): Allocate dynamically.
14879 (gt_files, num_gt_files, num_lang_dirs): New globals.
14880 (measure_input_list, read_input_line, read_input_list)
14881 (set_lang_bitmap): New functions.
14882 (get_base_file_bitmap): Rename get_lang_bitmap and drastically
14883 simplify, relying on read_input_list to set up the bitmaps.
14884 (main): Arguments are no longer unused. Check for correct number
14885 of command line arguments, set srcdir and srcdir_len, then call
14886 read_input_list, before doing anything else. No need to worry
14887 about duplicates in main loop.
14888 * configure.ac: Simplify the calculation of all_gtfiles.
14889 Put language tags in there. Don't set or substitute
14890 all_gtfiles_files_langs or all_gtfiles_files_frags.
14891 * Makefile.in: Revamp the way gengtype is invoked, now that it
14892 takes a file on its command line with a much simpler format.
14893 Remove or replace with gtyp-input.list all references to gtyp-gen.h.
14894 (GTFILES): Remove duplicates and C source files.
14895 * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
14896 * objcp/config-lang.in: Add c-pragma.h to gtfiles.
14897 * configure: Regenerate.
14898
14899 * gengtype.h: Remove all type definitions to gengtype.c; leave
14900 only definitions of options_p, type_p, and pair_p as opaque
14901 pointers. Update prototypes.
14902 * gengtype.c: Many type definitions moved here from gengtype.h.
14903 Consolidate type definitions at the top of the file.
14904 (xvasprintf): Delete.
14905 (xasprintf): Make static.
14906 (create_nested_pointer_option): Add 'next' parameter.
14907 (create_field_all, create_field_at): New functions.
14908 (create_field): Now a thin wrapper around create_field_all.
14909 (create_optional_field): Rename create_optional_field_ and add
14910 line argument. Original name is now a macro which supplies
14911 __LINE__.
14912 (oprintf): Use vsnprintf directly.
14913 (close_output_files): Use fatal rather than perror/exit.
14914 (note_def_vec, note_def_vec_alloc): Use create_field_at.
14915 (main): Set progname. Don't use exit.
14916 * gengtype-yacc.y (struct_fields): Use create_field_at.
14917 (option, optionseqopt): Delete.
14918 (optionseq): Consolidate productions from option here so we
14919 can use the first argument to create_option.
14920
14921 * gengtype-lex.l: Distinguish unions from structures in the
14922 token type. Don't call find_structure; return the tag as a string.
14923 * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and
14924 ENT_UNION. Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is
14925 string. Reorganize typedef_struct production accordingly.
14926 Use create_nested_ptr_option.
14927 * gengtype.c (create_nested_ptr_option): New function.
14928 * gengtype.h: Declare it.
14929
14930 * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
14931 (string_type): Don't declare.
14932 (do_scalar_typedef): Declare.
14933 (create_scalar_type): Update prototype.
14934 * gengtype.c (string_type): Make static.
14935 (scalar_nonchar, scalar_char): New.
14936 (do_scalar_typedef): Export. Always use scalar_nonchar for the type.
14937 (resolve_typedef): Use scalar_nonchar for error recovery.
14938 (create_scalar_type): Remove name_len field. Return scalar_char
14939 or scalar_nonchar as appropriate.
14940 (adjust_field_type): Look at scalar_is_char boolean to decide whether
14941 to use string_type.
14942 (throughout): Use scalar_nonchar instead of calling
14943 create_scalar_type, whenever possible.
14944 (main): Initialize scalar_char and scalar_nonchar before calling
14945 gen_rtx_next.
14946 * gengtype-lex.l: Adjust for removal of second argument to
14947 create_scalar_type. Use yylval.s instead of yylval.t when
14948 returning SCALAR.
14949 * gengtype-yacc.y: Type of SCALAR is string. Call
14950 create_scalar_type from type:SCALAR rule. Adjust for removal of
14951 second argument to create_scalar_type.
14952
14953 * vec.h: Remove all #if IN_GENGTYPE blocks.
14954 Add comment saying that changes may require adjustments to gengtype.
14955 * gengtype.c: Don't include coretypes.h or tm.h.
14956 Add comment to inclusion of errors.h.
14957 (note_def_vec, note_def_vec_alloc): New functions.
14958 * gengtype.h: Declare new functions.
14959 * gengtype-lex.l: Don't include coretypes.h.
14960 (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
14961 Delete.
14962 (update_lineno): Remove unnecessary prototype.
14963 (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
14964 (VEC rule): Just return VEC_TOKEN.
14965 * gengtype-yacc.y (VEC_TOKEN): New token type.
14966 (type): Add a production for VEC(a,b).
14967 * Makefile.in: Update dependencies.
14968
14969 * gengtype-lex.l: Remove rules for parsing pointer-to-function
14970 typedefs that use the old PARAMS macro.
14971
14972 * gengtype-lex.l: Remove all rules and states relating to yacc
14973 input files.
14974 * gengtype-yacc.y: Similarly.
14975 * gengtype.c (note_yacc_type): Delete function.
14976 * gengtype.h: Update prototypes.
14977
14978 2007-03-26 Joseph Myers <joseph@codesourcery.com>
14979
14980 * tree-pretty-print.c (dump_generic_node): Report precision of
14981 unnamed integer types.
14982
14983 2007-03-26 Steven Bosscher <steven@gcc.gnu.org>
14984
14985 * ifcvt.c (noce_try_store_flag_constants): Don't check
14986 no_new_pseudos here.
14987 (noce_try_store_flag_constants): Don't check no_new_pseudos.
14988 (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
14989 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
14990 noce_try_sign_mask): Likewise.
14991 (if_convert): Check no_new_pseudos here.
14992
14993 (cond_exec_process_if_block, noce_process_if_block, find_if_block):
14994 Remove prototypes.
14995 (struct noce_if_info): Add then_bb, else_bb, join_bb members.
14996 (noce_get_condition): Handle new then_else_reversed argument.
14997 (noce_init_if_info): Remove, fold into noce_find_if_block.
14998 (noce_process_if_block): Take a struct noce_if_info as the
14999 argument. Don't set up one based on ce_if_info. Update pointer
15000 references accordingly.
15001 (cond_move_process_if_block): Likewise.
15002 (process_if_block): Removed.
15003 (find_if_block): Removed. Move functionality two new functions,
15004 noce_find_if_block and cond_exec_find_if_block.
15005 (noce_find_if_block): New function. Be aware of IF-THEN-JOIN
15006 blocks and the symmetric IF-ELSE-JOIN case.
15007 (cond_exec_find_if_block): Also new function mostly based on old
15008 find_if_block and process_if_block.
15009 (find_if_header): Replace find_if_block call with separately
15010 guarded calls to noce_find_if_block and cond_exec_find_if_block.
15011 (find_cond_trap): Update noce_get_condition call.
15012 (dead_or_predicable): Likewise.
15013
15014 2007-03-26 Jakub Jelinek <jakub@redhat.com>
15015
15016 * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
15017 Remove.
15018 (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
15019 IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
15020 IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
15021 (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
15022 v4si_ftype_v4si_v2di. Remove __builtin_ia32_psllw128,
15023 __builtin_ia32_pslld128, __builtin_ia32_psllq128,
15024 __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
15025 __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
15026 __builtin_ia32_psrad128 builtins.
15027
15028 2007-03-26 Uros Bizjak <ubizjak@gmail.com>
15029
15030 * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
15031 * config/i386/constraints.md
15032 (define_constraint "I"): Use IN_RANGE macro.
15033 (define_constraint "J"): Ditto.
15034 (define_constraint "K"): Ditto.
15035 (define_constraint "M"): Ditto.
15036 (define_constraint "N"): Ditto.
15037 (define_constraint "O"): Ditto.
15038 * config/i386/predicates.md
15039 (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
15040 (define_predicate "const_0_to_3_operand"): Ditto.
15041 (define_predicate "const_0_to_7_operand"): Ditto.
15042 (define_predicate "const_0_to_15_operand"): Ditto.
15043 (define_predicate "const_0_to_63_operand"): Ditto.
15044 (define_predicate "const_0_to_255_operand"): Ditto.
15045 (define_predicate "const_1_to_31_operand"): Ditto.
15046 (define_predicate "const_2_to_3_operand"): Ditto.
15047 (define_predicate "const_4_to_7_operand"): Ditto.
15048
15049 2007-03-25 David Edelsohn <edelsohn@gnu.org>
15050
15051 * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
15052 in SImode for save_world.
15053 * config/rs6000/altivec.md (save_world, restore_world): Convert to
15054 LR hard reg.
15055
15056 2007-03-25 Dorit Nuzman <dorit@il.ibm.com>
15057
15058 PR tree-optimization/30784
15059 * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
15060 BIT_FIELD_REF.
15061
15062 2007-03-25 Revital Eres <eres@il.ibm.com>
15063
15064 * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
15065 Fold movement_possibility function into it.
15066
15067 2007-03-25 David Edelsohn <edelsohn@gnu.org>
15068
15069 * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
15070 (load_macho_picbase_{si,di}): Convert to LR hard reg.
15071 (call_indirect_nonlocal_darwin64): Same.
15072 (call_nonlocal_darwin64): Same.
15073 (call_value_indirect_nonlocal_darwin64): Same.
15074 (call_value_nonlocal_darwin64): Same.
15075 (sibcall_nonlocal_darwin64): Same.
15076 (sibcall_value_nonlocal_darwin64): Same.
15077 (sibcall_symbolic_64): Same.
15078 (sibcall_value_symbolic_64): Same.
15079 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
15080 LR pseudo.
15081 (rs6000_emit_load_toc_table): Same.
15082 * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
15083 * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
15084 (mull_call): Same.
15085 (divss_call): Same.
15086 (divus_call): Same.
15087 (quoss_call): Same.
15088 (quous_call): Same.
15089 (load_toc_v4_pic_si): Same
15090 (load_toc_v4_PIC_1): Same.
15091 (load_toc_v4_PIC_1b): Same.
15092 (call_indirect_aix{32,64}): Same.
15093 (call_value_indirect_aix{32,64}): Same.
15094 (call): Same.
15095 (call_value): Same.
15096 (call_local{32,64}): Same.
15097 (call_value_local{32,64}): Same.
15098 (call_indirect_nonlocal_aix{32,64}): Same.
15099 (call_nonlocal_aix{32,64}): Same.
15100 (call_value_indirect_nonlocal_aix{32,64}): Same.
15101 (call_value_nonlocal_aix{32,64}): Same.
15102 (call_indirect_nonlocal_sysv<mode>): Same.
15103 (call_nonlocal_sysv<mode>): Same.
15104 (call_value_indirect_nonlocal_sysv<mode>): Same.
15105 (call_value_nonlocal_sysv<mode>): Same.
15106 (sibcall): Same.
15107 (sibcall_local{32,64}): Same.
15108 (sibcall_value_local{32,64}): Same.
15109 (sibcall_nonlocal_aix{32,64}): Same.
15110 (sibcall_value_nonlocal_aix{32,64}): Same.
15111 (sibcall_nonlocal_sysv<mode>): Same.
15112 (sibcall_value): Same.
15113 (sibcall_value_nonlocal_sysv<mode>): Same.
15114
15115 2007-03-24 Paul Brook <paul@codesourcery.com>
15116
15117 * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
15118 * config/arm/linux-eabi.h: Remove legacy syscall hack.
15119
15120 2007-03-24 Richard Henderson <rth@redhat.com>
15121
15122 * config/ia64/constraints.md: New file.
15123 * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
15124 satisfies_constraint_?.
15125 * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
15126 ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
15127 ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
15128 ia64_output_mi_thunk): Likewise.
15129 (ia64_const_ok_for_letter_p): Remove.
15130 (ia64_const_double_ok_for_letter_p): Remove.
15131 (ia64_extra_constraint): Remove.
15132 * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
15133 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
15134 CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
15135 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
15136 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
15137 EXTRA_MEMORY_CONSTRAINT): Remove.
15138 * config/ia64/ia64.md: Include constriants.md. Replace
15139 CONST_OK_FOR_? with satisfies_constraint_?.
15140
15141 2007-03-23 Michael Meissner <michael.meissner@amd.com>
15142 H.J. Lu <hongjiu.lu@intel.com>
15143
15144 * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
15145 DPD or BID name.
15146 (name macros): Use DPD_BID_NAME to convert names properly.
15147
15148 * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
15149 decimal floating point format.
15150 (init_floating_libfuncs): Change decimal functions so that they
15151 have a "bid_" prefix if the decimal system uses the BID format,
15152 and "dpd_" prefix if the decimal system uses the DPD format.
15153 (init_interclass_conv_libfuncs): Ditto.
15154 (init_intraclass_conv_libfuncs): Ditto.
15155
15156 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
15157 using the BID format.
15158
15159 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
15160 whether we are using the BID decimal format.
15161 * configure: Regenerate.
15162
15163 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
15164 the compiler has decimal floating point enabled. Define
15165 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
15166 instead of DPD.
15167
15168 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
15169 using the BID format.
15170
15171 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
15172 whether we are using the BID decimal format.
15173 * configure: Regenerate.
15174
15175 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
15176 the compiler has decimal floating point enabled. Define
15177 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
15178 instead of DPD.
15179
15180 * doc/install.texi (--enable-decimal-float): Document BID and DPD
15181 options, and that it is enabled for i386/x86_64 systems.
15182
15183 * Makefile.in (enable_decimal_float): New.
15184 (DECNUMFMT): New.
15185 (DECNUMINC): Add -I$(DECNUMFMT).
15186 (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
15187 to $(DECNUMFMT) from $(DECNUM).
15188
15189 * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
15190 Substitute enable_decimal_float.
15191 * configure: Regenerated.
15192
15193 PR other/30529
15194 * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
15195 unsigned long.
15196
15197 * configure.ac: Enable decimal float for x86_64-*-linux*.
15198 * configure: Regenerated.
15199
15200 PR other/30530
15201 * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
15202 decimal128ClearSign to flip and clear the sign bit in decimal128.
15203 (decimal_real_maxval): Set decimal128SetSign to set the sign
15204 bit in decimal128.
15205
15206 2007-03-23 Ian Lance Taylor <iant@google.com>
15207
15208 * fold-const.c (fold_binary): Correct warning for X - c >= X.
15209
15210 2007-03-23 Ian Lance Taylor <iant@google.com>
15211
15212 * tree-dump.c (dump_files): Correct comment.
15213
15214 2007-03-23 Ian Lance Taylor <iant@google.com>
15215
15216 * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
15217
15218 2007-03-23 Steven Bosscher <steven@gcc.gnu.org>
15219
15220 * tracer.c (tracer): Don't take FLAGS argument. Assert we are
15221 in cfglayout mode. Don't go into and out of cfglayout mode.
15222 Link the blocks in the order of the constructed traces.
15223 (rest_of_handle_tracer): Adjust call to tracer.
15224 * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
15225 Don't go into cfglayout mode.
15226 (rtl_loop_done): Don't go out of cfglayout mode.
15227 * cfglayout.c (relink_block_chain): New function, split out from...
15228 (fixup_reorder_chain): ...here. Remove redundant checking.
15229 (cfg_layout_finalize): Don't clear the header, footer, and aux
15230 fields here, move the code to do so to relink_block_chain. Likewise
15231 for free_original_copy_tables.
15232 * rtl.h (tracer): Update prototype.
15233 * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
15234 Assert we are in cfglayout mode. Don't go into and out of cfglayout
15235 mode. Use relink_block_chain to serialize the CFG according to the
15236 new basic block order. Move targetm.cannot_modify_jumps_p check from
15237 here...
15238 (gate_handle_reorder_blocks): ...to here.
15239 (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
15240 from here...
15241 (gate_duplicate_computed_gotos): ...to here.
15242 (rest_of_handle_reorder_blocks): Don't see if anything has changed,
15243 something always changes when going into and out of cfglayout mode.
15244 Perform an expensive cfg cleanup while going into cfglayout mode.
15245 Always update liveness information on HAVE_conditional_execution
15246 targets. Reserialize the basic blocks and go out of cfglayout mode.
15247 * reg-stack.c: Include cfglayout.h.
15248 (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
15249 the call to reorder_basic_blocks.
15250 * basic-block.h (reorder_basic_blocks): Update prototype.
15251 (relink_block_chain): New prototype.
15252 * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
15253
15254 2007-03-23 Joseph Myers <joseph@codesourcery.com>
15255
15256 * config/mips/mips.md (type, hazard, *movdi_32bit,
15257 *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
15258 *movhi_internal, *movqi_internal, *movsf_hardfloat,
15259 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
15260 movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
15261 mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
15262 applicable.
15263 (movcc): Change first xfer to multi.
15264 * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
15265 config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
15266 config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
15267 config/mips/generic.md: Change reservations using "xfer" to use
15268 "mfc,mtc".
15269 * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
15270 using match_operand.
15271 (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
15272 * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
15273 examining mode.
15274 (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
15275
15276 2007-03-22 Richard Henderson <rth@redhat.com>
15277
15278 * config/i386/i386.c: Remove unnecessary function declarations.
15279 Move targetm definition, and all related macros, to the end of
15280 the file. Resort some functions to put definitions before uses.
15281 (ix86_attribute_table): Make static. Move to end of file.
15282 (ix86_gimplify_va_arg): Make static.
15283
15284 2007-03-22 Richard Henderson <rth@redhat.com>
15285
15286 * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
15287 don't increase local_regparm with force_align_arg_pointer check.
15288 (ix86_function_sseregparm): Assert 32-bit.
15289 (type_has_variadic_args_p): New.
15290 (ix86_return_pops_args): Early exit for 64-bit. Reindent; use
15291 type_has_variadic_args_p.
15292 (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
15293 (init_cumulative_args): Remove TARGET_DEBUG_ARG. Remove zero_cum;
15294 use memset instead. Do maybe_vaarg check first; skip attribute
15295 tests if true; skip attribute tests for 64-bit.
15296 (construct_container): Remove TARGET_DEBUG_ARG.
15297 (function_arg_advance_32, function_arg_advance_64): Split out ...
15298 (function_arg_advance): ... from here.
15299 (function_arg_32, function_arg_64): Split out ...
15300 (function_arg): ... from here.
15301 (ix86_pass_by_reference): Tidy.
15302 (ix86_function_value_regno_p): Rearrange w/ switch on regno.
15303 (function_value_32): New, from parts of ix86_function_value
15304 and ix86_value_regno.
15305 (function_value_64): New, from parts of ix86_function_value
15306 and ix86_libcall_value.
15307 (ix86_function_value_1): New.
15308 (ix86_function_value, ix86_libcall_value): Use it.
15309 (return_in_memory_32, return_in_memory_64): Split out ...
15310 (ix86_return_in_memory): ... from here.
15311 (ix86_struct_value_rtx): Skip for 64-bit.
15312 (ix86_libcall_value, ix86_value_regno): Remove.
15313 (setup_incoming_varargs_64): Split out ...
15314 (ix86_setup_incoming_varargs): ... from here.
15315 (ix86_va_start): Remove TARGET_DEBUG_ARG.
15316 (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
15317 * config/i386/i386-protos.h (ix86_function_value): Remove.
15318 * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
15319
15320 2007-03-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15321
15322 PR other/23572
15323 * c-lex.c (interpret_float): On overflow, emit pedantic warning if
15324 infinities not supported, otherwise emit warning if -Woverflow. On
15325 underflow, emit warning if -Woverflow.
15326 * real.c (real_from_string): Return -1 if underflow, +1 if overflow
15327 and 0 otherwise.
15328 * real.h (real_from_string): Update declaration
15329
15330 2007-03-22 Kai Tietz <kai.tietz@onevision.com>
15331 Richard Henderson <rth@redhat.com>
15332
15333 * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
15334 * calls.c (compute_argument_block_size, expand_call,
15335 emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
15336 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15337 * function.c (STACK_DYNAMIC_OFFSET): Likewise.
15338 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
15339 * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
15340 config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
15341 config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
15342 config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
15343 Set to 1.
15344
15345 2007-03-22 Joseph Myers <joseph@codesourcery.com>
15346
15347 * c-incpath.c (add_sysroot_to_chain): New.
15348 (merge_include_chains): Add sysroot argument. Call
15349 add_sysroot_to_chain if sysrooted.
15350 (register_include_chains): Update call to merge_include_chains.
15351 * doc/cppopts.texi: Document use of '=' in include directory
15352 arguments.
15353
15354 2007-03-22 Uros Bizjak <ubizjak@gmail.com>
15355
15356 * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
15357 Macroize expander using SSEMODEF mode macro. Use SSE_FLOAT_MODE_P.
15358 (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
15359 insn pattern using X87MODEF12 mode macro.
15360
15361 2007-03-21 Seongbae Park <seongbae.park@gmail.com>
15362
15363 * regmove.c (regmove_optimize): Use reg_mentioned_p
15364 instead of reg_overlap_mentioned_p for DST.
15365
15366 2007-03-21 Mike Stump <mrs@apple.com>
15367
15368 * c.opt: Fixup for Objective-C/C++.
15369
15370 2007-03-21 Steve Ellcey <sje@cup.hp.com>
15371
15372 * explow.c (convert_memory_address): Fold memory reference when
15373 POINTERS_EXTEND_UNSIGNED < 0
15374
15375 2007-03-21 Richard Henderson <rth@redhat.com>
15376
15377 PR target/31245
15378 * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
15379 * config/i386/mmintrin.h (__m64): Likewise.
15380 * config/i386/xmmintrin.h (__m128): Likewise.
15381
15382 2007-03-21 Richard Sandiford <richard@codesourcery.com>
15383
15384 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
15385 (VXWORKS_OS_CPP_BUILTINS): Define.
15386 * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
15387 (TARGET_OS_CPP_BUILTINS): ...here. Use VXWORKS_OS_CPP_BUILTINS.
15388
15389 2007-03-21 Richard Sandiford <richard@codesourcery.com>
15390
15391 * rtl.h (constant_pool_reference_p): Delete.
15392 (find_constant_src): Declare.
15393 * rtlanal.c (find_constant_src): New function.
15394 * simplify-rtx.c (constant_pool_reference_p): Delete.
15395 * config/i386/i386.md: Use find_constant_src instead of
15396 constant_pool_reference_p/avoid_constant_pool_reference pairs.
15397
15398 2007-03-21 Richard Sandiford <richard@codesourcery.com>
15399
15400 * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
15401 * c-cppbuiltin.c (c_cpp_builtins): Define them.
15402
15403 2007-03-20 Mark Mitchell <mark@codesourcery.com>
15404
15405 * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
15406 * config/arm/arm.c (arm_elf_asm_cdtor): New function.
15407 (arm_elf_asm_constructor): Use it.
15408 (arm_elf_asm_destructor): New function.
15409
15410 2007-03-20 Bernd Schmidt <bernd.schmidt@analog.com>
15411
15412 * jump.c (mark_jump_label): Treat SEQUENCE specially.
15413
15414 2007-03-20 Nathan Sidwell <nathan@codesourcery.com>
15415
15416 * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
15417
15418 2007-03-19 Andrew Haley <aph@redhat.com>
15419
15420 PR tree-optimization/31264
15421 * tree-vrp.c (register_edge_assert_for_1): Don't look though
15422 VIEW_CONVERT_EXPRs.
15423
15424 2007-03-19 Paolo Bonzini <bonzini@gnu.org>
15425
15426 PR rtl-optimization/30907
15427 * fwprop.c (forward_propagate_into): Never propagate inside a loop.
15428 (fwprop_init): Always call loop_optimizer_initialize.
15429 (fwprop_done): Always call loop_optimizer_finalize.
15430 (fwprop): We always have loop info now.
15431 (gate_fwprop_addr): Remove.
15432 (pass_fwprop_addr): Use gate_fwprop as gate.
15433
15434 PR rtl-optimization/30841
15435 * df-problems.c (df_ru_local_compute, df_rd_local_compute,
15436 df_chain_alloc): Call df_reorganize_refs unconditionally.
15437 * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
15438 refs_organized to refs_organized_size.
15439 (df_ref_create_structure): Use refs_organized_size instead of
15440 bitmap_size if refs had been organized, and keep refs_organized_size
15441 up-to-date.
15442 * df.h (struct df_ref_info): Change refs_organized to
15443 refs_organized_size.
15444 (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
15445 bitmap_size.
15446
15447 2007-03-19 Mark Mitchell <mark@codesourcery.com>
15448
15449 * except.c (output_function_exception_table): Do not reference the
15450 EH personality routine for functions that do not require an
15451 exception table.
15452
15453 2007-03-20 Jakub Jelinek <jakub@redhat.com>
15454
15455 PR c/30762
15456 * c-typeck.c (convert_for_assignment): Call comptypes for
15457 RECORD_TYPE or UNION_TYPE.
15458
15459 PR inline-asm/30505
15460 * reload1.c (reload): Do invalid ASM checking after
15461 cleanup_subreg_operands.
15462
15463 2007-03-19 Jeff Law <law@redhat.com>
15464
15465 * tree-cfg.c (find_taken_edge): Tighten conditions for
15466 optimizing computed gotos.
15467
15468 2007-03-19 Michael Matz <matz@suse.de>
15469
15470 * builtins.c (expand_builtin_sync_operation,
15471 expand_builtin_compare_and_swap,
15472 expand_builtin_lock_test_and_set): Care for extending CONST_INTs
15473 correctly.
15474
15475 * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
15476 sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
15477 for operand 3.
15478
15479 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
15480
15481 * doc/tm.texi: Add brackets around the return type of
15482 TARGET_SECONDARY_RELOAD.
15483
15484 2007-03-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
15485 Richard Guenther <rguenther@suse.de>
15486
15487 PR tree-optimization/31254
15488 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
15489 Use handled_component_p () where appropriate. Continue
15490 propagating into the rhs if we propagated into an INDIRECT_REF
15491 on the lhs.
15492
15493 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
15494
15495 * config/s390/s390.md (op_type attribute): RRR instruction type added.
15496 (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
15497 (xde, xdee): Mode attributes adjusted to support DFP modes.
15498 (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
15499 ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
15500 DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
15501 "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
15502 "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
15503 "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
15504 "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
15505 numbers.
15506 ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
15507 "movsf"): Insn definitions removed.
15508 ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
15509 "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
15510 "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
15511 definitions added.
15512 ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
15513 "reload_in<mode>", "reload_out<mode>"): Expander added.
15514 ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
15515 Expander removed.
15516
15517 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
15518
15519 * config/s390/s390.md: Only non-functional changes. Renamed
15520 FPR mode macro to BFP all over the file.
15521
15522 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
15523
15524 * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
15525 (op_type attribute): RRF instruction type added.
15526 (fT0): New mode attribute.
15527 ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
15528 "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
15529 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new
15530 instruction no secondary memory is needed when moving DFmode values
15531 between GPRs and FPRs.
15532
15533 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
15534
15535 * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
15536 inverted and documentation adjusted.
15537 ("mhard-dfp", "msoft-dfp"): New options.
15538 * config/s390/s390.c (s390_handle_arch_option): New architecture
15539 switch: z9-ec.
15540 (override_options): Sanity checks for the new options added.
15541 * config.gcc: New architecture switch: z9-ec.
15542 * config/s390/s390.h (processor_flags): PF_DFP added.
15543 (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
15544 (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
15545 when the bit is NOT set so remove it from the defaults.
15546
15547 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
15548
15549 * genemit.c (main): Print include statement for dfp.h.
15550 * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
15551 is not available.
15552
15553 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
15554
15555 * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
15556
15557 2007-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
15558
15559 PR target/31022
15560 * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
15561 instead of PATTERN.
15562
15563 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15564
15565 * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
15566 attr_length_call, output_call, output_indirect_call): Cleanup
15567 formatting of targetm calls.
15568
15569 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
15570
15571 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
15572
15573 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15574
15575 * pa.md: Add fpstore_load and store_fpload instruction types. Provide
15576 reservation, bypass and anti-bypass descriptions for these
15577 instructions. Update move patterns.
15578 * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
15579 TYPE_FPSTORE.
15580
15581 2007-03-18 Dorit Nuzman <dorit@il.ibm.com>
15582
15583 * tree-vect-transform.c (get_initial_def_for_induction): Replace
15584 GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
15585 (get_initial_def_for_reduction): Likewise.
15586
15587 2007-03-16 Daniel Berlin <dberlin@dberlin.org>
15588
15589 Fix PR tree-optimization/29922
15590 * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
15591 (get_representative): Removed.
15592 (value_dies_in_block_x): Update for rvuse removal.
15593 (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
15594 (compute_antic_aux): Handle when PHI nodes appear in
15595 non-single-successors.
15596 (dump_bitmap_of_names): Removed.
15597 (compute_antic_safe): Renamed and removed rvuse calculation.
15598 Calculate only antic safe.
15599 (insert_into_preds_of_block): Remove assert.
15600 (execute_pre): Update for renamed functions.
15601 (defer_or_phi_translate_block): New function.
15602
15603 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
15604
15605 * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
15606 config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
15607 typos.
15608 * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
15609 Follow spelling conventions.
15610
15611 * tree-data-ref.h: Remove the prototype for analyze_array.
15612
15613 2007-03-17 Dorit Nuzman <dorit@il.ibm.com>
15614
15615 PR tree-optimization/31041
15616 * tree-vect-transform.c (get_initial_def_for_induction): Call
15617 force_gimple_operand.
15618
15619 2007-03-17 Olga Golovanevsky <olga@il.ibm.com>
15620
15621 * ipa-type-escape.c (look_for_casts) : Revert code to use
15622 handled_component_p due to ada test a-numaux.adb.
15623
15624 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
15625
15626 * final.c (final_scan_insn): Alter the condition of a
15627 conditional trap if we have nonstandard CC.
15628
15629 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
15630
15631 * configure.ac: Remove excess quoting from asm line 0 test.
15632 * configure: Rebuilt.
15633
15634 2007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15635
15636 * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
15637 * c-common.c (convert_and_check): Move warning logic to...
15638 (warnings_for_convert_and_check): ...here. Define.
15639 * c-common.h (warnings_for_convert_and_check): Declare.
15640
15641 2007-03-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15642
15643 * pa.c (attr_length_call): Partially revert change of 2007-03-09.
15644 (output_call): Likewise.
15645
15646 2007-03-16 Richard Sandiford <richard@codesourcery.com>
15647
15648 * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
15649
15650 2007-03-16 Richard Sandiford <richard@codesourcery.com>
15651
15652 * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
15653
15654 2007-03-16 Uros Bizjak <ubizjak@gmail.com>
15655
15656 * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
15657 opteron, athlon-64 and athlon-fx processor_alias_table entries.
15658
15659 2007-03-16 Sebastian Pop <sebastian.pop@inria.fr>
15660
15661 PR tree-optimization/31183
15662 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
15663 Use double_int instead of unsigned int for representing access_strides.
15664 * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
15665
15666 2007-03-16 Richard Guenther <rguenther@suse.de>
15667
15668 PR tree-optimization/31146
15669 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
15670 to allow recursion of forward_propagate_addr_expr.
15671 (forward_propagate_addr_into_variable_array_index): Likewise.
15672 (forward_propagate_addr_expr): Likewise.
15673 (tree_ssa_forward_propagate_single_use_vars): Likewise.
15674 (forward_propagate_addr_expr_1): Recurse on simple copies
15675 instead of propagating into them. Do so for useless conversions
15676 as well.
15677 (forward_propagate_addr_expr): Clean up unused statements after
15678 recursion.
15679
15680 2007-03-16 Richard Guenther <rguenther@suse.de>
15681
15682 * builtins.c (expand_builtin_cexpi): Use the right argument
15683 for the expansion via cexp.
15684
15685 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
15686
15687 * configure.ac: Don't require ELF binutils to tolerate # 0 "".
15688 * configure: Rebuilt.
15689
15690 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
15691
15692 PR debug/29906
15693 * dwarf2out.c (force_type_die): Adjust comment.
15694 (dwarf2out_imported_module_or_decl): Handle base AT_import types.
15695
15696 2007-03-15 DJ Delorie <dj@redhat.com>
15697
15698 * config/frv/predicates.md (minmax_operator): Don't check operands
15699 here.
15700
15701 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
15702
15703 * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
15704 Update constant estimates of number of iterations.
15705 (record_nonwrapping_iv): Add "upper" argument. "data_size_bounds_p"
15706 argument renamed to "realistic".
15707 (compute_estimated_nb_iterations): Removed.
15708 (record_niter_bound): New function.
15709 (idx_infer_loop_bounds): For possible but unlikely tail arrays,
15710 call record_nonwrapping_iv with upper = false.
15711 (infer_loop_bounds_from_signedness): Pass upper argument to
15712 record_nonwrapping_iv.
15713 (estimate_numbers_of_iterations_loop): Do not call
15714 compute_estimated_nb_iterations. Record estimate based on profile
15715 information. Initialize the constant estimates of number of
15716 iterations.
15717 * tree-data-ref.c (estimated_loop_iterations): Return the recorded
15718 estimates.
15719 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
15720 number of iterations is too small.
15721 * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
15722 (EST_NOT_AVAILABLE): Removed.
15723 (struct loop): Replace estimated_nb_iterations by any_upper_bound,
15724 nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
15725 fields.
15726
15727 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
15728
15729 * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
15730 Handle NE_EXPR guards.
15731
15732 2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15733
15734 PR c++/24924
15735 * c-opts.c (c_common_post_options): Handle C++ post-processing here.
15736 Set also -pedantic-errors by default for the preprocessor unless
15737 -fpermissive is given.
15738
15739 2007-03-15 Richard Guenther <rguenther@suse.de>
15740
15741 PR middle-end/29719
15742 PR middle-end/31161
15743 * builtins.c (expand_builtin_cexpi): As a fallback if we
15744 don't have builtins for sincos or cexp create a function
15745 declaration for cexp and expand to a call to that.
15746 (expand_builtin_int_roundingfn): Always fall
15747 back to floor/ceil and its variants even if they may be
15748 not available.
15749
15750 2007-03-15 Steven Bosscher <steven@gcc.gnu.org>
15751
15752 PR middle-end/31159
15753 * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
15754 jump tables, move the call to delete_dead_jumptables from here...
15755 (cfg_layout_finalize): ...to here. But rebuild jump labels first.
15756 * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
15757 don't allow merging of blocks that try_redirect_by_replacing_jump
15758 also does not handle when not optimizing.
15759
15760 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
15761 Francois-Xavier Coudert <coudert@clipper.ens.fr>
15762
15763 * config/i386/i386.md (x86_sahf_1): Correctly handle
15764 HAVE_AS_IX86_SAHF.
15765
15766 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
15767
15768 PR target/31167
15769 * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
15770 x86_64_general_operand as operand[2] predicate. Remove "iF"
15771 from operand constraints and use "e" constraint instead.
15772 (*subti3_1, *subti3_1 splitter): Ditto.
15773 (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
15774 operand[1] predicate.
15775
15776 2007-03-14 Sebastian Pop <sebastian.pop@inria.fr>
15777
15778 * tree-loop-linear.c (gather_interchange_stats): For multidimensional
15779 arrays, multiply the access strides by the size of the sub-array.
15780 * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
15781
15782 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
15783
15784 * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
15785 the configured assembler supports the sahf mnemonic.
15786 * configure: Regenerate.
15787 * config.in: Regenerate.
15788
15789 * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
15790 emit "sahf" or ".byte\t0x9e" as asm template.
15791
15792 2007-03-14 Michael Meissner <michael.meissner@amd.com>
15793
15794 PR 31018
15795 * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
15796 option to replace hard coded TARGET_xxx in md file.
15797 (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
15798 (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
15799 (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
15800 (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
15801 (X86_TUNE_NOT_UNPAIRABLE): Ditto.
15802 (X86_TUNE_NOT_VECTORMODE): Ditto.
15803 (TUNE_SHORTEN_X87_SSE): Use new tuning option.
15804 (TUNE_AVOID_VECTOR_DECODE): Ditto.
15805 (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
15806 (TUNE_SLOW_IMUL_IMM8): Ditto.
15807 (TUNE_MOVE_M1_VIA_OR): Ditto.
15808 (TUNE_NOT_UNPAIRABLE): Ditto.
15809 (TUNE_NOT_VECTORMODE): Ditto.
15810
15811 * config/i386/i386.c (ix86_tune_features): Fill in new tuning
15812 options.
15813
15814 * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
15815 tuning options instead of hard coded TARGET_xxx.
15816 (fix ssemode peephole2's): Ditto.
15817 (imul peephole2's): Ditto.
15818 (movsi_or): Ditto.
15819 (movdi_or_rex64): Ditto.
15820 (move peephole2): Ditto.
15821 (not peephole2's): Ditto.
15822
15823 2007-03-14 Dirk Mueller <dmueller@suse.de>
15824
15825 * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
15826 * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
15827 * c-parser.c (c_parser_if_body): Always add an empty statement in case
15828 of empty body.
15829 * c-parser.c (c_parser_do_statement): Warn about empty body in
15830 do/while statement.
15831 * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
15832 * doc/invoke.texi (-Wempty-body): Update documentation.
15833
15834 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15835
15836 PR c/21438
15837 * c-common.h (warn_for_div_by_zero): Declare.
15838 * c-common.c (warn_for_div_by_zero): Define.
15839 * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
15840 warning.
15841
15842 2007-03-14 Richard Sandiford <richard@codesourcery.com>
15843
15844 * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
15845 to PREFIX and STANDARD_PREFIX.
15846
15847 2007-03-14 Richard Sandiford <richard@codesourcery.com>
15848 Phil Edwards <phil@codesourcery.com>
15849
15850 * gthr-vxworks.h: Add an extern "C" wrapper for C++.
15851 (__gthread_once_t): Remove busy field for RTPs.
15852 (__GTHREAD_ONCE_INIT): Update accordingly.
15853
15854 2007-03-14 Richard Sandiford <richard@codesourcery.com>
15855
15856 * doc/invoke.texi: Document VxWorks options.
15857
15858 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
15859
15860 * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
15861
15862 2007-03-13 Seongbae Park <seongbae.park@gmail.com>
15863
15864 PR tree-optimization/30590
15865 * tree-nrv.c (tree_nrv): Check for the partial update of the
15866 return value.
15867
15868 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
15869
15870 * flags.h (flag_random_seed): Remove declaration, in favor of...
15871 * toplev.h (get_random_seed, set_random_seed): ... these.
15872 * tree.c (get_file_function_name): Use the former.
15873 * opts.c (common_handle_option): Use the latter.
15874 * toplev.c
15875
15876 2007-03-13 Steven Bosscher <steven@gcc.gnu.org>
15877
15878 PR middle-end/31127
15879 * cse.c (cse_find_path): Do not bail out if a basic block that
15880 we already visited now becomes part of a path that starts at a
15881 different basic block. Just disallow this, to make sure we
15882 visit each basic block at most once.
15883
15884 2007-03-13 Jan Hubicka <jh@suse.cz>
15885
15886 * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold
15887 attributes, when profile esitmate is present, calls with very low
15888 frequency are cold.
15889
15890 2007-03-13 Zdenek Dvorak <dvorakz@suse.cz>
15891
15892 PR tree-optimization/30730
15893 PR tree-optimization/26900
15894 * tree-ssa-loop-niter.c: Include gmp.h.
15895 (bounds): New type.
15896 (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
15897 split_to_var_and_offset, determine_value_range,
15898 bound_difference_of_offsetted_base, refine_bounds_using_guard,
15899 bound_difference, bounds_add, bounds_negate,
15900 number_of_iterations_ne_max, dump_affine_iv): New functions.
15901 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
15902 assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
15903 difference of initial and final value of control iv to validate
15904 results.
15905 (number_of_iterations_cond): Add loop parameter. Determine bounds
15906 on the difference of the extremes of the control iv. Add dumps.
15907 (expand_simple_operations): Handle phi nodes.
15908 (simplify_using_initial_conditions): Do not record used conditions.
15909 (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
15910 Do not set additional_info.
15911 (implies_nonnegative_p, implies_ge_p): Removed.
15912 (derive_constant_upper_bound): Do not use parameter `additional'.
15913 (record_estimate): Parameter `additional' removed. Parameter
15914 `i_bound' added. Do not call derive_constant_upper_bound.
15915 (record_nonwrapping_iv): Use derive_constant_upper_bound to
15916 bound the number of iterations estimate.
15917 (estimate_numbers_of_iterations_loop): Pass the estimate from
15918 the number of iterations analysis to record_estimate.
15919 * tree.h (multiple_of_p): Declare.
15920 * tree-scalar-evolution.c (expression_expensive_p): Removed.
15921 (scev_const_prop): Do not check expression_expensive_p.
15922 * fold-const.c (multiple_of_p): Exported.
15923 * double-int.c (double_int_mask): Exported.
15924 * double-int.h (double_int_mask): Declare.
15925 * tree-flow.h (struct tree_niter_desc): Removed additional_info
15926 field. Added max field.
15927
15928 2007-03-13 David Taylor <taylor@candd.org>
15929
15930 PR driver/12448:
15931 * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
15932 default -MQ.
15933
15934 2007-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15935
15936 PR target/31123
15937 * pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for
15938 two unamed patterns.
15939
15940 2007-03-13 Uros Bizjak <ubizjak@gmail.com>
15941
15942 * config/i386/i386.opt (mcx16, msahf): New options.
15943 * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
15944 (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
15945
15946 * config/i386/driver-i386.c (bit_LAHF_LM): New define.
15947 (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
15948 Output -mcx16 and -msahf options when corresponding bit is set.
15949
15950 * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
15951 and -msahf options.
15952
15953 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
15954
15955 * configure.ac: Test for assembler tolerance to # 0 "".
15956 * configure, config.in: Rebuilt.
15957 * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
15958
15959 2007-03-13 Geoffrey Keating <geoffk@apple.com>
15960
15961 * doc/invoke.texi (Spec Files): Update for '%{,' spec.
15962
15963 * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
15964 (handle_syscall): Handle direct system calls.
15965 * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
15966
15967 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
15968
15969 * doc/invoke.texi: Fix cpp.info cross-reference.
15970 * doc/passes.texi: Fix gcc.info cross-reference.
15971
15972 2007-03-12 Zdenek Dvorak <dvorakz@suse.cz>
15973
15974 PR tree-optimization/30835
15975 * lambda-code.c (can_convert_to_perfect_nest): Check whether
15976 bb_for_stmt is not NULL before accessing it.
15977
15978 2007-03-12 Joseph Myers <joseph@codesourcery.com>
15979
15980 * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
15981 some multilibs.
15982
15983 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
15984
15985 PR 30635
15986 * doc/install.texi: Document --enable-stage1-languages
15987
15988 2007-03-12 Steven Bosscher <steven@gcc.gnu.org>
15989
15990 * tree-pass.h (pass_into_cfg_layout_mode,
15991 pass_outof_cfg_layout_mode): Declare.
15992 * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
15993 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
15994 * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
15995 (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
15996
15997 2007-03-12 Seongbae Park <seongbae.park@gmail.com>
15998
15999 * c-decl.c (warn_variable_length_array): New function.
16000 Refactored from grokdeclarator to handle warn_vla
16001 and handle unnamed array case.
16002 (grokdeclarator): Refactored VLA warning case.
16003 * c.opt (Wvla): New flag.
16004 * doc/invoke.texi (Wvla): New warning.
16005
16006 2007-03-12 Richard Henderson <rth@redhat.com>
16007
16008 * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
16009 (TARGET_SECTION_TYPE_FLAGS): New.
16010
16011 2007-03-12 Richard Henderson <rth@redhat.com>
16012
16013 * config/darwin.c (machopic_reloc_rw_mask): New.
16014 * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
16015 * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
16016
16017 2007-03-12 Mark Mitchell <mark@codesourcery.com>
16018
16019 * cppdefault.c (cpp_EXEC_PREFIX): New variable.
16020 * cppdefault.h (cpp_PREFIX): Document.
16021 (cpp_PREFIX_len): Likewise.
16022 (cpp_EXEC_PREFIX): New variable.
16023 * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
16024 * c-incpath.c (add_standard_paths): Correct logic for relocating
16025 paths within prefix.
16026
16027 2007-03-12 Uros Bizjak <ubizjak@gmail.com>
16028
16029 * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
16030 fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
16031 mode macro.
16032 (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
16033 fix_truncdfdi_sse using SSEMODEF mode macro.
16034 (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
16035 fix_truncdfsi_sse using SSEMODEF mode macro.
16036 (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
16037 (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
16038
16039 2007-03-12 Richard Sandiford <richard@codesourcery.com>
16040
16041 * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
16042 elfos.h to tm_file.
16043
16044 2007-03-12 Olga Golovanevsky <olga@il.ibm.com>
16045
16046 * tree.h : Add multiple_of_p declaration.
16047 * fold-const.c (multiple_of_p): Make multiple_of_p public.
16048 * ipa-type-escape.c (results_of_malloc): Redundant.
16049 (visited_stmts): New. Visited stmt for walk_use_def_chains.
16050 (cast_type): Extended with new members.
16051 (check_cast): Returns cast_type.
16052 (cast): New structure for data of walk_use_def_chains.
16053 (is_malloc_result, is_cast_from_non_pointer_1,
16054 is_cast_from_non_pointer,
16055 is_array_access_through_pointer_and_index): New functions.
16056 (look_for_casts): Returns cast types.
16057 (check_call): Returns void.
16058 (okay_pointer_operation): Use support of pointer plus index,
16059 pointer plus constant and allow all multiplications.
16060
16061 2007-03-11 Richard Guenther <rguenther@suse.de>
16062
16063 PR tree-optimization/31115
16064 * tree-vrp.c (extract_range_from_binary_expr): Make sure
16065 the shift count is positive and non-anti-range for RSHIFT_EXPR.
16066 A shift count of zero is not special as with *_DIV_EXPR.
16067 (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
16068 direction.
16069
16070 2007-03-11 Ian Lance Taylor <iant@google.com>
16071
16072 * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
16073 the *_DIV_EXPR codes correctly with overflow infinities.
16074
16075 2007-03-11 Ira Rosen <irar@il.ibm.com>
16076
16077 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
16078 indicate success/failure of the analysis. Add negation to subtrahend
16079 in case of subtraction. Fail if both operands contain constants.
16080 (create_data_ref): Fail if analyze_offset fails.
16081
16082 2007-03-11 Uros Bizjak <ubizjak@gmail.com>
16083
16084 * config/i386/i386.md (frndintxf2): Rename to ...
16085 (rintxf2): ... this. Remove expander having same name.
16086 (rintsf2, rintdf2): Implement using SSEMODEF macro.
16087 (roundsf2, rounddf2): Ditto.
16088 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
16089 (lround<mode>di2, lround<mode>si2): Ditto.
16090
16091 2007-03-11 Steven Bosscher <steven@gcc.gnu.org>
16092
16093 * lower-subreg.c: Include except.h.
16094 (decompose_multiword_subregs): Verify that the only control flow
16095 insns we can split are loads to multi-words pseudos.
16096 Handle breaking such blocks after splitting, instead of calling
16097 find_many_sub_basic_blocks.
16098
16099 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
16100 on the new basic block. Add a lengthy comment explaining why we
16101 thought this was necessary.
16102 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
16103
16104 2007-03-10 Mark Mitchell <mark@codesourcery.com>
16105
16106 PR c++/30924
16107 * tree.c (walk_type_fields): Recurse into the element type of
16108 ARRAY_TYPEs if there is a pointer set.
16109
16110 2007-03-10 Dirk Mueller <dmueller@suse.de>
16111
16112 * c-common.c (warn_logical_operator): Fix condition.
16113
16114 2007-03-10 Tobias Schl�ter <tobi@gcc.gnu.org>
16115
16116 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
16117 quotation mark.
16118 * config/darwin.c (machopic_select_section): Remove superfluous
16119 argument in call to categorize_decl_for_section. Remove unused
16120 variable shlib.
16121
16122 2007-03-10 Joseph Myers <joseph@codesourcery.com>
16123
16124 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
16125 defined.
16126 * configure: Regenerate.
16127
16128 2007-03-10 Uros Bizjak <ubizjak@gmail.com>
16129
16130 PR target/31101
16131 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
16132 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
16133 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
16134 Add LABEL_NUSES to emitted label.
16135 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
16136 branch probability value to emitted jump insn.
16137 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
16138 Do not check life information and do not re-arrange input operands
16139 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
16140
16141 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
16142
16143 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
16144 the change of decode_asm_operands.
16145
16146 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
16147
16148 * mode-switching.c (create_pre_exit): Skip blockage insn.
16149
16150 2007-03-09 Diego Novillo <dnovillo@redhat.com>
16151
16152 * tree-pass.h (TODO_update_smt_usage): Remove.
16153 Update all users.
16154 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
16155 argument SOME.
16156 Update all users.
16157
16158 2007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16159
16160 * pa.c (attr_length_call): Revise condition for long
16161 pc-relative branch.
16162 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long
16163 local calls on the SOM target. Don't use "LONG_PIC_PCREL" call
16164 sequence on SOM target.
16165
16166 2007-03-09 Geoffrey Keating <geoffk@apple.com>
16167
16168 * gcc.c: Document %{, in big comment at top.
16169 (input_suffix_matches): Remove special handling for .s and
16170 .S.
16171 (input_spec_matches): New.
16172 (handle_braces): Handle %{,.
16173 (validate_switches): ',' indicates a value which is not a switch.
16174 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
16175 to detect assembler input.
16176 * config/i386/sol2.h (CPP_SPEC): Likewise.
16177 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
16178 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
16179 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
16180 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
16181 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
16182 -m64 causes deployment target to default to 10.5.
16183 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
16184
16185 2007-03-09 Richard Henderson <rth@redhat.com>
16186
16187 PR target/26090
16188 * target.h (targetm.asm.out.reloc_rw_mask): New.
16189 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
16190 (TARGET_ASM_OUT): Use it.
16191 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
16192 * varasm.c (categorize_decl_for_section): Remove shlib argument;
16193 use the new reloc_rw_mask target hook instead.
16194 (default_section_type_flags_1): Merge into...
16195 (default_section_type_flags): ... here.
16196 (decl_readonly_section_1): Merge into...
16197 (decl_readonly_section): ... here.
16198 (default_elf_select_section_1): Merge into...
16199 (default_elf_select_section): ... here.
16200 (default_unique_section_1): Merge into...
16201 (default_unique_section): ... here.
16202 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
16203 (default_select_rtx_section): Use it.
16204 (default_elf_select_rtx_section): Likewise.
16205 * output.h: Update to match.
16206 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
16207 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
16208 (TARGET_ASM_RELOC_RW_MASK): New.
16209 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
16210 to categorize_decl_for_section.
16211 (x86_64_elf_unique_section): Likewise.
16212 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
16213 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
16214 (TARGET_ASM_RELOC_RW_MASK): New.
16215 * config/ia64/ia64.c (ia64_rwreloc_select_section,
16216 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
16217 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
16218 (TARGET_RWRELOC): Remove.
16219 (ia64_section_type_flags): Adjust call to default_section_type_flags.
16220 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
16221 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
16222 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
16223 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
16224 (rs6000_xcoff_select_section): Use decl_readonly_section.
16225 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
16226 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
16227 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
16228 (TARGET_SECTION_TYPE_FLAGS): Remove.
16229 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
16230
16231 2007-03-09 Roger Sayle <roger@eyesopen.com>
16232
16233 * fold-const.c (fold_comparison): Remove compile-time evaluation of
16234 complex constant equality/inequality comparisons for here.
16235 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
16236 known at compile-time or can be simplified to a scalar comparison.
16237 (fold_relational_const): Move compile-time evaluation of complex
16238 constant equality/inequality comparisons to here.
16239
16240 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
16241
16242 PR rtl-optimization/30643
16243 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
16244 dest_addr_elt.
16245 (fold_rtx): Recurse, like before 2006-11-03.
16246
16247 2007-03-09 DJ Delorie <dj@redhat.com>
16248
16249 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
16250 m32c-pragma.o.
16251
16252 2007-03-09 Aldy Hernandez <aldyh@redhat.com>
16253
16254 PR tree-optimization/30375
16255 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
16256 LHS of statements is not the same.
16257 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
16258
16259 2007-03-09 Chao-ying Fu <fu@mips.com>
16260
16261 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
16262 REV 2.
16263 * doc/invoke.texi (-mdspr2): Document new option.
16264 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
16265 New unspec for DSP REV 2.
16266 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
16267 these instructions are extended in DSP REV 2.
16268 (mips-dspr2.md): Include.
16269 * config/mips/mips.opt (mdspr2): New option.
16270 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
16271 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
16272 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
16273 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
16274 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
16275 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
16276 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
16277 and 2 builtins.
16278 (bdesc_map): Add one field of unsupported_target_flags.
16279 (bdesc_arrays): Update entries to have extra fields. Add
16280 dsp_32only_bdesc.
16281 (mips_init_builtins): Initialize new function types.
16282 Check unsupported_target_fileds to filter out builtins.
16283 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
16284 TARGET_DSPR2.
16285 (ASM_SPEC): Pass mdspr2 to the assembler.
16286 * config/mips/mips-dspr2.md: New file.
16287
16288 2007-03-09 Sa Liu <saliu@de.ibm.com>
16289
16290 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
16291
16292 2007-03-09 Ian Lance Taylor <iant@google.com>
16293
16294 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
16295 argument) like -Wstrict-overflow=2.
16296 * doc/invoke.texi (Warning Options): Update documentation.
16297
16298 2007-03-09 Dirk Mueller <dmueller@suse.de>
16299
16300 PR c++/17946
16301 * doc/invoke.texi (-Wlogical-op): Document.
16302 * common.opt (-Wlogical-op): New.
16303 * c-common.h (warn_logical_operator): Declare.
16304 * c-common.c (warn_logical_operator): Define.
16305 * c-typeck.c (parser_build_binary_op): Call
16306 warn_logical_operator.
16307
16308 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
16309
16310 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
16311 * final.c (final_scan_insn): Test for non-"" file name.
16312
16313 2007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
16314
16315 * doc/loop.texi: Document the Omega linear constraints solver.
16316 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
16317 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
16318 omega-hash-table-size, omega-max-keys, and
16319 omega-eliminate-redundant-constraints.
16320 * tree-pass.h (pass_check_data_deps): Declared.
16321 * omega.c: New.
16322 * omega.h: New.
16323 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
16324 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
16325 pass_check_data_deps): New.
16326 * tree-data-ref.c (init_data_ref): Remove declaration.
16327 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
16328 (analyze_array): Renamed init_array_ref, move up initializations.
16329 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
16330 Removed arguments that are set to NULL.
16331 (analyze_indirect_ref): Correct indentation, correct call to
16332 init_pointer_ref.
16333 (object_analysis): Call init_array_ref instead of analyze_array.
16334 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
16335 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
16336 of DR_ACCESS_FNS_ADDR.
16337 (init_omega_eq_with_af, omega_extract_distance_vectors,
16338 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
16339 ddr_consistent_p): New.
16340 (compute_affine_dependence): Check consistency of ddrs when
16341 flag_check_data_deps is passed.
16342 (analyze_all_data_dependences): Uncomment.
16343 (tree_check_data_deps): New.
16344 * tree-data-ref.h: Include omega.h.
16345 (DR_ACCESS_FNS_ADDR): Removed.
16346 (data_dependence_relation): Add inner_loop.
16347 (DDR_INNER_LOOP): New.
16348 * common.opt (fcheck-data-deps): New.
16349 * tree-flow.h (tree_check_data_deps): Declare.
16350 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
16351 (OBJS-common): Depend on omega.o.
16352 (omega.o): Define.
16353 * passes.c (pass_check_data_deps): Scheduled.
16354 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
16355 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
16356 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
16357 PARAM_VECT_MAX_VERSION_CHECKS,
16358 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
16359
16360 2007-03-09 Richard Guenther <rguenther@suse.de>
16361
16362 PR tree-optimization/30904
16363 PR middle-end/31058
16364 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
16365 the same way as *_DIV_EXPR.
16366
16367 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
16368
16369 * recog.c (decode_asm_operands): No mixed declarations and code.
16370
16371 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
16372
16373 * rtl.def (ASM_INPUT): Add location.
16374 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
16375 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
16376 (decode_asm_operands): Add loc operand.
16377 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
16378 * stmt.c (expand_asm): Rename to...
16379 (expand_asm_loc): ... this. Add locus argument. Pass it on to
16380 gen_rtx_ASM_INPUT_loc.
16381 (expand_asm_expr): Adjust.
16382 * recog.c (decode_asm_operands): Add loc operand.
16383 (check_asm_operands, extract_insn): Adjust.
16384 * reload1.c (maybe_fix_stack_asms): Likewise.
16385 * final.c (asm_insn_count): Likewise.
16386 (final_scan_insn): Output # line before and after asm.
16387
16388 2007-03-09 Daniel Berlin <dberlin@dberlin.org>
16389
16390 * tree-ssa-structalias.c (variable_info): Remove
16391 finished_solution.
16392 (new_var_info): Ditto.
16393 (shared_bitmap_info_t): New structure.
16394 (shared_bitmap_table): New variable.
16395 (shared_bitmap_hash): New function.
16396 (shared_bitmap_eq): Ditto
16397 (shared_bitmap_lookup): Ditto.
16398 (shared_bitmap_add): Ditto.
16399 (merge_smts_into): Change to take bitmap directly.
16400 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
16401 (init_alias_vars): Init shared bitmap hashtable.
16402 (delete_points_to_sets): Delete shared bitmap hashtable.
16403 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
16404 is_aliased removal as a change that was still necessary was
16405 deleted.
16406
16407 2007-03-09 Uros Bizjak <ubizjak@gmail.com>
16408
16409 * config/i386/i386.h (override_options): Conditionally disable
16410 x86_sahf for 64bit targets only.
16411
16412 2007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
16413
16414 PR C/31072
16415 * c-decl.c (merge_decls): Don't call make_var_volatile.
16416 * varasm.c (make_var_volatile): Remove.
16417 * output.h (make_var_volatile): Remove.
16418
16419 2007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
16420
16421 PR tree-optimization/31085
16422 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
16423
16424 2007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16425
16426 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
16427 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
16428 ATTR_CONST_NOTHROW_LIST.
16429
16430 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
16431 FIX_TRUNC_EXPR.
16432
16433 2007-03-08 Diego Novillo <dnovillo@redhat.com>
16434
16435 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
16436
16437 2007-03-08 Geoffrey Keating <geoffk@apple.com>
16438
16439 PR 31013
16440 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
16441 is declared.
16442 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
16443 passed, use shared libgcc.
16444
16445 2007-03-08 Roger Sayle <roger@eyesopen.com>
16446
16447 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
16448 instead of calling build2 with a GIMPLE_MODIFY_STMT.
16449 (honor_protect_cleanup_actions, lower_try_finally_switch):
16450 Likewise.
16451 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
16452 ifc_temp_var): Likewise.
16453 * tree-inline.c (setup_one_parameter): Likewise.
16454 * tree-mudflap.c (mf_decl_cache_locals,
16455 mf_build_check_statement_for): Likewise.
16456 * tree-nested.c (init_tmp_var, save_tmp_var,
16457 finalize_nesting_tree_1): Likewise.
16458 * tree-outof-ssa.c (insert_copy_on_edge,
16459 insert_backedge_copies): Likewise.
16460 * tree-profile.c (tree_gen_edge_profiler,
16461 tree_gen_ic_profiler): Likewise.
16462 * tree-scalar-evolution.c (scev_const_prop): Likewise.
16463 * tree-sra.c (sra_build_assignment): Likewise.
16464 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
16465 * tree-ssa-math-opts.c (insert_reciprocals,
16466 execute_cse_sincos_1): Likewise.
16467 * tree-tailcall.c (adjust_accumulator_values,
16468 adjust_return_value): Likewise.
16469 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
16470 * tree-vect-transform.c (vect_create_data_ref_ptr,
16471 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
16472 vect_create_epilog_for_reduction, vectorizable_reduction,
16473 vectorizable_call, vectorizable_conversion,
16474 vectorizable_assignment, vectorizable_operation,
16475 vectorizable_type_demotion, vect_gen_widened_results_half,
16476 vect_permute_store_chain, vectorizable_store,
16477 vect_setup_realignment, vect_permute_load_chain,
16478 vectorizable_load, vectorizable_condition,
16479 vect_create_cond_for_align_checks): Likewise.
16480 * tree-vrp.c (build_assert_expr_for): Likewise.
16481
16482 2007-03-08 Ian Lance Taylor <iant@google.com>
16483
16484 * tree-vrp.c: Include "intl.h".
16485 (usable_range_p): New static function.
16486 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
16487 overflowed values, juts set *strict_overflow_p.
16488 (compare_values): Only return -2 if one of the operands is not a
16489 constant.
16490 (compare_ranges): Call usable_range_p.
16491 (compare_range_with_value): Likewise.
16492 (vrp_evaluate_conditional_warnv): Rename from
16493 vrp_evaluate_conditional. Make static. Change all callers.
16494 (vrp_evaluate_conditional): New function.
16495 (simplify_div_or_mod_using_ranges): Issue warning about reliance
16496 on signed overflow.
16497 (simplify_abs_using_ranges): Likewise.
16498 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
16499 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
16500 within_stmt parameter.
16501 * tree-ssa-propagate.c (fold_predicate_in): Update call to
16502 vrp_evaluate_conditional.
16503 * tree-ssa-threadedge.c
16504 (record_temporary_equivalences_from_stmts_at_dest): Change
16505 simplify parameter to take a second tree parameter.
16506 (simplify_control_stmt_condition): Likewise.
16507 (thread_across_edge): Likewise.
16508 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
16509 (thread_across_edge): Likewise.
16510 * Makefile.in (tree-vrp.o): Depend upon intl.h.
16511
16512 2007-03-08 Uros Bizjak <ubizjak@gmail.com>
16513
16514 * config/i386/i386.h (TARGET_SAHF): New define.
16515 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
16516 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
16517 (x86_sahf): New global variable.
16518 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
16519 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
16520 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
16521 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
16522 for 64-bit.
16523 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
16524 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
16525 when expanding fcomi/sahf based tests.
16526 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
16527 expanding sahf based alternative. Emit sahf based sequence when
16528 optimizing for code size.
16529 * config/i386/i386.md (x86_sahf_1): Do not disable for
16530 TARGET_64BIT, enable for TARGET_SAHF.
16531
16532 2007-03-08 Martin Michlmayr <tbm@cyrius.com>
16533
16534 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
16535 spurious whitespace from error message.
16536
16537 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
16538
16539 PR c++/30852
16540 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
16541
16542 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
16543
16544 * c-decl.c (grokdeclarator): Disable warnings for anonymous
16545 bitfields.
16546 * tree-sra.c (instantiate_element): Propagate disabled warnings
16547 from the element itself to the created variable.
16548
16549 2007-03-07 Richard Henderson <rth@redhat.com>
16550
16551 PR target/30848
16552 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
16553 silently fix up the stack in the case of a missing register.
16554
16555 2007-03-07 Paul Brook <paul@codesourcery.com>
16556
16557 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
16558
16559 2007-03-07 Joseph Myers <joseph@codesourcery.com>
16560
16561 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
16562 New.
16563 (phase1_vrs): Use them.
16564 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
16565 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
16566 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
16567 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
16568 __gnu_Unwind_Restore_WMMXC if required.
16569 (_Unwind_VRS_Pop): Implement iWMMXt support.
16570 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
16571 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
16572 gnu_Unwind_Save_WMMXC): Define.
16573
16574 2007-03-07 Richard Sandiford <richard@codesourcery.com>
16575
16576 * config/vxworks.h (vxworks_override_options): Declare.
16577 (VXWORKS_OVERRIDE_OPTIONS): Use it.
16578 * config/vxworks.c: Include target.h and toplev.h.
16579 (vxworks_override_options): New function.
16580 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
16581
16582 2007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
16583
16584 * config/s390/s390.c (override_options): Don't emit an error when
16585 -mstack-size is used without providing -mstack-guard.
16586 (s390_emit_prologue): Choose stack_guard value automatically if not
16587 provided via command line.
16588 * doc/invoke.texi: Adjust description of -mstack-guard and
16589 -mstack-size.
16590
16591 2007-03-07 Richard Sandiford <richard@codesourcery.com>
16592
16593 * config/i386/i386.c (output_set_got): Add a GOT initialization
16594 sequence for VxWorks PIC.
16595 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
16596 around labels as well as symbols. Use gotoff_operand instead
16597 of local_symbolic_operand.
16598 (legitimize_pic_address): Use gotoff_operand instead of
16599 local_symbolic_operand. Use @GOT accesses for labels as
16600 well as symbols.
16601 (ix86_output_addr_diff_elt): Use PC-relative rather than
16602 GP-relative offsets for VxWorks PIC.
16603 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
16604 no_new_pseudos. Check whether the returned register is op0.
16605 * config/i386/i386.md (tablejump): Use PC-relative rather than
16606 GP-relative offsets for VxWorks PIC.
16607 * config/i386/predicates.md (gotoff_operand): New predicate.
16608
16609 2007-03-06 Richard Sandiford <richard@codesourcery.com>
16610
16611 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
16612 before defining.
16613 * config/vxworks-dummy.h: New file.
16614 * config/i386/i386.h: Include it.
16615
16616 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
16617
16618 * dwarf2out.c (is_inlined_entry_point): New
16619 (add_high_low_attributes): Emit DW_AT_entry_pc along with
16620 DW_AT_ranges if the first subblock is the entry point.
16621
16622 2007-03-06 David Daney <ddaney@avtrex.com>
16623
16624 * doc/install.texi (mips-*-*): Change recommended binutils
16625 version.
16626
16627 2007-03-06 Anatoly Sokolov <aesok@post.ru>
16628
16629 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
16630 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
16631 devices.
16632 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
16633 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
16634
16635 2007-03-06 Jan Hubicka <jh@suse.cz>
16636
16637 * errors.h (warning, error, fatal, internal_error): Mark as cold.
16638 * predict.c (maybe_hot_bb): Cold functions are never hot; hot
16639 functions are hot.
16640 (probably_cold_bb_p): Cold functions are cold.
16641 (probably_never_executed_bb_p): Cold functions are cold.
16642 (tree_bb_level_predictions): Predict calls to cold functions as not
16643 taken.
16644 (compute_function_frequency): Check hot/cold attributes.
16645 * function.h (function_frequency): Update comments.
16646 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
16647 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
16648 (c_common_att): Add cold and hot.
16649
16650 * doc/extend.texi (hot,cold attributes): Document.
16651
16652 2007-03-06 Andrew Haley <aph@redhat.com>
16653
16654 * function.c (expand_function_end): Move blockage to just after we
16655 emit the label for the naked return from the function.
16656
16657 2007-03-06 Richard Sandiford <richard@codesourcery.com>
16658
16659 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
16660 before redefining.
16661
16662 2007-03-06 Jan Hubicka <jh@suse.cz>
16663
16664 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
16665 loaded for constant large models. Non-large 64bit PIC can do.
16666 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
16667 * cmodel.h: Add LARGE PIC.
16668 * i386.md (UNSPEC_PLTOFF): New.
16669 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other
16670 unspecs as needed.
16671 (*call_1_rex64): Disable for large models.
16672 (*call_1_rex64_large): New.
16673 (*call_value_1_rex64): Disable for large models.
16674 (*call_value_1_rex64_large): New.
16675 (set_rip_rex4): New.
16676 (set_got_offset_rex64): New.
16677 * predicates.md (constant_call_address_operand): For large model
16678 constant calls are not possible.
16679 * i386-protos.h (construct_plt_address): Declare.
16680 * i386.c (override_options): Accept large models.
16681 (ix86_expand_prologue): Expand large PIC GOT pointer load.
16682 (legitimate_constant_p): Add new UNSPECs.
16683 (legitimate_pic_operand_p): Likewise.
16684 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
16685 (legitimize_pic_address): Do easy RIP relative way for TLS only for
16686 non-large model.
16687 (output_pic_addr_const): Add PLTOFF.
16688 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
16689 (ix86_expand_move): Legitimize pic address when in PIC mode.
16690 (construct_plt_address): New function.
16691 (ix86_expand_call): Offload the address to register and use GOT
16692 pointer for large model.
16693 * invoke.texi (mcmodel=large): Update documentation.
16694
16695 2007-03-06 Richard Henderson <rth@redhat.com>
16696
16697 * config/i386/i386.c (x86_use_leave, x86_push_memory,
16698 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
16699 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
16700 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
16701 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
16702 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
16703 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
16704 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
16705 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
16706 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
16707 x86_partial_reg_dependency, x86_memory_mismatch_stall,
16708 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
16709 x86_sse_partial_reg_dependency, x86_sse_split_regs,
16710 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
16711 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
16712 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
16713 x86_schedule, x86_use_bt, x86_pad_returns,
16714 x86_use_xchgb): Merge into ...
16715 (ix86_tune_features): ... here. New array.
16716 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
16717 x86_bswap): Merge into ...
16718 (ix86_arch_features): ... here. New array.
16719 (x86_3dnow_a): Remove.
16720 (x86_accumulate_outgoing_args): Make static.
16721 (x86_arch_always_fancy_math_387): Make static.
16722 (ix86_tune_mask, ix86_arch_mask): Move ...
16723 (override_options): ... to local variables here. Apply the
16724 appropriate mask to each element of ix86_arch_features and
16725 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
16726 as were done in the old macros.
16727 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
16728 * config/i386/i386.h (x86_use_leave, x86_push_memory,
16729 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
16730 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
16731 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
16732 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
16733 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
16734 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
16735 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
16736 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
16737 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
16738 x86_partial_reg_dependency, x86_memory_mismatch_stall,
16739 x86_accumulate_outgoing_args, x86_prologue_using_move,
16740 x86_epilogue_using_move, x86_decompose_lea,
16741 x86_arch_always_fancy_math_387, x86_shift1,
16742 x86_sse_partial_reg_dependency, x86_sse_split_regs,
16743 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
16744 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
16745 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
16746 x86_use_incdec, x86_pad_returns, x86_bswap,
16747 x86_partial_flag_reg_stall): Remove.
16748 (enum ix86_tune_indices): New.
16749 (ix86_tune_features): New.
16750 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
16751 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
16752 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
16753 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
16754 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
16755 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
16756 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
16757 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
16758 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
16759 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
16760 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
16761 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
16762 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
16763 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
16764 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
16765 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
16766 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
16767 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
16768 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
16769 TARGET_EXT_80387_CONSTANTS): Use it.
16770 (enum ix86_arch_indices): New.
16771 (ix86_arch_features): New.
16772 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
16773 TARGET_BSWAP): Use it.
16774 (ix86_tune_mask, ix86_arch_mask): Remove.
16775
16776 2007-03-06 Joseph Myers <joseph@codesourcery.com>
16777
16778 PR bootstrap/31020
16779 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
16780 Define using $${sysroot_headers_suffix}.
16781 * configure: Regenerate.
16782 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
16783 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
16784 defined.
16785 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
16786 * gcc.c (print_sysroot_headers_suffix): New.
16787 (option_map): Include --print-sysroot-headers-suffix.
16788 (display_help): Mention -print-sysroot-headers-suffix.
16789 (process_command): Handle -print-sysroot-headers-suffix.
16790 (do_spec_1): Append multilib directory to include-fixed path if
16791 sysroot suffixes in use.
16792 (main): Handle -print-sysroot-headers-suffix.
16793 * Makefile.in (start.encap): Don't depend on xlimits.h
16794 (xlimits.h): Remove.
16795 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
16796 limits.h for each multilib in fixinc_list.
16797 (fixinc_list, s-fixinc_list): New.
16798 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
16799 generate them for each multilib in fixinc_list.
16800 (stmp-fixproto): Use include-fixed. Run fixproto for each
16801 multilib in fixinc_list.
16802 (mostlyclean): Don't remove xlimits.h.
16803 (clean): Remove include-fixed.
16804 (real-install-headers-tar, real-install-headers-cpio,
16805 real-install-headers-cp): Don't copy include, only include-fixed.
16806 (install-mkheaders): Depend on fixinc_list. Don't depend on
16807 xlimits.h. Save limits.h files for each multilib in fixinc_list.
16808 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
16809 SYSTEM_HEADER_DIR setting in mkheaders.conf.
16810
16811 2007-03-06 Jan Hubicka <jh@suse.cz>
16812
16813 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
16814 NANs easilly.
16815
16816 2007-03-06 Richard Sandiford <richard@codesourcery.com>
16817
16818 * configure.ac: Allow tm_file to contain build-directory files.
16819 * configure: Regenerate.
16820 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
16821 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
16822 * config/m68k/print-sysroot-suffix.sh: New file.
16823
16824 2007-03-06 Richard Sandiford <richard@codesourcery.com>
16825
16826 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
16827 of pic_offset_table_rtx if reload_completed.
16828 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
16829 PIC_OFFSET_TABLE_REGNUM.
16830 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
16831 return true.
16832 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
16833 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
16834
16835 2007-03-06 Richard Sandiford <richard@codesourcery.com>
16836
16837 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
16838 functions that call eh_return.
16839
16840 2007-03-06 Richard Sandiford <richard@codesourcery.com>
16841
16842 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
16843 functions that need a constant pool.
16844
16845 2007-03-06 Richard Sandiford <richard@codesourcery.com>
16846
16847 PR target/28181
16848 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
16849 (m68k_preferred_reload_class): Likewise.
16850 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
16851 (SECONDARY_RELOAD_CLASS): Define.
16852 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
16853 (LIMIT_RELOAD_CLASS): Delete.
16854 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
16855 registers from storing bytes.
16856 (m68k_secondary_reload_class): New function.
16857 (m68k_preferred_reload_class): Likewise.
16858
16859 2007-03-06 Richard Sandiford <richard@codesourcery.com>
16860
16861 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
16862 leaf functions.
16863 (m68k_expand_prologue): Likewise.
16864
16865 2007-03-06 Richard Sandiford <richard@codesourcery.com>
16866
16867 * config/m68k/m68k-protos.h (output_sibcall): Declare.
16868 (mips_expand_epilogue): Add a bool parameter.
16869 (m68k_legitimize_sibcall_address): Declare.
16870 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
16871 (m68k_expand_epilogue): Add a parameter to select between sibling
16872 and normal epilogues. Only generate a return for the latter.
16873 (m68k_ok_for_sibcall_p): New function.
16874 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
16875 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
16876 (sibcall_value, *sibcall_value): Likewise.
16877 (*call, *call_value): Require !SIBLING_CALL_P.
16878 (epilogue): Update call to m68k_expand_epilogue.
16879 (sibcall_epilogue): New pattern.
16880 * config/m68k/predicates.md (const_call_operand): Say that this
16881 predicate applies to sibling calls too.
16882 (sibcall_operand): New predicate.
16883
16884 2007-03-06 Richard Sandiford <richard@codesourcery.com>
16885
16886 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
16887 alternatives as movsi_cf.
16888 (movsf_cf_hard): Add commentary.
16889
16890 2007-03-06 Kazu Hirata <kazu@codesourcery.com>
16891 Richard Sandiford <richard@codesourcery.com>
16892
16893 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
16894 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
16895 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
16896 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
16897 as being live on exit from an interrupt function.
16898 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
16899 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
16900 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
16901 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
16902 (m68k_interrupt_function_p): Globalize.
16903 (m68k_compute_frame_layout): Remove reverse mask code.
16904 (m68k_emit_movem, m68k_set_frame_related): New functions.
16905 (m68k_output_function_prologue): Delete in favor of...
16906 (m68k_expand_prologue): ...this new function.
16907 (m68k_output_function_epilogue): Delete in favor of...
16908 (m68k_expand_epilogue): ...this new function.
16909 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
16910 functions.
16911 (print_operand): Handle %?.
16912 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
16913 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
16914 (prologue, epilogue): New patterns.
16915 (return): Turn into a define_expand.
16916 (*return): New pattern, derived from old "return" pattern. Use rte
16917 rather than rts for interrupt functions. Only use rtd if the pop
16918 count is nonzero.
16919 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
16920 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
16921 (link, *link, unlink, *unlink, load_got): Likewise.
16922
16923 2007-03-06 Richard Sandiford <richard@codesourcery.com>
16924
16925 PR target/23482
16926 PR target/17114
16927 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
16928 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
16929 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
16930 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
16931 and m68k_matches_u_p.
16932 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
16933 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
16934 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
16935 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
16936 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
16937 (REG_STRICT_P): New macro.
16938 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
16939 PCREL_GENERAL_OPERAND_OK.
16940 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
16941 m68k_legitimate_base_reg_p.
16942 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
16943 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
16944 (PIC_CASE_VECTOR_ADDRESS): Update comment.
16945 * config/m68k/m68k.c (m68k_address): New structure.
16946 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
16947 (m68k_decompose_index, m68k_legitimate_constant_address_p)
16948 (m68k_jump_table_ref_p, m68k_decompose_address)
16949 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
16950 (m68k_matches_u_p): New functions.
16951 (print_operand_address): Rewrite to use m68k_decompose_index.
16952
16953 2007-03-05 David Taylor <dtaylor@emc.com>
16954
16955 * gcc.c: Correct copyright date in --version output.
16956
16957 2007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16958
16959 * pa.md: In unamed move patterns, disparge copies between general
16960 and floating point registers using '?' modifier. Don't include 'f'
16961 constraint for register preferences in DImode, SImode, HImode and
16962 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
16963 Remove constraints for copies between general and floating registers
16964 in soft-float DFmode pattern.
16965 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
16966 floating register.
16967 (movsf): Likewise.
16968
16969 2007-03-05 Mike Stump <mrs@apple.com>
16970
16971 * c-common.c (targetcm): Add.
16972 * c-opts.c (c_common_handle_option): Handle language specific
16973 target options.
16974 * opts.c (handle_option): Verify language for target options, if
16975 any are given.
16976 * opth-gen.awk: Add CL_LANG_ALL.
16977 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
16978 (TARGETCM_INITIALIZER): Add.
16979 * target.h (struct gcc_targetcm): Add.
16980 (targetcm): Add.
16981 * targhooks.c (default_handle_c_option): Add.
16982 * targhooks.h (default_handle_c_option): Add.
16983 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
16984
16985 * config/darwin.opt (iframework): Add.
16986 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
16987 * config/darwin-c.c (handle_c_option): Add.
16988 (TARGET_HANDLE_C_OPTION): Add.
16989 (targetcm): Add.
16990 * doc/invoke.texi (Darwin Options): Add -iframework.
16991
16992 2007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16993
16994 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
16995 conversion.
16996
16997 2007-03-05 Ian Lance Taylor <iant@google.com>
16998
16999 * c.opt (fgnu89-inline): New option.
17000 * c-opts.c (c_common_post_options): Set default value for
17001 flag_gnu89_inline.
17002 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
17003 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
17004 inline functions.
17005 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
17006 (grokdeclarator, start_function): Likewise.
17007 * c-cppbuiltin.c (c_cpp_builtins): Define either
17008 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
17009 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
17010 (C Dialect Options): Document -fgnu89-inline.
17011 * doc/extend.texi (Function Attributes): Explain what the
17012 gnu_inline attribute does.
17013 * doc/cpp.texi (Common Predefined Macros): Document
17014 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
17015
17016 2007-03-05 Ian Lance Taylor <iant@google.com>
17017
17018 PR tree-optimization/31034
17019 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
17020 half-range if the other side is an overflow infinity.
17021
17022 2007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
17023
17024 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
17025 (bfin*-linux-uclibc*): New configuration.
17026 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
17027 defining.
17028 * config/bfin/linux.h: New file.
17029 * config/bfin/libgcc-bfin.ver: New file.
17030 * config/bfin/t-bfin-uclinux: New file.
17031 * config/bfin/t-bfin-linux: New file.
17032 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
17033 (TARGET_OS_CPP_BUILTINS): New macro.
17034
17035 2007-03-05 Richard Guenther <rguenther@suse.de>
17036
17037 * fold-const.c (fold_binary): Remove duplicate folding
17038 of comparison of non-null ADDR_EXPR against null.
17039
17040 2007-03-05 Richard Guenther <rguenther@suse.de>
17041 Dorit Nuzman <dorit@il.ibm.com>
17042
17043 PR tree-optimization/26420
17044 * tree-vectorizer.c (vectorize_loops): Bail out early if there
17045 are no loops in the function. Only print the number of
17046 vectorized loops if it is greater than zero or we are supposed
17047 to print information about unvectorized loops.
17048
17049 2007-03-05 Revital Eres <eres@il.ibm.com>
17050
17051 * gcc.dg/var-expand1.c: New test.
17052 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
17053 when an accumulator is expanded.
17054
17055 2007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17056
17057 PR other/30465
17058 * c-common.c (convert_and_check): Don't give warnings for
17059 conversion if 'expr' already overflowed.
17060
17061 2007-03-04 Roger Sayle <roger@eyesopen.com>
17062
17063 PR middle-end/30744
17064 * fold-const.c (fold_comparison): Enforce type consistency when
17065 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
17066
17067 2007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
17068
17069 * tree-ssa-address.c (create_mem_ref): Do not put an expression
17070 containing a cast to the base of TARGET_MEM_REF.
17071
17072 2007-03-04 Martin Michlmayr <tbm@cyrius.com>
17073
17074 * tree.c (tree_contains_struct_check_failed): Remove spurious
17075 whitespace from error message.
17076
17077 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
17078
17079 PR target/30406
17080 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
17081 instead of precision.
17082
17083 2007-03-04 Roman Zippel <zippel@linux-m68k.org>
17084 Nathan Sidwell <nathan@codesourcery.com>
17085
17086 * emit-rtl.c (find_auto_inc): New.
17087 (try_split): recreate REG_INC notes,
17088 Use regular for loops rather than whiles.
17089
17090 2007-03-03 Andreas Schwab <schwab@suse.de>
17091
17092 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
17093 * configure: Regenerate.
17094
17095 2007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17096
17097 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
17098 flag_rounding_math, not flag_unsafe_math_optimizations.
17099
17100 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
17101 fold_build2.
17102 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
17103 alpha_fold_vector_minmax): Likewise.
17104 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
17105 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
17106
17107 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
17108
17109 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
17110 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
17111 if the lhs has side-effects.
17112 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
17113
17114 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
17115
17116 * config/i386/i386.h (TUNEMASK): Remove define.
17117 (ARCHMASK): Remove define.
17118 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
17119 Use ix86_arch_mask variable instead of ARCHMASK.
17120 * config/i386/i386.c (override_options): Ditto.
17121 (standard_80387_constant_p): Ditto.
17122
17123 2007-03-02 Ian Lance Taylor <iant@google.com>
17124
17125 Used signed infinities in VRP.
17126 * tree-vrp.c (uses_overflow_infinity): New static function.
17127 (supports_overflow_infinity): New static function.
17128 (make_overflow_infinity): New static function.
17129 (negative_overflow_infinity): New static function.
17130 (positive_overflow_infinity): New static function.
17131 (is_negative_overflow_infinity): New static function.
17132 (is_positive_overflow_infinity): New static function.
17133 (is_overflow_infinity): New static function.
17134 (overflow_infinity_range_p): New static function.
17135 (compare_values_warnv): New function split out of compare_values.
17136 (compare_value): Call it.
17137 (set_value_range_to_nonnegative): Add overflow_infinity
17138 parameter. Change caller.
17139 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
17140 Change callers.
17141 (vrp_expr_computes_nonzero): Likewise.
17142 (compare_ranges, compare_range_with_value): Likewise.
17143 (compare_name_with_value, compare_names): Likewise.
17144 (vrp_evaluate_conditional): Likewise.
17145 (set_value_range): Handle infinity
17146 (vrp_operand_equal_p, operand_less_p): Likewise.
17147 (extract_range_from_assert): Likewise.
17148 (vrp_int_const_binop): Likewise.
17149 (extract_range_from_binary_expr): Likewise.
17150 (extract_range_from_unary_expr): Likewise.
17151 (extract_range_from_comparison): Likewise.
17152 (extract_range_from_expr): Likewise.
17153 (dump_value_range): Likewise.
17154 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
17155 (test_for_singularity): Likewise.
17156 (vrp_int_const_binop): Remove inline qualifier.
17157 (adjust_range_with_scev): Add comment.
17158 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
17159
17160 2007-03-02 Diego Novillo <dnovillo@redhat.com>
17161
17162 * tree-ssa-structalias.c (could_have_pointers): Tidy.
17163 (get_constraint_for): Likewise.
17164 (do_structure_copy): Likewise.
17165 (find_func_aliases): Fix references to MODIFY_EXPR.
17166 (intra_create_variable_infos): Tidy.
17167 * tree-ssa-operands.c (add_virtual_operand): Add argument
17168 IS_CALL_SITE.
17169 When adding members of alias sets, if IS_CALL_SITE is true and
17170 the symbol is not call-clobbered, skip it.
17171 Adjust all callers.
17172
17173 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
17174
17175 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
17176 entry by means of emit_insn_at_entry.
17177
17178 2007-03-02 Richard Henderson <rth@redhat.com>
17179
17180 * expr.h (promoted_input_arg): Remove decl.
17181 * function.c (promoted_input_arg): Merge into ...
17182 * combine.c (setup_incoming_promotions): ... only caller.
17183 Rearrange to avoid double loop.
17184
17185 2007-03-02 Ben Elliston <bje@au.ibm.com>
17186 Peter Bergner <bergner@vnet.ibm.com>
17187 Janis Johnson <janis187@us.ibm.com>
17188
17189 * config/rs6000/dfp.md: New file.
17190 * config/rs6000/rs6000.md: Include dfp.md.
17191 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
17192 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
17193 and TDmode decimal float modes in FP registers.
17194 (num_insns_constant): Likewise.
17195 (rs6000_legitimate_offset_address_p): Likewise.
17196 (rs6000_legitimize_address): Likewise.
17197 (rs6000_legitimize_reload_address): Likewise.
17198 (rs6000_legitimate_address): Likewise.
17199 (rs6000_emit_move): Likewise.
17200 (function_arg_boundary): Likewise.
17201 (function_arg_advance): Likewise.
17202 (rs6000_darwin64_record_arg_recurse): Likewise.
17203 (function_arg): Likewise.
17204 (rs6000_gimplify_va_arg): Likewise.
17205 (rs6000_split_multireg_move): Likewise.
17206 (rs6000_output_function_epilogue): Likewise.
17207 (rs6000_output_function_epilogue): Likewise.
17208 (rs6000_register_move_cost): Likewise.
17209 (rs6000_function_value): Likewise.
17210 (rs6000_libcall_value): Likewise.
17211
17212 2007-03-02 Richard Sandiford <richard@codesourcery.com>
17213
17214 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
17215
17216 2007-03-02 Richard Sandiford <richard@codesourcery.com>
17217
17218 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
17219 Use $MULTIDIR to choose between the kernel and RTP headers,
17220 and use $WIND_BASE and $WIND_USR to locate them.
17221
17222 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
17223
17224 * config/i386/i386.c (override_options): Put initialization of
17225 ix86_tune_mask and ix86_arch_mask to the correct place.
17226
17227 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
17228 Michael Meissner <michael.meissner@amd.com>
17229
17230 PR target/31019
17231 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
17232 (ARCHMASK): Define.
17233 (TARGET_CMOVE): Use ARCHMASK.
17234 (TARGET_CMPXCHG): Ditto.
17235 (TARGET_CMPXCHG8B): Ditto.
17236 (TARGET_XADD): Ditto.
17237 (TARGET_BSWAP): Ditto.
17238 * config/i386/i386.c (ix86_tune_mask): New global variable.
17239 (ix86_arch_mask): Ditto.
17240 (override_options): Initialize ix86_tune_mask and
17241 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
17242 target_flags.
17243
17244 2007-03-02 Ben Elliston <bje@au.ibm.com>
17245
17246 PR 30992
17247 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
17248
17249 2007-03-02 Joseph Myers <joseph@codesourcery.com>
17250
17251 * target.h (init_dwarf_reg_sizes_extra): New target hook.
17252 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
17253 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
17254 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
17255 hook.
17256 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
17257 rs6000_init_dwarf_reg_sizes_extra): New.
17258 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
17259 SPE register high parts.
17260
17261 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
17262
17263 * Makefile.in: Add install-pdf target as
17264 copied from automake v1.10 rules.
17265 * configure.ac: Add install-pdf to target list.
17266 * configure: Regenerate.
17267
17268 2007-03-01 Paul Brook <paul@codesourcery.com>
17269
17270 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
17271 modes to LDRD for DImode.
17272 (output_move_double): Fixup out of range ldrd/strd.
17273 (vfp_secondary_reload_class): Rename...
17274 (coproc_secondary_reload_class): ... to this. Add wb argument.
17275 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
17276 coproc_secondary_reload_class for CLASS_IWMMXT.
17277 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
17278 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
17279
17280 2007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
17281
17282 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the
17283 unroll factor by the estimated number of iterations.
17284 (loop_prefetch_arrays): Do not prefetch in loops that iterate less
17285 than prefetch latency.
17286
17287 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
17288 decode_caches_intel, detect_caches_intel): New functions.
17289 (host_detect_local_cpu): Use detect_caches_amd and
17290 detect_caches_intel.
17291
17292 2007-03-01 Richard Henderson <rth@redhat.com>
17293
17294 * expr.c (emit_move_complex_push): Export.
17295 (emit_move_complex_parts): Split out from ...
17296 (emit_move_complex): ... here.
17297 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
17298 * config/i386/i386.md (movcdi): New.
17299
17300 2007-03-01 Uros Bizjak <ubizjak@gmail.com>
17301
17302 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
17303 size of mode1 to check for tieable modes in MMX case.
17304
17305 2007-03-01 Richard Sandiford <richard@codesourcery.com>
17306
17307 * Makefile.in (rtlanal.o): Depend on tree.h.
17308 * rtl.h (offset_within_section_p, split_const): Declare.
17309 * rtlanal.c: Include tree.h.
17310 (offset_within_block_p): New function, taken from
17311 mips_offset_within_object_p.
17312 (split_const): New function, taken from mips_split_const.
17313 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
17314 Declare.
17315 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
17316 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
17317 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
17318 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
17319 (m68k_illegitimate_symbolic_constant_p): New function.
17320 * config/m68k/m68k.md (movsi): Remove misleading predicates.
17321 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
17322 symbolic constant that might be outside the symbol's section,
17323 move the symbol first and then add the offset.
17324 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
17325 Override.
17326 * config/mips/mips.c (mips_split_const): Delete.
17327 (mips_offset_within_object_p): Delete.
17328 (mips_symbolic_constant_p): Use offset_within_section_p and
17329 split_const instead of mips_offset_within_object_p and
17330 mips_split_const.
17331 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
17332 (mips_legitimize_const_move, print_operand_reloc)
17333 (mips_dangerous_for_la25_p): Use split_const instead of
17334 mips_split_const.
17335
17336 2007-02-28 Eric Christopher <echristo@apple.com>
17337
17338 * Makefile.in (install-include-dir): Don't rm -rf include.
17339
17340 2007-02-28 Richard Guenther <rguenther@suse.de>
17341
17342 PR middle-end/30364
17343 * fold-const.c (fold_binary): Do not associate expressions
17344 with more than one variable for integer types that do not wrap.
17345
17346 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
17347
17348 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
17349 Delete, and replace with...
17350 (fold_builtin_call_array): This. Update callers to use it.
17351 * fold-const.c (fold_build_call_list): Delete, and replace with...
17352 (fold_build_call_array): This.
17353 (fold_build_call_list_initializer): Delete, and replace with...
17354 (fold_build_call_array_initializer): This.
17355 * tree.h: Update declarations to reflect above changes.
17356
17357 * c-typeck.c (build_function_call): Store converted arguments
17358 in a stack-allocated array instead of building a list.
17359 (convert_arguments): Store arguments in the array passed in as an
17360 argument, and return the actual number of arguments.
17361 * c-format.c: (check_function_format): Pass arguments in an
17362 array instead of a list.
17363 * c-common.c (check_function_nonnull): Likewise.
17364 (check_function_sentinel): Likewise.
17365 (check_function_arguments): Likewise.
17366 * c-common.h: Update declarations to reflect above changes.
17367
17368 2007-02-28 Jan Hubicka <jh@suse.cz>
17369
17370 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
17371 PRED_NEGATIVE_RETURN): Update outcomes.
17372
17373 2007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
17374
17375 * calls.c (emit_library_call_value_1): Handle partial registers
17376 correctly when building up CALL_INSN_FUNCTION_USAGE.
17377
17378 2007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17379
17380 * pa/predicates.md (move_src_operand): Allow zero for mode.
17381 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
17382 move pattern.
17383
17384 2007-02-27 Uros Bizjak <ubizjak@gmail.com>
17385
17386 PR target/30970
17387 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
17388 *movv2df_internal): Enable pattern only for valid operand
17389 combinations.
17390 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
17391 tie only 128bit modes. For MMX registers, tie only 64bit modes.
17392
17393 2007-02-27 Mike Stump <mrs@apple.com>
17394
17395 * config/darwin-crt3.c: Avoid compilation when compiling for a
17396 kext multilib.
17397
17398 2007-02-27 Joseph Myers <joseph@codesourcery.com>
17399
17400 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
17401 FIXED_INCLUDE_DIR.
17402 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
17403 for fixed headers and limits.h.
17404 (install-include-dir, install-headers-tar, install-headers-cpio,
17405 install-headers-cp, real-install-headers-tar,
17406 real-install-headers-cpio, real-install-headers-cp): Handle
17407 include-fixed as well as include.
17408 (install-mkheaders): Don't install files that go only in include
17409 not include-fixed.
17410 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
17411 from GCC_INCLUDE_DIR.
17412 * gcc.c (process_command): Remove special -BstageN/ handling.
17413 (do_spec_1): Add include-fixed directories.
17414
17415 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
17416
17417 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
17418 _smulsi3_highpart.
17419 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
17420 New functions.
17421 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
17422 patterns.
17423
17424 2007-02-27 Mark Mitchell <mark@codesourcery.com>
17425
17426 * c-common.c (get_priority): Add check for
17427 SUPPORTS_INIT_PRIORITY.
17428
17429 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
17430
17431 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
17432
17433 * config/bfin/bfin.c: Include "cfglayout.h".
17434 (MAX_LSETUP_DISTANCE): New macro.
17435 (struct loop_info): New members incoming, incoming_src and
17436 incoming_dest. Delete member predecessor.
17437 (length_for_loop): New function.
17438 (bfin_optimize_loop): Handle more different loop structures.
17439 (bfin_discover_loop): Rework detection of predecessor blocks by
17440 examining incoming edges.
17441 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
17442 bfin_reorg_loops.
17443 (bfin_reorder_loops): New function.
17444 (bfin_reorg_loops): Use these three new functions.
17445
17446 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
17447 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
17448 (CONSTRAINT_LEN): Add entry for 'q'.
17449 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
17450 Add 'q' constraints.
17451 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
17452 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
17453
17454 * config/bfin/bfin.md (add_with_carry): New pattern.
17455 (s_or_u, su_optab, su_modifier): New code macros/attrs.
17456 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
17457 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
17458 support unsigned multiplies too. Removed incorrect commutativity from
17459 operand 1 constraint where appropriate.
17460 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
17461 patterns.
17462 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
17463 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
17464 New patterns.
17465 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
17466 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
17467 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
17468 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
17469 usmulhisi_hh_huh): New patterns.
17470
17471 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
17472 lshifthi3): Fix output template to use half reg for operand 2.
17473
17474 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
17475 instead of R2.
17476
17477 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
17478
17479 2007-02-27 Andreas Schwab <schwab@suse.de>
17480
17481 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
17482
17483 2007-02-27 Jan Hubicka <jh@suse.cz>
17484
17485 * predict.c (last_basic_block_p): Remove.
17486 (tree_estimate_probability): Update return heuristic for commonized
17487 return blocks.
17488
17489 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
17490
17491 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
17492
17493 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
17494
17495 * doc/include/gcc-common.texi (versionsubtitle): New macro.
17496 * doc/cpp.texi: Standardize title page.
17497 * doc/cppinternals.texi: Likewise.
17498 * doc/gcc.texi: Standardize title page, remove version number
17499 from copyright page.
17500 * doc/gccint.texi: Likewise.
17501 * doc/install.texi: Standardize title page, add table of
17502 contents.
17503
17504 2007-02-26 Jan Hubicka <jh@suse.cz>
17505
17506 * predict.def: Set outcomes according to more recent results.
17507 (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
17508 Remove dead predictors.
17509 * predict.c (return_prediction): Fix pasto.
17510
17511 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
17512
17513 * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
17514 change; avoid a memory leak when returning early.
17515
17516 2007-02-26 Mark Mitchell <mark@codesourcery.com>
17517
17518 * c-decl.c (static_ctors): Move to c-common.c.
17519 (static_dtors): Likewise.
17520 (finish_function): Use c_record_cdtor_fn.
17521 (build_cdtor): Move to c-common.c.
17522 (c_write_global_declarations): Use c_build_cdtor_fns.
17523 * c-common.h (static_ctors): Declare.
17524 (static_dtors): Likewise.
17525 (c_record_cdtor_fn): Likewise.
17526 (c_build_cdtor_fns): Likewise.
17527 * c-common.c (static_ctors): New variable.
17528 (static_dtors): Likewise.
17529 (c_record_cdtor_fn): New function.
17530 (build_cdtor): Move from c-decl.c
17531 (c_build_cdtor_fns): New function.
17532
17533 * output.h (assemble_addr_to_section): Declare.
17534 (get_cdtor_priority_section): Likewise.
17535 * varasm.c (assemble_addr_to_section): New function.
17536 (get_cdtor_priority_section): Likewise.
17537 (default_named_section_asm_out_destructor): Use them.
17538 (destor_dtor_section_asm_out_destructor): Likewise.
17539 (default_named_section_asm_out_constructor): Likewise.
17540 (default_ctor_section_asm_out_constructor): Likewise.
17541 * config.gcc (*-*-vxworks*): Include vxworks.o.
17542 * config/t-vxworks (vxworks.o): New target.
17543 * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
17544 (TARGET_ASM_CONSTRUCTOR): Define.
17545 (TARGET_ASM_DESTRUCTOR): Likewise.
17546 (vxworks_asm_out_constructor): Declare.
17547 (vxworks_asm_out_destructor): Likewise.
17548
17549 * c-common.c (get_priority): Check that we have not just an
17550 INTEGER_CST, but an integer constant with integeral type.
17551
17552 2007-02-25 Uros Bizjak <ubizjak@gmail.com>
17553
17554 PR tree-optimization/30938
17555 * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
17556 use &dt[nargs-1] instead of &dt[nargs] in the call to
17557 vect_is_simple_use().
17558
17559 2007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
17560
17561 * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
17562 from register elimination as PRE_MODIFY / POST_MODIFY increments.
17563 Do not attempt to handle MEM inside auto-inc expressions.
17564 * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
17565 of a register modified by an auto-inc expression. However, do handle
17566 elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
17567 (elimination_effects): Prohibit elimination of a register modified
17568 by an auto-inc expression. Disable register elimination rules whose
17569 target register is modified by an auto-inc expression with variable
17570 increment.
17571
17572 2007-02-25 Zdenek Dvorak <dvorakz@suse.cz>
17573
17574 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
17575 off-by-one error.
17576 (array_at_struct_end_p): New function.
17577 (idx_infer_loop_bounds): Use it.
17578 (estimate_numbers_of_iterations_loop): Export.
17579 * predict.c (predict_loops): Use estimated_loop_iterations_int.
17580 Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
17581 (tree_estimate_probability): Call record_loop_exits.
17582 * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
17583 (estimated_loop_iterations, estimated_loop_iterations_int,
17584 estimated_loop_iterations_tree): New functions.
17585 (analyze_siv_subscript_cst_affine,
17586 compute_overlap_steps_for_affine_1_2,
17587 analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
17588 (analyze_miv_subscript): Use estimated_loop_iterations_tree.
17589 * predict.def (PRED_LOOP_ITERATIONS): Update comment.
17590 (PRED_LOOP_ITERATIONS_GUESSED): New.
17591 * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
17592 * cfgloop.h (estimate_numbers_of_iterations_loop,
17593 estimated_loop_iterations_int): Declare.
17594
17595 2007-02-25 Mark Mitchell <mark@codesourcery.com>
17596
17597 * doc/extend.texi: Document optional priority argument to
17598 constructors and destructors.
17599 * tree.c (init_priority_for_decl): Adjust GTY markers.
17600 (init_ttree): Use priority-info hash functions for
17601 init_priority_for_decl.
17602 (tree_map_eq): Rename to ...
17603 (tree_map_base_eq): ... this.
17604 (tree_map_marked_p): Rename to ...
17605 (tree_map_base_marked_p): ... this.
17606 (tree_map_base_hash): New function.
17607 (decl_init_priority_lookup): Rework.
17608 (decl_fini_priority_lookup): New function.
17609 (decl_priority_info): New function.
17610 (decl_init_priority_insert): Use it.
17611 (decl_fini_priority_insert): Likewise.
17612 (decl_restrict_base_lookup): Adjust for refactoring of tree_map
17613 hierarchy.
17614 (decl_restrict_base_insert): Likewise.
17615 (decl_debug_expr_insert): Likewise.
17616 (decl_value_expr_lookup): Likewise.
17617 (decl_value_expr_insert): Likewise.
17618 * tree.h (priority_type): New type.
17619 (decl_init_priority_lookup): Use priority_type.
17620 (decl_fini_priority_lookup): New function.
17621 (decl_init_priority_insert): Use priority_type.
17622 (decl_fini_priority_insert): New function.
17623 (DECL_HAS_INIT_PRIORITY): Tweak comments.
17624 (DECL_INIT_PRIORITY): Likewise.
17625 (SET_DECL_INIT_PRIORITY): Add comment.
17626 (DECL_FINI_PRIORITY): New macro.
17627 (SET_DECL_FINI_PRIORITY): Likewise.
17628 (DEFAULT_INIT_PRIORITY): Document.
17629 (MAX_INIT_PRIORITY): Likewise.
17630 (MAX_RESERVED_INIT_PRIORITY): Likewise.
17631 (tree_map_base): New type.
17632 (tree_map_base_eq): New function.
17633 (tree_map_base_hash): Likewise.
17634 (tree_map_base_marked_p): Likewise.
17635 (tree_map): Inherit from tree_map_base.
17636 (tree_map_eq): Make it a macro.
17637 (tree_map_marked_p): Likewise.
17638 (tree_int_map): Inherit from tree_map_base.
17639 (tree_int_map_eq): Make it a macro.
17640 (tree_int_map_hash): Likewise.
17641 (tree_int_map_marked_p): Likewise.
17642 (tree_priority_map): New type.
17643 (tree_priority_map_eq): New macro.
17644 (tree_priority_map_hash): Likewise.
17645 (tree_priority_map_marked_p): Likewise.
17646 * varasm.c (emults_decl): Adjust for refactoring of tree_map
17647 hierarchy.
17648 (emutls_common_1): Likewise.
17649 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
17650 * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
17651 of tree_map hierarchy.
17652 * tree-cfg.c (move_stmt_r): Likewise.
17653 (new_label_mapper): Likewise.
17654 * c-tree.h (c_expand_body): Move to ...
17655 * c-common.h (c_expand_body): ... here.
17656 * c-decl.c (c_expand_body): Move to ...
17657 * c-common.c (c_expand_body): ... here.
17658 (c_common_attribute_table): Allow 1 argument for the constructor
17659 and destructor attributes.
17660 (get_priority): New function.
17661 (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
17662 (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
17663
17664 2007-02-24 Jan Hubicka <jh@suse.cz>
17665
17666 PR middle-end/30509
17667 * tree-inline.c (copy_bb): Produce exact copy of EH info when
17668 copying for inlining.
17669
17670 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
17671 Jan Hubicka <jh@suse.cz>
17672
17673 PR target/30778
17674 * i386.c (counter_mode): New function.
17675 (expand_set_or_movmem_via_loop): Use it.
17676 (expand_movmem_epilogue): Likewise; fix pasto.
17677 (ix86_expand_movmem): Do emit guard even for constant counts.
17678 (ix86_expand_setmem): Likewise.
17679
17680 2007-02-25 Nick Clifton <nickc@redhat.com>
17681
17682 * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
17683 (JUMP_TABLES_IN_TEXT_SECTION): Define.
17684
17685 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
17686
17687 PR target/30770
17688 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
17689 count argument with 0x10, not with 0x16.
17690 (expand_setmem_epilogue): Ditto.
17691
17692 2007-02-24 Mike Stump <mrs@apple.com>
17693
17694 * config/i386/i386.c (output_pic_addr_const): Stubify optimized
17695 symbols.
17696
17697 2007-02-24 Richard Guenther <rguenther@suse.de>
17698
17699 PR middle-end/30951
17700 * fold-const.c (fold_binary): Fold x +- CST op x for
17701 EQ_EXPR and NE_EXPR.
17702
17703 2007-02-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17704
17705 * pa.md (muldi3): Force subregs to registers in 64-bit expander.
17706
17707 2007-02-24 Jan Hubicka <jh@suse.cz>
17708
17709 * cgraphunit.c (decide_is_function_needed): Honor
17710 -fkeep-inline-functions.
17711
17712 2007-02-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17713
17714 * builtins.c (fold_builtin_modf): New.
17715 (fold_builtin_2): Use it.
17716
17717 2007-02-24 Bernd Schmidt <bernd.schmidt@analog.com>
17718
17719 * loop-iv.c (implies_p): Detect additional cases where A implies B.
17720 (determine_max_iter): Take additional LOOP arg; all callers changed.
17721 Lose broken logic dealing with PLUS. Try to limit the upper bound by
17722 one using simplifications.
17723 (simplify_using_initial_values): Return if the expression becomes
17724 invalid due to altered regs.
17725
17726 2007-02-23 DJ Delorie <dj@redhat.com>
17727
17728 * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
17729
17730 2007-02-23 Mike Stump <mrs@apple.com>
17731
17732 * tlink.c (scan_linker_output): Parse linker messages from
17733 darwin9's linker better.
17734
17735 2007-02-23 Steve Ellcey <sje@cup.hp.com>
17736
17737 PR debug/29614
17738 * varpool.c (varpool_assemble_pending_decls): Set
17739 varpool_last_needed_node to null.
17740
17741 2007-02-23 DJ Delorie <dj@redhat.com>
17742
17743 * config/i386/i386.c (ix86_data_alignment): Don't specify an
17744 alignment bigger than the object file can handle.
17745
17746 2007-02-23 Uros Bizjak <ubizjak@gmail.com>
17747
17748 PR target/30825
17749 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
17750 zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
17751 (*movsf_1): Penalize MMX moves.
17752
17753 2007-02-23 Bernd Schmidt <bernd.schmidt@analog.com>
17754
17755 * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
17756 2^32-1 or more times unless flag_unsafe_loop_optimizations.
17757
17758 * loop-iv.c (determine_max_iter): Moved in front of its sole user.
17759
17760 2007-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17761
17762 * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
17763 (fold_builtin_1): Use them.
17764 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
17765 BUILT_IN_SIGNIFICAND.
17766
17767 2007-02-23 H.J. Lu <hongjiu.lu@intel.com>
17768
17769 * config/i386/i386.c (bdesc_1arg): Initialize
17770 IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
17771 "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
17772 (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
17773 and IX86_BUILTIN_MOVSLDUP.
17774
17775 2007-02-22 Paolo Bonzini <bonzini@gnu.org>
17776
17777 PR rtl-optimization/30841
17778 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
17779
17780 2007-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17781
17782 * builtins.c (fold_builtin_frexp): New.
17783 (fold_builtin_2): Use it.
17784
17785 2007-02-22 Mark Mitchell <mark@codesourcery.com>
17786
17787 * doc/invoke.texi (Spec Files): Document getenv spec function.
17788
17789 * gcc.c (getenv_spec_function): New function.
17790 (static_spec_functions): Add it.
17791 * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
17792 (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
17793 header files.
17794
17795 2007-02-22 Michael Matz <matz@suse.de
17796
17797 PR c++/29433
17798 * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
17799 (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
17800
17801 2007-02-22 Ian Lance Taylor <iant@google.com>
17802
17803 PR debug/30898
17804 * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
17805 (mem_loc_descriptor): Call it.
17806
17807 2007-02-22 Zdenek Dvorak <dvorakz@suse.cz>
17808 Ira Rosen <irar@il.ibm.com>
17809
17810 * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
17811
17812 2007-02-22 Ira Rosen <irar@il.ibm.com>
17813
17814 PR tree-optimization/30843
17815 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
17816 stores only after all the group is vectorized.
17817
17818 2007-02-22 Dorit Nuzman <dorit@il.ibm.com>
17819
17820 PR tree-optimization/30858
17821 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
17822 in the reduction cycle have a single use in the loop.
17823 * tree-vectorizer.h (relevant): Add documentation.
17824
17825 2007-02-20 Mike Stump <mrs@apple.com>
17826
17827 * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
17828 * configure: Regenerate.
17829
17830 2007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
17831
17832 Change the defaults of some parameters and options.
17833 * config/spu/spu-protos.h (spu_optimization_options): Declare.
17834 * config/spu/spu.c (spu_optimization_options): Add.
17835 (spu_override_options): Change params in spu_optimization_options.
17836 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
17837
17838 Register 127 is only 16 byte aligned when used as a frame pointer.
17839 * config/spu/spu-protos.h (spu_init_expanders): Declare.
17840 * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
17841 HARD_FRAME_POINTER_REGNUM.
17842 (spu_legitimate_address): Use regno_aligned_for_reload.
17843 (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
17844 aligned when frame_pointer_needed is true.
17845 (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM
17846 to 8 bits.
17847 * config/spu/spu.h (INIT_EXPANDERS): Define.
17848
17849 Make sure shift and rotate instructions have valid immediate operands.
17850 * config/spu/predicates.md (spu_shift_operand): Remove.
17851 * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
17852 * config/spu/constraints.md (W, O): Extend range.
17853 * config/spu/spu.md (umask, nmask): Define.
17854 (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
17855 lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
17856 rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
17857 rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
17858 spu_nonmem_operand instead of spu_shift_operands. Use new modifiers.
17859 (lshr<mode>3_reg): Fix rtl description.
17860
17861 Make sure mulhisi immediate operands are valid.
17862 * config/spu/predicates.md (imm_K_operand): Add.
17863 * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
17864
17865 Generate constants using fsmbi and andi.
17866 * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
17867 (print_operand, spu_split_immediate, classify_immediate,
17868 fsmbi_const_p): Handle IC_FSMBI2.
17869
17870 Correctly handle a CONST_VECTOR containing symbols.
17871 * config/spu/spu.c (print_operand): Handle HIGH correctly.
17872 (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
17873 (immediate_load_p): Allow symbols that use 2 instructions to create.
17874 (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
17875 with symbols when flag_pic is set.
17876 (const_vector_immediate_p): New.
17877 (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
17878 accept a CONST_VECTOR with symbols.
17879 (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't
17880 accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH
17881 correctly.
17882 * config/spu/spu.md (high, low): Delete.
17883 (low_<mode>): Define.
17884
17885 Remove INTRmode and INTR_REGNUM, which didn't work.
17886 * config/spu/spu.c (spu_conditional_register_usage): Remove reference
17887 of INTR_REGNUM.
17888 * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
17889 set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
17890 peephole2 pattern): Don't use INTR or 131.
17891 (movintrcc): Delete.
17892 * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
17893 CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
17894 * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
17895 (UNSPEC_SET_INTR): Add.
17896 * config/spu/spu-modes.def (INTR): Remove.
17897
17898 More accurate warnings about run-time relocations.
17899 * config/spu/spu.c (reloc_diagnostic): Test in_section.
17900
17901 Correctly warn about immediate arguments to specific intrinsics.
17902 * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
17903 (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
17904 the instruction predicate.
17905
17906 Fix tree check errors with latest update.
17907 * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
17908 CALL_EXPR_ARG.
17909 (spu_expand_builtin): Use CALL_EXPR_FN.
17910
17911 Add missing specific intrinsics.
17912 * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
17913 si_bislede.
17914 * config/spu/spu_internals.h: Ditto.
17915
17916 Fix incorrect operand modifiers.
17917 * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
17918 * config/spu/spu.md (xor<mode>3): Change %S to %J.
17919
17920 Optimize one case of zero_extend of a vec_select.
17921 * config/spu/spu.md (_vec_extractv8hi_ze): Add.
17922
17923 Accept any immediate for hbr.
17924 * config/spu/spu.md (hbr): Change s constraints to i.
17925
17926 2007-02-21 Paul Brook <paul@codesourcery.com>
17927
17928 * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
17929 condexec_count when skipping USE and CLOBBER.
17930
17931 2007-02-21 Nick Clifton <nickc@redhat.com>
17932
17933 * common.opt (Warray-bounds): Add Warning attribute.
17934 (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
17935 Likewise.
17936 (fsized-zeroes): Add Optimization attribute.
17937 (fsplit-wide-types, ftree-scev-cprop): Likewise.
17938 * c.opt (Wc++0x-compat): Add Warning attribute.
17939
17940 2007-02-21 Ulrich Weigand <uweigand@de.ibm.com>
17941
17942 PR middle-end/30761
17943 * reload1.c (eliminate_regs_in_insn): In the single_set special
17944 case, attempt to re-recognize the insn before falling back to
17945 having reload fix it up.
17946
17947 2007-02-20 Eric Christopher <echristo@gmail.com>
17948
17949 * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
17950 Rewrite accordingly.
17951 (frv_read_iacc_argument): Ditto.
17952 (frv_expand_set_builtin): Take a call instead of arglist, update for
17953 above changes.
17954 (frv_expand_unop_builtin): Ditto.
17955 (frv_expand_binop_builtin): Ditto.
17956 (frv_expand_cut_builtin): Ditto.
17957 (frv_expand_binopimm_builtin): Ditto.
17958 (frv_expand_voidbinop_builtin): Ditto.
17959 (frv_expand_int_void2arg): Ditto.
17960 (frv_expand_prefetches): Ditto.
17961 (frv_expand_voidtriop_builtin): Ditto.
17962 (frv_expand_voidaccop_builtin): Ditto.
17963 (frv_expand_load_builtin): Ditto.
17964 (frv_expand_store_builtin): Ditto.
17965 (frv_expand_mdpackh_builtin): Ditto.
17966 (frv_expand_mclracc_builtin): Ditto.
17967 (frv_expand_mrdacc_builtin): Ditto.
17968 (frv_expand_mwtacc_builtin): Ditto.
17969 (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
17970 calls for above.
17971
17972 2007-02-20 Janis Johnson <janis187@us.ibm.com>
17973
17974 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
17975 * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
17976 cmpb instruction.
17977 (HAVE_GAS_DFP): Check for assembler support of decimal floating
17978 point instructions.
17979 * configure: Regenerate.
17980 * config.in: Regenerate.
17981 * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
17982 * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
17983 masks to power6 and power6x and to POWERPC_MASKS.
17984 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
17985 _ARCH_PWR6.
17986 * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
17987 * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
17988 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
17989 Access PROTOTYPE as variable, not mask.
17990
17991 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
17992
17993 * rtl.h (remove_reg_equal_equiv_notes): New prototype.
17994 * rtlanal.c (remove_reg_equal_equiv_notes): New function.
17995 * combine.c (adjust_for_new_dest): Use it.
17996 * postreload.c (reload_combine): Likewise.
17997
17998 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
17999
18000 * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
18001 notes on an insn with multiple sets, even if single_set returns
18002 non-NULL for that insn.
18003
18004 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18005
18006 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
18007 scalbn and scalbln.
18008
18009 2007-02-20 Geoffrey Keating <geoffk@apple.com>
18010
18011 * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
18012 if user didn't pass it.
18013 * config/i386/darwin.h (CC1_SPEC): Likewise.
18014 * config/rs6000/darwin.h (CC1_SPEC): Likewise.
18015 (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
18016 -mmacosx-version-min.
18017
18018 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18019 Uros Bizjak <ubizjak@gmail.com>
18020
18021 * optabs.h (enum optab_index): Add new OTI_scalb.
18022 (scalb_optab): Define corresponding macro.
18023 * optabs.c (init_optabs): Initialize scalb_optab.
18024 * genopinit.c (optabs): Implement scalb_optab using scalb?f3
18025 patterns.
18026 * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
18027 BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
18028 (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
18029 and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
18030 flag_unsafe_math_optimizations is set.
18031
18032 * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
18033 to implement scalbf, scalb and scalbl built-ins as inline x87
18034 intrinsics.
18035
18036 2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18037 DJ Delorie <dj@redhat.com>
18038
18039 PR other/30824
18040 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
18041 (diagnostic_report_diagnostic): ... here, and turn them into real
18042 errors. If warnings are inhibited, no need to do anything.
18043
18044 2007-02-20 Uros Bizjak <ubizjak@gmail.com>
18045
18046 * config/i386/i386.md (expm1xf2): Reorder insn sequence for
18047 better code generation.
18048
18049 2007-02-20 Ben Elliston <bje@au.ibm.com>
18050
18051 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
18052
18053 2007-02-20 Kazu Hirata <kazu@codesourcery.com>
18054
18055 * config/alpha/alpha.c, config/alpha/alpha.md,
18056 config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
18057 config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
18058 config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
18059 config/arm/lib1funcs.asm: Follow spelling conventions.
18060
18061 * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
18062 config/fr30/fr30.md, config/i386/i386.h,
18063 config/iq2000/iq2000.h, config/iq2000/predicates.md,
18064 config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
18065 config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
18066 config/pdp11/pdp11.c, config/pdp11/pdp11.h,
18067 config/rs6000/altivec.md, config/rs6000/rs6000.c,
18068 config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
18069 config/sparc/sparc.c, config/sparc/sparc.h,
18070 config/sparc/sparc.md, config/spu/constraints.md,
18071 config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
18072 conventions.
18073
18074 2007-02-20 Alan Modra <amodra@bigpond.net.au>
18075
18076 PR target/29943
18077 * varasm.c (use_blocks_for_decl_p): Return false for decls with
18078 alias attribute.
18079
18080 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
18081
18082 * doc/invoke.texi (-ftree-lrs): Remove.
18083
18084 2007-02-19 Diego Novillo <dnovillo@redhat.com>
18085
18086 * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
18087 NULL.
18088
18089 2007-02-19 Lee Millward <lee.millward@codesourcery.com>
18090
18091 * config/ia64/ia64.c (ia64_expand_builtin): Use the
18092 new CALL_EXPR_FN macro for retrieving the function
18093 declaration of the input expression.
18094
18095 2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18096
18097 * c.opt (Waddress): New.
18098 * common.opt (Walways-true): Delete.
18099 (Wstring-literal-comparison): Delete.
18100 * doc/invoke.texi (Warning Options): Delete -Walways-true and
18101 -Wstring-literal-comparison. Add -Waddress.
18102 (Waddress): New.
18103 (Walways-true): Delete.
18104 (Wstring-literal-comparison): Delete.
18105 * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
18106 consistently instead of -Walways-true in example.
18107 * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
18108 * c-typeck.c (parser_build_binary_op): Replace
18109 -Wstring-literal-comparison and -Walways-true with -Waddress.
18110 * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
18111 with -Waddress.
18112
18113 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
18114
18115 * tree-cfg.c (dump_function_to_file): Be prepared for functions
18116 without DECL_STRUCT_FUNCTION initialized.
18117
18118 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
18119
18120 * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
18121 due to calls to functions taking pointers as parameters.
18122
18123 2007-02-19 Richard Henderson <rth@redhat.com>
18124
18125 PR debug/29558
18126 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
18127 in memory.
18128
18129 2007-02-19 Andreas Krebbel <krebbel1@de.ibm.com>
18130
18131 * config/s390/s390.c (s390_call_saved_register_used,
18132 s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
18133 accessed to the new scheme.
18134
18135 2007-02-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18136
18137 * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
18138 (cris_print_index, cris_print_operand, cris_print_operand_address)
18139 (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
18140 (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
18141 (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
18142 GET_CODE () == xxx.
18143 * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
18144 EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
18145 GO_IF_LEGITIMATE_ADDRESS): Ditto.
18146 * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
18147 (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
18148 (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
18149 (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
18150 (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
18151 (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
18152 (uminsi3, call, call_value): Ditto.
18153 (define_split: indir_to_reg_split, unnamed): Ditto.
18154
18155 2007-02-19 Dorit Nuzman <dorit@il.ibm.com>
18156
18157 PR tree-optimization/30975
18158 * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
18159 wrong assert.
18160
18161 2007-02-18 Eric Christopher <echristo@gmail.com>
18162
18163 * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
18164 Remove use of arglist.
18165 (mips_expand_builtin): Remove use of arglist, pass in expr.
18166 (mips_expand_builtin_direct): Rewrite handling for arglist removal.
18167 (mips_expand_builtin_movtf): Ditto.
18168 (mips_expand_builtin_compare): Ditto.
18169
18170 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
18171
18172 * tree-sra.c (sra_build_assignment): Replace assertion
18173 checking with a comment explaining why it can't be done.
18174
18175 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
18176
18177 PR middle-end/30833
18178 * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
18179 during CALL_EXPR representation conversion.
18180 * tree-ssa-propagate.c (set_rhs): Likewise.
18181
18182 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
18183
18184 * tree-sra.c (sra_build_assignment): Disable assertion checking
18185 for now.
18186
18187 2007-02-18 Roger Sayle <roger@eyesopen.com>
18188
18189 * function.c (gimplify_parameters): Call build_gimple_modify_stmt
18190 instead of calling build2 with a GIMPLE_MODIFY_STMT.
18191 * gimple-low.c (lower_function_body, lower_builtin_setjmp):
18192 Likewise.
18193 * gimplify.c (build_stack_save_restore, gimplify_return_expr,
18194 gimplify_decl_expr, gimplify_self_mod_expr, gimplify_cond_expr,
18195 gimplify_init_ctor_eval_range, gimple_push_cleanup,
18196 gimplify_omp_for, gimplify_omp_atomic_pipeline,
18197 gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
18198 force_gimple_operand): Likewise.
18199 * ipa-cp.c (constant_val_insert): Likewise.
18200 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
18201 lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
18202 perfect_nestify): Likewise.
18203 * langhooks.c (lhd_omp_assignment): Likewise.
18204 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
18205 lower_copyprivate_clauses, lower_send_clauses,
18206 lower_send_shared_vars, expand_parallel_call,
18207 expand_omp_for_generic, expand_omp_for_static_nochunk,
18208 expand_omp_for_static_chunk, expand_omp_sections,
18209 lower_omp_single_copy, lower_omp_for_lastprivate,
18210 lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
18211 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
18212 tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
18213 Likewise.
18214
18215 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
18216
18217 * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
18218 config/sh/sh.md: Follow spelling conventions.
18219
18220 * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
18221 config/frv/predicates.md: Follow spelling conventions.
18222
18223 * config/m68k/linux-unwind.h: Fix a comment typo.
18224 * target.h: Follow spelling conventions.
18225
18226 2007-02-18 Roger Sayle <roger@eyesopen.com>
18227
18228 PR rtl-optimization/28173
18229 * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
18230 (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
18231 Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
18232 Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
18233 <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
18234
18235 2007-02-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18236
18237 * builtins.c (fold_builtin_load_exponent): New.
18238 (fold_builtin_2): Use it.
18239
18240 2007-02-18 Steven Bosscher <steven@gcc.gnu.org>
18241
18242 PR rtl-optimization/30773
18243 * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
18244 if we fail to attach a REG_EQUIV note.
18245
18246 2007-02-18 David Edelsohn <edelsohn@gnu.org>
18247 Roger Sayle <roger@eyesopen.com>
18248
18249 * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
18250
18251 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
18252
18253 * calls.c (initialize_argument_information): Pass original EXP
18254 and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments. Move
18255 code to split complex arguments here, as part of initializing the
18256 ARGS array.
18257 (expand_call): Remove code that builds a list of arguments and
18258 inserts implicit arguments into it. Instead, just count how many
18259 implicit arguments there will be so we can determine the size of
18260 the ARGS array, and let initialize_argument_information do the work.
18261 (split_complex_values): Delete unused function.
18262
18263 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
18264
18265 * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
18266
18267 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
18268
18269 * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
18270 for arg pointer based indexed addressing.
18271
18272 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
18273
18274 * config/ia64/ia64.h, config/ia64/ia64.md,
18275 config/ia64/predicates.md, config/ia64/sysv4.h: Follow
18276 spelling conventions.
18277
18278 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
18279
18280 * config/m68k/m68k.c (split_di): New.
18281 * config/m68k/m68k-protos.h: Declare split_di.
18282 * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
18283 Improve predicate handling and split constant shifts.
18284
18285 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
18286
18287 * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
18288 parameter for register bitfield operations, general predicates
18289 cleanup
18290
18291 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
18292
18293 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
18294 * config/m68k/linux-unwind.h: New file.
18295
18296 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
18297
18298 * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
18299 config/i386/athlon.md, config/ia64/ia64.md,
18300 config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
18301 df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
18302 ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
18303 tree-ssa-loop-niter.c, tree-vect-analyze.c,
18304 tree-vect-transform.c: Fix comment typos.
18305
18306 2007-02-17 Kazu Hirata <kazu@codesourcery.com>
18307
18308 * sched-deps.c (find_insn_list): Remove.
18309 * sched-int.h: Remove the prototype for find_insn_list.
18310
18311 2007-02-16 Geoffrey Keating <geoffk@apple.com>
18312
18313 * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
18314 to linker.
18315 (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
18316 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
18317 darwin_rs6000_override_options.
18318 (C_COMMON_OVERRIDE_OPTIONS): Expect
18319 darwin_macosx_version_min to be non-NULL always.
18320 (TARGET_C99_FUNCTIONS): Likewise.
18321 (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
18322 (DARWIN_MINVERSION_SPEC): New.
18323 * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
18324 * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
18325 to cc1*.
18326 (DARWIN_MINVERSION_SPEC): New.
18327 * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
18328 value.
18329 * config/darwin-c.c (darwin_cpp_builtins): Expect
18330 darwin_macosx_version_min to be non-NULL always.
18331
18332 * config/rs6000/rs6000.c: Clean up trailing whitespace.
18333
18334 2007-02-16 Uros Bizjak <ubizjak@gmail.com>
18335
18336 * config/i386/i386.h (x86_use_xchgb): New.
18337 (TARGET_USE_XCHGB): New macro.
18338 * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
18339 * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
18340 Split after reload into bswaphi for shifts of 8.
18341 (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
18342 (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
18343 or when optimizing for size.
18344
18345 2007-02-16 Richard Guenther <rguenther@suse.de>
18346 Christian Bruel <christian.bruel@st.com>
18347
18348 * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
18349 DECLs but prefer SSA_NAMEs over DECLs.
18350
18351 2007-02-16 Richard Guenther <rguenther@suse.de>
18352
18353 * tree-flow-inline.h (single_imm_use_p): Remove.
18354 (zero_imm_uses_p): Likewise.
18355 * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
18356 instead of single_imm_use_p.
18357 * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
18358 zero_imm_uses_p.
18359
18360 2007-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18361
18362 PR other/27843
18363 * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
18364 nested double- and backquotes.
18365
18366 2007-02-15 Roger Sayle <roger@eyesopen.com>
18367
18368 PR middle-end/30391
18369 * tree.c (expr_align): Handle MODIFY_EXPR. GIMPLE_MODIFY_STMT
18370 should be unreachable.
18371 (build2_stat): Allow construction of MODIFY_EXPR at any time.
18372 For the time being redirect GIMPLE_MODIFY_STMT to the new
18373 (renamed) build_gimple_modify_stmt_stat.
18374 (build2_gimple_stat): Rename to...
18375 (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
18376 Always build a GIMPLE_MODIFY_STMT node.
18377 * tree.h (build2_gimple, build2_gimple_stat): Delete.
18378 (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
18379 declarations.
18380
18381 * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
18382 gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
18383 * tree-complex.c (set_component_ssa_name, expand_complex_move,
18384 expand_complex_div_wide): Likewise.
18385 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
18386 * tree-ssa-loop-im.c (schedule_sm): Likewise.
18387 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
18388 * tree-ssa-loop-manip.c (create_iv): Likewise.
18389 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
18390 abs_replacement): Likewise.
18391 * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
18392 realify_fake_stores): Likewise.
18393
18394 * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
18395 node rather than a GIMPLE_MODIFY_STMT node.
18396 (std_gimpify_va_arg_expr, expand_builtin_va_copy,
18397 fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
18398 Likewise.
18399 (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
18400 * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
18401 GIMPLE_MODIFY_STMT.
18402
18403 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
18404
18405 PR middle-end/30433
18406 * fold-const.c (fold_comparison): Add back the
18407 folding of constant complex comparisions.
18408
18409 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
18410
18411 PR middle-end/30729
18412 * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
18413 effects unknown to this function, return early.
18414
18415 2007-02-15 Ian Lance Taylor <iant@google.com>
18416
18417 * lower-subreg.c (move_eh_region_note): New static function.
18418 (resolve_simple_move): Call it.
18419 (decompose_multiword_subregs): Track blocks for which we resolve a
18420 simple move which is also a control flow insn. Pass them to
18421 find_many_sub_basic_blocks.
18422 (pass_lower_subreg): Add TODO_verify_flow.
18423 (pass_lower_subreg2): Likewise.
18424
18425 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
18426 Brooks Moses <brooks.moses@codesourcery.com>
18427 Lee Millward <lee.millward@codesourcery.com>
18428
18429 * tree.h (enum tree_code_class): Add tcc_vl_exp.
18430 (VL_EXP_CLASS_P): New.
18431 (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
18432 TREE_CODE_LENGTH.
18433 (TREE_OPERAND_CHECK_CODE): Likewise.
18434 (GIMPLE_STMT_OPERAND_CHECK): Likewise.
18435 (TREE_RTL_OPERAND_CHECK): Likewise.
18436 (tree_operand_check_failed): Make second parameter the whole tree
18437 instead of its code. Fixed callers.
18438 (VL_EXP_CHECK): New.
18439 (TREE_OPERAND_LENGTH): New.
18440 (VL_EXP_OPERAND_LENGTH): New.
18441 (CALL_EXPR_FN): New.
18442 (CALL_EXPR_STATIC_CHAIN): New.
18443 (CALL_EXPR_ARGS): New.
18444 (CALL_EXPR_ARG): New.
18445 (call_expr_nargs): New.
18446 (CALL_EXPR_ARGP): New.
18447 (build_nt_call_list): Declare.
18448 (build_vl_exp_stat): Declare.
18449 (build_vl_exp): New.
18450 (build_call_list): Declare.
18451 (build_call_nary): Declare.
18452 (build_call_valist): Declare.
18453 (build_call_array): Declare.
18454 (call_expr_arg): Declare.
18455 (call_expr_argp): Declare.
18456 (call_expr_arglist): Declare.
18457 (fold_build_call_list): Declare.
18458 (fold_build_call_list_initializer): Declare.
18459 (fold_call_expr): Declare to replace fold_builtin.
18460 (fold_builtin_fputs): Update to agree with modified definition.
18461 (fold_builtin_strcpy): Likewise.
18462 (fold_builtin_strncpy): Likewise.
18463 (fold_builtin_memory_chk): Likewise.
18464 (fold_builtin_stxcpy_chk): Likewise.
18465 (fold_builtin_strncpy_chk): Likewise.
18466 (fold_builtin_next_arg): Likewise.
18467 (fold_build_call_expr): Declare.
18468 (fold_builtin_call_list): Declare.
18469 (fold_builtin_call_valist): Declare.
18470 (build_call_expr): Declare.
18471 (validate_arglist): Update to agree with modified definition.
18472 (tree_operand_length): New.
18473 (call_expr_arg_iterator): New.
18474 (init_call_expr_arg_iterator): New.
18475 (next_call_expr_arg): New.
18476 (first_call_expr_arg): New.
18477 (more_call_expr_args_p): New.
18478 (FOR_EACH_CALL_EXPR_ARG): New.
18479
18480 * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
18481 and tcc_gimple_stmt.
18482 (tree_code_size): Update documentation. Use sizeof (tree) rather
18483 than sizeof (char *).
18484 (tree_size): Likewise. Add case for tcc_vl_exp.
18485 (tree_node_structure): Add case for tcc_vl_exp.
18486 (contains_placeholder_p): Likewise.
18487 (substitute_in_expr): Likewise.
18488 (substitute_placeholder_in_expr): Likewise.
18489 (stabilize_reference_1): Likewise.
18490 (build3_stat): Remove logic for CALL_EXPRs. Replace with assertion
18491 to diagnose breakage of this interface for constructing CALL_EXPRs.
18492 (build_nt): Add similar assertion here.
18493 (build_nt_call_list): New.
18494 (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
18495 (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
18496 TREE_CODE_LENGTH.
18497 (get_callee_fndecl): Use new CALL_EXPR accessors.
18498 (tree_operand_check_failed): Change parameters to pass entire node
18499 instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
18500 (process_call_operands): New.
18501 (build_vl_exp_stat): New.
18502 (build_call_list): New.
18503 (build_call_nary): New.
18504 (build_call_valist): New.
18505 (build_call_array): New.
18506 (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
18507 (call_expr_arglist): New.
18508
18509 * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
18510 tcc_vl_exp instead of a fixed-size tcc_expression.
18511
18512 * doc/c-tree.texi (CALL_EXPR): Document new representation and
18513 accessors for CALL_EXPRs.
18514 (AGGR_INIT_EXPR): Likewise.
18515
18516 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
18517 Brooks Moses <brooks.moses@codesourcery.com>
18518 Lee Millward <lee.millward@codesourcery.com>
18519
18520 * builtins.c (c_strlen): Return NULL_TREE instead of 0.
18521 (expand_builtin_nonlocal_goto): Change parameter to be entire
18522 CALL_EXPR instead of an arglist. Use new CALL_EXPR accessors.
18523 (expand_builtin_prefetch): Likewise.
18524 (expand_builtin_classify_type): Likewise.
18525 (mathfn_built_in): Return NULL_TREE instead of 0.
18526 (expand_errno_check): Use new CALL_EXPR accessors.
18527 (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
18528 Return NULL_RTX instead of 0.
18529 (expand_builtin_mathfn_2): Likewise.
18530 (expand_builtin_mathfn_3): Likewise.
18531 (expand_builtin_interclass_mathfn): Likewise.
18532 (expand_builtin_sincos): Likewise.
18533 (expand_builtin_cexpi): Likewise.
18534 (expand_builtin_int_roundingfn): Likewise.
18535 (expand_builtin_int_roundingfn_2): Likewise.
18536 (expand_builtin_pow): Likewise.
18537 (expand_builtin_powi): Likewise.
18538 (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
18539 of arglist, fixing callers appropriately. Use new CALL_EXPR
18540 accessors and constructors. Return NULL_RTX instead of 0.
18541 (expand_builtin_strstr): Likewise.
18542 (expand_builtin_strchr): Likewise.
18543 (expand_builtin_strrchr): Likewise.
18544 (expand_builtin_strpbrk): Likewise.
18545 (expand_builtin_memcpy): Likewise.
18546 (expand_builtin_mempcpy): Likewise.
18547 (expand_builtin_mempcpy_args): New.
18548 (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
18549 (expand_builtin_memmove_args): New.
18550 (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
18551 (expand_movstr): Likewise.
18552 (expand_builtin_strcpy): Likewise.
18553 (expand_builtin_strcpy_args): New.
18554 (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
18555 (expand_builtin_strncpy): Likewise.
18556 (expand_builtin_memset): Likewise.
18557 (expand_builtin_memset_args): New.
18558 (expand_builtin_bzero): Similarly to expand_builtin_memset.
18559 (expand_builtin_memcmp): Likewise.
18560 (expand_builtin_strcmp): Likewise.
18561 (expand_builtin_strncmp): Likewise.
18562 (expand_builtin_strcat): Likewise.
18563 (expand_builtin_strncat): Likewise.
18564 (expand_builtin_strspn): Likewise.
18565 (expand_builtin_strcspn): Likewise.
18566 (expand_builtin_args_info): Likewise.
18567 (expand_builtin_va_start): Likewise.
18568 (gimplify_va_arg_expr): Likewise.
18569 (expand_builtin_va_end): Likewise.
18570 (expand_builtin_va_copy): Likewise.
18571 (expand_builtin_frame_address): Likewise.
18572 (expand_builtin_alloca): Likewise.
18573 (expand_builtin_bswap): Likewise.
18574 (expand_builtin_unop): Likewise.
18575 (expand_builtin_fputs): Likewise.
18576 (expand_builtin_expect): Likewise.
18577 (expand_builtin_fabs): Likewise.
18578 (expand_builtin_copysign): Likewise.
18579 (expand_builtin_printf): Likewise.
18580 (expand_builtin_fprintf): Likewise.
18581 (expand_builtin_sprintf): Likewise.
18582 (expand_builtin_init_trampoline): Likewise.
18583 (expand_builtin_signbit): Likewise.
18584 (expand_builtin_fork_or_exec): Likewise.
18585 (expand_builtin_sync_operation): Likewise.
18586 (expand_builtin_compare_and_swap): Likewise.
18587 (expand_builtin_lock_test_and_set): Likewise.
18588 (expand_builtin_lock_release): Likewise.
18589 (expand_builtin): Likewise.
18590 (builtin_mathfn_code): Likewise.
18591
18592 (fold_builtin_constant_p): Pass call arguments individually instead
18593 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
18594 accessors and constructors. Return NULL_TREE instead of 0.
18595 (fold_builtin_expect): Likewise.
18596 (fold_builtin_classify_type): Likewise.
18597 (fold_builtin_strlen): Likewise.
18598 (fold_builtin_nan): Likewise.
18599 (integer_valued_real_p): Likewise.
18600 (fold_trunc_transparent_mathfn): Likewise.
18601 (fold_fixed_mathfn): Likewise.
18602 (fold_builtin_cabs): Likewise.
18603 (fold_builtin_sqrt): Likewise.
18604 (fold_builtin_cbrt): Likewise.
18605 (fold_builtin_cos): Likewise.
18606 (fold_builtin_cosh): Likewise.
18607 (fold_builtin_tan): Likewise.
18608 (fold_builtin_sincos): Likewise.
18609 (fold_builtin_cexp): Likewise.
18610 (fold_builtin_trunc): Likewise.
18611 (fold_builtin_floor): Likewise.
18612 (fold_builtin_ceil): Likewise.
18613 (fold_builtin_round): Likewise.
18614 (fold_builtin_int_roundingfn): Likewise.
18615 (fold_builtin_bitop): Likewise.
18616 (fold_builtin_bswap): Likewise.
18617 (fold_builtin_logarithm): Likewise.
18618 (fold_builtin_hypot): Likewise.
18619 (fold_builtin_pow): Likewise.
18620 (fold_builtin_powi): Likewise.
18621 (fold_builtin_exponent): Likewise.
18622 (fold_builtin_memset): Likewise.
18623 (fold_builtin_bzero): Likewise.
18624 (fold_builtin_memory_op): Likewise.
18625 (fold_builtin_bcopy): Deleted; call site changed to invoke
18626 fold_builtin_memory_op directly.
18627 (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
18628 (fold_builtin_strncpy): Likewise.
18629 (fold_builtin_memcmp): Likewise.
18630 (fold_builtin_strcmp): Likewise.
18631 (fold_builtin_strncmp): Likewise.
18632 (fold_builtin_signbit): Likewise.
18633 (fold_builtin_copysign): Likewise.
18634 (fold_builtin_isascii): Likewise.
18635 (fold_builtin_toascii): Likewise.
18636 (fold_builtin_isdigit): Likewise.
18637 (fold_builtin_fabs): Likewise.
18638 (fold_builtin_abs): Likewise.
18639 (fold_builtin_fmin_fmax): Likewise.
18640 (fold_builtin_carg): Likewise.
18641 (fold_builtin_classify): Likewise.
18642 (fold_builtin_unordered_cmp): Likewise.
18643
18644 (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
18645 New functions split out from fold_builtin_1.
18646 (fold_builtin_n): New.
18647 (fold_builtin_varargs): New.
18648 (fold_builtin): Deleted. Most callers changed to use fold_call_expr
18649 instead.
18650 (fold_call_expr): New.
18651 (build_function_call_expr): Rewrite to use new helper function.
18652 (fold_builtin_call_list): New.
18653 (build_call_expr): New.
18654 (fold_builtin_call_valist): New.
18655 (rewrite_call_expr): New.
18656 (validate_arg): New.
18657 (validate_arglist): Change parameter to be entire CALL_EXPR instead
18658 of an arglist. Change return type to bool. Use new CALL_EXPR
18659 accessors.
18660
18661 (fold_builtin_strstr): Pass call arguments individually instead
18662 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
18663 accessors and constructors. Return NULL_TREE instead of 0.
18664 (fold_builtin_strchr): Likewise.
18665 (fold_builtin_strrchr): Likewise.
18666 (fold_builtin_strpbrk): Likewise.
18667 (fold_builtin_strcat): Likewise.
18668 (fold_builtin_strncat): Likewise.
18669 (fold_builtin_strspn): Likewise.
18670 (fold_builtin_strcspn): Likewise.
18671 (fold_builtin_fputs): Likewise.
18672 (fold_builtin_next_arg): Likewise.
18673 (fold_builtin_sprintf): Likewise.
18674
18675 (expand_builtin_object_size): Use new CALL_EXPR accessors. Use
18676 NULL_RTX instead of 0.
18677 (expand_builtin_memory_chk): Likewise.
18678 (maybe_emit_chk_warning): Likewise.
18679 (maybe_emit_sprintf_chk_warning): Likewise.
18680
18681 (fold_builtin_object_size): Pass call arguments individually instead
18682 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
18683 accessors and constructors. Return NULL_TREE instead of 0.
18684 (fold_builtin_memory_chk): Likewise.
18685 (fold_builtin_stxcpy_chk): Likewise.
18686 (fold_builtin_strncpy_chk): Likewise.
18687 (fold_builtin_strcat_chk): Likewise.
18688 (fold_builtin_strcat_chk): Likewise.
18689 (fold_builtin_strncat_chk): Likewise.
18690 (fold_builtin_sprintf_chk): Likewise.
18691 (fold_builtin_snprintf_chk): Likewise.
18692 (fold_builtin_printf): Likewise.
18693 (fold_builtin_vprintf): Likewise.
18694
18695 * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
18696 constructors.
18697 (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
18698 (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
18699 (extract_muldiv_1): Add VL_EXP_CLASS_P case.
18700 (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
18701 (fold_unary): Likewise.
18702 (fold_binary): Likewise.
18703 (fold_ternary): Remove CALL_EXPR case, since they are no longer
18704 ternary expressions.
18705 (fold): Add logic for tcc_vl_exp.
18706 (fold_checksum_tree): Make it know about tcc_vl_exp. Use
18707 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
18708 (fold_build3_stat): Add assertion to flag broken interface for
18709 constructing CALL_EXPRs.
18710 (fold_build_call_list): New.
18711 (fold_build_call_list_initializer): New.
18712 (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
18713 constructors.
18714 (fold_strip_sign_ops): Likewise.
18715
18716 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
18717 Brooks Moses <brooks.moses@codesourcery.com>
18718 Lee Millward <lee.millward@codesourcery.com>
18719
18720 * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
18721 accessors and dump arguments explicitly.
18722
18723 * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
18724 TREE_CODE_LENGTH.
18725 (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
18726 explicitly.
18727 (print_call_name): Use new CALL_EXPR accessors.
18728
18729 * print-tree.c (print_node): Add case tcc_vl_exp. Print
18730 CALL_EXPR arguments explicitly instead of as a list. Use
18731 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
18732
18733 * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
18734 (vrp_visit_stmt): Likewise.
18735
18736 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
18737 know about tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of
18738 TREE_CODE_LENGTH.
18739 (force_move_till_expr): Likewise.
18740
18741 * targhooks.c (default_external_stack_protect_fail): Use
18742 build_call_expr instead of build_function_call_expr.
18743 (default_hidden_stack_protect_fail): Likewise.
18744
18745 * tree-complex.c (expand_complex_libcall): Use build_call_expr to
18746 build the call.
18747
18748 * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
18749 and walk arguments explicitly.
18750
18751 * tree-ssa-loop-niter.c (simplify_replace_tree): Use
18752 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
18753 (expand_simple_operations): Likewise.
18754 (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
18755
18756 * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
18757 of TREE_CODE_LENGTH.
18758 (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
18759
18760 * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
18761 instead of TREE_CODE_LENGTH.
18762
18763 * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
18764 (tree_ic_transform): Likewise.
18765 (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
18766 parameter instead of arglist. Fix callers.
18767 (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
18768 (tree_stringops_transform): Likewise.
18769 (tree_indirect_call_to_profile): Likewise.
18770 (tree_stringops_values_to_profile): Likewise.
18771
18772 * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
18773 (eliminate_tail_call): Likewise.
18774
18775 * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
18776
18777 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
18778 Use TREE_OPERAND_LENGTH and generalize to handle any number of
18779 operands.
18780 (instantiate_parameters_1): Can't handle tcc_vl_exp here.
18781
18782 * omp-low.c (build_omp_barrier): Use build_call_expr.
18783 (lower_rec_input_clauses): Likewise.
18784 (lower_reduction_clauses): Likewise.
18785 (expand_parallel_call): Likewise.
18786 (maybe_catch_exception): Likewise.
18787 (expand_omp_for_generic): Likewise.
18788 (expand_omp_for_static_nochunk): Likewise.
18789 (expand_omp_sections): Likewise.
18790 (lower_omp_single_simple): Likewise.
18791 (lower_omp_single_copy): Likewise.
18792 (lower_omp_master): Likewise.
18793 (lower_omp_ordered): Likewise.
18794 (lower_omp_critical): Likewise.
18795
18796 * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
18797 (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
18798
18799 * tree-gimple.c (is_gimple_call_addr): Fix doc.
18800 (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
18801 TREE_CODE_LENGTH. Add tcc_vl_exp case.
18802
18803 * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
18804 and generalize to handle any number of operands.
18805 (chrec_contains_undetermined): Likewise.
18806 (tree_contains_chrecs): Likewise.
18807 (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
18808
18809 * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
18810
18811 * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors. Use
18812 fold_call_expr instead of fold_builtin.
18813 (ccp_fold_builtin): Likewise. Update calls into builtins.c to
18814 match declarations there.
18815 (fold_stmt): Use new CALL_EXPR constructor and accessors. Doc
18816 updates.
18817
18818 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
18819 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
18820
18821 * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
18822 (scan_function): Add case tcc_vl_exp for CALL_EXPR.
18823
18824 * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
18825 accessors.
18826
18827 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
18828 (execute_cse_sincos): Use new CALL_EXPR accessors.
18829
18830 * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
18831
18832 * gimple-low.c (lower_function_body): Use build_call_expr.
18833 (lower_builtin_setjmp): Likewise.
18834
18835 * expr.c (emit_block_move_via_libcall): Use build_call_expr.
18836 (set_storage_via_libcall): Likewise.
18837 (safe_from_p): Add tcc_vl_exp case. Use TREE_OPERAND_LENGTH
18838 instead of TREE_CODE_LENGTH.
18839 (expand_expr_real_1): Use new CALL_EXPR accessors.
18840
18841 * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
18842 generalize to handle any number of operands.
18843 (TB_parent_eq): Likewise.
18844
18845 * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
18846 (strip_builtin_expect): Likewise.
18847
18848 * function.c (gimplify_parameters): Use build_call_expr.
18849
18850 * tree-vectorizer.c (vect_is_simple_reduction): Use
18851 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
18852
18853 * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
18854 (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
18855
18856 * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
18857 iterators.
18858
18859 * gimplify.c (build_stack_save_restore): Use build_call_expr.
18860 (gimplify_decl_expr): Likewise.
18861 (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
18862 Use new CALL_EXPR iterators.
18863 (gimplify_modify_expr_to_memcpy): Use build_call_expr.
18864 (gimplify_modify_expr_to_memset): Likewise.
18865 (gimplify_variable_sized_compare): Likewise.
18866 (gimplify_omp_atomic_fetch_op): Likewise.
18867 (gimplify_omp_atomic_pipeline): Likewise.
18868 (gimplify_omp_atomic_mutex): Likewise.
18869 (gimplify_function_tree): Likewise.
18870
18871 * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
18872 (call_expr_flags): Likewise.
18873 (expand_call): Likewise.
18874
18875 * except.c (expand_builtin_eh_return_data_regno): Pass entire
18876 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
18877 accessors.
18878
18879 * coverage.c (create_coverage): Use build_call_expr.
18880
18881 * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
18882 (temp_call_expr_obstack): New.
18883 (pool_copy_list): Delete.
18884 (temp_copy_call_expr): New.
18885 (phi_translate): Add case tcc_vl_exp for CALL_EXPR. Use new
18886 CALL_EXPR accessors. Get rid of special goo for copying argument
18887 lists and use temp_copy_call_expr instead.
18888 (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR. Use new
18889 CALL_EXPR accessors.
18890 (create_expression_by_pieces): Likewise. Use build_call_array
18891 to construct the result instead of fold_build3.
18892 (create_value_expr_from): Add tcc_vl_exp. Delete special goo for
18893 dealing with argument lists.
18894 (init_pre): Remove references to expression_node_pool and
18895 list_node_pool. Init temp_call_expr_obstack instead.
18896 (fini_pre): Remove references to expression_node_pool and
18897 list_node_pool.
18898
18899 * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
18900 and walk arguments explicitly instead of as a list.
18901
18902 * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
18903 (mx_register_decls): Likewise.
18904 (mudflap_register_call): Likewise.
18905 (mudflap_finish_file): Likewise.
18906
18907 * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
18908 (ipa_callsite_compute_param): Likewise.
18909
18910 * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
18911 accessors and constructor.
18912
18913 * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
18914 accessors and constructor.
18915 (convert_tramp_reference): Likewise.
18916 (convert_call_expr): Likewise.
18917 (finalize_nesting_tree_1): Likewise.
18918
18919 * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
18920 accessors.
18921
18922 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
18923
18924 * tree-inline.c (initialize_inlined_parameters): Pass entire
18925 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
18926 accessors.
18927 (estimate_num_insns_1): Use new CALL_EXPR accessors.
18928 (expand_call_inline): Tidy up call to initialize_inlined_parameters.
18929
18930 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
18931 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
18932 (vectorizable_reduction): Likewise.
18933 (vectorizable_call): Use new CALL_EXPR iterators.
18934 (vectorizable_conversion): Use build_call_expr.
18935 (vectorizable_operation): Use TREE_OPERAND_LENGTH.
18936 (vect_gen_widened_results_half): Use build_call_expr.
18937 (vect_setup_realignment): Likewise.
18938 (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
18939
18940 * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
18941 (pass_through_call): Likewise.
18942 (compute_object_sizes): Likewise. Use fold_call_expr instead of
18943 fold_builtin.
18944
18945 * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
18946 (tree_gen_pow2_profiler): Likewise.
18947 (tree_gen_one_value_profiler): Likewise.
18948 (tree_gen_ic_func_profiler): Likewise.
18949 (tree_gen_average_profiler): Likewise.
18950 (tree_gen_ior_profiler): Likewise.
18951
18952 * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
18953 (find_func_aliases): Use new CALL_EXPR accessors. Add case
18954 tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
18955
18956 * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
18957 of TREE_CODE_LENGTH.
18958
18959 * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
18960 of TREE_CODE_LENGTH.
18961
18962 * convert.c (convert_to_real): Use new CALL_EXPR accessors and
18963 constructor.
18964 (convert_to_integer): Likewise.
18965
18966 * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
18967 accessors.
18968
18969 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
18970 Brooks Moses <brooks.moses@codesourcery.com>
18971 Lee Millward <lee.millward@codesourcery.com>
18972
18973 * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
18974 accessors.
18975 * config/frv/frv.c (frv_expand_builtin): Likewise.
18976 * config/s390/s390.c (s390_expand_builtin): Likewise.
18977
18978 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
18979 (sparc_expand_builtin): Use new CALL_EXPR accessors.
18980
18981 * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
18982 (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
18983 instead of arglist. Use new CALL_EXPR accessors on it. Fix callers.
18984 (ix86_expand_store_builtin): Likewise.
18985 (ix86_expand_unop_builtin): Likewise.
18986 (ix86_expand_unop1_builtin): Likewise.
18987 (ix86_expand_sse_compare): Likewise.
18988 (ix86_expand_sse_comi): Likewise.
18989 (ix86_expand_vec_init_builtin): Likewise.
18990 (ix86_expand_vec_ext_builtin): Likewise.
18991 (ix86_expand_vec_set_builtin): Likewise.
18992 (ix86_expand_builtin): Use new CALL_EXPR accessors.
18993
18994 * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
18995 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
18996
18997 * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
18998 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
18999 (iq2000_expand_builtin): Use new CALL_EXPR accessors.
19000
19001 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
19002 build_call_expr.
19003 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
19004 (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
19005 arglist. Use new CALL_EXPR accessors. Fix callers.
19006 (altivec_expand_abs_builtin): Likewise.
19007 (rs6000_expand_binop_builtin): Likewise.
19008 (altivec_expand_predicate_builtin): Likewise.
19009 (altivec_expand_lv_builtin): Likewise.
19010 (spe_expand_stv_builtin): Likewise.
19011 (altivec_expand_stv_builtin): Likewise.
19012 (rs6000_expand_ternop_builtin): Likewise.
19013 (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
19014 (altivec_expand_st_builtin): Likewise.
19015 (altivec_expand_dst_builtin): Likewise.
19016 (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
19017 arglist. Use new CALL_EXPR accessors. Fix callers.
19018 (altivec_expand_vec_set_builtin): Likewise.
19019 (altivec_expand_vec_ext_builtin): Likewise.
19020 (altivec_expand_builtin): Use new CALL_EXPR accessors.
19021 (spe_expand_builtin): Likewise.
19022 (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
19023 arglist. Use new CALL_EXPR accessors. Fix callers.
19024 (spe_expand_evsel_builtin): Likewise.
19025 (rs6000_expand_builtin): Use new CALL_EXPR accessors. VCFUX and
19026 FCFSX cases must construct whole new CALL_EXPR, not just arglist.
19027
19028 * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
19029 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
19030 (arm_expand_unop_builtin): Likewise.
19031 (arm_expand_builtin): Use new CALL_EXPR accessors.
19032
19033 * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
19034 accessors.
19035
19036 * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire
19037 CALL_EXPR instead of arglist. Use new CALL_EXPR accessors.
19038 Fix callers.
19039 (bfin_expand_unop_builtin): Likewise.
19040 (bfin_expand_builtin): Use new CALL_EXPR accessors.
19041
19042 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
19043 Brooks Moses <brooks.moses@codesourcery.com>
19044 Lee Millward <lee.millward@codesourcery.com>
19045
19046 * c-semantics.c (build_stmt): Add internal diagnostic check.
19047
19048 * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
19049 accessors. Print arguments explicitly instead of as a list.
19050
19051 * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
19052
19053 * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
19054 (c_finish_omp_flish): Likewise.
19055
19056 * c-common.c (verify_tree): Use new CALL_EXPR accessors. Traverse
19057 arguments explicitly instead of as a list. Use TREE_OPERAND_LENGTH
19058 instead of TREE_CODE_LENGTH.
19059 (check_function_arguments_recurse): Use new CALL_EXPR accessors.
19060 (c_warn_unused_result): Likewise.
19061
19062 2007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19063
19064 PR c/26494
19065 * doc/invoke.texi (Warning Options): Remove
19066 -Werror-implicit-function-declaration.
19067 (Wimplicit-function-declaration): Update description.
19068 * opts.c (common_handle_option): Move handling of -Werror=* to...
19069 (enable_warning_as_error): ...here.
19070 * opts.h (enable_warning_as_error): Declare.
19071 * c-decl.c (implicit_decl_warning): Unless
19072 -Wno-implicit-function-declaration is given, emit a pedwarn if
19073 -std=c99 or emit a warning if -Wimplicit-function-declaration.
19074 * c.opt (Wimplicit-function-declaration): Replace
19075 mesg_implicit_function_declaration with
19076 warn_implicit_function_declaration.
19077 * c-opts.c (c_common_handle_option):
19078 -Werror-implicit-function-declaration is exactly equal as
19079 -Werror=implicit-function-declaration.
19080 (set_Wimplicit): Replace mesg_implicit_function_declaration with
19081 warn_implicit_function_declaration.
19082 (c_common_post_options): -Wimplict-function-declaration is enabled
19083 by default by -std=c99, otherwise is disabled by default.
19084 * c-objc-common.c (c_objc_common_init): Remove flawed logic.
19085
19086 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
19087
19088 * gimplify.c (gimplify_modify_expr): During gimplification, attach a
19089 DECL on the rhs to a DECL on the lhs for debug info purposes if the
19090 former is ignored but not the latter.
19091
19092 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
19093
19094 * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
19095 is made and the reference doesn't use the alias set of its type,
19096 do not create the temporary using that type.
19097
19098 2007-02-15 Aldy Hernandez <aldyh@redhat.com>
19099
19100 * jump.c: Remove prototypes for delete_computation and
19101 delete_prior_computation.
19102
19103 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
19104
19105 * jump.c (get_label_after): Delete.
19106 (get_label_before, delete_computation, delete_jump,
19107 delete_prior_computation, follow_jumps): Move...
19108 * reorg.c (delete_computation, delete_prior_computation): ... here...
19109 (get_label_before, delete_jump): ... making these static ...
19110 (follow_jumps): ... and simplifying this since it only runs after
19111 reload.
19112 * rtl.h (get_label_after, get_label_before, delete_jump,
19113 follow_jumps): Delete prototypes.
19114
19115 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
19116
19117 * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
19118
19119 2007-02-15 Nick Clifton <nickc@redhat.com>
19120
19121 * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
19122 order to prevent it from being munged by the target.
19123
19124 2007-02-15 Uros Bizjak <ubizjak@gmail.com>
19125
19126 * config/i386/i386.md: Remove misleading comment.
19127
19128 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
19129
19130 * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
19131 reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
19132 invalid patterns.
19133
19134 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
19135
19136 * tree-sra.c (instantiate_missing_elements): Canonicalize
19137 bit-field types.
19138 (sra_build_assignment): New.
19139 (generate_copy_inout, generate_element_copy,
19140 generate_element_zero, generate_one_element_init): Use it.
19141
19142 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
19143
19144 * tree-sra.c (instantiate_missing_elements): Canonicalize
19145 bit-field types.
19146 (sra_build_assignment): New.
19147 (generate_copy_inout, generate_element_copy,
19148 generate_element_zero, generate_one_element_init): Use it.
19149
19150 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
19151
19152 * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
19153 limbo die nodes.
19154
19155 2007-02-14 Joseph Myers <joseph@codesourcery.com>
19156
19157 * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
19158 types as aggregates not scalars.
19159 * function.c (assign_stack_temp_for_type): Likewise.
19160
19161 2007-02-14 Roger Sayle <roger@eyesopen.com>
19162 Zdenek Dvorak <dvorakz@suse.cz>
19163
19164 * tree-dump.c (dump_switch_p_1): Require exact match of the option
19165 name.
19166
19167 2007-02-14 Zdenek Dvorak <dvorakz@suse.cz>
19168
19169 * passes.c (next_pass_1): Clear the next field of the copied
19170 pass structure.
19171
19172 2007-02-14 Richard Henderson <rth@redhat.com>
19173
19174 * tree-sra.c (early_sra): New.
19175 (decl_can_be_decomposed_p): Deny va_list if early_sra.
19176 (tree_sra_early, pass_sra_early): New.
19177 * tree-pass.h (pass_sra_early): Declare.
19178 * passes.c (init_optimization_passes): Use it.
19179
19180 2007-02-14 Richard Guenther <rguenther@suse.de>
19181
19182 * flags.h (issue_strict_overflow_warning): Convert to a macro.
19183
19184 2007-02-14 Dorit Nuzman <dorit@il.ibm.com>
19185
19186 PR tree-optimization/30771
19187 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
19188 also phi nodes.
19189 (vect_analyze_operations): Induction phis can now be marked as
19190 used_in_loop.
19191 (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
19192 Update documentation accordingly.
19193
19194 2007-02-14 Nick Clifton <nickc@redhat.com>
19195
19196 * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
19197 most 3 arguments are supported.
19198 (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
19199
19200 2007-02-13 Seongbae Park <seongbae.park@gmail.com>
19201
19202 * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
19203 Ensure dst->current is valid.
19204
19205 2007-02-13 Paul Brook <paul@codesourcery.com>
19206
19207 * config.gcc: Add arm*-*-uclinux-*eabi.
19208 * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
19209 (SUBTARGET_EXTRA_LINK_SPEC): Define.
19210 (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
19211 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
19212 (LINK_SPEC): Define.
19213 (LIB_SPEC): Define.
19214 * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
19215 register.
19216 * config/arm/uclinux-eabi.h: New file.
19217 * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
19218 * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
19219 based targets.
19220
19221 2007-02-13 Ian Lance Taylor <iant@google.com>
19222
19223 * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
19224 * flags.h (warn_strict_overflow): Declare.
19225 (enum warn_strict_overflow_code): Define.
19226 (issue_strict_overflow_warning): New static inline function.
19227 * opts.c (warn_strict_overflow): New variable.
19228 (common_handle_option): Handle OPT_Wstrict_overflow and
19229 OPT_Wstrict_overflow_.
19230 * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
19231 OPT_Wall.
19232 * fold-const.c: Include intl.h.
19233 (fold_deferring_overflow_warnings): New static variable.
19234 (fold_deferred_overflow_warning): New static variable.
19235 (fold_deferred_overflow_code): New static variable.
19236 (fold_defer_overflow_warnings): New function.
19237 (fold_undefer_overflow_warnings): New function.
19238 (fold_undefer_and_ignore_overflow_warnings): New function.
19239 (fold_deferring_overflow_warnings_p): New function.
19240 (fold_overflow_warning): New static function.
19241 (make_range): Add strict_overflow_p parameter. Change all
19242 callers.
19243 (extract_muldiv, extract_muldiv_1): Likewise.
19244 (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
19245 tree_expr_nonnegative_p.
19246 (fold_negate_expr): Call fold_overflow_warning.
19247 (fold_range_test): Likewise.
19248 (fold_comparison): Likewise.
19249 (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
19250 instead of tree_expr_nonnegative_p.
19251 (tree_expr_nonnegative_warnv_p): Rename from
19252 tree_expr_nonnegative_p, add strict_overflow_p parameter.
19253 (tree_expr_nonnegative_p): New function.
19254 (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
19255 strict_overflow_p parameter.
19256 (tree_expr_nonzero_p): New function.
19257 * passes.c (verify_interpass_invariants): New static function.
19258 (execute_one_pass): Call it.
19259 * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
19260 warnings.
19261 (number_of_iterations_exit, loop_niter_by_eval): Likewise.
19262 (estimate_numbers_of_iterations): Likewise.
19263 (scev_probably_wraps_p): Likewise.
19264 * tree-ssa-ccp.c: Include "toplev.h".
19265 (evaluate_stmt): Defer fold overflow warnings until we know we are
19266 going to optimize.
19267 (struct fold_stmt_r_data): Add stmt field.
19268 (fold_stmt_r): Defer fold overflow warnings until we know we
19269 optimized.
19270 (fold_stmt): Initialize stmt field of fold_stmt_r_data.
19271 (fold_stmt_inplace): Likewise.
19272 * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
19273 (cleanup_control_expr_graph): Defer fold overflow warnings until
19274 we know we are going to optimize.
19275 * tree-cfg.c (fold_cond_expr_cond): Likewise.
19276 * tree-ssa-threadedge.c (simplify_control_stmt_condition):
19277 Likewise.
19278 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
19279 tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
19280 * tree-ssa-loop-manip.c (create_iv): Likewise.
19281 * c-typeck.c (build_conditional_expr): Likewise.
19282 (build_binary_op): Likewise.
19283 * tree-vrp.c (vrp_expr_computes_nonzero): Call
19284 tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
19285 (extract_range_from_unary_expr): Likewise.
19286 * simplify-rtx.c (simplify_const_relational_operation): Warn when
19287 assuming that signed overflow does not occur.
19288 * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
19289 * tree.h (tree_expr_nonnegative_warnv_p): Declare.
19290 (fold_defer_overflow_warnings): Declare.
19291 (fold_undefer_overflow_warnings): Declare.
19292 (fold_undefer_and_ignore_overflow_warnings): Declare.
19293 (fold_deferring_overflow_warnings_p): Declare.
19294 (tree_expr_nonzero_warnv_p): Declare.
19295 * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
19296 of warning options.
19297 (Warning Options): Document -Wstrict-overflow.
19298 * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
19299 (tree-ssa-ccp.o): Likewise.
19300 (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
19301 (fold-const.o): Depend on intl.h.
19302
19303 2007-02-13 Ian Lance Taylor <iant@google.com>
19304
19305 PR middle-end/30751
19306 * lower-subreg.c (resolve_simple_move): Decompose subregs in
19307 addresses.
19308
19309 2007-02-13 Stuart Hastings <stuart@apple.com>
19310
19311 * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
19312
19313 2007-02-13 Richard Henderson <rth@redhat.com>
19314
19315 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
19316 handled_component_p before looking for the indirect_ref.
19317
19318 2007-02-13 Richard Henderson <rth@redhat.com>
19319
19320 * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
19321 remove flags clobber.
19322 (bswapsi2): New expander, emit code for !TARGET_BSWAP.
19323 (bswaphi_lowpart): New.
19324 (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
19325 remove TARGET_BSWAP test. Delete expander of the same name.
19326
19327 * optabs.c (widen_bswap, expand_doubleword_bswap): New.
19328 (expand_unop): Use them.
19329
19330 2007-02-13 Uros Bizjak <ubizjak@gmail.com>
19331
19332 * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
19333 *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
19334 *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
19335 *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
19336 *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
19337 *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
19338 *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
19339 assembler dialect choice from asm templates.
19340
19341 2007-02-12 Richard Henderson <rth@redhat.com>
19342
19343 * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
19344 (fixuns_trunc<SSEMODEF>si2): Use it.
19345 * config/i386/sse.md (vec_setv4sf_0): Export.
19346 * config/i386/i386.c (ix86_build_const_vector): Export.
19347 (ix86_split_convert_uns_si_sse): Rename from
19348 ix86_expand_convert_uns_si_sse and rewrite as a splitter.
19349 * config/i386/i386-protos.h: Update.
19350
19351 2007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19352
19353 PR c/29521
19354 * c-typeck.c (c_finish_return): Improve warning message.
19355
19356 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19357
19358 * alias.c (find_symbolic_term): Delete unused function.
19359
19360 2007-02-12 Uros Bizjak <ubizjak@gmail.com>
19361
19362 * config/i386/i386.md (paritydi2, paritysi2): New expanders.
19363 (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
19364 (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
19365
19366 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
19367
19368 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
19369 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
19370 the function, temporarily point the debug interface to the null one.
19371
19372 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
19373
19374 * dwarf2out.c (round_up_to_align): New static function.
19375 (field_byte_offset): Use it to round the offset.
19376
19377 2007-02-12 Richard Henderson <rth@redhat.com>
19378
19379 * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
19380 (inswl_const): Export.
19381
19382 2007-02-12 Richard Henderson <rth@redhat.com>
19383
19384 * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
19385 result mode of the libcall, convert back to outmode.
19386
19387 2007-02-12 Roger Sayle <roger@eyesopen.com>
19388
19389 * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
19390 (bswapdi2): New define_expand to implement 32-bit implementation.
19391
19392 2007-02-12 Nick Clifton <nickc@redhat.com>
19393
19394 * doc/invoke.texi (Overall Options): Document --help=.
19395 * gcc.c (target_help_flag): Rename to print_subprocess_flag.
19396 (cc1_options): Pass --help= on to cc1.
19397 (display_help): Add description of --help=.
19398 (process_command): Add code to handle --help=. Allow translated
19399 --help and --target-help switches to be passed on to compiler
19400 sub-process.
19401 (main): Remove unused if statement.
19402 * opts.c (columns): Remove.
19403 (LEFT_COLUMN): Define.
19404 (wrap_help): Add columns argument.
19405 (print_filtered_help): Change parameters to be an include bitmask,
19406 an exclude bitmask, an any bitmask and the column width. Move the
19407 code to display the params list here. Add code to display the
19408 status of options rather than their descriptions if the quiet flag
19409 is not active.
19410 (print_specific_help): Change parameters to be an include bitmask,
19411 an exclude bitmask and an any bitmask. Move code to look up the
19412 column width here. Decide upon the title for an options listing.
19413 (common_handle_options): Add code to handle --help=. Adapt code
19414 for --help and --target-help to use the revised form of the
19415 print_specific_help function.
19416 (print_help): Delete.
19417 (print_param_help): Delete.
19418 (print_switch): Delete.
19419 * opts.h (cl_lang_count): Add prototype.
19420 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
19421 CL_MAX_OPTION_CLASS): New defines.
19422 * optc-gen.awk: Add construction of cl_lang_count.
19423 * c.opt: Add Warning attribute to warning options and Optimization
19424 attribute to optimization options.
19425 * common.opt: Likewise.
19426 Add --help=.
19427 Add -fhelp and -ftarget-help as aliases for the transformed --help
19428 and --target-help options.
19429 * opt-functions.awk: Add code to handle Warning and Optimization
19430 attributes.
19431
19432 2007-02-12 Richard Henderson <rth@redhat.com>
19433
19434 * config/alpha/constraints.md: New file.
19435 * config/alpha/alpha.c: Include tm-constrs.h.
19436 (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
19437 alpha_extra_constraint): Remove.
19438 (alpha_emit_conditional_branch): Use satisfies_constraint_*.
19439 * config/alpha/alpha-protos.h: Update.
19440 * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
19441 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
19442 (EXTRA_CONSTRAINT): Remove.
19443 * config/alpha/alpha.md: Include constraints.md.
19444 (adddi splitter): Use satisfies_constraint_*.
19445 * config/alpha/predicates.md (add_operand): Likewise.
19446 (sext_add_operand, addition_operation): Likewise.
19447
19448 2007-02-12 Dorit Nuzman <dorit@il.ibm.com>
19449
19450 PR tree-optimization/29145
19451 * tree-data-ref.c (base_addr_differ_p): Make us more conservative
19452 in our handling of restrict qualified pointers.
19453
19454 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19455
19456 PR middle-end/7651
19457 * doc/invoke.texi (Wunused-value): Update description.
19458 (Wextra): Delete item.
19459 * opts.c (set_Wextra): Don't use the value of Wextra to set the
19460 value of Wunused-value.
19461 * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
19462 (c_finish_stmt_expr): Don't check extra_warnings.
19463 (emit_side_effect_warnings): The caller is responsible to check
19464 warn_unused_value.
19465
19466 2007-02-11 Roger Sayle <roger@eyesopen.com>
19467 Matt Thomas <matt@3am-software.com>
19468
19469 * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
19470
19471 2007-02-11 Roger Sayle <roger@eyesopen.com>
19472
19473 * simplify-rtx.c (simplify_relational_operation_1): Optimize
19474 comparisons of POPCOUNT against zero.
19475 (simplify_const_relational_operation): Likewise.
19476
19477 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19478
19479 * doc/invoke.texi (Wextra): Delete outdated paragraph.
19480
19481 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19482
19483 * dwarf2out.c (root_type): Delete unused function.
19484
19485 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19486
19487 * genattrtab.c (contained_in_p): Delete unused function.
19488 (write_expr_attr_cache): Likewise.
19489
19490 2007-02-11 Jan Hubicka <jh@suse.cz>
19491
19492 * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
19493 previous patch.
19494
19495 2007-02-11 Steven Bosscher <steven@gcc.gnu.org>
19496
19497 * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
19498 to add the REG_EQ* note.
19499 * see.c (see_merge_one_use_extension): Likewise.
19500 * local-alloc.c (update_equiv_regs): Likewise. Also don't
19501 turn REG_EQUAL notes into REG_EQUIV notes if the target
19502 register may have more than one set.
19503 * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
19504 * gcse.c (try_replace_reg): Likewise.
19505 * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
19506 * calls.c (fixup_tail_calls): Likewise. Abort if there is
19507 more than one REG_EQUIV note.
19508 * reload1.c (gen_reload): Use set_unique_reg_note.
19509
19510 2007-02-11 Uros Bizjak <ubizjak@gmail.com>
19511
19512 * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
19513 (ix86_builtin_conversion): New function.
19514
19515 2007-02-06 Mark Mitchell <mark@codesourcery.com>
19516
19517 PR target/29487
19518 * tree.h (DECL_REPLACEABLE_P): New macro.
19519 * except.c (set_nothrow_function_flags): Likewise.
19520
19521 2007-02-11 Tehila Meyzels <tehila@il.ibm.com>
19522 Ira Rosen <irar@il.ibm.com>
19523 Dorit Nuzman <dorit@il.ibm.com>
19524
19525 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
19526 * targhooks.c (default_builtin_vectorized_conversion): New.
19527 * targhooks.h (default_builtin_vectorized_function): New declaration.
19528 * target.h (struct vectorize): Add builtin_conversion field.
19529 * tree-vectorizer.h (type_conversion_vec_info_type): New enum
19530 stmt_vec_info_type value.
19531 (vectorizable_conversion): New declaration.
19532 * tree-vect-analyze.c (vect_analyze_operations): Add
19533 vectorizable_conversion call.
19534 * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
19535 * tree-vect-transform.c (vectorizable_conversion): New function.
19536 (vect_transform_stmt): Add case for type_conversion_vec_info_type.
19537 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
19538 mode.
19539 * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
19540 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
19541 (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
19542 or ALTIVEC_BUILTIN_VCFSX.
19543
19544 2007-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19545
19546 PR target/30634
19547 * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
19548 CONST_DOUBLE and operand 0 is a hard register.
19549 (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
19550 memory. Fail if operand 1 is a non-zero CONST_INT and operand 0
19551 is a hard floating-point register.
19552
19553 2007-02-10 Richard Henderson <rth@redhat.com>
19554 Jakub Jelinek <jakub@redhat.com>
19555 Alexandre Oliva <aoliva@redhat.com>
19556
19557 * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
19558 * builtin-types.def (BT_WORD): Make unsigned.
19559 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
19560 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
19561 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
19562 * c-decl.c (grokdeclarator): Don't error if !have_tls.
19563 * c-parser.c (c_parser_omp_threadprivate): Likewise.
19564 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
19565 emulated tls.
19566 * expr.c (emutls_var_address): New.
19567 (expand_expr_real_1): Expand emulated tls.
19568 (expand_expr_addr_expr_1): Likewise.
19569 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
19570 * output.h (emutls_finish): Declare.
19571 * toplev.c (compile_file): Call it.
19572 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
19573 address before wrapping in CONST.
19574 * varasm.c (emutls_htab, emutls_object_type): New.
19575 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
19576 (get_emutls_object_name, get_emutls_object_type): New.
19577 (get_emutls_init_templ_addr, emutls_decl): New.
19578 (emutls_common_1, emutls_finish): New.
19579 (assemble_variable): When emulating tls, swap decls; generate
19580 constructor for the emutls objects.
19581 (do_assemble_alias): When emulating tls, swap decl and target name.
19582 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
19583 for emulated tls.
19584 * varpool.c (decide_is_variable_needed): Look at force_output.
19585 Recurse for emulated tls.
19586 (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
19587 with decide_is_variable_needed.
19588 * emutls.c: New file.
19589 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
19590 tls_object for real tls.
19591
19592 2007-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
19593
19594 PR rtl-optimization/29599
19595 * reload1.c (eliminate_regs_in_insn): Take the destination
19596 mode into account when computing the offset.
19597
19598 2007-02-09 Stuart Hastings <stuart@apple.com>
19599 Richard Henderson <rth@redhat.com>
19600
19601 * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
19602 * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
19603 * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
19604 fixuns_truncdfhi2): New.
19605 (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
19606 (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
19607 (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
19608 (floatunssidf2): Allow nonimmediate source.
19609 * config/i386/sse.md (movdi_to_sse): New.
19610 (vec_concatv2di): Drop '*'.
19611 * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
19612 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
19613 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
19614 New.
19615 * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
19616 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
19617 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
19618 ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
19619 (ix86_build_signbit_mask): Fix decl of v, refactor to call
19620 ix86_build_const_vector.
19621 (x86_emit_floatuns): Rewrite.
19622
19623 2007-02-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
19624
19625 * genautomata.c (longest_path_length): Delete unused function.
19626 (struct state): Delete unused longest_path_length.
19627 (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
19628 (get_free_state): Delete unused.
19629
19630 2007-02-09 Jan Hubicka <jh@suse.cz>
19631
19632 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
19633 * doc/invoke.texi (inline-unit-growth): Update default value.
19634
19635 * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
19636 * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
19637 (rebuild_cgraph_edges): Likewise.
19638 * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
19639 (dump_cgraph_node): Dump frequencies.
19640 (cgraph_clone_edge): Add frequency scales.
19641 (cgraph_clone_node): Add freuqnecy.
19642 * cgraph.h (cgraph_edge): Add freuqnecy argument.
19643 (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
19644 (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
19645 * tree-pass.h (TODO_rebuild_frequencies): New constant.
19646 * cgraphunit.c (verify_cgraph_node): Verify frequencies.
19647 (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
19648 (save_inline_function_body): Likewise.
19649 * ipa-inline.c: inluce rtl.h
19650 (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
19651 (cgraph_edge_badness): Use frequencies.
19652 (cgraph_decide_recursive_inlining): Update clonning.
19653 (cgraph_decide_inlining_of_small_function): Dump frequency.
19654 * predict.c (estimate_bb_frequencies): Export.
19655 * predict.h (estimate_bb_frequencies): Declare.
19656 * tree-inline.c (copy_bb): Watch overflows.
19657 (expand_call_inline): Update call of cgraph_create_edge.
19658 (optimize_inline_calls): Use TODO flags to update frequnecies.
19659 * passes.h: Include predict.h
19660 (init_optimization_passes): Move profile ahead.
19661 (execute_function_todo): Handle TODO_rebuild_frequencies.
19662
19663 2007-02-09 Roger Sayle <roger@eyesopen.com>
19664
19665 * config/alpha/alpha.c (emit_insxl): Force the first operand of
19666 the insbl or inswl pattern into a register.
19667
19668 2007-02-09 Roger Sayle <roger@eyesopen.com>
19669
19670 * config/ia64/ia64.md (bswapdi2): New define_insn.
19671
19672 2007-02-09 Richard Henderson <rth@redhat.com>
19673
19674 * config/i386/constraints.md (Ym): New constraint.
19675 * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
19676 (movdi_1_rex64): Split sse and xmm general register moves from
19677 memory move alternatives. Use conditional register constraints.
19678 (movsf_1, movdf_integer): Likewise.
19679 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
19680 (movdf_integer_rex64): New.
19681 (pushsf_rex64): Fix output constraints.
19682 * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
19683 (sse2_stored): Likewise.
19684 (sse2_storeq_rex64): New.
19685 * config/i386/i386.c (x86_inter_unit_moves): Enable for not
19686 amd and not generic.
19687 (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
19688 for optimize_size. Remove SF/DFmode hack.
19689
19690 2007-02-09 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
19691
19692 * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
19693 (bit_SSE4a): New.
19694
19695 2007-02-09 Nathan Sidwell <nathan@codesourcery.com>
19696 Richard Sandiford <richard@codesourcery.com>
19697
19698 * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
19699 (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
19700 (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
19701 m68k/t-mlib to tmake_file.
19702 (m68020-*-elf*, m68k-*-elf*): Likewise. Add t-m68kbare as well.
19703 (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
19704 (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
19705 Allow it to be cf or m68k. Set m68k_arch_family. If that
19706 variable is not empty, add t-$m68k_arch_family to tmake_file.
19707 Add t-mlibs to tmake_file.
19708 * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
19709 * config/m68k/t-cf: New file.
19710 * config/m68k/t-m68k: Likewise.
19711 * config/m68k/t-mlibs: Likewise.
19712 * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
19713 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
19714 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
19715 * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
19716 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
19717 Delete.
19718 * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
19719 (INSTALL_LIBGCC): Delete.
19720 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
19721 * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
19722 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
19723 (M68K_MLIB_CPU): Define.
19724 * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
19725 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
19726 (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
19727
19728 2007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
19729 Richard Guenther <rguenther@suse.de>
19730
19731 PR middle-end/23361
19732 * fold-const.c (fold_comparison): Handle obfuscated comparisons
19733 against INT_MIN/INT_MAX.
19734 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
19735 file if a loop is removed.
19736
19737 2007-02-09 Joseph Myers <joseph@codesourcery.com>
19738
19739 * calls.c (store_one_arg): Pass correct alignment to
19740 emit_push_insn for non-BLKmode values.
19741 * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
19742 unaligned stack slot via a suitably aligned slot.
19743
19744 2007-02-08 DJ Delorie <dj@redhat.com>
19745
19746 * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
19747 warnings.
19748 (legal_subregs): Use unsigned char, make const.
19749 (m32c_illegal_subreg_p): Use ARRAY_SIZE. Delete unused variables.
19750
19751 2007-02-08 Paul Brook <paul@codesourcery.com>
19752
19753 * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
19754 special interworking needed.
19755
19756 2007-02-08 Harsha Jagasia <harsha.jagasia@amd.com>
19757
19758 * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
19759 conditional to __SSE2__.
19760 (Entries below should have been added to first ChangeLog
19761 entry for amdfam10 dated 2007-02-05)
19762 * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
19763 defined.
19764 * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
19765 defined.
19766 * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
19767 defined.
19768
19769 2007-02-08 DJ Delorie <dj@redhat.com>
19770
19771 * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
19772 * config/m32c/m32c.c (legal_subregs): New.
19773 (m32c_illegal_subreg_p): New.
19774 * config/m32c/predicates.md (m32c_any_operand): Use it to reject
19775 unsupported subregs of hard regs.
19776
19777 2007-02-08 Jan Hubicka <jh@suse.cz>
19778
19779 * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
19780 the same one; always update histograms.
19781
19782 2007-02-08 Diego Novillo <dnovillo@redhat.com>
19783
19784 * passes.c (init_optimization_passes): Tidy comment.
19785
19786 2007-02-08 Roger Sayle <roger@eyesopen.com>
19787
19788 * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
19789 strip zero_extend, bswap and rotates from POCOUNT's argument.
19790 <PARITY>: Likewise, we can strip not, bswap, sign_extend,
19791 zero_extend and rotates from PARITY's argument.
19792 <BSWAP>: A byte-swap followed by a byte-swap is an identity.
19793 (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
19794 of an integer constant at compile-time.
19795
19796 2007-02-08 Diego Novillo <dnovillo@redhat.com>
19797
19798 PR 30562
19799 * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
19800 Update all users.
19801 * tree-ssa-alias.c (compute_is_aliased): Remove. Update all
19802 users.
19803 (init_alias_info):
19804 * tree-ssa-live.c (remove_unused_locals): Do not remove
19805 TREE_ADDRESSABLE variables.
19806 * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
19807 * tree-ssa-operands.c (add_virtual_operand): Remove argument
19808 FOR_CLOBBER. Update all users.
19809 If VAR has an associated alias set, add a virtual operand for
19810 it if no alias is found to conflict with the memory reference.
19811
19812 2007-02-07 Jan Hubicka <jh@suse.cz>
19813 Robert Kidd <rkidd@crhc.uiuc.edu>
19814
19815 * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
19816
19817 2007-02-07 Ian Lance Taylor <iant@google.com>
19818
19819 * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
19820
19821 2007-02-07 Roger Sayle <roger@eyesopen.com>
19822
19823 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
19824 parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
19825 tablejumpdi, movsi_to_cr_one): Remove constraints from
19826 define_expand's match_operands.
19827
19828 2007-02-07 Roger Sayle <roger@eyesopen.com>
19829
19830 * global.c (compute_regsets): Move declatation of "i" inside of
19831 #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
19832
19833 2007-02-07 Jakub Jelinek <jakub@redhat.com>
19834
19835 PR c++/30703
19836 * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
19837 of INDIRECT_REF <RESULT_DECL>.
19838
19839 * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
19840
19841 2007-02-06 J"orn Rennecke <joern.rennecke@arc.com>
19842 Kaz Kojima <kkojima@gcc.gnu.org>
19843
19844 PR target/29746
19845 * config/sh/sh.c (expand_cbranchdi4): Use scratch register
19846 properly.
19847 (sh_initialize_trampoline): Add parentheses to avoid a warning.
19848
19849 2007-02-06 Zdenek Dvorak <dvorakz@suse.cz>
19850
19851 * doc/loop.texi: Document possibility not to perform disambiguation
19852 of loops with multiple latches.
19853 * cfgloopmanip.c (alp_enum_p): Removed.
19854 (add_loop): Handle subloops. Use get_loop_body_with_size.
19855 (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
19856 * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
19857 the new forwarder block.
19858 (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
19859 Handle the case latch is NULL.
19860 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg
19861 modifications when marking loop exits.
19862 * ifcvt.c (if_convert): Ditto. Mark loop exits even if cfg cannot
19863 be modified.
19864 * loop-init.c (loop_optimizer_init): Do not modify cfg. Call
19865 disambiguate_loops_with_multiple_latches.
19866 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
19867 before fix_loop_structure.
19868 * cfgloop.c: Include pointer-set.h and output.h.
19869 (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
19870 update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
19871 (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
19872 find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
19873 mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
19874 disambiguate_multiple_latches, get_loop_body_with_size,
19875 disambiguate_loops_with_multiple_latches): New functions.
19876 (flow_loop_dump): Dump multiple latch edges.
19877 (flow_loop_nodes_find): Handle loops with multiple latches.
19878 (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
19879 (glb_enum_p): Modified.
19880 (get_loop_body): Use get_loop_body_with_size.
19881 * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
19882 (AVOID_CFG_MODIFICATIONS): New constant.
19883 (disambiguate_loops_with_multiple_latches, add_loop,
19884 get_loop_body_with_size): Declare.
19885 * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
19886
19887 2007-02-06 Seongbae Park <seongbae.park@gmail.com>
19888
19889 PR inline-asm/28686
19890 * global.c (compute_regsets): New function.
19891 (global_alloc): Refactored ELIMINABLE_REGSET
19892 and NO_GLOBAL_ALLOC_REGS computation out.
19893 (rest_of_handle_global_alloc): Call compute_regsets()
19894 for non-optimizing case.
19895
19896 2007-02-06 Richard Henderson <rth@redhat.com>
19897
19898 * config/i386/constraints.md (Y2): Rename from Y.
19899 (Yi): New constraint.
19900 * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
19901 pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
19902 zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
19903 (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
19904 truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
19905 fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
19906 floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
19907 absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
19908 fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
19909 * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
19910 mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
19911 vec_extractv2si_1): Change Y constraints to Y2.
19912 * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
19913 vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
19914 Change Y constraints to Y2.
19915 (sse2_loadld): Change Y constraints to x.
19916
19917 2007-02-06 Roger Sayle <roger@eyesopen.com>
19918
19919 * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
19920 (parity<mode>2): New define_expand using rs6000_emit_parity.
19921 * config/rs6000/rs6000.c (rs6000_emit_popcount,
19922 rs6000_emit_parity): New functions.
19923 * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
19924 rs6000_emit_parity): Prototype here.
19925
19926 2007-02-06 Ian Lance Taylor <iant@google.com>
19927
19928 * lower-subreg.c (simple_move_operand): Reject CONST.
19929 (resolve_clobber): Call validate_change rather than directly
19930 assigning to XEXP (pat, 0).
19931
19932 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
19933
19934 * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
19935 (tree-ssa-reassoc.o): Add pointer-set.h dependency.
19936 (tree-cfg.o): Remove hashtab.h dependency.
19937
19938 * tree-ssa-loop-ivopts.c: Include pointer-set.h.
19939 (struct ivopts_data): Change niters to pointer_map_t.
19940 (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
19941 (niter_for_exit): Create pointer_map on demand. Change for
19942 pointer_map API.
19943 (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
19944 (free_loop_data): Destroy data->niters if created and reset field.
19945 (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
19946 (tree_ssa_iv_optimize_loop): Check for presence of stale data.
19947
19948 * tree-ssa-reassoc.c: Include pointer-set.h.
19949 (bb_rank): Change to long *.
19950 (operand_rank): Change to pointer_map_t.
19951 (find_operand_rank): Return long, -1 if not found. Declare as inline.
19952 (insert_operand_rank): Accept long.
19953 (operand_entry_hash, operand_entry_eq): Remove.
19954 (get_rank): Return long. Adjust for changes above.
19955 (init_reassoc): Change rank type to long. Adjust creation of bb_rank
19956 and operand_rank.
19957 (fini_reassoc): Delete operand_rank with pointer_map_destroy.
19958
19959 * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
19960 (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
19961 (insert_vi_for_tree): Rewrite for pointer_map API. Assert argument
19962 is not NULL.
19963 (lookup_vi_for_tree): Rewrite for pointer_map API. Return varinfo_t
19964 directly since it cannot be NULL.
19965 (get_vi_for_tree): Rewrite for pointer_map API.
19966 (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
19967 (init_alias_vars): Create vi_for_tree as pointer_map.
19968 (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
19969
19970 * tree-cfg.c: Don't include hashtab.h.
19971 (edge_to_cases): Declare as pointer_map.
19972 (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
19973 Delete.
19974 (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
19975 (start_recording_case_labels): Create edge_to_cases as pointer_map.
19976 (end_recoding_case_labels): Cleanup edge_to_cases manually before
19977 destroying it.
19978 (record_switch_edge): Delete.
19979 (get_cases_for_edge): Adjust for pointer_map API, inline
19980 record_switch_edge (rewritten for new API), remove goto.
19981
19982 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
19983
19984 * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
19985 * tree-nested.c: Include pointer-set.h.
19986 (var_map_elt, var_map_eq, var_map_hash): Delete.
19987 (struct nesting_info): Remove GTY marker. Change the two htab_t's
19988 to pointer_map_t's.
19989 (nesting_info_bitmap_obstack): New.
19990 (lookup_field_for_decl): Adjust for pointer_map API.
19991 (lookup_tramp_for_decl): Adjust for pointer_map API.
19992 (get_nonlocal_debug_decl): Adjust for pointer_map API.
19993 (get_local_debug_decl): Adjust for pointer_map API.
19994 (convert_nl_goto_reference): Adjust for pointer_map API.
19995 (convert_nl_goto_receiver): Adjust for pointer_map API.
19996 (create_nesting_tree): Create outside GGC space. Create bitmap on
19997 the new obstack. Create field_map and var_map as pointer_maps.
19998 (free_nesting_tree): Adjust for changes to create_nesting_tree.
19999 (root): Delete.
20000 (lower_nested_functions): Move root here, no need to NULL it.
20001 Initialize and release the obstack.
20002
20003 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
20004
20005 * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
20006 Remove prototypes and make them non-static.
20007 (struct tree_int_map): Remove.
20008 * tree.h (struct tree_int_map): Move here, turning TO into an
20009 unsigned int.
20010 (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
20011
20012 * tree.h (TREE_COMPLEXITY): Remove.
20013 (struct tree_exp): Remove complexity field.
20014 * tree.c (build1_stat): Don't set it.
20015
20016 2007-02-06 Dorit Nuzman <dorit@il.ibm.com>
20017 Victor Kaplansky <victork@il.ibm.com>
20018
20019 * tree-vectorizer.c (vect_is_simple_use): Support induction.
20020 (vect_is_simple_reduction): Support reduction with induction as
20021 one of the operands.
20022 (vect_is_simple_iv_evolution): Fix formatting.
20023 * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
20024 formatting. Don't mark induction phis for vectorization.
20025 (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
20026 * tree-vect-transform.c (get_initial_def_for_induction): New function.
20027 (vect_get_vec_def_for_operand): Support induction.
20028 (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
20029 induction case.
20030 (vectorizable_reduction): Support reduction with induction as one of
20031 the operands.
20032 (vectorizable_type_demotion): Use def-type of stmt argument rather
20033 than dummy def-type.
20034
20035 * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
20036 flag_tree_scev_cprop.
20037 * common.opt (tree-scev-cprop): New flag.
20038
20039 * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
20040 call to vect_get_new_vect_var.
20041
20042 2007-02-06 Ira Rosen <irar@il.ibm.com>
20043
20044 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
20045 vectype is not NULL.
20046 (vect_pattern_recog_1): Likewise.
20047
20048 2007-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20049
20050 * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
20051 (fold_negate_expr): Likewise.
20052
20053 2007-02-05 Alexandre Oliva <aoliva@redhat.com>
20054
20055 PR debug/30189
20056 * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
20057 even if cv-qualification is the same.
20058
20059 2007-02-05 Geoffrey Keating <geoffk@apple.com>
20060
20061 * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
20062 __enable_execute_stack on completion.
20063
20064 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
20065
20066 * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
20067 athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
20068 athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
20069 athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
20070 athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
20071 athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
20072 athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
20073 athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
20074
20075 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
20076
20077 * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
20078 cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
20079 swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
20080 fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
20081 x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
20082 floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
20083 floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
20084 mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
20085 umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
20086 umuldi3_highpart_rex64, umulsi3_highpart_insn,
20087 umulsi3_highpart_zext, smuldi3_highpart_rex64,
20088 smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
20089 x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
20090 sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
20091 sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
20092 sqrtextenddfxf2_i387): Added amdfam10_decode.
20093
20094 * config/i386/athlon.md (athlon_idirect_amdfam10,
20095 athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
20096 athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
20097 athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
20098 athlon_ivector_store_amdfam10): New define_insn_reservation.
20099 (athlon_idirect_loadmov, athlon_idirect_movstore): Added
20100 amdfam10.
20101
20102 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
20103
20104 * config/i386/athlon.md (athlon_call_amdfam10,
20105 athlon_pop_amdfam10, athlon_lea_amdfam10): New
20106 define_insn_reservation.
20107 (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
20108 athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
20109 athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
20110
20111 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
20112
20113 * config/i386/athlon.md (athlon_sseld_amdfam10,
20114 athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
20115 athlon_mmxssest_short_amdfam10): New define_insn_reservation.
20116
20117 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
20118
20119 * config/i386/athlon.md (athlon_sseins_amdfam10): New
20120 define_insn_reservation.
20121 * config/i386/i386.md (sseins): Added sseins to define_attr type
20122 and define_attr unit.
20123 * config/i386/sse.md: Set type attribute to sseins for insertq
20124 and insertqi.
20125
20126 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
20127
20128 * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
20129 ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
20130 ssecomi_load_amdfam10, ssecomi_amdfam10,
20131 sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
20132 define_insn_reservation.
20133 (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
20134
20135 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
20136
20137 * config/i386/athlon.md (cvtss2sd_load_amdfam10,
20138 cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
20139 cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
20140 cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
20141 cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
20142 cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
20143 define_insn_reservation.
20144
20145 * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
20146 cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
20147 cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
20148 cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
20149 cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
20150
20151 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
20152
20153 * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
20154 athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
20155 athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
20156 (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
20157 athlon_ssemul_load_k8): Added amdfam10.
20158
20159 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
20160
20161 * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
20162 (x86_sse_unaligned_move_optimal): New variable.
20163
20164 * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
20165 m_AMDFAM10.
20166 (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
20167 for unaligned vector SSE double/single precision loads for AMDFAM10.
20168
20169 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
20170
20171 * config/i386/i386.h (TARGET_AMDFAM10): New macro.
20172 (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
20173 Define TARGET_CPU_DEFAULT_amdfam10.
20174 (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
20175 (processor_type): Add PROCESSOR_AMDFAM10.
20176
20177 * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
20178 processor_type in config/i386/i386.h.
20179 Enable imul peepholes for TARGET_AMDFAM10.
20180
20181 * config.gcc: Add support for --with-cpu option for amdfam10.
20182
20183 * config/i386/i386.c (amdfam10_cost): New variable.
20184 (m_AMDFAM10): New macro.
20185 (m_ATHLON_K8_AMDFAM10): New macro.
20186 (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
20187 x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
20188 x86_promote_QImode, x86_integer_DFmode_moves,
20189 x86_partial_reg_dependency, x86_memory_mismatch_stall,
20190 x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
20191 x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
20192 x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
20193 x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
20194 Enable/disable for amdfam10.
20195 (override_options): Add amdfam10_cost to processor_target_table.
20196 Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
20197 processor_alias_table.
20198 (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
20199 (ix86_adjust_cost): Add code for amdfam10.
20200
20201 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
20202
20203 * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
20204 instruction set feature flag. Add new (-mpopcnt) flag for popcnt
20205 instruction. Add new SSE4A (-msse4a) instruction set feature flag.
20206 * config/i386/i386.h: Add builtin definition for SSE4A.
20207 * config/i386/i386.md: Add support for ABM instructions
20208 (popcnt and lzcnt).
20209 * config/i386/sse.md: Add support for SSE4A instructions
20210 (movntss, movntsd, extrq, insertq).
20211 * config/i386/i386.c: Add support for ABM and SSE4A builtins.
20212 Add -march=amdfam10 flag.
20213 * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
20214 * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
20215 and amdfam10.
20216 * doc/extend.texi: Add documentation for SSE4A builtins.
20217
20218 2007-02-05 Bob Wilson <bob.wilson@acm.org>
20219
20220 * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
20221
20222 2007-02-05 Richard Guenther <rguenther@suse.de>
20223
20224 * tree-vectorizer.h (vectorizable_function): Add argument type
20225 argument, change return type.
20226 * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
20227 * tree-vect-transform.c (vectorizable_function): Handle extra
20228 argument, return vectorized function decl.
20229 (build_vectorized_function_call): Remove.
20230 (vectorizable_call): Handle calls with result and argument types
20231 differing. Handle loop vectorization factor correctly.
20232 * targhooks.c (default_builtin_vectorized_function): Adjust for
20233 extra argument.
20234 * targhooks.h (default_builtin_vectorized_function): Likewise.
20235 * target.h (builtin_vectorized_function): Add argument type
20236 argument.
20237 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
20238 extra argument, allow vectorizing of lrintf.
20239 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
20240 documentation of target hook.
20241
20242 2007-02-05 Hans-Peter Nilsson <hp@axis.com>
20243
20244 PR target/30665
20245 * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
20246 ("*andhi_clear", andu (casesi+45)): For size-changed operand where
20247 memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
20248
20249 2007-02-05 Roger Sayle <roger@eyesopen.com>
20250
20251 * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
20252 BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
20253 <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
20254 * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
20255 before canonicalizing sincos to cexpi.
20256 (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
20257
20258 2007-02-05 Roger Sayle <roger@eyesopen.com>
20259
20260 * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
20261 Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
20262 (alpha_init_builtins): Use alpha_add_builtins to process tables.
20263
20264 2007-02-05 Roger Sayle <roger@eyesopen.com>
20265
20266 * mips-tfile.c (initialize_init_file): Correct endianness test.
20267
20268 2007-02-05 Kazu Hirata <kazu@codesourcery.com>
20269
20270 * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
20271 the 'y' constraint.
20272
20273 2007-02-05 Richard Sandiford <richard@codesourcery.com>
20274
20275 * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
20276 saves in a PARALLEL before the register assignments.
20277
20278 2007-02-05 Richard Sandiford <richard@codesourcery.com>
20279
20280 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
20281 DWARF_FRAME_RETURN_COLUMN to be a general register.
20282 * dwarf2out.c (init_return_column_size): New function, split from...
20283 (expand_builtin_init_dwarf_reg_sizes): ...here. Allow both
20284 DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
20285 to be nongeneral registers.
20286 * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
20287 integer registers.
20288 (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
20289 (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
20290
20291 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
20292
20293 * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
20294
20295 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
20296
20297 * cfgloopmanip.c (loop_delete_branch_edge): Removed.
20298 (remove_path): Use can_remove_branch_p and remove_branch instead
20299 of loop_delete_branch_edge.
20300 * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
20301 (tree_transform_and_unroll_loop): Remove dead branches immediately.
20302 Update profile using scale_dominated_blocks_in_loop.
20303 * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
20304 * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
20305 (can_remove_branch_p, remove_branch): Declare.
20306 * tree-cfg.c (tree_can_remove_branch_p): New function.
20307 (tree_cfg_hooks): Add tree_can_remove_branch_p.
20308 * cfgrtl.c (rtl_can_remove_branch_p): New function.
20309 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
20310
20311 2007-02-05 Jan Hubicka <jh@suse.cz>
20312
20313 PR middle-end/30696
20314 * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
20315 nodes in cgraph, don't remove offline copy of the function.
20316
20317 2007-02-04 Jan Hubicka <jh@suse.cz>
20318
20319 * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
20320 vectors might cause maybe_lookup_element_for_expr to be called
20321 on non-sra-candidate.
20322
20323 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
20324
20325 * config/bfin/bfin-modes.def, config/bfin/bfin.c,
20326 config/bfin/bfin.md, config/bfin/predicates.md: Follow
20327 spelling conventions.
20328
20329 2007-02-04 Richard Guenther <rguenther@suse.de>
20330
20331 PR middle-end/30636
20332 * fold-const.c (try_move_mult_to_index): Make sure to not
20333 overflow one dimension of a multi-dimensional array access.
20334
20335 2007-02-04 Jan Hubicka <jh@suse.cz>
20336
20337 * passes.c (init_optimization_passes): Reindent.
20338
20339 2007-02-04 Jan Hubicka <jh@suse.cz>
20340 Eric Botcazou <ebotcazou@adacore.com>
20341
20342 * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
20343 (execute_fixup_cfg): Break out the abnormal goto code.
20344 * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
20345 (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
20346 (optimize_inline_calls): Call make_nonlocal_label_edges.
20347
20348 2007-02-04 Jan Hubicka <jh@suse.cz>
20349
20350 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
20351 true when something was changed.
20352 (rename_ssa_copies): When something was changed, do
20353 TODO_remove_unused_locals.
20354 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
20355 add TODO_remove_unused_locals when instruction was removed.
20356
20357 2007-02-04 Jan Hubicka <jh@suse.cz>
20358
20359 * ipa-inline.c (try_inline): Improve debug output; work on already
20360 inline edges too.
20361 (cgraph_decide_inlining_incrementally): Indent; improve debug output;
20362 call try_inline for already inlined edges too when flattening;
20363 inline also functions that make callee growth but overall unit size
20364 reduce.
20365
20366 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
20367
20368 * config/m32c/bitops.md, config/m32c/jump.md,
20369 config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
20370 config/m32r/m32r.h, config/m32r/m32r.md,
20371 config/m32r/predicates.md, config/m68hc11/larith.asm,
20372 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
20373 config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
20374 config/mips/mips-protos.h, config/mips/mips.c,
20375 config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
20376 config/mn10300/mn10300.h, config/mn10300/predicates.md,
20377 config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
20378 spelling conventions.
20379
20380 * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
20381 Follow spelling conventions.
20382
20383 2007-02-03 Douglas Gregor <doug.gregor@gmail.com>
20384
20385 * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
20386 warn about C++0x compatibility.
20387
20388 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
20389
20390 * config/h8300/h8300.c, config/h8300/h8300.h,
20391 config/h8300/h8300.md: Follow spelling conventions.
20392
20393 2007-02-03 Uros Bizjak <ubizjak@gmail.com>
20394
20395 PR middle-end/30667
20396 * combine.c (try_combine): Do not substitute source operand
20397 with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
20398
20399 2007-02-03 Jan Hubicka <jh@suse.cz>
20400
20401 PR gcov-profile/30650
20402 * value-prof.c (stringop_block_profile): Fix handling of size counter;
20403 do not divide by zero for never executed counters.
20404 (tree_find_values_to_profile): Fix counters.
20405 * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
20406
20407 2007-02-03 Ian Lance Taylor <iant@google.com>
20408
20409 * lower-subreg.c (simple_move_operand): New static function,
20410 broken out of simple_move. Reject LABEL_REF, SYMBOL_REF, and HIGH
20411 operands.
20412 (simple_move): Call simple_move_operand.
20413 (find_decomposable_subregs): Add special handling of MEMs.
20414 (can_decompose_p): Rename from cannot_decompose_p. Reverse
20415 meaning of return value. If we see a hard register, test whether
20416 it can store a word_mode value. Change all callers.
20417
20418 2007-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20419
20420 * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
20421 ftrapv insns and expanders.
20422 (subdi3): Change define_expand operand 1 to arith11_operand, and
20423 operand 2 to reg_or_0_operand. Change constraints of 64-bit insn
20424 pattern to handle reg_or_0 operands. Revise 32-bit insn pattern to
20425 handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
20426 respectively.
20427
20428 PR middle-end/30174
20429 * varasm.c (notice_global_symbol): Treat global objects as weak when
20430 flag_shlib is true.
20431
20432 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20433
20434 * emit-rtl.c (dconstpi): Delete.
20435 (dconstsqrt2): New.
20436 (init_emit_once): Delete dconstpi and init dconstsqrt2.
20437 * real.h (dconstpi): Delete.
20438 (dconstsqrt2): New.
20439 * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
20440 (fold_builtin_hypot): Likewise.
20441
20442 2007-02-03 Tom Tromey <tromey@redhat.com>
20443
20444 PR driver/30246
20445 * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
20446 -gcoff3, -gxcoff3, -gvms3 implies -dD.
20447
20448 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
20449
20450 * c-decl.c, config/avr/avr.c, config/avr/avr.h,
20451 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
20452 config/mn10300/mn10300.c, config/pdp11/pdp11.h,
20453 config/rs6000/cell.md, config/rs6000/darwin.h,
20454 config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
20455 config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
20456 jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
20457 tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
20458 typos. Follow spelling conventions.
20459 * doc/invoke.texi: Follow spelling conventions.
20460
20461 2007-02-03 Roger Sayle <roger@eyesopen.com>
20462
20463 * simplify-rtx.c (simplify_relational_operation_1): Implement some
20464 canonicalization transformations that attempt to simplify integer
20465 constant comparisons to become comparisons against zero.
20466
20467 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20468
20469 * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
20470 fabs(x)*sqrt(2).
20471 * fold-const.c (fold_binary): Fix comment typos. Fold complex
20472 (x,0)-(0,y) into (x,-y). Likewise (0,y)-(x,0) into (-x,y).
20473
20474 2007-02-02 Mike Stump <mrs@apple.com>
20475
20476 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
20477 * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
20478 (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
20479 generate a branch island.
20480
20481 2007-02-02 Bob Wilson <bob.wilson@acm.org>
20482
20483 * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
20484 (xtensa_legitimate_address_p): New.
20485 (xtensa_legitimize_address): New.
20486 (xtensa_output_addr_const_extra): New.
20487 * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
20488 (BASE_REG_P): New.
20489 (REG_OK_FOR_BASE_P): Use BASE_REG_P.
20490 (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
20491 (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
20492 (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
20493 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
20494 (xtensa_legitimize_address): New.
20495 (xtensa_output_addr_const_extra): New.
20496
20497 2007-02-02 Steve Ellcey <sje@cup.hp.com>
20498
20499 * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
20500
20501 2007-02-02 Ian Lance Taylor <iant@google.com>
20502
20503 * expmed.c (expand_divmod): Add comment.
20504
20505 2007-02-02 Kazu Hirata <kazu@codesourcery.com>
20506
20507 * emit-rtl.c (renumber_insns): Remove.
20508 * flags.h: Remove the extern for flag_renumber_insns.
20509 * rtl.h: Remove the prototype for renumber_insns.
20510 * toplev.c (flag_renumber_insns): Remove.
20511
20512 2007-02-02 Hui-May Chang <hm.chang@apple.com>
20513
20514 Revert for x86 darwin:
20515 2005-06-19 Uros Bizjak <uros@kss-loka.si>
20516
20517 * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
20518 code before the following patch under TARGET_MACHO.
20519 (ix86_function_value_regno_p): Likewise.
20520
20521 2007-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20522
20523 * fold-const.c (negate_expr_p, fold_negate_expr): Handle
20524 COMPLEX_EXPR.
20525
20526 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
20527
20528 PR target/29682
20529 * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory
20530 loads to general or fp registers. Add comments.
20531 * config/ia64/ia64.md (reg_pred_prefix): Add comment.
20532
20533 2007-02-02 Paolo Bonzini <bonzini@gnu.org>
20534
20535 * pointer-set.c (insert_aux): Only return insertion slot.
20536 (pointer_set_insert): Adjust.
20537 (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
20538 pointer_map_destroy, pointer_map_insert, pointer_map_contains,
20539 pointer_map_traverse): New.
20540 * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
20541 pointer_map_create, pointer_map_destroy, pointer_map_insert,
20542 pointer_map_contains, pointer_map_traverse): Declare.
20543
20544 2007-02-02 Jakub Jelinek <jakub@redhat.com>
20545
20546 PR middle-end/30473
20547 * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
20548 sprintf (str, "%s"). Do not optimize sprintf (str, "nopercent", p++).
20549
20550 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
20551
20552 * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
20553
20554 (struct _dep): New type.
20555 (dep_t): New typedef.
20556 (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
20557 (DEP_STATUS): New access macro. The macro with the same name was
20558 renamed to DEP_LINK_STATUS.
20559 (dep_init): Declare function
20560
20561 (struct _dep_link): New type.
20562 (dep_link_t): New typedef.
20563 (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
20564 (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
20565 (DEP_LINK_STATUS): New macro.
20566 (debug_dep_links): New debug function.
20567
20568 (struct _deps_list): New type.
20569 (deps_list_t): New typedef.
20570 (DEPS_LIST_FIRST): New access macro.
20571 (FOR_EACH_DEP_LINK): New cycle macro.
20572 (create_deps_list, free_deps_list, delete_deps_list): Declare
20573 functions.
20574 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
20575 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
20576 (copy_deps_list_change_con): Ditto.
20577
20578 (move_dep_link): Declare function.
20579
20580 (struct _dep_node): New type.
20581 (dep_node_t): New typedef.
20582 (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
20583
20584 (struct haifa_insn_data.back_deps): New field to hold backward
20585 dependencies of the insn.
20586 (struct haifa_insn_data.depend): Rename to forw_deps. Change its type
20587 to deps_list_t.
20588 (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
20589 Change its type to deps_list_t.
20590 (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
20591 (INSN_DEPEND): Rename to INSN_FORW_DEPS.
20592 (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
20593
20594 (INSN_COST): Move to haifa-sched.c. Use insn_cost () instead.
20595
20596 (DEP_STATUS): Rename to DEP_LINK_STATUS. Fix typo in the comment.
20597
20598 (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration
20599 and all callers.
20600 (dep_cost): Declare.
20601
20602 * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
20603 (ds_to_dk, dk_to_ds): New functions.
20604
20605 (init_dep_1): New static function.
20606 (init_dep): New function.
20607 (copy_dep): New static function.
20608
20609 (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
20610 functions.
20611 (detach_dep_link): New static function.
20612 (move_dep_link): New function.
20613
20614 (dep_links_consistent_p, dump_dep_links): New static functions.
20615 (debug_dep_links): New debugging function.
20616
20617 (deps_obstack, dl_obstack, dn_obstack): New static variables.
20618
20619 (alloc_deps_list, init_deps_list): New static functions.
20620 (create_deps_list): New function.
20621 (clear_deps_list): New static function.
20622 (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
20623 (deps_list_consistent_p, dump_deps_list): New static functions.
20624 (debug_deps_list): New function.
20625 (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
20626 functions.
20627 (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
20628
20629 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
20630 use new scheduler dependencies lists.
20631 (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
20632 (sched_analyze): Ditto. Initialize dependencies lists.
20633 (add_forw_dep, compute_forward_dependences): Update to use new
20634 scheduler dependencies lists.
20635
20636 (init_dependency_caches): Init deps_obstack.
20637 (free_dependency_caches): Free deps_obstack.
20638
20639 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
20640 new scheduler dependencies lists.
20641 (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
20642 (add_back_forw_dep, delete_back_forw_dep): Ditto.
20643
20644 * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
20645 Update to use new scheduler dependencies lists.
20646 (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
20647 (debug_dependencies): Ditto.
20648 (schedule_region): Update comments.
20649
20650 * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
20651 scheduler dependencies lists.
20652 (schedule_ebb): Update comments.
20653
20654 * rtl.def (DEPS_LIST): Remove.
20655
20656 * lists.c (unused_deps_list): Remove.
20657 (free_list): Update assertions.
20658
20659 (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
20660 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
20661
20662 * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
20663 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
20664
20665 * haifa-sched.c (comments): Update.
20666 (insn_cost1): Remove. Inline the code into insn_cost ().
20667 (insn_cost): Update to use new scheduler dependencies lists. Move
20668 processing of the dependency cost to dep_cost ().
20669 (dep_cost): New function. Use it instead of insn_cost () when
20670 evaluating cost of the dependency. Use compatible interface to
20671 interact with the target.
20672 (priority): Update to use new scheduler dependencies lists.
20673 (rank_for_schedule): Ditto. Optimize heuristic that prefers the insn
20674 with greater number of insns that depend on the insn.
20675 (schedule_insn): Update to use new scheduler dependencies lists. Add
20676 code to free backward dependencies lists. Inline and optimize code
20677 from resolve_dep () - see PR28071.
20678 (ok_for_early_queue_removal): Update to use new scheduler dependencies
20679 lists. Update call to targetm.sched.is_costly_dependence hook.
20680
20681 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
20682 scheduler dependencies lists.
20683
20684 (resolve_dep): Remove. Move the logic to schedule_insn ().
20685 (init_h_i_d): Initialize dependencies lists.
20686
20687 (process_insn_depend_be_in_spec): Rename to
20688 process_insn_forw_deps_be_in_spec. Update to use new scheduler
20689 dependencies lists.
20690 (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
20691 Update to use new scheduler dependencies lists.
20692 (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
20693
20694 * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
20695 new scheduler dependencies lists.
20696 (build_intra_loop_deps): Ditto.
20697
20698 * target.h (struct _dep): Declare to use in
20699 gcc_target.sched.is_costly_dependence.
20700 (struct gcc_target.sched.adjust_cost): Fix typo.
20701 (struct gcc_target.sched.is_costly_dependence): Change signature to
20702 use single dep_t parameter instead of an equivalent triad.
20703 (struct gcc_target.sched.adjust_cost_2): Remove.
20704
20705 * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
20706
20707 * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
20708
20709 * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
20710 documentation.
20711 (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
20712
20713 * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
20714 (REG_DEP_TRUE): Document.
20715
20716 * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
20717 Change signature to correspond to the targetm.sched.adjust_cost hook.
20718 Update use in TARGET_SCHED_ADJUST_COST_2.
20719 (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
20720 (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
20721 new scheduler dependencies lists.
20722 (ia64_gen_check): Ditto.
20723
20724 * config/mips/mips.c (vr4130_swap_insns_p): Update to use new
20725 scheduler dependencies lists.
20726
20727 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
20728 signature to correspond to the targetm.sched.is_costly_dependence hook.
20729 (is_costly_group): Update to use new scheduler dependencies lists.
20730
20731 * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
20732 instead of INSN_COST () macro.
20733
20734 2007-02-01 Ian Lance Taylor <iant@google.com>
20735
20736 * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
20737
20738 2007-02-01 Guy Martin <gmsoft@gentoo.org>
20739
20740 * pa.md (tp_load): Correct mfctl instruction syntax.
20741
20742 2007-02-01 Geoffrey Keating <geoffk@apple.com>
20743
20744 * config/rs6000/rs6000.c (rs6000_stack_info): Correct
20745 altivec_padding_size calculation on AIX. Improve comment, add
20746 assert to verify that it's right.
20747
20748 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
20749 64-bit.
20750
20751 2007-2-01 Seongbae Park <seongbae.park@gmail.com>
20752
20753 PR inline-asm/28686
20754 * global.c (global_alloc): Add mising initialization of
20755 ELIMINABLE_REGSET.
20756
20757 2007-02-01 Roger Sayle <roger@eyesopen.com>
20758
20759 * alias.c (init_alias_analysis): Correct whitespace.
20760 * bb-reorder.c (fix_edges_for_rarely_executed_code,
20761 partition_hot_cold_basic_blocks): Likewise.
20762 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
20763 expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
20764 maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
20765 fold_builtin_snprintf_chk, fold_builtin_printf,
20766 fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
20767 do_mpfr_arg3, do_mpfr_sincos): Likewise.
20768 * cfgcleanup.c (cleanup_cfg): Likewise.
20769 * cfgexpand.c (tree_expand_cfg): Likewise.
20770 * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
20771 * function.c (get_next_funcdef_no): Likewise.
20772 * gengtype.c (main): Likewise.
20773 * genmodes.c (main): Likewise.
20774 * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
20775 * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
20776 * ifcvt.c (noce_emit_move_insn): Likewise.
20777 * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
20778 Likewise.
20779 * stor-layout.c (get_best_mode): Likewise.
20780 * tree-ssa-loop-niter.c (get_val_for): Likewise.
20781 * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
20782 scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
20783 perform_var_substitution, solve_graph): Likewise.
20784 * tree-vrp.c (vrp_finalize): Likewise.
20785
20786 2007-02-01 Ian Lance Taylor <iant@google.com>
20787
20788 * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
20789 high part of a paradoxical subreg, return a constant zero.
20790
20791 2007-02-01 Zdenek Dvorak <dvorakz@suse.cz>
20792
20793 * toplev.c (lang_dependent_init): Call init_set_costs.
20794 * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
20795
20796 2007-02-01 Richard Guenther <rguenther@suse.de>
20797
20798 PR middle-end/30656
20799 * fold-const.c (fold_negate_expr): Allow negating a
20800 constant if overflow does not change.
20801
20802 2007-02-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20803
20804 * doc/c-tree.texi (Expression trees): Improve markup.
20805 * doc/tm.texi (Register Classes, Addressing Modes)
20806 (Floating Point): Fix spacing after abbreviations. Fix some
20807 typos.
20808
20809 2007-02-01 Ben Elliston <bje@au.ibm.com>
20810
20811 * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
20812 * doc/contrib.texi: Likewise.
20813 * doc/install.texi: Likewise.
20814
20815 2007-01-31 Richard Henderson <rth@redhat.com>
20816 Ian Lance Taylor <iant@google.com>
20817
20818 * lower-subreg.c: New file.
20819 * rtl.def (CONCATN): Define.
20820 * passes.c (init_optimization_passes): Add pass_lower_subreg and
20821 pass_lower_subreg2.
20822 * emit-rtl.c (update_reg_offset): New static function, broken out
20823 of gen_rtx_REG_offset.
20824 (gen_rtx_REG_offset): Call update_reg_offset.
20825 (gen_reg_rtx_offset): New function.
20826 * regclass.c: Revert patch of 2006-03-05, restoring
20827 reg_scan_update.
20828 (clear_reg_info_regno): New function.
20829 * dwarf2out.c (concatn_loc_descriptor): New static function.
20830 (loc_descriptor): Handle CONCATN.
20831 * common.opt (fsplit_wide_types): New option.
20832 * opts.c (decode_options): Set flag_split_wide_types when
20833 optimizing.
20834 * timevar.def (TV_LOWER_SUBREG): Define.
20835 * rtl.h (gen_reg_rtx_offset): Declare.
20836 (reg_scan_update): Declare.
20837 * regs.h (clear_reg_info_regno): Declare.
20838 * tree-pass.h (pass_lower_subreg): Declare.
20839 (pass_lower_subreg2): Declare.
20840 * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
20841 (Optimize Options): Add -fsplit-wide-types to -O1 list. Document
20842 -fsplit-wide-types.
20843 * doc/rtl.texi (Regs and Memory): Document concat and concatn.
20844 * Makefile.in (OBJS-common): Add lower-subreg.o.
20845 (lower-subreg.o): New target.
20846
20847 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
20848
20849 * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
20850
20851 2007-01-31 Anatoly Sokolov <aesok@post.ru>
20852
20853 PR target/19087
20854 * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
20855
20856 2007-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20857
20858 PR middle-end/29335
20859 * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
20860
20861 2007-01-31 Zdenek Dvorak <dvorakz@suse.cz>
20862
20863 * cfgloop.h: Include vec-prim.h.
20864 (enum li_flags): Remove LI_ONLY_OLD.
20865 (loop_iterator): Changed.
20866 (fel_next, fel_init): Iterate over loop tree.
20867 (FOR_EACH_LOOP_BREAK): New macro.
20868 * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
20869 FOR_EACH_LOOP.
20870 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
20871 * modulo-sched.c (sms_schedule): Ditto.
20872 * tree-vectorizer.c (vectorize_loops): Ditto.
20873 * doc/loop.texi: Update information on loop numbering and behavior of
20874 FOR_EACH_LOOP wrto new loops.
20875 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
20876 add_to_evolution_1): Test nestedness of loops instead of comparing
20877 their numbers.
20878 * tree-chrec.c (chrec_fold_plus_poly_poly,
20879 chrec_fold_multiply_poly_poly, chrec_evaluate,
20880 hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
20881 reset_evolution_in_loop): Ditto.
20882 * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
20883
20884 2007-01-31 Dirk Mueller <dmueller@suse.de>
20885
20886 * c-common.c (warn_about_parentheses): Separate warning about
20887 un-parenthized sequence of comparison operators from the one
20888 which is supposed to warn about x <= y <= z.
20889
20890 2007-01-31 Uros Bizjak <ubizjak@gmail.com>
20891
20892 * optabs.h (enum optab_index): Add new OTI_isinf.
20893 (isinf_optab): Define corresponding macro.
20894 * optabs.c (init_optabs): Initialize isinf_optab.
20895 * genopinit.c (optabs): Implement isinf_optab using isinf?f2
20896 patterns.
20897 * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
20898 (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
20899 using isinf_optab.
20900 (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
20901 expand_builtin_interclass_mathfn.
20902 * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
20903 * config/i386/i386.md (UNSPEC_FXAM): New constant.
20904 (fxam<mode>2_i387): New insn pattern.
20905 (isinf<mode>2) New expander to implement isinf, isinff and isinfl
20906 built-in functions as x87 inline asm.
20907
20908 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
20909
20910 * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
20911
20912 2007-01-30 Eric Christopher <echristo@apple.com>
20913
20914 * config.gcc: Add geode.
20915
20916 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
20917
20918 * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
20919 ipa-inline.c, tree-profile.c, tree-ssa-live.c,
20920 tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
20921 value-prof.c: Fix comment typos.
20922
20923 2007-01-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20924
20925 PR c++/24745
20926 * doc/invoke.texi (Wpointer-arith): Document warning.
20927
20928 2007-01-30 Janis Johnson <janis187@us.ibm.com>
20929
20930 * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
20931 the list of discrepancies from the draft TR.
20932
20933 2007-01-30 Dirk Mueller <dmueller@suse.de>
20934
20935 PR c++/30601
20936 * doc/invoke.texi (-Wreturn-type): Update description to
20937 match new behavior.
20938
20939 2007-01-30 Richard Sandiford <richard@codesourcery.com>
20940
20941 * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
20942
20943 2007-01-30 Uros Bizjak <ubizjak@gmail.com>
20944
20945 * builtins.c (expand_builtin_int_interclass_roundingfn): New function
20946 to handle optabs that operate on floating point input argument and
20947 output to integer output.
20948 (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
20949 (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
20950 (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
20951 expand_builtin_interclass_mathfn ().
20952 * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
20953 (ilogbsi2): Remove.
20954 (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
20955 ilogbl built-in functions as x87 intrinsics.
20956
20957 2007-01-30 Richard Guenther <rguenther@suse.de>
20958
20959 PR middle-end/27657
20960 * dwarf2out.c (reference_to_unused): Query varpool if the
20961 variable was output.
20962
20963 2007-01-30 Richard Guenther <rguenther@suse.de>
20964
20965 PR middle-end/30313
20966 * passes.c (execute_one_pass): Reset in_gimple_form to not
20967 confuse non-unit-at-a-time mode.
20968
20969 2007-01-29 Roger Sayle <roger@eyesopen.com>
20970 Richard Guenther <rguenther@suse.de>
20971
20972 * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
20973 avoid undefined behaviour on overflow. Use force_fit_type_double
20974 to construct the constant with the specified TREE_OVERFLOW.
20975
20976 2007-01-29 Janis Johnson <janis187@us.ibm.com>
20977
20978 * config/dfp-bit.c: Add parameterized support for fp exceptions.
20979 * config/dfp-bit.h: Ditto.
20980
20981 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20982
20983 * c-decl.c (pop_scope): Replace warnings with call to
20984 warn_for_unused_label.
20985 * c-common.h (warn_for_unused_label): Declare.
20986 * c-common.c (warn_for_unused_label): Define.
20987
20988 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20989
20990 * tree-optimize.c (update_inlined_to_pointers): Delete unused
20991 function.
20992
20993 2007-01-29 Janis Johnson <janis187@us.ibm.com>
20994
20995 * Makefile.in (USER_H): Remove decfloat.h.
20996 * ginclude/decfloat.h: Delete, moving contents to ...
20997 * ginclude/float.h: Add support for decimal floating point,
20998 guarded by __STDC_WANT_DEC_FP__.
20999
21000 2007-01-29 Mike Stump <mrs@apple.com>
21001
21002 * doc/gccint.texi (Top): Rename Loop Representation to Loop
21003 Analysis and Representation to resolve case insensitive conflict.
21004 * doc/loop.texi (Loop Analysis and Representation): Likewise.
21005
21006 2007-01-28 Daniel Berlin <dberlin@dberlin.org>
21007
21008 * tree.h (struct tree_memory_tag): Add aliases member.
21009 (MTAG_ALIASES): New macro.
21010 * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
21011 (add_may_alias): Remove pointer-set. Update for may_aliases being
21012 a bitmap.
21013 (mark_aliases_call_clobbered): Update for may_aliases being a
21014 bitmap.
21015 (compute_tag_properties): Ditto.
21016 (create_partition_for): Ditto.
21017 (compute_memory_partitions): Ditto.
21018 (dump_may_aliases_for): Ditto.
21019 (is_aliased_with): Ditto.
21020 (add_may_alias_for_new_tag): Ditto.
21021 (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
21022 (compute_is_aliased): New function.
21023 (compute_may_aliases): Call compute_is_aliased).
21024 (init_alias_info): Initialize alias_bitmap_obstack.
21025 (union_alias_set_into): New function.
21026 (compute_flow_sensitive_aliasing): Use union_aliases_into.
21027 (have_common_aliases_p): Rewrite to take two bitmaps and use
21028 intersection.
21029 (compute_flow_insensitive_aliasing): Stop using pointer-sets.
21030 Update for bitmaps.
21031 (finalize_ref_all_pointers): Update for add_may_alias changes.
21032 (new_type_alias): Ditto.
21033 * tree-flow-inline.h (may_aliases): Return a bitmap.
21034 * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
21035 * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
21036 may_aliases being a bitmap.
21037 * tree-flow.h (struct var_ann_d): Remove may_aliases member.
21038 may_aliases now returns a bitmap.
21039 * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
21040 being a bitmap.
21041 * tree-ssa-operands.c (add_virtual_operand): Update for
21042 may_aliases being a bitmap.
21043
21044 2007-01-29 Daniel Berlin <dberlin@dberlin.org>
21045
21046 PR tree-optimization/30630
21047 * tree-ssa-structalias.c (do_complex_constraint): Mark correct
21048 variable as changed.
21049
21050 2007-01-29 Simon Martin <simartin@users.sourceforge.net>
21051
21052 PR c++/28266
21053 * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
21054 expanded only once even if an error occurs.
21055
21056 2007-01-29 Ben Elliston <bje@au.ibm.com>
21057
21058 * gcov-io.h (__gcov_indirect_call_profiler): Declare.
21059 (__gcov_average_profiler): Likewise.
21060 (__gcov_ior_profiler): Likewise.
21061 (__gcov_merge_ior): Likewise.
21062
21063 2007-01-28 Jan Hubicka <jh@suse.cz>
21064
21065 * builtins.c (expand_builtin_memset): Fix typo in my last patch.
21066 * value-prof.c (stringop_block_profile): Likewise.
21067
21068 2007-01-28 Jan Hubicka <jh@suse.cz>
21069
21070 * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall):
21071 Add variant handling histograms; add wrapper.
21072 (clear_storage_via_libcall): Export.
21073 (emit_block_move_hints): Break out from ...; add histograms.
21074 (emit_block_move): ... this one.
21075 (clear_storage_hints): Break out from ...; add histograms.
21076 (clear_storage): ... this one.
21077 (set_storage_via_memset): Handle histogram.
21078 * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
21079 (clear_storage_hints, clear_storage_via_libcall): Declare.
21080 (set_storage_via_setmem): Update prototype.
21081 * doc/md.texi (movmem, setmem): Document new arguments.
21082
21083 * value-prof.c (dump_histogram_value, tree_find_values_to_profile):
21084 Add new histograms.
21085 (stringop_block_profile): New global function.
21086 (tree_stringops_values_to_profile): Profile block size and alignment.
21087 * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
21088 HIST_TYPE_IOR.
21089 (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
21090 (stringop_block_profile): Declare.
21091 * builtins.c: Include value-prof.h.
21092 (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
21093 * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
21094 (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
21095 (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
21096 * profile.c (instrument_values): Add new counters.
21097 * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
21098 calls.
21099 * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
21100 (tree_init_edge_profiler): Build new profilers.
21101 (tree_gen_average_profiler, tree_gen_ior_profiler): New.
21102 (pass_tree_profile): Add dump.
21103 (tree_profile_hooks): Update.
21104 * Makefile.in (LIBGCOV): Add new constants.
21105 * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
21106 __gcov_ior_profiler): New.
21107 * i386.md (movmem/setmem expanders): Add new optional arguments.
21108
21109 2007-01-28 David Edelsohn <edelsohn@gnu.org>
21110
21111 * doc/md.texi (Standard Pattern Names): Document blockage pattern.
21112
21113 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
21114
21115 * tree-ssa-loop-unswitch.c: Include tree-inline.h.
21116 (tree_unswitch_single_loop): Pass eni_size_weights to
21117 tree_num_loop_insns.
21118 * tree-ssa-loop-manip.c: Include tree-inline.h.
21119 (can_unroll_loop_p): Pass eni_size_weights to
21120 tree_num_loop_insns.
21121 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
21122 Pass eni_size_weights to estimate_num_insns.
21123 * tree.h (init_inline_once): Export.
21124 * toplev.c (backend_init): Call init_inline_once.
21125 * cgraphunit.c (cgraph_process_new_functions,
21126 cgraph_analyze_function): Pass eni_inlining_weights to
21127 estimate_num_insns.
21128 * ipa-inline.c (compute_inline_parameters): Ditto.
21129 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
21130 to estimate_num_insns.
21131 (try_unroll_loop_completely): Pass eni_size_weights to
21132 tree_num_loop_insns.
21133 * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
21134 ot estimate_num_insns.
21135 * tree-ssa-loop-prefetch.c: Include tree-inline.h.
21136 (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
21137 * tree-inline.c (eni_inlining_weights, eni_size_weights,
21138 eni_time_weights): New variables.
21139 (init_inline_once): Initialize them.
21140 (struct eni_data): Mew.
21141 (estimate_num_insns_1, estimate_num_insns): Use weights.
21142 * tree-inline.h (struct eni_weights_d): New.
21143 (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
21144 (estimate_num_insns): Declaration changed.
21145 * cfgloop.h (tree_num_loop_insns): Declaration changed.
21146 * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
21147 tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
21148
21149 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
21150
21151 * tree-data-ref.c (conflict_fn): Assert that the number of affine
21152 relations in the conflict function is valid.
21153
21154 2007-01-27 Ian Lance Taylor <iant@google.com>
21155
21156 * common.opt: Add fstrict-overflow.
21157 * opts.c (decode_options): Set flag_strict_overflow if -O2.
21158 * flags.h (TYPE_OVERFLOW_WRAPS): Define.
21159 (TYPE_OVERFLOW_UNDEFINED): Define.
21160 (TYPE_OVERFLOW_TRAPS): Define. This replaces TYPE_TRAP_SIGNED.
21161 Replace all uses.
21162 * tree.h (TYPE_TRAP_SIGNED): Don't define.
21163 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
21164 (fold_negate_expr): Likewise.
21165 (make_range): Likewise.
21166 (extract_muldiv_1): Likewise.
21167 (maybe_canonicalize_comparison): Likewise.
21168 (fold_comparison): Likewise.
21169 (fold_binary): Likewise.
21170 (tree_expr_nonnegative_p): Likewise.
21171 (tree_expr_nonzero_p): Likewise.
21172 * tree-vrp.c (compare_values): Likewise.
21173 (extract_range_from_binary_expr): Likewise.
21174 (extract_range_from_unary_expr): Likewise.
21175 * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
21176 Likewise.
21177 (nowrap_type_p): Likewise.
21178 * tree-scalar-evolution.c (simple_iv): Likewise.
21179 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
21180 (build_range_check): Likewise.
21181 (extract_muldiv_1): Likewise.
21182 (fold_comparison): Likewise.
21183 * tree-vrp.c (vrp_int_const_binop): Likewise.
21184 (extract_range_from_unary_expr): Likewise.
21185 * convert.c (convert_to_integer): Likewise.
21186 * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
21187 (fold_comparison): Likewise.
21188 (fold_binary): Likewise.
21189 * optabs.c (optab_for_tree_code): Likewise.
21190 * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
21191 * simplify-rtx.c (simplify_const_relational_operation): Check
21192 flag_strict_overflow and flag_trapv.
21193 (simplify_const_relational_operation): Likewise.
21194 * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
21195 (Optimize Options): Add -fstrict-overflow to -O2 list. Document
21196 -fstrict-overflow.
21197
21198 2007-01-27 Roger Sayle <roger@eyesopen.com>
21199
21200 * tree.c (tree_fold_gcd): Delete.
21201 * tree.h (tree_fold_gcd): Remove prototype.
21202 * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
21203 test whether one constant integer is a multiple of another. Instead
21204 call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
21205 * fold-const.c (multiple_of_p): We've determined both TOP and
21206 BOTTOM are integer constants so we can call int_const_binop directly
21207 instead of the more generic const_binop.
21208
21209 2007-01-27 Roger Sayle <roger@eyesopen.com>
21210
21211 * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
21212 1*X check that the constant hasn't overflowed, to preserve the
21213 TREE_OVERFLOW bit.
21214 (round_up): Provide an efficient implementation when rouding-up an
21215 INTEGER_CST to a power-of-two.
21216
21217 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21218
21219 * doc/sourcebuild.texi: Add comma for clarity.
21220 * doc/extend.texi: Fix some typos.
21221 * doc/passes.texi: Likewise.
21222 * doc/cppinternals.texi: Likewise.
21223 * doc/c-tree.texi: Likewise.
21224 * doc/tree-ssa.texi: Likewise.
21225 * doc/install.texi: Likewise.
21226
21227 2007-01-27 Jan Hubicka <jh@suse.cz>
21228
21229 * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
21230 (pass_sra): Do not require alias information.
21231 * passes.c (init_optimization_passes): Add SRA
21232
21233 2007-01-27 Steven Bosscher <steven@gcc.gnu.org>
21234
21235 * tracer.c (rest_of_handle_tracer): We already cleaned
21236 up the CFG in tracer() so don't do it here again.
21237 * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
21238 cleanup_cfg here, either. And don't call renumber_insns.
21239
21240 * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
21241 and BB_HEAD are in the insn stream here. Instead make sure
21242 that BB_INSN is valid on all insns. Also, do check here that
21243 there are no pending branch predictions...
21244 (rtl_verify_flow_info): ...instead of doing it here. Checks
21245 for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
21246 here.
21247
21248 2007-01-26 Roger Sayle <roger@eyesopen.com>
21249
21250 * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
21251 function to simplify/factorize operand order canonicalization.
21252 (ix86_fixup_binary_operands): Reorganize using the above function.
21253 (ix86_binary_operator_ok): Likewise.
21254
21255 2007-01-27 Jakub Jelinek <jakub@redhat.com>
21256
21257 * genattrtab.c (struct attr_value_list, insn_code_values): Move to
21258 file scope from optimize_attrs.
21259 (simplify_test_exp): If insn_code_values is not NULL, use it to speed
21260 up search.
21261 (optimize_attrs): Clear insn_code_values after freeing it.
21262
21263 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
21264
21265 * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
21266 a parts.base assignment.
21267
21268 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
21269
21270 * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
21271 (compute_subscript_distance, initialize_data_dependence_relation,
21272 finalize_ddr_dependent, analyze_ziv_subscript,
21273 analyze_siv_subscript_cst_affine,
21274 compute_overlap_steps_for_affine_univar,
21275 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
21276 analyze_siv_subscript, analyze_miv_subscript,
21277 analyze_overlapping_iterations, subscript_dependence_tester_1,
21278 compute_self_dependence, free_dependence_relation): Work
21279 with affine_fn instead of chrecs.
21280 (dump_affine_function, dump_conflict_function, affine_function_equal_p,
21281 common_affine_function, affine_function_base,
21282 affine_function_constant_p, affine_fn_op, affine_fn_plus,
21283 affine_fn_minus, affine_fn_free, conflict_fn_not_known,
21284 conflict_fn_no_dependence, free_conflict_function, free_subscripts,
21285 conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
21286 (all_chrecs_equal_p): Removed.
21287 * tree-data-ref.h (affine_fn, conflict_function): New types.
21288 (struct subscript): Change type of conflicting_iterations_in_a
21289 and conflicting_iterations_in_b.
21290
21291 2007-01-26 Steve Ellcey <sje@cup.hp.com>
21292
21293 PR other/30182
21294 * config/pa/pa.h (TARGET_HPUX_11): New.
21295 * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
21296 * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
21297
21298 2007-01-26 Daniel Berlin <dberlin@dberlin.org>
21299 Richard Guenther <rguenther@suse.de>
21300
21301 * tree-ssa-structalias.c (solve_graph): Handle case
21302 we merged the variable to another.
21303
21304 2007-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21305
21306 * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
21307 functions.
21308
21309 * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
21310 catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
21311
21312 2007-01-25 DJ Delorie <dj@redhat.com>
21313
21314 * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
21315 allow changes to modes which don't fit in those registers.
21316
21317 * reload1.c (choose_reload_regs): Check for invalid subregs before
21318 computing their locations, not after.
21319
21320 2007-01-25 Geoffrey Keating <geoffk@apple.com>
21321
21322 PR 25127
21323 * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
21324 save Altivec registers in an eh_return function.
21325 (compute_vrsave_mask): Likewise.
21326 (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
21327 for saving Altivec registers.
21328 (rs6000_emit_prologue): Don't allocate stack twice in
21329 eh_return function. Correct expected value of altivec_save_offset
21330 when using save_world. Describe save of R0 to stack when using
21331 save_world. Describe stack pointer adjustment when using
21332 save_world. Remove duplicated eh_return parameter register saving.
21333 Update sp_offset variable after save_world.
21334 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
21335 darwin-world.asm.
21336 (LIB2FUNCS_EXTRA): Add darwin-world.asm.
21337 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
21338 implies Altivec.
21339
21340 2007-01-25 Steve Ellcey <sje@cup.hp.com>
21341
21342 * config.gcc (ia64*-*-hpux*): Make posix threads the default.
21343
21344 2007-01-25 Steve Ellcey <sje@cup.hp.com>
21345
21346 PR other/30182
21347 * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
21348 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
21349
21350 2007-01-25 Richard Guenther <rguenther@suse.de>
21351
21352 * doc/invoke.texi (-Wcoverage-mismatch): Document.
21353 * common.opt (-Wcoverage-mismatch): New warning option.
21354 * coverage.c (get_coverage_counts): Ignore coverage mismatch
21355 if -Wcoverage-mismatch is given.
21356
21357 2007-01-25 Razya Ladelsky <razya@il.ibm.com>
21358
21359 * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
21360 (ipcp_driver): Change to static definition.
21361 Add dumping of the ifunctions.
21362 (constant_val_insert): Remove unused parameter. Support for SSA.
21363 (ipcp_propagate_const): Support for SSA.
21364 (ipcp_profile_bb_print): Print only analyzed nodes.
21365 (ipcp_replace_map_create): Remove support for Fortran constant
21366 for now.
21367 * ipa-prop.c (ipa_method_modify_stmt,
21368 ipa_callsite_compute_param): Support for SSA.
21369 * ipa-prop.h (ipcp_driver): Remove declaration.
21370 (IS_VALID_TREE_MAP_INDEX): Add define.
21371
21372 2007-01-24 Geoffrey Keating <geoffk@apple.com>
21373
21374 * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
21375
21376 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21377
21378 PR middle-end/30447
21379 * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
21380 constant argument to cabs and do it without checking for
21381 -funsafe-math-optimizations.
21382
21383 2007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
21384
21385 * c-common.h (RID_FIRST_CXX0X): New.
21386 (RID_LAST_CXX0X): New.
21387 * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
21388 by -Wall.
21389 * c.opt (Wc++0x-compat): New.
21390 * doc/invoke.texi (-Wc++0x-compat): Document.
21391
21392 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21393
21394 * builtins.c (fold_builtin_carg): New.
21395 (fold_builtin_1): Use it.
21396
21397 2007-01-24 Jan Hubicka <jh@suse.cz>
21398
21399 * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
21400
21401 * ipa-inline.c (initial_insns, max_insns): Delete.
21402 (compute_max_insns): New function.
21403 (cgraph_decide_inlining_of_small_function): Use it; take minimal
21404 amount of insns as base for code growth.
21405 (cgraph_decide_inlining): Make initial_insns local; do not compute
21406 max_insns.
21407 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
21408 * doc/invoke.texi (inline-unit-growth): Update docs.
21409
21410 2007-01-24 Jakub Jelinek <jakub@redhat.com>
21411
21412 * config/i386/i386.h (x86_cmpxchg16b): Remove const.
21413 (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
21414 * config/i386/i386.c (x86_cmpxchg16b): Remove const.
21415 (override_options): Add PTA_CX16 flag. Set x86_cmpxchg16b
21416 for CPUs that have PTA_CX16 set.
21417
21418 PR middle-end/27416
21419 * gimplify.c (omp_check_private): New function.
21420 (gimplify_scan_omp_clauses): Use it for
21421 firstprivate/lastprivate/reduction.
21422
21423 PR middle-end/30494
21424 * gimplify.c (omp_add_variable): Don't call omp_notice_variable
21425 on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
21426
21427 PR middle-end/30421
21428 * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
21429 If lower_lastprivate_clauses emits some statements, append them
21430 to dlist rather than body_p and to body_p append an initializer.
21431 (lower_omp_for): Adjust caller.
21432
21433 2007-01-24 Steve Ellcey <sje@cup.hp.com>
21434
21435 * target.h (globalize_decl_name): New.
21436 * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
21437 * output.h (default_globalize_decl_name): New.
21438 * varasm.c (asm_output_bss): Use globalize_decl_name instead of
21439 globalize_label.
21440 (globalize_decl): Ditto.
21441 (default_globalize_decl_name): New.
21442 * config/ia64/ia64.c (ia64_globalize_decl_name): New.
21443 (ia64_handle_version_id_attribute): New.
21444 (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
21445 (ia64_asm_output_external): Use globalize_decl_name instead
21446 of globalize_label.
21447 * doc/extend.texi (version_id): New pragma.
21448 * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
21449
21450 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
21451
21452 * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
21453 _uleb128_t and _Unwind_SWord with _sleb128_t.
21454 * unwind-dw2.c (extract_cie_info, execute_stack_op,
21455 execute_cfa_program, uw_frame_state_for, uw_update_context_1):
21456 Likewise.
21457 * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
21458 * unwind-pe.h (read_uleb128, read_sleb128,
21459 read_encoded_value_with_base): Likewise.
21460 * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
21461
21462 2007-01-24 Richard Guenther <rguenther@suse.de>
21463
21464 * builtins.c (expand_builtin_cexpi): Get the fndecl
21465 for cexp in the correct way.
21466
21467 2007-01-24 Jan Hubicka <jh@suse.cz>
21468
21469 * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS
21470 of calls.
21471
21472 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
21473
21474 * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
21475 (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
21476 __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
21477 __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
21478 __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
21479 __SIZEOF_PTRDIFF_T__.
21480 * doc/cpp.texi: Documentation for the new builtin macros added.
21481
21482 2007-01-24 Uros Bizjak <ubizjak@gmail.com>
21483
21484 * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
21485 log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
21486 instead of operands[2] to avoid access past the end of array.
21487
21488 2007-01-24 Richard Sandiford <richard@codesourcery.com>
21489
21490 * reload1.c (emit_reload_insns): Pass the reload register
21491 for a non-spill output reload through forget_old_reloads_1.
21492
21493 2007-01-23 Joseph Myers <joseph@codesourcery.com>
21494
21495 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21496 _SOFT_DOUBLE if doubles use software floating-point.
21497 * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
21498 double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
21499 * config/rs6000/darwin-ldouble.c: Also compile functions for
21500 hard-float without FPRs. Use fmsub function for all __NO_FPRS__
21501 cases. Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
21502 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
21503 commented-out long double override.
21504 (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
21505 * config/rs6000/eabispe.h: Likewise.
21506 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
21507 long double for non-SPE.
21508 (rs6000_handle_option): Likewise.
21509 (invalid_e500_subreg): Disallow more subregs involding DImode,
21510 DFmode, TImode or TFmode.
21511 (rs6000_legitimate_offset_address_p): Check TFmode offsets for
21512 E500 double.
21513 (legitimate_lo_sum_address_p): Also check for TFmode for E500
21514 double.
21515 (rs6000_legitimize_address): Also handle TFmode for E500 double.
21516 (rs6000_legitimize_reload_address): Also handle TFmode for E500
21517 double.
21518 (rs6000_legitimate_address): Also check for TFmode for E500
21519 double.
21520 (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
21521 (spe_build_register_parallel): Handle TFmode and TCmode.
21522 (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
21523 double.
21524 (function_arg): Handle TFmode and TCmode for E500 double.
21525 (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
21526 in general.
21527 (print_operand): Handle TFmode and TImode for %y.
21528 (rs6000_generate_compare): Handle TFmode comparisons for E500
21529 double.
21530 (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
21531 (rs6000_function_value): Handle TFmode and TCmode for E500 double.
21532 (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
21533 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
21534 TFmode for E500 double.
21535 * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
21536 (floatsidf2): Enable for E500 double.
21537 (movtf_softfloat): Use rs6000_nonimmediate_operand.
21538 (extenddftf2): Change to extenddftf2_fprs.
21539 (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
21540 depending on TARGET_E500_DOUBLE.
21541 (extendsftf2): Enable for E500 double.
21542 (trunctfdf2): Enable for E500 double.
21543 (trunctfsf2): Change to trunctfsf2_fprs.
21544 (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
21545 depending on TARGET_E500_DOUBLE.
21546 (floatsitf2): Enable for E500 double.
21547 (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
21548 (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
21549 gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
21550 (negtf2): Change to negtf2_internal.
21551 (negtf2): New expander.
21552 (abstf2): Enable for E500 double. Call gen_spe_abstf2_tst,
21553 gen_spe_abstf2_cmp or gen_abstf2_internal depending on
21554 TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
21555 (movdi_internal32): Use rs6000_nonimmediate_operand.
21556 (unnamed splitter): Likewise.
21557 * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
21558 TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
21559 (SPE64TF, DITI): New mode macros.
21560 (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
21561 modes.
21562 (frob_tf_ti): New.
21563 (frob_<mode>_di_2): New.
21564 (frob_tf_di_8_2): New.
21565 (frob_di_df): Change to frob_di_<mode>; allow more modes.
21566 (frob_ti_tf): New.
21567 (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
21568 more modes.
21569 (frob_ti_<mode>_8_2): New.
21570 (frob_ti_tf_2): New.
21571 (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
21572 mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
21573 TFmode.
21574 (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
21575 mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
21576 (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
21577 spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
21578 spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
21579 (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
21580 tsttflt_gp): New.
21581
21582 2007-01-23 Ian Lance Taylor <iant@google.com>
21583
21584 * Makefile.in (OBJS-common): Reformat, alphabetize, but put
21585 insn-*.o first.
21586 (OBJS-archive): Reformat, alphabetize.
21587 (OBJS): Change out_object_file to OBJS-md.
21588
21589 2007-01-23 Uros Bizjak <ubizjak@gmail.com>
21590
21591 * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
21592 JUMP_P and CALL_P predicates where applicable.
21593 * config/i386/i386.c: Ditto.
21594 * config/i386/i386.md: Ditto.
21595 * config/i386/mmx.md: Ditto.
21596 * config/i386/predicates.md: Ditto.
21597
21598 2007-01-22 Andreas Schwab <schwab@suse.de>
21599
21600 * config/m68k/m68k.h: Fix comment.
21601
21602 2007-01-22 Jan Hubicka <jh@suse.cz>
21603
21604 * passes.c (init_optimization_passes): Do not rerun
21605 pass_early_warn_uninitialized.
21606
21607 2007-01-22 Richard Guenther <rguenther@suse.de>
21608
21609 PR tree-optimization/30038
21610 * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
21611 function.
21612 (execute_cse_sincos_1): Likewise.
21613 (execute_cse_sincos): Likewise.
21614 (gate_cse_sincos): Likewise.
21615 (pass_cse_sincos): New pass CSEing sin() and cos() calls using
21616 the cexpi() canonicalization of sincos().
21617 * tree-pass.h (pass_cse_sincos): Declare.
21618 * passes.c (init_optimization_passes): New pass pas_cse_sincos.
21619
21620 2007-01-21 Eric Botcazou <ebotcazou@libertysurf.fr>
21621
21622 PR rtl-optimization/29329
21623 * combine.c (replaced_rhs_insn): Rename to i2mod.
21624 (replaced_rhs_value): Rename to i2mod_new_rhs.
21625 (i2mod_old_rhs): New global variable.
21626 (combine_instructions): Adjust for above change. Save a copy of
21627 the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
21628 note are substituted in the second instruction.
21629 (distribute_notes) <REG_DEAD>: Adjust for above change. Do not
21630 ditch the note if it pertains to the second eliminated register
21631 and this register is mentioned in i2mod_old_rhs.
21632
21633 Revert:
21634 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
21635
21636 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
21637 the insn to which the note was originally attached.
21638
21639 2007-01-21 Jan Hubicka <jh@suse.cz>
21640
21641 * ipa-inline.c (inlining_mode): Comment, move up.
21642 (cgraph_decide_inlining_incrementally): Do not perform inlining
21643 itself; fix handling of flattening of self recursive functions.
21644 (cgraph_find_cycles): Remove.
21645 (cgraph_flatten_node): Remove.
21646 (cgraph_decide_inlining): Use incremental inliner to handle flattening.
21647 (try_inline): New function.
21648 (cgraph_early_inlining): Update call of
21649 cgraph_decide_inlining_incrementally. Apply inlining here.
21650 (apply_inline): Update call of cgraph_decide_inlining_incrementally.
21651
21652 2007-01-21 Dirk Mueller <dmueller@suse.de>
21653
21654 PR bootstrap/30511
21655 * tree-vrp.c (check_array_bounds): do not warn
21656 about ADDR_EXPR's of ARRAY_REF's which are immediately
21657 used in binary expressions.
21658
21659 2007-01-21 Ira Rosen <irar@il.ibm.com>
21660
21661 * tree-vectorizer.h (struct _stmt_vec_info): Add new field
21662 read_write_dep and macros for its access.
21663 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
21664 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
21665 argument, call vect_check_interleaving for every independent pair of
21666 data-refs. Mark loads that access the same memory location as a store
21667 in the loop.
21668 (vect_check_dependences): Remove.
21669 (vect_analyze_data_ref_dependences): Remove vect_check_dependences
21670 call, fix the call to vect_analyze_data_ref_dependence.
21671 (vect_analyze_data_ref_access): For statements that access the same
21672 data-ref, check that they are not stores; for loads, check that there
21673 is no store that access the same location.
21674
21675 2007-01-20 Roger Sayle <roger@eyesopen.com>
21676 Joseph Myers <joseph@codesourcery.com>
21677
21678 * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
21679 (-fdump-rtl-stack): Likewise.
21680 (-fno-signed-zeros): Use @minus{} for a minus sign. Correct typo.
21681 (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
21682 (-mpt-fixed): Use @minus{} for minus sign.
21683 (Using Precompiled Headers): Fix under/overfull hbox.
21684
21685 2007-01-20 Jan Hubicka <jh@suse.cz>
21686
21687 * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
21688 place within annotation.
21689
21690 2007-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21691
21692 * pa.c (output_move_double): Change array size of xoperands to 4.
21693
21694 2007-01-20 Jan Hubicka <jh@suse.cz>
21695
21696 * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
21697 as temporary.
21698
21699 2007-01-19 Ian Lance Taylor <iant@google.com>
21700
21701 * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
21702 constant to unsigned HOST_WIDE_INT before negating.
21703
21704 2007-01-19 Ian Lance Taylor <iant@google.com>
21705
21706 * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
21707 to unsigned.
21708 (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
21709 (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
21710 (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
21711 (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
21712 (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
21713 (realloc_vdef, realloc_vuse): Change second parameter to
21714 unsigned.
21715 (ssa_operand_iterator_d): Change vuse_index and mayuse_index
21716 fields to unsigned.
21717 * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
21718 unsigned. Change x and lim locals to unsigned.
21719 (realloc_vdef, realloc_vuse): Change num_elem parameter to
21720 unsigned.
21721 (finalize_ssa_vuse_ops): Change old_i local to unsigned.
21722 (copy_virtual_operands): Change i and n locals to unsigned.
21723
21724 2007-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21725
21726 PR middle-end/29335
21727 * builtins.c (fold_builtin_1): Handle builtin fdim.
21728
21729 2007-01-20 Jan Hubicka <jh@suse.cz>
21730
21731 * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
21732 * tree-ssa-structalias.c (compute_points_to_sets): Do call
21733 init_alias_heapvars.
21734 (init_alias_heapvars): Initialize only when not already initialized.
21735 (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
21736
21737 2007-01-19 Roger Sayle <roger@eyesopen.com>
21738
21739 * common.opt (fsigned-zeros): New command line option.
21740 * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
21741 of flag_unsafe_math_optimizations.
21742 * opts.c (set_fast_math_flags): The -ffast-math command line option
21743 implies -fno-signed-zeros.
21744 (fast_math_flags_set_p): Likewise.
21745
21746 * doc/invoke.texi: Document new -fno-signed-zeros option, and update
21747 the documentation of -ffast-math appropriately. Wrap long lines.
21748
21749 2007-01-19 Steve Ellcey <sje@cup.hp.com>
21750
21751 * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
21752 * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
21753
21754 2007-01-19 Tomas Bily <tbily@suse.cz>
21755
21756 * cgraphunit.c (cgraph_finalize_function): Updating of pid
21757 * tree-profile.c:
21758 (tree_init_ic_make_global_vars): New function
21759 (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
21760 (tree_gen_ic_profiler): New function
21761 (tree_gen_ic_func_profiler): New function
21762 (tree_profiling): Added calling of tree_gen_ic_func_profiler
21763 (tree_profile_hooks): Added hook for indirec/virtual calls
21764 * value-prof.c (tree_find_values_to_profile): New case for
21765 indirect calls
21766 (tree_values_to_profile): Call for determining indirect/virtual
21767 counters
21768 (tree_indirect_call_to_profile): New function
21769 (tree_ic_transform): New function
21770 (tree_ic): New function
21771 (find_func_by_pid): New function
21772 (init_pid_map): New function
21773 (tree_value_profile_transformations): Added check for
21774 indirect/virtual call transformation
21775 * value-prof.h (enum hist_type): New counter type for
21776 indirect/virtual calls
21777 (profile_hooks): Added new hook for profiling indirect/virtual
21778 calls
21779 * profile.c (instrument_values): New case for indirect/virtual
21780 call added
21781 * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
21782 (GCOV_COUNTER_V_INDIR): New counter type
21783 (GCOV_COUNTER_NAMES): New name of counter "indirect" added
21784 (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
21785 call added
21786 * cgraph.c: Definition of cgraph_max_pid
21787 (cgraph_create_node): Default init of pid attribute
21788 * cgraph.h: Declaration of cgraph_max_pid
21789 (struct cgraph_node): Added pid attribute
21790 * libgcov.c (__gcov_indirect_call_profiler): New function
21791 (__gcov_one_value_profiler_body): New function
21792 (__gcov_one_value_profiler): Body was moved to
21793 __gcov_one_value_profiler_body and calls it
21794
21795 2007-01-19 Basile Starynkevitch <basile@starynkevitch.net>
21796
21797 * doc/gty.texi (Options): Document the mark_hook option to GTY.
21798 * gengtype.c (write_types_data, write_func_for_structure,
21799 write_types, ggc_wtd, pch_wtd): Add skip_hooks to
21800 write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
21801 (walk_type, write_func_for_structure): Generate the mark_hook if
21802 needed.
21803
21804 2007-01-19 Jan Hubicka <jh@suse.cz>
21805
21806 * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
21807 'early' argument take inlining mode argument specifying whether to
21808 inline for size/speeed or all functions; add support for flattening;
21809 improve dumpting.
21810 (cgraph_early_inlining): Update call of decide_inlining_incrementally.
21811
21812 2007-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
21813
21814 PR c++/17947
21815 * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
21816 the name of the declared identifier.
21817
21818 2007-01-19 Dirk Mueller <dmueller@suse.de>
21819
21820 * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
21821 result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
21822 duplicate evaluation.
21823
21824 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
21825
21826 * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
21827 Macroize expander using X87MODEF12 mode macro. Extend operand 1
21828 to XFMode, use acosxf2 and truncate result to requested mode.
21829 Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
21830 (asin<mode>2): Similarly, with asin expanders.
21831 (*fscalexf4_i387): Rename from *fscalexf4.
21832 (expNcorexf3): New expander.
21833 (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
21834 (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
21835 X87MODEF12 mode macro. Extend operand 1 to XFMode, use expxf2 and
21836 truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
21837 patterns for SSE math.
21838 (exp10<mode>2): Similarly, with exp10 expanders.
21839 (exp2<mode>2): Similarly, with exp2 expanders.
21840 (expm1<mode>2): Similarly, with expm1 expanders.
21841 (ldexp<mode>3): Similarly, with ldexp expanders.
21842 (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
21843 Use gen_truncxf<mode>2_i387_noop to truncate result.
21844
21845 2007-01-19 Richard Sandiford <richard@codesourcery.com>
21846
21847 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
21848 for ColdFire targets.
21849
21850 2007-01-19 Nathan Sidwell <nathan@codesourcery.com>
21851 Richard Sandiford <richard@codesourcery.com>
21852
21853 * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
21854 (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
21855 (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
21856 * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
21857 (M68K_STATIC_CHAIN_REG_NAME): Likewise.
21858 * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
21859
21860 2007-01-19 Richard Sandiford <richard@codesourcery.com>
21861
21862 * config/m68k/m68k.md (adddi_dilshr32): Rename to...
21863 (*adddi_dilshr32): ...this. Fix formatting. Remove commented-out
21864 non-canonical pattern. Restrict to !TARGET_COLDFIRE.
21865 (*adddi_dilshr32_cf): New pattern.
21866 (adddi3, subdi3): Remove first alternatives.
21867
21868 2007-01-19 Richard Sandiford <richard@codesourcery.com>
21869
21870 * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
21871 implemented using move.l, do not use its cc result for floating-point
21872 comparisons.
21873
21874 2007-01-19 Richard Sandiford <richard@codesourcery.com>
21875
21876 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
21877 from accepting 's' constraints if flag_pic.
21878
21879 2007-01-19 Richard Sandiford <richard@codesourcery.com>
21880
21881 * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
21882 (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
21883 (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
21884 condition from TARGET_68881 to TARGET_HARD_FLOAT.
21885
21886 2007-01-19 Sandra Loosemore <sandra@codesourcery.com>
21887
21888 * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
21889 ColdFire alternatives.
21890 * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
21891 * config/m68k/m68k.md (clzsi2): Define for ColdFire
21892 architectures that support ff1 instruction.
21893
21894 2007-01-19 Richard Sandiford <richard@codesourcery.com>
21895 Julian Brown <julian@codesourcery.com>
21896
21897 * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
21898 * config/m68k/m68k.md (*movsi_cfv4): Fold into...
21899 (*movsi_cf): ...here. Remove unnecessary 'R' from 'Rg'.
21900 Add commentary.
21901
21902 2007-01-19 Richard Sandiford <richard@codesourcery.com>
21903
21904 * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
21905 and return a bool.
21906 (output_move_const_into_data_reg, output_move_simode_const): Delete.
21907 * config/m68k/m68k.c (const_method, const_int_cost): Take a
21908 HOST_WIDE_INT instead of an rtx.
21909 (m68k_rtx_costs): Update call accordingly.
21910 (output_move_const_into_data_reg): Likewise. Fix formatting.
21911 (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
21912 Return a bool.
21913 (output_move_simode_const): Update calls after above changes.
21914 Rework to use automatic variables and predicates like MEM_P.
21915 * config/m68k/m68k.md (pushexthisi_const): Update call to
21916 valid_mov3q_const.
21917
21918 2007-01-19 Dirk Mueller <dmueller@suse.de>
21919
21920 * tree-ssa-alias.c (perform_var_substitution): Fix typo
21921 in dump_flags test.
21922
21923 2007-01-19 Richard Guenther <rguenther@suse.de>
21924
21925 * builtins.c (expand_builtin_cexpi): Fall back to expanding
21926 via cexp in case sincos is not available.
21927
21928 2007-01-19 Richard Guenther <rguenther@suse.de>
21929
21930 * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
21931 * defaults.h (TARGET_HAS_SINCOS): Default to off.
21932 * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
21933 * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
21934 * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
21935 * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
21936 * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
21937 * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
21938
21939 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
21940
21941 * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
21942 New insn patterns.
21943 (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
21944 (atan2xf3): Directly generate RTL pattern.
21945 (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
21946 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
21947 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
21948 disable patterns for SSE math.
21949 (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
21950 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
21951 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
21952 disable patterns for SSE math.
21953
21954 2007-01-19 Alexandre Oliva <aoliva@redhat.com>
21955
21956 * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
21957
21958 2007-01-18 Roger Sayle <roger@eyesopen.com>
21959
21960 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
21961 VIEW_CONVERT_EXPR to the same type as it's operand.
21962
21963 2007-01-18 David Edelsohn <edelsohn@gnu.org>
21964
21965 * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
21966 configured for long double 128.
21967
21968 2007-01-18 Mike Stump <mrs@apple.com>
21969
21970 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
21971 error.
21972
21973 2007-01-18 Michael Meissner <michael.meissner@amd.com>
21974
21975 * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
21976 type correct.
21977
21978 2007-01-18 Jan Hubicka <jh@suse.cz>
21979
21980 * tree-ssa-operands.c (vop_free_bucket_size): Never return value
21981 greater than NUM_VOP_FREE_BUCKETS.
21982
21983 2007-01-18 Daniel Berlin <dberlin@dberlin.org>
21984
21985 * tree-ssa-structalias.c: Update comments.
21986 (ptabitmap_obstack): Removed.
21987 (pta_obstack): New.
21988 (oldpta_obstack): Ditto.
21989 (stats): Add a few members.
21990 (struct variable_info): Remove node, complex, address_taken, and
21991 indirect_target members. Add oldsolution member.
21992 (new_var_info): Do not initialize removed members.
21993 (constraint_expr_type): Remove INCLUDES.
21994 (constraint_graph): Add size, implicit_preds, rep,
21995 indirect_cycles, eq_rep, label, direct_nodes, and complex members.
21996 (FIRST_REF_NODE): New macro.
21997 (LAST_REF_NODE): Ditto.
21998 (FIRST_ADDR_NODE): Ditto.
21999 (find): New function.
22000 (unite): Ditto.
22001 (dump_constraint): Do not handle INCLUDES.
22002 (insert_into_complex): Do not insert duplicate constraints.
22003 (condense_varmap_nodes): Renamed and rewritten into ...
22004 (merge_node_constraints): This. Also fix bug in handling of
22005 offseted copy constraints.
22006 (clear_edges_for_node): No longer need to deal with preds at all,
22007 or removing associated preds/succs.
22008 (merge_graph_nodes): Deal with indirect_cycles.
22009 Don't deal with predecessors.
22010 (add_implicit_graph_edge): New function.
22011 (add_pred_graph_edge): Ditto.
22012 (add_graph_edge): Don't deal with predecessors.
22013 (build_constraint_graph): Removed.
22014 (build_pred_graph): New function.
22015 (build_succ_graph): Ditto.
22016 (struct scc_info): Removed in_component. Added roots, dfs, and
22017 node_mapping. Remove visited_index, unification_queue.
22018 (scc_visit): Deal with union-find we do now.
22019 Deal with cycles with REF nodes.
22020 (collapse_nodes): Renamed and rewritten to ...
22021 (unify_nodes): This.
22022 (process_unification_queue): Removed.
22023 (topo_visit): Cleanup
22024 (do_da_constraint): Use find.
22025 (do_sd_constraint): Ditto.
22026 (do_ds_constraint): Ditto.
22027 (do_complex_constraint): Ditto.
22028 (init_scc_info): Update for removed and added members.
22029 (find_and_collapse_graph_cycles): Renamed and rewritten into ...
22030 (find_indirect_cycles): This.
22031 (equivalence_class): New variable.
22032 (label_visit): New function.
22033 (perform_variable_substitution): Rewritten.
22034 (free_var_substitution_info): New function.
22035 (find_equivalent_node): Ditto.
22036 (move_complex_constraints): Ditto.
22037 (eliminate_indirect_cycles): Ditto.
22038 (solve_graph): Only propagate changed bits.
22039 Use indirect cycle elimination.
22040 Use find.
22041 (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
22042 (tree_id_eq): Renamed to ...
22043 (tree_vi_eq): This. Update for member change
22044 (insert_id_for_tree): Renamed and rewritten to ...
22045 (insert_vi_for_tree): This.
22046 (lookup_id_for_tree): Renamed and rewritten to ...
22047 (lookup_vi_for_tree): This.
22048 (get_id_for_tree): Renamed and rewritten to ...
22049 (get_vi_for_tree): Ditto.
22050 (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
22051 (process_constraint): Don't handle INCLUDES.
22052 Remove special ADDRESSOF case.
22053 (find_func_aliases): Rewrite to use vi functions instead of id
22054 ones.
22055 (create_function_info_for): Ditto.
22056 (create_variable_info_for): Ditto.
22057 (intra_create_variable_infos): Ditto.
22058 (merge_smts_into): Ditto.
22059 (find_what_p_points_to): Ditto.
22060 (init_base_vars): Ditto.
22061 (init_alias_vars): Ditto.
22062 (remove_preds_and_fake_succs): New function.
22063 (dump_sa_points_to_info): Dump new stats.
22064 (dump_solution_for_var): Use find.
22065 (set_used_smts): Fix formatting.
22066 (compute_points_to_sets): Updated for new functions.
22067 (ipa_pta_execute): Ditto.
22068
22069 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
22070 Richard Sandiford <richard@codesourcery.com>
22071
22072 * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
22073 parallels.
22074 * calls.c (expand_call): If the return value is a PARALLEL,
22075 extract its first member.
22076 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
22077 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
22078 use FUNCTION_EXTRA_EPILOGUE.
22079 (m68k_function_value): Return a PARALLEL if the return value
22080 is of a pointer type.
22081 * config/m68k/netbsd-elf.h (current_function_returns_pointer)
22082 (FUNCTION_EXTRA_EPILOGUE): Remove.
22083 * config/m68k/m68k.md (D0_REG): New constant.
22084
22085 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
22086
22087 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
22088 output a NOP for empty epilogues.
22089
22090 2007-01-18 Richard Sandiford <richard@codesourcery.com>
22091
22092 * config/m68k/m68k.c (m68k_use_return_insn): Update comments
22093 before function. Extend register save check to include all
22094 registers, not just integer ones.
22095
22096 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
22097
22098 * config/m68k/m68k-protos.h (use_return_insn): Rename to...
22099 (m68k_use_return_insn): ...this.
22100 * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
22101 * config/m68k/m68k.c (use_return_insn): Rename to...
22102 (m68k_use_return_insn): ...this.
22103 * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
22104 of USE_RETURN_INSN.
22105
22106 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
22107
22108 * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
22109 nearest even, fix denormal rounding overflow.
22110
22111 2007-01-18 Richard Sandiford <richard@codesourcery.com>
22112
22113 * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
22114 f%$smove and f%$move.
22115 (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
22116 (extendsfdf2_cf): Use fdmove instead of f%&move.
22117 (truncdfsf2_cf): Use fsmove instead of f%$smove.
22118 (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
22119
22120 2007-01-18 Richard Sandiford <richard@codesourcery.com>
22121
22122 * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
22123 GPR<-GPR moves.
22124
22125 2007-01-18 Richard Sandiford <richard@codesourcery.com>
22126
22127 * real.h (real_format): Add a canonical_nan_lsbs_set field.
22128 (coldfire_single_format): Declare.
22129 (coldfire_double_format): Likewise.
22130 * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
22131 of qnan_msb_set to determine the lower bits of a canonical
22132 NaN significand.
22133 (encode_ieee_double): Likewise.
22134 (encode_ieee_quad): Likewise.
22135 (ieee_single_format): Initialize canonical_nan_lsbs_set.
22136 (mips_single_format): Likewise.
22137 (ieee_double_format): Likewise.
22138 (mips_double_format): Likewise.
22139 (ieee_extended_motorola_format): Likewise.
22140 (ieee_extended_intel_96_format): Likewise.
22141 (ieee_extended_intel_128_format): Likewise.
22142 (ieee_extended_intel_96_round_53_format): Likewise.
22143 (ibm_extended_format): Likewise.
22144 (mips_extended_format): Likewise.
22145 (ieee_quad_format): Likewise.
22146 (mips_quad_format): Likewise.
22147 (vax_f_format): Likewise.
22148 (vax_d_format): Likewise.
22149 (vax_g_format): Likewise.
22150 (i370_single_format): Likewise.
22151 (i370_double_format): Likewise.
22152 (decimal_single_format): Likewise.
22153 (decimal_double_format): Likewise.
22154 (decimal_quad_format): Likewise.
22155 (c4x_single_format): Likewise.
22156 (c4x_extended_format): Likewise.
22157 (real_internal_format): Likewise.
22158 (coldfire_single_format): New real_format.
22159 (coldfire_double_format): Likewise.
22160 * config/pdp11/pdp11.c (pdp11_f_format): Initialize
22161 canonical_nan_lsbs_set.
22162 (pdp11_d_format): Likewise.
22163 * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
22164 if TARGET_COLDFIRE_CPU.
22165
22166 2007-01-18 Richard Sandiford <richard@codesourcery.com>
22167
22168 * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
22169 (output_call, m68k_legitimize_call_address): Declare.
22170 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
22171 parenthesees. Add support for a 'W' constraint.
22172 (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
22173 (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
22174 (m68k_symbolic_call, m68k_symbolic_jump): Declare.
22175 * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
22176 variables.
22177 (override_options): Initialize them. Do not set flag_no_function_cse
22178 for TARGET_ID_SHARED_LIBRARY.
22179 (m68k_output_pic_call): Delete.
22180 (m68k_legitimize_call_address): New function.
22181 (print_operand): Remove the %o prefix. Handle the %p prefix.
22182 (output_call): New function.
22183 (m68k_output_mi_thunk): Use m68k_symbolic_jump. Always load the
22184 target address from the GOT if symbolic jumps are not allowed.
22185 * config/m68k/m68k.md (call, general_operand): Do not set
22186 SYMBOL_REF_FLAG. Use m68k_legitimize_call_address instead.
22187 Merge separate flag_pic and !flag_pic define_insns into...
22188 (*call, *call_value): ...these new patterns. Match the address
22189 rather than the containing MEM and require it to be a call_operand.
22190 Use output_call to generate the asm template.
22191 * config/m68k/predicates.md (const_call_operand): New predicate.
22192 (call_operand): Likewise.
22193
22194 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
22195
22196 * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
22197 (STACK_GROWS_DOWNWARD): Define to 1.
22198 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
22199 comments, emphasizing that these values are only defaults.
22200 * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
22201 * config/m68k/m68k.c (const_method): Remove trailing whitespace.
22202
22203 2007-01-18 Richard Sandiford <richard@codesourcery.com>
22204
22205 * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
22206
22207 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
22208 Richard Sandiford <richard@codesourcery.com>
22209
22210 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
22211 (FP_REGNO_P): New macros.
22212 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
22213 (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
22214 (EH_RETURN_STACKADJ_RTX): Use A0_REG.
22215 * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
22216
22217 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
22218
22219 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
22220 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
22221 to $tmake_file.
22222 * config/m68k/t-floatlib: New file, extracting common code from...
22223 * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
22224 * config/m68k/t-uclinux: Here.
22225 * config/m68k/fpgnulib.c: Do not compile extendeed precision
22226 routines on ColdFire targets.
22227
22228 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
22229
22230 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
22231 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
22232 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
22233 (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
22234 explicitly set MOTOROLA to 1.
22235 * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
22236
22237 2007-01-18 Richard Sandiford <richard@codesourcery.com>
22238 Nathan Sidwell <nathan@codesourcery.com>
22239
22240 * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
22241 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
22242 * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
22243 * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
22244 * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
22245 * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
22246 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
22247 (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
22248 (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
22249 * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
22250 * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
22251 (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
22252 (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
22253 (DBX_REGISTER_NUMBER): Delete.
22254 * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
22255 (PCC_STATIC_STRUCT_RETURN): Don't undefine.
22256 * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
22257
22258 2007-01-18 Richard Sandiford <richard@codesourcery.com>
22259
22260 * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
22261 * config/flat.h: New file.
22262 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
22263 OBJECT_FORMAT_FLAT.
22264 * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
22265 indirect references for -msep-data or -mid-shared-library.
22266 Do not use PC-relative code addresses either.
22267 * config/m68k/m68k.c (override_options): Restrict -fPIC error
22268 to -mpcrel.
22269 * config/m68k/uclinux.h (STARTFILE_SPEC): Define. Use Scrt1.o
22270 for shared libraries and crt1.o for executables. Use crti.o and
22271 crtbegin.o.
22272 (ENDFILE_SPEC): Use crtend.o and crtn.o.
22273 (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
22274 Do not add -elf2flt or -shared-lib-id options here.
22275 (LINK_SPEC): Define. Pass -elf2flt if no -elf2flt option is given.
22276 Pass -shared-lib-id if -mid-shared-library, taking the library
22277 identifier from -mshared-library-id if given, otherwise
22278 defaulting to 0.
22279 (EH_FRAME_IN_DATA_SECTION): Do not undefine.
22280 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
22281 (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
22282 and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
22283 (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
22284 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
22285 and crtend.o.
22286 * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
22287 jump sequence for ISA A and ISA A+.
22288 (PICJUMP): Likewise.
22289
22290 2007-01-18 Richard Sandiford <richard@codesourcery.com>
22291
22292 * config.gcc (m68k-*-uclinux*): Base the port on the common
22293 and m68k GNU/Linux files rather than on the generic ELF ones.
22294 * config/m68k/uclinux.h (TARGET_VERSION): Override.
22295 (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
22296
22297 2007-01-18 Julian Brown <julian@codesourcery.com>
22298 Richard Sandiford <richard@codesourcery.com>
22299
22300 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
22301 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
22302 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
22303 before redefining.
22304 * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
22305 80 unconditionally.
22306 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
22307
22308 2007-01-18 Richard Sandiford <richard@codesourcery.com>
22309
22310 * doc/install.texi: Document m68k-uclinuxoldabi.
22311 * config.gcc (m68k-*-uclinuxoldabi): New configuration.
22312 * config/m68k/uclinux-oldabi.h: New file, copied from
22313 config/m68k/uclinux.h.
22314
22315 2007-01-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
22316
22317 * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
22318 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
22319 (m32r_compute_frame_size): Use unsigned for regno.
22320 (m32r_reload_lr): Use gen_frame_mem.
22321 (pop): New.
22322 (m32r_output_function_epilogue): Don't output the function epilogue
22323 textually here.
22324 (m32r_expand_epilogue): New.
22325 (direct_return): Return false if the function has the interrupt
22326 attribute.
22327 (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
22328 * config/m32r/m32r.md (epilogue): New expander.
22329 (return_lr, return_rte): New insns.
22330 (return): Make it expander.
22331 (return_normal): New expander.
22332
22333 2007-01-18 Josh Conner <jconner@apple.com>
22334
22335 PR target/30485
22336 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
22337 support for UNLE, UNLT, UNGE, and UNGT.
22338
22339 2007-01-18 Jan Hubicka <jh@suse.cz>
22340
22341 * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
22342 * tree-tailcall (add_virtual_phis): Likewise.
22343 (optimize_tail_call): Return TODOs.
22344 (execute_tail_calls): Return TODOs.
22345 * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
22346 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
22347 changed.
22348 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
22349 Cleanup cfg using TODO.
22350 * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
22351 * passes.c (execute_function_todo): When cleanup did something, remove
22352 unused locals.
22353 * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
22354 (make_edges): Don't cleanup_cfg.
22355
22356 2007-01-18 Uros Bizjak <ubizjak@gmail.com>
22357
22358 * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
22359 UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
22360 operate on the top of stack.
22361 [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
22362 register handling of instructions that output to the second
22363 stack slot.
22364 [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
22365 (move_for_stack_reg): Special-case check for dead destination
22366 stack slot for constant load of 1.0 inside UNSPEC_TAN.
22367
22368 * config/i386/i386.md (UNSPEC_TAN): New constant.
22369 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
22370 (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
22371 to correctly model move of constant 1.0 to top stack slot.
22372 (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
22373 (unnamed peephole2 pattern): Remove corresponding peephole2
22374 pattern that optimizes tan insn and loading of constant 1.0.
22375 (tanxf2): Use fptanxf4_i387.
22376 (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
22377 patterns using X87MODEF12 mode macro. Use fptan_extend<mode>xf4_i387
22378 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
22379 disable patterns for SSE math.
22380 (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
22381 (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
22382
22383 2007-01-18 Dirk Mueller <dmueller@suse.de>
22384 Richard Guenther <rguenther@suse.de>
22385
22386 PR diagnostic/8268
22387 * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
22388 * common.opt (Warray-bounds): Add new warning option.
22389 * c-opts.c (c_common_handle_option): Define -Warray-bounds
22390 if -Wall is given.
22391 * Makefile.in: make tree-vrp.o depend on toplev.h
22392 * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
22393 is enabled.
22394 (check_array_refs, check_array_bounds, check_array_ref): New.
22395
22396 2007-01-18 Jan Hubicka <jh@suse.cz>
22397
22398 * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
22399 (execute_ssa_ccp): Return flags conditionally.
22400 * tree-ssa-propagate.c (substitue_and_fold): Return if something was
22401 changed.
22402 * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
22403
22404 2007-01-18 Steven Bosscher <steven@gcc.gnu.org>
22405
22406 * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
22407 the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
22408
22409 * Makefile.c (GTFILES): Add cfglayout.h.
22410 * gengtype.c (open_base_files): Likewise.
22411 * cfglayout.c (cfg_layout_function_footer,
22412 cfg_layout_function_header) Reindent to make gengtype happy.
22413 * cfglayout.h (cfg_layout_function_footer,
22414 cfg_layout_function_header): Add GTY(()) marker.
22415
22416 * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
22417
22418 2007-01-18 Ben Elliston <bje@au.ibm.com>
22419
22420 * genautomata.c (write_automata): Include xstrerror output in the
22421 error message if writing the DFA description file fails.
22422
22423 2007-01-17 H.J. Lu <hongjiu.lu@intel.com>
22424
22425 * config/mips/mips-protos.h (mips_output_external): Make it
22426 return void.
22427 * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
22428 * config/mips/mips.c (irix_output_external_libcall): Likewise.
22429 (extern_list): Likewise.
22430 (extern_head): Likewise.
22431 (TARGET_ASM_FILE_END): Likewise.
22432 (mips_file_end): Likewise.
22433 (mips_output_external): Rewritten.
22434
22435 2007-01-18 Ben Elliston <bje@au.ibm.com>
22436
22437 * genpreds.c (write_insn_preds_c): Only write out the function
22438 body for regclass_for_constraint if we have register constraints.
22439
22440 2007-01-17 Tom Tromey <tromey@redhat.com>
22441
22442 * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
22443 * doc/install.texi (Testing): Use sourceware.org.
22444 (Binaries): Likewise.
22445 (Specific): Likewise.
22446 * doc/contrib.texi (Contributors): Use sourceware.org.
22447
22448 2007-01-17 Anatoly Sokolov <aesok@post.ru>
22449
22450 * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
22451 (AVR_ENHANCED): Rename to ...
22452 (AVR_HAVE_MUL): ... new.
22453 (avr_enhanced_p): Rename to ...
22454 (avr_have_mul_p): ... new.
22455 (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
22456 'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
22457 * config/avr/avr.c (avr_enhanced_p): Rename to ...
22458 (avr_have_mul_p): ... new.
22459 (base_arch_s): Rename 'enhanced' to 'have_mul'.
22460 (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
22461 'avr_enhanced_p' and 'enhanced'.
22462 (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
22463 AVR_HAVE_MUL instead of AVR_ENHANCED.
22464 * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
22465 (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
22466 *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
22467 instead of AVR_ENHANCED.
22468 (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
22469 * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
22470 (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
22471
22472 2007-01-17 Ian Lance Taylor <iant@google.com>
22473
22474 * vec.h (VEC_reserve_exact): Define.
22475 (vec_gc_p_reserve_exact): Declare.
22476 (vec_gc_o_reserve_exact): Declare.
22477 (vec_heap_p_reserve_exact): Declare.
22478 (vec_heap_o_reserve_exact): Declare.
22479 (VEC_OP (T,A,reserve_exact)): New static inline function, three
22480 versions.
22481 (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
22482 negative parameter.
22483 (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
22484 (VEC_OP (T,A,copy)) [all versions]: Likewise.
22485 (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
22486 * vec.c (calculate_allocation): Add exact parameter. Change all
22487 callers.
22488 (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
22489 (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
22490 (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
22491 (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
22492 (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
22493 (vec_heap_p_reserve_exact): New function.
22494 (vec_heap_o_reserve_exact): New function.
22495
22496 2007-01-17 Jan Hubicka <jh@suse.cz>
22497
22498 * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
22499
22500 2007-01-17 Eric Christopher <echristo@apple.com>
22501
22502 * config.gcc: Support core2 processor.
22503
22504 2007-01-16 Jan Hubicka <jh@suse.cz>
22505
22506 * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
22507 the names, just unlink the chain so we don't crash on dangling
22508 pointers
22509 to dead SSA names.
22510
22511 2007-01-16 Jan Hubicka <jh@suse.cz>
22512
22513 * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
22514 * tree-pass.h: Reorder to make IPA passes appear toegher.
22515 (pass_early_inline, pass_inline_parameters, pass_apply_inline):
22516 Declare.
22517 * cgraphunit.c (cgraph_finalize_function): Do not compute inling
22518 parameters, do not call early inliner.
22519 * ipa-inline.c: Update comments. Include tree-flow.h
22520 (cgraph_decide_inlining): Do not compute inlining parameters.
22521 (cgraph_decide_inlining_incrementally): Return TODOs; assume to
22522 be called with function context set up.
22523 (pass_ipa_inline): Remove unreachable functions before pass.
22524 (cgraph_early_inlining): Simplify assuming to be called from the
22525 PM as local pass.
22526 (pass_early_inline): New pass.
22527 (cgraph_gate_ipa_early_inlining): New gate.
22528 (pass_ipa_early_inline): Turn into simple wrapper.
22529 (compute_inline_parameters): New function.
22530 (gate_inline_passes): New gate.
22531 (pass_inline_parameters): New pass.
22532 (apply_inline): Move here from tree-optimize.c
22533 (pass_apply_inline): New pass.
22534 * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
22535 transforming.
22536 * tree-inline.c (optimize_inline_calls): Return TODOs rather than
22537 doing them by hand.
22538 (tree_function_versioning): Do not allocate dummy struct function.
22539 * tree-inline.h (optimize_inline_calls): Update prototype.
22540 * tree-optimize.c (execute_fixup_cfg): Export.
22541 (pass_fixup_cfg): Remove
22542 (tree_rest_of_compilation): Do not apply inlines.
22543 * tree-flow.h (execute_fixup_cfg): Declare.
22544 * Makefile.in (gt-passes.c): New.
22545 * passes.c: Include gt-passes.h
22546 (init_optimization_passes): New passes.
22547 (nnodes, order): New static vars.
22548 (do_per_function_toporder): New function.
22549 (execute_one_pass): Dump current pass here.
22550 (execute_ipa_pass_list): Don't dump current pass here.
22551
22552 2007-01-16 Janis Johnson <janis187@us.ibm.com>
22553
22554 * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
22555 (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
22556
22557 2007-01-16 David Edelsohn <edelsohn@gnu.org>
22558
22559 * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
22560 (strong_alias): Define.
22561 (__gcc_qmul): Provide non-FMA for soft-float.
22562 (__gcc_qdiv): Same.
22563 (__gcc_qneg): New.
22564 (__gcc_qeq): New.
22565 (__gcc_qle): New.
22566 (__gcc_qge): New.
22567 (__gcc_qunord): New.
22568 (__gcc_stoq): New.
22569 (__gcc_dtoq): New.
22570 (__gcc_qtos): New.
22571 (__gcc_qtod): New.
22572 (__gcc_qtoi): New.
22573 (__gcc_qtou): New.
22574 (__gcc_itoq): New.
22575 (__gcc_utoq): New.
22576 (fmsub): New.
22577 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
22578 soft-float functions.
22579 * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
22580 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
22581 about long double soft float.
22582
22583 2007-01-16 Dorit Nuzman <dorit@il.ibm.com>
22584 Tehila Meyzels <tehila@il.ibm.com>
22585
22586 * tree-vectorizer.h (is_pattern_stmt_p): New.
22587 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
22588 formatting (tabs instead of spaces). Cleanup and clarify setting
22589 of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
22590 * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
22591 (vectorizable_type_demotion): Check that types are integral.
22592 (vectorizable_type_promotion): Likewise.
22593 (vectorizable_store): Fix typo. Eliminate new-line at end of
22594 comments.
22595
22596 2007-01-16 Jan Hubicka <jh@suse.cz>
22597
22598 * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
22599 cgraph edges too.
22600
22601 2007-01-15 Eric Christopher <echristo@apple.com>
22602
22603 * ifcvt.c: Include vec.h, vecprim.h.
22604 (check_cond_move_block): New argument regs.
22605 Reorganize. Add registers used to regs.
22606 (cond_move_process_if_block): Use regs set above as
22607 loop bounds.
22608
22609 2007-01-15 Eric Christopher <echristo@apple.com>
22610
22611 * config/darwin.h: Update copyright.
22612 (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
22613 (LINK_COMMAND_SPEC): Add -u.
22614 (LINK_SPEC): Fix umbrella for above.
22615
22616 2007-01-15 Joseph S. Myers <joseph@codesourcery.com>
22617
22618 * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
22619 glibc CVS.
22620
22621 2007-01-15 Tom Tromey <tromey@redhat.com>
22622
22623 * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
22624 * doc/install.texi (Testing): Don't mention jacks.
22625 (Configuration): Document --enable-java-maintainer-mode. Move
22626 --with-java-home to libgcj-specific section. Document
22627 --with-ecj-jar.
22628 (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
22629
22630 2007-01-15 Jan Hubicka <jh@suse.cz>
22631
22632 * tree-ssa-dce.c (DCE_TODOs): New.
22633 (propagate_necessity): Return if something changed.
22634 (eliminate_unnecessary_stmts): Likewise.
22635 (perform_tree_ssa_dce): Return TODO flags when needed.
22636 (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
22637
22638 2007-01-15 Uros Bizjak <ubizjak@gmail.com>
22639
22640 * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
22641 (fyl2x_extend<mode>xf3_i387): New insn pattern.
22642 (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
22643 patterns using X87MODEF12 mode macro. Extend operand 1
22644 to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
22645 (log10<mode>2): Ditto.
22646 (log2<mode>2): Ditto.
22647 (log1p<mode>2): Ditto.
22648 (logb<mode>2): Ditto.
22649 (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
22650 (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
22651 (*fxtractxf3_i387): Rename from *fxtractxf3.
22652 (fxtract_extend<mode>xf3_i387): New insn pattern.
22653 (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
22654 * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
22655 and gen_fyl2xxf3_i387().
22656
22657 2007-01-14 Zdenek Dvorak <dvorakz@suse.cz>
22658
22659 * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
22660 * cfgloopmanip.c (fix_loop_placement): Made static. Use
22661 get_loop_exit_edges. Changed return type to bool.
22662 * cfgloop.h (fix_loop_placement): Declaration removed.
22663
22664 2007-01-14 Dorit Nuzman <dorit@il.ibm.com>
22665
22666 * param.h (MIN_VECT_LOOP_BOUND): New.
22667 * params.def (MIN_VECT_LOOP_BOUND): New.
22668 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
22669 argument - minimum threshold for number of iterations.
22670 * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
22671 argument to declaration.
22672 * tree-vect-analyze.c (vect_analyze_operations): Check value of
22673 MIN_VECT_LOOP_BOUND.
22674 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
22675 slpeel_tree_peel_loop_to_edge with additional argument.
22676 (vect_do_peeling_for_alignment): Likewise.
22677 * doc/invoke.texi (min-vect-loop-bound): Document new param option.
22678
22679 2007-01-14 Uros Bizjak <ubizjak@gmail.com>
22680
22681 PR target/30413
22682 * config/i386/i386.c (print_operand) ['z']: Output 'b' for
22683 operands of size 1.
22684
22685 2007-01-14 Jan Hubicka <jh@suse.cz>
22686
22687 * tree-dfa.c (remove_referenced_var): New function.
22688 * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
22689 prune referenced vars list too.
22690 * tree-flow.h (remove_referenced_var): Declare.
22691
22692 2007-01-14 Jan Hubicka <jh@suse.cz>
22693
22694 * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
22695 separately.
22696 (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
22697 (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
22698 * except.h (verify_eh_throw_table_statements): Kill prototype.
22699 * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
22700 into call exrepssions.
22701 * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
22702 eh trhow verifier.
22703 * tree-cfg.c: Include pointer-set.h.
22704 (verify_node_sharing): Work on pointer set.
22705 (verify_eh_throw_stmt_node): New.
22706 (verify_stmts): Use pointers sets, verify throw_stmt.
22707
22708 2007-01-13 Zdenek Dvorak <dvorakz@suse.cz>
22709
22710 * ipa-reference.c (analyze_function): Consider also addresses taken
22711 in phi nodes.
22712
22713 2007-01-12 Roger Sayle <roger@eyesopen.com>
22714
22715 * c-typeck.c (null_pointer_constant_p): Replace use of
22716 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
22717 (build_c_cast): Likewise.
22718
22719 2007-01-12 Roger Sayle <roger@eyesopen.com>
22720
22721 * tree.h (force_fit_type_double): Remove unused final argument.
22722 * c-common.c (constant_expression_warning): Replace use of
22723 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
22724 (convert_and_check): Likewise.
22725 (shorten_compare): Update call to force_fit_type_double.
22726 (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
22727 * convert.c (convert_to_pointer): Update call to
22728 force_fit_type_double.
22729 * fold-const.c (force_fit_type_double): Remove overflowed_const
22730 argument.
22731 (int_const_binop, fold_convert_const_int_from_int,
22732 fold_convert_const_int_from_real, fold_div_compare,
22733 fold_sign_changed_comparison, fold_unary, fold_negate_const,
22734 fold_abs_const, fold_not_const): Remove the final argument from
22735 calls to force_fit_type_double.
22736
22737 2007-01-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
22738
22739 * configure.ac: Set insn to "nop" for spu-*-* also.
22740 * configure: Regenerate.
22741
22742 2007-01-12 Olga Golovanevsky <olga@il.ibm.com>
22743
22744 * builtins.def : Add BUILT_IN_FREE.
22745
22746 2007-01-12 Jan Hubicka <jh@suse.cz>
22747
22748 PR tree-optimization/30443
22749 * tree-inline.c (tree_function_versioning): Do not optimize when
22750 cloning for inlining.
22751
22752 2007-01-12 Zdenek Dvorak <dvorakz@suse.cz>
22753
22754 * doc/loop.texi: Document recording of loop exits.
22755 * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
22756 (update_single_exits_after_duplication,
22757 update_single_exit_for_duplicated_loop,
22758 update_single_exit_for_duplicated_loops): Removed.
22759 (duplicate_loop_to_header_edge): Do not call
22760 update_single_exits_after_duplication and
22761 update_single_exit_for_duplicated_loops.
22762 (loop_version): Do not update single_exit information.
22763 (fix_loop_structure): Use record_loop_exits instead of
22764 mark_single_exit_loops.
22765 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
22766 the lists of loop exits.
22767 * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
22768 split_edge, merge_blocks): Update the lists of loop exits.
22769 * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
22770 loop_optimizer_init.
22771 * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
22772 of mark_single_exit_loops.
22773 (loop_optimizer_finalize): Call release_recorded_exits.
22774 * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
22775 LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
22776 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
22777 update single exit information.
22778 * lambda-code.c (perfect_nestify): Ditto.
22779 * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
22780 (mark_single_exit_loops): Removed.
22781 (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
22782 get_exit_descriptions, rescan_loop_exit, record_loop_exits,
22783 dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
22784 functions.
22785 (get_loop_exit_edges, single_exit): Use recorded exit lists.
22786 (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
22787 (verify_loop_structure): Verify consistency of the exit lists.
22788 (flow_loops_find): Use alloc_loop. Initialize exits hash.
22789 (set_single_exit): Removed.
22790 * cfgloop.h (struct loop_exit): New function.
22791 (struct loop): single_exit_ field replaced by exits field.
22792 (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by
22793 LOOPS_HAVE_RECORDED_EXITS.
22794 (struct loops): Added exits hash.
22795 (mark_single_exit_loops, set_single_exit): Declaration removed.
22796 (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
22797
22798 2007-01-12 Richard Sandiford <richard@codesourcery.com>
22799
22800 * doc/invoke.texi: Avoid use of @headitem.
22801
22802 2007-01-12 Richard Sandiford <richard@codesourcery.com>
22803
22804 * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
22805
22806 2007-01-12 Richard Sandiford <richard@codesourcery.com>
22807
22808 * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
22809 list of targets.
22810
22811 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
22812 Richard Sandiford <richard@codesourcery.com>
22813
22814 * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
22815 * config/m68k/m68k.opt: Resort options.
22816 (mbitfield, mrtd, mshort): Remove RejectNegative properties.
22817
22818 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
22819 Richard Sandiford <richard@codesourcery.com>
22820
22821 * doc/invoke.texi: Document the macros that are defined by
22822 m68k's -mtune and -mhard-float options.
22823 * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
22824 (m68k_cpp_cpu_family): Likewise.
22825 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
22826 of __ucfv*__ macros. Define __mcffpu__ if generating code for
22827 ColdFire FPUs. Define __mcf_cpu_* and __mcf_family_* macros.
22828 * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
22829 (m68k_cpp_cpu_family): Likewise.
22830
22831 2007-01-12 Richard Sandiford <richard@codesourcery.com>
22832
22833 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
22834 macros besides mc68000 as tuning macros. Use a switch statement
22835 to set them and mcpu32.
22836
22837 2007-01-12 Julian Brown <julian@codesourcery.com>
22838
22839 * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
22840 (TARGET_68040_ONLY): Rename to...
22841 (TARGET_68040): ...this.
22842 * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
22843 * config/m68k/m68k.md: Likewise.
22844
22845 2007-01-12 Julian Brown <julian@codesourcery.com>
22846 Nathan Sidwell <nathan@codesourcery.com>
22847 Richard Sandiford <richard@codesourcery.com>
22848
22849 * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
22850 the -mcpu= argument associated with the --with-cpu setting.
22851 Define M68K_DEFAULT_TUNE to the default -mtune= option,
22852 if different from the one implied by the -mcpu setting.
22853 Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
22854 using mcpu=FOO as the default CPU option. Set target_cpu_default2.
22855 * doc/invoke.texi: Mention ColdFire in the introduction to the
22856 m68k options. Document the new -march, -mcpu, -mtune, -mdiv,
22857 -mno-div and -mhard-float options. Make -m68881 a synonym for
22858 -mhard-float. Document the previously-undocumented -m5206e,
22859 -m528x, -m5307 and -m5407 options. Tweak the existing option
22860 documentation for consistency.
22861 * doc/install.texi: Mention new --with-cpu arguments.
22862 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
22863 default CPU if neither -mcpu nor -march are specified.
22864 (ASM_CPU_SPEC): Pass down -mcpu and -march options.
22865 (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
22866 TARGET_ISA*. Set the legacy __mcf*__ cpu macros in the same way,
22867 using m68k_tune to decide between families that implement the
22868 same ISA. Use m68k_tune to set __mcfv4e__.
22869 (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
22870 (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
22871 (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
22872 (FL_ISA_C, FL_ISA_MMU): New macros.
22873 (MASK_COLDFIRE): Delete.
22874 (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
22875 (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
22876 (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
22877 (TARGET_HARD_FLOAT): Do not define here.
22878 (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
22879 (TUNE_68000): New macro.
22880 (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
22881 (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
22882 (TUNE_CFV2): Redefine in terms of m68k_tune.
22883 (uarch_type, target_device, fpu_type): New enums.
22884 (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
22885 * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
22886 (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
22887 (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
22888 (FL_FOR_isa_c): New macros.
22889 (m68k_isa): New enum.
22890 (m68k_target_selection): New structure.
22891 (all_devices, all_isas, all_microarchs): New tables.
22892 (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
22893 (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
22894 (MASK_ALL_CPU_BITS): Delete.
22895 (m68k_find_selection): New function.
22896 (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
22897 Map the legacy target options to a combination of the new ones.
22898 (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
22899 m68k_cpu_flags. Handle M68K_DEFAULT_TUNE. Use m68k_cpu_flags
22900 to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
22901 settings.
22902 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
22903 (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
22904 properties.
22905 (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
22906 (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
22907 * config/m68k/m68k-devices.def: New file.
22908
22909 2007-01-12 Richard Sandiford <richard@codesourcery.com>
22910 Nathan Sidwell <nathan@codesourcery.com>
22911
22912 * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
22913 (SUBTARGET_EXTRA_SPECS): New macros.
22914 * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
22915 use %(asm_cpu_spec) instead.
22916 * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
22917 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
22918 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
22919 (EXTRA_SPECS): Rename to...
22920 (SUBTARGET_EXTRA_SPECS): ...this.
22921
22922 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
22923 Richard Sandiford <richard@codesourcery.com>
22924 Julian Brown <julian@codesourcery.com>
22925
22926 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
22927 (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
22928 to the configuration's default CPU.
22929 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
22930 Remove default masks.
22931 (m680[012]0-*-*): Set the default with_cpu to the first part of
22932 the target name.
22933 (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
22934 (m68k*-*-linux): Extend the --with-cpu handling to...
22935 (m680[012]0-*-*, m68k*-*-*): ...these configurations. Allow m68000
22936 and m68010. Don't set target_cpu_default2.
22937 * doc/install.texi: Document --with-cpu for m68k.
22938 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
22939 * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
22940 (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
22941 (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
22942 (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
22943 (ASM_SPEC): Remove use of %(asm_cpu_default).
22944 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
22945 * config/m68k/linux.h (TARGET_DEFAULT): Delete.
22946 (CPP_SPEC): Merge definitions. Do not handle __HAVE_68881__ here.
22947 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
22948 __HAVE_FPU__ if TARGET_HARD_FLOAT.
22949 (TARGET_DEFAULT): Delete.
22950 (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
22951 cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
22952 (CPP_CPU_SPEC): Delete.
22953 (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
22954 the appropriate string.
22955 (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
22956 (CPP_SPEC): Define to NETBSD_CPP_SPEC.
22957 (ASM_SPEC): Don't use %(asm_default_spec).
22958 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
22959 TARGET_DEFAULT and add MASK_68881.
22960 * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
22961
22962 2007-01-12 Richard Sandiford <richard@codesourcery.com>
22963
22964 * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
22965 (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
22966 MASK_68010 alongside MASK_68020.
22967 * doc/invoke.texi: Document -m68010.
22968 * config/m68k/m68k.opt (m68010): New.
22969 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
22970 if TUNE_68010.
22971 (TUNE_68010): New macro.
22972 * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
22973 (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
22974 (M68K_CPU_m68332): Add MASK_68010.
22975 * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
22976 fallback definition.
22977 * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
22978 defines.
22979 * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
22980 (m68k_handle_option): Handle OPT_m68010. Add MASK_68010
22981 to all entries that use MASK_68020.
22982 (output_move_simode_const, output_move_himode, output_move_qimode)
22983 (output_move_stricthi, output_move_strictqi): Use TARGET_68010
22984 instead of TARGET_68020 to select clr behavior. Remove comment
22985 about there being no TARGET_68010.
22986 * config/m68k/m68k.md: Likewise throughout.
22987
22988 2007-01-12 Julian Brown <julian@codesourcery.com>
22989
22990 * config/m68k/m68k.h (TARGET_ISAB): New macro.
22991 * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
22992 * config/m68k/m68k.md: Likewise.
22993
22994 2007-01-12 Julian Brown <julian@codesourcery.com>
22995
22996 * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
22997 TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
22998
22999 2007-01-12 Julian Brown <julian@codesourcery.com>
23000
23001 * config/m68k/m68k.h (TUNE_68040_60): New macro.
23002 * config/m68k/m68k.c (standard_68881_constant_p): Use it.
23003 * config/m68k/m68k.md: Likewise.
23004
23005 2007-01-12 Julian Brown <julian@codesourcery.com>
23006 Richard Sandiford <richard@codesourcery.com>
23007
23008 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
23009 instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
23010 TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
23011 TARGET_CPU32.
23012 (TARGET_CPU32): Rename to...
23013 (TUNE_CPU32): ...this.
23014 (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
23015 (TUNE_CFV2): New macros.
23016 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
23017 remove conditions that are implied by TARGET_68020.
23018 * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
23019 instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
23020 (m68k_output_function_epilogue): Likewise.
23021 (m68k_rtx_costs): Likewise. Use TUNE_68060 instead of TARGET_68060
23022 and TUNE_CFV2 instead of TARGET_5200. Use TUNE_68000_10 instead of
23023 "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
23024 non-68000 timings. Refactor multiplication and division costs.
23025 (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
23026 TUNE_CPU32 instead of TARGET_CPU32.
23027 (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
23028 and TUNE_68060 instead of TARGET_68060.
23029 * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
23030 TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
23031 TARGET_CPU32.
23032 (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
23033 && !TARGET_COLDFIRE" to choose between moveq and clr.
23034 Likewise in the unnamed movsf pattern.
23035 (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
23036 "!TARGET_68020 && !TARGET_COLDFIRE". Likewise the unnamed
23037 ashiftrt pattern.
23038
23039 2007-01-12 Richard Sandiford <richard@codesourcery.com>
23040
23041 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
23042 of tabbing before backslashes.
23043
23044 2007-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23045
23046 * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
23047 * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
23048 (ASM_OUTPUT_INTERNAL_LABEL): Define.
23049
23050 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
23051
23052 * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
23053 find_interesting_uses_cond.
23054 (find_interesting_uses_cond): Use extract_cond_operands.
23055 (rewrite_use_compare): Use extract_cond_operands and
23056 force_gimple_operand_bsi. Do not call update_stmt.
23057 (determine_use_iv_cost_condition): Use extract_cond_operands.
23058 Return cheaper of using original bound and changing the exit bound.
23059
23060 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
23061
23062 PR tree-optimization/29516
23063 * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
23064 most_expensive_mult_to_index, addr_to_parts,
23065 create_mem_ref, maybe_fold_tmr): Make the type of
23066 fields of TARGET_MEM_REF sizetype.
23067 (move_fixed_address_to_symbol, move_pointer_to_base):
23068 New functions.
23069 * tree.def (TARGET_MEM_REF): Add comment on types of
23070 the operands.
23071
23072 2007-01-11 Joseph Myers <joseph@codesourcery.com>
23073
23074 * c-common.c (vector_types_convertible_p): Treat opaque types as
23075 always convertible if they have the same size, but not otherwise.
23076
23077 2007-01-11 Steven Bosscher <steven@gcc.gnu.org>
23078
23079 * ifcvt.c (struct noce_if_info): Add comments to the fields.
23080 Remove the b_unconditional field.
23081 (noce_try_sign_mask): Do not look at b_unconditional.
23082 (noce_process_if_block): Do not use merge_if_blocks. Update
23083 the CFG here. Do not set b_unconditional.
23084 (cond_move_process_if_block): Likewise.
23085 (find_cond_trap): Likewise.
23086 (check_cond_move_block): Require simple jump insns at the end
23087 of the basic block.
23088
23089 2007-01-11 Jan Hubicka <jh@suse.cz>
23090
23091 PR tree-optimization/1046
23092 * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
23093 when alias info is not ready.
23094 (pass_tail_recursion): Do not require aliasing.
23095 * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
23096 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
23097 * tree-ssa-copy.c (pass_copy_prop): Likewise.
23098 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
23099 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
23100 * passes.c (init_optimization_passes): Execute rename_ssa_copies,
23101 ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
23102 before inlining.
23103 * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
23104 When aliasing is not build, mark statement as volatile.
23105
23106 2007-01-11 Tom Tromey <tromey@redhat.com>
23107
23108 PR preprocessor/15185, PR preprocessor/20989:
23109 * doc/cppopts.texi <-MT>: Update description of algorithm for
23110 computing default target.
23111 <-M, -MD>: Reword "basename" text.
23112
23113 2007-01-11 Roger Sayle <roger@eyesopen.com>
23114
23115 * builtins.c (expand_builtin_pow, expand_builtin_powi,
23116 fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
23117 fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
23118 fold_builtin_int_int_roundingfn, fold_builtin_bitop,
23119 fold_builtin_bswap, real_constp, fold_builtin_pow,
23120 fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
23121 do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
23122 uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
23123 * convert.c (convert_to_pointer): Likewise.
23124 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
23125 * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
23126 const_binop, fold_convert_const_int_from_int,
23127 fold_convert_const_int_from_real,
23128 fold_convert_const_real_from_real, sign_bit_p,
23129 optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
23130 fold_sign_changed_comparison, fold_unary, fold_comparison,
23131 fold_binary, multiple_of_p, tree_Expr_non_zero_p,
23132 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
23133 * print-tree.c (print_node_brief, print_node): Likewise.
23134 * stor-layout.c (place_field, layout_type): Likewise.
23135 * tree-chrec.c (keep_cast): Likewise.
23136 * tree.c (build_vector, build_real, build_real_from_int_cst,
23137 build_complex): Likewise.
23138
23139 2007-01-11 Roger Sayle <roger@eyesopen.com>
23140
23141 * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete. For the time being,
23142 treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
23143
23144 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
23145
23146 * configure.ac (strict1_warn): Rename to strict_warn.
23147 (WERROR, --enable-werror, symlink hacks, stage1_cflags,
23148 cc_set_by_configure, quoted_cc_set_by_configure,
23149 stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
23150 all_boot_languages, all_stagestuff): Remove.
23151 (target_list): Remove bootstrap targets.
23152 * Makefile.in (quickstrap): Unconditionally make a synonym of all.
23153 (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
23154 REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
23155 SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
23156 VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
23157 STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
23158 stage1_copy, stage2_build, stage2_copy, stageprofile_build,
23159 stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
23160 stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
23161 bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
23162 bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
23163 unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
23164 restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
23165 cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
23166 *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
23167 stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
23168 stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
23169 risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
23170 (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
23171 (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
23172 (mostlyclean): Adjust.
23173 (clean, distclean): Don't mention bootstrap stuff.
23174 * configure: Regenerate.
23175 * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
23176 java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
23177 treelang/config-lang.in (stagestuff): Remove.
23178 * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
23179 stageprofile, stagefeedback, stagestuff): Remove mention.
23180
23181 2007-01-11 Nick Clifton <nickc@redhat.com>
23182
23183 * config/mcore/predicates.md (mcore_general_movesrc_operand):
23184 Accept CONSTs.
23185 (mcore_general_movdst_operand): Do not accept CONST_INTs.
23186 (mcore_arith_K_S_operand): Run the test for the S constraint not
23187 the test for the M constraint.
23188 (mcore_addsub_operand): Do not accept integer values that are
23189 larger than 32 bits.
23190 * config/mcore/mcore.md: Remove unused constraints from split.
23191 (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
23192 (addsi3): Likewise.
23193 (allocate_stack): Likewise.
23194 * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
23195 operands to 32 bits.
23196 (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
23197 INTVAL.
23198 (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
23199 mcore_const_ok_for_inline, mcore_const_trick_uses_not,
23200 try_constant_tricks, mcore_num_ones, mcore_num_zeros,
23201 mcore_output_bclri, mcore_output_andn, output_inline_const,
23202 mcore_output_move, mcore_output_movedouble): Likewise.
23203 (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
23204 (output_inline_const): Likewise.
23205 (output_inline_const): Fix format strings used in sprintf
23206 statements.
23207 * config/mcore/mcore-protos.h: Update prototypes for changed
23208 functions in mcore.c.
23209 * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
23210 HOST_WIDE_INT and not int.
23211 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
23212 CONST_OK_FOR_N): Likewise.
23213 (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
23214 (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
23215 an INTVAL.
23216
23217 2007-01-10 Jan Hubicka <jh@suse.cz>
23218
23219 * tree-vrp.c (remove_range_assertions): Release defs.
23220 * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
23221 * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
23222
23223 2007-01-10 Paul Brook <paul@codesourcery.com>
23224
23225 * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
23226 * config/arm/arm.md (mulsi3subsi): New insn.
23227
23228 2007-01-10 Zdenek Dvorak <dvorakz@suse.cz>
23229
23230 * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
23231 (tree_transform_and_unroll_loop): New.
23232 * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
23233 Declare.
23234
23235 2007-01-10 Robert Kennedy <jimbob@google.com>
23236
23237 * fold-const.c (fold_comparison): Fold comparisons like (x *
23238 1000 < 0) to (x < 0).
23239
23240 2007-01-10 Ian Lance Taylor <iant@google.com>
23241
23242 * tree-pretty-print.c (dump_generic_node): Print parentheses when
23243 operands have the same priority.
23244
23245 2007-01-10 Tom Tromey <tromey@redhat.com>
23246
23247 * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
23248 (fold_binary): Likewise.
23249 * langhooks.c (lhd_can_use_bit_fields_p): Removed.
23250 * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
23251 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
23252 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
23253 * langhooks.h (struct lang_hooks): Removed field
23254 'can_use_bit_fields_p'.
23255
23256 2007-01-10 Ralf Corsépius <ralf.corsepius@rtems.org>
23257
23258 * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
23259
23260 2007-01-10 Razya Ladelsky <razya@il.ibm.com>
23261
23262 * function.c (get_last_funcdef_no): New function.
23263 * function.h (get_last_funcdef_no): Declare.
23264 * tree-inline.c (initialize_cfun): Add initialization.
23265 (tree_function_versioning): Cleanup.
23266
23267 2007-01-10 Jan Hubicka <jh@suse.cz>
23268
23269 * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
23270 PHIs.
23271
23272 2007-01-10 Sa Liu <saliu@de.ibm.com>
23273 Ben Elliston <bje@au.ibm.com>
23274
23275 * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
23276 for SAVE_NONLOCAL and Pmode for any other save level.
23277 * spu-protos.h (spu_restore_stack_block): Declare.
23278 * spu.md (save_stack_block): Remove.
23279 (restore_stack_block): Call spu_restore_stack_block.
23280 * spu.c (spu_restore_stack_block): New function.
23281 (spu_expand_epilogue): Remove old comment.
23282
23283 2007-01-09 Zdenek Dvorak <dvorakz@suse.cz>
23284
23285 PR tree-optimization/30322
23286 * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
23287 (cand_value_at): Return the value as aff_tree.
23288 (may_eliminate_iv): Convert the bound from aff_tree to tree.
23289 * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
23290 aff_combination_mult): New functions.
23291 (aff_combination_add): Use aff_combination_add_cst.
23292 (aff_combination_convert): Allow conversions to a wider type.
23293 (tree_to_aff_combination): Handle BIT_NOT_EXPR.
23294 * tree-affine.h (aff_combination_mult): Declare.
23295
23296 2007-01-09 Carlos O'Donell <carlos@codesourcery.com>
23297
23298 * doc/tm.texi: Update documentation to reflect reality of exec
23299 and start file search behaviours. Update copyright year.
23300 * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
23301 header file directories.
23302
23303 2007-01-09 Uros Bizjak <ubizjak@gmail.com>
23304
23305 * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
23306 (*cosxf2): Rename to cosxf2_i387.
23307 (*sindf2, *sinsf2): Extend operand 1 to XFmode. Macroize patterns
23308 using X87MODEF12 mode macro. Rename patterns to
23309 *sin_extend<mode>xf2_i387. Use SSE_FLOAT_MODE_P to disable patterns
23310 for SSE math.
23311 (*cosdf2, *cossf2): Ditto.
23312 (sincosdf3, sincossf3): Ditto. Rewrite corresponding splitters
23313 to match extended input operands.
23314 (sincos<mode>3): New expander.
23315 (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
23316 insn patterns and corresponding splitters.
23317
23318 2007-01-09 Kaz Kojima <kkojima@gcc.gnu.org>
23319
23320 * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
23321 (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
23322
23323 2007-01-09 Nicolas Pitre <nico@cam.org>
23324
23325 PR target/30173
23326 * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
23327
23328 2007-01-08 Geoffrey Keating <geoffk@apple.com>
23329
23330 * target.h (struct gcc_target): New field library_rtti_comdat.
23331 * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
23332 (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
23333 * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
23334 * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
23335
23336 2007-01-08 Geoffrey Keating <geoffk@apple.com>
23337
23338 * doc/invoke.texi (Optimize Options): Correct description of -O0.
23339
23340 2007-01-08 Richard Guenther <rguenther@suse.de>
23341
23342 * tree.h (force_fit_type_double): Export.
23343 (force_fit_type): Remove.
23344 * fold-const.c (force_fit_type_double): New function.
23345 (force_fit_type): Remove.
23346 (int_const_binop): Use it.
23347 (fold_convert_const_int_from_int): Likewise.
23348 (fold_convert_const_int_from_real): Likewise.
23349 (fold_div_compare): Likewise.
23350 (fold_sign_changed_comparison): Likewise.
23351 (fold_unary): Likewise.
23352 (fold_negate_const): Likewise.
23353 (fold_abs_const): Likewise.
23354 (fold_not_const): Likewise.
23355 * c-common.c (shorten_compare): Use force_fit_type_double.
23356 * convert.c (convert_to_pointer): Likewise.
23357
23358 2007-01-08 Richard Guenther <rguenther@suse.de>
23359
23360 * tree.h (build_int_cst_wide_type): Export.
23361 * tree.c (build_int_cst_wide_type): New function.
23362 (build_int_cst_wide): Fix comment.
23363 * builtins.c (fold_builtin_object_size): Use build_int_cst
23364 to build -1 or 0 of the correct type. Use fit_double_type
23365 to check for overflow.
23366 * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
23367 to build the mask.
23368 (decode_field_reference): Likewise.
23369 (all_ones_mask_p): Likewise.
23370 (native_interpret_int): Use build_int_cst_wide_type.
23371 (fold_binary): Use build_int_cst_type to build an all-ones
23372 value.
23373 * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
23374
23375 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
23376
23377 * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
23378
23379 2007-01-09 Ben Elliston <bje@au.ibm.com>
23380
23381 * genautomata.c (STATS_OPTION): New option.
23382 (stats_flag): New flag.
23383 (gen_automata_option): Handle it.
23384 (initiate_automaton_gen): Ditto.
23385 (write_automata): Output statistics only if stats_flag is
23386 set. Likewise, output time statistics only if time_flag is set.
23387 * doc/md.texi (Processor pipeline description): Document new flag.
23388
23389 2007-01-08 Richard Guenther <rguenther@suse.de>
23390
23391 * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
23392 * tree.c (build_int_cst_type): Likewise.
23393 (size_in_bytes): Don't call force_fit_type on the result.
23394 (int_fits_type_p): Use fit_double_type.
23395 * fold-const.c (fit_double_type): New function.
23396 (force_fit_type): Use it.
23397 * tree.h (fit_double_type): Export.
23398
23399 2007-01-08 Jan Hubicka <jh@suse.cz>
23400
23401 * tree-vectorizer.c (gate_increase_alignment): Fix return type.
23402 * ipa.c (function_and_variable_visibility): Fix return type.
23403
23404 2007-01-08 Richard Guenther <rguenther@suse.de>
23405
23406 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
23407 of offset to build the index.
23408 * tree-pretty-print.c (dump_generic_node): Don't build negated
23409 const just for printing.
23410 * c-pretty-print.c (pp_c_integer_constant): Likewise.
23411 * builtins.c (fold_builtin_int_roundingfn): Check if result
23412 fits the type by using force_fit_type and comparing the result.
23413 * predict.c (predict_loops): Use compare_tree_int for comparison.
23414 * tree.c (build_int_cst): Fall back to integer_type_node for
23415 NULL_TREE type.
23416 (build_int_cst_wide): Assert type is non-null.
23417
23418 2007-01-08 Roberto Costa <roberto.costa@st.com>
23419
23420 * tree-vrp.c (extract_range_from_cond_expr): New.
23421 (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
23422 * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
23423 as expressions.
23424 (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
23425 * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
23426 tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
23427 used as expressions.
23428 * tree-object-size.c (cond_expr_object_size): New.
23429 (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
23430
23431 2007-01-08 Jan Hubicka <jh@suse.cz>
23432
23433 * tree-ssa-forwprop.c (forward_propagate_into_cond,
23434 tree_ssa_forward_propagate_single_use_va): Release defs of propagated
23435 statement.
23436
23437 2007-01-08 Richard Guenther <rguenther@suse.de>
23438
23439 PR tree-optimization/23603
23440 * tree-vrp.c (set_value_range_to_truthvalue): New function.
23441 (extract_range_from_binary): Fall back to truthvalue instead of
23442 varying for TRUTH_*_EXPR.
23443 (extract_range_from_comparison): Fall back to truthvalue instead of
23444 varying.
23445 (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
23446 if all visited PHI values were constant.
23447
23448 2007-01-08 Jan Hubicka <jh@suse.cz>
23449
23450 * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
23451 (cgraph_analyze_function): break out from ...
23452 (cgraph_finalize_compilation_unit): ... here.
23453 (cgraph_expand_function): Remove forgoten commented out line.
23454 (cgraph_optimize): Analyze functions.
23455
23456 2007-01-08 Jan Hubicka <jh@suse.cz>
23457
23458 * tree-pas.h (TODO_remove_function): New flag.
23459 (TODO_update*): Renumber.
23460 (pass_ipa_increase_alignment,
23461 pass_ipa_function_and_variable_visibility): New passes.
23462 * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
23463 (cgraph_function_and_variable_visibility): Move to ipa.c
23464 (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
23465 cgraph_increase_alignment.
23466 * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
23467 (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
23468 calling tree-inline.
23469 (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
23470 (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
23471 * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
23472 (gate_increase_alignment): New function.
23473 (pass_ipa_increase_alignment): New pass.
23474 * ipa.c: Inline tree-pass.h and timevar.h
23475 (function_and_variable_visibility): Move here from cgraphunit.c
23476 * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
23477 * passes.c (init_optimization_passes): Add the two new passes.
23478 (execute_todo): Handle cgraph_remove_functions.
23479
23480 2007-01-08 Nick Clifton <nickc@redhat.com>
23481
23482 * config/frv/predicates.md (reg_or_0_operand): Accept
23483 CONST_DOUBLEs.
23484
23485 2007-01-08 Ralf Corsépius <ralf.corsepius@rtems.org>
23486
23487 * config/bfin/rtems.h, config/bfin/t-rtems: New.
23488 * config.gcc: Add bfin*-rtems*.
23489
23490 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
23491
23492 * c.opt: Add -flax-vector-conversions.
23493 * c-typeck.c (convert_for_assignment): Pass flag to
23494 vector_types_convertible_p to allow emission of note.
23495 (digest_init): Likewise.
23496 * c-opts.c: Handle -flax-vector-conversions.
23497 * c-common.c (flag_lax_vector_conversions): New.
23498 (vector_types_convertible_p): Unless -flax-vector conversions
23499 has been passed, disallow conversions between vectors with
23500 differing numbers of subparts and/or element types. If such
23501 a conversion is disallowed, possibly emit a note on the first
23502 occasion only to inform the user of -flax-vector-conversions.
23503 The new last argument specifies this.
23504 * c-common.h (flag_lax_vector_conversions): New.
23505 (vector_types_convertible_p): Add extra argument.
23506 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
23507 char_type_node for V*QI type vectors.
23508 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
23509 Update to satisfy new typechecking rules.
23510 * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
23511 C and C++ variants.
23512 * doc/invoke.texi (C Dialect Options): Document
23513 -flax-vector-conversions.
23514
23515 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
23516
23517 PR tree-optimization/29877
23518 * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
23519 a register variable on the RHS to not be replaceable.
23520
23521 2007-01-08 Chen Liqin <liqin@sunnorth.com.cn>
23522 * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
23523 * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
23524 const_simm15, const_pow2, const_npow2): Added.
23525 * config/score/misc.md (insv, extv, extzv, movmemsi,
23526 move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
23527 * config/score/score.c (score_address_cost, score_select_cc_mode):
23528 Added.
23529 Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
23530 Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
23531 Update score_print_operand.
23532 * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
23533 Adjust register allocate order and update some macro define.
23534 * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
23535 mdx_block_move_straight, mdx_block_move_loop_head,
23536 mdx_block_move_loop_body, mdx_block_move_loop_foot,
23537 mdx_block_move_loop, mdx_block_move): Added.
23538 (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
23539 mdp_limm): Updated and fix some bug and typo.
23540 * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
23541 (movsf, movdf, doloop_end): Added.
23542
23543 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
23544
23545 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
23546 config/arm/thumb2.md: Fix comment typos.
23547 * doc/extend.texi: Fix a typo.
23548
23549 2007-01-07 Eric Christopher <echristo@apple.com>
23550
23551 * configure.ac: Check for __stack_chk_fail for darwin.
23552 * configure: Regenerate.
23553
23554 2007-01-07 Richard Guenther <rguenther@suse.de>
23555
23556 * tree-vrp.c (extract_range_from_assert): CSE calls to
23557 compare_values where possible.
23558 (extract_range_from_unary_expr): Likewise.
23559
23560 2007-01-07 Anatoly Sokolov <aesok@post.ru>
23561
23562 * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
23563 * config/avr/avr.c (call_insn_operand): Delete function.
23564 * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
23565 instead of register number. Use predicates.
23566 * config/avr/predicates.md (const0_operand, reg_or_0_operand,
23567 call_insn_operand): Add.
23568
23569 2007-01-06 Jan Hubicka <jh@suse.cz>
23570
23571 * tree-pass.h (pass_build_cgraph_edges): Declare.
23572 * cgraphunit.c (record_refernece): Move to cgraphbuild.c
23573 (visited_nodes): Remove.
23574 (cgraph_create_edges): Move to cgraphbuild.c; rename to
23575 build_cgrpah_edges; make visited_nodes local.
23576 (cgraph_process_new_functions): DO not call initialize_inline_failed.
23577 (record_references_in_initializer): Move to cgraphbuild.c
23578 (initialize_inline_failed, rebuild_cgraph_edges,
23579 pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
23580 (verify_cgraph_node): Make visited_nodes local.
23581 (cgraph_analyze_function): Do not call cgraph_create_edges and
23582 initialize_inline_failed.
23583 (cgraph_expand_function): Do not call cgraph_lower_function;
23584 assert that function is already lowered.
23585 * Makefile.in (cgraphbuild.o): New.
23586 * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
23587 at the end of lowering passes.
23588
23589 2007-01-06 Steven Bosscher <steven@gcc.gnu.org>
23590
23591 * ifcvt.c (cond_move_convert_if_block): New function, code
23592 factored out from...
23593 (cond_move_process_if_block): ...here. Call the new function
23594 on the THEN and ELSE blocks.
23595 (merge_if_block): Do not copy global_live_at_end, merge_blocks
23596 already takes care of this.
23597
23598 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23599
23600 PR c/19978
23601 * tree.h (TREE_OVERFLOW_P): New.
23602 * c-typeck.c (parser_build_unary_op): Warn only if result
23603 overflowed and operands did not.
23604 (parser_build_binary_op): Likewise.
23605 (convert_for_assignment): Remove redundant overflow_warning.
23606 * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
23607
23608 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
23609
23610 * c-typeck.c (store_init_value): Split over two lines to follow
23611 the GNU coding style.
23612
23613 2007-01-05 Benjamin Kosnik <bkoz@redhat.com>
23614
23615 * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
23616 __GXX_EXPERIMENTAL_CXX0X__.
23617 * doc/cpp.texi: Same.
23618
23619 2007-01-05 Richard Guenther <rguenther@suse.de>
23620
23621 PR middle-end/27826
23622 * tree.c (get_narrower): Do not construct COMPONENT_REFs
23623 with mismatched types. Instead explicitly build a
23624 conversion NOP_EXPR.
23625
23626 2007-01-05 Ian Lance Taylor <iant@google.com>
23627
23628 * c-common.c (decl_with_nonnull_addr_p): New function.
23629 (c_common_truthvalue_conversion): Call it.
23630 * c-typeck.c (build_binary_op): Likewise.
23631 * c-common.h (decl_with_nonnull_addr_p): Declare.
23632
23633 2007-01-05 Jakub Jelinek <jakub@redhat.com>
23634
23635 PR c/30360
23636 * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
23637 denom against 0.0.
23638
23639 2007-01-05 Joel Brobecker <brobecker@adacore.com>
23640
23641 * doc/install.texi (Final install): Document the fact that
23642 the GNAT runtime should not be stripped.
23643
23644 2007-01-04 Jan Hubicka <jh@suse.cz>
23645
23646 * tree-inline.c (fold_marked_statements): Update operand caches
23647 and EH after folding
23648
23649 2007-01-04 Ian Lance Taylor <iant@google.com>
23650
23651 * c-common.c (check_function_nonnull): Whitespace fix.
23652
23653 2007-01-04 Jan Hubicka <jh@suse.cz>
23654
23655 * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
23656 comitted older version of patch.
23657 (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
23658 function, celanup cfg and collect garbage.
23659
23660 2007-01-04 Mike Stump <mrs@apple.com>
23661
23662 * Makefile.in (mostlyclean): Don't remove libgcc anymore.
23663 (clean): Likewise.
23664
23665 2007-01-04 Eric Christopher <echristo@apple.com>
23666
23667 * libgcc2.c (__bswapsi2): Use SItype.
23668 (__bswapdi2): Use DItype.
23669 * libgcc2.h: Update for above.
23670
23671 2007-01-04 Paul Brook <paul@codesourcery.com>
23672
23673 * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
23674 mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
23675 mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
23676 umulsidi3, umulsidi3adddi, smulsi3_highpart,
23677 umulsi3_highpart): Make conditional on !arm_arch6.
23678 (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
23679 mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
23680 mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
23681 umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
23682 umulsi3_highpart_v6): New insns.
23683
23684 2007-01-04 Roger Sayle <roger@eyesopen.com>
23685
23686 * fold-const.c (fold_convert): When casting an expression to void,
23687 fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
23688 have a type. Instead of attempting to build a NOP_EXPR, return
23689 these "special" trees directly.
23690
23691 2007-01-04 Joseph Myers <joseph@codesourcery.com>
23692
23693 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
23694 MULT inside MINUS as either argument. Use rs6000_cost->dmul -
23695 rs6000_cost->fp not 0 as adjustment for outer NEG.
23696
23697 2007-01-04 Jan Hubicka <jh@suse.cz>
23698
23699 * cgraph.c (cgraph_release_function_body): New function.
23700 (cgraph_remove_node): Use it.
23701 * cgraph.h (cgraph_release_function_body): Declare.
23702 * cgraphunit.c (cgraph_expand_function): Use it.
23703 * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
23704 * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
23705 is initialized and while compilation of other function is running.
23706 * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
23707 statement CFG annotations from here to ...
23708 * tree-cfg.c (delete_tree_cfg_annotations): ... here.
23709
23710 2007-01-04 Zdenek Dvorak <dvorakz@suse.cz>
23711
23712 * cfgloop.h (enum li_flags): Make the constants powers of two.
23713
23714 2007-01-04 Jan Hubicka <jh@suse.cz>
23715
23716 * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
23717 set.
23718 (fold_marked_statements): New function.
23719 (optimize_inline_calls, tree_function_versioning): Fold new statements.
23720 * tree-inline.h (copy_body_data): Add statements_to_fold.
23721
23722 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
23723
23724 * config.gcc: Mention libgcc/config.host.
23725 * Makefile.in: Update comments mentioning libgcc.
23726 (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
23727 (all.cross, start.encap, rest.encap, rest.cross): Update
23728 dependencies for libgcc move.
23729 (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
23730 (clean-target, clean-target-libgcc): Delete.
23731 (srcdirify, GCC_EXTRA_PARTS): New macros.
23732 (libgcc-support, libgcc.mvars): New rules.
23733 (distclean): Remove mention of mklibgcc.
23734 (install): Don't reference INSTALL_LIBGCC.
23735 (install-common): Don't reference EXTRA_PARTS.
23736 (install-libgcc, install-multilib): Delete rules.
23737 * mklibgcc.in: Delete file.
23738 * doc/configfiles.texi: Don't mention mklibgcc.
23739
23740 * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
23741 * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
23742 * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
23743 * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
23744 (mklibgcc, ldblspecs): Likewise.
23745
23746 * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
23747 (posixpre.def): Use $(T).
23748 (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
23749 (SHLIB_SRC, SHLIB_INSTALL): Delete.
23750 (SHLIB_LINK): Make dummy.
23751 * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
23752
23753 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
23754
23755 * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
23756 * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
23757 config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
23758 config/rs6000/t-newas, config/sparc/t-elf: Likewise.
23759
23760 * configure.ac (all_outputs): Remove mklibgcc.
23761 * configure: Regenerated.
23762
23763 2007-01-03 Josh Conner <jconner@apple.com>
23764
23765 PR middle-end/29683
23766 * calls.c (compute_argument_addresses): Set stack and stack_slot
23767 for partial args, too.
23768 (store_one_arg): Use locate.size.constant for the size when
23769 generating a save_area.
23770
23771 2007-01-03 Robert Kennedy <jimbob@google.com>
23772
23773 * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
23774 whose definitions are deleted due to basic block merging.
23775
23776 2007-01-03 Paul Brook <paul@codesourcery.com>
23777
23778 PR target/16634
23779 * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
23780 functions.
23781 (use_return_insn): Return 0 for Thumb interrupt functions.
23782 (print_multi_reg): Add rfe argument for IRQ returns.
23783 (arm_output_epilogue): Pop interrupt return address directly into PC.
23784 (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
23785
23786 2007-01-03 Paul Brook <paul@codesourcery.com>
23787
23788 Merge from sourcerygxx-4_1.
23789 * config/arm/thumb2.md: New file.
23790 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
23791 Thumb-2.
23792 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
23793 * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
23794 (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
23795 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
23796 tables.
23797 (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
23798 * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
23799 comptibility.
23800 * config/arm/ieee754-sf.S: Ditto.
23801 * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
23802 (thumb1_base_register_rtx_p): ... to this.
23803 (thumb_index_register_rtx_p): Rename...
23804 (thumb1_index_register_rtx_p): ... to this.
23805 (thumb_output_function_prologue): Rename...
23806 (thumb1_output_function_prologue): ... to this.
23807 (thumb_legitimate_address_p): Rename...
23808 (thumb1_legitimate_address_p): ... to this.
23809 (thumb_rtx_costs): Rename...
23810 (thumb1_rtx_costs): ... to this.
23811 (thumb_compute_save_reg_mask): Rename...
23812 (thumb1_compute_save_reg_mask): ... to this.
23813 (thumb_final_prescan_insn): Rename...
23814 (thumb1_final_prescan_insn): ... to this.
23815 (thumb_expand_epilogue): Rename...
23816 (thumb1_expand_epilogue): ... to this.
23817 (arm_unwind_emit_stm): Rename...
23818 (arm_unwind_emit_sequence): ... to this.
23819 (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
23820 thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
23821 thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
23822 arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
23823 thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
23824 thumb2_output_casesi): New functions.
23825 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
23826 (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
23827 FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
23828 THUMB2_WORK_REGS): Define.
23829 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
23830 arm_condexec_mask, arm_condexec_masklen)): New variables.
23831 (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
23832 (arm_override_options): Check new CPU capabilities.
23833 Set new architecture flag variables.
23834 (arm_isr_value): Handle v7m interrupt functions.
23835 (user_return_insn): Return 0 for v7m interrupt functions. Handle
23836 Thumb-2.
23837 (const_ok_for_arm): Handle Thumb-2 constants.
23838 (arm_gen_constant): Ditto. Use movw when available.
23839 (arm_function_ok_for_sibcall): Return false for v7m interrupt
23840 functions.
23841 (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
23842 (thumb_find_work_register, arm_load_pic_register,
23843 legitimize_tls_address, arm_address_cost, load_multiple_sequence,
23844 emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
23845 print_multi_reg, output_mov_long_double_fpa_from_arm,
23846 output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
23847 output_mov_double_fpa_from_arm, output_move_double,
23848 arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
23849 output_return_instruction, arm_output_function_prologue,
23850 arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
23851 arm_output_mi_thunk, thumb_set_return_address): Ditto.
23852 (arm_expand_prologue): Handle Thumb-2. Use arm_save_coproc_regs.
23853 (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
23854 (arithmetic_instr, shift_op): Use arm_shift_nmem.
23855 (arm_print_operand): Use arm_print_condition. Handle '(', ')', '.',
23856 '!' and 'L'.
23857 (arm_final_prescan_insn): Use extract_constrain_insn_cached.
23858 (thumb_expand_prologue): Use thumb_set_frame_pointer.
23859 (arm_file_start): Output directive for unified syntax.
23860 (arm_unwind_emit_set): Handle stack alignment instruction.
23861 * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
23862 Add v6t2, v7, v7a, v7r and v7m.
23863 (RETLDM): Add Thumb-2 code.
23864 (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
23865 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
23866 (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
23867 TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
23868 THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
23869 ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
23870 THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
23871 CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
23872 ADJUST_INSN_LENGTH): Define.
23873 (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
23874 STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
23875 BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
23876 PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
23877 SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
23878 TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
23879 HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
23880 HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
23881 REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
23882 REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
23883 LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
23884 GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
23885 ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
23886 FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
23887 PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
23888 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
23889 * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
23890 cortex-m3.
23891 * config/arm/arm-tune.md: Regenerate.
23892 * config/arm/arm-protos.h: Update prototypes.
23893 * config/arm/vfp.md: Enable patterns for Thumb-2.
23894 (arm_movsi_vfp): Add movw alternative. Use output_move_vfp.
23895 (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
23896 (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
23897 thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
23898 * config/arm/libunwind.S: Add Thumb-2 code.
23899 * config/arm/constraints.md: Update include Thumb-2.
23900 * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
23901 * config/arm/ieee754-df.S: Ditto.
23902 * config/arm/bpabi.S: Ditto.
23903 * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
23904 * config/arm/predicates.md (low_register_operand,
23905 low_reg_or_int_operand, thumb_16bit_operator): New.
23906 (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
23907 (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
23908 * config/arm/t-arm-elf: Add armv7 multilib.
23909 * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
23910 Include thumb2.md.
23911 (UNSPEC_STACK_ALIGN, ce_count): New.
23912 (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
23913 arm_zero_extendsidi2, arm_zero_extendqidi2): New
23914 insns/expanders.
23915 * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
23916 (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
23917 thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
23918 * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
23919 (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
23920 thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
23921 insns.
23922 * doc/extend.texi: Document ARMv7-M interrupt functions.
23923 * doc/invoke.texi: Document Thumb-2 new cores+architectures.
23924
23925 2007-01-03 Jakub Jelinek <jakub@redhat.com>
23926
23927 * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
23928 (struct _Unwind_Context): Rename args_size to flags, remove
23929 signal_frame field, add a new args_size field and version field.
23930 (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
23931 _Unwind_IsExtendedContext): New inline functions.
23932 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
23933 Assume by_value array is only present if _Unwind_IsExtendedContext.
23934 (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
23935 _Unwind_IsSignalFrame.
23936 (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
23937 (uw_update_context_1): Use _Unwind_SetSignalFrame.
23938 (uw_init_context_1): Initialize context->flags to
23939 EXTENDED_CONTEXT_BIT.
23940 * config/rs6000/linux-unwind.h (frob_update_context): Use
23941 _Unwind_SetSignalFrame.
23942
23943 2007-01-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
23944
23945 PR middle-end/30353
23946 * gimplify.c (gimplify_modify_expr_complex_part): Move below
23947 tree_to_gimple_tuple. Call tree_to_gimple_tuple when we need
23948 the value.
23949
23950 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
23951
23952 * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
23953 REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
23954 RET, AT_SP): Remove.
23955 * config/i386/i386.md (*sse_prologue_save_insn): Use return
23956 instead of RET.
23957
23958 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
23959 * cfgbuild.c (find_basic_blocks): Likewise.
23960 * cfgrtl.c (rtl_create_basic_block): Likewise.
23961 * function.c (temp_slots_at_level): Likewise.
23962 * reg-stack.c (stack_regs_mentioned): Likewise.
23963 * regclass.c (allocate_reg_info): Likewise.
23964 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
23965 set_bb_for_stmt, move_block_to_fn): Likewise.
23966 * tree-complex.c (tree_lower_complex): Likewise.
23967 * vec.h (VEC_safe_grow_cleared): New.
23968
23969 * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
23970
23971 2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
23972
23973 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
23974 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
23975 to loop_version.
23976 * cfgloopmanip.c (scale_loop_frequencies): Export.
23977 (loopify): Scale the frequencies by prescribed coefficients.
23978 (set_zero_probability): New function.
23979 (duplicate_loop_to_header_edge): Improve updating of frequencies.
23980 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
23981 and frequencies according to arguments.
23982 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
23983 correctly.
23984 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
23985 * modulo-sched.c (sms_schedule): Set probabilities for entering
23986 versioned loop correctly.
23987 * tree-vect-transform.c (vect_transform_loop): Ditto.
23988 * cfgloop.h (loopify, loop_version): Declaration changed.
23989 (scale_loop_frequencies): Declared.
23990
23991 2007-01-02 Jan Hubicka <jh@suse.cz>
23992
23993 * cgraph.c: Include tree-flow.h
23994 (cgraph_add_new-function): Handle IPA_SSA mode; execute
23995 early_local_passes.
23996 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
23997 * tree-pass.h (pass_all_early_optimizations): Declare.
23998 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
23999 early_local_passes.
24000 (cgraph_analyze_function): Do early_local_passes.
24001 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
24002 Do not add referenced vars.
24003 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
24004 SSA form.
24005 (gate_all_early_local_passes): New gate.
24006 (pass_early_local_passes): Use new gate.
24007 (execute_early_local_optimizations): New functions.
24008 (gate_all_early_optimizations): New gate.
24009 (pass_all_early_optimizations): New pass.
24010 (execute_free_datastructures): Free SSA only when initialized.
24011 (gate_init_datastructures): Init only when optimizing.
24012 (tree_lowering_passes): Do early local passes when called late.
24013 * tree-profile.c (do_tree_profiling): Don't profile functions added
24014 late.
24015 (do_early_tree_profiling, pass_early_tree_profile): Kill.
24016 * tree-cfg.c (update_modified_stmts): Do not update when operands are
24017 not active.
24018 * passes.c (init_optimizations_passes): Reorder so we go into SSA
24019 during early_local_passes.
24020 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
24021
24022
24023 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
24024
24025 * Makefile.in: Update copyright year.
24026
24027 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
24028
24029 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
24030 in $(lang_checks) and check-consistency targets.
24031
24032 2007-01-02 Jan Hubicka <jh@suse.cz>
24033
24034 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
24035 Do not add referenced vars.
24036 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
24037 are not active.
24038 * passes.c (init_optimization_passes): Put mudflap_2 after
24039 free_datastructures.
24040
24041 2007-01-02 Jan Hubicka <jh@suse.cz>
24042
24043 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
24044 Set NOTHROW flag on call statements proved to be nothrow.
24045 Update statement of local calls so new pure/const functions are
24046 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
24047 goto receivers.
24048 (tree_rest_of_compilation): Register hooks and initialize bitmap
24049 early. Do not set after_inlining flag.
24050
24051 2007-01-02 Steve Ellcey <sje@cup.hp.com>
24052
24053 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
24054 HOST_BITS_PER_LONGLONG
24055
24056 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24057
24058 PR c/19977
24059 * c-typeck.c (store_init_value): Don't emit pedantic overflow
24060 warning for non-static initializers.
24061
24062 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
24063
24064 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
24065 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
24066 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
24067 Always use set_unique_reg_note to add REG_EQUAL notes.
24068
24069 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
24070
24071 Revert:
24072 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
24073
24074 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
24075 * cfgbuild.c (find_basic_blocks): Likewise.
24076 * cfgrtl.c (rtl_create_basic_block): Likewise.
24077 * function.c (temp_slots_at_level): Likewise.
24078 * reg-stack.c (stack_regs_mentioned): Likewise.
24079 * regclass.c (allocate_reg_info): Likewise.
24080 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
24081 set_bb_for_stmt, move_block_to_fn): Likewise.
24082 * tree-complex.c (tree_lower_complex): Likewise.
24083 * vec.h (VEC_safe_grow_cleared): New.
24084
24085 2007-01-02 Ian Lance Taylor <iant@google.com>
24086
24087 * c-common.c (c_common_truthvalue_conversion): When warning about
24088 using an assignment as a truth value, set TREE_NO_WARNING.
24089
24090 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
24091
24092 PR middle-end/7651
24093 * c.opt (Wold-style-declaration): New.
24094 * doc/invoke.texi (C-only Warning Options): New.
24095 (Wold-style-declaration): Document it.
24096 (Wextra): Enabled by -Wextra.
24097 * c-opts.c (c_common_post_options): Enabled by -Wextra.
24098 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
24099 -Wold-style-declaration.
24100
24101 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
24102
24103 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
24104 * cfgbuild.c (find_basic_blocks): Likewise.
24105 * cfgrtl.c (rtl_create_basic_block): Likewise.
24106 * function.c (temp_slots_at_level): Likewise.
24107 * reg-stack.c (stack_regs_mentioned): Likewise.
24108 * regclass.c (allocate_reg_info): Likewise.
24109 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
24110 set_bb_for_stmt, move_block_to_fn): Likewise.
24111 * tree-complex.c (tree_lower_complex): Likewise.
24112 * vec.h (VEC_safe_grow_cleared): New.
24113
24114 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
24115
24116 * c-common.c (c_common_nodes_and_builtins): Since variants of
24117 void_type_node get built before it is given a name, we need to
24118 give those variants the name, too.
24119 (complete_array_type): We need to work with the canonical main
24120 type of the array, from which we will build the qualified version.
24121 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
24122 * print-tree.c (print_node): Display canonical type information
24123 for each type.
24124 * stor-layout.c (layout_type): When we don't know the
24125 alignment of a type for which we're building an array, we end up
24126 guessing wrong, so make the type require structural equality.
24127 * tree.c (make_node_stat): When we build a new type, it is its
24128 own canonical type.
24129 (build_type_attribute_qual_variant): When building an attribute
24130 variant, its canonical type is the non-attribute variant. However,
24131 if the attributes are target-dependent and they differ, we need to
24132 use structural equality checks for this type.
24133 (build_qualified_type): A qualified type is not equivalent to its
24134 unqualified variant; set the canonical type appropriately.
24135 (build_distinct_type_copy): When building a distinct type from
24136 another type, the new type is its own canonical type.
24137 (build_variant_type_copy): When building a new type variant, we
24138 assume that it is equivalent to the original type.
24139 (build_pointer_type_for_mode): When building a pointer type, also
24140 build a canonical type pointer.
24141 (build_reference_type_for_mode): When building a reference type,
24142 also build a canonical type reference.
24143 (build_index_type): When we can't hash an index type (e.g.,
24144 because its maximum value is negative), the index type requires
24145 structural equality tests.
24146 (build_array_type): Build the canonical form of an array type.
24147 (build_function_type): Function types require structural equality,
24148 because they contain default arguments, attributes, etc.
24149 (build_method_type_directly): Ditto for method types.
24150 (build_offset_type): Build the canonical offset type.
24151 (build_complex_type): Build the canonical vector type.
24152 (make_vector_type): Build the canonical vector type.
24153 * tree.h (TYPE_CANONICAL): New.
24154 (TYPE_STRUCTURAL_EQUALITY_P): New.
24155 (SET_TYPE_STRUCTURAL_EQUALITY): New.
24156 (struct tree_type): Added "canonical" field.
24157 * params.h (VERIFY_CANONICAL_TYPES): New.
24158 * doc/c-tree.texi (TYPE_CANONICAL): Document.
24159 (TYPE_STRUCTURAL_EQUALITY_P): Document.
24160 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
24161 * doc/invoke.texi (verify-canonical-types): Document --param
24162 parameter for verifying canonical types.
24163
24164 2007-01-02 Joseph Myers <joseph@codesourcery.com>
24165
24166 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
24167 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
24168 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
24169 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
24170 tm_file.
24171 * config/rs6000/e500.h: New.
24172 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
24173 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
24174 Remove.
24175 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
24176 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
24177 TARGET_E500_DOUBLE): Remove.
24178 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
24179 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
24180 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
24181 * config/rs6000/rs6000.c (rs6000_override_options): Use
24182 CHECK_E500_OPTIONS.
24183
24184 2007-01-02 Joseph Myers <joseph@codesourcery.com>
24185
24186 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
24187 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
24188 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
24189 rs6000_emit_cmove): Don't check TARGET_E500.
24190 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
24191 sordered): Don't check TARGET_E500.
24192
24193 2007-01-01 Eric Christopher <echristo@apple.com>
24194
24195 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
24196 HARD_REGISTER_NUM_P.
24197
24198 2007-01-01 Roger Sayle <roger@eyesopen.com>
24199
24200 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
24201 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
24202 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
24203 eq/ne Y".
24204
24205 2007-01-01 Mike Stump <mrs@apple.com>
24206
24207 * configure.ac: Remove support for building with Apple's gcc-3.1.
24208
24209 2007-01-02 Joseph Myers <joseph@codesourcery.com>
24210
24211 PR middle-end/30311
24212 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
24213 REG is a hard register. Do not modify REG before calling
24214 subreg_nregs.
24215 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
24216 multiple of the size of YMODE for certain lowpart cases.
24217
24218 2007-01-01 Andrew Pinski <pinskia@gmail.com>
24219
24220 PR middle-end/30253
24221 * gimplify (voidify_wrapper_expr): Update for
24222 GIMPLE_MODIFY_STMT.
24223
24224 2007-01-01 Andreas Schwab <schwab@suse.de>
24225
24226 PR target/29166
24227 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
24228 save of BR0 in extra_spill_size instead of spill_size.
24229 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
24230 area.
24231 (ia64_expand_epilogue): Restore BR0 from its new location.
24232
24233 2007-01-01 Andrew Pinski <pinskia@gmail.com>
24234
24235 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
24236 Use a temporary variable if the left hand side is not a gimple
24237 register.
24238
24239 2007-01-01 Andrew Pinski <pinskia@gmail.com>
24240
24241 * gimplify.c (gimplify_return_expr): Make the temporary variable
24242 for the return expression, a gimple register variable.
24243
24244 2007-01-01 Jan Hubicka <jh@suse.cz>
24245
24246 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
24247 INSN_LIST.
24248
24249 2007-01-01 Mike Stump <mrs@apple.com>
24250
24251 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
24252 .literal16.
24253 * config/darwin.c (machopic_select_rtx_section): Use
24254 HAVE_GAS_LITERAL16.
24255 (darwin_mergeable_constant_section): Likewise.
24256 * configure: Regenerate.
24257 * config.in: Regenerate.
24258
24259 2007-01-01 Jan Hubicka <jh@suse.cz>
24260 Andrew Pinski <pinskia@gmail.com>
24261
24262 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
24263 before starting IPA passes.