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