1 2006-01-03 Zdenek Dvorak <dvorakz@suse.cz>
3 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
4 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
6 * cfgloopmanip.c (scale_loop_frequencies): Export.
7 (loopify): Scale the frequencies by prescribed coefficients.
8 (set_zero_probability): New function.
9 (duplicate_loop_to_header_edge): Improve updating of frequencies.
10 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
11 and frequencies according to arguments.
12 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
14 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
15 * modulo-sched.c (sms_schedule): Set probabilities for entering
16 versioned loop correctly.
17 * tree-vect-transform.c (vect_transform_loop): Ditto.
18 * cfgloop.h (loopify, loop_version): Declaration changed.
19 (scale_loop_frequencies): Declared.
21 2007-01-02 Jan Hubicka <jh@suse.cz>
23 * cgraph.c: Include tree-flow.h
24 (cgraph_add_new-function): Handle IPA_SSA mode; execute
26 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
27 * tree-pass.h (pass_all_early_optimizations): Declare.
28 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
30 (cgraph_analyze_function): Do early_local_passes.
31 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
32 Do not add referenced vars.
33 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
35 (gate_all_early_local_passes): New gate.
36 (pass_early_local_passes): Use new gate.
37 (execute_early_local_optimizations): New functions.
38 (gate_all_early_optimizations): New gate.
39 (pass_all_early_optimizations): New pass.
40 (execute_free_datastructures): Free SSA only when initialized.
41 (gate_init_datastructures): Init only when optimizing.
42 (tree_lowering_passes): Do early local passes when called late.
43 * tree-profile.c (do_tree_profiling): Don't profile functions added
45 (do_early_tree_profiling, pass_early_tree_profile): Kill.
46 * tree-cfg.c (update_modified_stmts): Do not update when operands are
48 * passes.c (init_optimizations_passes): Reorder so we go into SSA
49 during early_local_passes.
50 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
53 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
55 * Makefile.in: Update copyright year.
57 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
59 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
60 in $(lang_checks) and check-consistency targets.
62 2007-01-02 Jan Hubicka <jh@suse.cz>
64 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
65 Do not add referenced vars.
66 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
68 * passes.c (init_optimization_passes): Put mudflap_2 after
71 2007-01-02 Jan Hubicka <jh@suse.cz>
73 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
74 Set NOTHROW flag on call statements proved to be nothrow.
75 Update statement of local calls so new pure/const functions are
76 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
78 (tree_rest_of_compilation): Register hooks and initialize bitmap
79 early. Do not set after_inlining flag.
81 2007-01-02 Steve Ellcey <sje@cup.hp.com>
83 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
84 HOST_BITS_PER_LONGLONG
86 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
89 * c-typeck.c (store_init_value): Don't emit pedantic overflow
90 warning for non-static initializers.
92 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
94 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
95 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
96 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
97 Always use set_unique_reg_note to add REG_EQUAL notes.
99 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
102 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
104 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
105 * cfgbuild.c (find_basic_blocks): Likewise.
106 * cfgrtl.c (rtl_create_basic_block): Likewise.
107 * function.c (temp_slots_at_level): Likewise.
108 * reg-stack.c (stack_regs_mentioned): Likewise.
109 * regclass.c (allocate_reg_info): Likewise.
110 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
111 set_bb_for_stmt, move_block_to_fn): Likewise.
112 * tree-complex.c (tree_lower_complex): Likewise.
113 * vec.h (VEC_safe_grow_cleared): New.
115 2007-01-02 Ian Lance Taylor <iant@google.com>
117 * c-common.c (c_common_truthvalue_conversion): When warning about
118 using an assignment as a truth value, set TREE_NO_WARNING.
120 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
123 * c.opt (Wold-style-declaration): New.
124 * doc/invoke.texi (C-only Warning Options): New.
125 (Wold-style-declaration): Document it.
126 (Wextra): Enabled by -Wextra.
127 * c-opts.c (c_common_post_options): Enabled by -Wextra.
128 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
129 -Wold-style-declaration.
131 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
133 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
134 * cfgbuild.c (find_basic_blocks): Likewise.
135 * cfgrtl.c (rtl_create_basic_block): Likewise.
136 * function.c (temp_slots_at_level): Likewise.
137 * reg-stack.c (stack_regs_mentioned): Likewise.
138 * regclass.c (allocate_reg_info): Likewise.
139 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
140 set_bb_for_stmt, move_block_to_fn): Likewise.
141 * tree-complex.c (tree_lower_complex): Likewise.
142 * vec.h (VEC_safe_grow_cleared): New.
144 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
146 * c-common.c(c_common_nodes_and_builtins): Since variants of
147 void_type_node get built before it is given a name, we need to
148 give those variants the name, too.
149 (complete_array_type): We need to work with the canonical main
150 type of the array, from which we will build the qualified version.
151 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
152 * print-tree.c (print_node): Display canonical type information
154 * stor-layout.c (layout_type): When we don't know the
155 alignment of a type for which we're building an array, we end up
156 guessing wrong, so make the type require structural equality.
157 * tree.c (make_node_stat): When we build a new type, it is its
159 (build_type_attribute_qual_variant): When building an attribute
160 variant, its canonical type is the non-attribute variant. However,
161 if the attributes are target-dependent and they differ, we need to
162 use structural equality checks for this type.
163 (build_qualified_type): A qualified type is not equivalent to its
164 unqualified variant; set the canonical type appropriately.
165 (build_distinct_type_copy): When building a distinct type from
166 another type, the new type is its own canonical type.
167 (build_variant_type_copy): When building a new type variant, we
168 assume that it is equivalent to the original type.
169 (build_pointer_type_for_mode): When building a pointer type, also
170 build a canonical type pointer.
171 (build_reference_type_for_mode): When building a reference type,
172 also build a canonical type reference.
173 (build_index_type): When we can't hash an index type (e.g.,
174 because its maximum value is negative), the index type requires
175 structural equality tests.
176 (build_array_type): Build the canonical form of an array type.
177 (build_function_type): Function types require structural equality,
178 because they contain default arguments, attributes, etc.
179 (build_method_type_directly): Ditto for method types.
180 (build_offset_type): Build the canonical offset type.
181 (build_complex_type): Build the canonical vector type.
182 (make_vector_type): Build the canonical vector type.
183 * tree.h (TYPE_CANONICAL): New.
184 (TYPE_STRUCTURAL_EQUALITY_P): New.
185 (SET_TYPE_STRUCTURAL_EQUALITY): New.
186 (struct tree_type): Added "canonical" field.
187 * params.h (VERIFY_CANONICAL_TYPES): New.
188 * doc/c-tree.texi (TYPE_CANONICAL): Document.
189 (TYPE_STRUCTURAL_EQUALITY_P): Document.
190 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
191 * doc/invoke.texi (verify-canonical-types): Document --param
192 parameter for verifying canonical types.
194 2007-01-02 Joseph Myers <joseph@codesourcery.com>
196 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
197 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
198 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
199 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
201 * config/rs6000/e500.h: New.
202 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
203 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
205 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
206 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
207 TARGET_E500_DOUBLE): Remove.
208 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
209 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
210 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
211 * config/rs6000/rs6000.c (rs6000_override_options): Use
214 2007-01-02 Joseph Myers <joseph@codesourcery.com>
216 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
217 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
218 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
219 rs6000_emit_cmove): Don't check TARGET_E500.
220 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
221 sordered): Don't check TARGET_E500.
223 2007-01-01 Eric Christopher <echristo@apple.com>
225 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
228 2007-01-01 Roger Sayle <roger@eyesopen.com>
230 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
231 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
232 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
235 2007-01-01 Mike Stump <mrs@apple.com>
237 * configure.ac: Remove support for building with Apple's gcc-3.1.
239 2007-01-02 Joseph Myers <joseph@codesourcery.com>
242 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
243 REG is a hard register. Do not modify REG before calling
245 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
246 multiple of the size of YMODE for certain lowpart cases.
248 2007-01-01 Andrew Pinski <pinskia@gmail.com>
251 * gimplify (voidify_wrapper_expr): Update for
254 2007-01-01 Andreas Schwab <schwab@suse.de>
257 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
258 save of BR0 in extra_spill_size instead of spill_size.
259 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
261 (ia64_expand_epilogue): Restore BR0 from its new location.
263 2007-01-01 Andrew Pinski <pinskia@gmail.com>
265 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
266 Use a temporary variable if the left hand side is not a gimple
269 2007-01-01 Andrew Pinski <pinskia@gmail.com>
271 * gimplify.c (gimplify_return_expr): Make the temporary variable
272 for the return expression, a gimple register variable.
274 2007-01-01 Jan Hubicka <jh@suse.cz>
276 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
279 2007-01-01 Mike Stump <mrs@apple.com>
281 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
283 * config/darwin.c (machopic_select_rtx_section): Use
285 (darwin_mergeable_constant_section): Likewise.
286 * configure: Regenerate.
287 * config.in: Regenerate.
289 2007-01-01 Jan Hubicka <jh@suse.cz>
290 Andrew Pinski <pinskia@gmail.com>
292 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
293 before starting IPA passes.