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