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