tree-pass.h (pass_build_cgraph_edges): Declare.
[gcc.git] / gcc / ChangeLog
1 2007-01-06 Jan Hubicka <jh@suse.cz>
2
3 * tree-pass.h (pass_build_cgraph_edges): Declare.
4 * cgraphunit.c (record_refernece): Move to cgraphbuild.c
5 (visited_nodes): Remove.
6 (cgraph_create_edges): Move to cgraphbuild.c; rename to
7 build_cgrpah_edges; make visited_nodes local.
8 (cgraph_process_new_functions): DO not call initialize_inline_failed.
9 (record_references_in_initializer): Move to cgraphbuild.c
10 (initialize_inline_failed, rebuild_cgraph_edges,
11 pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
12 (verify_cgraph_node): Make visited_nodes local.
13 (cgraph_analyze_function): Do not call cgraph_create_edges and
14 initialize_inline_failed.
15 (cgraph_expand_function): Do not call cgraph_lower_function;
16 assert that function is already lowered.
17 * Makefile.in (cgraphbuild.o): New.
18 * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
19 at the end of lowering passes.
20
21 2007-01-06 Steven Bosscher <steven@gcc.gnu.org>
22
23 * ifcvt.c (cond_move_convert_if_block): New function, code
24 factored out from...
25 (cond_move_process_if_block): ...here. Call the new function
26 on the THEN and ELSE blocks.
27 (merge_if_block): Do not copy global_live_at_end, merge_blocks
28 already takes care of this.
29
30 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
31
32 PR c/19978
33 * tree.h (TREE_OVERFLOW_P): New.
34 * c-typeck.c (parser_build_unary_op): Warn only if result
35 overflowed and operands did not.
36 (parser_build_binary_op): Likewise.
37 (convert_for_assignment): Remove redundant overflow_warning.
38 * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
39
40 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
41
42 * c-typeck.c (store_init_value): Split over two lines to follow
43 the GNU coding style.
44
45 2007-01-05 Benjamin Kosnik <bkoz@redhat.com>
46
47 * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
48 __GXX_EXPERIMENTAL_CXX0X__.
49 * doc/cpp.texi: Same.
50
51 2007-01-05 Richard Guenther <rguenther@suse.de>
52
53 PR middle-end/27826
54 * tree.c (get_narrower): Do not construct COMPONENT_REFs
55 with mismatched types. Instead explicitly build a
56 conversion NOP_EXPR.
57
58 2007-01-05 Ian Lance Taylor <iant@google.com>
59
60 * c-common.c (decl_with_nonnull_addr_p): New function.
61 (c_common_truthvalue_conversion): Call it.
62 * c-typeck.c (build_binary_op): Likewise.
63 * c-common.h (decl_with_nonnull_addr_p): Declare.
64
65 2007-01-05 Jakub Jelinek <jakub@redhat.com>
66
67 PR c/30360
68 * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
69 denom against 0.0.
70
71 2007-01-05 Joel Brobecker <brobecker@adacore.com>
72
73 * doc/install.texi (Final install): Document the fact that
74 the GNAT runtime should not be stripped.
75
76 2007-01-04 Jan Hubicka <jh@suse.cz>
77
78 * tree-inline.c (fold_marked_statements): Update operand caches
79 and EH after folding
80
81 2007-01-04 Ian Lance Taylor <iant@google.com>
82
83 * c-common.c (check_function_nonnull): Whitespace fix.
84
85 2007-01-04 Jan Hubicka <jh@suse.cz>
86
87 * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
88 comitted older version of patch.
89 (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
90 function, celanup cfg and collect garbage.
91
92 2007-01-04 Mike Stump <mrs@apple.com>
93
94 * Makefile.in (mostlyclean): Don't remove libgcc anymore.
95 (clean): Likewise.
96
97 2007-01-04 Eric Christopher <echristo@apple.com>
98
99 * libgcc2.c (__bswapsi2): Use SItype.
100 (__bswapdi2): Use DItype.
101 * libgcc2.h: Update for above.
102
103 2007-01-04 Paul Brook <paul@codesourcery.com>
104
105 * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
106 mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
107 mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
108 umulsidi3, umulsidi3adddi, smulsi3_highpart,
109 umulsi3_highpart): Make conditional on !arm_arch6.
110 (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
111 mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
112 mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
113 umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
114 umulsi3_highpart_v6): New insns.
115
116 2007-01-04 Roger Sayle <roger@eyesopen.com>
117
118 * fold-const.c (fold_convert): When casting an expression to void,
119 fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
120 have a type. Instead of attempting to build a NOP_EXPR, return
121 these "special" trees directly.
122
123 2007-01-04 Joseph Myers <joseph@codesourcery.com>
124
125 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
126 MULT inside MINUS as either argument. Use rs6000_cost->dmul -
127 rs6000_cost->fp not 0 as adjustment for outer NEG.
128
129 2007-01-04 Jan Hubicka <jh@suse.cz>
130
131 * cgraph.c (cgraph_release_function_body): New function.
132 (cgraph_remove_node): Use it.
133 * cgraph.h (cgraph_release_function_body): Declare.
134 * cgraphunit.c (cgraph_expand_function): Use it.
135 * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
136 * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
137 is initialized and while compilation of other function is running.
138 * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
139 statement CFG annotations from here to ...
140 * tree-cfg.c (delete_tree_cfg_annotations): ... here.
141
142 2007-01-04 Zdenek Dvorak <dvorakz@suse.cz>
143
144 * cfgloop.h (enum li_flags): Make the constants powers of two.
145
146 2007-01-04 Jan Hubicka <jh@suse.cz>
147
148 * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
149 set.
150 (fold_marked_statements): New function.
151 (optimize_inline_calls, tree_function_versioning): Fold new statements.
152 * tree-inline.h (copy_body_data): Add statements_to_fold.
153
154 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
155
156 * config.gcc: Mention libgcc/config.host.
157 * Makefile.in: Update comments mentioning libgcc.
158 (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
159 (all.cross, start.encap, rest.encap, rest.cross): Update
160 dependencies for libgcc move.
161 (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
162 (clean-target, clean-target-libgcc): Delete.
163 (srcdirify, GCC_EXTRA_PARTS): New macros.
164 (libgcc-support, libgcc.mvars): New rules.
165 (distclean): Remove mention of mklibgcc.
166 (install): Don't reference INSTALL_LIBGCC.
167 (install-common): Don't reference EXTRA_PARTS.
168 (install-libgcc, install-multilib): Delete rules.
169 * mklibgcc.in: Delete file.
170 * doc/configfiles.texi: Don't mention mklibgcc.
171
172 * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
173 * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
174 * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
175 * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
176 (mklibgcc, ldblspecs): Likewise.
177
178 * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
179 (posixpre.def): Use $(T).
180 (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
181 (SHLIB_SRC, SHLIB_INSTALL): Delete.
182 (SHLIB_LINK): Make dummy.
183 * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
184
185 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
186
187 * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
188 * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
189 config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
190 config/rs6000/t-newas, config/sparc/t-elf: Likewise.
191
192 * configure.ac (all_outputs): Remove mklibgcc.
193 * configure: Regenerated.
194
195 2007-01-03 Josh Conner <jconner@apple.com>
196
197 PR middle-end/29683
198 * calls.c (compute_argument_addresses): Set stack and stack_slot
199 for partial args, too.
200 (store_one_arg): Use locate.size.constant for the size when
201 generating a save_area.
202
203 2007-01-03 Robert Kennedy <jimbob@google.com>
204
205 * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
206 whose definitions are deleted due to basic block merging.
207
208 2007-01-03 Paul Brook <paul@codesourcery.com>
209
210 PR target/16634
211 * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
212 functions.
213 (use_return_insn): Return 0 for Thumb interrupt functions.
214 (print_multi_reg): Add rfe argument for IRQ returns.
215 (arm_output_epilogue): Pop interrupt return address directly into PC.
216 (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
217
218 2007-01-03 Paul Brook <paul@codesourcery.com>
219
220 Merge from sourcerygxx-4_1.
221 * config/arm/thumb2.md: New file.
222 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
223 Thumb-2.
224 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
225 * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
226 (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
227 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
228 tables.
229 (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
230 * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
231 comptibility.
232 * config/arm/ieee754-sf.S: Ditto.
233 * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
234 (thumb1_base_register_rtx_p): ... to this.
235 (thumb_index_register_rtx_p): Rename...
236 (thumb1_index_register_rtx_p): ... to this.
237 (thumb_output_function_prologue): Rename...
238 (thumb1_output_function_prologue): ... to this.
239 (thumb_legitimate_address_p): Rename...
240 (thumb1_legitimate_address_p): ... to this.
241 (thumb_rtx_costs): Rename...
242 (thumb1_rtx_costs): ... to this.
243 (thumb_compute_save_reg_mask): Rename...
244 (thumb1_compute_save_reg_mask): ... to this.
245 (thumb_final_prescan_insn): Rename...
246 (thumb1_final_prescan_insn): ... to this.
247 (thumb_expand_epilogue): Rename...
248 (thumb1_expand_epilogue): ... to this.
249 (arm_unwind_emit_stm): Rename...
250 (arm_unwind_emit_sequence): ... to this.
251 (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
252 thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
253 thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
254 arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
255 thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
256 thumb2_output_casesi): New functions.
257 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
258 (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
259 FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
260 THUMB2_WORK_REGS): Define.
261 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
262 arm_condexec_mask, arm_condexec_masklen)): New variables.
263 (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
264 (arm_override_options): Check new CPU capabilities.
265 Set new architecture flag variables.
266 (arm_isr_value): Handle v7m interrupt functions.
267 (user_return_insn): Return 0 for v7m interrupt functions. Handle
268 Thumb-2.
269 (const_ok_for_arm): Handle Thumb-2 constants.
270 (arm_gen_constant): Ditto. Use movw when available.
271 (arm_function_ok_for_sibcall): Return false for v7m interrupt
272 functions.
273 (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
274 (thumb_find_work_register, arm_load_pic_register,
275 legitimize_tls_address, arm_address_cost, load_multiple_sequence,
276 emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
277 print_multi_reg, output_mov_long_double_fpa_from_arm,
278 output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
279 output_mov_double_fpa_from_arm, output_move_double,
280 arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
281 output_return_instruction, arm_output_function_prologue,
282 arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
283 arm_output_mi_thunk, thumb_set_return_address): Ditto.
284 (arm_expand_prologue): Handle Thumb-2. Use arm_save_coproc_regs.
285 (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
286 (arithmetic_instr, shift_op): Use arm_shift_nmem.
287 (arm_print_operand): Use arm_print_condition. Handle '(', ')', '.',
288 '!' and 'L'.
289 (arm_final_prescan_insn): Use extract_constrain_insn_cached.
290 (thumb_expand_prologue): Use thumb_set_frame_pointer.
291 (arm_file_start): Output directive for unified syntax.
292 (arm_unwind_emit_set): Handle stack alignment instruction.
293 * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
294 Add v6t2, v7, v7a, v7r and v7m.
295 (RETLDM): Add Thumb-2 code.
296 (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
297 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
298 (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
299 TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
300 THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
301 ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
302 THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
303 CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
304 ADJUST_INSN_LENGTH): Define.
305 (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
306 STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
307 BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
308 PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
309 SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
310 TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
311 HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
312 HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
313 REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
314 REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
315 LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
316 GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
317 ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
318 FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
319 PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
320 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
321 * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
322 cortex-m3.
323 * config/arm/arm-tune.md: Regenerate.
324 * config/arm/arm-protos.h: Update prototypes.
325 * config/arm/vfp.md: Enable patterns for Thumb-2.
326 (arm_movsi_vfp): Add movw alternative. Use output_move_vfp.
327 (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
328 (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
329 thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
330 * config/arm/libunwind.S: Add Thumb-2 code.
331 * config/arm/constraints.md: Update include Thumb-2.
332 * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
333 * config/arm/ieee754-df.S: Ditto.
334 * config/arm/bpabi.S: Ditto.
335 * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
336 * config/arm/predicates.md (low_register_operand,
337 low_reg_or_int_operand, thumb_16bit_operator): New.
338 (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
339 (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
340 * config/arm/t-arm-elf: Add armv7 multilib.
341 * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
342 Include thumb2.md.
343 (UNSPEC_STACK_ALIGN, ce_count): New.
344 (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
345 arm_zero_extendsidi2, arm_zero_extendqidi2): New
346 insns/expanders.
347 * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
348 (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
349 thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
350 * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
351 (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
352 thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
353 insns.
354 * doc/extend.texi: Document ARMv7-M interrupt functions.
355 * doc/invoke.texi: Document Thumb-2 new cores+architectures.
356
357 2007-01-03 Jakub Jelinek <jakub@redhat.com>
358
359 * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
360 (struct _Unwind_Context): Rename args_size to flags, remove
361 signal_frame field, add a new args_size field and version field.
362 (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
363 _Unwind_IsExtendedContext): New inline functions.
364 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
365 Assume by_value array is only present if _Unwind_IsExtendedContext.
366 (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
367 _Unwind_IsSignalFrame.
368 (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
369 (uw_update_context_1): Use _Unwind_SetSignalFrame.
370 (uw_init_context_1): Initialize context->flags to
371 EXTENDED_CONTEXT_BIT.
372 * config/rs6000/linux-unwind.h (frob_update_context): Use
373 _Unwind_SetSignalFrame.
374
375 2007-01-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
376
377 PR middle-end/30353
378 * gimplify.c (gimplify_modify_expr_complex_part): Move below
379 tree_to_gimple_tuple. Call tree_to_gimple_tuple when we need
380 the value.
381
382 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
383
384 * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
385 REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
386 RET, AT_SP): Remove.
387 * config/i386/i386.md (*sse_prologue_save_insn): Use return
388 instead of RET.
389
390 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
391 * cfgbuild.c (find_basic_blocks): Likewise.
392 * cfgrtl.c (rtl_create_basic_block): Likewise.
393 * function.c (temp_slots_at_level): Likewise.
394 * reg-stack.c (stack_regs_mentioned): Likewise.
395 * regclass.c (allocate_reg_info): Likewise.
396 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
397 set_bb_for_stmt, move_block_to_fn): Likewise.
398 * tree-complex.c (tree_lower_complex): Likewise.
399 * vec.h (VEC_safe_grow_cleared): New.
400
401 * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
402
403 2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
404
405 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
406 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
407 to loop_version.
408 * cfgloopmanip.c (scale_loop_frequencies): Export.
409 (loopify): Scale the frequencies by prescribed coefficients.
410 (set_zero_probability): New function.
411 (duplicate_loop_to_header_edge): Improve updating of frequencies.
412 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
413 and frequencies according to arguments.
414 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
415 correctly.
416 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
417 * modulo-sched.c (sms_schedule): Set probabilities for entering
418 versioned loop correctly.
419 * tree-vect-transform.c (vect_transform_loop): Ditto.
420 * cfgloop.h (loopify, loop_version): Declaration changed.
421 (scale_loop_frequencies): Declared.
422
423 2007-01-02 Jan Hubicka <jh@suse.cz>
424
425 * cgraph.c: Include tree-flow.h
426 (cgraph_add_new-function): Handle IPA_SSA mode; execute
427 early_local_passes.
428 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
429 * tree-pass.h (pass_all_early_optimizations): Declare.
430 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
431 early_local_passes.
432 (cgraph_analyze_function): Do early_local_passes.
433 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
434 Do not add referenced vars.
435 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
436 SSA form.
437 (gate_all_early_local_passes): New gate.
438 (pass_early_local_passes): Use new gate.
439 (execute_early_local_optimizations): New functions.
440 (gate_all_early_optimizations): New gate.
441 (pass_all_early_optimizations): New pass.
442 (execute_free_datastructures): Free SSA only when initialized.
443 (gate_init_datastructures): Init only when optimizing.
444 (tree_lowering_passes): Do early local passes when called late.
445 * tree-profile.c (do_tree_profiling): Don't profile functions added
446 late.
447 (do_early_tree_profiling, pass_early_tree_profile): Kill.
448 * tree-cfg.c (update_modified_stmts): Do not update when operands are
449 not active.
450 * passes.c (init_optimizations_passes): Reorder so we go into SSA
451 during early_local_passes.
452 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
453
454
455 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
456
457 * Makefile.in: Update copyright year.
458
459 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
460
461 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
462 in $(lang_checks) and check-consistency targets.
463
464 2007-01-02 Jan Hubicka <jh@suse.cz>
465
466 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
467 Do not add referenced vars.
468 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
469 are not active.
470 * passes.c (init_optimization_passes): Put mudflap_2 after
471 free_datastructures.
472
473 2007-01-02 Jan Hubicka <jh@suse.cz>
474
475 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
476 Set NOTHROW flag on call statements proved to be nothrow.
477 Update statement of local calls so new pure/const functions are
478 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
479 goto receivers.
480 (tree_rest_of_compilation): Register hooks and initialize bitmap
481 early. Do not set after_inlining flag.
482
483 2007-01-02 Steve Ellcey <sje@cup.hp.com>
484
485 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
486 HOST_BITS_PER_LONGLONG
487
488 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
489
490 PR c/19977
491 * c-typeck.c (store_init_value): Don't emit pedantic overflow
492 warning for non-static initializers.
493
494 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
495
496 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
497 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
498 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
499 Always use set_unique_reg_note to add REG_EQUAL notes.
500
501 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
502
503 Revert:
504 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
505
506 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
507 * cfgbuild.c (find_basic_blocks): Likewise.
508 * cfgrtl.c (rtl_create_basic_block): Likewise.
509 * function.c (temp_slots_at_level): Likewise.
510 * reg-stack.c (stack_regs_mentioned): Likewise.
511 * regclass.c (allocate_reg_info): Likewise.
512 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
513 set_bb_for_stmt, move_block_to_fn): Likewise.
514 * tree-complex.c (tree_lower_complex): Likewise.
515 * vec.h (VEC_safe_grow_cleared): New.
516
517 2007-01-02 Ian Lance Taylor <iant@google.com>
518
519 * c-common.c (c_common_truthvalue_conversion): When warning about
520 using an assignment as a truth value, set TREE_NO_WARNING.
521
522 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
523
524 PR middle-end/7651
525 * c.opt (Wold-style-declaration): New.
526 * doc/invoke.texi (C-only Warning Options): New.
527 (Wold-style-declaration): Document it.
528 (Wextra): Enabled by -Wextra.
529 * c-opts.c (c_common_post_options): Enabled by -Wextra.
530 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
531 -Wold-style-declaration.
532
533 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
534
535 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
536 * cfgbuild.c (find_basic_blocks): Likewise.
537 * cfgrtl.c (rtl_create_basic_block): Likewise.
538 * function.c (temp_slots_at_level): Likewise.
539 * reg-stack.c (stack_regs_mentioned): Likewise.
540 * regclass.c (allocate_reg_info): Likewise.
541 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
542 set_bb_for_stmt, move_block_to_fn): Likewise.
543 * tree-complex.c (tree_lower_complex): Likewise.
544 * vec.h (VEC_safe_grow_cleared): New.
545
546 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
547
548 * c-common.c(c_common_nodes_and_builtins): Since variants of
549 void_type_node get built before it is given a name, we need to
550 give those variants the name, too.
551 (complete_array_type): We need to work with the canonical main
552 type of the array, from which we will build the qualified version.
553 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
554 * print-tree.c (print_node): Display canonical type information
555 for each type.
556 * stor-layout.c (layout_type): When we don't know the
557 alignment of a type for which we're building an array, we end up
558 guessing wrong, so make the type require structural equality.
559 * tree.c (make_node_stat): When we build a new type, it is its
560 own canonical type.
561 (build_type_attribute_qual_variant): When building an attribute
562 variant, its canonical type is the non-attribute variant. However,
563 if the attributes are target-dependent and they differ, we need to
564 use structural equality checks for this type.
565 (build_qualified_type): A qualified type is not equivalent to its
566 unqualified variant; set the canonical type appropriately.
567 (build_distinct_type_copy): When building a distinct type from
568 another type, the new type is its own canonical type.
569 (build_variant_type_copy): When building a new type variant, we
570 assume that it is equivalent to the original type.
571 (build_pointer_type_for_mode): When building a pointer type, also
572 build a canonical type pointer.
573 (build_reference_type_for_mode): When building a reference type,
574 also build a canonical type reference.
575 (build_index_type): When we can't hash an index type (e.g.,
576 because its maximum value is negative), the index type requires
577 structural equality tests.
578 (build_array_type): Build the canonical form of an array type.
579 (build_function_type): Function types require structural equality,
580 because they contain default arguments, attributes, etc.
581 (build_method_type_directly): Ditto for method types.
582 (build_offset_type): Build the canonical offset type.
583 (build_complex_type): Build the canonical vector type.
584 (make_vector_type): Build the canonical vector type.
585 * tree.h (TYPE_CANONICAL): New.
586 (TYPE_STRUCTURAL_EQUALITY_P): New.
587 (SET_TYPE_STRUCTURAL_EQUALITY): New.
588 (struct tree_type): Added "canonical" field.
589 * params.h (VERIFY_CANONICAL_TYPES): New.
590 * doc/c-tree.texi (TYPE_CANONICAL): Document.
591 (TYPE_STRUCTURAL_EQUALITY_P): Document.
592 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
593 * doc/invoke.texi (verify-canonical-types): Document --param
594 parameter for verifying canonical types.
595
596 2007-01-02 Joseph Myers <joseph@codesourcery.com>
597
598 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
599 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
600 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
601 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
602 tm_file.
603 * config/rs6000/e500.h: New.
604 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
605 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
606 Remove.
607 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
608 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
609 TARGET_E500_DOUBLE): Remove.
610 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
611 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
612 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
613 * config/rs6000/rs6000.c (rs6000_override_options): Use
614 CHECK_E500_OPTIONS.
615
616 2007-01-02 Joseph Myers <joseph@codesourcery.com>
617
618 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
619 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
620 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
621 rs6000_emit_cmove): Don't check TARGET_E500.
622 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
623 sordered): Don't check TARGET_E500.
624
625 2007-01-01 Eric Christopher <echristo@apple.com>
626
627 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
628 HARD_REGISTER_NUM_P.
629
630 2007-01-01 Roger Sayle <roger@eyesopen.com>
631
632 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
633 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
634 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
635 eq/ne Y".
636
637 2007-01-01 Mike Stump <mrs@apple.com>
638
639 * configure.ac: Remove support for building with Apple's gcc-3.1.
640
641 2007-01-02 Joseph Myers <joseph@codesourcery.com>
642
643 PR middle-end/30311
644 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
645 REG is a hard register. Do not modify REG before calling
646 subreg_nregs.
647 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
648 multiple of the size of YMODE for certain lowpart cases.
649
650 2007-01-01 Andrew Pinski <pinskia@gmail.com>
651
652 PR middle-end/30253
653 * gimplify (voidify_wrapper_expr): Update for
654 GIMPLE_MODIFY_STMT.
655
656 2007-01-01 Andreas Schwab <schwab@suse.de>
657
658 PR target/29166
659 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
660 save of BR0 in extra_spill_size instead of spill_size.
661 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
662 area.
663 (ia64_expand_epilogue): Restore BR0 from its new location.
664
665 2007-01-01 Andrew Pinski <pinskia@gmail.com>
666
667 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
668 Use a temporary variable if the left hand side is not a gimple
669 register.
670
671 2007-01-01 Andrew Pinski <pinskia@gmail.com>
672
673 * gimplify.c (gimplify_return_expr): Make the temporary variable
674 for the return expression, a gimple register variable.
675
676 2007-01-01 Jan Hubicka <jh@suse.cz>
677
678 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
679 INSN_LIST.
680
681 2007-01-01 Mike Stump <mrs@apple.com>
682
683 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
684 .literal16.
685 * config/darwin.c (machopic_select_rtx_section): Use
686 HAVE_GAS_LITERAL16.
687 (darwin_mergeable_constant_section): Likewise.
688 * configure: Regenerate.
689 * config.in: Regenerate.
690
691 2007-01-01 Jan Hubicka <jh@suse.cz>
692 Andrew Pinski <pinskia@gmail.com>
693
694 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
695 before starting IPA passes.