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