OSDN Git Service

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