OSDN Git Service

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