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