OSDN Git Service

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