1 2007-01-04 Zdenek Dvorak <dvorakz@suse.cz>
3 * cfgloop.h (enum li_flags): Make the constants powers of two.
5 2007-01-04 Jan Hubicka <jh@suse.cz>
7 * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
9 (fold_marked_statements): New function.
10 (optimize_inline_calls, tree_function_versioning): Fold new statements.
11 * tree-inline.h (copy_body_data): Add statements_to_fold.
13 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
15 * config.gcc: Mention libgcc/config.host.
16 * Makefile.in: Update comments mentioning libgcc.
17 (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
18 (all.cross, start.encap, rest.encap, rest.cross): Update
19 dependencies for libgcc move.
20 (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
21 (clean-target, clean-target-libgcc): Delete.
22 (srcdirify, GCC_EXTRA_PARTS): New macros.
23 (libgcc-support, libgcc.mvars): New rules.
24 (distclean): Remove mention of mklibgcc.
25 (install): Don't reference INSTALL_LIBGCC.
26 (install-common): Don't reference EXTRA_PARTS.
27 (install-libgcc, install-multilib): Delete rules.
28 * mklibgcc.in: Delete file.
29 * doc/configfiles.texi: Don't mention mklibgcc.
31 * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
32 * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
33 * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
34 * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
35 (mklibgcc, ldblspecs): Likewise.
37 * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
38 (posixpre.def): Use $(T).
39 (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
40 (SHLIB_SRC, SHLIB_INSTALL): Delete.
41 (SHLIB_LINK): Make dummy.
42 * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
44 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
46 * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
47 * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
48 config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
49 config/rs6000/t-newas, config/sparc/t-elf: Likewise.
51 * configure.ac (all_outputs): Remove mklibgcc.
52 * configure: Regenerated.
54 2007-01-03 Josh Conner <jconner@apple.com>
57 * calls.c (compute_argument_addresses): Set stack and stack_slot
58 for partial args, too.
59 (store_one_arg): Use locate.size.constant for the size when
60 generating a save_area.
62 2007-01-03 Robert Kennedy <jimbob@google.com>
64 * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
65 whose definitions are deleted due to basic block merging.
67 2007-01-03 Paul Brook <paul@codesourcery.com>
70 * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
72 (use_return_insn): Return 0 for Thumb interrupt functions.
73 (print_multi_reg): Add rfe argument for IRQ returns.
74 (arm_output_epilogue): Pop interrupt return address directly into PC.
75 (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
77 2007-01-03 Paul Brook <paul@codesourcery.com>
79 Merge from sourcerygxx-4_1.
80 * config/arm/thumb2.md: New file.
81 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
83 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
84 * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
85 (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
86 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
88 (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
89 * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
91 * config/arm/ieee754-sf.S: Ditto.
92 * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
93 (thumb1_base_register_rtx_p): ... to this.
94 (thumb_index_register_rtx_p): Rename...
95 (thumb1_index_register_rtx_p): ... to this.
96 (thumb_output_function_prologue): Rename...
97 (thumb1_output_function_prologue): ... to this.
98 (thumb_legitimate_address_p): Rename...
99 (thumb1_legitimate_address_p): ... to this.
100 (thumb_rtx_costs): Rename...
101 (thumb1_rtx_costs): ... to this.
102 (thumb_compute_save_reg_mask): Rename...
103 (thumb1_compute_save_reg_mask): ... to this.
104 (thumb_final_prescan_insn): Rename...
105 (thumb1_final_prescan_insn): ... to this.
106 (thumb_expand_epilogue): Rename...
107 (thumb1_expand_epilogue): ... to this.
108 (arm_unwind_emit_stm): Rename...
109 (arm_unwind_emit_sequence): ... to this.
110 (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
111 thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
112 thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
113 arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
114 thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
115 thumb2_output_casesi): New functions.
116 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
117 (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
118 FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
119 THUMB2_WORK_REGS): Define.
120 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
121 arm_condexec_mask, arm_condexec_masklen)): New variables.
122 (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
123 (arm_override_options): Check new CPU capabilities.
124 Set new architecture flag variables.
125 (arm_isr_value): Handle v7m interrupt functions.
126 (user_return_insn): Return 0 for v7m interrupt functions. Handle
128 (const_ok_for_arm): Handle Thumb-2 constants.
129 (arm_gen_constant): Ditto. Use movw when available.
130 (arm_function_ok_for_sibcall): Return false for v7m interrupt
132 (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
133 (thumb_find_work_register, arm_load_pic_register,
134 legitimize_tls_address, arm_address_cost, load_multiple_sequence,
135 emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
136 print_multi_reg, output_mov_long_double_fpa_from_arm,
137 output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
138 output_mov_double_fpa_from_arm, output_move_double,
139 arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
140 output_return_instruction, arm_output_function_prologue,
141 arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
142 arm_output_mi_thunk, thumb_set_return_address): Ditto.
143 (arm_expand_prologue): Handle Thumb-2. Use arm_save_coproc_regs.
144 (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
145 (arithmetic_instr, shift_op): Use arm_shift_nmem.
146 (arm_print_operand): Use arm_print_condition. Handle '(', ')', '.',
148 (arm_final_prescan_insn): Use extract_constrain_insn_cached.
149 (thumb_expand_prologue): Use thumb_set_frame_pointer.
150 (arm_file_start): Output directive for unified syntax.
151 (arm_unwind_emit_set): Handle stack alignment instruction.
152 * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
153 Add v6t2, v7, v7a, v7r and v7m.
154 (RETLDM): Add Thumb-2 code.
155 (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
156 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
157 (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
158 TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
159 THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
160 ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
161 THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
162 CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
163 ADJUST_INSN_LENGTH): Define.
164 (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
165 STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
166 BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
167 PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
168 SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
169 TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
170 HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
171 HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
172 REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
173 REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
174 LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
175 GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
176 ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
177 FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
178 PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
179 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
180 * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
182 * config/arm/arm-tune.md: Regenerate.
183 * config/arm/arm-protos.h: Update prototypes.
184 * config/arm/vfp.md: Enable patterns for Thumb-2.
185 (arm_movsi_vfp): Add movw alternative. Use output_move_vfp.
186 (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
187 (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
188 thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
189 * config/arm/libunwind.S: Add Thumb-2 code.
190 * config/arm/constraints.md: Update include Thumb-2.
191 * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
192 * config/arm/ieee754-df.S: Ditto.
193 * config/arm/bpabi.S: Ditto.
194 * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
195 * config/arm/predicates.md (low_register_operand,
196 low_reg_or_int_operand, thumb_16bit_operator): New.
197 (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
198 (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
199 * config/arm/t-arm-elf: Add armv7 multilib.
200 * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
202 (UNSPEC_STACK_ALIGN, ce_count): New.
203 (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
204 arm_zero_extendsidi2, arm_zero_extendqidi2): New
206 * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
207 (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
208 thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
209 * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
210 (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
211 thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
213 * doc/extend.texi: Document ARMv7-M interrupt functions.
214 * doc/invoke.texi: Document Thumb-2 new cores+architectures.
216 2007-01-03 Jakub Jelinek <jakub@redhat.com>
218 * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
219 (struct _Unwind_Context): Rename args_size to flags, remove
220 signal_frame field, add a new args_size field and version field.
221 (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
222 _Unwind_IsExtendedContext): New inline functions.
223 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
224 Assume by_value array is only present if _Unwind_IsExtendedContext.
225 (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
226 _Unwind_IsSignalFrame.
227 (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
228 (uw_update_context_1): Use _Unwind_SetSignalFrame.
229 (uw_init_context_1): Initialize context->flags to
230 EXTENDED_CONTEXT_BIT.
231 * config/rs6000/linux-unwind.h (frob_update_context): Use
232 _Unwind_SetSignalFrame.
234 2007-01-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
237 * gimplify.c (gimplify_modify_expr_complex_part): Move below
238 tree_to_gimple_tuple. Call tree_to_gimple_tuple when we need
241 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
243 * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
244 REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
246 * config/i386/i386.md (*sse_prologue_save_insn): Use return
249 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
250 * cfgbuild.c (find_basic_blocks): Likewise.
251 * cfgrtl.c (rtl_create_basic_block): Likewise.
252 * function.c (temp_slots_at_level): Likewise.
253 * reg-stack.c (stack_regs_mentioned): Likewise.
254 * regclass.c (allocate_reg_info): Likewise.
255 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
256 set_bb_for_stmt, move_block_to_fn): Likewise.
257 * tree-complex.c (tree_lower_complex): Likewise.
258 * vec.h (VEC_safe_grow_cleared): New.
260 * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
262 2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
264 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
265 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
267 * cfgloopmanip.c (scale_loop_frequencies): Export.
268 (loopify): Scale the frequencies by prescribed coefficients.
269 (set_zero_probability): New function.
270 (duplicate_loop_to_header_edge): Improve updating of frequencies.
271 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
272 and frequencies according to arguments.
273 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
275 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
276 * modulo-sched.c (sms_schedule): Set probabilities for entering
277 versioned loop correctly.
278 * tree-vect-transform.c (vect_transform_loop): Ditto.
279 * cfgloop.h (loopify, loop_version): Declaration changed.
280 (scale_loop_frequencies): Declared.
282 2007-01-02 Jan Hubicka <jh@suse.cz>
284 * cgraph.c: Include tree-flow.h
285 (cgraph_add_new-function): Handle IPA_SSA mode; execute
287 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
288 * tree-pass.h (pass_all_early_optimizations): Declare.
289 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
291 (cgraph_analyze_function): Do early_local_passes.
292 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
293 Do not add referenced vars.
294 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
296 (gate_all_early_local_passes): New gate.
297 (pass_early_local_passes): Use new gate.
298 (execute_early_local_optimizations): New functions.
299 (gate_all_early_optimizations): New gate.
300 (pass_all_early_optimizations): New pass.
301 (execute_free_datastructures): Free SSA only when initialized.
302 (gate_init_datastructures): Init only when optimizing.
303 (tree_lowering_passes): Do early local passes when called late.
304 * tree-profile.c (do_tree_profiling): Don't profile functions added
306 (do_early_tree_profiling, pass_early_tree_profile): Kill.
307 * tree-cfg.c (update_modified_stmts): Do not update when operands are
309 * passes.c (init_optimizations_passes): Reorder so we go into SSA
310 during early_local_passes.
311 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
314 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
316 * Makefile.in: Update copyright year.
318 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
320 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
321 in $(lang_checks) and check-consistency targets.
323 2007-01-02 Jan Hubicka <jh@suse.cz>
325 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
326 Do not add referenced vars.
327 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
329 * passes.c (init_optimization_passes): Put mudflap_2 after
332 2007-01-02 Jan Hubicka <jh@suse.cz>
334 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
335 Set NOTHROW flag on call statements proved to be nothrow.
336 Update statement of local calls so new pure/const functions are
337 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
339 (tree_rest_of_compilation): Register hooks and initialize bitmap
340 early. Do not set after_inlining flag.
342 2007-01-02 Steve Ellcey <sje@cup.hp.com>
344 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
345 HOST_BITS_PER_LONGLONG
347 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
350 * c-typeck.c (store_init_value): Don't emit pedantic overflow
351 warning for non-static initializers.
353 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
355 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
356 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
357 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
358 Always use set_unique_reg_note to add REG_EQUAL notes.
360 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
363 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
365 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
366 * cfgbuild.c (find_basic_blocks): Likewise.
367 * cfgrtl.c (rtl_create_basic_block): Likewise.
368 * function.c (temp_slots_at_level): Likewise.
369 * reg-stack.c (stack_regs_mentioned): Likewise.
370 * regclass.c (allocate_reg_info): Likewise.
371 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
372 set_bb_for_stmt, move_block_to_fn): Likewise.
373 * tree-complex.c (tree_lower_complex): Likewise.
374 * vec.h (VEC_safe_grow_cleared): New.
376 2007-01-02 Ian Lance Taylor <iant@google.com>
378 * c-common.c (c_common_truthvalue_conversion): When warning about
379 using an assignment as a truth value, set TREE_NO_WARNING.
381 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
384 * c.opt (Wold-style-declaration): New.
385 * doc/invoke.texi (C-only Warning Options): New.
386 (Wold-style-declaration): Document it.
387 (Wextra): Enabled by -Wextra.
388 * c-opts.c (c_common_post_options): Enabled by -Wextra.
389 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
390 -Wold-style-declaration.
392 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
394 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
395 * cfgbuild.c (find_basic_blocks): Likewise.
396 * cfgrtl.c (rtl_create_basic_block): Likewise.
397 * function.c (temp_slots_at_level): Likewise.
398 * reg-stack.c (stack_regs_mentioned): Likewise.
399 * regclass.c (allocate_reg_info): Likewise.
400 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
401 set_bb_for_stmt, move_block_to_fn): Likewise.
402 * tree-complex.c (tree_lower_complex): Likewise.
403 * vec.h (VEC_safe_grow_cleared): New.
405 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
407 * c-common.c(c_common_nodes_and_builtins): Since variants of
408 void_type_node get built before it is given a name, we need to
409 give those variants the name, too.
410 (complete_array_type): We need to work with the canonical main
411 type of the array, from which we will build the qualified version.
412 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
413 * print-tree.c (print_node): Display canonical type information
415 * stor-layout.c (layout_type): When we don't know the
416 alignment of a type for which we're building an array, we end up
417 guessing wrong, so make the type require structural equality.
418 * tree.c (make_node_stat): When we build a new type, it is its
420 (build_type_attribute_qual_variant): When building an attribute
421 variant, its canonical type is the non-attribute variant. However,
422 if the attributes are target-dependent and they differ, we need to
423 use structural equality checks for this type.
424 (build_qualified_type): A qualified type is not equivalent to its
425 unqualified variant; set the canonical type appropriately.
426 (build_distinct_type_copy): When building a distinct type from
427 another type, the new type is its own canonical type.
428 (build_variant_type_copy): When building a new type variant, we
429 assume that it is equivalent to the original type.
430 (build_pointer_type_for_mode): When building a pointer type, also
431 build a canonical type pointer.
432 (build_reference_type_for_mode): When building a reference type,
433 also build a canonical type reference.
434 (build_index_type): When we can't hash an index type (e.g.,
435 because its maximum value is negative), the index type requires
436 structural equality tests.
437 (build_array_type): Build the canonical form of an array type.
438 (build_function_type): Function types require structural equality,
439 because they contain default arguments, attributes, etc.
440 (build_method_type_directly): Ditto for method types.
441 (build_offset_type): Build the canonical offset type.
442 (build_complex_type): Build the canonical vector type.
443 (make_vector_type): Build the canonical vector type.
444 * tree.h (TYPE_CANONICAL): New.
445 (TYPE_STRUCTURAL_EQUALITY_P): New.
446 (SET_TYPE_STRUCTURAL_EQUALITY): New.
447 (struct tree_type): Added "canonical" field.
448 * params.h (VERIFY_CANONICAL_TYPES): New.
449 * doc/c-tree.texi (TYPE_CANONICAL): Document.
450 (TYPE_STRUCTURAL_EQUALITY_P): Document.
451 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
452 * doc/invoke.texi (verify-canonical-types): Document --param
453 parameter for verifying canonical types.
455 2007-01-02 Joseph Myers <joseph@codesourcery.com>
457 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
458 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
459 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
460 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
462 * config/rs6000/e500.h: New.
463 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
464 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
466 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
467 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
468 TARGET_E500_DOUBLE): Remove.
469 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
470 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
471 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
472 * config/rs6000/rs6000.c (rs6000_override_options): Use
475 2007-01-02 Joseph Myers <joseph@codesourcery.com>
477 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
478 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
479 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
480 rs6000_emit_cmove): Don't check TARGET_E500.
481 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
482 sordered): Don't check TARGET_E500.
484 2007-01-01 Eric Christopher <echristo@apple.com>
486 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
489 2007-01-01 Roger Sayle <roger@eyesopen.com>
491 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
492 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
493 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
496 2007-01-01 Mike Stump <mrs@apple.com>
498 * configure.ac: Remove support for building with Apple's gcc-3.1.
500 2007-01-02 Joseph Myers <joseph@codesourcery.com>
503 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
504 REG is a hard register. Do not modify REG before calling
506 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
507 multiple of the size of YMODE for certain lowpart cases.
509 2007-01-01 Andrew Pinski <pinskia@gmail.com>
512 * gimplify (voidify_wrapper_expr): Update for
515 2007-01-01 Andreas Schwab <schwab@suse.de>
518 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
519 save of BR0 in extra_spill_size instead of spill_size.
520 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
522 (ia64_expand_epilogue): Restore BR0 from its new location.
524 2007-01-01 Andrew Pinski <pinskia@gmail.com>
526 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
527 Use a temporary variable if the left hand side is not a gimple
530 2007-01-01 Andrew Pinski <pinskia@gmail.com>
532 * gimplify.c (gimplify_return_expr): Make the temporary variable
533 for the return expression, a gimple register variable.
535 2007-01-01 Jan Hubicka <jh@suse.cz>
537 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
540 2007-01-01 Mike Stump <mrs@apple.com>
542 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
544 * config/darwin.c (machopic_select_rtx_section): Use
546 (darwin_mergeable_constant_section): Likewise.
547 * configure: Regenerate.
548 * config.in: Regenerate.
550 2007-01-01 Jan Hubicka <jh@suse.cz>
551 Andrew Pinski <pinskia@gmail.com>
553 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
554 before starting IPA passes.