1 2007-01-08 Jan Hubicka <jh@suse.cz>
3 * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
4 (cgraph_analyze_function): break out from ...
5 (cgraph_finalize_compilation_unit): ... here.
6 (cgraph_expand_function): Remove forgoten commented out line.
7 (cgraph_optimize): Analyze functions.
9 2007-01-08 Jan Hubicka <jh@suse.cz>
11 * tree-pas.h (TODO_remove_function): New flag.
12 (TODO_update*): Renumber.
13 (pass_ipa_increase_alignment,
14 pass_ipa_function_and_variable_visibility): New passes.
15 * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
16 (cgraph_function_and_variable_visibility): Move to ipa.c
17 (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
18 cgraph_increase_alignment.
19 * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
20 (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
22 (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
23 (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
24 * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
25 (gate_increase_alignment): New function.
26 (pass_ipa_increase_alignment): New pass.
27 * ipa.c: Inline tree-pass.h and timevar.h
28 (function_and_variable_visibility): Move here from cgraphunit.c
29 * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
30 * passes.c (init_optimization_passes): Add the two new passes.
31 (execute_todo): Handle cgraph_remove_functions.
33 2007-01-08 Nick Clifton <nickc@redhat.com>
35 * config/frv/predicates.md (reg_or_0_operand): Accept
38 2007-01-08 Ralf Corsépius <ralf.corsepius@rtems.org>
40 * config/bfin/rtems.h, config/bfin/t-rtems: New.
41 * config.gcc: Add bfin*-rtems*.
43 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
45 * c.opt: Add -flax-vector-conversions.
46 * c-typeck.c (convert_for_assignment): Pass flag to
47 vector_types_convertible_p to allow emission of note.
48 (digest_init): Likewise.
49 * c-opts.c: Handle -flax-vector-conversions.
50 * c-common.c (flag_lax_vector_conversions): New.
51 (vector_types_convertible_p): Unless -flax-vector conversions
52 has been passed, disallow conversions between vectors with
53 differing numbers of subparts and/or element types. If such
54 a conversion is disallowed, possibly emit a note on the first
55 occasion only to inform the user of -flax-vector-conversions.
56 The new last argument specifies this.
57 * c-common.h (flag_lax_vector_conversions): New.
58 (vector_types_convertible_p): Add extra argument.
59 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
60 char_type_node for V*QI type vectors.
61 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
62 Update to satisfy new typechecking rules.
63 * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
65 * doc/invoke.texi (C Dialect Options): Document
66 -flax-vector-conversions.
68 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
70 PR tree-optimization/29877
71 * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
72 a register variable on the RHS to not be replaceable.
74 2007-01-08 Chen Liqin <liqin@sunnorth.com.cn>
75 * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
76 * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
77 const_simm15, const_pow2, const_npow2): Added.
78 * config/score/misc.md (insv, extv, extzv, movmemsi,
79 move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
80 * config/score/score.c (score_address_cost, score_select_cc_mode):
82 Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
83 Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
84 Update score_print_operand.
85 * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
86 Adjust register allocate order and update some macro define.
87 * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
88 mdx_block_move_straight, mdx_block_move_loop_head,
89 mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
90 mdx_block_move): Added.
91 (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
92 mdp_limm): Updated and fix some bug and typo.
93 * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
94 (movsf, movdf, doloop_end): Added.
96 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
98 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
99 config/arm/thumb2.md: Fix comment typos.
100 * doc/extend.texi: Fix a typo.
102 2007-01-07 Eric Christopher <echristo@apple.com>
104 * configure.ac: Check for __stack_chk_fail for darwin.
105 * configure: Regenerate.
107 2007-01-07 Richard Guenther <rguenther@suse.de>
109 * tree-vrp.c (extract_range_from_assert): CSE calls to
110 compare_values where possible.
111 (extract_range_from_unary_expr): Likewise.
113 2007-01-07 Anatoly Sokolov <aesok@post.ru>
115 * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
116 * config/avr/avr.c (call_insn_operand): Delete function.
117 * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
118 instead of register number. Use predicates.
119 * config/avr/predicates.md (const0_operand, reg_or_0_operand,
120 call_insn_operand): Add.
122 2007-01-06 Jan Hubicka <jh@suse.cz>
124 * tree-pass.h (pass_build_cgraph_edges): Declare.
125 * cgraphunit.c (record_refernece): Move to cgraphbuild.c
126 (visited_nodes): Remove.
127 (cgraph_create_edges): Move to cgraphbuild.c; rename to
128 build_cgrpah_edges; make visited_nodes local.
129 (cgraph_process_new_functions): DO not call initialize_inline_failed.
130 (record_references_in_initializer): Move to cgraphbuild.c
131 (initialize_inline_failed, rebuild_cgraph_edges,
132 pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
133 (verify_cgraph_node): Make visited_nodes local.
134 (cgraph_analyze_function): Do not call cgraph_create_edges and
135 initialize_inline_failed.
136 (cgraph_expand_function): Do not call cgraph_lower_function;
137 assert that function is already lowered.
138 * Makefile.in (cgraphbuild.o): New.
139 * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
140 at the end of lowering passes.
142 2007-01-06 Steven Bosscher <steven@gcc.gnu.org>
144 * ifcvt.c (cond_move_convert_if_block): New function, code
146 (cond_move_process_if_block): ...here. Call the new function
147 on the THEN and ELSE blocks.
148 (merge_if_block): Do not copy global_live_at_end, merge_blocks
149 already takes care of this.
151 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
154 * tree.h (TREE_OVERFLOW_P): New.
155 * c-typeck.c (parser_build_unary_op): Warn only if result
156 overflowed and operands did not.
157 (parser_build_binary_op): Likewise.
158 (convert_for_assignment): Remove redundant overflow_warning.
159 * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
161 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
163 * c-typeck.c (store_init_value): Split over two lines to follow
164 the GNU coding style.
166 2007-01-05 Benjamin Kosnik <bkoz@redhat.com>
168 * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
169 __GXX_EXPERIMENTAL_CXX0X__.
170 * doc/cpp.texi: Same.
172 2007-01-05 Richard Guenther <rguenther@suse.de>
175 * tree.c (get_narrower): Do not construct COMPONENT_REFs
176 with mismatched types. Instead explicitly build a
179 2007-01-05 Ian Lance Taylor <iant@google.com>
181 * c-common.c (decl_with_nonnull_addr_p): New function.
182 (c_common_truthvalue_conversion): Call it.
183 * c-typeck.c (build_binary_op): Likewise.
184 * c-common.h (decl_with_nonnull_addr_p): Declare.
186 2007-01-05 Jakub Jelinek <jakub@redhat.com>
189 * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
192 2007-01-05 Joel Brobecker <brobecker@adacore.com>
194 * doc/install.texi (Final install): Document the fact that
195 the GNAT runtime should not be stripped.
197 2007-01-04 Jan Hubicka <jh@suse.cz>
199 * tree-inline.c (fold_marked_statements): Update operand caches
202 2007-01-04 Ian Lance Taylor <iant@google.com>
204 * c-common.c (check_function_nonnull): Whitespace fix.
206 2007-01-04 Jan Hubicka <jh@suse.cz>
208 * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
209 comitted older version of patch.
210 (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
211 function, celanup cfg and collect garbage.
213 2007-01-04 Mike Stump <mrs@apple.com>
215 * Makefile.in (mostlyclean): Don't remove libgcc anymore.
218 2007-01-04 Eric Christopher <echristo@apple.com>
220 * libgcc2.c (__bswapsi2): Use SItype.
221 (__bswapdi2): Use DItype.
222 * libgcc2.h: Update for above.
224 2007-01-04 Paul Brook <paul@codesourcery.com>
226 * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
227 mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
228 mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
229 umulsidi3, umulsidi3adddi, smulsi3_highpart,
230 umulsi3_highpart): Make conditional on !arm_arch6.
231 (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
232 mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
233 mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
234 umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
235 umulsi3_highpart_v6): New insns.
237 2007-01-04 Roger Sayle <roger@eyesopen.com>
239 * fold-const.c (fold_convert): When casting an expression to void,
240 fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
241 have a type. Instead of attempting to build a NOP_EXPR, return
242 these "special" trees directly.
244 2007-01-04 Joseph Myers <joseph@codesourcery.com>
246 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
247 MULT inside MINUS as either argument. Use rs6000_cost->dmul -
248 rs6000_cost->fp not 0 as adjustment for outer NEG.
250 2007-01-04 Jan Hubicka <jh@suse.cz>
252 * cgraph.c (cgraph_release_function_body): New function.
253 (cgraph_remove_node): Use it.
254 * cgraph.h (cgraph_release_function_body): Declare.
255 * cgraphunit.c (cgraph_expand_function): Use it.
256 * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
257 * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
258 is initialized and while compilation of other function is running.
259 * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
260 statement CFG annotations from here to ...
261 * tree-cfg.c (delete_tree_cfg_annotations): ... here.
263 2007-01-04 Zdenek Dvorak <dvorakz@suse.cz>
265 * cfgloop.h (enum li_flags): Make the constants powers of two.
267 2007-01-04 Jan Hubicka <jh@suse.cz>
269 * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
271 (fold_marked_statements): New function.
272 (optimize_inline_calls, tree_function_versioning): Fold new statements.
273 * tree-inline.h (copy_body_data): Add statements_to_fold.
275 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
277 * config.gcc: Mention libgcc/config.host.
278 * Makefile.in: Update comments mentioning libgcc.
279 (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
280 (all.cross, start.encap, rest.encap, rest.cross): Update
281 dependencies for libgcc move.
282 (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
283 (clean-target, clean-target-libgcc): Delete.
284 (srcdirify, GCC_EXTRA_PARTS): New macros.
285 (libgcc-support, libgcc.mvars): New rules.
286 (distclean): Remove mention of mklibgcc.
287 (install): Don't reference INSTALL_LIBGCC.
288 (install-common): Don't reference EXTRA_PARTS.
289 (install-libgcc, install-multilib): Delete rules.
290 * mklibgcc.in: Delete file.
291 * doc/configfiles.texi: Don't mention mklibgcc.
293 * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
294 * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
295 * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
296 * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
297 (mklibgcc, ldblspecs): Likewise.
299 * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
300 (posixpre.def): Use $(T).
301 (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
302 (SHLIB_SRC, SHLIB_INSTALL): Delete.
303 (SHLIB_LINK): Make dummy.
304 * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
306 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
308 * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
309 * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
310 config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
311 config/rs6000/t-newas, config/sparc/t-elf: Likewise.
313 * configure.ac (all_outputs): Remove mklibgcc.
314 * configure: Regenerated.
316 2007-01-03 Josh Conner <jconner@apple.com>
319 * calls.c (compute_argument_addresses): Set stack and stack_slot
320 for partial args, too.
321 (store_one_arg): Use locate.size.constant for the size when
322 generating a save_area.
324 2007-01-03 Robert Kennedy <jimbob@google.com>
326 * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
327 whose definitions are deleted due to basic block merging.
329 2007-01-03 Paul Brook <paul@codesourcery.com>
332 * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
334 (use_return_insn): Return 0 for Thumb interrupt functions.
335 (print_multi_reg): Add rfe argument for IRQ returns.
336 (arm_output_epilogue): Pop interrupt return address directly into PC.
337 (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
339 2007-01-03 Paul Brook <paul@codesourcery.com>
341 Merge from sourcerygxx-4_1.
342 * config/arm/thumb2.md: New file.
343 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
345 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
346 * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
347 (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
348 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
350 (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
351 * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
353 * config/arm/ieee754-sf.S: Ditto.
354 * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
355 (thumb1_base_register_rtx_p): ... to this.
356 (thumb_index_register_rtx_p): Rename...
357 (thumb1_index_register_rtx_p): ... to this.
358 (thumb_output_function_prologue): Rename...
359 (thumb1_output_function_prologue): ... to this.
360 (thumb_legitimate_address_p): Rename...
361 (thumb1_legitimate_address_p): ... to this.
362 (thumb_rtx_costs): Rename...
363 (thumb1_rtx_costs): ... to this.
364 (thumb_compute_save_reg_mask): Rename...
365 (thumb1_compute_save_reg_mask): ... to this.
366 (thumb_final_prescan_insn): Rename...
367 (thumb1_final_prescan_insn): ... to this.
368 (thumb_expand_epilogue): Rename...
369 (thumb1_expand_epilogue): ... to this.
370 (arm_unwind_emit_stm): Rename...
371 (arm_unwind_emit_sequence): ... to this.
372 (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
373 thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
374 thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
375 arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
376 thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
377 thumb2_output_casesi): New functions.
378 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
379 (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
380 FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
381 THUMB2_WORK_REGS): Define.
382 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
383 arm_condexec_mask, arm_condexec_masklen)): New variables.
384 (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
385 (arm_override_options): Check new CPU capabilities.
386 Set new architecture flag variables.
387 (arm_isr_value): Handle v7m interrupt functions.
388 (user_return_insn): Return 0 for v7m interrupt functions. Handle
390 (const_ok_for_arm): Handle Thumb-2 constants.
391 (arm_gen_constant): Ditto. Use movw when available.
392 (arm_function_ok_for_sibcall): Return false for v7m interrupt
394 (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
395 (thumb_find_work_register, arm_load_pic_register,
396 legitimize_tls_address, arm_address_cost, load_multiple_sequence,
397 emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
398 print_multi_reg, output_mov_long_double_fpa_from_arm,
399 output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
400 output_mov_double_fpa_from_arm, output_move_double,
401 arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
402 output_return_instruction, arm_output_function_prologue,
403 arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
404 arm_output_mi_thunk, thumb_set_return_address): Ditto.
405 (arm_expand_prologue): Handle Thumb-2. Use arm_save_coproc_regs.
406 (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
407 (arithmetic_instr, shift_op): Use arm_shift_nmem.
408 (arm_print_operand): Use arm_print_condition. Handle '(', ')', '.',
410 (arm_final_prescan_insn): Use extract_constrain_insn_cached.
411 (thumb_expand_prologue): Use thumb_set_frame_pointer.
412 (arm_file_start): Output directive for unified syntax.
413 (arm_unwind_emit_set): Handle stack alignment instruction.
414 * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
415 Add v6t2, v7, v7a, v7r and v7m.
416 (RETLDM): Add Thumb-2 code.
417 (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
418 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
419 (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
420 TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
421 THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
422 ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
423 THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
424 CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
425 ADJUST_INSN_LENGTH): Define.
426 (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
427 STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
428 BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
429 PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
430 SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
431 TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
432 HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
433 HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
434 REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
435 REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
436 LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
437 GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
438 ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
439 FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
440 PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
441 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
442 * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
444 * config/arm/arm-tune.md: Regenerate.
445 * config/arm/arm-protos.h: Update prototypes.
446 * config/arm/vfp.md: Enable patterns for Thumb-2.
447 (arm_movsi_vfp): Add movw alternative. Use output_move_vfp.
448 (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
449 (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
450 thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
451 * config/arm/libunwind.S: Add Thumb-2 code.
452 * config/arm/constraints.md: Update include Thumb-2.
453 * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
454 * config/arm/ieee754-df.S: Ditto.
455 * config/arm/bpabi.S: Ditto.
456 * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
457 * config/arm/predicates.md (low_register_operand,
458 low_reg_or_int_operand, thumb_16bit_operator): New.
459 (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
460 (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
461 * config/arm/t-arm-elf: Add armv7 multilib.
462 * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
464 (UNSPEC_STACK_ALIGN, ce_count): New.
465 (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
466 arm_zero_extendsidi2, arm_zero_extendqidi2): New
468 * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
469 (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
470 thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
471 * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
472 (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
473 thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
475 * doc/extend.texi: Document ARMv7-M interrupt functions.
476 * doc/invoke.texi: Document Thumb-2 new cores+architectures.
478 2007-01-03 Jakub Jelinek <jakub@redhat.com>
480 * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
481 (struct _Unwind_Context): Rename args_size to flags, remove
482 signal_frame field, add a new args_size field and version field.
483 (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
484 _Unwind_IsExtendedContext): New inline functions.
485 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
486 Assume by_value array is only present if _Unwind_IsExtendedContext.
487 (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
488 _Unwind_IsSignalFrame.
489 (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
490 (uw_update_context_1): Use _Unwind_SetSignalFrame.
491 (uw_init_context_1): Initialize context->flags to
492 EXTENDED_CONTEXT_BIT.
493 * config/rs6000/linux-unwind.h (frob_update_context): Use
494 _Unwind_SetSignalFrame.
496 2007-01-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
499 * gimplify.c (gimplify_modify_expr_complex_part): Move below
500 tree_to_gimple_tuple. Call tree_to_gimple_tuple when we need
503 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
505 * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
506 REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
508 * config/i386/i386.md (*sse_prologue_save_insn): Use return
511 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
512 * cfgbuild.c (find_basic_blocks): Likewise.
513 * cfgrtl.c (rtl_create_basic_block): Likewise.
514 * function.c (temp_slots_at_level): Likewise.
515 * reg-stack.c (stack_regs_mentioned): Likewise.
516 * regclass.c (allocate_reg_info): Likewise.
517 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
518 set_bb_for_stmt, move_block_to_fn): Likewise.
519 * tree-complex.c (tree_lower_complex): Likewise.
520 * vec.h (VEC_safe_grow_cleared): New.
522 * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
524 2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
526 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
527 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
529 * cfgloopmanip.c (scale_loop_frequencies): Export.
530 (loopify): Scale the frequencies by prescribed coefficients.
531 (set_zero_probability): New function.
532 (duplicate_loop_to_header_edge): Improve updating of frequencies.
533 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
534 and frequencies according to arguments.
535 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
537 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
538 * modulo-sched.c (sms_schedule): Set probabilities for entering
539 versioned loop correctly.
540 * tree-vect-transform.c (vect_transform_loop): Ditto.
541 * cfgloop.h (loopify, loop_version): Declaration changed.
542 (scale_loop_frequencies): Declared.
544 2007-01-02 Jan Hubicka <jh@suse.cz>
546 * cgraph.c: Include tree-flow.h
547 (cgraph_add_new-function): Handle IPA_SSA mode; execute
549 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
550 * tree-pass.h (pass_all_early_optimizations): Declare.
551 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
553 (cgraph_analyze_function): Do early_local_passes.
554 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
555 Do not add referenced vars.
556 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
558 (gate_all_early_local_passes): New gate.
559 (pass_early_local_passes): Use new gate.
560 (execute_early_local_optimizations): New functions.
561 (gate_all_early_optimizations): New gate.
562 (pass_all_early_optimizations): New pass.
563 (execute_free_datastructures): Free SSA only when initialized.
564 (gate_init_datastructures): Init only when optimizing.
565 (tree_lowering_passes): Do early local passes when called late.
566 * tree-profile.c (do_tree_profiling): Don't profile functions added
568 (do_early_tree_profiling, pass_early_tree_profile): Kill.
569 * tree-cfg.c (update_modified_stmts): Do not update when operands are
571 * passes.c (init_optimizations_passes): Reorder so we go into SSA
572 during early_local_passes.
573 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
576 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
578 * Makefile.in: Update copyright year.
580 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
582 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
583 in $(lang_checks) and check-consistency targets.
585 2007-01-02 Jan Hubicka <jh@suse.cz>
587 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
588 Do not add referenced vars.
589 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
591 * passes.c (init_optimization_passes): Put mudflap_2 after
594 2007-01-02 Jan Hubicka <jh@suse.cz>
596 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
597 Set NOTHROW flag on call statements proved to be nothrow.
598 Update statement of local calls so new pure/const functions are
599 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
601 (tree_rest_of_compilation): Register hooks and initialize bitmap
602 early. Do not set after_inlining flag.
604 2007-01-02 Steve Ellcey <sje@cup.hp.com>
606 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
607 HOST_BITS_PER_LONGLONG
609 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
612 * c-typeck.c (store_init_value): Don't emit pedantic overflow
613 warning for non-static initializers.
615 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
617 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
618 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
619 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
620 Always use set_unique_reg_note to add REG_EQUAL notes.
622 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
625 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
627 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
628 * cfgbuild.c (find_basic_blocks): Likewise.
629 * cfgrtl.c (rtl_create_basic_block): Likewise.
630 * function.c (temp_slots_at_level): Likewise.
631 * reg-stack.c (stack_regs_mentioned): Likewise.
632 * regclass.c (allocate_reg_info): Likewise.
633 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
634 set_bb_for_stmt, move_block_to_fn): Likewise.
635 * tree-complex.c (tree_lower_complex): Likewise.
636 * vec.h (VEC_safe_grow_cleared): New.
638 2007-01-02 Ian Lance Taylor <iant@google.com>
640 * c-common.c (c_common_truthvalue_conversion): When warning about
641 using an assignment as a truth value, set TREE_NO_WARNING.
643 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
646 * c.opt (Wold-style-declaration): New.
647 * doc/invoke.texi (C-only Warning Options): New.
648 (Wold-style-declaration): Document it.
649 (Wextra): Enabled by -Wextra.
650 * c-opts.c (c_common_post_options): Enabled by -Wextra.
651 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
652 -Wold-style-declaration.
654 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
656 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
657 * cfgbuild.c (find_basic_blocks): Likewise.
658 * cfgrtl.c (rtl_create_basic_block): Likewise.
659 * function.c (temp_slots_at_level): Likewise.
660 * reg-stack.c (stack_regs_mentioned): Likewise.
661 * regclass.c (allocate_reg_info): Likewise.
662 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
663 set_bb_for_stmt, move_block_to_fn): Likewise.
664 * tree-complex.c (tree_lower_complex): Likewise.
665 * vec.h (VEC_safe_grow_cleared): New.
667 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
669 * c-common.c(c_common_nodes_and_builtins): Since variants of
670 void_type_node get built before it is given a name, we need to
671 give those variants the name, too.
672 (complete_array_type): We need to work with the canonical main
673 type of the array, from which we will build the qualified version.
674 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
675 * print-tree.c (print_node): Display canonical type information
677 * stor-layout.c (layout_type): When we don't know the
678 alignment of a type for which we're building an array, we end up
679 guessing wrong, so make the type require structural equality.
680 * tree.c (make_node_stat): When we build a new type, it is its
682 (build_type_attribute_qual_variant): When building an attribute
683 variant, its canonical type is the non-attribute variant. However,
684 if the attributes are target-dependent and they differ, we need to
685 use structural equality checks for this type.
686 (build_qualified_type): A qualified type is not equivalent to its
687 unqualified variant; set the canonical type appropriately.
688 (build_distinct_type_copy): When building a distinct type from
689 another type, the new type is its own canonical type.
690 (build_variant_type_copy): When building a new type variant, we
691 assume that it is equivalent to the original type.
692 (build_pointer_type_for_mode): When building a pointer type, also
693 build a canonical type pointer.
694 (build_reference_type_for_mode): When building a reference type,
695 also build a canonical type reference.
696 (build_index_type): When we can't hash an index type (e.g.,
697 because its maximum value is negative), the index type requires
698 structural equality tests.
699 (build_array_type): Build the canonical form of an array type.
700 (build_function_type): Function types require structural equality,
701 because they contain default arguments, attributes, etc.
702 (build_method_type_directly): Ditto for method types.
703 (build_offset_type): Build the canonical offset type.
704 (build_complex_type): Build the canonical vector type.
705 (make_vector_type): Build the canonical vector type.
706 * tree.h (TYPE_CANONICAL): New.
707 (TYPE_STRUCTURAL_EQUALITY_P): New.
708 (SET_TYPE_STRUCTURAL_EQUALITY): New.
709 (struct tree_type): Added "canonical" field.
710 * params.h (VERIFY_CANONICAL_TYPES): New.
711 * doc/c-tree.texi (TYPE_CANONICAL): Document.
712 (TYPE_STRUCTURAL_EQUALITY_P): Document.
713 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
714 * doc/invoke.texi (verify-canonical-types): Document --param
715 parameter for verifying canonical types.
717 2007-01-02 Joseph Myers <joseph@codesourcery.com>
719 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
720 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
721 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
722 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
724 * config/rs6000/e500.h: New.
725 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
726 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
728 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
729 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
730 TARGET_E500_DOUBLE): Remove.
731 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
732 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
733 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
734 * config/rs6000/rs6000.c (rs6000_override_options): Use
737 2007-01-02 Joseph Myers <joseph@codesourcery.com>
739 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
740 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
741 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
742 rs6000_emit_cmove): Don't check TARGET_E500.
743 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
744 sordered): Don't check TARGET_E500.
746 2007-01-01 Eric Christopher <echristo@apple.com>
748 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
751 2007-01-01 Roger Sayle <roger@eyesopen.com>
753 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
754 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
755 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
758 2007-01-01 Mike Stump <mrs@apple.com>
760 * configure.ac: Remove support for building with Apple's gcc-3.1.
762 2007-01-02 Joseph Myers <joseph@codesourcery.com>
765 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
766 REG is a hard register. Do not modify REG before calling
768 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
769 multiple of the size of YMODE for certain lowpart cases.
771 2007-01-01 Andrew Pinski <pinskia@gmail.com>
774 * gimplify (voidify_wrapper_expr): Update for
777 2007-01-01 Andreas Schwab <schwab@suse.de>
780 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
781 save of BR0 in extra_spill_size instead of spill_size.
782 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
784 (ia64_expand_epilogue): Restore BR0 from its new location.
786 2007-01-01 Andrew Pinski <pinskia@gmail.com>
788 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
789 Use a temporary variable if the left hand side is not a gimple
792 2007-01-01 Andrew Pinski <pinskia@gmail.com>
794 * gimplify.c (gimplify_return_expr): Make the temporary variable
795 for the return expression, a gimple register variable.
797 2007-01-01 Jan Hubicka <jh@suse.cz>
799 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
802 2007-01-01 Mike Stump <mrs@apple.com>
804 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
806 * config/darwin.c (machopic_select_rtx_section): Use
808 (darwin_mergeable_constant_section): Likewise.
809 * configure: Regenerate.
810 * config.in: Regenerate.
812 2007-01-01 Jan Hubicka <jh@suse.cz>
813 Andrew Pinski <pinskia@gmail.com>
815 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
816 before starting IPA passes.