1 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
3 * configure.ac (strict1_warn): Rename to strict_warn.
4 (WERROR, --enable-werror, symlink hacks, stage1_cflags,
5 cc_set_by_configure, quoted_cc_set_by_configure,
6 stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
7 all_boot_languages, all_stagestuff): Remove.
8 (target_list): Remove bootstrap targets.
9 * Makefile.in (quickstrap): Unconditionally make a synonym of all.
10 (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
11 REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
12 SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
13 VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
14 STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
15 stage1_copy, stage2_build, stage2_copy, stageprofile_build,
16 stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
17 stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
18 bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
19 bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
20 unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
21 restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
22 cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
23 *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
24 stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
25 stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
26 risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
27 (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
28 (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
29 (mostlyclean): Adjust.
30 (clean, distclean): Don't mention bootstrap stuff.
31 * configure: Regenerate.
32 * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
33 java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
34 treelang/config-lang.in (stagestuff): Remove.
35 * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
36 stageprofile, stagefeedback, stagestuff): Remove mention.
38 2007-01-11 Nick Clifton <nickc@redhat.com>
40 * config/mcore/predicates.md (mcore_general_movesrc_operand):
42 (mcore_general_movdst_operand): Do not accept CONST_INTs.
43 (mcore_arith_K_S_operand): Run the test for the S constraint not
44 the test for the M constraint.
45 (mcore_addsub_operand): Do not accept integer values that are
47 * config/mcore/mcore.md: Remove unused constraints from split.
48 (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
50 (allocate_stack): Likewise.
51 * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
53 (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
55 (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
56 mcore_const_ok_for_inline, mcore_const_trick_uses_not,
57 try_constant_tricks, mcore_num_ones, mcore_num_zeros,
58 mcore_output_bclri, mcore_output_andn, output_inline_const,
59 mcore_output_move, mcore_output_movedouble): Likewise.
60 (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
61 (output_inline_const): Likewise.
62 (output_inline_const): Fix format strings used in sprintf
64 * config/mcore/mcore-protos.h: Update prototypes for changed
66 * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
67 HOST_WIDE_INT and not int.
68 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
69 CONST_OK_FOR_N): Likewise.
70 (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
71 (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
74 2007-01-10 Jan Hubicka <jh@suse.cz>
76 * tree-vrp.c (remove_range_assertions): Release defs.
77 * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
78 * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
80 2007-01-10 Paul Brook <paul@codesourcery.com>
82 * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
83 * config/arm/arm.md (mulsi3subsi): New insn.
85 2007-01-10 Zdenek Dvorak <dvorakz@suse.cz>
87 * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
88 (tree_transform_and_unroll_loop): New.
89 * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
92 2007-01-10 Robert Kennedy <jimbob@google.com>
94 * fold-const.c (fold_comparison): Fold comparisons like (x *
97 2007-01-10 Ian Lance Taylor <iant@google.com>
99 * tree-pretty-print.c (dump_generic_node): Print parentheses when
100 operands have the same priority.
102 2007-01-10 Tom Tromey <tromey@redhat.com>
104 * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
105 (fold_binary): Likewise.
106 * langhooks.c (lhd_can_use_bit_fields_p): Removed.
107 * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
108 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
109 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
110 * langhooks.h (struct lang_hooks): Removed field
111 'can_use_bit_fields_p'.
113 2007-01-10 Ralf Corsépius <ralf.corsepius@rtems.org>
115 * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
117 2007-01-10 Razya Ladelsky <razya@il.ibm.com>
119 * function.c (get_last_funcdef_no): New function.
120 * function.h (get_last_funcdef_no): Declare.
121 * tree-inline.c (initialize_cfun): Add initialization.
122 (tree_function_versioning): Cleanup.
124 2007-01-10 Jan Hubicka <jh@suse.cz>
126 * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
129 2007-01-10 Sa Liu <saliu@de.ibm.com>
130 Ben Elliston <bje@au.ibm.com>
132 * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
133 for SAVE_NONLOCAL and Pmode for any other save level.
134 * spu-protos.h (spu_restore_stack_block): Declare.
135 * spu.md (save_stack_block): Remove.
136 (restore_stack_block): Call spu_restore_stack_block.
137 * spu.c (spu_restore_stack_block): New function.
138 (spu_expand_epilogue): Remove old comment.
140 2007-01-09 Zdenek Dvorak <dvorakz@suse.cz>
142 PR tree-optimization/30322
143 * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
144 (cand_value_at): Return the value as aff_tree.
145 (may_eliminate_iv): Convert the bound from aff_tree to tree.
146 * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
147 aff_combination_mult): New functions.
148 (aff_combination_add): Use aff_combination_add_cst.
149 (aff_combination_convert): Allow conversions to a wider type.
150 (tree_to_aff_combination): Handle BIT_NOT_EXPR.
151 * tree-affine.h (aff_combination_mult): Declare.
153 2007-01-09 Carlos O'Donell <carlos@codesourcery.com>
155 * doc/tm.texi: Update documentation to reflect reality of exec
156 and start file search behaviours. Update copyright year.
157 * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
158 header file directories.
160 2007-01-09 Uros Bizjak <ubizjak@gmail.com>
162 * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
163 (*cosxf2): Rename to cosxf2_i387.
165 (*sindf2, *sinsf2): Extend operand 1 to XFmode. Macroize patterns
166 using X87MODEF12 mode macro. Rename patterns to
167 *sin_extend<mode>xf2_i387. Use SSE_FLOAT_MODE_P to disable patterns
169 (*cosdf2, *cossf2): Ditto.
170 (sincosdf3, sincossf3): Ditto. Rewrite corresponding splitters
171 to match extended input operands.
173 (sincos<mode>3): New expander.
175 (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
176 insn patterns and corresponding splitters.
178 2007-01-09 Kaz Kojima <kkojima@gcc.gnu.org>
180 * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
181 (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
183 2007-01-09 Nicolas Pitre <nico@cam.org>
186 * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
188 2007-01-08 Geoffrey Keating <geoffk@apple.com>
190 * target.h (struct gcc_target): New field library_rtti_comdat.
191 * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
192 (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
193 * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
194 * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
196 2007-01-08 Geoffrey Keating <geoffk@apple.com>
198 * doc/invoke.texi (Optimize Options): Correct description of -O0.
200 2007-01-08 Richard Guenther <rguenther@suse.de>
202 * tree.h (force_fit_type_double): Export.
203 (force_fit_type): Remove.
204 * fold-const.c (force_fit_type_double): New function.
205 (force_fit_type): Remove.
206 (int_const_binop): Use it.
207 (fold_convert_const_int_from_int): Likewise.
208 (fold_convert_const_int_from_real): Likewise.
209 (fold_div_compare): Likewise.
210 (fold_sign_changed_comparison): Likewise.
211 (fold_unary): Likewise.
212 (fold_negate_const): Likewise.
213 (fold_abs_const): Likewise.
214 (fold_not_const): Likewise.
215 * c-common.c (shorten_compare): Use force_fit_type_double.
216 * convert.c (convert_to_pointer): Likewise.
218 2007-01-08 Richard Guenther <rguenther@suse.de>
220 * tree.h (build_int_cst_wide_type): Export.
221 * tree.c (build_int_cst_wide_type): New function.
222 (build_int_cst_wide): Fix comment.
223 * builtins.c (fold_builtin_object_size): Use build_int_cst
224 to build -1 or 0 of the correct type. Use fit_double_type
225 to check for overflow.
226 * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
228 (decode_field_reference): Likewise.
229 (all_ones_mask_p): Likewise.
230 (native_interpret_int): Use build_int_cst_wide_type.
231 (fold_binary): Use build_int_cst_type to build an all-ones
233 * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
235 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
237 * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
239 2007-01-09 Ben Elliston <bje@au.ibm.com>
241 * genautomata.c (STATS_OPTION): New option.
242 (stats_flag): New flag.
243 (gen_automata_option): Handle it.
244 (initiate_automaton_gen): Ditto.
245 (write_automata): Output statistics only if stats_flag is
246 set. Likewise, output time statistics only if time_flag is set.
247 * doc/md.texi (Processor pipeline description): Document new flag.
249 2007-01-08 Richard Guenther <rguenther@suse.de>
251 * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
252 * tree.c (build_int_cst_type): Likewise.
253 (size_in_bytes): Don't call force_fit_type on the result.
254 (int_fits_type_p): Use fit_double_type.
255 * fold-const.c (fit_double_type): New function.
256 (force_fit_type): Use it.
257 * tree.h (fit_double_type): Export.
259 2007-01-08 Jan Hubicka <jh@suse.cz>
261 * tree-vectorizer.c (gate_increase_alignment): Fix return type.
262 * ipa.c (function_and_variable_visibility): Fix return type.
264 2007-01-08 Richard Guenther <rguenther@suse.de>
266 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
267 of offset to build the index.
268 * tree-pretty-print.c (dump_generic_node): Don't build negated
269 const just for printing.
270 * c-pretty-print.c (pp_c_integer_constant): Likewise.
271 * builtins.c (fold_builtin_int_roundingfn): Check if result
272 fits the type by using force_fit_type and comparing the result.
273 * predict.c (predict_loops): Use compare_tree_int for comparison.
274 * tree.c (build_int_cst): Fall back to integer_type_node for
276 (build_int_cst_wide): Assert type is non-null.
278 2007-01-08 Roberto Costa <roberto.costa@st.com>
280 * tree-vrp.c (extract_range_from_cond_expr): New.
281 (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
282 * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
284 (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
285 * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
286 tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
288 * tree-object-size.c (cond_expr_object_size): New.
289 (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
291 2007-01-08 Jan Hubicka <jh@suse.cz>
293 * tree-ssa-forwprop.c (forward_propagate_into_cond,
294 tree_ssa_forward_propagate_single_use_va): Release defs of propagated
297 2007-01-08 Richard Guenther <rguenther@suse.de>
299 PR tree-optimization/23603
300 * tree-vrp.c (set_value_range_to_truthvalue): New function.
301 (extract_range_from_binary): Fall back to truthvalue instead of
302 varying for TRUTH_*_EXPR.
303 (extract_range_from_comparison): Fall back to truthvalue instead of
305 (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
306 if all visited PHI values were constant.
308 2007-01-08 Jan Hubicka <jh@suse.cz>
310 * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
311 (cgraph_analyze_function): break out from ...
312 (cgraph_finalize_compilation_unit): ... here.
313 (cgraph_expand_function): Remove forgoten commented out line.
314 (cgraph_optimize): Analyze functions.
316 2007-01-08 Jan Hubicka <jh@suse.cz>
318 * tree-pas.h (TODO_remove_function): New flag.
319 (TODO_update*): Renumber.
320 (pass_ipa_increase_alignment,
321 pass_ipa_function_and_variable_visibility): New passes.
322 * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
323 (cgraph_function_and_variable_visibility): Move to ipa.c
324 (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
325 cgraph_increase_alignment.
326 * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
327 (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
329 (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
330 (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
331 * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
332 (gate_increase_alignment): New function.
333 (pass_ipa_increase_alignment): New pass.
334 * ipa.c: Inline tree-pass.h and timevar.h
335 (function_and_variable_visibility): Move here from cgraphunit.c
336 * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
337 * passes.c (init_optimization_passes): Add the two new passes.
338 (execute_todo): Handle cgraph_remove_functions.
340 2007-01-08 Nick Clifton <nickc@redhat.com>
342 * config/frv/predicates.md (reg_or_0_operand): Accept
345 2007-01-08 Ralf Corsépius <ralf.corsepius@rtems.org>
347 * config/bfin/rtems.h, config/bfin/t-rtems: New.
348 * config.gcc: Add bfin*-rtems*.
350 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
352 * c.opt: Add -flax-vector-conversions.
353 * c-typeck.c (convert_for_assignment): Pass flag to
354 vector_types_convertible_p to allow emission of note.
355 (digest_init): Likewise.
356 * c-opts.c: Handle -flax-vector-conversions.
357 * c-common.c (flag_lax_vector_conversions): New.
358 (vector_types_convertible_p): Unless -flax-vector conversions
359 has been passed, disallow conversions between vectors with
360 differing numbers of subparts and/or element types. If such
361 a conversion is disallowed, possibly emit a note on the first
362 occasion only to inform the user of -flax-vector-conversions.
363 The new last argument specifies this.
364 * c-common.h (flag_lax_vector_conversions): New.
365 (vector_types_convertible_p): Add extra argument.
366 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
367 char_type_node for V*QI type vectors.
368 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
369 Update to satisfy new typechecking rules.
370 * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
372 * doc/invoke.texi (C Dialect Options): Document
373 -flax-vector-conversions.
375 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
377 PR tree-optimization/29877
378 * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
379 a register variable on the RHS to not be replaceable.
381 2007-01-08 Chen Liqin <liqin@sunnorth.com.cn>
382 * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
383 * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
384 const_simm15, const_pow2, const_npow2): Added.
385 * config/score/misc.md (insv, extv, extzv, movmemsi,
386 move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
387 * config/score/score.c (score_address_cost, score_select_cc_mode):
389 Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
390 Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
391 Update score_print_operand.
392 * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
393 Adjust register allocate order and update some macro define.
394 * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
395 mdx_block_move_straight, mdx_block_move_loop_head,
396 mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
397 mdx_block_move): Added.
398 (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
399 mdp_limm): Updated and fix some bug and typo.
400 * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
401 (movsf, movdf, doloop_end): Added.
403 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
405 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
406 config/arm/thumb2.md: Fix comment typos.
407 * doc/extend.texi: Fix a typo.
409 2007-01-07 Eric Christopher <echristo@apple.com>
411 * configure.ac: Check for __stack_chk_fail for darwin.
412 * configure: Regenerate.
414 2007-01-07 Richard Guenther <rguenther@suse.de>
416 * tree-vrp.c (extract_range_from_assert): CSE calls to
417 compare_values where possible.
418 (extract_range_from_unary_expr): Likewise.
420 2007-01-07 Anatoly Sokolov <aesok@post.ru>
422 * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
423 * config/avr/avr.c (call_insn_operand): Delete function.
424 * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
425 instead of register number. Use predicates.
426 * config/avr/predicates.md (const0_operand, reg_or_0_operand,
427 call_insn_operand): Add.
429 2007-01-06 Jan Hubicka <jh@suse.cz>
431 * tree-pass.h (pass_build_cgraph_edges): Declare.
432 * cgraphunit.c (record_refernece): Move to cgraphbuild.c
433 (visited_nodes): Remove.
434 (cgraph_create_edges): Move to cgraphbuild.c; rename to
435 build_cgrpah_edges; make visited_nodes local.
436 (cgraph_process_new_functions): DO not call initialize_inline_failed.
437 (record_references_in_initializer): Move to cgraphbuild.c
438 (initialize_inline_failed, rebuild_cgraph_edges,
439 pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
440 (verify_cgraph_node): Make visited_nodes local.
441 (cgraph_analyze_function): Do not call cgraph_create_edges and
442 initialize_inline_failed.
443 (cgraph_expand_function): Do not call cgraph_lower_function;
444 assert that function is already lowered.
445 * Makefile.in (cgraphbuild.o): New.
446 * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
447 at the end of lowering passes.
449 2007-01-06 Steven Bosscher <steven@gcc.gnu.org>
451 * ifcvt.c (cond_move_convert_if_block): New function, code
453 (cond_move_process_if_block): ...here. Call the new function
454 on the THEN and ELSE blocks.
455 (merge_if_block): Do not copy global_live_at_end, merge_blocks
456 already takes care of this.
458 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
461 * tree.h (TREE_OVERFLOW_P): New.
462 * c-typeck.c (parser_build_unary_op): Warn only if result
463 overflowed and operands did not.
464 (parser_build_binary_op): Likewise.
465 (convert_for_assignment): Remove redundant overflow_warning.
466 * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
468 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
470 * c-typeck.c (store_init_value): Split over two lines to follow
471 the GNU coding style.
473 2007-01-05 Benjamin Kosnik <bkoz@redhat.com>
475 * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
476 __GXX_EXPERIMENTAL_CXX0X__.
477 * doc/cpp.texi: Same.
479 2007-01-05 Richard Guenther <rguenther@suse.de>
482 * tree.c (get_narrower): Do not construct COMPONENT_REFs
483 with mismatched types. Instead explicitly build a
486 2007-01-05 Ian Lance Taylor <iant@google.com>
488 * c-common.c (decl_with_nonnull_addr_p): New function.
489 (c_common_truthvalue_conversion): Call it.
490 * c-typeck.c (build_binary_op): Likewise.
491 * c-common.h (decl_with_nonnull_addr_p): Declare.
493 2007-01-05 Jakub Jelinek <jakub@redhat.com>
496 * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
499 2007-01-05 Joel Brobecker <brobecker@adacore.com>
501 * doc/install.texi (Final install): Document the fact that
502 the GNAT runtime should not be stripped.
504 2007-01-04 Jan Hubicka <jh@suse.cz>
506 * tree-inline.c (fold_marked_statements): Update operand caches
509 2007-01-04 Ian Lance Taylor <iant@google.com>
511 * c-common.c (check_function_nonnull): Whitespace fix.
513 2007-01-04 Jan Hubicka <jh@suse.cz>
515 * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
516 comitted older version of patch.
517 (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
518 function, celanup cfg and collect garbage.
520 2007-01-04 Mike Stump <mrs@apple.com>
522 * Makefile.in (mostlyclean): Don't remove libgcc anymore.
525 2007-01-04 Eric Christopher <echristo@apple.com>
527 * libgcc2.c (__bswapsi2): Use SItype.
528 (__bswapdi2): Use DItype.
529 * libgcc2.h: Update for above.
531 2007-01-04 Paul Brook <paul@codesourcery.com>
533 * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
534 mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
535 mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
536 umulsidi3, umulsidi3adddi, smulsi3_highpart,
537 umulsi3_highpart): Make conditional on !arm_arch6.
538 (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
539 mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
540 mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
541 umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
542 umulsi3_highpart_v6): New insns.
544 2007-01-04 Roger Sayle <roger@eyesopen.com>
546 * fold-const.c (fold_convert): When casting an expression to void,
547 fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
548 have a type. Instead of attempting to build a NOP_EXPR, return
549 these "special" trees directly.
551 2007-01-04 Joseph Myers <joseph@codesourcery.com>
553 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
554 MULT inside MINUS as either argument. Use rs6000_cost->dmul -
555 rs6000_cost->fp not 0 as adjustment for outer NEG.
557 2007-01-04 Jan Hubicka <jh@suse.cz>
559 * cgraph.c (cgraph_release_function_body): New function.
560 (cgraph_remove_node): Use it.
561 * cgraph.h (cgraph_release_function_body): Declare.
562 * cgraphunit.c (cgraph_expand_function): Use it.
563 * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
564 * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
565 is initialized and while compilation of other function is running.
566 * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
567 statement CFG annotations from here to ...
568 * tree-cfg.c (delete_tree_cfg_annotations): ... here.
570 2007-01-04 Zdenek Dvorak <dvorakz@suse.cz>
572 * cfgloop.h (enum li_flags): Make the constants powers of two.
574 2007-01-04 Jan Hubicka <jh@suse.cz>
576 * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
578 (fold_marked_statements): New function.
579 (optimize_inline_calls, tree_function_versioning): Fold new statements.
580 * tree-inline.h (copy_body_data): Add statements_to_fold.
582 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
584 * config.gcc: Mention libgcc/config.host.
585 * Makefile.in: Update comments mentioning libgcc.
586 (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
587 (all.cross, start.encap, rest.encap, rest.cross): Update
588 dependencies for libgcc move.
589 (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
590 (clean-target, clean-target-libgcc): Delete.
591 (srcdirify, GCC_EXTRA_PARTS): New macros.
592 (libgcc-support, libgcc.mvars): New rules.
593 (distclean): Remove mention of mklibgcc.
594 (install): Don't reference INSTALL_LIBGCC.
595 (install-common): Don't reference EXTRA_PARTS.
596 (install-libgcc, install-multilib): Delete rules.
597 * mklibgcc.in: Delete file.
598 * doc/configfiles.texi: Don't mention mklibgcc.
600 * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
601 * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
602 * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
603 * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
604 (mklibgcc, ldblspecs): Likewise.
606 * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
607 (posixpre.def): Use $(T).
608 (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
609 (SHLIB_SRC, SHLIB_INSTALL): Delete.
610 (SHLIB_LINK): Make dummy.
611 * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
613 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
615 * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
616 * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
617 config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
618 config/rs6000/t-newas, config/sparc/t-elf: Likewise.
620 * configure.ac (all_outputs): Remove mklibgcc.
621 * configure: Regenerated.
623 2007-01-03 Josh Conner <jconner@apple.com>
626 * calls.c (compute_argument_addresses): Set stack and stack_slot
627 for partial args, too.
628 (store_one_arg): Use locate.size.constant for the size when
629 generating a save_area.
631 2007-01-03 Robert Kennedy <jimbob@google.com>
633 * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
634 whose definitions are deleted due to basic block merging.
636 2007-01-03 Paul Brook <paul@codesourcery.com>
639 * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
641 (use_return_insn): Return 0 for Thumb interrupt functions.
642 (print_multi_reg): Add rfe argument for IRQ returns.
643 (arm_output_epilogue): Pop interrupt return address directly into PC.
644 (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
646 2007-01-03 Paul Brook <paul@codesourcery.com>
648 Merge from sourcerygxx-4_1.
649 * config/arm/thumb2.md: New file.
650 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
652 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
653 * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
654 (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
655 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
657 (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
658 * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
660 * config/arm/ieee754-sf.S: Ditto.
661 * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
662 (thumb1_base_register_rtx_p): ... to this.
663 (thumb_index_register_rtx_p): Rename...
664 (thumb1_index_register_rtx_p): ... to this.
665 (thumb_output_function_prologue): Rename...
666 (thumb1_output_function_prologue): ... to this.
667 (thumb_legitimate_address_p): Rename...
668 (thumb1_legitimate_address_p): ... to this.
669 (thumb_rtx_costs): Rename...
670 (thumb1_rtx_costs): ... to this.
671 (thumb_compute_save_reg_mask): Rename...
672 (thumb1_compute_save_reg_mask): ... to this.
673 (thumb_final_prescan_insn): Rename...
674 (thumb1_final_prescan_insn): ... to this.
675 (thumb_expand_epilogue): Rename...
676 (thumb1_expand_epilogue): ... to this.
677 (arm_unwind_emit_stm): Rename...
678 (arm_unwind_emit_sequence): ... to this.
679 (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
680 thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
681 thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
682 arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
683 thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
684 thumb2_output_casesi): New functions.
685 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
686 (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
687 FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
688 THUMB2_WORK_REGS): Define.
689 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
690 arm_condexec_mask, arm_condexec_masklen)): New variables.
691 (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
692 (arm_override_options): Check new CPU capabilities.
693 Set new architecture flag variables.
694 (arm_isr_value): Handle v7m interrupt functions.
695 (user_return_insn): Return 0 for v7m interrupt functions. Handle
697 (const_ok_for_arm): Handle Thumb-2 constants.
698 (arm_gen_constant): Ditto. Use movw when available.
699 (arm_function_ok_for_sibcall): Return false for v7m interrupt
701 (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
702 (thumb_find_work_register, arm_load_pic_register,
703 legitimize_tls_address, arm_address_cost, load_multiple_sequence,
704 emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
705 print_multi_reg, output_mov_long_double_fpa_from_arm,
706 output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
707 output_mov_double_fpa_from_arm, output_move_double,
708 arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
709 output_return_instruction, arm_output_function_prologue,
710 arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
711 arm_output_mi_thunk, thumb_set_return_address): Ditto.
712 (arm_expand_prologue): Handle Thumb-2. Use arm_save_coproc_regs.
713 (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
714 (arithmetic_instr, shift_op): Use arm_shift_nmem.
715 (arm_print_operand): Use arm_print_condition. Handle '(', ')', '.',
717 (arm_final_prescan_insn): Use extract_constrain_insn_cached.
718 (thumb_expand_prologue): Use thumb_set_frame_pointer.
719 (arm_file_start): Output directive for unified syntax.
720 (arm_unwind_emit_set): Handle stack alignment instruction.
721 * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
722 Add v6t2, v7, v7a, v7r and v7m.
723 (RETLDM): Add Thumb-2 code.
724 (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
725 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
726 (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
727 TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
728 THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
729 ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
730 THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
731 CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
732 ADJUST_INSN_LENGTH): Define.
733 (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
734 STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
735 BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
736 PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
737 SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
738 TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
739 HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
740 HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
741 REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
742 REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
743 LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
744 GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
745 ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
746 FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
747 PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
748 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
749 * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
751 * config/arm/arm-tune.md: Regenerate.
752 * config/arm/arm-protos.h: Update prototypes.
753 * config/arm/vfp.md: Enable patterns for Thumb-2.
754 (arm_movsi_vfp): Add movw alternative. Use output_move_vfp.
755 (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
756 (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
757 thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
758 * config/arm/libunwind.S: Add Thumb-2 code.
759 * config/arm/constraints.md: Update include Thumb-2.
760 * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
761 * config/arm/ieee754-df.S: Ditto.
762 * config/arm/bpabi.S: Ditto.
763 * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
764 * config/arm/predicates.md (low_register_operand,
765 low_reg_or_int_operand, thumb_16bit_operator): New.
766 (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
767 (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
768 * config/arm/t-arm-elf: Add armv7 multilib.
769 * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
771 (UNSPEC_STACK_ALIGN, ce_count): New.
772 (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
773 arm_zero_extendsidi2, arm_zero_extendqidi2): New
775 * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
776 (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
777 thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
778 * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
779 (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
780 thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
782 * doc/extend.texi: Document ARMv7-M interrupt functions.
783 * doc/invoke.texi: Document Thumb-2 new cores+architectures.
785 2007-01-03 Jakub Jelinek <jakub@redhat.com>
787 * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
788 (struct _Unwind_Context): Rename args_size to flags, remove
789 signal_frame field, add a new args_size field and version field.
790 (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
791 _Unwind_IsExtendedContext): New inline functions.
792 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
793 Assume by_value array is only present if _Unwind_IsExtendedContext.
794 (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
795 _Unwind_IsSignalFrame.
796 (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
797 (uw_update_context_1): Use _Unwind_SetSignalFrame.
798 (uw_init_context_1): Initialize context->flags to
799 EXTENDED_CONTEXT_BIT.
800 * config/rs6000/linux-unwind.h (frob_update_context): Use
801 _Unwind_SetSignalFrame.
803 2007-01-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
806 * gimplify.c (gimplify_modify_expr_complex_part): Move below
807 tree_to_gimple_tuple. Call tree_to_gimple_tuple when we need
810 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
812 * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
813 REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
815 * config/i386/i386.md (*sse_prologue_save_insn): Use return
818 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
819 * cfgbuild.c (find_basic_blocks): Likewise.
820 * cfgrtl.c (rtl_create_basic_block): Likewise.
821 * function.c (temp_slots_at_level): Likewise.
822 * reg-stack.c (stack_regs_mentioned): Likewise.
823 * regclass.c (allocate_reg_info): Likewise.
824 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
825 set_bb_for_stmt, move_block_to_fn): Likewise.
826 * tree-complex.c (tree_lower_complex): Likewise.
827 * vec.h (VEC_safe_grow_cleared): New.
829 * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
831 2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
833 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
834 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
836 * cfgloopmanip.c (scale_loop_frequencies): Export.
837 (loopify): Scale the frequencies by prescribed coefficients.
838 (set_zero_probability): New function.
839 (duplicate_loop_to_header_edge): Improve updating of frequencies.
840 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
841 and frequencies according to arguments.
842 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
844 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
845 * modulo-sched.c (sms_schedule): Set probabilities for entering
846 versioned loop correctly.
847 * tree-vect-transform.c (vect_transform_loop): Ditto.
848 * cfgloop.h (loopify, loop_version): Declaration changed.
849 (scale_loop_frequencies): Declared.
851 2007-01-02 Jan Hubicka <jh@suse.cz>
853 * cgraph.c: Include tree-flow.h
854 (cgraph_add_new-function): Handle IPA_SSA mode; execute
856 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
857 * tree-pass.h (pass_all_early_optimizations): Declare.
858 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
860 (cgraph_analyze_function): Do early_local_passes.
861 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
862 Do not add referenced vars.
863 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
865 (gate_all_early_local_passes): New gate.
866 (pass_early_local_passes): Use new gate.
867 (execute_early_local_optimizations): New functions.
868 (gate_all_early_optimizations): New gate.
869 (pass_all_early_optimizations): New pass.
870 (execute_free_datastructures): Free SSA only when initialized.
871 (gate_init_datastructures): Init only when optimizing.
872 (tree_lowering_passes): Do early local passes when called late.
873 * tree-profile.c (do_tree_profiling): Don't profile functions added
875 (do_early_tree_profiling, pass_early_tree_profile): Kill.
876 * tree-cfg.c (update_modified_stmts): Do not update when operands are
878 * passes.c (init_optimizations_passes): Reorder so we go into SSA
879 during early_local_passes.
880 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
883 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
885 * Makefile.in: Update copyright year.
887 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
889 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
890 in $(lang_checks) and check-consistency targets.
892 2007-01-02 Jan Hubicka <jh@suse.cz>
894 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
895 Do not add referenced vars.
896 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
898 * passes.c (init_optimization_passes): Put mudflap_2 after
901 2007-01-02 Jan Hubicka <jh@suse.cz>
903 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
904 Set NOTHROW flag on call statements proved to be nothrow.
905 Update statement of local calls so new pure/const functions are
906 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
908 (tree_rest_of_compilation): Register hooks and initialize bitmap
909 early. Do not set after_inlining flag.
911 2007-01-02 Steve Ellcey <sje@cup.hp.com>
913 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
914 HOST_BITS_PER_LONGLONG
916 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
919 * c-typeck.c (store_init_value): Don't emit pedantic overflow
920 warning for non-static initializers.
922 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
924 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
925 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
926 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
927 Always use set_unique_reg_note to add REG_EQUAL notes.
929 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
932 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
934 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
935 * cfgbuild.c (find_basic_blocks): Likewise.
936 * cfgrtl.c (rtl_create_basic_block): Likewise.
937 * function.c (temp_slots_at_level): Likewise.
938 * reg-stack.c (stack_regs_mentioned): Likewise.
939 * regclass.c (allocate_reg_info): Likewise.
940 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
941 set_bb_for_stmt, move_block_to_fn): Likewise.
942 * tree-complex.c (tree_lower_complex): Likewise.
943 * vec.h (VEC_safe_grow_cleared): New.
945 2007-01-02 Ian Lance Taylor <iant@google.com>
947 * c-common.c (c_common_truthvalue_conversion): When warning about
948 using an assignment as a truth value, set TREE_NO_WARNING.
950 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
953 * c.opt (Wold-style-declaration): New.
954 * doc/invoke.texi (C-only Warning Options): New.
955 (Wold-style-declaration): Document it.
956 (Wextra): Enabled by -Wextra.
957 * c-opts.c (c_common_post_options): Enabled by -Wextra.
958 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
959 -Wold-style-declaration.
961 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
963 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
964 * cfgbuild.c (find_basic_blocks): Likewise.
965 * cfgrtl.c (rtl_create_basic_block): Likewise.
966 * function.c (temp_slots_at_level): Likewise.
967 * reg-stack.c (stack_regs_mentioned): Likewise.
968 * regclass.c (allocate_reg_info): Likewise.
969 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
970 set_bb_for_stmt, move_block_to_fn): Likewise.
971 * tree-complex.c (tree_lower_complex): Likewise.
972 * vec.h (VEC_safe_grow_cleared): New.
974 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
976 * c-common.c(c_common_nodes_and_builtins): Since variants of
977 void_type_node get built before it is given a name, we need to
978 give those variants the name, too.
979 (complete_array_type): We need to work with the canonical main
980 type of the array, from which we will build the qualified version.
981 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
982 * print-tree.c (print_node): Display canonical type information
984 * stor-layout.c (layout_type): When we don't know the
985 alignment of a type for which we're building an array, we end up
986 guessing wrong, so make the type require structural equality.
987 * tree.c (make_node_stat): When we build a new type, it is its
989 (build_type_attribute_qual_variant): When building an attribute
990 variant, its canonical type is the non-attribute variant. However,
991 if the attributes are target-dependent and they differ, we need to
992 use structural equality checks for this type.
993 (build_qualified_type): A qualified type is not equivalent to its
994 unqualified variant; set the canonical type appropriately.
995 (build_distinct_type_copy): When building a distinct type from
996 another type, the new type is its own canonical type.
997 (build_variant_type_copy): When building a new type variant, we
998 assume that it is equivalent to the original type.
999 (build_pointer_type_for_mode): When building a pointer type, also
1000 build a canonical type pointer.
1001 (build_reference_type_for_mode): When building a reference type,
1002 also build a canonical type reference.
1003 (build_index_type): When we can't hash an index type (e.g.,
1004 because its maximum value is negative), the index type requires
1005 structural equality tests.
1006 (build_array_type): Build the canonical form of an array type.
1007 (build_function_type): Function types require structural equality,
1008 because they contain default arguments, attributes, etc.
1009 (build_method_type_directly): Ditto for method types.
1010 (build_offset_type): Build the canonical offset type.
1011 (build_complex_type): Build the canonical vector type.
1012 (make_vector_type): Build the canonical vector type.
1013 * tree.h (TYPE_CANONICAL): New.
1014 (TYPE_STRUCTURAL_EQUALITY_P): New.
1015 (SET_TYPE_STRUCTURAL_EQUALITY): New.
1016 (struct tree_type): Added "canonical" field.
1017 * params.h (VERIFY_CANONICAL_TYPES): New.
1018 * doc/c-tree.texi (TYPE_CANONICAL): Document.
1019 (TYPE_STRUCTURAL_EQUALITY_P): Document.
1020 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
1021 * doc/invoke.texi (verify-canonical-types): Document --param
1022 parameter for verifying canonical types.
1024 2007-01-02 Joseph Myers <joseph@codesourcery.com>
1026 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
1027 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
1028 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
1029 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
1031 * config/rs6000/e500.h: New.
1032 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
1033 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
1035 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
1036 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
1037 TARGET_E500_DOUBLE): Remove.
1038 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
1039 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
1040 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
1041 * config/rs6000/rs6000.c (rs6000_override_options): Use
1044 2007-01-02 Joseph Myers <joseph@codesourcery.com>
1046 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
1047 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
1048 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
1049 rs6000_emit_cmove): Don't check TARGET_E500.
1050 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
1051 sordered): Don't check TARGET_E500.
1053 2007-01-01 Eric Christopher <echristo@apple.com>
1055 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
1056 HARD_REGISTER_NUM_P.
1058 2007-01-01 Roger Sayle <roger@eyesopen.com>
1060 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
1061 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
1062 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
1065 2007-01-01 Mike Stump <mrs@apple.com>
1067 * configure.ac: Remove support for building with Apple's gcc-3.1.
1069 2007-01-02 Joseph Myers <joseph@codesourcery.com>
1072 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
1073 REG is a hard register. Do not modify REG before calling
1075 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
1076 multiple of the size of YMODE for certain lowpart cases.
1078 2007-01-01 Andrew Pinski <pinskia@gmail.com>
1081 * gimplify (voidify_wrapper_expr): Update for
1084 2007-01-01 Andreas Schwab <schwab@suse.de>
1087 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
1088 save of BR0 in extra_spill_size instead of spill_size.
1089 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
1091 (ia64_expand_epilogue): Restore BR0 from its new location.
1093 2007-01-01 Andrew Pinski <pinskia@gmail.com>
1095 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
1096 Use a temporary variable if the left hand side is not a gimple
1099 2007-01-01 Andrew Pinski <pinskia@gmail.com>
1101 * gimplify.c (gimplify_return_expr): Make the temporary variable
1102 for the return expression, a gimple register variable.
1104 2007-01-01 Jan Hubicka <jh@suse.cz>
1106 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
1109 2007-01-01 Mike Stump <mrs@apple.com>
1111 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
1113 * config/darwin.c (machopic_select_rtx_section): Use
1115 (darwin_mergeable_constant_section): Likewise.
1116 * configure: Regenerate.
1117 * config.in: Regenerate.
1119 2007-01-01 Jan Hubicka <jh@suse.cz>
1120 Andrew Pinski <pinskia@gmail.com>
1122 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
1123 before starting IPA passes.