1 2007-01-08 Richard Guenther <rguenther@suse.de>
3 * tree.h (build_int_cst_wide_type): Export.
4 * tree.c (build_int_cst_wide_type): New function.
5 (build_int_cst_wide): Fix comment.
6 * builtins.c (fold_builtin_object_size): Use build_int_cst
7 to build -1 or 0 of the correct type. Use fit_double_type
9 * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
11 (decode_field_reference): Likewise.
12 (all_ones_mask_p): Likewise.
13 (native_interpret_int): Use build_int_cst_wide_type.
14 (fold_binary): Use build_int_cst_type to build an all-ones
16 * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
18 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
20 * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
22 2007-01-09 Ben Elliston <bje@au.ibm.com>
24 * genautomata.c (STATS_OPTION): New option.
25 (stats_flag): New flag.
26 (gen_automata_option): Handle it.
27 (initiate_automaton_gen): Ditto.
28 (write_automata): Output statistics only if stats_flag is
29 set. Likewise, output time statistics only if time_flag is set.
30 * doc/md.texi (Processor pipeline description): Document new flag.
32 2007-01-08 Richard Guenther <rguenther@suse.de>
34 * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
35 * tree.c (build_int_cst_type): Likewise.
36 (size_in_bytes): Don't call force_fit_type on the result.
37 (int_fits_type_p): Use fit_double_type.
38 * fold-const.c (fit_double_type): New function.
39 (force_fit_type): Use it.
40 * tree.h (fit_double_type): Export.
42 2007-01-08 Jan Hubicka <jh@suse.cz>
44 * tree-vectorizer.c (gate_increase_alignment): Fix return type.
45 * ipa.c (function_and_variable_visibility): Fix return type.
47 2007-01-08 Richard Guenther <rguenther@suse.de>
49 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
50 of offset to build the index.
51 * tree-pretty-print.c (dump_generic_node): Don't build negated
52 const just for printing.
53 * c-pretty-print.c (pp_c_integer_constant): Likewise.
54 * builtins.c (fold_builtin_int_roundingfn): Check if result
55 fits the type by using force_fit_type and comparing the result.
56 * predict.c (predict_loops): Use compare_tree_int for comparison.
57 * tree.c (build_int_cst): Fall back to integer_type_node for
59 (build_int_cst_wide): Assert type is non-null.
61 2007-01-08 Roberto Costa <roberto.costa@st.com>
63 * tree-vrp.c (extract_range_from_cond_expr): New.
64 (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
65 * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
67 (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
68 * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
69 tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
71 * tree-object-size.c (cond_expr_object_size): New.
72 (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
74 2007-01-08 Jan Hubicka <jh@suse.cz>
76 * tree-ssa-forwprop.c (forward_propagate_into_cond,
77 tree_ssa_forward_propagate_single_use_va): Release defs of propagated
80 2007-01-08 Richard Guenther <rguenther@suse.de>
82 PR tree-optimization/23603
83 * tree-vrp.c (set_value_range_to_truthvalue): New function.
84 (extract_range_from_binary): Fall back to truthvalue instead of
85 varying for TRUTH_*_EXPR.
86 (extract_range_from_comparison): Fall back to truthvalue instead of
88 (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
89 if all visited PHI values were constant.
91 2007-01-08 Jan Hubicka <jh@suse.cz>
93 * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
94 (cgraph_analyze_function): break out from ...
95 (cgraph_finalize_compilation_unit): ... here.
96 (cgraph_expand_function): Remove forgoten commented out line.
97 (cgraph_optimize): Analyze functions.
99 2007-01-08 Jan Hubicka <jh@suse.cz>
101 * tree-pas.h (TODO_remove_function): New flag.
102 (TODO_update*): Renumber.
103 (pass_ipa_increase_alignment,
104 pass_ipa_function_and_variable_visibility): New passes.
105 * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
106 (cgraph_function_and_variable_visibility): Move to ipa.c
107 (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
108 cgraph_increase_alignment.
109 * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
110 (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
112 (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
113 (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
114 * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
115 (gate_increase_alignment): New function.
116 (pass_ipa_increase_alignment): New pass.
117 * ipa.c: Inline tree-pass.h and timevar.h
118 (function_and_variable_visibility): Move here from cgraphunit.c
119 * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
120 * passes.c (init_optimization_passes): Add the two new passes.
121 (execute_todo): Handle cgraph_remove_functions.
123 2007-01-08 Nick Clifton <nickc@redhat.com>
125 * config/frv/predicates.md (reg_or_0_operand): Accept
128 2007-01-08 Ralf Corsépius <ralf.corsepius@rtems.org>
130 * config/bfin/rtems.h, config/bfin/t-rtems: New.
131 * config.gcc: Add bfin*-rtems*.
133 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
135 * c.opt: Add -flax-vector-conversions.
136 * c-typeck.c (convert_for_assignment): Pass flag to
137 vector_types_convertible_p to allow emission of note.
138 (digest_init): Likewise.
139 * c-opts.c: Handle -flax-vector-conversions.
140 * c-common.c (flag_lax_vector_conversions): New.
141 (vector_types_convertible_p): Unless -flax-vector conversions
142 has been passed, disallow conversions between vectors with
143 differing numbers of subparts and/or element types. If such
144 a conversion is disallowed, possibly emit a note on the first
145 occasion only to inform the user of -flax-vector-conversions.
146 The new last argument specifies this.
147 * c-common.h (flag_lax_vector_conversions): New.
148 (vector_types_convertible_p): Add extra argument.
149 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
150 char_type_node for V*QI type vectors.
151 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
152 Update to satisfy new typechecking rules.
153 * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
155 * doc/invoke.texi (C Dialect Options): Document
156 -flax-vector-conversions.
158 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
160 PR tree-optimization/29877
161 * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
162 a register variable on the RHS to not be replaceable.
164 2007-01-08 Chen Liqin <liqin@sunnorth.com.cn>
165 * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
166 * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
167 const_simm15, const_pow2, const_npow2): Added.
168 * config/score/misc.md (insv, extv, extzv, movmemsi,
169 move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
170 * config/score/score.c (score_address_cost, score_select_cc_mode):
172 Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
173 Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
174 Update score_print_operand.
175 * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
176 Adjust register allocate order and update some macro define.
177 * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
178 mdx_block_move_straight, mdx_block_move_loop_head,
179 mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
180 mdx_block_move): Added.
181 (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
182 mdp_limm): Updated and fix some bug and typo.
183 * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
184 (movsf, movdf, doloop_end): Added.
186 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
188 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
189 config/arm/thumb2.md: Fix comment typos.
190 * doc/extend.texi: Fix a typo.
192 2007-01-07 Eric Christopher <echristo@apple.com>
194 * configure.ac: Check for __stack_chk_fail for darwin.
195 * configure: Regenerate.
197 2007-01-07 Richard Guenther <rguenther@suse.de>
199 * tree-vrp.c (extract_range_from_assert): CSE calls to
200 compare_values where possible.
201 (extract_range_from_unary_expr): Likewise.
203 2007-01-07 Anatoly Sokolov <aesok@post.ru>
205 * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
206 * config/avr/avr.c (call_insn_operand): Delete function.
207 * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
208 instead of register number. Use predicates.
209 * config/avr/predicates.md (const0_operand, reg_or_0_operand,
210 call_insn_operand): Add.
212 2007-01-06 Jan Hubicka <jh@suse.cz>
214 * tree-pass.h (pass_build_cgraph_edges): Declare.
215 * cgraphunit.c (record_refernece): Move to cgraphbuild.c
216 (visited_nodes): Remove.
217 (cgraph_create_edges): Move to cgraphbuild.c; rename to
218 build_cgrpah_edges; make visited_nodes local.
219 (cgraph_process_new_functions): DO not call initialize_inline_failed.
220 (record_references_in_initializer): Move to cgraphbuild.c
221 (initialize_inline_failed, rebuild_cgraph_edges,
222 pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
223 (verify_cgraph_node): Make visited_nodes local.
224 (cgraph_analyze_function): Do not call cgraph_create_edges and
225 initialize_inline_failed.
226 (cgraph_expand_function): Do not call cgraph_lower_function;
227 assert that function is already lowered.
228 * Makefile.in (cgraphbuild.o): New.
229 * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
230 at the end of lowering passes.
232 2007-01-06 Steven Bosscher <steven@gcc.gnu.org>
234 * ifcvt.c (cond_move_convert_if_block): New function, code
236 (cond_move_process_if_block): ...here. Call the new function
237 on the THEN and ELSE blocks.
238 (merge_if_block): Do not copy global_live_at_end, merge_blocks
239 already takes care of this.
241 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
244 * tree.h (TREE_OVERFLOW_P): New.
245 * c-typeck.c (parser_build_unary_op): Warn only if result
246 overflowed and operands did not.
247 (parser_build_binary_op): Likewise.
248 (convert_for_assignment): Remove redundant overflow_warning.
249 * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
251 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
253 * c-typeck.c (store_init_value): Split over two lines to follow
254 the GNU coding style.
256 2007-01-05 Benjamin Kosnik <bkoz@redhat.com>
258 * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
259 __GXX_EXPERIMENTAL_CXX0X__.
260 * doc/cpp.texi: Same.
262 2007-01-05 Richard Guenther <rguenther@suse.de>
265 * tree.c (get_narrower): Do not construct COMPONENT_REFs
266 with mismatched types. Instead explicitly build a
269 2007-01-05 Ian Lance Taylor <iant@google.com>
271 * c-common.c (decl_with_nonnull_addr_p): New function.
272 (c_common_truthvalue_conversion): Call it.
273 * c-typeck.c (build_binary_op): Likewise.
274 * c-common.h (decl_with_nonnull_addr_p): Declare.
276 2007-01-05 Jakub Jelinek <jakub@redhat.com>
279 * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
282 2007-01-05 Joel Brobecker <brobecker@adacore.com>
284 * doc/install.texi (Final install): Document the fact that
285 the GNAT runtime should not be stripped.
287 2007-01-04 Jan Hubicka <jh@suse.cz>
289 * tree-inline.c (fold_marked_statements): Update operand caches
292 2007-01-04 Ian Lance Taylor <iant@google.com>
294 * c-common.c (check_function_nonnull): Whitespace fix.
296 2007-01-04 Jan Hubicka <jh@suse.cz>
298 * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
299 comitted older version of patch.
300 (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
301 function, celanup cfg and collect garbage.
303 2007-01-04 Mike Stump <mrs@apple.com>
305 * Makefile.in (mostlyclean): Don't remove libgcc anymore.
308 2007-01-04 Eric Christopher <echristo@apple.com>
310 * libgcc2.c (__bswapsi2): Use SItype.
311 (__bswapdi2): Use DItype.
312 * libgcc2.h: Update for above.
314 2007-01-04 Paul Brook <paul@codesourcery.com>
316 * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
317 mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
318 mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
319 umulsidi3, umulsidi3adddi, smulsi3_highpart,
320 umulsi3_highpart): Make conditional on !arm_arch6.
321 (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
322 mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
323 mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
324 umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
325 umulsi3_highpart_v6): New insns.
327 2007-01-04 Roger Sayle <roger@eyesopen.com>
329 * fold-const.c (fold_convert): When casting an expression to void,
330 fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
331 have a type. Instead of attempting to build a NOP_EXPR, return
332 these "special" trees directly.
334 2007-01-04 Joseph Myers <joseph@codesourcery.com>
336 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
337 MULT inside MINUS as either argument. Use rs6000_cost->dmul -
338 rs6000_cost->fp not 0 as adjustment for outer NEG.
340 2007-01-04 Jan Hubicka <jh@suse.cz>
342 * cgraph.c (cgraph_release_function_body): New function.
343 (cgraph_remove_node): Use it.
344 * cgraph.h (cgraph_release_function_body): Declare.
345 * cgraphunit.c (cgraph_expand_function): Use it.
346 * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
347 * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
348 is initialized and while compilation of other function is running.
349 * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
350 statement CFG annotations from here to ...
351 * tree-cfg.c (delete_tree_cfg_annotations): ... here.
353 2007-01-04 Zdenek Dvorak <dvorakz@suse.cz>
355 * cfgloop.h (enum li_flags): Make the constants powers of two.
357 2007-01-04 Jan Hubicka <jh@suse.cz>
359 * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
361 (fold_marked_statements): New function.
362 (optimize_inline_calls, tree_function_versioning): Fold new statements.
363 * tree-inline.h (copy_body_data): Add statements_to_fold.
365 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
367 * config.gcc: Mention libgcc/config.host.
368 * Makefile.in: Update comments mentioning libgcc.
369 (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
370 (all.cross, start.encap, rest.encap, rest.cross): Update
371 dependencies for libgcc move.
372 (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
373 (clean-target, clean-target-libgcc): Delete.
374 (srcdirify, GCC_EXTRA_PARTS): New macros.
375 (libgcc-support, libgcc.mvars): New rules.
376 (distclean): Remove mention of mklibgcc.
377 (install): Don't reference INSTALL_LIBGCC.
378 (install-common): Don't reference EXTRA_PARTS.
379 (install-libgcc, install-multilib): Delete rules.
380 * mklibgcc.in: Delete file.
381 * doc/configfiles.texi: Don't mention mklibgcc.
383 * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
384 * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
385 * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
386 * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
387 (mklibgcc, ldblspecs): Likewise.
389 * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
390 (posixpre.def): Use $(T).
391 (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
392 (SHLIB_SRC, SHLIB_INSTALL): Delete.
393 (SHLIB_LINK): Make dummy.
394 * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
396 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
398 * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
399 * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
400 config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
401 config/rs6000/t-newas, config/sparc/t-elf: Likewise.
403 * configure.ac (all_outputs): Remove mklibgcc.
404 * configure: Regenerated.
406 2007-01-03 Josh Conner <jconner@apple.com>
409 * calls.c (compute_argument_addresses): Set stack and stack_slot
410 for partial args, too.
411 (store_one_arg): Use locate.size.constant for the size when
412 generating a save_area.
414 2007-01-03 Robert Kennedy <jimbob@google.com>
416 * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
417 whose definitions are deleted due to basic block merging.
419 2007-01-03 Paul Brook <paul@codesourcery.com>
422 * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
424 (use_return_insn): Return 0 for Thumb interrupt functions.
425 (print_multi_reg): Add rfe argument for IRQ returns.
426 (arm_output_epilogue): Pop interrupt return address directly into PC.
427 (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
429 2007-01-03 Paul Brook <paul@codesourcery.com>
431 Merge from sourcerygxx-4_1.
432 * config/arm/thumb2.md: New file.
433 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
435 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
436 * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
437 (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
438 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
440 (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
441 * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
443 * config/arm/ieee754-sf.S: Ditto.
444 * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
445 (thumb1_base_register_rtx_p): ... to this.
446 (thumb_index_register_rtx_p): Rename...
447 (thumb1_index_register_rtx_p): ... to this.
448 (thumb_output_function_prologue): Rename...
449 (thumb1_output_function_prologue): ... to this.
450 (thumb_legitimate_address_p): Rename...
451 (thumb1_legitimate_address_p): ... to this.
452 (thumb_rtx_costs): Rename...
453 (thumb1_rtx_costs): ... to this.
454 (thumb_compute_save_reg_mask): Rename...
455 (thumb1_compute_save_reg_mask): ... to this.
456 (thumb_final_prescan_insn): Rename...
457 (thumb1_final_prescan_insn): ... to this.
458 (thumb_expand_epilogue): Rename...
459 (thumb1_expand_epilogue): ... to this.
460 (arm_unwind_emit_stm): Rename...
461 (arm_unwind_emit_sequence): ... to this.
462 (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
463 thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
464 thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
465 arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
466 thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
467 thumb2_output_casesi): New functions.
468 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
469 (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
470 FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
471 THUMB2_WORK_REGS): Define.
472 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
473 arm_condexec_mask, arm_condexec_masklen)): New variables.
474 (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
475 (arm_override_options): Check new CPU capabilities.
476 Set new architecture flag variables.
477 (arm_isr_value): Handle v7m interrupt functions.
478 (user_return_insn): Return 0 for v7m interrupt functions. Handle
480 (const_ok_for_arm): Handle Thumb-2 constants.
481 (arm_gen_constant): Ditto. Use movw when available.
482 (arm_function_ok_for_sibcall): Return false for v7m interrupt
484 (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
485 (thumb_find_work_register, arm_load_pic_register,
486 legitimize_tls_address, arm_address_cost, load_multiple_sequence,
487 emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
488 print_multi_reg, output_mov_long_double_fpa_from_arm,
489 output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
490 output_mov_double_fpa_from_arm, output_move_double,
491 arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
492 output_return_instruction, arm_output_function_prologue,
493 arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
494 arm_output_mi_thunk, thumb_set_return_address): Ditto.
495 (arm_expand_prologue): Handle Thumb-2. Use arm_save_coproc_regs.
496 (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
497 (arithmetic_instr, shift_op): Use arm_shift_nmem.
498 (arm_print_operand): Use arm_print_condition. Handle '(', ')', '.',
500 (arm_final_prescan_insn): Use extract_constrain_insn_cached.
501 (thumb_expand_prologue): Use thumb_set_frame_pointer.
502 (arm_file_start): Output directive for unified syntax.
503 (arm_unwind_emit_set): Handle stack alignment instruction.
504 * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
505 Add v6t2, v7, v7a, v7r and v7m.
506 (RETLDM): Add Thumb-2 code.
507 (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
508 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
509 (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
510 TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
511 THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
512 ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
513 THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
514 CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
515 ADJUST_INSN_LENGTH): Define.
516 (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
517 STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
518 BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
519 PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
520 SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
521 TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
522 HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
523 HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
524 REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
525 REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
526 LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
527 GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
528 ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
529 FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
530 PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
531 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
532 * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
534 * config/arm/arm-tune.md: Regenerate.
535 * config/arm/arm-protos.h: Update prototypes.
536 * config/arm/vfp.md: Enable patterns for Thumb-2.
537 (arm_movsi_vfp): Add movw alternative. Use output_move_vfp.
538 (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
539 (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
540 thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
541 * config/arm/libunwind.S: Add Thumb-2 code.
542 * config/arm/constraints.md: Update include Thumb-2.
543 * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
544 * config/arm/ieee754-df.S: Ditto.
545 * config/arm/bpabi.S: Ditto.
546 * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
547 * config/arm/predicates.md (low_register_operand,
548 low_reg_or_int_operand, thumb_16bit_operator): New.
549 (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
550 (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
551 * config/arm/t-arm-elf: Add armv7 multilib.
552 * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
554 (UNSPEC_STACK_ALIGN, ce_count): New.
555 (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
556 arm_zero_extendsidi2, arm_zero_extendqidi2): New
558 * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
559 (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
560 thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
561 * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
562 (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
563 thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
565 * doc/extend.texi: Document ARMv7-M interrupt functions.
566 * doc/invoke.texi: Document Thumb-2 new cores+architectures.
568 2007-01-03 Jakub Jelinek <jakub@redhat.com>
570 * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
571 (struct _Unwind_Context): Rename args_size to flags, remove
572 signal_frame field, add a new args_size field and version field.
573 (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
574 _Unwind_IsExtendedContext): New inline functions.
575 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
576 Assume by_value array is only present if _Unwind_IsExtendedContext.
577 (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
578 _Unwind_IsSignalFrame.
579 (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
580 (uw_update_context_1): Use _Unwind_SetSignalFrame.
581 (uw_init_context_1): Initialize context->flags to
582 EXTENDED_CONTEXT_BIT.
583 * config/rs6000/linux-unwind.h (frob_update_context): Use
584 _Unwind_SetSignalFrame.
586 2007-01-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
589 * gimplify.c (gimplify_modify_expr_complex_part): Move below
590 tree_to_gimple_tuple. Call tree_to_gimple_tuple when we need
593 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
595 * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
596 REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
598 * config/i386/i386.md (*sse_prologue_save_insn): Use return
601 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
602 * cfgbuild.c (find_basic_blocks): Likewise.
603 * cfgrtl.c (rtl_create_basic_block): Likewise.
604 * function.c (temp_slots_at_level): Likewise.
605 * reg-stack.c (stack_regs_mentioned): Likewise.
606 * regclass.c (allocate_reg_info): Likewise.
607 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
608 set_bb_for_stmt, move_block_to_fn): Likewise.
609 * tree-complex.c (tree_lower_complex): Likewise.
610 * vec.h (VEC_safe_grow_cleared): New.
612 * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
614 2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
616 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
617 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
619 * cfgloopmanip.c (scale_loop_frequencies): Export.
620 (loopify): Scale the frequencies by prescribed coefficients.
621 (set_zero_probability): New function.
622 (duplicate_loop_to_header_edge): Improve updating of frequencies.
623 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
624 and frequencies according to arguments.
625 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
627 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
628 * modulo-sched.c (sms_schedule): Set probabilities for entering
629 versioned loop correctly.
630 * tree-vect-transform.c (vect_transform_loop): Ditto.
631 * cfgloop.h (loopify, loop_version): Declaration changed.
632 (scale_loop_frequencies): Declared.
634 2007-01-02 Jan Hubicka <jh@suse.cz>
636 * cgraph.c: Include tree-flow.h
637 (cgraph_add_new-function): Handle IPA_SSA mode; execute
639 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
640 * tree-pass.h (pass_all_early_optimizations): Declare.
641 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
643 (cgraph_analyze_function): Do early_local_passes.
644 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
645 Do not add referenced vars.
646 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
648 (gate_all_early_local_passes): New gate.
649 (pass_early_local_passes): Use new gate.
650 (execute_early_local_optimizations): New functions.
651 (gate_all_early_optimizations): New gate.
652 (pass_all_early_optimizations): New pass.
653 (execute_free_datastructures): Free SSA only when initialized.
654 (gate_init_datastructures): Init only when optimizing.
655 (tree_lowering_passes): Do early local passes when called late.
656 * tree-profile.c (do_tree_profiling): Don't profile functions added
658 (do_early_tree_profiling, pass_early_tree_profile): Kill.
659 * tree-cfg.c (update_modified_stmts): Do not update when operands are
661 * passes.c (init_optimizations_passes): Reorder so we go into SSA
662 during early_local_passes.
663 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
666 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
668 * Makefile.in: Update copyright year.
670 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
672 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
673 in $(lang_checks) and check-consistency targets.
675 2007-01-02 Jan Hubicka <jh@suse.cz>
677 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
678 Do not add referenced vars.
679 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
681 * passes.c (init_optimization_passes): Put mudflap_2 after
684 2007-01-02 Jan Hubicka <jh@suse.cz>
686 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
687 Set NOTHROW flag on call statements proved to be nothrow.
688 Update statement of local calls so new pure/const functions are
689 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
691 (tree_rest_of_compilation): Register hooks and initialize bitmap
692 early. Do not set after_inlining flag.
694 2007-01-02 Steve Ellcey <sje@cup.hp.com>
696 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
697 HOST_BITS_PER_LONGLONG
699 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
702 * c-typeck.c (store_init_value): Don't emit pedantic overflow
703 warning for non-static initializers.
705 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
707 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
708 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
709 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
710 Always use set_unique_reg_note to add REG_EQUAL notes.
712 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
715 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
717 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
718 * cfgbuild.c (find_basic_blocks): Likewise.
719 * cfgrtl.c (rtl_create_basic_block): Likewise.
720 * function.c (temp_slots_at_level): Likewise.
721 * reg-stack.c (stack_regs_mentioned): Likewise.
722 * regclass.c (allocate_reg_info): Likewise.
723 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
724 set_bb_for_stmt, move_block_to_fn): Likewise.
725 * tree-complex.c (tree_lower_complex): Likewise.
726 * vec.h (VEC_safe_grow_cleared): New.
728 2007-01-02 Ian Lance Taylor <iant@google.com>
730 * c-common.c (c_common_truthvalue_conversion): When warning about
731 using an assignment as a truth value, set TREE_NO_WARNING.
733 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
736 * c.opt (Wold-style-declaration): New.
737 * doc/invoke.texi (C-only Warning Options): New.
738 (Wold-style-declaration): Document it.
739 (Wextra): Enabled by -Wextra.
740 * c-opts.c (c_common_post_options): Enabled by -Wextra.
741 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
742 -Wold-style-declaration.
744 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
746 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
747 * cfgbuild.c (find_basic_blocks): Likewise.
748 * cfgrtl.c (rtl_create_basic_block): Likewise.
749 * function.c (temp_slots_at_level): Likewise.
750 * reg-stack.c (stack_regs_mentioned): Likewise.
751 * regclass.c (allocate_reg_info): Likewise.
752 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
753 set_bb_for_stmt, move_block_to_fn): Likewise.
754 * tree-complex.c (tree_lower_complex): Likewise.
755 * vec.h (VEC_safe_grow_cleared): New.
757 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
759 * c-common.c(c_common_nodes_and_builtins): Since variants of
760 void_type_node get built before it is given a name, we need to
761 give those variants the name, too.
762 (complete_array_type): We need to work with the canonical main
763 type of the array, from which we will build the qualified version.
764 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
765 * print-tree.c (print_node): Display canonical type information
767 * stor-layout.c (layout_type): When we don't know the
768 alignment of a type for which we're building an array, we end up
769 guessing wrong, so make the type require structural equality.
770 * tree.c (make_node_stat): When we build a new type, it is its
772 (build_type_attribute_qual_variant): When building an attribute
773 variant, its canonical type is the non-attribute variant. However,
774 if the attributes are target-dependent and they differ, we need to
775 use structural equality checks for this type.
776 (build_qualified_type): A qualified type is not equivalent to its
777 unqualified variant; set the canonical type appropriately.
778 (build_distinct_type_copy): When building a distinct type from
779 another type, the new type is its own canonical type.
780 (build_variant_type_copy): When building a new type variant, we
781 assume that it is equivalent to the original type.
782 (build_pointer_type_for_mode): When building a pointer type, also
783 build a canonical type pointer.
784 (build_reference_type_for_mode): When building a reference type,
785 also build a canonical type reference.
786 (build_index_type): When we can't hash an index type (e.g.,
787 because its maximum value is negative), the index type requires
788 structural equality tests.
789 (build_array_type): Build the canonical form of an array type.
790 (build_function_type): Function types require structural equality,
791 because they contain default arguments, attributes, etc.
792 (build_method_type_directly): Ditto for method types.
793 (build_offset_type): Build the canonical offset type.
794 (build_complex_type): Build the canonical vector type.
795 (make_vector_type): Build the canonical vector type.
796 * tree.h (TYPE_CANONICAL): New.
797 (TYPE_STRUCTURAL_EQUALITY_P): New.
798 (SET_TYPE_STRUCTURAL_EQUALITY): New.
799 (struct tree_type): Added "canonical" field.
800 * params.h (VERIFY_CANONICAL_TYPES): New.
801 * doc/c-tree.texi (TYPE_CANONICAL): Document.
802 (TYPE_STRUCTURAL_EQUALITY_P): Document.
803 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
804 * doc/invoke.texi (verify-canonical-types): Document --param
805 parameter for verifying canonical types.
807 2007-01-02 Joseph Myers <joseph@codesourcery.com>
809 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
810 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
811 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
812 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
814 * config/rs6000/e500.h: New.
815 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
816 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
818 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
819 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
820 TARGET_E500_DOUBLE): Remove.
821 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
822 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
823 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
824 * config/rs6000/rs6000.c (rs6000_override_options): Use
827 2007-01-02 Joseph Myers <joseph@codesourcery.com>
829 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
830 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
831 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
832 rs6000_emit_cmove): Don't check TARGET_E500.
833 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
834 sordered): Don't check TARGET_E500.
836 2007-01-01 Eric Christopher <echristo@apple.com>
838 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
841 2007-01-01 Roger Sayle <roger@eyesopen.com>
843 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
844 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
845 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
848 2007-01-01 Mike Stump <mrs@apple.com>
850 * configure.ac: Remove support for building with Apple's gcc-3.1.
852 2007-01-02 Joseph Myers <joseph@codesourcery.com>
855 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
856 REG is a hard register. Do not modify REG before calling
858 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
859 multiple of the size of YMODE for certain lowpart cases.
861 2007-01-01 Andrew Pinski <pinskia@gmail.com>
864 * gimplify (voidify_wrapper_expr): Update for
867 2007-01-01 Andreas Schwab <schwab@suse.de>
870 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
871 save of BR0 in extra_spill_size instead of spill_size.
872 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
874 (ia64_expand_epilogue): Restore BR0 from its new location.
876 2007-01-01 Andrew Pinski <pinskia@gmail.com>
878 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
879 Use a temporary variable if the left hand side is not a gimple
882 2007-01-01 Andrew Pinski <pinskia@gmail.com>
884 * gimplify.c (gimplify_return_expr): Make the temporary variable
885 for the return expression, a gimple register variable.
887 2007-01-01 Jan Hubicka <jh@suse.cz>
889 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
892 2007-01-01 Mike Stump <mrs@apple.com>
894 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
896 * config/darwin.c (machopic_select_rtx_section): Use
898 (darwin_mergeable_constant_section): Likewise.
899 * configure: Regenerate.
900 * config.in: Regenerate.
902 2007-01-01 Jan Hubicka <jh@suse.cz>
903 Andrew Pinski <pinskia@gmail.com>
905 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
906 before starting IPA passes.