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