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