OSDN Git Service

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