OSDN Git Service

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