OSDN Git Service

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