gimplify.c (gimplify_modify_expr): During gimplification...
[gcc.git] / gcc / ChangeLog
1 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
2
3 * gimplify.c (gimplify_modify_expr): During gimplification, attach a
4 DECL on the rhs to a DECL on the lhs for debug info purposes if the
5 former is ignored but not the latter.
6
7 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
8
9 * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
10 is made and the reference doesn't use the alias set of its type,
11 do not create the temporary using that type.
12
13 2007-02-15 Aldy Hernandez <aldyh@redhat.com>
14
15 * jump.c: Remove prototypes for delete_computation and
16 delete_prior_computation.
17
18 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
19
20 * jump.c (get_label_after): Delete.
21 (get_label_before, delete_computation, delete_jump,
22 delete_prior_computation, follow_jumps): Move...
23 * reorg.c (delete_computation, delete_prior_computation): ... here...
24 (get_label_before, delete_jump): ... making these static ...
25 (follow_jumps): ... and simplifying this since it only runs after
26 reload.
27 * rtl.h (get_label_after, get_label_before, delete_jump,
28 follow_jumps): Delete prototypes.
29
30 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
31
32 * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
33
34 2007-02-15 Nick Clifton <nickc@redhat.com>
35
36 * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
37 order to prevent it from being munged by the target.
38
39 2007-02-15 Uros Bizjak <ubizjak@gmail.com>
40
41 * config/i386/i386.md: Remove misleading comment.
42
43 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
44
45 * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
46 reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
47 invalid patterns.
48
49 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
50
51 * tree-sra.c (instantiate_missing_elements): Canonicalize
52 bit-field types.
53 (sra_build_assignment): New.
54 (generate_copy_inout, generate_element_copy,
55 generate_element_zero, generate_one_element_init): Use it.
56
57 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
58
59 * tree-sra.c (instantiate_missing_elements): Canonicalize
60 bit-field types.
61 (sra_build_assignment): New.
62 (generate_copy_inout, generate_element_copy,
63 generate_element_zero, generate_one_element_init): Use it.
64
65 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
66
67 * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
68 limbo die nodes.
69
70 2007-02-14 Joseph Myers <joseph@codesourcery.com>
71
72 * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
73 types as aggregates not scalars.
74 * function.c (assign_stack_temp_for_type): Likewise.
75
76 2007-02-14 Roger Sayle <roger@eyesopen.com>
77 Zdenek Dvorak <dvorakz@suse.cz>
78
79 * tree-dump.c (dump_switch_p_1): Require exact match of the option
80 name.
81
82 2007-02-14 Zdenek Dvorak <dvorakz@suse.cz>
83
84 * passes.c (next_pass_1): Clear the next field of the copied
85 pass structure.
86
87 2007-02-14 Richard Henderson <rth@redhat.com>
88
89 * tree-sra.c (early_sra): New.
90 (decl_can_be_decomposed_p): Deny va_list if early_sra.
91 (tree_sra_early, pass_sra_early): New.
92 * tree-pass.h (pass_sra_early): Declare.
93 * passes.c (init_optimization_passes): Use it.
94
95 2007-02-14 Richard Guenther <rguenther@suse.de>
96
97 * flags.h (issue_strict_overflow_warning): Convert to a macro.
98
99 2007-02-14 Dorit Nuzman <dorit@il.ibm.com>
100
101 PR tree-optimization/30771
102 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
103 also phi nodes.
104 (vect_analyze_operations): Induction phis can now be marked as
105 used_in_loop.
106 (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
107 Update documentation accordingly.
108
109 2007-02-14 Nick Clifton <nickc@redhat.com>
110
111 * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
112 most 3 arguments are supported.
113 (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
114
115 2007-02-13 Seongbae Park <seongbae.park@gmail.com>
116
117 * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
118 Ensure dst->current is valid.
119
120 2007-02-13 Paul Brook <paul@codesourcery.com>
121
122 * config.gcc: Add arm*-*-uclinux-*eabi.
123 * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
124 (SUBTARGET_EXTRA_LINK_SPEC): Define.
125 (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
126 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
127 (LINK_SPEC): Define.
128 (LIB_SPEC): Define.
129 * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
130 register.
131 * config/arm/uclinux-eabi.h: New file.
132 * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
133 * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
134 based targets.
135
136 2007-02-13 Ian Lance Taylor <iant@google.com>
137
138 * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
139 * flags.h (warn_strict_overflow): Declare.
140 (enum warn_strict_overflow_code): Define.
141 (issue_strict_overflow_warning): New static inline function.
142 * opts.c (warn_strict_overflow): New variable.
143 (common_handle_option): Handle OPT_Wstrict_overflow and
144 OPT_Wstrict_overflow_.
145 * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
146 OPT_Wall.
147 * fold-const.c: Include intl.h.
148 (fold_deferring_overflow_warnings): New static variable.
149 (fold_deferred_overflow_warning): New static variable.
150 (fold_deferred_overflow_code): New static variable.
151 (fold_defer_overflow_warnings): New function.
152 (fold_undefer_overflow_warnings): New function.
153 (fold_undefer_and_ignore_overflow_warnings): New function.
154 (fold_deferring_overflow_warnings_p): New function.
155 (fold_overflow_warning): New static function.
156 (make_range): Add strict_overflow_p parameter. Change all
157 callers.
158 (extract_muldiv, extract_muldiv_1): Likewise.
159 (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
160 tree_expr_nonnegative_p.
161 (fold_negate_expr): Call fold_overflow_warning.
162 (fold_range_test): Likewise.
163 (fold_comparison): Likewise.
164 (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
165 instead of tree_expr_nonnegative_p.
166 (tree_expr_nonnegative_warnv_p): Rename from
167 tree_expr_nonnegative_p, add strict_overflow_p parameter.
168 (tree_expr_nonnegative_p): New function.
169 (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
170 strict_overflow_p parameter.
171 (tree_expr_nonzero_p): New function.
172 * passes.c (verify_interpass_invariants): New static function.
173 (execute_one_pass): Call it.
174 * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
175 warnings.
176 (number_of_iterations_exit, loop_niter_by_eval): Likewise.
177 (estimate_numbers_of_iterations): Likewise.
178 (scev_probably_wraps_p): Likewise.
179 * tree-ssa-ccp.c: Include "toplev.h".
180 (evaluate_stmt): Defer fold overflow warnings until we know we are
181 going to optimize.
182 (struct fold_stmt_r_data): Add stmt field.
183 (fold_stmt_r): Defer fold overflow warnings until we know we
184 optimized.
185 (fold_stmt): Initialize stmt field of fold_stmt_r_data.
186 (fold_stmt_inplace): Likewise.
187 * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
188 (cleanup_control_expr_graph): Defer fold overflow warnings until
189 we know we are going to optimize.
190 * tree-cfg.c (fold_cond_expr_cond): Likewise.
191 * tree-ssa-threadedge.c (simplify_control_stmt_condition):
192 Likewise.
193 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
194 tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
195 * tree-ssa-loop-manip.c (create_iv): Likewise.
196 * c-typeck.c (build_conditional_expr): Likewise.
197 (build_binary_op): Likewise.
198 * tree-vrp.c (vrp_expr_computes_nonzero): Call
199 tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
200 (extract_range_from_unary_expr): Likewise.
201 * simplify-rtx.c (simplify_const_relational_operation): Warn when
202 assuming that signed overflow does not occur.
203 * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
204 * tree.h (tree_expr_nonnegative_warnv_p): Declare.
205 (fold_defer_overflow_warnings): Declare.
206 (fold_undefer_overflow_warnings): Declare.
207 (fold_undefer_and_ignore_overflow_warnings): Declare.
208 (fold_deferring_overflow_warnings_p): Declare.
209 (tree_expr_nonzero_warnv_p): Declare.
210 * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
211 of warning options.
212 (Warning Options): Document -Wstrict-overflow.
213 * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
214 (tree-ssa-ccp.o): Likewise.
215 (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
216 (fold-const.o): Depend on intl.h.
217
218 2007-02-13 Ian Lance Taylor <iant@google.com>
219
220 PR middle-end/30751
221 * lower-subreg.c (resolve_simple_move): Decompose subregs in
222 addresses.
223
224 2007-02-13 Stuart Hastings <stuart@apple.com>
225
226 * gcc/config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
227
228 2007-02-13 Richard Henderson <rth@redhat.com>
229
230 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
231 handled_component_p before looking for the indirect_ref.
232
233 2007-02-13 Richard Henderson <rth@redhat.com>
234
235 * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
236 remove flags clobber.
237 (bswapsi2): New expander, emit code for !TARGET_BSWAP.
238 (bswaphi_lowpart): New.
239 (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
240 remove TARGET_BSWAP test. Delete expander of the same name.
241
242 * optabs.c (widen_bswap, expand_doubleword_bswap): New.
243 (expand_unop): Use them.
244
245 2007-02-13 Uros Bizjak <ubizjak@gmail.com>
246
247 * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
248 *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
249 *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
250 *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
251 *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
252 *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
253 *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
254 assembler dialect choice from asm templates.
255
256 2007-02-12 Richard Henderson <rth@redhat.com>
257
258 * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
259 (fixuns_trunc<SSEMODEF>si2): Use it.
260 * config/i386/sse.md (vec_setv4sf_0): Export.
261 * config/i386/i386.c (ix86_build_const_vector): Export.
262 (ix86_split_convert_uns_si_sse): Rename from
263 ix86_expand_convert_uns_si_sse and rewrite as a splitter.
264 * config/i386/i386-protos.h: Update.
265
266 2007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
267
268 PR c/29521
269 * c-typeck.c (c_finish_return): Improve warning message.
270
271 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
272
273 * alias.c (find_symbolic_term): Delete unused function.
274
275 2007-02-12 Uros Bizjak <ubizjak@gmail.com>
276
277 * config/i386/i386.md (paritydi2, paritysi2): New expanders.
278 (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
279 (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
280
281 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
282
283 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
284 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
285 the function, temporarily point the debug interface to the null one.
286
287 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
288
289 * dwarf2out.c (round_up_to_align): New static function.
290 (field_byte_offset): Use it to round the offset.
291
292 2007-02-12 Richard Henderson <rth@redhat.com>
293
294 * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
295 (inswl_const): Export.
296
297 2007-02-12 Richard Henderson <rth@redhat.com>
298
299 * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
300 result mode of the libcall, convert back to outmode.
301
302 2007-02-12 Roger Sayle <roger@eyesopen.com>
303
304 * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
305 (bswapdi2): New define_expand to implement 32-bit implementation.
306
307 2007-02-12 Nick Clifton <nickc@redhat.com>
308
309 * doc/invoke.texi (Overall Options): Document --help=.
310 * gcc.c (target_help_flag): Rename to print_subprocess_flag.
311 (cc1_options): Pass --help= on to cc1.
312 (display_help): Add description of --help=.
313 (process_command): Add code to handle --help=. Allow translated
314 --help and --target-help switches to be passed on to compiler
315 sub-process.
316 (main): Remove unused if statement.
317 * opts.c (columns): Remove.
318 (LEFT_COLUMN): Define.
319 (wrap_help): Add columns argument.
320 (print_filtered_help): Change parameters to be an include bitmask,
321 an exclude bitmask, an any bitmask and the column width. Move the
322 code to display the params list here. Add code to display the
323 status of options rather than their descriptions if the quiet flag
324 is not active.
325 (print_specific_help): Change parameters to be an include bitmask,
326 an exclude bitmask and an any bitmask. Move code to look up the
327 column width here. Decide upon the title for an options listing.
328 (common_handle_options): Add code to handle --help=. Adapt code
329 for --help and --target-help to use the revised form of the
330 print_specific_help function.
331 (print_help): Delete.
332 (print_param_help): Delete.
333 (print_switch): Delete.
334 * opts.h (cl_lang_count): Add prototype.
335 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
336 CL_MAX_OPTION_CLASS): New defines.
337 * optc-gen.awk: Add construction of cl_lang_count.
338 * c.opt: Add Warning attribute to warning options and Optimization
339 attribute to optimization options.
340 * common.opt: Likewise.
341 Add --help=.
342 Add -fhelp and -ftarget-help as aliases for the transformed --help
343 and --target-help options.
344 * opt-functions.awk: Add code to handle Warning and Optimization
345 attributes.
346
347 2007-02-12 Richard Henderson <rth@redhat.com>
348
349 * config/alpha/constraints.md: New file.
350 * config/alpha/alpha.c: Include tm-constrs.h.
351 (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
352 alpha_extra_constraint): Remove.
353 (alpha_emit_conditional_branch): Use satisfies_constraint_*.
354 * config/alpha/alpha-protos.h: Update.
355 * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
356 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
357 (EXTRA_CONSTRAINT): Remove.
358 * config/alpha/alpha.md: Include constraints.md.
359 (adddi splitter): Use satisfies_constraint_*.
360 * config/alpha/predicates.md (add_operand): Likewise.
361 (sext_add_operand, addition_operation): Likewise.
362
363 2007-02-12 Dorit Nuzman <dorit@il.ibm.com>
364
365 PR tree-optimization/29145
366 * tree-data-ref.c (base_addr_differ_p): Make us more conservative
367 in our handling of restrict qualified pointers.
368
369 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
370
371 PR middle-end/7651
372 * doc/invoke.texi (Wunused-value): Update description.
373 (Wextra): Delete item.
374 * opts.c (set_Wextra): Don't use the value of Wextra to set the
375 value of Wunused-value.
376 * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
377 (c_finish_stmt_expr): Don't check extra_warnings.
378 (emit_side_effect_warnings): The caller is responsible to check
379 warn_unused_value.
380
381 2007-02-11 Roger Sayle <roger@eyesopen.com>
382 Matt Thomas <matt@3am-software.com>
383
384 * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
385
386 2007-02-11 Roger Sayle <roger@eyesopen.com>
387
388 * simplify-rtx.c (simplify_relational_operation_1): Optimize
389 comparisons of POPCOUNT against zero.
390 (simplify_const_relational_operation): Likewise.
391
392 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
393
394 * doc/invoke.texi (Wextra): Delete outdated paragraph.
395
396 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
397
398 * dwarf2out.c (root_type): Delete unused function.
399
400 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
401
402 * genattrtab.c (contained_in_p): Delete unused function.
403 (write_expr_attr_cache): Likewise.
404
405 2007-02-11 Jan Hubicka <jh@suse.cz>
406
407 * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
408 previous patch.
409
410 2007-02-11 Steven Bosscher <steven@gcc.gnu.org>
411
412 * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
413 to add the REG_EQ* note.
414 * see.c (see_merge_one_use_extension): Likewise.
415 * local-alloc.c (update_equiv_regs): Likewise. Also don't
416 turn REG_EQUAL notes into REG_EQUIV notes if the target
417 register may have more than one set.
418 * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
419 * gcse.c (try_replace_reg): Likewise.
420 * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
421 * calls.c (fixup_tail_calls): Likewise. Abort if there is
422 more than one REG_EQUIV note.
423 * reload1.c (gen_reload): Use set_unique_reg_note.
424
425 2007-02-11 Uros Bizjak <ubizjak@gmail.com>
426
427 * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
428 (ix86_builtin_conversion): New function.
429
430 2007-02-06 Mark Mitchell <mark@codesourcery.com>
431
432 PR target/29487
433 * tree.h (DECL_REPLACEABLE_P): New macro.
434 * except.c (set_nothrow_function_flags): Likewise.
435
436 2007-02-11 Tehila Meyzels <tehila@il.ibm.com>
437 Ira Rosen <irar@il.ibm.com>
438 Dorit Nuzman <dorit@il.ibm.com>
439
440 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
441 * targhooks.c (default_builtin_vectorized_conversion): New.
442 * targhooks.h (default_builtin_vectorized_function): New declaration.
443 * target.h (struct vectorize): Add builtin_conversion field.
444 * tree-vectorizer.h (type_conversion_vec_info_type): New enum
445 stmt_vec_info_type value.
446 (vectorizable_conversion): New declaration.
447 * tree-vect-analyze.c (vect_analyze_operations): Add
448 vectorizable_conversion call.
449 * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
450 * tree-vect-transform.c (vectorizable_conversion): New function.
451 (vect_transform_stmt): Add case for type_conversion_vec_info_type.
452 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
453 mode.
454 * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
455 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
456 (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
457 or ALTIVEC_BUILTIN_VCFSX.
458
459 2007-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
460
461 PR target/30634
462 * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
463 CONST_DOUBLE and operand 0 is a hard register.
464 (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
465 memory. Fail if operand 1 is a non-zero CONST_INT and operand 0
466 is a hard floating-point register.
467
468 2007-02-10 Richard Henderson <rth@redhat.com>
469 Jakub Jelinek <jakub@redhat.com>
470 Alexandre Oliva <aoliva@redhat.com>
471
472 * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
473 * builtin-types.def (BT_WORD): Make unsigned.
474 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
475 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
476 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
477 * c-decl.c (grokdeclarator): Don't error if !have_tls.
478 * c-parser.c (c_parser_omp_threadprivate): Likewise.
479 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
480 emulated tls.
481 * expr.c (emutls_var_address): New.
482 (expand_expr_real_1): Expand emulated tls.
483 (expand_expr_addr_expr_1): Likewise.
484 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
485 * output.h (emutls_finish): Declare.
486 * toplev.c (compile_file): Call it.
487 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
488 address before wrapping in CONST.
489 * varasm.c (emutls_htab, emutls_object_type): New.
490 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
491 (get_emutls_object_name, get_emutls_object_type): New.
492 (get_emutls_init_templ_addr, emutls_decl): New.
493 (emutls_common_1, emutls_finish): New.
494 (assemble_variable): When emulating tls, swap decls; generate
495 constructor for the emutls objects.
496 (do_assemble_alias): When emulating tls, swap decl and target name.
497 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
498 for emulated tls.
499 * varpool.c (decide_is_variable_needed): Look at force_output.
500 Recurse for emulated tls.
501 (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
502 with decide_is_variable_needed.
503 * emutls.c: New file.
504 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
505 tls_object for real tls.
506
507 2007-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
508
509 PR rtl-optimization/29599
510 * reload1.c (eliminate_regs_in_insn): Take the destination
511 mode into account when computing the offset.
512
513 2007-02-09 Stuart Hastings <stuart@apple.com>
514 Richard Henderson <rth@redhat.com>
515
516 * gcc/config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
517 * gcc/config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
518 * gcc/config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
519 fixuns_truncdfhi2): New.
520 (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
521 (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
522 (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
523 (floatunssidf2): Allow nonimmediate source.
524 * gcc/config/i386/sse.md (movdi_to_sse): New.
525 (vec_concatv2di): Drop '*'.
526 * gcc/config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
527 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
528 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
529 New.
530 * gcc/config/i386/i386.c (ix86_expand_convert_uns_si_sse,
531 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
532 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
533 ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
534 (ix86_build_signbit_mask): Fix decl of v, refactor to call
535 ix86_build_const_vector.
536 (x86_emit_floatuns): Rewrite.
537
538 2007-02-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
539
540 * genautomata.c (longest_path_length): Delete unused function.
541 (struct state): Delete unused longest_path_length.
542 (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
543 (get_free_state): Delete unused.
544
545 2007-02-09 Jan Hubicka <jh@suse.cz>
546
547 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
548 * doc/invoke.texi (inline-unit-growth): Update default value.
549
550 * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
551 * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
552 (rebuild_cgraph_edges): Likewise.
553 * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
554 (dump_cgraph_node): Dump frequencies.
555 (cgraph_clone_edge): Add frequency scales.
556 (cgraph_clone_node): Add freuqnecy.
557 * cgraph.h (cgraph_edge): Add freuqnecy argument.
558 (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
559 (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
560 * tree-pass.h (TODO_rebuild_frequencies): New constant.
561 * cgraphunit.c (verify_cgraph_node): Verify frequencies.
562 (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
563 (save_inline_function_body): Likewise.
564 * ipa-inline.c: inluce rtl.h
565 (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
566 (cgraph_edge_badness): Use frequencies.
567 (cgraph_decide_recursive_inlining): Update clonning.
568 (cgraph_decide_inlining_of_small_function): Dump frequency.
569 * predict.c (estimate_bb_frequencies): Export.
570 * predict.h (estimate_bb_frequencies): Declare.
571 * tree-inline.c (copy_bb): Watch overflows.
572 (expand_call_inline): Update call of cgraph_create_edge.
573 (optimize_inline_calls): Use TODO flags to update frequnecies.
574 * passes.h: Include predict.h
575 (init_optimization_passes): Move profile ahead.
576 (execute_function_todo): Handle TODO_rebuild_frequencies.
577
578 2007-02-09 Roger Sayle <roger@eyesopen.com>
579
580 * config/alpha/alpha.c (emit_insxl): Force the first operand of
581 the insbl or inswl pattern into a register.
582
583 2007-02-09 Roger Sayle <roger@eyesopen.com>
584
585 * config/ia64/ia64.md (bswapdi2): New define_insn.
586
587 2007-02-09 Richard Henderson <rth@redhat.com>
588
589 * config/i386/constraints.md (Ym): New constraint.
590 * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
591 (movdi_1_rex64): Split sse and xmm general register moves from
592 memory move alternatives. Use conditional register constraints.
593 (movsf_1, movdf_integer): Likewise.
594 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
595 (movdf_integer_rex64): New.
596 (pushsf_rex64): Fix output constraints.
597 * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
598 (sse2_stored): Likewise.
599 (sse2_storeq_rex64): New.
600 * config/i386/i386.c (x86_inter_unit_moves): Enable for not
601 amd and not generic.
602 (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
603 for optimize_size. Remove SF/DFmode hack.
604
605 2007-02-09 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
606
607 * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
608 (bit_SSE4a): New.
609
610 2007-02-09 Nathan Sidwell <nathan@codesourcery.com>
611 Richard Sandiford <richard@codesourcery.com>
612
613 * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
614 (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
615 (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
616 m68k/t-mlib to tmake_file.
617 (m68020-*-elf*, m68k-*-elf*): Likewise. Add t-m68kbare as well.
618 (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
619 (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
620 Allow it to be cf or m68k. Set m68k_arch_family. If that
621 variable is not empty, add t-$m68k_arch_family to tmake_file.
622 Add t-mlibs to tmake_file.
623 * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
624 * config/m68k/t-cf: New file.
625 * config/m68k/t-m68k: Likewise.
626 * config/m68k/t-mlibs: Likewise.
627 * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
628 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
629 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
630 * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
631 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
632 Delete.
633 * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
634 (INSTALL_LIBGCC): Delete.
635 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
636 * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
637 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
638 (M68K_MLIB_CPU): Define.
639 * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
640 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
641 (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
642
643 2007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
644 Richard Guenther <rguenther@suse.de>
645
646 PR middle-end/23361
647 * fold-const.c (fold_comparison): Handle obfuscated comparisons
648 against INT_MIN/INT_MAX.
649 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
650 file if a loop is removed.
651
652 2007-02-09 Joseph Myers <joseph@codesourcery.com>
653
654 * calls.c (store_one_arg): Pass correct alignment to
655 emit_push_insn for non-BLKmode values.
656 * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
657 unaligned stack slot via a suitably aligned slot.
658
659 2007-02-08 DJ Delorie <dj@redhat.com>
660
661 * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
662 warnings.
663 (legal_subregs): Use unsigned char, make const.
664 (m32c_illegal_subreg_p): Use ARRAY_SIZE. Delete unused variables.
665
666 2007-02-08 Paul Brook <paul@codesourcery.com>
667
668 * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
669 special interworking needed.
670
671 2007-02-08 Harsha Jagasia <harsha.jagasia@amd.com>
672
673 * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
674 conditional to __SSE2__.
675 (Entries below should have been added to first ChangeLog
676 entry for amdfam10 dated 2007-02-05)
677 * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
678 defined.
679 * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
680 defined.
681 * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
682 defined.
683
684 2007-02-08 DJ Delorie <dj@redhat.com>
685
686 * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
687 * config/m32c/m32c.c (legal_subregs): New.
688 (m32c_illegal_subreg_p): New.
689 * config/m32c/predicates.md (m32c_any_operand): Use it to reject
690 unsupported subregs of hard regs.
691
692 2007-02-08 Jan Hubicka <jh@suse.cz>
693
694 * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
695 the same one; always update histograms.
696
697 2007-02-08 Diego Novillo <dnovillo@redhat.com>
698
699 * passes.c (init_optimization_passes): Tidy comment.
700
701 2007-02-08 Roger Sayle <roger@eyesopen.com>
702
703 * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
704 strip zero_extend, bswap and rotates from POCOUNT's argument.
705 <PARITY>: Likewise, we can strip not, bswap, sign_extend,
706 zero_extend and rotates from PARITY's argument.
707 <BSWAP>: A byte-swap followed by a byte-swap is an identity.
708 (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
709 of an integer constant at compile-time.
710
711 2007-02-08 Diego Novillo <dnovillo@redhat.com>
712
713 PR 30562
714 * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
715 Update all users.
716 * tree-ssa-alias.c (compute_is_aliased): Remove. Update all
717 users.
718 (init_alias_info):
719 * tree-ssa-live.c (remove_unused_locals): Do not remove
720 TREE_ADDRESSABLE variables.
721 * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
722 * tree-ssa-operands.c (add_virtual_operand): Remove argument
723 FOR_CLOBBER. Update all users.
724 If VAR has an associated alias set, add a virtual operand for
725 it if no alias is found to conflict with the memory reference.
726
727 2007-02-07 Jan Hubicka <jh@suse.cz>
728 Robert Kidd <rkidd@crhc.uiuc.edu>
729
730 * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
731
732 2007-02-07 Ian Lance Taylor <iant@google.com>
733
734 * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
735
736 2007-02-07 Roger Sayle <roger@eyesopen.com>
737
738 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
739 parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
740 tablejumpdi, movsi_to_cr_one): Remove constraints from
741 define_expand's match_operands.
742
743 2007-02-07 Roger Sayle <roger@eyesopen.com>
744
745 * global.c (compute_regsets): Move declatation of "i" inside of
746 #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
747
748 2007-02-07 Jakub Jelinek <jakub@redhat.com>
749
750 PR c++/30703
751 * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
752 of INDIRECT_REF <RESULT_DECL>.
753
754 * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
755
756 2007-02-06 J"orn Rennecke <joern.rennecke@arc.com>
757 Kaz Kojima <kkojima@gcc.gnu.org>
758
759 PR target/29746
760 * config/sh/sh.c (expand_cbranchdi4): Use scratch register
761 properly.
762 (sh_initialize_trampoline): Add parentheses to avoid a warning.
763
764 2007-02-06 Zdenek Dvorak <dvorakz@suse.cz>
765
766 * doc/loop.texi: Document possibility not to perform disambiguation
767 of loops with multiple latches.
768 * cfgloopmanip.c (alp_enum_p): Removed.
769 (add_loop): Handle subloops. Use get_loop_body_with_size.
770 (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
771 * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
772 the new forwarder block.
773 (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
774 Handle the case latch is NULL.
775 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
776 when marking loop exits.
777 * ifcvt.c (if_convert): Ditto. Mark loop exits even if cfg cannot
778 be modified.
779 * loop-init.c (loop_optimizer_init): Do not modify cfg. Call
780 disambiguate_loops_with_multiple_latches.
781 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
782 before fix_loop_structure.
783 * cfgloop.c: Include pointer-set.h and output.h.
784 (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
785 update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
786 (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
787 find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
788 mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
789 disambiguate_multiple_latches, get_loop_body_with_size,
790 disambiguate_loops_with_multiple_latches): New functions.
791 (flow_loop_dump): Dump multiple latch edges.
792 (flow_loop_nodes_find): Handle loops with multiple latches.
793 (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
794 (glb_enum_p): Modified.
795 (get_loop_body): Use get_loop_body_with_size.
796 * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
797 (AVOID_CFG_MODIFICATIONS): New constant.
798 (disambiguate_loops_with_multiple_latches, add_loop,
799 get_loop_body_with_size): Declare.
800 * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
801
802 2007-02-06 Seongbae Park <seongbae.park@gmail.com>
803
804 PR inline-asm/28686
805 * global.c (compute_regsets): New function.
806 (global_alloc): Refactored ELIMINABLE_REGSET
807 and NO_GLOBAL_ALLOC_REGS computation out.
808 (rest_of_handle_global_alloc): Call compute_regsets()
809 for non-optimizing case.
810
811 2007-02-06 Richard Henderson <rth@redhat.com>
812
813 * config/i386/constraints.md (Y2): Rename from Y.
814 (Yi): New constraint.
815 * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
816 pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
817 zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
818 (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
819 truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
820 fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
821 floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
822 absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
823 fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
824 * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
825 mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
826 vec_extractv2si_1): Change Y constraints to Y2.
827 * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
828 vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
829 Change Y constraints to Y2.
830 (sse2_loadld): Change Y constraints to x.
831
832 2007-02-06 Roger Sayle <roger@eyesopen.com>
833
834 * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
835 (parity<mode>2): New define_expand using rs6000_emit_parity.
836 * config/rs6000/rs6000.c (rs6000_emit_popcount,
837 rs6000_emit_parity): New functions.
838 * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
839 rs6000_emit_parity): Prototype here.
840
841 2007-02-06 Ian Lance Taylor <iant@google.com>
842
843 * lower-subreg.c (simple_move_operand): Reject CONST.
844 (resolve_clobber): Call validate_change rather than directly
845 assigning to XEXP (pat, 0).
846
847 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
848
849 * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
850 (tree-ssa-reassoc.o): Add pointer-set.h dependency.
851 (tree-cfg.o): Remove hashtab.h dependency.
852
853 * tree-ssa-loop-ivopts.c: Include pointer-set.h.
854 (struct ivopts_data): Change niters to pointer_map_t.
855 (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
856 (niter_for_exit): Create pointer_map on demand. Change for
857 pointer_map API.
858 (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
859 (free_loop_data): Destroy data->niters if created and reset field.
860 (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
861 (tree_ssa_iv_optimize_loop): Check for presence of stale data.
862
863 * tree-ssa-reassoc.c: Include pointer-set.h.
864 (bb_rank): Change to long *.
865 (operand_rank): Change to pointer_map_t.
866 (find_operand_rank): Return long, -1 if not found. Declare as inline.
867 (insert_operand_rank): Accept long.
868 (operand_entry_hash, operand_entry_eq): Remove.
869 (get_rank): Return long. Adjust for changes above.
870 (init_reassoc): Change rank type to long. Adjust creation of bb_rank
871 and operand_rank.
872 (fini_reassoc): Delete operand_rank with pointer_map_destroy.
873
874 * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
875 (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
876 (insert_vi_for_tree): Rewrite for pointer_map API. Assert argument
877 is not NULL.
878 (lookup_vi_for_tree): Rewrite for pointer_map API. Return varinfo_t
879 directly since it cannot be NULL.
880 (get_vi_for_tree): Rewrite for pointer_map API.
881 (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
882 (init_alias_vars): Create vi_for_tree as pointer_map.
883 (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
884
885 * tree-cfg.c: Don't include hashtab.h.
886 (edge_to_cases): Declare as pointer_map.
887 (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
888 Delete.
889 (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
890 (start_recording_case_labels): Create edge_to_cases as pointer_map.
891 (end_recoding_case_labels): Cleanup edge_to_cases manually before
892 destroying it.
893 (record_switch_edge): Delete.
894 (get_cases_for_edge): Adjust for pointer_map API, inline
895 record_switch_edge (rewritten for new API), remove goto.
896
897 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
898
899 * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
900 * tree-nested.c: Include pointer-set.h.
901 (var_map_elt, var_map_eq, var_map_hash): Delete.
902 (struct nesting_info): Remove GTY marker. Change the two htab_t's
903 to pointer_map_t's.
904 (nesting_info_bitmap_obstack): New.
905 (lookup_field_for_decl): Adjust for pointer_map API.
906 (lookup_tramp_for_decl): Adjust for pointer_map API.
907 (get_nonlocal_debug_decl): Adjust for pointer_map API.
908 (get_local_debug_decl): Adjust for pointer_map API.
909 (convert_nl_goto_reference): Adjust for pointer_map API.
910 (convert_nl_goto_receiver): Adjust for pointer_map API.
911 (create_nesting_tree): Create outside GGC space. Create bitmap on
912 the new obstack. Create field_map and var_map as pointer_maps.
913 (free_nesting_tree): Adjust for changes to create_nesting_tree.
914 (root): Delete.
915 (lower_nested_functions): Move root here, no need to NULL it.
916 Initialize and release the obstack.
917
918 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
919
920 * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
921 Remove prototypes and make them non-static.
922 (struct tree_int_map): Remove.
923 * tree.h (struct tree_int_map): Move here, turning TO into an
924 unsigned int.
925 (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
926
927 * tree.h (TREE_COMPLEXITY): Remove.
928 (struct tree_exp): Remove complexity field.
929 * tree.c (build1_stat): Don't set it.
930
931 2007-02-06 Dorit Nuzman <dorit@il.ibm.com>
932 Victor Kaplansky <victork@il.ibm.com>
933
934 * tree-vectorizer.c (vect_is_simple_use): Support induction.
935 (vect_is_simple_reduction): Support reduction with induction as
936 one of the operands.
937 (vect_is_simple_iv_evolution): Fix formatting.
938 * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
939 formatting. Don't mark induction phis for vectorization.
940 (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
941 * tree-vect-transform.c (get_initial_def_for_induction): New function.
942 (vect_get_vec_def_for_operand): Support induction.
943 (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
944 induction case.
945 (vectorizable_reduction): Support reduction with induction as one of
946 the operands.
947 (vectorizable_type_demotion): Use def-type of stmt argument rather
948 than dummy def-type.
949
950 * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
951 flag_tree_scev_cprop.
952 * common.opt (tree-scev-cprop): New flag.
953
954 * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
955 call to vect_get_new_vect_var.
956
957 2007-02-06 Ira Rosen <irar@il.ibm.com>
958
959 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
960 vectype is not NULL.
961 (vect_pattern_recog_1): Likewise.
962
963 2007-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
964
965 * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
966 (fold_negate_expr): Likewise.
967
968 2007-02-05 Alexandre Oliva <aoliva@redhat.com>
969
970 PR debug/30189
971 * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
972 even if cv-qualification is the same.
973
974 2007-02-05 Geoffrey Keating <geoffk@apple.com>
975
976 * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
977 __enable_execute_stack on completion.
978
979 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
980
981 * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
982 athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
983 athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
984 athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
985 athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
986 athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
987 athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
988 athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
989
990 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
991
992 * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
993 cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
994 swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
995 fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
996 x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
997 floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
998 floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
999 mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
1000 umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
1001 umuldi3_highpart_rex64, umulsi3_highpart_insn,
1002 umulsi3_highpart_zext, smuldi3_highpart_rex64,
1003 smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
1004 x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
1005 sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
1006 sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
1007 sqrtextenddfxf2_i387): Added amdfam10_decode.
1008
1009 * config/i386/athlon.md (athlon_idirect_amdfam10,
1010 athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
1011 athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
1012 athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
1013 athlon_ivector_store_amdfam10): New define_insn_reservation.
1014 (athlon_idirect_loadmov, athlon_idirect_movstore): Added
1015 amdfam10.
1016
1017 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
1018
1019 * config/i386/athlon.md (athlon_call_amdfam10,
1020 athlon_pop_amdfam10, athlon_lea_amdfam10): New
1021 define_insn_reservation.
1022 (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
1023 athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
1024 athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
1025
1026 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
1027
1028 * config/i386/athlon.md (athlon_sseld_amdfam10,
1029 athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
1030 athlon_mmxssest_short_amdfam10): New define_insn_reservation.
1031
1032 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
1033
1034 * config/i386/athlon.md (athlon_sseins_amdfam10): New
1035 define_insn_reservation.
1036 * config/i386/i386.md (sseins): Added sseins to define_attr type
1037 and define_attr unit.
1038 * config/i386/sse.md: Set type attribute to sseins for insertq
1039 and insertqi.
1040
1041 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
1042
1043 * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
1044 ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
1045 ssecomi_load_amdfam10, ssecomi_amdfam10,
1046 sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
1047 define_insn_reservation.
1048 (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
1049
1050 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
1051
1052 * config/i386/athlon.md (cvtss2sd_load_amdfam10,
1053 cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
1054 cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
1055 cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
1056 cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
1057 cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
1058 define_insn_reservation.
1059
1060 * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
1061 cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
1062 cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
1063 cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
1064 cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
1065
1066 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
1067
1068 * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
1069 athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
1070 athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
1071 (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
1072 athlon_ssemul_load_k8): Added amdfam10.
1073
1074 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
1075
1076 * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
1077 (x86_sse_unaligned_move_optimal): New variable.
1078
1079 * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
1080 m_AMDFAM10.
1081 (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
1082 for unaligned vector SSE double/single precision loads for AMDFAM10.
1083
1084 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
1085
1086 * config/i386/i386.h (TARGET_AMDFAM10): New macro.
1087 (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
1088 Define TARGET_CPU_DEFAULT_amdfam10.
1089 (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
1090 (processor_type): Add PROCESSOR_AMDFAM10.
1091
1092 * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
1093 processor_type in config/i386/i386.h.
1094 Enable imul peepholes for TARGET_AMDFAM10.
1095
1096 * config.gcc: Add support for --with-cpu option for amdfam10.
1097
1098 * config/i386/i386.c (amdfam10_cost): New variable.
1099 (m_AMDFAM10): New macro.
1100 (m_ATHLON_K8_AMDFAM10): New macro.
1101 (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
1102 x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
1103 x86_promote_QImode, x86_integer_DFmode_moves,
1104 x86_partial_reg_dependency, x86_memory_mismatch_stall,
1105 x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
1106 x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
1107 x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
1108 x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
1109 Enable/disable for amdfam10.
1110 (override_options): Add amdfam10_cost to processor_target_table.
1111 Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
1112 processor_alias_table.
1113 (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
1114 (ix86_adjust_cost): Add code for amdfam10.
1115
1116 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
1117
1118 * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
1119 instruction set feature flag. Add new (-mpopcnt) flag for popcnt
1120 instruction. Add new SSE4A (-msse4a) instruction set feature flag.
1121 * config/i386/i386.h: Add builtin definition for SSE4A.
1122 * config/i386/i386.md: Add support for ABM instructions
1123 (popcnt and lzcnt).
1124 * config/i386/sse.md: Add support for SSE4A instructions
1125 (movntss, movntsd, extrq, insertq).
1126 * config/i386/i386.c: Add support for ABM and SSE4A builtins.
1127 Add -march=amdfam10 flag.
1128 * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
1129 * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
1130 and amdfam10.
1131 * doc/extend.texi: Add documentation for SSE4A builtins.
1132
1133 2007-02-05 Bob Wilson <bob.wilson@acm.org>
1134
1135 * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
1136
1137 2007-02-05 Richard Guenther <rguenther@suse.de>
1138
1139 * tree-vectorizer.h (vectorizable_function): Add argument type
1140 argument, change return type.
1141 * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
1142 * tree-vect-transform.c (vectorizable_function): Handle extra
1143 argument, return vectorized function decl.
1144 (build_vectorized_function_call): Remove.
1145 (vectorizable_call): Handle calls with result and argument types
1146 differing. Handle loop vectorization factor correctly.
1147 * targhooks.c (default_builtin_vectorized_function): Adjust for
1148 extra argument.
1149 * targhooks.h (default_builtin_vectorized_function): Likewise.
1150 * target.h (builtin_vectorized_function): Add argument type
1151 argument.
1152 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
1153 extra argument, allow vectorizing of lrintf.
1154 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
1155 documentation of target hook.
1156
1157 2007-02-05 Hans-Peter Nilsson <hp@axis.com>
1158
1159 PR target/30665
1160 * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
1161 ("*andhi_clear", andu (casesi+45)): For size-changed operand where
1162 memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
1163
1164 2007-02-05 Roger Sayle <roger@eyesopen.com>
1165
1166 * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
1167 BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
1168 <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
1169 * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
1170 before canonicalizing sincos to cexpi.
1171 (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
1172
1173 2007-02-05 Roger Sayle <roger@eyesopen.com>
1174
1175 * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
1176 Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
1177 (alpha_init_builtins): Use alpha_add_builtins to process tables.
1178
1179 2007-02-05 Roger Sayle <roger@eyesopen.com>
1180
1181 * mips-tfile.c (initialize_init_file): Correct endianness test.
1182
1183 2007-02-05 Kazu Hirata <kazu@codesourcery.com>
1184
1185 * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
1186 the 'y' constraint.
1187
1188 2007-02-05 Richard Sandiford <richard@codesourcery.com>
1189
1190 * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
1191 saves in a PARALLEL before the register assignments.
1192
1193 2007-02-05 Richard Sandiford <richard@codesourcery.com>
1194
1195 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
1196 DWARF_FRAME_RETURN_COLUMN to be a general register.
1197 * dwarf2out.c (init_return_column_size): New function, split from...
1198 (expand_builtin_init_dwarf_reg_sizes): ...here. Allow both
1199 DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
1200 to be nongeneral registers.
1201 * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
1202 integer registers.
1203 (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
1204 (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
1205
1206 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
1207
1208 * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
1209
1210 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
1211
1212 * cfgloopmanip.c (loop_delete_branch_edge): Removed.
1213 (remove_path): Use can_remove_branch_p and remove_branch instead
1214 of loop_delete_branch_edge.
1215 * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
1216 (tree_transform_and_unroll_loop): Remove dead branches immediately.
1217 Update profile using scale_dominated_blocks_in_loop.
1218 * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
1219 * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
1220 (can_remove_branch_p, remove_branch): Declare.
1221 * tree-cfg.c (tree_can_remove_branch_p): New function.
1222 (tree_cfg_hooks): Add tree_can_remove_branch_p.
1223 * cfgrtl.c (rtl_can_remove_branch_p): New function.
1224 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
1225
1226 2007-02-05 Jan Hubicka <jh@suse.cz>
1227
1228 PR middle-end/30696
1229 * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
1230 nodes in cgraph, don't remove offline copy of the function.
1231
1232 2007-02-04 Jan Hubicka <jh@suse.cz>
1233
1234 * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
1235 vectors might cause maybe_lookup_element_for_expr to be called
1236 on non-sra-candidate.
1237
1238 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
1239
1240 * config/bfin/bfin-modes.def, config/bfin/bfin.c,
1241 config/bfin/bfin.md, config/bfin/predicates.md: Follow
1242 spelling conventions.
1243
1244 2007-02-04 Richard Guenther <rguenther@suse.de>
1245
1246 PR middle-end/30636
1247 * fold-const.c (try_move_mult_to_index): Make sure to not
1248 overflow one dimension of a multi-dimensional array access.
1249
1250 2007-02-04 Jan Hubicka <jh@suse.cz>
1251
1252 * passes.c (init_optimization_passes): Reindent.
1253
1254 2007-02-04 Jan Hubicka <jh@suse.cz>
1255 Eric Botcazou <ebotcazou@adacore.com>
1256
1257 * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
1258 (execute_fixup_cfg): Break out the abnormal goto code.
1259 * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
1260 (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
1261 (optimize_inline_calls): Call make_nonlocal_label_edges.
1262
1263 2007-02-04 Jan Hubicka <jh@suse.cz>
1264
1265 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
1266 true when something was changed.
1267 (rename_ssa_copies): When something was changed, do
1268 TODO_remove_unused_locals.
1269 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
1270 add TODO_remove_unused_locals when instruction was removed.
1271
1272 2007-02-04 Jan Hubicka <jh@suse.cz>
1273
1274 * ipa-inline.c (try_inline): Improve debug output; work on already
1275 inline edges too.
1276 (cgraph_decide_inlining_incrementally): Indent; improve debug output;
1277 call try_inline for already inlined edges too when flattening;
1278 inline also functions that make callee growth but overall unit size
1279 reduce.
1280
1281 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
1282
1283 * config/m32c/bitops.md, config/m32c/jump.md,
1284 config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
1285 config/m32r/m32r.h, config/m32r/m32r.md,
1286 config/m32r/predicates.md, config/m68hc11/larith.asm,
1287 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
1288 config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
1289 config/mips/mips-protos.h, config/mips/mips.c,
1290 config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
1291 config/mn10300/mn10300.h, config/mn10300/predicates.md,
1292 config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
1293 spelling conventions.
1294
1295 * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
1296 Follow spelling conventions.
1297
1298 2007-02-03 Douglas Gregor <doug.gregor@gmail.com>
1299
1300 * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
1301 warn about C++0x compatibility.
1302
1303 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
1304
1305 * config/h8300/h8300.c, config/h8300/h8300.h,
1306 config/h8300/h8300.md: Follow spelling conventions.
1307
1308 2007-02-03 Uros Bizjak <ubizjak@gmail.com>
1309
1310 PR middle-end/30667
1311 * combine.c (try_combine): Do not substitute source operand
1312 with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
1313
1314 2007-02-03 Jan Hubicka <jh@suse.cz>
1315
1316 PR gcov-profile/30650
1317 * value-prof.c (stringop_block_profile): Fix handling of size counter;
1318 do not divide by zero for never executed counters.
1319 (tree_find_values_to_profile): Fix counters.
1320 * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
1321
1322 2007-02-03 Ian Lance Taylor <iant@google.com>
1323
1324 * lower-subreg.c (simple_move_operand): New static function,
1325 broken out of simple_move. Reject LABEL_REF, SYMBOL_REF, and HIGH
1326 operands.
1327 (simple_move): Call simple_move_operand.
1328 (find_decomposable_subregs): Add special handling of MEMs.
1329 (can_decompose_p): Rename from cannot_decompose_p. Reverse
1330 meaning of return value. If we see a hard register, test whether
1331 it can store a word_mode value. Change all callers.
1332
1333 2007-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1334
1335 * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
1336 ftrapv insns and expanders.
1337 (subdi3): Change define_expand operand 1 to arith11_operand, and
1338 operand 2 to reg_or_0_operand. Change constraints of 64-bit insn
1339 pattern to handle reg_or_0 operands. Revise 32-bit insn pattern to
1340 handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
1341 respectively.
1342
1343 PR middle-end/30174
1344 * varasm.c (notice_global_symbol): Treat global objects as weak when
1345 flag_shlib is true.
1346
1347 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1348
1349 * emit-rtl.c (dconstpi): Delete.
1350 (dconstsqrt2): New.
1351 (init_emit_once): Delete dconstpi and init dconstsqrt2.
1352 * real.h (dconstpi): Delete.
1353 (dconstsqrt2): New.
1354 * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
1355 (fold_builtin_hypot): Likewise.
1356
1357 2007-02-03 Tom Tromey <tromey@redhat.com>
1358
1359 PR driver/30246
1360 * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
1361 -gcoff3, -gxcoff3, -gvms3 implies -dD.
1362
1363 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
1364
1365 * c-decl.c, config/avr/avr.c, config/avr/avr.h,
1366 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
1367 config/mn10300/mn10300.c, config/pdp11/pdp11.h,
1368 config/rs6000/cell.md, config/rs6000/darwin.h,
1369 config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
1370 config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
1371 jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
1372 tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
1373 typos. Follow spelling conventions.
1374 * doc/invoke.texi: Follow spelling conventions.
1375
1376 2007-02-03 Roger Sayle <roger@eyesopen.com>
1377
1378 * simplify-rtx.c (simplify_relational_operation_1): Implement some
1379 canonicalization transformations that attempt to simplify integer
1380 constant comparisons to become comparisons against zero.
1381
1382 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1383
1384 * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
1385 fabs(x)*sqrt(2).
1386 * fold-const.c (fold_binary): Fix comment typos. Fold complex
1387 (x,0)-(0,y) into (x,-y). Likewise (0,y)-(x,0) into (-x,y).
1388
1389 2007-02-02 Mike Stump <mrs@apple.com>
1390
1391 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
1392 * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
1393 (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
1394 generate a branch island.
1395
1396 2007-02-02 Bob Wilson <bob.wilson@acm.org>
1397
1398 * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
1399 (xtensa_legitimate_address_p): New.
1400 (xtensa_legitimize_address): New.
1401 (xtensa_output_addr_const_extra): New.
1402 * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
1403 (BASE_REG_P): New.
1404 (REG_OK_FOR_BASE_P): Use BASE_REG_P.
1405 (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
1406 (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
1407 (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
1408 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
1409 (xtensa_legitimize_address): New.
1410 (xtensa_output_addr_const_extra): New.
1411
1412 2007-02-02 Steve Ellcey <sje@cup.hp.com>
1413
1414 * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
1415
1416 2007-02-02 Ian Lance Taylor <iant@google.com>
1417
1418 * expmed.c (expand_divmod): Add comment.
1419
1420 2007-02-02 Kazu Hirata <kazu@codesourcery.com>
1421
1422 * emit-rtl.c (renumber_insns): Remove.
1423 * flags.h: Remove the extern for flag_renumber_insns.
1424 * rtl.h: Remove the prototype for renumber_insns.
1425 * toplev.c (flag_renumber_insns): Remove.
1426
1427 2007-02-02 Hui-May Chang <hm.chang@apple.com>
1428
1429 Revert for x86 darwin:
1430 2005-06-19 Uros Bizjak <uros@kss-loka.si>
1431
1432 * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
1433 code before the following patch under TARGET_MACHO.
1434 (ix86_function_value_regno_p): Likewise.
1435
1436 2007-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1437
1438 * fold-const.c (negate_expr_p, fold_negate_expr): Handle
1439 COMPLEX_EXPR.
1440
1441 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1442
1443 PR target/29682
1444 * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory loads to
1445 general or fp registers. Add comments.
1446 * config/ia64/ia64.md (reg_pred_prefix): Add comment.
1447
1448 2007-02-02 Paolo Bonzini <bonzini@gnu.org>
1449
1450 * pointer-set.c (insert_aux): Only return insertion slot.
1451 (pointer_set_insert): Adjust.
1452 (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
1453 pointer_map_destroy, pointer_map_insert, pointer_map_contains,
1454 pointer_map_traverse): New.
1455 * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
1456 pointer_map_create, pointer_map_destroy, pointer_map_insert,
1457 pointer_map_contains, pointer_map_traverse): Declare.
1458
1459 2007-02-02 Jakub Jelinek <jakub@redhat.com>
1460
1461 PR middle-end/30473
1462 * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
1463 sprintf (str, "%s"). Do not optimize sprintf (str, "nopercent", p++).
1464
1465 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1466
1467 * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
1468
1469 (struct _dep): New type.
1470 (dep_t): New typedef.
1471 (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
1472 (DEP_STATUS): New access macro. The macro with the same name was
1473 renamed to DEP_LINK_STATUS.
1474 (dep_init): Declare function
1475
1476 (struct _dep_link): New type.
1477 (dep_link_t): New typedef.
1478 (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
1479 (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
1480 (DEP_LINK_STATUS): New macro.
1481 (debug_dep_links): New debug function.
1482
1483 (struct _deps_list): New type.
1484 (deps_list_t): New typedef.
1485 (DEPS_LIST_FIRST): New access macro.
1486 (FOR_EACH_DEP_LINK): New cycle macro.
1487 (create_deps_list, free_deps_list, delete_deps_list): Declare
1488 functions.
1489 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
1490 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
1491 (copy_deps_list_change_con): Ditto.
1492
1493 (move_dep_link): Declare function.
1494
1495 (struct _dep_node): New type.
1496 (dep_node_t): New typedef.
1497 (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
1498
1499 (struct haifa_insn_data.back_deps): New field to hold backward
1500 dependencies of the insn.
1501 (struct haifa_insn_data.depend): Rename to forw_deps. Change its type
1502 to deps_list_t.
1503 (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
1504 Change its type to deps_list_t.
1505 (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
1506 (INSN_DEPEND): Rename to INSN_FORW_DEPS.
1507 (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
1508
1509 (INSN_COST): Move to haifa-sched.c. Use insn_cost () instead.
1510
1511 (DEP_STATUS): Rename to DEP_LINK_STATUS. Fix typo in the comment.
1512
1513 (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration and
1514 all callers.
1515 (dep_cost): Declare.
1516
1517 * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
1518 (ds_to_dk, dk_to_ds): New functions.
1519
1520 (init_dep_1): New static function.
1521 (init_dep): New function.
1522 (copy_dep): New static function.
1523
1524 (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
1525 functions.
1526 (detach_dep_link): New static function.
1527 (move_dep_link): New function.
1528
1529 (dep_links_consistent_p, dump_dep_links): New static functions.
1530 (debug_dep_links): New debugging function.
1531
1532 (deps_obstack, dl_obstack, dn_obstack): New static variables.
1533
1534 (alloc_deps_list, init_deps_list): New static functions.
1535 (create_deps_list): New function.
1536 (clear_deps_list): New static function.
1537 (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
1538 (deps_list_consistent_p, dump_deps_list): New static functions.
1539 (debug_deps_list): New function.
1540 (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
1541 functions.
1542 (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
1543
1544 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
1545 use new scheduler dependencies lists.
1546 (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
1547 (sched_analyze): Ditto. Initialize dependencies lists.
1548 (add_forw_dep, compute_forward_dependences): Update to use new
1549 scheduler dependencies lists.
1550
1551 (init_dependency_caches): Init deps_obstack.
1552 (free_dependency_caches): Free deps_obstack.
1553
1554 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
1555 new scheduler dependencies lists.
1556 (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
1557 (add_back_forw_dep, delete_back_forw_dep): Ditto.
1558
1559 * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
1560 Update to use new scheduler dependencies lists.
1561 (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
1562 (debug_dependencies): Ditto.
1563 (schedule_region): Update comments.
1564
1565 * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
1566 scheduler dependencies lists.
1567 (schedule_ebb): Update comments.
1568
1569 * rtl.def (DEPS_LIST): Remove.
1570
1571 * lists.c (unused_deps_list): Remove.
1572 (free_list): Update assertions.
1573
1574 (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
1575 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
1576
1577 * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
1578 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
1579
1580 * haifa-sched.c (comments): Update.
1581 (insn_cost1): Remove. Inline the code into insn_cost ().
1582 (insn_cost): Update to use new scheduler dependencies lists. Move
1583 processing of the dependency cost to dep_cost ().
1584 (dep_cost): New function. Use it instead of insn_cost () when
1585 evaluating cost of the dependency. Use compatible interface to
1586 interact with the target.
1587 (priority): Update to use new scheduler dependencies lists.
1588 (rank_for_schedule): Ditto. Optimize heuristic that prefers the insn
1589 with greater number of insns that depend on the insn.
1590 (schedule_insn): Update to use new scheduler dependencies lists. Add
1591 code to free backward dependencies lists. Inline and optimize code
1592 from resolve_dep () - see PR28071.
1593 (ok_for_early_queue_removal): Update to use new scheduler dependencies
1594 lists. Update call to targetm.sched.is_costly_dependence hook.
1595
1596 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
1597 scheduler dependencies lists.
1598
1599 (resolve_dep): Remove. Move the logic to schedule_insn ().
1600 (init_h_i_d): Initialize dependencies lists.
1601
1602 (process_insn_depend_be_in_spec): Rename to
1603 process_insn_forw_deps_be_in_spec. Update to use new scheduler
1604 dependencies lists.
1605 (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
1606 Update to use new scheduler dependencies lists.
1607 (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
1608
1609 * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
1610 new scheduler dependencies lists.
1611 (build_intra_loop_deps): Ditto.
1612
1613 * target.h (struct _dep): Declare to use in
1614 gcc_target.sched.is_costly_dependence.
1615 (struct gcc_target.sched.adjust_cost): Fix typo.
1616 (struct gcc_target.sched.is_costly_dependence): Change signature to use
1617 single dep_t parameter instead of an equivalent triad.
1618 (struct gcc_target.sched.adjust_cost_2): Remove.
1619
1620 * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
1621
1622 * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
1623
1624 * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
1625 documentation.
1626 (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
1627
1628 * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
1629 (REG_DEP_TRUE): Document.
1630
1631 * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
1632 Change signature to correspond to the targetm.sched.adjust_cost hook.
1633 Update use in TARGET_SCHED_ADJUST_COST_2.
1634 (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
1635 (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
1636 new scheduler dependencies lists.
1637 (ia64_gen_check): Ditto.
1638
1639 * config/mips/mips.c (vr4130_swap_insns_p): Update to use new scheduler
1640 dependencies lists.
1641
1642 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
1643 signature to correspond to the targetm.sched.is_costly_dependence hook.
1644 (is_costly_group): Update to use new scheduler dependencies lists.
1645
1646 * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
1647 instead of INSN_COST () macro.
1648
1649 2007-02-01 Ian Lance Taylor <iant@google.com>
1650
1651 * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
1652
1653 2007-02-01 Guy Martin <gmsoft@gentoo.org>
1654
1655 * pa.md (tp_load): Correct mfctl instruction syntax.
1656
1657 2007-02-01 Geoffrey Keating <geoffk@apple.com>
1658
1659 * config/rs6000/rs6000.c (rs6000_stack_info): Correct
1660 altivec_padding_size calculation on AIX. Improve comment, add
1661 assert to verify that it's right.
1662
1663 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
1664 64-bit.
1665
1666 2007-2-01 Seongbae Park <seongbae.park@gmail.com>
1667
1668 PR inline-asm/28686
1669 * global.c (global_alloc): Add mising initialization of
1670 ELIMINABLE_REGSET.
1671
1672 2007-02-01 Roger Sayle <roger@eyesopen.com>
1673
1674 * alias.c (init_alias_analysis): Correct whitespace.
1675 * bb-reorder.c (fix_edges_for_rarely_executed_code,
1676 partition_hot_cold_basic_blocks): Likewise.
1677 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
1678 expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
1679 maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
1680 fold_builtin_snprintf_chk, fold_builtin_printf,
1681 fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
1682 do_mpfr_arg3, do_mpfr_sincos): Likewise.
1683 * cfgcleanup.c (cleanup_cfg): Likewise.
1684 * cfgexpand.c (tree_expand_cfg): Likewise.
1685 * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
1686 * function.c (get_next_funcdef_no): Likewise.
1687 * gengtype.c (main): Likewise.
1688 * genmodes.c (main): Likewise.
1689 * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
1690 * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
1691 * ifcvt.c (noce_emit_move_insn): Likewise.
1692 * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
1693 Likewise.
1694 * stor-layout.c (get_best_mode): Likewise.
1695 * tree-ssa-loop-niter.c (get_val_for): Likewise.
1696 * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
1697 scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
1698 perform_var_substitution, solve_graph): Likewise.
1699 * tree-vrp.c (vrp_finalize): Likewise.
1700
1701 2007-02-01 Ian Lance Taylor <iant@google.com>
1702
1703 * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
1704 high part of a paradoxical subreg, return a constant zero.
1705
1706 2007-02-01 Zdenek Dvorak <dvorakz@suse.cz>
1707
1708 * toplev.c (lang_dependent_init): Call init_set_costs.
1709 * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
1710
1711 2007-02-01 Richard Guenther <rguenther@suse.de>
1712
1713 PR middle-end/30656
1714 * fold-const.c (fold_negate_expr): Allow negating a
1715 constant if overflow does not change.
1716
1717 2007-02-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1718
1719 * doc/c-tree.texi (Expression trees): Improve markup.
1720 * doc/tm.texi (Register Classes, Addressing Modes)
1721 (Floating Point): Fix spacing after abbreviations. Fix some
1722 typos.
1723
1724 2007-02-01 Ben Elliston <bje@au.ibm.com>
1725
1726 * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
1727 * doc/contrib.texi: Likewise.
1728 * doc/install.texi: Likewise.
1729
1730 2007-01-31 Richard Henderson <rth@redhat.com>
1731 Ian Lance Taylor <iant@google.com>
1732
1733 * lower-subreg.c: New file.
1734 * rtl.def (CONCATN): Define.
1735 * passes.c (init_optimization_passes): Add pass_lower_subreg and
1736 pass_lower_subreg2.
1737 * emit-rtl.c (update_reg_offset): New static function, broken out
1738 of gen_rtx_REG_offset.
1739 (gen_rtx_REG_offset): Call update_reg_offset.
1740 (gen_reg_rtx_offset): New function.
1741 * regclass.c: Revert patch of 2006-03-05, restoring
1742 reg_scan_update.
1743 (clear_reg_info_regno): New function.
1744 * dwarf2out.c (concatn_loc_descriptor): New static function.
1745 (loc_descriptor): Handle CONCATN.
1746 * common.opt (fsplit_wide_types): New option.
1747 * opts.c (decode_options): Set flag_split_wide_types when
1748 optimizing.
1749 * timevar.def (TV_LOWER_SUBREG): Define.
1750 * rtl.h (gen_reg_rtx_offset): Declare.
1751 (reg_scan_update): Declare.
1752 * regs.h (clear_reg_info_regno): Declare.
1753 * tree-pass.h (pass_lower_subreg): Declare.
1754 (pass_lower_subreg2): Declare.
1755 * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
1756 (Optimize Options): Add -fsplit-wide-types to -O1 list. Document
1757 -fsplit-wide-types.
1758 * doc/rtl.texi (Regs and Memory): Document concat and concatn.
1759 * Makefile.in (OBJS-common): Add lower-subreg.o.
1760 (lower-subreg.o): New target.
1761
1762 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
1763
1764 * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
1765
1766 2007-01-31 Anatoly Sokolov <aesok@post.ru>
1767
1768 PR target/19087
1769 * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
1770
1771 2007-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1772
1773 PR middle-end/29335
1774 * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
1775
1776 2007-01-31 Zdenek Dvorak <dvorakz@suse.cz>
1777
1778 * cfgloop.h: Include vec-prim.h.
1779 (enum li_flags): Remove LI_ONLY_OLD.
1780 (loop_iterator): Changed.
1781 (fel_next, fel_init): Iterate over loop tree.
1782 (FOR_EACH_LOOP_BREAK): New macro.
1783 * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
1784 FOR_EACH_LOOP.
1785 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
1786 * modulo-sched.c (sms_schedule): Ditto.
1787 * tree-vectorizer.c (vectorize_loops): Ditto.
1788 * doc/loop.texi: Update information on loop numbering and behavior of
1789 FOR_EACH_LOOP wrto new loops.
1790 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
1791 add_to_evolution_1): Test nestedness of loops instead of comparing
1792 their numbers.
1793 * tree-chrec.c (chrec_fold_plus_poly_poly,
1794 chrec_fold_multiply_poly_poly, chrec_evaluate,
1795 hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
1796 reset_evolution_in_loop): Ditto.
1797 * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
1798
1799 2007-01-31 Dirk Mueller <dmueller@suse.de>
1800
1801 * c-common.c (warn_about_parentheses): Separate warning about
1802 un-parenthized sequence of comparison operators from the one
1803 which is supposed to warn about x <= y <= z.
1804
1805 2007-01-31 Uros Bizjak <ubizjak@gmail.com>
1806
1807 * optabs.h (enum optab_index): Add new OTI_isinf.
1808 (isinf_optab): Define corresponding macro.
1809 * optabs.c (init_optabs): Initialize isinf_optab.
1810 * genopinit.c (optabs): Implement isinf_optab using isinf?f2
1811 patterns.
1812 * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
1813 (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
1814 using isinf_optab.
1815 (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
1816 expand_builtin_interclass_mathfn.
1817 * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
1818 * config/i386/i386.md (UNSPEC_FXAM): New constant.
1819 (fxam<mode>2_i387): New insn pattern.
1820 (isinf<mode>2) New expander to implement isinf, isinff and isinfl
1821 built-in functions as x87 inline asm.
1822
1823 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
1824
1825 * gcc/config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
1826
1827 2007-01-30 Eric Christopher <echristo@apple.com>
1828
1829 * config.gcc: Add geode.
1830
1831 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
1832
1833 * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
1834 ipa-inline.c, tree-profile.c, tree-ssa-live.c,
1835 tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
1836 value-prof.c: Fix comment typos.
1837
1838 2007-01-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1839
1840 PR c++/24745
1841 * doc/invoke.texi (Wpointer-arith): Document warning.
1842
1843 2007-01-30 Janis Johnson <janis187@us.ibm.com>
1844
1845 * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
1846 the list of discrepancies from the draft TR.
1847
1848 2007-01-30 Dirk Mueller <dmueller@suse.de>
1849
1850 PR c++/30601
1851 * doc/invoke.texi (-Wreturn-type): Update description to
1852 match new behavior.
1853
1854 2007-01-30 Richard Sandiford <richard@codesourcery.com>
1855
1856 * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
1857
1858 2007-01-30 Uros Bizjak <ubizjak@gmail.com>
1859
1860 * builtins.c (expand_builtin_int_interclass_roundingfn): New function
1861 to handle optabs that operate on floating point input argument and
1862 output to integer output.
1863 (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
1864 (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
1865 (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
1866 expand_builtin_interclass_mathfn ().
1867 * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
1868 (ilogbsi2): Remove.
1869 (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
1870 ilogbl built-in functions as x87 intrinsics.
1871
1872 2007-01-30 Richard Guenther <rguenther@suse.de>
1873
1874 PR middle-end/27657
1875 * dwarf2out.c (reference_to_unused): Query varpool if the
1876 variable was output.
1877
1878 2007-01-30 Richard Guenther <rguenther@suse.de>
1879
1880 PR middle-end/30313
1881 * passes.c (execute_one_pass): Reset in_gimple_form to not
1882 confuse non-unit-at-a-time mode.
1883
1884 2007-01-29 Roger Sayle <roger@eyesopen.com>
1885 Richard Guenther <rguenther@suse.de>
1886
1887 * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
1888 avoid undefined behaviour on overflow. Use force_fit_type_double
1889 to construct the constant with the specified TREE_OVERFLOW.
1890
1891 2007-01-29 Janis Johnson <janis187@us.ibm.com>
1892
1893 * config/dfp-bit.c: Add parameterized support for fp exceptions.
1894 * config/dfp-bit.h: Ditto.
1895
1896 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1897
1898 * c-decl.c (pop_scope): Replace warnings with call to
1899 warn_for_unused_label.
1900 * c-common.h (warn_for_unused_label): Declare.
1901 * c-common.c (warn_for_unused_label): Define.
1902
1903 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1904
1905 * tree-optimize.c (update_inlined_to_pointers): Delete unused
1906 function.
1907
1908 2007-01-29 Janis Johnson <janis187@us.ibm.com>
1909
1910 * Makefile.in (USER_H): Remove decfloat.h.
1911 * ginclude/decfloat.h: Delete, moving contents to ...
1912 * ginclude/float.h: Add support for decimal floating point,
1913 guarded by __STDC_WANT_DEC_FP__.
1914
1915 2007-01-29 Mike Stump <mrs@apple.com>
1916
1917 * doc/gccint.texi (Top): Rename Loop Representation to Loop
1918 Analysis and Representation to resolve case insensitive conflict.
1919 * doc/loop.texi (Loop Analysis and Representation): Likewise.
1920
1921 2007-01-28 Daniel Berlin <dberlin@dberlin.org>
1922
1923 * tree.h (struct tree_memory_tag): Add aliases member.
1924 (MTAG_ALIASES): New macro.
1925 * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
1926 (add_may_alias): Remove pointer-set. Update for may_aliases being
1927 a bitmap.
1928 (mark_aliases_call_clobbered): Update for may_aliases being a
1929 bitmap.
1930 (compute_tag_properties): Ditto.
1931 (create_partition_for): Ditto.
1932 (compute_memory_partitions): Ditto.
1933 (dump_may_aliases_for): Ditto.
1934 (is_aliased_with): Ditto.
1935 (add_may_alias_for_new_tag): Ditto.
1936 (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
1937 (compute_is_aliased): New function.
1938 (compute_may_aliases): Call compute_is_aliased).
1939 (init_alias_info): Initialize alias_bitmap_obstack.
1940 (union_alias_set_into): New function.
1941 (compute_flow_sensitive_aliasing): Use union_aliases_into.
1942 (have_common_aliases_p): Rewrite to take two bitmaps and use
1943 intersection.
1944 (compute_flow_insensitive_aliasing): Stop using pointer-sets.
1945 Update for bitmaps.
1946 (finalize_ref_all_pointers): Update for add_may_alias changes.
1947 (new_type_alias): Ditto.
1948 * tree-flow-inline.h (may_aliases): Return a bitmap.
1949 * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
1950 * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
1951 may_aliases being a bitmap.
1952 * tree-flow.h (struct var_ann_d): Remove may_aliases member.
1953 may_aliases now returns a bitmap.
1954 * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
1955 being a bitmap.
1956 * tree-ssa-operands.c (add_virtual_operand): Update for
1957 may_aliases being a bitmap.
1958
1959 2007-01-29 Daniel Berlin <dberlin@dberlin.org>
1960
1961 PR tree-optimization/30630
1962 * tree-ssa-structalias.c (do_complex_constraint): Mark correct
1963 variable as changed.
1964
1965 2007-01-29 Simon Martin <simartin@users.sourceforge.net>
1966
1967 PR c++/28266
1968 * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
1969 expanded only once even if an error occurs.
1970
1971 2007-01-29 Ben Elliston <bje@au.ibm.com>
1972
1973 * gcov-io.h (__gcov_indirect_call_profiler): Declare.
1974 (__gcov_average_profiler): Likewise.
1975 (__gcov_ior_profiler): Likewise.
1976 (__gcov_merge_ior): Likewise.
1977
1978 2007-01-28 Jan Hubicka <jh@suse.cz>
1979
1980 * builtins.c (expand_builtin_memset): Fix typo in my last patch.
1981 * value-prof.c (stringop_block_profile): Likewise.
1982
1983 2007-01-28 Jan Hubicka <jh@suse.cz>
1984
1985 * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
1986 variant handling histograms; add wrapper.
1987 (clear_storage_via_libcall): Export.
1988 (emit_block_move_hints): Break out from ...; add histograms.
1989 (emit_block_move): ... this one.
1990 (clear_storage_hints): Break out from ...; add histograms.
1991 (clear_storage): ... this one.
1992 (set_storage_via_memset): Handle histogram.
1993 * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
1994 (clear_storage_hints, clear_storage_via_libcall): Declare.
1995 (set_storage_via_setmem): Update prototype.
1996 * doc/md.texi (movmem, setmem): Document new arguments.
1997
1998 * value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add
1999 new histograms.
2000 (stringop_block_profile): New global function.
2001 (tree_stringops_values_to_profile): Profile block size and alignment.
2002 * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
2003 HIST_TYPE_IOR.
2004 (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
2005 (stringop_block_profile): Declare.
2006 * builtins.c: Include value-prof.h.
2007 (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
2008 * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
2009 (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
2010 (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
2011 * profile.c (instrument_values): Add new counters.
2012 * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
2013 calls.
2014 * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
2015 (tree_init_edge_profiler): Build new profilers.
2016 (tree_gen_average_profiler, tree_gen_ior_profiler): New.
2017 (pass_tree_profile): Add dump.
2018 (tree_profile_hooks): Update.
2019 * Makefile.in (LIBGCOV): Add new constants.
2020 * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
2021 __gcov_ior_profiler): New.
2022 * i386.md (movmem/setmem expanders): Add new optional arguments.
2023
2024 2007-01-28 David Edelsohn <edelsohn@gnu.org>
2025
2026 * doc/md.texi (Standard Pattern Names): Document blockage pattern.
2027
2028 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
2029
2030 * tree-ssa-loop-unswitch.c: Include tree-inline.h.
2031 (tree_unswitch_single_loop): Pass eni_size_weights to
2032 tree_num_loop_insns.
2033 * tree-ssa-loop-manip.c: Include tree-inline.h.
2034 (can_unroll_loop_p): Pass eni_size_weights to
2035 tree_num_loop_insns.
2036 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
2037 Pass eni_size_weights to estimate_num_insns.
2038 * tree.h (init_inline_once): Export.
2039 * toplev.c (backend_init): Call init_inline_once.
2040 * cgraphunit.c (cgraph_process_new_functions,
2041 cgraph_analyze_function): Pass eni_inlining_weights to
2042 estimate_num_insns.
2043 * ipa-inline.c (compute_inline_parameters): Ditto.
2044 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
2045 to estimate_num_insns.
2046 (try_unroll_loop_completely): Pass eni_size_weights to
2047 tree_num_loop_insns.
2048 * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
2049 ot estimate_num_insns.
2050 * tree-ssa-loop-prefetch.c: Include tree-inline.h.
2051 (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
2052 * tree-inline.c (eni_inlining_weights, eni_size_weights,
2053 eni_time_weights): New variables.
2054 (init_inline_once): Initialize them.
2055 (struct eni_data): Mew.
2056 (estimate_num_insns_1, estimate_num_insns): Use weights.
2057 * tree-inline.h (struct eni_weights_d): New.
2058 (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
2059 (estimate_num_insns): Declaration changed.
2060 * cfgloop.h (tree_num_loop_insns): Declaration changed.
2061 * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
2062 tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
2063
2064 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
2065
2066 * tree-data-ref.c (conflict_fn): Assert that the number of affine
2067 relations in the conflict function is valid.
2068
2069 2007-01-27 Ian Lance Taylor <iant@google.com>
2070
2071 * common.opt: Add fstrict-overflow.
2072 * opts.c (decode_options): Set flag_strict_overflow if -O2.
2073 * flags.h (TYPE_OVERFLOW_WRAPS): Define.
2074 (TYPE_OVERFLOW_UNDEFINED): Define.
2075 (TYPE_OVERFLOW_TRAPS): Define. This replaces TYPE_TRAP_SIGNED.
2076 Replace all uses.
2077 * tree.h (TYPE_TRAP_SIGNED): Don't define.
2078 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
2079 (fold_negate_expr): Likewise.
2080 (make_range): Likewise.
2081 (extract_muldiv_1): Likewise.
2082 (maybe_canonicalize_comparison): Likewise.
2083 (fold_comparison): Likewise.
2084 (fold_binary): Likewise.
2085 (tree_expr_nonnegative_p): Likewise.
2086 (tree_expr_nonzero_p): Likewise.
2087 * tree-vrp.c (compare_values): Likewise.
2088 (extract_range_from_binary_expr): Likewise.
2089 (extract_range_from_unary_expr): Likewise.
2090 * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
2091 Likewise.
2092 (nowrap_type_p): Likewise.
2093 * tree-scalar-evolution.c (simple_iv): Likewise.
2094 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
2095 (build_range_check): Likewise.
2096 (extract_muldiv_1): Likewise.
2097 (fold_comparison): Likewise.
2098 * tree-vrp.c (vrp_int_const_binop): Likewise.
2099 (extract_range_from_unary_expr): Likewise.
2100 * convert.c (convert_to_integer): Likewise.
2101 * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
2102 (fold_comparison): Likewise.
2103 (fold_binary): Likewise.
2104 * optabs.c (optab_for_tree_code): Likewise.
2105 * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
2106 * simplify-rtx.c (simplify_const_relational_operation): Check
2107 flag_strict_overflow and flag_trapv.
2108 (simplify_const_relational_operation): Likewise.
2109 * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
2110 (Optimize Options): Add -fstrict-overflow to -O2 list. Document
2111 -fstrict-overflow.
2112
2113 2007-01-27 Roger Sayle <roger@eyesopen.com>
2114
2115 * tree.c (tree_fold_gcd): Delete.
2116 * tree.h (tree_fold_gcd): Remove prototype.
2117 * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
2118 test whether one constant integer is a multiple of another. Instead
2119 call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
2120 * fold-const.c (multiple_of_p): We've determined both TOP and
2121 BOTTOM are integer constants so we can call int_const_binop directly
2122 instead of the more generic const_binop.
2123
2124 2007-01-27 Roger Sayle <roger@eyesopen.com>
2125
2126 * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
2127 1*X check that the constant hasn't overflowed, to preserve the
2128 TREE_OVERFLOW bit.
2129 (round_up): Provide an efficient implementation when rouding-up an
2130 INTEGER_CST to a power-of-two.
2131
2132 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2133
2134 * doc/sourcebuild.texi: Add comma for clarity.
2135 * doc/extend.texi: Fix some typos.
2136 * doc/passes.texi: Likewise.
2137 * doc/cppinternals.texi: Likewise.
2138 * doc/c-tree.texi: Likewise.
2139 * doc/tree-ssa.texi: Likewise.
2140 * doc/install.texi: Likewise.
2141
2142 2007-01-27 Jan Hubicka <jh@suse.cz>
2143
2144 * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
2145 (pass_sra): Do not require alias information.
2146 * passes.c (init_optimization_passes): Add SRA
2147
2148 2007-01-27 Steven Bosscher <steven@gcc.gnu.org>
2149
2150 * tracer.c (rest_of_handle_tracer): We already cleaned
2151 up the CFG in tracer() so don't do it here again.
2152 * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
2153 cleanup_cfg here, either. And don't call renumber_insns.
2154
2155 * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
2156 and BB_HEAD are in the insn stream here. Instead make sure
2157 that BB_INSN is valid on all insns. Also, do check here that
2158 there are no pending branch predictions...
2159 (rtl_verify_flow_info): ...instead of doing it here. Checks
2160 for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
2161 here.
2162
2163 2007-01-26 Roger Sayle <roger@eyesopen.com>
2164
2165 * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
2166 function to simplify/factorize operand order canonicalization.
2167 (ix86_fixup_binary_operands): Reorganize using the above function.
2168 (ix86_binary_operator_ok): Likewise.
2169
2170 2007-01-27 Jakub Jelinek <jakub@redhat.com>
2171
2172 * genattrtab.c (struct attr_value_list, insn_code_values): Move to
2173 file scope from optimize_attrs.
2174 (simplify_test_exp): If insn_code_values is not NULL, use it to speed
2175 up search.
2176 (optimize_attrs): Clear insn_code_values after freeing it.
2177
2178 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
2179
2180 * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
2181 a parts.base assignment.
2182
2183 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
2184
2185 * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
2186 (compute_subscript_distance, initialize_data_dependence_relation,
2187 finalize_ddr_dependent, analyze_ziv_subscript,
2188 analyze_siv_subscript_cst_affine,
2189 compute_overlap_steps_for_affine_univar,
2190 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
2191 analyze_siv_subscript, analyze_miv_subscript,
2192 analyze_overlapping_iterations, subscript_dependence_tester_1,
2193 compute_self_dependence, free_dependence_relation): Work
2194 with affine_fn instead of chrecs.
2195 (dump_affine_function, dump_conflict_function, affine_function_equal_p,
2196 common_affine_function, affine_function_base,
2197 affine_function_constant_p, affine_fn_op, affine_fn_plus,
2198 affine_fn_minus, affine_fn_free, conflict_fn_not_known,
2199 conflict_fn_no_dependence, free_conflict_function, free_subscripts,
2200 conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
2201 (all_chrecs_equal_p): Removed.
2202 * tree-data-ref.h (affine_fn, conflict_function): New types.
2203 (struct subscript): Change type of conflicting_iterations_in_a
2204 and conflicting_iterations_in_b.
2205
2206 2007-01-26 Steve Ellcey <sje@cup.hp.com>
2207
2208 PR other/30182
2209 * config/pa/pa.h (TARGET_HPUX_11): New.
2210 * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
2211 * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
2212
2213 2007-01-26 Daniel Berlin <dberlin@dberlin.org>
2214 Richard Guenther <rguenther@suse.de>
2215
2216 * tree-ssa-structalias.c (solve_graph): Handle case
2217 we merged the variable to another.
2218
2219 2007-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2220
2221 * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
2222 functions.
2223
2224 * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
2225 catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
2226
2227 2007-01-25 DJ Delorie <dj@redhat.com>
2228
2229 * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
2230 allow changes to modes which don't fit in those registers.
2231
2232 * reload1.c (choose_reload_regs): Check for invalid subregs before
2233 computing their locations, not after.
2234
2235 2007-01-25 Geoffrey Keating <geoffk@apple.com>
2236
2237 PR 25127
2238 * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
2239 save Altivec registers in an eh_return function.
2240 (compute_vrsave_mask): Likewise.
2241 (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
2242 for saving Altivec registers.
2243 (rs6000_emit_prologue): Don't allocate stack twice in
2244 eh_return function. Correct expected value of altivec_save_offset
2245 when using save_world. Describe save of R0 to stack when using
2246 save_world. Describe stack pointer adjustment when using
2247 save_world. Remove duplicated eh_return parameter register saving.
2248 Update sp_offset variable after save_world.
2249 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
2250 darwin-world.asm.
2251 (LIB2FUNCS_EXTRA): Add darwin-world.asm.
2252 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
2253 implies Altivec.
2254
2255 2007-01-25 Steve Ellcey <sje@cup.hp.com>
2256
2257 * config.gcc (ia64*-*-hpux*): Make posix threads the default.
2258
2259 2007-01-25 Steve Ellcey <sje@cup.hp.com>
2260
2261 PR other/30182
2262 * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
2263 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
2264
2265 2007-01-25 Richard Guenther <rguenther@suse.de>
2266
2267 * doc/invoke.texi (-Wcoverage-mismatch): Document.
2268 * common.opt (-Wcoverage-mismatch): New warning option.
2269 * coverage.c (get_coverage_counts): Ignore coverage mismatch
2270 if -Wcoverage-mismatch is given.
2271
2272 2007-01-25 Razya Ladelsky <razya@il.ibm.com>
2273
2274 * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
2275 (ipcp_driver): Change to static definition.
2276 Add dumping of the ifunctions.
2277 (constant_val_insert): Remove unused parameter. Support for SSA.
2278 (ipcp_propagate_const): Support for SSA.
2279 (ipcp_profile_bb_print): Print only analyzed nodes.
2280 (ipcp_replace_map_create): Remove support for Fortran constant
2281 for now.
2282 * ipa-prop.c (ipa_method_modify_stmt,
2283 ipa_callsite_compute_param): Support for SSA.
2284 * ipa-prop.h (ipcp_driver): Remove declaration.
2285 (IS_VALID_TREE_MAP_INDEX): Add define.
2286
2287 2007-01-24 Geoffrey Keating <geoffk@apple.com>
2288
2289 * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
2290
2291 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2292
2293 PR middle-end/30447
2294 * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
2295 constant argument to cabs and do it without checking for
2296 -funsafe-math-optimizations.
2297
2298 2007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
2299
2300 * c-common.h (RID_FIRST_CXX0X): New.
2301 (RID_LAST_CXX0X): New.
2302 * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
2303 by -Wall.
2304 * c.opt (Wc++0x-compat): New.
2305 * doc/invoke.texi (-Wc++0x-compat): Document.
2306
2307 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2308
2309 * builtins.c (fold_builtin_carg): New.
2310 (fold_builtin_1): Use it.
2311
2312 2007-01-24 Jan Hubicka <jh@suse.cz>
2313
2314 * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
2315
2316 * ipa-inline.c (initial_insns, max_insns): Delete.
2317 (compute_max_insns): New function.
2318 (cgraph_decide_inlining_of_small_function): Use it; take minimal amount
2319 of insns as base for code growth.
2320 (cgraph_decide_inlining): Make initial_insns local; do not compute
2321 max_insns.
2322 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
2323 * doc/invoke.texi (inline-unit-growth): Update docs.
2324
2325 2007-01-24 Jakub Jelinek <jakub@redhat.com>
2326
2327 * config/i386/i386.h (x86_cmpxchg16b): Remove const.
2328 (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
2329 * config/i386/i386.c (x86_cmpxchg16b): Remove const.
2330 (override_options): Add PTA_CX16 flag. Set x86_cmpxchg16b
2331 for CPUs that have PTA_CX16 set.
2332
2333 PR middle-end/27416
2334 * gimplify.c (omp_check_private): New function.
2335 (gimplify_scan_omp_clauses): Use it for
2336 firstprivate/lastprivate/reduction.
2337
2338 PR middle-end/30494
2339 * gimplify.c (omp_add_variable): Don't call omp_notice_variable
2340 on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
2341
2342 PR middle-end/30421
2343 * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
2344 If lower_lastprivate_clauses emits some statements, append them
2345 to dlist rather than body_p and to body_p append an initializer.
2346 (lower_omp_for): Adjust caller.
2347
2348 2007-01-24 Steve Ellcey <sje@cup.hp.com>
2349
2350 * target.h (globalize_decl_name): New.
2351 * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
2352 * output.h (default_globalize_decl_name): New.
2353 * varasm.c (asm_output_bss): Use globalize_decl_name instead of
2354 globalize_label.
2355 (globalize_decl): Ditto.
2356 (default_globalize_decl_name): New.
2357 * config/ia64/ia64.c (ia64_globalize_decl_name): New.
2358 (ia64_handle_version_id_attribute): New.
2359 (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
2360 (ia64_asm_output_external): Use globalize_decl_name instead
2361 of globalize_label.
2362 * doc/extend.texi (version_id): New pragma.
2363 * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
2364
2365 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
2366
2367 * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
2368 _uleb128_t and _Unwind_SWord with _sleb128_t.
2369 * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program,
2370 uw_frame_state_for, uw_update_context_1): Likewise.
2371 * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
2372 * unwind-pe.h (read_uleb128, read_sleb128,
2373 read_encoded_value_with_base): Likewise.
2374 * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
2375
2376 2007-01-24 Richard Guenther <rguenther@suse.de>
2377
2378 * builtins.c (expand_builtin_cexpi): Get the fndecl
2379 for cexp in the correct way.
2380
2381 2007-01-24 Jan Hubicka <jh@suse.cz>
2382
2383 * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS of calls.
2384
2385 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
2386
2387 * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
2388 (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
2389 __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
2390 __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
2391 __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
2392 __SIZEOF_PTRDIFF_T__.
2393 * doc/cpp.texi: Documentation for the new builtin macros added.
2394
2395 2007-01-24 Uros Bizjak <ubizjak@gmail.com>
2396
2397 * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
2398 log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
2399 instead of operands[2] to avoid access past the end of array.
2400
2401 2007-01-24 Richard Sandiford <richard@codesourcery.com>
2402
2403 * reload1.c (emit_reload_insns): Pass the reload register
2404 for a non-spill output reload through forget_old_reloads_1.
2405
2406 2007-01-23 Joseph Myers <joseph@codesourcery.com>
2407
2408 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2409 _SOFT_DOUBLE if doubles use software floating-point.
2410 * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
2411 double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
2412 * config/rs6000/darwin-ldouble.c: Also compile functions for
2413 hard-float without FPRs. Use fmsub function for all __NO_FPRS__
2414 cases. Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
2415 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
2416 commented-out long double override.
2417 (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
2418 * config/rs6000/eabispe.h: Likewise.
2419 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
2420 long double for non-SPE.
2421 (rs6000_handle_option): Likewise.
2422 (invalid_e500_subreg): Disallow more subregs involding DImode,
2423 DFmode, TImode or TFmode.
2424 (rs6000_legitimate_offset_address_p): Check TFmode offsets for
2425 E500 double.
2426 (legitimate_lo_sum_address_p): Also check for TFmode for E500
2427 double.
2428 (rs6000_legitimize_address): Also handle TFmode for E500 double.
2429 (rs6000_legitimize_reload_address): Also handle TFmode for E500
2430 double.
2431 (rs6000_legitimate_address): Also check for TFmode for E500
2432 double.
2433 (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
2434 (spe_build_register_parallel): Handle TFmode and TCmode.
2435 (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
2436 double.
2437 (function_arg): Handle TFmode and TCmode for E500 double.
2438 (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
2439 in general.
2440 (print_operand): Handle TFmode and TImode for %y.
2441 (rs6000_generate_compare): Handle TFmode comparisons for E500
2442 double.
2443 (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
2444 (rs6000_function_value): Handle TFmode and TCmode for E500 double.
2445 (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
2446 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
2447 TFmode for E500 double.
2448 * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
2449 (floatsidf2): Enable for E500 double.
2450 (movtf_softfloat): Use rs6000_nonimmediate_operand.
2451 (extenddftf2): Change to extenddftf2_fprs.
2452 (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
2453 depending on TARGET_E500_DOUBLE.
2454 (extendsftf2): Enable for E500 double.
2455 (trunctfdf2): Enable for E500 double.
2456 (trunctfsf2): Change to trunctfsf2_fprs.
2457 (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
2458 depending on TARGET_E500_DOUBLE.
2459 (floatsitf2): Enable for E500 double.
2460 (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
2461 (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
2462 gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
2463 (negtf2): Change to negtf2_internal.
2464 (negtf2): New expander.
2465 (abstf2): Enable for E500 double. Call gen_spe_abstf2_tst,
2466 gen_spe_abstf2_cmp or gen_abstf2_internal depending on
2467 TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
2468 (movdi_internal32): Use rs6000_nonimmediate_operand.
2469 (unnamed splitter): Likewise.
2470 * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
2471 TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
2472 (SPE64TF, DITI): New mode macros.
2473 (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
2474 modes.
2475 (frob_tf_ti): New.
2476 (frob_<mode>_di_2): New.
2477 (frob_tf_di_8_2): New.
2478 (frob_di_df): Change to frob_di_<mode>; allow more modes.
2479 (frob_ti_tf): New.
2480 (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
2481 more modes.
2482 (frob_ti_<mode>_8_2): New.
2483 (frob_ti_tf_2): New.
2484 (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
2485 mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
2486 TFmode.
2487 (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
2488 mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
2489 (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
2490 spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
2491 spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
2492 (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
2493 tsttflt_gp): New.
2494
2495 2007-01-23 Ian Lance Taylor <iant@google.com>
2496
2497 * Makefile.in (OBJS-common): Reformat, alphabetize, but put
2498 insn-*.o first.
2499 (OBJS-archive): Reformat, alphabetize.
2500 (OBJS): Change out_object_file to OBJS-md.
2501
2502 2007-01-23 Uros Bizjak <ubizjak@gmail.com>
2503
2504 * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
2505 JUMP_P and CALL_P predicates where applicable.
2506 * config/i386/i386.c: Ditto.
2507 * config/i386/i386.md: Ditto.
2508 * config/i386/mmx.md: Ditto.
2509 * config/i386/predicates.md: Ditto.
2510
2511 2007-01-22 Andreas Schwab <schwab@suse.de>
2512
2513 * config/m68k/m68k.h: Fix comment.
2514
2515 2007-01-22 Jan Hubicka <jh@suse.cz>
2516
2517 * passes.c (init_optimization_passes): Do not rerun
2518 pass_early_warn_uninitialized.
2519
2520 2007-01-22 Richard Guenther <rguenther@suse.de>
2521
2522 PR tree-optimization/30038
2523 * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
2524 function.
2525 (execute_cse_sincos_1): Likewise.
2526 (execute_cse_sincos): Likewise.
2527 (gate_cse_sincos): Likewise.
2528 (pass_cse_sincos): New pass CSEing sin() and cos() calls using
2529 the cexpi() canonicalization of sincos().
2530 * tree-pass.h (pass_cse_sincos): Declare.
2531 * passes.c (init_optimization_passes): New pass pas_cse_sincos.
2532
2533 2007-01-21 Eric Botcazou <ebotcazou@libertysurf.fr>
2534
2535 PR rtl-optimization/29329
2536 * combine.c (replaced_rhs_insn): Rename to i2mod.
2537 (replaced_rhs_value): Rename to i2mod_new_rhs.
2538 (i2mod_old_rhs): New global variable.
2539 (combine_instructions): Adjust for above change. Save a copy of
2540 the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
2541 note are substituted in the second instruction.
2542 (distribute_notes) <REG_DEAD>: Adjust for above change. Do not
2543 ditch the note if it pertains to the second eliminated register
2544 and this register is mentioned in i2mod_old_rhs.
2545
2546 Revert:
2547 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
2548
2549 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
2550 the insn to which the note was originally attached.
2551
2552 2007-01-21 Jan Hubicka <jh@suse.cz>
2553
2554 * ipa-inline.c (inlining_mode): Comment, move up.
2555 (cgraph_decide_inlining_incrementally): Do not perform inlining
2556 itself; fix handling of flattening of self recursive functions.
2557 (cgraph_find_cycles): Remove.
2558 (cgraph_flatten_node): Remove.
2559 (cgraph_decide_inlining): Use incremental inliner to handle flattening.
2560 (try_inline): New function.
2561 (cgraph_early_inlining): Update call of
2562 cgraph_decide_inlining_incrementally. Apply inlining here.
2563 (apply_inline): Update call of cgraph_decide_inlining_incrementally.
2564
2565 2007-01-21 Dirk Mueller <dmueller@suse.de>
2566
2567 PR bootstrap/30511
2568 * tree-vrp.c (check_array_bounds): do not warn
2569 about ADDR_EXPR's of ARRAY_REF's which are immediately
2570 used in binary expressions.
2571
2572 2007-01-21 Ira Rosen <irar@il.ibm.com>
2573
2574 * tree-vectorizer.h (struct _stmt_vec_info): Add new field
2575 read_write_dep and macros for its access.
2576 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
2577 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
2578 argument, call vect_check_interleaving for every independent pair of
2579 data-refs. Mark loads that access the same memory location as a store
2580 in the loop.
2581 (vect_check_dependences): Remove.
2582 (vect_analyze_data_ref_dependences): Remove vect_check_dependences
2583 call, fix the call to vect_analyze_data_ref_dependence.
2584 (vect_analyze_data_ref_access): For statements that access the same
2585 data-ref, check that they are not stores; for loads, check that there
2586 is no store that access the same location.
2587
2588 2007-01-20 Roger Sayle <roger@eyesopen.com>
2589 Joseph Myers <joseph@codesourcery.com>
2590
2591 * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
2592 (-fdump-rtl-stack): Likewise.
2593 (-fno-signed-zeros): Use @minus{} for a minus sign. Correct typo.
2594 (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
2595 (-mpt-fixed): Use @minus{} for minus sign.
2596 (Using Precompiled Headers): Fix under/overfull hbox.
2597
2598 2007-01-20 Jan Hubicka <jh@suse.cz>
2599
2600 * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
2601 place within annotation.
2602
2603 2007-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2604
2605 * pa.c (output_move_double): Change array size of xoperands to 4.
2606
2607 2007-01-20 Jan Hubicka <jh@suse.cz>
2608
2609 * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
2610 as temporary.
2611
2612 2007-01-19 Ian Lance Taylor <iant@google.com>
2613
2614 * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
2615 constant to unsigned HOST_WIDE_INT before negating.
2616
2617 2007-01-19 Ian Lance Taylor <iant@google.com>
2618
2619 * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
2620 to unsigned.
2621 (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
2622 (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
2623 (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
2624 (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
2625 (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
2626 (realloc_vdef, realloc_vuse): Change second parameter to
2627 unsigned.
2628 (ssa_operand_iterator_d): Change vuse_index and mayuse_index
2629 fields to unsigned.
2630 * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
2631 unsigned. Change x and lim locals to unsigned.
2632 (realloc_vdef, realloc_vuse): Change num_elem parameter to
2633 unsigned.
2634 (finalize_ssa_vuse_ops): Change old_i local to unsigned.
2635 (copy_virtual_operands): Change i and n locals to unsigned.
2636
2637 2007-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2638
2639 PR middle-end/29335
2640 * builtins.c (fold_builtin_1): Handle builtin fdim.
2641
2642 2007-01-20 Jan Hubicka <jh@suse.cz>
2643
2644 * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
2645 * tree-ssa-structalias.c (compute_points_to_sets): Do call
2646 init_alias_heapvars.
2647 (init_alias_heapvars): Initialize only when not already initialized.
2648 (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
2649
2650 2007-01-19 Roger Sayle <roger@eyesopen.com>
2651
2652 * common.opt (fsigned-zeros): New command line option.
2653 * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
2654 of flag_unsafe_math_optimizations.
2655 * opts.c (set_fast_math_flags): The -ffast-math command line option
2656 implies -fno-signed-zeros.
2657 (fast_math_flags_set_p): Likewise.
2658
2659 * doc/invoke.texi: Document new -fno-signed-zeros option, and update
2660 the documentation of -ffast-math appropriately. Wrap long lines.
2661
2662 2007-01-19 Steve Ellcey <sje@cup.hp.com>
2663
2664 * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
2665 * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
2666
2667 2007-01-19 Tomas Bily <tbily@suse.cz>
2668
2669 * cgraphunit.c (cgraph_finalize_function): Updating of pid
2670 * tree-profile.c:
2671 (tree_init_ic_make_global_vars): New function
2672 (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
2673 (tree_gen_ic_profiler): New function
2674 (tree_gen_ic_func_profiler): New function
2675 (tree_profiling): Added calling of tree_gen_ic_func_profiler
2676 (tree_profile_hooks): Added hook for indirec/virtual calls
2677 * value-prof.c (tree_find_values_to_profile): New case for
2678 indirect calls
2679 (tree_values_to_profile): Call for determining indirect/virtual
2680 counters
2681 (tree_indirect_call_to_profile): New function
2682 (tree_ic_transform): New function
2683 (tree_ic): New function
2684 (find_func_by_pid): New function
2685 (init_pid_map): New function
2686 (tree_value_profile_transformations): Added check for
2687 indirect/virtual call transformation
2688 * value-prof.h (enum hist_type): New counter type for
2689 indirect/virtual calls
2690 (profile_hooks): Added new hook for profiling indirect/virtual
2691 calls
2692 * profile.c (instrument_values): New case for indirect/virtual
2693 call added
2694 * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
2695 (GCOV_COUNTER_V_INDIR): New counter type
2696 (GCOV_COUNTER_NAMES): New name of counter "indirect" added
2697 (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
2698 call added
2699 * cgraph.c: Definition of cgraph_max_pid
2700 (cgraph_create_node): Default init of pid attribute
2701 * cgraph.h: Declaration of cgraph_max_pid
2702 (struct cgraph_node): Added pid attribute
2703 * libgcov.c (__gcov_indirect_call_profiler): New function
2704 (__gcov_one_value_profiler_body): New function
2705 (__gcov_one_value_profiler): Body was moved to
2706 __gcov_one_value_profiler_body and calls it
2707
2708 2007-01-19 Basile Starynkevitch <basile@starynkevitch.net>
2709
2710 * doc/gty.texi (Options): Document the mark_hook option to GTY.
2711 * gengtype.c (write_types_data, write_func_for_structure,
2712 write_types, ggc_wtd, pch_wtd): Add skip_hooks to
2713 write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
2714 (walk_type, write_func_for_structure): Generate the mark_hook if
2715 needed.
2716
2717 2007-01-19 Jan Hubicka <jh@suse.cz>
2718
2719 * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
2720 'early' argument take inlining mode argument specifying whether to
2721 inline for size/speeed or all functions; add support for flattening;
2722 improve dumpting.
2723 (cgraph_early_inlining): Update call of decide_inlining_incrementally.
2724
2725 2007-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2726
2727 PR c++/17947
2728 * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
2729 the name of the declared identifier.
2730
2731 2007-01-19 Dirk Mueller <dmueller@suse.de>
2732
2733 * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
2734 result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
2735 duplicate evaluation.
2736
2737 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
2738
2739 * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
2740 Macroize expander using X87MODEF12 mode macro. Extend operand 1
2741 to XFMode, use acosxf2 and truncate result to requested mode.
2742 Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
2743 (asin<mode>2): Similarly, with asin expanders.
2744 (*fscalexf4_i387): Rename from *fscalexf4.
2745 (expNcorexf3): New expander.
2746 (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
2747 (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
2748 X87MODEF12 mode macro. Extend operand 1 to XFMode, use expxf2 and
2749 truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
2750 patterns for SSE math.
2751 (exp10<mode>2): Similarly, with exp10 expanders.
2752 (exp2<mode>2): Similarly, with exp2 expanders.
2753 (expm1<mode>2): Similarly, with expm1 expanders.
2754 (ldexp<mode>3): Similarly, with ldexp expanders.
2755 (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
2756 Use gen_truncxf<mode>2_i387_noop to truncate result.
2757
2758 2007-01-19 Richard Sandiford <richard@codesourcery.com>
2759
2760 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
2761 for ColdFire targets.
2762
2763 2007-01-19 Nathan Sidwell <nathan@codesourcery.com>
2764 Richard Sandiford <richard@codesourcery.com>
2765
2766 * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
2767 (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
2768 (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
2769 * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
2770 (M68K_STATIC_CHAIN_REG_NAME): Likewise.
2771 * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
2772
2773 2007-01-19 Richard Sandiford <richard@codesourcery.com>
2774
2775 * config/m68k/m68k.md (adddi_dilshr32): Rename to...
2776 (*adddi_dilshr32): ...this. Fix formatting. Remove commented-out
2777 non-canonical pattern. Restrict to !TARGET_COLDFIRE.
2778 (*adddi_dilshr32_cf): New pattern.
2779 (adddi3, subdi3): Remove first alternatives.
2780
2781 2007-01-19 Richard Sandiford <richard@codesourcery.com>
2782
2783 * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
2784 implemented using move.l, do not use its cc result for floating-point
2785 comparisons.
2786
2787 2007-01-19 Richard Sandiford <richard@codesourcery.com>
2788
2789 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
2790 from accepting 's' constraints if flag_pic.
2791
2792 2007-01-19 Richard Sandiford <richard@codesourcery.com>
2793
2794 * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
2795 (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
2796 (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
2797 condition from TARGET_68881 to TARGET_HARD_FLOAT.
2798
2799 2007-01-19 Sandra Loosemore <sandra@codesourcery.com>
2800
2801 * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
2802 ColdFire alternatives.
2803 * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
2804 * config/m68k/m68k.md (clzsi2): Define for ColdFire
2805 architectures that support ff1 instruction.
2806
2807 2007-01-19 Richard Sandiford <richard@codesourcery.com>
2808 Julian Brown <julian@codesourcery.com>
2809
2810 * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
2811 * config/m68k/m68k.md (*movsi_cfv4): Fold into...
2812 (*movsi_cf): ...here. Remove unnecessary 'R' from 'Rg'.
2813 Add commentary.
2814
2815 2007-01-19 Richard Sandiford <richard@codesourcery.com>
2816
2817 * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
2818 and return a bool.
2819 (output_move_const_into_data_reg, output_move_simode_const): Delete.
2820 * config/m68k/m68k.c (const_method, const_int_cost): Take a
2821 HOST_WIDE_INT instead of an rtx.
2822 (m68k_rtx_costs): Update call accordingly.
2823 (output_move_const_into_data_reg): Likewise. Fix formatting.
2824 (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
2825 Return a bool.
2826 (output_move_simode_const): Update calls after above changes.
2827 Rework to use automatic variables and predicates like MEM_P.
2828 * config/m68k/m68k.md (pushexthisi_const): Update call to
2829 valid_mov3q_const.
2830
2831 2007-01-19 Dirk Mueller <dmueller@suse.de>
2832
2833 * tree-ssa-alias.c (perform_var_substitution): Fix typo
2834 in dump_flags test.
2835
2836 2007-01-19 Richard Guenther <rguenther@suse.de>
2837
2838 * builtins.c (expand_builtin_cexpi): Fall back to expanding
2839 via cexp in case sincos is not available.
2840
2841 2007-01-19 Richard Guenther <rguenther@suse.de>
2842
2843 * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
2844 * defaults.h (TARGET_HAS_SINCOS): Default to off.
2845 * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
2846 * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
2847 * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
2848 * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
2849 * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
2850 * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
2851
2852 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
2853
2854 * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
2855 New insn patterns.
2856 (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
2857 (atan2xf3): Directly generate RTL pattern.
2858 (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
2859 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
2860 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
2861 disable patterns for SSE math.
2862 (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
2863 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
2864 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
2865 disable patterns for SSE math.
2866
2867 2007-01-19 Alexandre Oliva <aoliva@redhat.com>
2868
2869 * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
2870
2871 2007-01-18 Roger Sayle <roger@eyesopen.com>
2872
2873 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
2874 VIEW_CONVERT_EXPR to the same type as it's operand.
2875
2876 2007-01-18 David Edelsohn <edelsohn@gnu.org>
2877
2878 * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
2879 configured for long double 128.
2880
2881 2007-01-18 Mike Stump <mrs@apple.com>
2882
2883 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
2884 error.
2885
2886 2007-01-18 Michael Meissner <michael.meissner@amd.com>
2887
2888 * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
2889 type correct.
2890
2891 2007-01-18 Jan Hubicka <jh@suse.cz>
2892
2893 * tree-ssa-operands.c (vop_free_bucket_size): Never return value
2894 greater than NUM_VOP_FREE_BUCKETS.
2895
2896 2007-01-18 Daniel Berlin <dberlin@dberlin.org>
2897
2898 * tree-ssa-structalias.c: Update comments.
2899 (ptabitmap_obstack): Removed.
2900 (pta_obstack): New.
2901 (oldpta_obstack): Ditto.
2902 (stats): Add a few members.
2903 (struct variable_info): Remove node, complex, address_taken, and
2904 indirect_target members. Add oldsolution member.
2905 (new_var_info): Do not initialize removed members.
2906 (constraint_expr_type): Remove INCLUDES.
2907 (constraint_graph): Add size, implicit_preds, rep,
2908 indirect_cycles, eq_rep, label, direct_nodes, and complex members.
2909 (FIRST_REF_NODE): New macro.
2910 (LAST_REF_NODE): Ditto.
2911 (FIRST_ADDR_NODE): Ditto.
2912 (find): New function.
2913 (unite): Ditto.
2914 (dump_constraint): Do not handle INCLUDES.
2915 (insert_into_complex): Do not insert duplicate constraints.
2916 (condense_varmap_nodes): Renamed and rewritten into ...
2917 (merge_node_constraints): This. Also fix bug in handling of
2918 offseted copy constraints.
2919 (clear_edges_for_node): No longer need to deal with preds at all,
2920 or removing associated preds/succs.
2921 (merge_graph_nodes): Deal with indirect_cycles.
2922 Don't deal with predecessors.
2923 (add_implicit_graph_edge): New function.
2924 (add_pred_graph_edge): Ditto.
2925 (add_graph_edge): Don't deal with predecessors.
2926 (build_constraint_graph): Removed.
2927 (build_pred_graph): New function.
2928 (build_succ_graph): Ditto.
2929 (struct scc_info): Removed in_component. Added roots, dfs, and
2930 node_mapping. Remove visited_index, unification_queue.
2931 (scc_visit): Deal with union-find we do now.
2932 Deal with cycles with REF nodes.
2933 (collapse_nodes): Renamed and rewritten to ...
2934 (unify_nodes): This.
2935 (process_unification_queue): Removed.
2936 (topo_visit): Cleanup
2937 (do_da_constraint): Use find.
2938 (do_sd_constraint): Ditto.
2939 (do_ds_constraint): Ditto.
2940 (do_complex_constraint): Ditto.
2941 (init_scc_info): Update for removed and added members.
2942 (find_and_collapse_graph_cycles): Renamed and rewritten into ...
2943 (find_indirect_cycles): This.
2944 (equivalence_class): New variable.
2945 (label_visit): New function.
2946 (perform_variable_substitution): Rewritten.
2947 (free_var_substitution_info): New function.
2948 (find_equivalent_node): Ditto.
2949 (move_complex_constraints): Ditto.
2950 (eliminate_indirect_cycles): Ditto.
2951 (solve_graph): Only propagate changed bits.
2952 Use indirect cycle elimination.
2953 Use find.
2954 (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
2955 (tree_id_eq): Renamed to ...
2956 (tree_vi_eq): This. Update for member change
2957 (insert_id_for_tree): Renamed and rewritten to ...
2958 (insert_vi_for_tree): This.
2959 (lookup_id_for_tree): Renamed and rewritten to ...
2960 (lookup_vi_for_tree): This.
2961 (get_id_for_tree): Renamed and rewritten to ...
2962 (get_vi_for_tree): Ditto.
2963 (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
2964 (process_constraint): Don't handle INCLUDES.
2965 Remove special ADDRESSOF case.
2966 (find_func_aliases): Rewrite to use vi functions instead of id
2967 ones.
2968 (create_function_info_for): Ditto.
2969 (create_variable_info_for): Ditto.
2970 (intra_create_variable_infos): Ditto.
2971 (merge_smts_into): Ditto.
2972 (find_what_p_points_to): Ditto.
2973 (init_base_vars): Ditto.
2974 (init_alias_vars): Ditto.
2975 (remove_preds_and_fake_succs): New function.
2976 (dump_sa_points_to_info): Dump new stats.
2977 (dump_solution_for_var): Use find.
2978 (set_used_smts): Fix formatting.
2979 (compute_points_to_sets): Updated for new functions.
2980 (ipa_pta_execute): Ditto.
2981
2982 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
2983 Richard Sandiford <richard@codesourcery.com>
2984
2985 * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
2986 parallels.
2987 * calls.c (expand_call): If the return value is a PARALLEL,
2988 extract its first member.
2989 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
2990 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
2991 use FUNCTION_EXTRA_EPILOGUE.
2992 (m68k_function_value): Return a PARALLEL if the return value
2993 is of a pointer type.
2994 * config/m68k/netbsd-elf.h (current_function_returns_pointer)
2995 (FUNCTION_EXTRA_EPILOGUE): Remove.
2996 * config/m68k/m68k.md (D0_REG): New constant.
2997
2998 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
2999
3000 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
3001 output a NOP for empty epilogues.
3002
3003 2007-01-18 Richard Sandiford <richard@codesourcery.com>
3004
3005 * config/m68k/m68k.c (m68k_use_return_insn): Update comments
3006 before function. Extend register save check to include all
3007 registers, not just integer ones.
3008
3009 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
3010
3011 * config/m68k/m68k-protos.h (use_return_insn): Rename to...
3012 (m68k_use_return_insn): ...this.
3013 * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
3014 * config/m68k/m68k.c (use_return_insn): Rename to...
3015 (m68k_use_return_insn): ...this.
3016 * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
3017 of USE_RETURN_INSN.
3018
3019 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
3020
3021 * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
3022 nearest even, fix denormal rounding overflow.
3023
3024 2007-01-18 Richard Sandiford <richard@codesourcery.com>
3025
3026 * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
3027 f%$smove and f%$move.
3028 (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
3029 (extendsfdf2_cf): Use fdmove instead of f%&move.
3030 (truncdfsf2_cf): Use fsmove instead of f%$smove.
3031 (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
3032
3033 2007-01-18 Richard Sandiford <richard@codesourcery.com>
3034
3035 * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
3036 GPR<-GPR moves.
3037
3038 2007-01-18 Richard Sandiford <richard@codesourcery.com>
3039
3040 * real.h (real_format): Add a canonical_nan_lsbs_set field.
3041 (coldfire_single_format): Declare.
3042 (coldfire_double_format): Likewise.
3043 * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
3044 of qnan_msb_set to determine the lower bits of a canonical
3045 NaN significand.
3046 (encode_ieee_double): Likewise.
3047 (encode_ieee_quad): Likewise.
3048 (ieee_single_format): Initialize canonical_nan_lsbs_set.
3049 (mips_single_format): Likewise.
3050 (ieee_double_format): Likewise.
3051 (mips_double_format): Likewise.
3052 (ieee_extended_motorola_format): Likewise.
3053 (ieee_extended_intel_96_format): Likewise.
3054 (ieee_extended_intel_128_format): Likewise.
3055 (ieee_extended_intel_96_round_53_format): Likewise.
3056 (ibm_extended_format): Likewise.
3057 (mips_extended_format): Likewise.
3058 (ieee_quad_format): Likewise.
3059 (mips_quad_format): Likewise.
3060 (vax_f_format): Likewise.
3061 (vax_d_format): Likewise.
3062 (vax_g_format): Likewise.
3063 (i370_single_format): Likewise.
3064 (i370_double_format): Likewise.
3065 (decimal_single_format): Likewise.
3066 (decimal_double_format): Likewise.
3067 (decimal_quad_format): Likewise.
3068 (c4x_single_format): Likewise.
3069 (c4x_extended_format): Likewise.
3070 (real_internal_format): Likewise.
3071 (coldfire_single_format): New real_format.
3072 (coldfire_double_format): Likewise.
3073 * config/pdp11/pdp11.c (pdp11_f_format): Initialize
3074 canonical_nan_lsbs_set.
3075 (pdp11_d_format): Likewise.
3076 * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
3077 if TARGET_COLDFIRE_CPU.
3078
3079 2007-01-18 Richard Sandiford <richard@codesourcery.com>
3080
3081 * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
3082 (output_call, m68k_legitimize_call_address): Declare.
3083 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
3084 parenthesees. Add support for a 'W' constraint.
3085 (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
3086 (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
3087 (m68k_symbolic_call, m68k_symbolic_jump): Declare.
3088 * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
3089 variables.
3090 (override_options): Initialize them. Do not set flag_no_function_cse
3091 for TARGET_ID_SHARED_LIBRARY.
3092 (m68k_output_pic_call): Delete.
3093 (m68k_legitimize_call_address): New function.
3094 (print_operand): Remove the %o prefix. Handle the %p prefix.
3095 (output_call): New function.
3096 (m68k_output_mi_thunk): Use m68k_symbolic_jump. Always load the
3097 target address from the GOT if symbolic jumps are not allowed.
3098 * config/m68k/m68k.md (call, general_operand): Do not set
3099 SYMBOL_REF_FLAG. Use m68k_legitimize_call_address instead.
3100 Merge separate flag_pic and !flag_pic define_insns into...
3101 (*call, *call_value): ...these new patterns. Match the address
3102 rather than the containing MEM and require it to be a call_operand.
3103 Use output_call to generate the asm template.
3104 * config/m68k/predicates.md (const_call_operand): New predicate.
3105 (call_operand): Likewise.
3106
3107 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
3108
3109 * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
3110 (STACK_GROWS_DOWNWARD): Define to 1.
3111 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
3112 comments, emphasizing that these values are only defaults.
3113 * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
3114 * config/m68k/m68k.c (const_method): Remove trailing whitespace.
3115
3116 2007-01-18 Richard Sandiford <richard@codesourcery.com>
3117
3118 * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
3119
3120 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
3121 Richard Sandiford <richard@codesourcery.com>
3122
3123 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
3124 (FP_REGNO_P): New macros.
3125 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
3126 (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
3127 (EH_RETURN_STACKADJ_RTX): Use A0_REG.
3128 * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
3129
3130 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
3131
3132 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
3133 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
3134 to $tmake_file.
3135 * config/m68k/t-floatlib: New file, extracting common code from...
3136 * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
3137 * config/m68k/t-uclinux: Here.
3138 * config/m68k/fpgnulib.c: Do not compile extendeed precision
3139 routines on ColdFire targets.
3140
3141 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
3142
3143 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
3144 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
3145 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
3146 (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
3147 explicitly set MOTOROLA to 1.
3148 * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
3149
3150 2007-01-18 Richard Sandiford <richard@codesourcery.com>
3151 Nathan Sidwell <nathan@codesourcery.com>
3152
3153 * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
3154 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
3155 * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
3156 * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
3157 * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
3158 * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
3159 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3160 (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
3161 (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
3162 * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
3163 * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
3164 (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
3165 (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
3166 (DBX_REGISTER_NUMBER): Delete.
3167 * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
3168 (PCC_STATIC_STRUCT_RETURN): Don't undefine.
3169 * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
3170
3171 2007-01-18 Richard Sandiford <richard@codesourcery.com>
3172
3173 * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
3174 * config/flat.h: New file.
3175 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
3176 OBJECT_FORMAT_FLAT.
3177 * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
3178 indirect references for -msep-data or -mid-shared-library.
3179 Do not use PC-relative code addresses either.
3180 * config/m68k/m68k.c (override_options): Restrict -fPIC error
3181 to -mpcrel.
3182 * config/m68k/uclinux.h (STARTFILE_SPEC): Define. Use Scrt1.o
3183 for shared libraries and crt1.o for executables. Use crti.o and
3184 crtbegin.o.
3185 (ENDFILE_SPEC): Use crtend.o and crtn.o.
3186 (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
3187 Do not add -elf2flt or -shared-lib-id options here.
3188 (LINK_SPEC): Define. Pass -elf2flt if no -elf2flt option is given.
3189 Pass -shared-lib-id if -mid-shared-library, taking the library
3190 identifier from -mshared-library-id if given, otherwise
3191 defaulting to 0.
3192 (EH_FRAME_IN_DATA_SECTION): Do not undefine.
3193 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
3194 (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
3195 and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
3196 (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
3197 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
3198 and crtend.o.
3199 * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
3200 jump sequence for ISA A and ISA A+.
3201 (PICJUMP): Likewise.
3202
3203 2007-01-18 Richard Sandiford <richard@codesourcery.com>
3204
3205 * config.gcc (m68k-*-uclinux*): Base the port on the common
3206 and m68k GNU/Linux files rather than on the generic ELF ones.
3207 * config/m68k/uclinux.h (TARGET_VERSION): Override.
3208 (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
3209
3210 2007-01-18 Julian Brown <julian@codesourcery.com>
3211 Richard Sandiford <richard@codesourcery.com>
3212
3213 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
3214 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
3215 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
3216 before redefining.
3217 * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
3218 80 unconditionally.
3219 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
3220
3221 2007-01-18 Richard Sandiford <richard@codesourcery.com>
3222
3223 * doc/install.texi: Document m68k-uclinuxoldabi.
3224 * config.gcc (m68k-*-uclinuxoldabi): New configuration.
3225 * config/m68k/uclinux-oldabi.h: New file, copied from
3226 config/m68k/uclinux.h.
3227
3228 2007-01-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3229
3230 * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
3231 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
3232 (m32r_compute_frame_size): Use unsigned for regno.
3233 (m32r_reload_lr): Use gen_frame_mem.
3234 (pop): New.
3235 (m32r_output_function_epilogue): Don't output the function epilogue
3236 textually here.
3237 (m32r_expand_epilogue): New.
3238 (direct_return): Return false if the function has the interrupt
3239 attribute.
3240 (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
3241 * config/m32r/m32r.md (epilogue): New expander.
3242 (return_lr, return_rte): New insns.
3243 (return): Make it expander.
3244 (return_normal): New expander.
3245
3246 2007-01-18 Josh Conner <jconner@apple.com>
3247
3248 PR target/30485
3249 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
3250 support for UNLE, UNLT, UNGE, and UNGT.
3251
3252 2007-01-18 Jan Hubicka <jh@suse.cz>
3253
3254 * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
3255 * tree-tailcall (add_virtual_phis): Likewise.
3256 (optimize_tail_call): Return TODOs.
3257 (execute_tail_calls): Return TODOs.
3258 * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
3259 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
3260 changed.
3261 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
3262 Cleanup cfg using TODO.
3263 * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
3264 * passes.c (execute_function_todo): When cleanup did something, remove
3265 unused locals.
3266 * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
3267 (make_edges): Don't cleanup_cfg.
3268
3269 2007-01-18 Uros Bizjak <ubizjak@gmail.com>
3270
3271 * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
3272 UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
3273 operate on the top of stack.
3274 [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
3275 register handling of instructions that output to the second
3276 stack slot.
3277 [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
3278 (move_for_stack_reg): Special-case check for dead destination
3279 stack slot for constant load of 1.0 inside UNSPEC_TAN.
3280
3281 * config/i386/i386.md (UNSPEC_TAN): New constant.
3282 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
3283 (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
3284 to correctly model move of constant 1.0 to top stack slot.
3285 (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
3286 (unnamed peephole2 pattern): Remove corresponding peephole2
3287 pattern that optimizes tan insn and loading of constant 1.0.
3288 (tanxf2): Use fptanxf4_i387.
3289 (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
3290 patterns using X87MODEF12 mode macro. Use fptan_extend<mode>xf4_i387
3291 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
3292 disable patterns for SSE math.
3293 (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
3294 (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
3295
3296 2007-01-18 Dirk Mueller <dmueller@suse.de>
3297 Richard Guenther <rguenther@suse.de>
3298
3299 PR diagnostic/8268
3300 * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
3301 * common.opt (Warray-bounds): Add new warning option.
3302 * c-opts.c (c_common_handle_option): Define -Warray-bounds
3303 if -Wall is given.
3304 * Makefile.in: make tree-vrp.o depend on toplev.h
3305 * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
3306 is enabled.
3307 (check_array_refs, check_array_bounds, check_array_ref): New.
3308
3309 2007-01-18 Jan Hubicka <jh@suse.cz>
3310
3311 * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
3312 (execute_ssa_ccp): Return flags conditionally.
3313 * tree-ssa-propagate.c (substitue_and_fold): Return if something was
3314 changed.
3315 * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
3316
3317 2007-01-18 Steven Bosscher <steven@gcc.gnu.org>
3318
3319 * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
3320 the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
3321
3322 * Makefile.c (GTFILES): Add cfglayout.h.
3323 * gengtype.c (open_base_files): Likewise.
3324 * cfglayout.c (cfg_layout_function_footer,
3325 cfg_layout_function_header) Reindent to make gengtype happy.
3326 * cfglayout.h (cfg_layout_function_footer,
3327 cfg_layout_function_header): Add GTY(()) marker.
3328
3329 * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
3330
3331 2007-01-18 Ben Elliston <bje@au.ibm.com>
3332
3333 * genautomata.c (write_automata): Include xstrerror output in the
3334 error message if writing the DFA description file fails.
3335
3336 2007-01-17 H.J. Lu <hongjiu.lu@intel.com>
3337
3338 * config/mips/mips-protos.h (mips_output_external): Make it
3339 return void.
3340 * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
3341 * config/mips/mips.c (irix_output_external_libcall): Likewise.
3342 (extern_list): Likewise.
3343 (extern_head): Likewise.
3344 (TARGET_ASM_FILE_END): Likewise.
3345 (mips_file_end): Likewise.
3346 (mips_output_external): Rewritten.
3347
3348 2007-01-18 Ben Elliston <bje@au.ibm.com>
3349
3350 * genpreds.c (write_insn_preds_c): Only write out the function
3351 body for regclass_for_constraint if we have register constraints.
3352
3353 2007-01-17 Tom Tromey <tromey@redhat.com>
3354
3355 * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
3356 * doc/install.texi (Testing): Use sourceware.org.
3357 (Binaries): Likewise.
3358 (Specific): Likewise.
3359 * doc/contrib.texi (Contributors): Use sourceware.org.
3360
3361 2007-01-17 Anatoly Sokolov <aesok@post.ru>
3362
3363 * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
3364 (AVR_ENHANCED): Rename to ...
3365 (AVR_HAVE_MUL): ... new.
3366 (avr_enhanced_p): Rename to ...
3367 (avr_have_mul_p): ... new.
3368 (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
3369 'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
3370 * config/avr/avr.c (avr_enhanced_p): Rename to ...
3371 (avr_have_mul_p): ... new.
3372 (base_arch_s): Rename 'enhanced' to 'have_mul'.
3373 (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
3374 'avr_enhanced_p' and 'enhanced'.
3375 (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
3376 AVR_HAVE_MUL instead of AVR_ENHANCED.
3377 * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
3378 (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
3379 *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
3380 instead of AVR_ENHANCED.
3381 (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
3382 * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
3383 (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
3384
3385 2007-01-17 Ian Lance Taylor <iant@google.com>
3386
3387 * vec.h (VEC_reserve_exact): Define.
3388 (vec_gc_p_reserve_exact): Declare.
3389 (vec_gc_o_reserve_exact): Declare.
3390 (vec_heap_p_reserve_exact): Declare.
3391 (vec_heap_o_reserve_exact): Declare.
3392 (VEC_OP (T,A,reserve_exact)): New static inline function, three
3393 versions.
3394 (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
3395 negative parameter.
3396 (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
3397 (VEC_OP (T,A,copy)) [all versions]: Likewise.
3398 (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
3399 * vec.c (calculate_allocation): Add exact parameter. Change all
3400 callers.
3401 (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
3402 (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
3403 (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
3404 (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
3405 (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
3406 (vec_heap_p_reserve_exact): New function.
3407 (vec_heap_o_reserve_exact): New function.
3408
3409 2007-01-17 Jan Hubicka <jh@suse.cz>
3410
3411 * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
3412
3413 2007-01-17 Eric Christopher <echristo@apple.com>
3414
3415 * config.gcc: Support core2 processor.
3416
3417 2007-01-16 Jan Hubicka <jh@suse.cz>
3418
3419 * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
3420 the names, just unlink the chain so we don't crash on dangling pointers
3421 to dead SSA names.
3422
3423 2007-01-16 Jan Hubicka <jh@suse.cz>
3424
3425 * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
3426 * tree-pass.h: Reorder to make IPA passes appear toegher.
3427 (pass_early_inline, pass_inline_parameters, pass_apply_inline): Declare.
3428 * cgraphunit.c (cgraph_finalize_function): Do not compute inling
3429 parameters, do not call early inliner.
3430 * ipa-inline.c: Update comments. Include tree-flow.h
3431 (cgraph_decide_inlining): Do not compute inlining parameters.
3432 (cgraph_decide_inlining_incrementally): Return TODOs; assume to
3433 be called with function context set up.
3434 (pass_ipa_inline): Remove unreachable functions before pass.
3435 (cgraph_early_inlining): Simplify assuming to be called from the
3436 PM as local pass.
3437 (pass_early_inline): New pass.
3438 (cgraph_gate_ipa_early_inlining): New gate.
3439 (pass_ipa_early_inline): Turn into simple wrapper.
3440 (compute_inline_parameters): New function.
3441 (gate_inline_passes): New gate.
3442 (pass_inline_parameters): New pass.
3443 (apply_inline): Move here from tree-optimize.c
3444 (pass_apply_inline): New pass.
3445 * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
3446 transforming.
3447 * tree-inline.c (optimize_inline_calls): Return TODOs rather than
3448 doing them by hand.
3449 (tree_function_versioning): Do not allocate dummy struct function.
3450 * tree-inline.h (optimize_inline_calls): Update prototype.
3451 * tree-optimize.c (execute_fixup_cfg): Export.
3452 (pass_fixup_cfg): Remove
3453 (tree_rest_of_compilation): Do not apply inlines.
3454 * tree-flow.h (execute_fixup_cfg): Declare.
3455 * Makefile.in (gt-passes.c): New.
3456 * passes.c: Include gt-passes.h
3457 (init_optimization_passes): New passes.
3458 (nnodes, order): New static vars.
3459 (do_per_function_toporder): New function.
3460 (execute_one_pass): Dump current pass here.
3461 (execute_ipa_pass_list): Don't dump current pass here.
3462
3463 2007-01-16 Janis Johnson <janis187@us.ibm.com>
3464
3465 * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
3466 (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
3467
3468 2007-01-16 David Edelsohn <edelsohn@gnu.org>
3469
3470 * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
3471 (strong_alias): Define.
3472 (__gcc_qmul): Provide non-FMA for soft-float.
3473 (__gcc_qdiv): Same.
3474 (__gcc_qneg): New.
3475 (__gcc_qeq): New.
3476 (__gcc_qle): New.
3477 (__gcc_qge): New.
3478 (__gcc_qunord): New.
3479 (__gcc_stoq): New.
3480 (__gcc_dtoq): New.
3481 (__gcc_qtos): New.
3482 (__gcc_qtod): New.
3483 (__gcc_qtoi): New.
3484 (__gcc_qtou): New.
3485 (__gcc_itoq): New.
3486 (__gcc_utoq): New.
3487 (fmsub): New.
3488 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
3489 soft-float functions.
3490 * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
3491 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
3492 about long double soft float.
3493
3494 2007-01-16 Dorit Nuzman <dorit@il.ibm.com>
3495 Tehila Meyzels <tehila@il.ibm.com>
3496
3497 * tree-vectorizer.h (is_pattern_stmt_p): New.
3498 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
3499 formatting (tabs instead of spaces). Cleanup and clarify setting
3500 of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
3501 * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
3502 (vectorizable_type_demotion): Check that types are integral.
3503 (vectorizable_type_promotion): Likewise.
3504 (vectorizable_store): Fix typo. Eliminate new-line at end of
3505 comments.
3506
3507 2007-01-16 Jan Hubicka <jh@suse.cz>
3508
3509 * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
3510 cgraph edges too.
3511
3512 2007-01-15 Eric Christopher <echristo@apple.com>
3513
3514 * ifcvt.c: Include vec.h, vecprim.h.
3515 (check_cond_move_block): New argument regs.
3516 Reorganize. Add registers used to regs.
3517 (cond_move_process_if_block): Use regs set above as
3518 loop bounds.
3519
3520 2007-01-15 Eric Christopher <echristo@apple.com>
3521
3522 * config/darwin.h: Update copyright.
3523 (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
3524 (LINK_COMMAND_SPEC): Add -u.
3525 (LINK_SPEC): Fix umbrella for above.
3526
3527 2007-01-15 Joseph S. Myers <joseph@codesourcery.com>
3528
3529 * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
3530 glibc CVS.
3531
3532 2007-01-15 Tom Tromey <tromey@redhat.com>
3533
3534 * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
3535 * doc/install.texi (Testing): Don't mention jacks.
3536 (Configuration): Document --enable-java-maintainer-mode. Move
3537 --with-java-home to libgcj-specific section. Document
3538 --with-ecj-jar.
3539 (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
3540
3541 2007-01-15 Jan Hubicka <jh@suse.cz>
3542
3543 * tree-ssa-dce.c (DCE_TODOs): New.
3544 (propagate_necessity): Return if something changed.
3545 (eliminate_unnecessary_stmts): Likewise.
3546 (perform_tree_ssa_dce): Return TODO flags when needed.
3547 (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
3548
3549 2007-01-15 Uros Bizjak <ubizjak@gmail.com>
3550
3551 * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
3552 (fyl2x_extend<mode>xf3_i387): New insn pattern.
3553 (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
3554 patterns using X87MODEF12 mode macro. Extend operand 1
3555 to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
3556 (log10<mode>2): Ditto.
3557 (log2<mode>2): Ditto.
3558 (log1p<mode>2): Ditto.
3559 (logb<mode>2): Ditto.
3560 (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
3561 (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
3562 (*fxtractxf3_i387): Rename from *fxtractxf3.
3563 (fxtract_extend<mode>xf3_i387): New insn pattern.
3564 (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
3565 * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
3566 and gen_fyl2xxf3_i387().
3567
3568 2007-01-14 Zdenek Dvorak <dvorakz@suse.cz>
3569
3570 * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
3571 * cfgloopmanip.c (fix_loop_placement): Made static. Use
3572 get_loop_exit_edges. Changed return type to bool.
3573 * cfgloop.h (fix_loop_placement): Declaration removed.
3574
3575 2007-01-14 Dorit Nuzman <dorit@il.ibm.com>
3576
3577 * param.h (MIN_VECT_LOOP_BOUND): New.
3578 * params.def (MIN_VECT_LOOP_BOUND): New.
3579 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
3580 argument - minimum threshold for number of iterations.
3581 * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
3582 argument to declaration.
3583 * tree-vect-analyze.c (vect_analyze_operations): Check value of
3584 MIN_VECT_LOOP_BOUND.
3585 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
3586 slpeel_tree_peel_loop_to_edge with additional argument.
3587 (vect_do_peeling_for_alignment): Likewise.
3588 * doc/invoke.texi (min-vect-loop-bound): Document new param option.
3589
3590 2007-01-14 Uros Bizjak <ubizjak@gmail.com>
3591
3592 PR target/30413
3593 * config/i386/i386.c (print_operand) ['z']: Output 'b' for
3594 operands of size 1.
3595
3596 2007-01-14 Jan Hubicka <jh@suse.cz>
3597
3598 * tree-dfa.c (remove_referenced_var): New function.
3599 * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
3600 prune referenced vars list too.
3601 * tree-flow.h (remove_referenced_var): Declare.
3602
3603 2007-01-14 Jan Hubicka <jh@suse.cz>
3604
3605 * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
3606 separately.
3607 (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
3608 (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
3609 * except.h (verify_eh_throw_table_statements): Kill prototype.
3610 * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
3611 into call exrepssions.
3612 * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
3613 eh trhow verifier.
3614 * tree-cfg.c: Include pointer-set.h.
3615 (verify_node_sharing): Work on pointer set.
3616 (verify_eh_throw_stmt_node): New.
3617 (verify_stmts): Use pointers sets, verify throw_stmt.
3618
3619 2007-01-13 Zdenek Dvorak <dvorakz@suse.cz>
3620
3621 * ipa-reference.c (analyze_function): Consider also addresses taken
3622 in phi nodes.
3623
3624 2007-01-12 Roger Sayle <roger@eyesopen.com>
3625
3626 * c-typeck.c (null_pointer_constant_p): Replace use of
3627 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
3628 (build_c_cast): Likewise.
3629
3630 2007-01-12 Roger Sayle <roger@eyesopen.com>
3631
3632 * tree.h (force_fit_type_double): Remove unused final argument.
3633 * c-common.c (constant_expression_warning): Replace use of
3634 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
3635 (convert_and_check): Likewise.
3636 (shorten_compare): Update call to force_fit_type_double.
3637 (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
3638 * convert.c (convert_to_pointer): Update call to
3639 force_fit_type_double.
3640 * fold-const.c (force_fit_type_double): Remove overflowed_const
3641 argument.
3642 (int_const_binop, fold_convert_const_int_from_int,
3643 fold_convert_const_int_from_real, fold_div_compare,
3644 fold_sign_changed_comparison, fold_unary, fold_negate_const,
3645 fold_abs_const, fold_not_const): Remove the final argument from
3646 calls to force_fit_type_double.
3647
3648 2007-01-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
3649
3650 * configure.ac: Set insn to "nop" for spu-*-* also.
3651 * configure: Regenerate.
3652
3653 2007-01-12 Olga Golovanevsky <olga@il.ibm.com>
3654
3655 * builtins.def : Add BUILT_IN_FREE.
3656
3657 2007-01-12 Jan Hubicka <jh@suse.cz>
3658
3659 PR tree-optimization/30443
3660 * tree-inline.c (tree_function_versioning): Do not optimize when
3661 cloning for inlining.
3662
3663 2007-01-12 Zdenek Dvorak <dvorakz@suse.cz>
3664
3665 * doc/loop.texi: Document recording of loop exits.
3666 * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
3667 (update_single_exits_after_duplication,
3668 update_single_exit_for_duplicated_loop,
3669 update_single_exit_for_duplicated_loops): Removed.
3670 (duplicate_loop_to_header_edge): Do not call
3671 update_single_exits_after_duplication and
3672 update_single_exit_for_duplicated_loops.
3673 (loop_version): Do not update single_exit information.
3674 (fix_loop_structure): Use record_loop_exits instead of
3675 mark_single_exit_loops.
3676 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
3677 the lists of loop exits.
3678 * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
3679 split_edge, merge_blocks): Update the lists of loop exits.
3680 * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
3681 loop_optimizer_init.
3682 * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
3683 of mark_single_exit_loops.
3684 (loop_optimizer_finalize): Call release_recorded_exits.
3685 * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
3686 LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
3687 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
3688 update single exit information.
3689 * lambda-code.c (perfect_nestify): Ditto.
3690 * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
3691 (mark_single_exit_loops): Removed.
3692 (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
3693 get_exit_descriptions, rescan_loop_exit, record_loop_exits,
3694 dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
3695 functions.
3696 (get_loop_exit_edges, single_exit): Use recorded exit lists.
3697 (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
3698 (verify_loop_structure): Verify consistency of the exit lists.
3699 (flow_loops_find): Use alloc_loop. Initialize exits hash.
3700 (set_single_exit): Removed.
3701 * cfgloop.h (struct loop_exit): New function.
3702 (struct loop): single_exit_ field replaced by exits field.
3703 (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by LOOPS_HAVE_RECORDED_EXITS.
3704 (struct loops): Added exits hash.
3705 (mark_single_exit_loops, set_single_exit): Declaration removed.
3706 (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
3707
3708 2007-01-12 Richard Sandiford <richard@codesourcery.com>
3709
3710 * doc/invoke.texi: Avoid use of @headitem.
3711
3712 2007-01-12 Richard Sandiford <richard@codesourcery.com>
3713
3714 * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
3715
3716 2007-01-12 Richard Sandiford <richard@codesourcery.com>
3717
3718 * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
3719 list of targets.
3720
3721 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
3722 Richard Sandiford <richard@codesourcery.com>
3723
3724 * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
3725 * config/m68k/m68k.opt: Resort options.
3726 (mbitfield, mrtd, mshort): Remove RejectNegative properties.
3727
3728 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
3729 Richard Sandiford <richard@codesourcery.com>
3730
3731 * doc/invoke.texi: Document the macros that are defined by
3732 m68k's -mtune and -mhard-float options.
3733 * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
3734 (m68k_cpp_cpu_family): Likewise.
3735 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
3736 of __ucfv*__ macros. Define __mcffpu__ if generating code for
3737 ColdFire FPUs. Define __mcf_cpu_* and __mcf_family_* macros.
3738 * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
3739 (m68k_cpp_cpu_family): Likewise.
3740
3741 2007-01-12 Richard Sandiford <richard@codesourcery.com>
3742
3743 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
3744 macros besides mc68000 as tuning macros. Use a switch statement
3745 to set them and mcpu32.
3746
3747 2007-01-12 Julian Brown <julian@codesourcery.com>
3748
3749 * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
3750 (TARGET_68040_ONLY): Rename to...
3751 (TARGET_68040): ...this.
3752 * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
3753 * config/m68k/m68k.md: Likewise.
3754
3755 2007-01-12 Julian Brown <julian@codesourcery.com>
3756 Nathan Sidwell <nathan@codesourcery.com>
3757 Richard Sandiford <richard@codesourcery.com>
3758
3759 * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
3760 the -mcpu= argument associated with the --with-cpu setting.
3761 Define M68K_DEFAULT_TUNE to the default -mtune= option,
3762 if different from the one implied by the -mcpu setting.
3763 Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
3764 using mcpu=FOO as the default CPU option. Set target_cpu_default2.
3765 * doc/invoke.texi: Mention ColdFire in the introduction to the
3766 m68k options. Document the new -march, -mcpu, -mtune, -mdiv,
3767 -mno-div and -mhard-float options. Make -m68881 a synonym for
3768 -mhard-float. Document the previously-undocumented -m5206e,
3769 -m528x, -m5307 and -m5407 options. Tweak the existing option
3770 documentation for consistency.
3771 * doc/install.texi: Mention new --with-cpu arguments.
3772 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
3773 default CPU if neither -mcpu nor -march are specified.
3774 (ASM_CPU_SPEC): Pass down -mcpu and -march options.
3775 (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
3776 TARGET_ISA*. Set the legacy __mcf*__ cpu macros in the same way,
3777 using m68k_tune to decide between families that implement the
3778 same ISA. Use m68k_tune to set __mcfv4e__.
3779 (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
3780 (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
3781 (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
3782 (FL_ISA_C, FL_ISA_MMU): New macros.
3783 (MASK_COLDFIRE): Delete.
3784 (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
3785 (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
3786 (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
3787 (TARGET_HARD_FLOAT): Do not define here.
3788 (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
3789 (TUNE_68000): New macro.
3790 (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
3791 (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
3792 (TUNE_CFV2): Redefine in terms of m68k_tune.
3793 (uarch_type, target_device, fpu_type): New enums.
3794 (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
3795 * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
3796 (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
3797 (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
3798 (FL_FOR_isa_c): New macros.
3799 (m68k_isa): New enum.
3800 (m68k_target_selection): New structure.
3801 (all_devices, all_isas, all_microarchs): New tables.
3802 (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
3803 (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
3804 (MASK_ALL_CPU_BITS): Delete.
3805 (m68k_find_selection): New function.
3806 (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
3807 Map the legacy target options to a combination of the new ones.
3808 (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
3809 m68k_cpu_flags. Handle M68K_DEFAULT_TUNE. Use m68k_cpu_flags
3810 to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
3811 settings.
3812 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
3813 (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
3814 properties.
3815 (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
3816 (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
3817 * config/m68k/m68k-devices.def: New file.
3818
3819 2007-01-12 Richard Sandiford <richard@codesourcery.com>
3820 Nathan Sidwell <nathan@codesourcery.com>
3821
3822 * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
3823 (SUBTARGET_EXTRA_SPECS): New macros.
3824 * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
3825 use %(asm_cpu_spec) instead.
3826 * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
3827 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
3828 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
3829 (EXTRA_SPECS): Rename to...
3830 (SUBTARGET_EXTRA_SPECS): ...this.
3831
3832 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
3833 Richard Sandiford <richard@codesourcery.com>
3834 Julian Brown <julian@codesourcery.com>
3835
3836 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
3837 (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
3838 to the configuration's default CPU.
3839 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
3840 Remove default masks.
3841 (m680[012]0-*-*): Set the default with_cpu to the first part of
3842 the target name.
3843 (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
3844 (m68k*-*-linux): Extend the --with-cpu handling to...
3845 (m680[012]0-*-*, m68k*-*-*): ...these configurations. Allow m68000
3846 and m68010. Don't set target_cpu_default2.
3847 * doc/install.texi: Document --with-cpu for m68k.
3848 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
3849 * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
3850 (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
3851 (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
3852 (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
3853 (ASM_SPEC): Remove use of %(asm_cpu_default).
3854 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
3855 * config/m68k/linux.h (TARGET_DEFAULT): Delete.
3856 (CPP_SPEC): Merge definitions. Do not handle __HAVE_68881__ here.
3857 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
3858 __HAVE_FPU__ if TARGET_HARD_FLOAT.
3859 (TARGET_DEFAULT): Delete.
3860 (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
3861 cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
3862 (CPP_CPU_SPEC): Delete.
3863 (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
3864 the appropriate string.
3865 (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
3866 (CPP_SPEC): Define to NETBSD_CPP_SPEC.
3867 (ASM_SPEC): Don't use %(asm_default_spec).
3868 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
3869 TARGET_DEFAULT and add MASK_68881.
3870 * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
3871
3872 2007-01-12 Richard Sandiford <richard@codesourcery.com>
3873
3874 * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
3875 (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
3876 MASK_68010 alongside MASK_68020.
3877 * doc/invoke.texi: Document -m68010.
3878 * config/m68k/m68k.opt (m68010): New.
3879 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
3880 if TUNE_68010.
3881 (TUNE_68010): New macro.
3882 * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
3883 (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
3884 (M68K_CPU_m68332): Add MASK_68010.
3885 * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
3886 fallback definition.
3887 * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
3888 defines.
3889 * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
3890 (m68k_handle_option): Handle OPT_m68010. Add MASK_68010
3891 to all entries that use MASK_68020.
3892 (output_move_simode_const, output_move_himode, output_move_qimode)
3893 (output_move_stricthi, output_move_strictqi): Use TARGET_68010
3894 instead of TARGET_68020 to select clr behavior. Remove comment
3895 about there being no TARGET_68010.
3896 * config/m68k/m68k.md: Likewise throughout.
3897
3898 2007-01-12 Julian Brown <julian@codesourcery.com>
3899
3900 * config/m68k/m68k.h (TARGET_ISAB): New macro.
3901 * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
3902 * config/m68k/m68k.md: Likewise.
3903
3904 2007-01-12 Julian Brown <julian@codesourcery.com>
3905
3906 * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
3907 TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
3908
3909 2007-01-12 Julian Brown <julian@codesourcery.com>
3910
3911 * config/m68k/m68k.h (TUNE_68040_60): New macro.
3912 * config/m68k/m68k.c (standard_68881_constant_p): Use it.
3913 * config/m68k/m68k.md: Likewise.
3914
3915 2007-01-12 Julian Brown <julian@codesourcery.com>
3916 Richard Sandiford <richard@codesourcery.com>
3917
3918 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
3919 instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
3920 TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
3921 TARGET_CPU32.
3922 (TARGET_CPU32): Rename to...
3923 (TUNE_CPU32): ...this.
3924 (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
3925 (TUNE_CFV2): New macros.
3926 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
3927 remove conditions that are implied by TARGET_68020.
3928 * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
3929 instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
3930 (m68k_output_function_epilogue): Likewise.
3931 (m68k_rtx_costs): Likewise. Use TUNE_68060 instead of TARGET_68060
3932 and TUNE_CFV2 instead of TARGET_5200. Use TUNE_68000_10 instead of
3933 "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
3934 non-68000 timings. Refactor multiplication and division costs.
3935 (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
3936 TUNE_CPU32 instead of TARGET_CPU32.
3937 (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
3938 and TUNE_68060 instead of TARGET_68060.
3939 * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
3940 TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
3941 TARGET_CPU32.
3942 (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
3943 && !TARGET_COLDFIRE" to choose between moveq and clr.
3944 Likewise in the unnamed movsf pattern.
3945 (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
3946 "!TARGET_68020 && !TARGET_COLDFIRE". Likewise the unnamed
3947 ashiftrt pattern.
3948
3949 2007-01-12 Richard Sandiford <richard@codesourcery.com>
3950
3951 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
3952 of tabbing before backslashes.
3953
3954 2007-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3955
3956 * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
3957 * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
3958 (ASM_OUTPUT_INTERNAL_LABEL): Define.
3959
3960 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
3961
3962 * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
3963 find_interesting_uses_cond.
3964 (find_interesting_uses_cond): Use extract_cond_operands.
3965 (rewrite_use_compare): Use extract_cond_operands and
3966 force_gimple_operand_bsi. Do not call update_stmt.
3967 (determine_use_iv_cost_condition): Use extract_cond_operands.
3968 Return cheaper of using original bound and changing the exit bound.
3969
3970 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
3971
3972 PR tree-optimization/29516
3973 * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
3974 most_expensive_mult_to_index, addr_to_parts,
3975 create_mem_ref, maybe_fold_tmr): Make the type of
3976 fields of TARGET_MEM_REF sizetype.
3977 (move_fixed_address_to_symbol, move_pointer_to_base):
3978 New functions.
3979 * tree.def (TARGET_MEM_REF): Add comment on types of
3980 the operands.
3981
3982 2007-01-11 Joseph Myers <joseph@codesourcery.com>
3983
3984 * c-common.c (vector_types_convertible_p): Treat opaque types as
3985 always convertible if they have the same size, but not otherwise.
3986
3987 2007-01-11 Steven Bosscher <steven@gcc.gnu.org>
3988
3989 * ifcvt.c (struct noce_if_info): Add comments to the fields.
3990 Remove the b_unconditional field.
3991 (noce_try_sign_mask): Do not look at b_unconditional.
3992 (noce_process_if_block): Do not use merge_if_blocks. Update
3993 the CFG here. Do not set b_unconditional.
3994 (cond_move_process_if_block): Likewise.
3995 (find_cond_trap): Likewise.
3996 (check_cond_move_block): Require simple jump insns at the end
3997 of the basic block.
3998
3999 2007-01-11 Jan Hubicka <jh@suse.cz>
4000
4001 PR tree-optimization/1046
4002 * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
4003 when alias info is not ready.
4004 (pass_tail_recursion): Do not require aliasing.
4005 * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
4006 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
4007 * tree-ssa-copy.c (pass_copy_prop): Likewise.
4008 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
4009 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
4010 * passes.c (init_optimization_passes): Execute rename_ssa_copies,
4011 ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
4012 before inlining.
4013 * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
4014 When aliasing is not build, mark statement as volatile.
4015
4016 2007-01-11 Tom Tromey <tromey@redhat.com>
4017
4018 PR preprocessor/15185, PR preprocessor/20989:
4019 * doc/cppopts.texi <-MT>: Update description of algorithm for
4020 computing default target.
4021 <-M, -MD>: Reword "basename" text.
4022
4023 2007-01-11 Roger Sayle <roger@eyesopen.com>
4024
4025 * builtins.c (expand_builtin_pow, expand_builtin_powi,
4026 fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
4027 fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
4028 fold_builtin_int_int_roundingfn, fold_builtin_bitop,
4029 fold_builtin_bswap, real_constp, fold_builtin_pow,
4030 fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
4031 do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
4032 uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
4033 * convert.c (convert_to_pointer): Likewise.
4034 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
4035 * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
4036 const_binop, fold_convert_const_int_from_int,
4037 fold_convert_const_int_from_real,
4038 fold_convert_const_real_from_real, sign_bit_p,
4039 optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
4040 fold_sign_changed_comparison, fold_unary, fold_comparison,
4041 fold_binary, multiple_of_p, tree_Expr_non_zero_p,
4042 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
4043 * print-tree.c (print_node_brief, print_node): Likewise.
4044 * stor-layout.c (place_field, layout_type): Likewise.
4045 * tree-chrec.c (keep_cast): Likewise.
4046 * tree.c (build_vector, build_real, build_real_from_int_cst,
4047 build_complex): Likewise.
4048
4049 2007-01-11 Roger Sayle <roger@eyesopen.com>
4050
4051 * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete. For the time being,
4052 treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
4053
4054 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
4055
4056 * configure.ac (strict1_warn): Rename to strict_warn.
4057 (WERROR, --enable-werror, symlink hacks, stage1_cflags,
4058 cc_set_by_configure, quoted_cc_set_by_configure,
4059 stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
4060 all_boot_languages, all_stagestuff): Remove.
4061 (target_list): Remove bootstrap targets.
4062 * Makefile.in (quickstrap): Unconditionally make a synonym of all.
4063 (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
4064 REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
4065 SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
4066 VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
4067 STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
4068 stage1_copy, stage2_build, stage2_copy, stageprofile_build,
4069 stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
4070 stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
4071 bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
4072 bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
4073 unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
4074 restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
4075 cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
4076 *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
4077 stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
4078 stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
4079 risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
4080 (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
4081 (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
4082 (mostlyclean): Adjust.
4083 (clean, distclean): Don't mention bootstrap stuff.
4084 * configure: Regenerate.
4085 * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
4086 java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
4087 treelang/config-lang.in (stagestuff): Remove.
4088 * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
4089 stageprofile, stagefeedback, stagestuff): Remove mention.
4090
4091 2007-01-11 Nick Clifton <nickc@redhat.com>
4092
4093 * config/mcore/predicates.md (mcore_general_movesrc_operand):
4094 Accept CONSTs.
4095 (mcore_general_movdst_operand): Do not accept CONST_INTs.
4096 (mcore_arith_K_S_operand): Run the test for the S constraint not
4097 the test for the M constraint.
4098 (mcore_addsub_operand): Do not accept integer values that are
4099 larger than 32 bits.
4100 * config/mcore/mcore.md: Remove unused constraints from split.
4101 (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
4102 (addsi3): Likewise.
4103 (allocate_stack): Likewise.
4104 * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
4105 operands to 32 bits.
4106 (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
4107 INTVAL.
4108 (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
4109 mcore_const_ok_for_inline, mcore_const_trick_uses_not,
4110 try_constant_tricks, mcore_num_ones, mcore_num_zeros,
4111 mcore_output_bclri, mcore_output_andn, output_inline_const,
4112 mcore_output_move, mcore_output_movedouble): Likewise.
4113 (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
4114 (output_inline_const): Likewise.
4115 (output_inline_const): Fix format strings used in sprintf
4116 statements.
4117 * config/mcore/mcore-protos.h: Update prototypes for changed
4118 functions in mcore.c.
4119 * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
4120 HOST_WIDE_INT and not int.
4121 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
4122 CONST_OK_FOR_N): Likewise.
4123 (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
4124 (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
4125 an INTVAL.
4126
4127 2007-01-10 Jan Hubicka <jh@suse.cz>
4128
4129 * tree-vrp.c (remove_range_assertions): Release defs.
4130 * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
4131 * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
4132
4133 2007-01-10 Paul Brook <paul@codesourcery.com>
4134
4135 * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
4136 * config/arm/arm.md (mulsi3subsi): New insn.
4137
4138 2007-01-10 Zdenek Dvorak <dvorakz@suse.cz>
4139
4140 * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
4141 (tree_transform_and_unroll_loop): New.
4142 * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
4143 Declare.
4144
4145 2007-01-10 Robert Kennedy <jimbob@google.com>
4146
4147 * fold-const.c (fold_comparison): Fold comparisons like (x *
4148 1000 < 0) to (x < 0).
4149
4150 2007-01-10 Ian Lance Taylor <iant@google.com>
4151
4152 * tree-pretty-print.c (dump_generic_node): Print parentheses when
4153 operands have the same priority.
4154
4155 2007-01-10 Tom Tromey <tromey@redhat.com>
4156
4157 * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
4158 (fold_binary): Likewise.
4159 * langhooks.c (lhd_can_use_bit_fields_p): Removed.
4160 * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
4161 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
4162 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
4163 * langhooks.h (struct lang_hooks): Removed field
4164 'can_use_bit_fields_p'.
4165
4166 2007-01-10 Ralf Corsépius <ralf.corsepius@rtems.org>
4167
4168 * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
4169
4170 2007-01-10 Razya Ladelsky <razya@il.ibm.com>
4171
4172 * function.c (get_last_funcdef_no): New function.
4173 * function.h (get_last_funcdef_no): Declare.
4174 * tree-inline.c (initialize_cfun): Add initialization.
4175 (tree_function_versioning): Cleanup.
4176
4177 2007-01-10 Jan Hubicka <jh@suse.cz>
4178
4179 * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
4180 PHIs.
4181
4182 2007-01-10 Sa Liu <saliu@de.ibm.com>
4183 Ben Elliston <bje@au.ibm.com>
4184
4185 * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
4186 for SAVE_NONLOCAL and Pmode for any other save level.
4187 * spu-protos.h (spu_restore_stack_block): Declare.
4188 * spu.md (save_stack_block): Remove.
4189 (restore_stack_block): Call spu_restore_stack_block.
4190 * spu.c (spu_restore_stack_block): New function.
4191 (spu_expand_epilogue): Remove old comment.
4192
4193 2007-01-09 Zdenek Dvorak <dvorakz@suse.cz>
4194
4195 PR tree-optimization/30322
4196 * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
4197 (cand_value_at): Return the value as aff_tree.
4198 (may_eliminate_iv): Convert the bound from aff_tree to tree.
4199 * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
4200 aff_combination_mult): New functions.
4201 (aff_combination_add): Use aff_combination_add_cst.
4202 (aff_combination_convert): Allow conversions to a wider type.
4203 (tree_to_aff_combination): Handle BIT_NOT_EXPR.
4204 * tree-affine.h (aff_combination_mult): Declare.
4205
4206 2007-01-09 Carlos O'Donell <carlos@codesourcery.com>
4207
4208 * doc/tm.texi: Update documentation to reflect reality of exec
4209 and start file search behaviours. Update copyright year.
4210 * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
4211 header file directories.
4212
4213 2007-01-09 Uros Bizjak <ubizjak@gmail.com>
4214
4215 * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
4216 (*cosxf2): Rename to cosxf2_i387.
4217 (*sindf2, *sinsf2): Extend operand 1 to XFmode. Macroize patterns
4218 using X87MODEF12 mode macro. Rename patterns to
4219 *sin_extend<mode>xf2_i387. Use SSE_FLOAT_MODE_P to disable patterns
4220 for SSE math.
4221 (*cosdf2, *cossf2): Ditto.
4222 (sincosdf3, sincossf3): Ditto. Rewrite corresponding splitters
4223 to match extended input operands.
4224 (sincos<mode>3): New expander.
4225 (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
4226 insn patterns and corresponding splitters.
4227
4228 2007-01-09 Kaz Kojima <kkojima@gcc.gnu.org>
4229
4230 * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
4231 (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
4232
4233 2007-01-09 Nicolas Pitre <nico@cam.org>
4234
4235 PR target/30173
4236 * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
4237
4238 2007-01-08 Geoffrey Keating <geoffk@apple.com>
4239
4240 * target.h (struct gcc_target): New field library_rtti_comdat.
4241 * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
4242 (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
4243 * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
4244 * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
4245
4246 2007-01-08 Geoffrey Keating <geoffk@apple.com>
4247
4248 * doc/invoke.texi (Optimize Options): Correct description of -O0.
4249
4250 2007-01-08 Richard Guenther <rguenther@suse.de>
4251
4252 * tree.h (force_fit_type_double): Export.
4253 (force_fit_type): Remove.
4254 * fold-const.c (force_fit_type_double): New function.
4255 (force_fit_type): Remove.
4256 (int_const_binop): Use it.
4257 (fold_convert_const_int_from_int): Likewise.
4258 (fold_convert_const_int_from_real): Likewise.
4259 (fold_div_compare): Likewise.
4260 (fold_sign_changed_comparison): Likewise.
4261 (fold_unary): Likewise.
4262 (fold_negate_const): Likewise.
4263 (fold_abs_const): Likewise.
4264 (fold_not_const): Likewise.
4265 * c-common.c (shorten_compare): Use force_fit_type_double.
4266 * convert.c (convert_to_pointer): Likewise.
4267
4268 2007-01-08 Richard Guenther <rguenther@suse.de>
4269
4270 * tree.h (build_int_cst_wide_type): Export.
4271 * tree.c (build_int_cst_wide_type): New function.
4272 (build_int_cst_wide): Fix comment.
4273 * builtins.c (fold_builtin_object_size): Use build_int_cst
4274 to build -1 or 0 of the correct type. Use fit_double_type
4275 to check for overflow.
4276 * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
4277 to build the mask.
4278 (decode_field_reference): Likewise.
4279 (all_ones_mask_p): Likewise.
4280 (native_interpret_int): Use build_int_cst_wide_type.
4281 (fold_binary): Use build_int_cst_type to build an all-ones
4282 value.
4283 * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
4284
4285 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
4286
4287 * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
4288
4289 2007-01-09 Ben Elliston <bje@au.ibm.com>
4290
4291 * genautomata.c (STATS_OPTION): New option.
4292 (stats_flag): New flag.
4293 (gen_automata_option): Handle it.
4294 (initiate_automaton_gen): Ditto.
4295 (write_automata): Output statistics only if stats_flag is
4296 set. Likewise, output time statistics only if time_flag is set.
4297 * doc/md.texi (Processor pipeline description): Document new flag.
4298
4299 2007-01-08 Richard Guenther <rguenther@suse.de>
4300
4301 * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
4302 * tree.c (build_int_cst_type): Likewise.
4303 (size_in_bytes): Don't call force_fit_type on the result.
4304 (int_fits_type_p): Use fit_double_type.
4305 * fold-const.c (fit_double_type): New function.
4306 (force_fit_type): Use it.
4307 * tree.h (fit_double_type): Export.
4308
4309 2007-01-08 Jan Hubicka <jh@suse.cz>
4310
4311 * tree-vectorizer.c (gate_increase_alignment): Fix return type.
4312 * ipa.c (function_and_variable_visibility): Fix return type.
4313
4314 2007-01-08 Richard Guenther <rguenther@suse.de>
4315
4316 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
4317 of offset to build the index.
4318 * tree-pretty-print.c (dump_generic_node): Don't build negated
4319 const just for printing.
4320 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4321 * builtins.c (fold_builtin_int_roundingfn): Check if result
4322 fits the type by using force_fit_type and comparing the result.
4323 * predict.c (predict_loops): Use compare_tree_int for comparison.
4324 * tree.c (build_int_cst): Fall back to integer_type_node for
4325 NULL_TREE type.
4326 (build_int_cst_wide): Assert type is non-null.
4327
4328 2007-01-08 Roberto Costa <roberto.costa@st.com>
4329
4330 * tree-vrp.c (extract_range_from_cond_expr): New.
4331 (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
4332 * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
4333 as expressions.
4334 (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
4335 * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
4336 tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
4337 used as expressions.
4338 * tree-object-size.c (cond_expr_object_size): New.
4339 (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
4340
4341 2007-01-08 Jan Hubicka <jh@suse.cz>
4342
4343 * tree-ssa-forwprop.c (forward_propagate_into_cond,
4344 tree_ssa_forward_propagate_single_use_va): Release defs of propagated
4345 statement.
4346
4347 2007-01-08 Richard Guenther <rguenther@suse.de>
4348
4349 PR tree-optimization/23603
4350 * tree-vrp.c (set_value_range_to_truthvalue): New function.
4351 (extract_range_from_binary): Fall back to truthvalue instead of
4352 varying for TRUTH_*_EXPR.
4353 (extract_range_from_comparison): Fall back to truthvalue instead of
4354 varying.
4355 (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
4356 if all visited PHI values were constant.
4357
4358 2007-01-08 Jan Hubicka <jh@suse.cz>
4359
4360 * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
4361 (cgraph_analyze_function): break out from ...
4362 (cgraph_finalize_compilation_unit): ... here.
4363 (cgraph_expand_function): Remove forgoten commented out line.
4364 (cgraph_optimize): Analyze functions.
4365
4366 2007-01-08 Jan Hubicka <jh@suse.cz>
4367
4368 * tree-pas.h (TODO_remove_function): New flag.
4369 (TODO_update*): Renumber.
4370 (pass_ipa_increase_alignment,
4371 pass_ipa_function_and_variable_visibility): New passes.
4372 * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
4373 (cgraph_function_and_variable_visibility): Move to ipa.c
4374 (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
4375 cgraph_increase_alignment.
4376 * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
4377 (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
4378 calling tree-inline.
4379 (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
4380 (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
4381 * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
4382 (gate_increase_alignment): New function.
4383 (pass_ipa_increase_alignment): New pass.
4384 * ipa.c: Inline tree-pass.h and timevar.h
4385 (function_and_variable_visibility): Move here from cgraphunit.c
4386 * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
4387 * passes.c (init_optimization_passes): Add the two new passes.
4388 (execute_todo): Handle cgraph_remove_functions.
4389
4390 2007-01-08 Nick Clifton <nickc@redhat.com>
4391
4392 * config/frv/predicates.md (reg_or_0_operand): Accept
4393 CONST_DOUBLEs.
4394
4395 2007-01-08 Ralf Corsépius <ralf.corsepius@rtems.org>
4396
4397 * config/bfin/rtems.h, config/bfin/t-rtems: New.
4398 * config.gcc: Add bfin*-rtems*.
4399
4400 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
4401
4402 * c.opt: Add -flax-vector-conversions.
4403 * c-typeck.c (convert_for_assignment): Pass flag to
4404 vector_types_convertible_p to allow emission of note.
4405 (digest_init): Likewise.
4406 * c-opts.c: Handle -flax-vector-conversions.
4407 * c-common.c (flag_lax_vector_conversions): New.
4408 (vector_types_convertible_p): Unless -flax-vector conversions
4409 has been passed, disallow conversions between vectors with
4410 differing numbers of subparts and/or element types. If such
4411 a conversion is disallowed, possibly emit a note on the first
4412 occasion only to inform the user of -flax-vector-conversions.
4413 The new last argument specifies this.
4414 * c-common.h (flag_lax_vector_conversions): New.
4415 (vector_types_convertible_p): Add extra argument.
4416 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
4417 char_type_node for V*QI type vectors.
4418 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
4419 Update to satisfy new typechecking rules.
4420 * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
4421 C and C++ variants.
4422 * doc/invoke.texi (C Dialect Options): Document
4423 -flax-vector-conversions.
4424
4425 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
4426
4427 PR tree-optimization/29877
4428 * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
4429 a register variable on the RHS to not be replaceable.
4430
4431 2007-01-08 Chen Liqin <liqin@sunnorth.com.cn>
4432 * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
4433 * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
4434 const_simm15, const_pow2, const_npow2): Added.
4435 * config/score/misc.md (insv, extv, extzv, movmemsi,
4436 move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
4437 * config/score/score.c (score_address_cost, score_select_cc_mode):
4438 Added.
4439 Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
4440 Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
4441 Update score_print_operand.
4442 * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
4443 Adjust register allocate order and update some macro define.
4444 * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
4445 mdx_block_move_straight, mdx_block_move_loop_head,
4446 mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
4447 mdx_block_move): Added.
4448 (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
4449 mdp_limm): Updated and fix some bug and typo.
4450 * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
4451 (movsf, movdf, doloop_end): Added.
4452
4453 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
4454
4455 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
4456 config/arm/thumb2.md: Fix comment typos.
4457 * doc/extend.texi: Fix a typo.
4458
4459 2007-01-07 Eric Christopher <echristo@apple.com>
4460
4461 * configure.ac: Check for __stack_chk_fail for darwin.
4462 * configure: Regenerate.
4463
4464 2007-01-07 Richard Guenther <rguenther@suse.de>
4465
4466 * tree-vrp.c (extract_range_from_assert): CSE calls to
4467 compare_values where possible.
4468 (extract_range_from_unary_expr): Likewise.
4469
4470 2007-01-07 Anatoly Sokolov <aesok@post.ru>
4471
4472 * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
4473 * config/avr/avr.c (call_insn_operand): Delete function.
4474 * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
4475 instead of register number. Use predicates.
4476 * config/avr/predicates.md (const0_operand, reg_or_0_operand,
4477 call_insn_operand): Add.
4478
4479 2007-01-06 Jan Hubicka <jh@suse.cz>
4480
4481 * tree-pass.h (pass_build_cgraph_edges): Declare.
4482 * cgraphunit.c (record_refernece): Move to cgraphbuild.c
4483 (visited_nodes): Remove.
4484 (cgraph_create_edges): Move to cgraphbuild.c; rename to
4485 build_cgrpah_edges; make visited_nodes local.
4486 (cgraph_process_new_functions): DO not call initialize_inline_failed.
4487 (record_references_in_initializer): Move to cgraphbuild.c
4488 (initialize_inline_failed, rebuild_cgraph_edges,
4489 pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
4490 (verify_cgraph_node): Make visited_nodes local.
4491 (cgraph_analyze_function): Do not call cgraph_create_edges and
4492 initialize_inline_failed.
4493 (cgraph_expand_function): Do not call cgraph_lower_function;
4494 assert that function is already lowered.
4495 * Makefile.in (cgraphbuild.o): New.
4496 * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
4497 at the end of lowering passes.
4498
4499 2007-01-06 Steven Bosscher <steven@gcc.gnu.org>
4500
4501 * ifcvt.c (cond_move_convert_if_block): New function, code
4502 factored out from...
4503 (cond_move_process_if_block): ...here. Call the new function
4504 on the THEN and ELSE blocks.
4505 (merge_if_block): Do not copy global_live_at_end, merge_blocks
4506 already takes care of this.
4507
4508 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4509
4510 PR c/19978
4511 * tree.h (TREE_OVERFLOW_P): New.
4512 * c-typeck.c (parser_build_unary_op): Warn only if result
4513 overflowed and operands did not.
4514 (parser_build_binary_op): Likewise.
4515 (convert_for_assignment): Remove redundant overflow_warning.
4516 * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
4517
4518 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4519
4520 * c-typeck.c (store_init_value): Split over two lines to follow
4521 the GNU coding style.
4522
4523 2007-01-05 Benjamin Kosnik <bkoz@redhat.com>
4524
4525 * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
4526 __GXX_EXPERIMENTAL_CXX0X__.
4527 * doc/cpp.texi: Same.
4528
4529 2007-01-05 Richard Guenther <rguenther@suse.de>
4530
4531 PR middle-end/27826
4532 * tree.c (get_narrower): Do not construct COMPONENT_REFs
4533 with mismatched types. Instead explicitly build a
4534 conversion NOP_EXPR.
4535
4536 2007-01-05 Ian Lance Taylor <iant@google.com>
4537
4538 * c-common.c (decl_with_nonnull_addr_p): New function.
4539 (c_common_truthvalue_conversion): Call it.
4540 * c-typeck.c (build_binary_op): Likewise.
4541 * c-common.h (decl_with_nonnull_addr_p): Declare.
4542
4543 2007-01-05 Jakub Jelinek <jakub@redhat.com>
4544
4545 PR c/30360
4546 * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
4547 denom against 0.0.
4548
4549 2007-01-05 Joel Brobecker <brobecker@adacore.com>
4550
4551 * doc/install.texi (Final install): Document the fact that
4552 the GNAT runtime should not be stripped.
4553
4554 2007-01-04 Jan Hubicka <jh@suse.cz>
4555
4556 * tree-inline.c (fold_marked_statements): Update operand caches
4557 and EH after folding
4558
4559 2007-01-04 Ian Lance Taylor <iant@google.com>
4560
4561 * c-common.c (check_function_nonnull): Whitespace fix.
4562
4563 2007-01-04 Jan Hubicka <jh@suse.cz>
4564
4565 * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
4566 comitted older version of patch.
4567 (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
4568 function, celanup cfg and collect garbage.
4569
4570 2007-01-04 Mike Stump <mrs@apple.com>
4571
4572 * Makefile.in (mostlyclean): Don't remove libgcc anymore.
4573 (clean): Likewise.
4574
4575 2007-01-04 Eric Christopher <echristo@apple.com>
4576
4577 * libgcc2.c (__bswapsi2): Use SItype.
4578 (__bswapdi2): Use DItype.
4579 * libgcc2.h: Update for above.
4580
4581 2007-01-04 Paul Brook <paul@codesourcery.com>
4582
4583 * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
4584 mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
4585 mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
4586 umulsidi3, umulsidi3adddi, smulsi3_highpart,
4587 umulsi3_highpart): Make conditional on !arm_arch6.
4588 (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
4589 mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
4590 mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
4591 umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
4592 umulsi3_highpart_v6): New insns.
4593
4594 2007-01-04 Roger Sayle <roger@eyesopen.com>
4595
4596 * fold-const.c (fold_convert): When casting an expression to void,
4597 fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
4598 have a type. Instead of attempting to build a NOP_EXPR, return
4599 these "special" trees directly.
4600
4601 2007-01-04 Joseph Myers <joseph@codesourcery.com>
4602
4603 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
4604 MULT inside MINUS as either argument. Use rs6000_cost->dmul -
4605 rs6000_cost->fp not 0 as adjustment for outer NEG.
4606
4607 2007-01-04 Jan Hubicka <jh@suse.cz>
4608
4609 * cgraph.c (cgraph_release_function_body): New function.
4610 (cgraph_remove_node): Use it.
4611 * cgraph.h (cgraph_release_function_body): Declare.
4612 * cgraphunit.c (cgraph_expand_function): Use it.
4613 * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
4614 * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
4615 is initialized and while compilation of other function is running.
4616 * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
4617 statement CFG annotations from here to ...
4618 * tree-cfg.c (delete_tree_cfg_annotations): ... here.
4619
4620 2007-01-04 Zdenek Dvorak <dvorakz@suse.cz>
4621
4622 * cfgloop.h (enum li_flags): Make the constants powers of two.
4623
4624 2007-01-04 Jan Hubicka <jh@suse.cz>
4625
4626 * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
4627 set.
4628 (fold_marked_statements): New function.
4629 (optimize_inline_calls, tree_function_versioning): Fold new statements.
4630 * tree-inline.h (copy_body_data): Add statements_to_fold.
4631
4632 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
4633
4634 * config.gcc: Mention libgcc/config.host.
4635 * Makefile.in: Update comments mentioning libgcc.
4636 (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
4637 (all.cross, start.encap, rest.encap, rest.cross): Update
4638 dependencies for libgcc move.
4639 (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
4640 (clean-target, clean-target-libgcc): Delete.
4641 (srcdirify, GCC_EXTRA_PARTS): New macros.
4642 (libgcc-support, libgcc.mvars): New rules.
4643 (distclean): Remove mention of mklibgcc.
4644 (install): Don't reference INSTALL_LIBGCC.
4645 (install-common): Don't reference EXTRA_PARTS.
4646 (install-libgcc, install-multilib): Delete rules.
4647 * mklibgcc.in: Delete file.
4648 * doc/configfiles.texi: Don't mention mklibgcc.
4649
4650 * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
4651 * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
4652 * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
4653 * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
4654 (mklibgcc, ldblspecs): Likewise.
4655
4656 * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
4657 (posixpre.def): Use $(T).
4658 (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
4659 (SHLIB_SRC, SHLIB_INSTALL): Delete.
4660 (SHLIB_LINK): Make dummy.
4661 * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
4662
4663 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
4664
4665 * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
4666 * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
4667 config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
4668 config/rs6000/t-newas, config/sparc/t-elf: Likewise.
4669
4670 * configure.ac (all_outputs): Remove mklibgcc.
4671 * configure: Regenerated.
4672
4673 2007-01-03 Josh Conner <jconner@apple.com>
4674
4675 PR middle-end/29683
4676 * calls.c (compute_argument_addresses): Set stack and stack_slot
4677 for partial args, too.
4678 (store_one_arg): Use locate.size.constant for the size when
4679 generating a save_area.
4680
4681 2007-01-03 Robert Kennedy <jimbob@google.com>
4682
4683 * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
4684 whose definitions are deleted due to basic block merging.
4685
4686 2007-01-03 Paul Brook <paul@codesourcery.com>
4687
4688 PR target/16634
4689 * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
4690 functions.
4691 (use_return_insn): Return 0 for Thumb interrupt functions.
4692 (print_multi_reg): Add rfe argument for IRQ returns.
4693 (arm_output_epilogue): Pop interrupt return address directly into PC.
4694 (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
4695
4696 2007-01-03 Paul Brook <paul@codesourcery.com>
4697
4698 Merge from sourcerygxx-4_1.
4699 * config/arm/thumb2.md: New file.
4700 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
4701 Thumb-2.
4702 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
4703 * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
4704 (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
4705 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
4706 tables.
4707 (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
4708 * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
4709 comptibility.
4710 * config/arm/ieee754-sf.S: Ditto.
4711 * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
4712 (thumb1_base_register_rtx_p): ... to this.
4713 (thumb_index_register_rtx_p): Rename...
4714 (thumb1_index_register_rtx_p): ... to this.
4715 (thumb_output_function_prologue): Rename...
4716 (thumb1_output_function_prologue): ... to this.
4717 (thumb_legitimate_address_p): Rename...
4718 (thumb1_legitimate_address_p): ... to this.
4719 (thumb_rtx_costs): Rename...
4720 (thumb1_rtx_costs): ... to this.
4721 (thumb_compute_save_reg_mask): Rename...
4722 (thumb1_compute_save_reg_mask): ... to this.
4723 (thumb_final_prescan_insn): Rename...
4724 (thumb1_final_prescan_insn): ... to this.
4725 (thumb_expand_epilogue): Rename...
4726 (thumb1_expand_epilogue): ... to this.
4727 (arm_unwind_emit_stm): Rename...
4728 (arm_unwind_emit_sequence): ... to this.
4729 (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
4730 thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
4731 thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
4732 arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
4733 thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
4734 thumb2_output_casesi): New functions.
4735 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
4736 (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
4737 FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
4738 THUMB2_WORK_REGS): Define.
4739 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
4740 arm_condexec_mask, arm_condexec_masklen)): New variables.
4741 (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
4742 (arm_override_options): Check new CPU capabilities.
4743 Set new architecture flag variables.
4744 (arm_isr_value): Handle v7m interrupt functions.
4745 (user_return_insn): Return 0 for v7m interrupt functions. Handle
4746 Thumb-2.
4747 (const_ok_for_arm): Handle Thumb-2 constants.
4748 (arm_gen_constant): Ditto. Use movw when available.
4749 (arm_function_ok_for_sibcall): Return false for v7m interrupt
4750 functions.
4751 (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
4752 (thumb_find_work_register, arm_load_pic_register,
4753 legitimize_tls_address, arm_address_cost, load_multiple_sequence,
4754 emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
4755 print_multi_reg, output_mov_long_double_fpa_from_arm,
4756 output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
4757 output_mov_double_fpa_from_arm, output_move_double,
4758 arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
4759 output_return_instruction, arm_output_function_prologue,
4760 arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
4761 arm_output_mi_thunk, thumb_set_return_address): Ditto.
4762 (arm_expand_prologue): Handle Thumb-2. Use arm_save_coproc_regs.
4763 (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
4764 (arithmetic_instr, shift_op): Use arm_shift_nmem.
4765 (arm_print_operand): Use arm_print_condition. Handle '(', ')', '.',
4766 '!' and 'L'.
4767 (arm_final_prescan_insn): Use extract_constrain_insn_cached.
4768 (thumb_expand_prologue): Use thumb_set_frame_pointer.
4769 (arm_file_start): Output directive for unified syntax.
4770 (arm_unwind_emit_set): Handle stack alignment instruction.
4771 * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
4772 Add v6t2, v7, v7a, v7r and v7m.
4773 (RETLDM): Add Thumb-2 code.
4774 (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
4775 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
4776 (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
4777 TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
4778 THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
4779 ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
4780 THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
4781 CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
4782 ADJUST_INSN_LENGTH): Define.
4783 (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
4784 STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
4785 BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
4786 PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
4787 SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
4788 TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
4789 HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
4790 HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
4791 REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
4792 REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
4793 LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
4794 GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
4795 ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
4796 FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
4797 PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
4798 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
4799 * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
4800 cortex-m3.
4801 * config/arm/arm-tune.md: Regenerate.
4802 * config/arm/arm-protos.h: Update prototypes.
4803 * config/arm/vfp.md: Enable patterns for Thumb-2.
4804 (arm_movsi_vfp): Add movw alternative. Use output_move_vfp.
4805 (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
4806 (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
4807 thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
4808 * config/arm/libunwind.S: Add Thumb-2 code.
4809 * config/arm/constraints.md: Update include Thumb-2.
4810 * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
4811 * config/arm/ieee754-df.S: Ditto.
4812 * config/arm/bpabi.S: Ditto.
4813 * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
4814 * config/arm/predicates.md (low_register_operand,
4815 low_reg_or_int_operand, thumb_16bit_operator): New.
4816 (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
4817 (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
4818 * config/arm/t-arm-elf: Add armv7 multilib.
4819 * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
4820 Include thumb2.md.
4821 (UNSPEC_STACK_ALIGN, ce_count): New.
4822 (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
4823 arm_zero_extendsidi2, arm_zero_extendqidi2): New
4824 insns/expanders.
4825 * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
4826 (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
4827 thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
4828 * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
4829 (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
4830 thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
4831 insns.
4832 * doc/extend.texi: Document ARMv7-M interrupt functions.
4833 * doc/invoke.texi: Document Thumb-2 new cores+architectures.
4834
4835 2007-01-03 Jakub Jelinek <jakub@redhat.com>
4836
4837 * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
4838 (struct _Unwind_Context): Rename args_size to flags, remove
4839 signal_frame field, add a new args_size field and version field.
4840 (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
4841 _Unwind_IsExtendedContext): New inline functions.
4842 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
4843 Assume by_value array is only present if _Unwind_IsExtendedContext.
4844 (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
4845 _Unwind_IsSignalFrame.
4846 (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
4847 (uw_update_context_1): Use _Unwind_SetSignalFrame.
4848 (uw_init_context_1): Initialize context->flags to
4849 EXTENDED_CONTEXT_BIT.
4850 * config/rs6000/linux-unwind.h (frob_update_context): Use
4851 _Unwind_SetSignalFrame.
4852
4853 2007-01-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
4854
4855 PR middle-end/30353
4856 * gimplify.c (gimplify_modify_expr_complex_part): Move below
4857 tree_to_gimple_tuple. Call tree_to_gimple_tuple when we need
4858 the value.
4859
4860 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
4861
4862 * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
4863 REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
4864 RET, AT_SP): Remove.
4865 * config/i386/i386.md (*sse_prologue_save_insn): Use return
4866 instead of RET.
4867
4868 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
4869 * cfgbuild.c (find_basic_blocks): Likewise.
4870 * cfgrtl.c (rtl_create_basic_block): Likewise.
4871 * function.c (temp_slots_at_level): Likewise.
4872 * reg-stack.c (stack_regs_mentioned): Likewise.
4873 * regclass.c (allocate_reg_info): Likewise.
4874 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
4875 set_bb_for_stmt, move_block_to_fn): Likewise.
4876 * tree-complex.c (tree_lower_complex): Likewise.
4877 * vec.h (VEC_safe_grow_cleared): New.
4878
4879 * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
4880
4881 2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
4882
4883 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
4884 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
4885 to loop_version.
4886 * cfgloopmanip.c (scale_loop_frequencies): Export.
4887 (loopify): Scale the frequencies by prescribed coefficients.
4888 (set_zero_probability): New function.
4889 (duplicate_loop_to_header_edge): Improve updating of frequencies.
4890 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
4891 and frequencies according to arguments.
4892 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
4893 correctly.
4894 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
4895 * modulo-sched.c (sms_schedule): Set probabilities for entering
4896 versioned loop correctly.
4897 * tree-vect-transform.c (vect_transform_loop): Ditto.
4898 * cfgloop.h (loopify, loop_version): Declaration changed.
4899 (scale_loop_frequencies): Declared.
4900
4901 2007-01-02 Jan Hubicka <jh@suse.cz>
4902
4903 * cgraph.c: Include tree-flow.h
4904 (cgraph_add_new-function): Handle IPA_SSA mode; execute
4905 early_local_passes.
4906 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
4907 * tree-pass.h (pass_all_early_optimizations): Declare.
4908 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
4909 early_local_passes.
4910 (cgraph_analyze_function): Do early_local_passes.
4911 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
4912 Do not add referenced vars.
4913 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
4914 SSA form.
4915 (gate_all_early_local_passes): New gate.
4916 (pass_early_local_passes): Use new gate.
4917 (execute_early_local_optimizations): New functions.
4918 (gate_all_early_optimizations): New gate.
4919 (pass_all_early_optimizations): New pass.
4920 (execute_free_datastructures): Free SSA only when initialized.
4921 (gate_init_datastructures): Init only when optimizing.
4922 (tree_lowering_passes): Do early local passes when called late.
4923 * tree-profile.c (do_tree_profiling): Don't profile functions added
4924 late.
4925 (do_early_tree_profiling, pass_early_tree_profile): Kill.
4926 * tree-cfg.c (update_modified_stmts): Do not update when operands are
4927 not active.
4928 * passes.c (init_optimizations_passes): Reorder so we go into SSA
4929 during early_local_passes.
4930 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
4931
4932
4933 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
4934
4935 * Makefile.in: Update copyright year.
4936
4937 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
4938
4939 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
4940 in $(lang_checks) and check-consistency targets.
4941
4942 2007-01-02 Jan Hubicka <jh@suse.cz>
4943
4944 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
4945 Do not add referenced vars.
4946 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
4947 are not active.
4948 * passes.c (init_optimization_passes): Put mudflap_2 after
4949 free_datastructures.
4950
4951 2007-01-02 Jan Hubicka <jh@suse.cz>
4952
4953 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
4954 Set NOTHROW flag on call statements proved to be nothrow.
4955 Update statement of local calls so new pure/const functions are
4956 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
4957 goto receivers.
4958 (tree_rest_of_compilation): Register hooks and initialize bitmap
4959 early. Do not set after_inlining flag.
4960
4961 2007-01-02 Steve Ellcey <sje@cup.hp.com>
4962
4963 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
4964 HOST_BITS_PER_LONGLONG
4965
4966 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4967
4968 PR c/19977
4969 * c-typeck.c (store_init_value): Don't emit pedantic overflow
4970 warning for non-static initializers.
4971
4972 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
4973
4974 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
4975 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
4976 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
4977 Always use set_unique_reg_note to add REG_EQUAL notes.
4978
4979 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
4980
4981 Revert:
4982 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
4983
4984 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
4985 * cfgbuild.c (find_basic_blocks): Likewise.
4986 * cfgrtl.c (rtl_create_basic_block): Likewise.
4987 * function.c (temp_slots_at_level): Likewise.
4988 * reg-stack.c (stack_regs_mentioned): Likewise.
4989 * regclass.c (allocate_reg_info): Likewise.
4990 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
4991 set_bb_for_stmt, move_block_to_fn): Likewise.
4992 * tree-complex.c (tree_lower_complex): Likewise.
4993 * vec.h (VEC_safe_grow_cleared): New.
4994
4995 2007-01-02 Ian Lance Taylor <iant@google.com>
4996
4997 * c-common.c (c_common_truthvalue_conversion): When warning about
4998 using an assignment as a truth value, set TREE_NO_WARNING.
4999
5000 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5001
5002 PR middle-end/7651
5003 * c.opt (Wold-style-declaration): New.
5004 * doc/invoke.texi (C-only Warning Options): New.
5005 (Wold-style-declaration): Document it.
5006 (Wextra): Enabled by -Wextra.
5007 * c-opts.c (c_common_post_options): Enabled by -Wextra.
5008 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
5009 -Wold-style-declaration.
5010
5011 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
5012
5013 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
5014 * cfgbuild.c (find_basic_blocks): Likewise.
5015 * cfgrtl.c (rtl_create_basic_block): Likewise.
5016 * function.c (temp_slots_at_level): Likewise.
5017 * reg-stack.c (stack_regs_mentioned): Likewise.
5018 * regclass.c (allocate_reg_info): Likewise.
5019 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
5020 set_bb_for_stmt, move_block_to_fn): Likewise.
5021 * tree-complex.c (tree_lower_complex): Likewise.
5022 * vec.h (VEC_safe_grow_cleared): New.
5023
5024 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
5025
5026 * c-common.c (c_common_nodes_and_builtins): Since variants of
5027 void_type_node get built before it is given a name, we need to
5028 give those variants the name, too.
5029 (complete_array_type): We need to work with the canonical main
5030 type of the array, from which we will build the qualified version.
5031 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
5032 * print-tree.c (print_node): Display canonical type information
5033 for each type.
5034 * stor-layout.c (layout_type): When we don't know the
5035 alignment of a type for which we're building an array, we end up
5036 guessing wrong, so make the type require structural equality.
5037 * tree.c (make_node_stat): When we build a new type, it is its
5038 own canonical type.
5039 (build_type_attribute_qual_variant): When building an attribute
5040 variant, its canonical type is the non-attribute variant. However,
5041 if the attributes are target-dependent and they differ, we need to
5042 use structural equality checks for this type.
5043 (build_qualified_type): A qualified type is not equivalent to its
5044 unqualified variant; set the canonical type appropriately.
5045 (build_distinct_type_copy): When building a distinct type from
5046 another type, the new type is its own canonical type.
5047 (build_variant_type_copy): When building a new type variant, we
5048 assume that it is equivalent to the original type.
5049 (build_pointer_type_for_mode): When building a pointer type, also
5050 build a canonical type pointer.
5051 (build_reference_type_for_mode): When building a reference type,
5052 also build a canonical type reference.
5053 (build_index_type): When we can't hash an index type (e.g.,
5054 because its maximum value is negative), the index type requires
5055 structural equality tests.
5056 (build_array_type): Build the canonical form of an array type.
5057 (build_function_type): Function types require structural equality,
5058 because they contain default arguments, attributes, etc.
5059 (build_method_type_directly): Ditto for method types.
5060 (build_offset_type): Build the canonical offset type.
5061 (build_complex_type): Build the canonical vector type.
5062 (make_vector_type): Build the canonical vector type.
5063 * tree.h (TYPE_CANONICAL): New.
5064 (TYPE_STRUCTURAL_EQUALITY_P): New.
5065 (SET_TYPE_STRUCTURAL_EQUALITY): New.
5066 (struct tree_type): Added "canonical" field.
5067 * params.h (VERIFY_CANONICAL_TYPES): New.
5068 * doc/c-tree.texi (TYPE_CANONICAL): Document.
5069 (TYPE_STRUCTURAL_EQUALITY_P): Document.
5070 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
5071 * doc/invoke.texi (verify-canonical-types): Document --param
5072 parameter for verifying canonical types.
5073
5074 2007-01-02 Joseph Myers <joseph@codesourcery.com>
5075
5076 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
5077 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
5078 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
5079 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
5080 tm_file.
5081 * config/rs6000/e500.h: New.
5082 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
5083 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
5084 Remove.
5085 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
5086 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
5087 TARGET_E500_DOUBLE): Remove.
5088 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
5089 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
5090 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
5091 * config/rs6000/rs6000.c (rs6000_override_options): Use
5092 CHECK_E500_OPTIONS.
5093
5094 2007-01-02 Joseph Myers <joseph@codesourcery.com>
5095
5096 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
5097 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
5098 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
5099 rs6000_emit_cmove): Don't check TARGET_E500.
5100 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
5101 sordered): Don't check TARGET_E500.
5102
5103 2007-01-01 Eric Christopher <echristo@apple.com>
5104
5105 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
5106 HARD_REGISTER_NUM_P.
5107
5108 2007-01-01 Roger Sayle <roger@eyesopen.com>
5109
5110 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
5111 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
5112 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
5113 eq/ne Y".
5114
5115 2007-01-01 Mike Stump <mrs@apple.com>
5116
5117 * configure.ac: Remove support for building with Apple's gcc-3.1.
5118
5119 2007-01-02 Joseph Myers <joseph@codesourcery.com>
5120
5121 PR middle-end/30311
5122 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
5123 REG is a hard register. Do not modify REG before calling
5124 subreg_nregs.
5125 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
5126 multiple of the size of YMODE for certain lowpart cases.
5127
5128 2007-01-01 Andrew Pinski <pinskia@gmail.com>
5129
5130 PR middle-end/30253
5131 * gimplify (voidify_wrapper_expr): Update for
5132 GIMPLE_MODIFY_STMT.
5133
5134 2007-01-01 Andreas Schwab <schwab@suse.de>
5135
5136 PR target/29166
5137 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
5138 save of BR0 in extra_spill_size instead of spill_size.
5139 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
5140 area.
5141 (ia64_expand_epilogue): Restore BR0 from its new location.
5142
5143 2007-01-01 Andrew Pinski <pinskia@gmail.com>
5144
5145 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
5146 Use a temporary variable if the left hand side is not a gimple
5147 register.
5148
5149 2007-01-01 Andrew Pinski <pinskia@gmail.com>
5150
5151 * gimplify.c (gimplify_return_expr): Make the temporary variable
5152 for the return expression, a gimple register variable.
5153
5154 2007-01-01 Jan Hubicka <jh@suse.cz>
5155
5156 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
5157 INSN_LIST.
5158
5159 2007-01-01 Mike Stump <mrs@apple.com>
5160
5161 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
5162 .literal16.
5163 * config/darwin.c (machopic_select_rtx_section): Use
5164 HAVE_GAS_LITERAL16.
5165 (darwin_mergeable_constant_section): Likewise.
5166 * configure: Regenerate.
5167 * config.in: Regenerate.
5168
5169 2007-01-01 Jan Hubicka <jh@suse.cz>
5170 Andrew Pinski <pinskia@gmail.com>
5171
5172 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
5173 before starting IPA passes.