1 2008-08-07 Jan Hubicka <jh@suse.cz>
3 * i386.h (ix86_size_cost): Declare.
4 (ix86_cur_cost): New function macro.
5 * i386.md (peepholes expanding size and splitters): Predicate by
6 optimize_insn_for_speed_p.
7 (peepholes reduce size and splitters): Predicate by
8 optimize_insn_for_size_p.
9 * i386.c (ix86_size_cost): Rename from ...
10 (size_cost): This one.
11 (override_options): Update.
12 (decide_alg): Likewise.
13 (ix86_expand_clear): Use RTL profile.
14 (ix86_pad_returns): Use RTL profile.
16 2008-08-07 Jan Hubicka <jh@suse.cz>
18 * recog.c (split_all_insns): Set RTL profile
19 (peephole2_optimize): Likewise.
20 * function.c (thread_prologue_and_epilogue_insns): Likewise.
21 * combine.c (combine_instructions): Likewise.
23 2008-08-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
25 * c-common.c (c_common_reswords): Also warn about keyword "bool".
27 2008-08-07 Bob Wilson <bob.wilson@acm.org>
29 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming value
30 in a6 after the set_frame_ptr insn.
32 2008-08-07 Richard Henderson <rth@redhat.com>
35 * gcc.c (cpp_options): Pass along -g*.
37 2008-08-07 Joseph Myers <joseph@codesourcery.com>
39 * config/arm/arm.c (output_move_neon): Update comment describing
40 big-endian vector layout.
41 (arm_assemble_integer): Do not handle big-endian NEON vectors
43 * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
44 neon_vget_lane<mode>_sext_internal,
45 neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
46 element indices for big-endian.
48 2008-08-07 Richard Henderson <rth@redhat.com>
50 * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
51 * configure, config.in: Rebuild.
52 * debug.h (dwarf2out_do_cfi_asm): Declare.
53 * c-cppbuiltin.c (c_cpp_builtins): Use it.
54 * dwarf2out.c (dwarf2out_do_cfi_asm): New.
55 (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
56 dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
58 2008-08-07 Joseph Myers <joseph@codesourcery.com>
60 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
61 movv2si_internal): Combine into mov<mode>_internal.
62 (movv2si_internal_2): Remove.
64 2008-08-07 Jan Hubicka <jh@suse.cz>
67 * i386.md (single stringop patterns): Enable unconditionally.
69 2008-08-07 H.J. Lu <hongjiu.lu@intel.com>
72 * config/i386/emmintrin.h (_mm_move_epi64): Use
73 __builtin_ia32_movq128.
75 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
76 (bdesc_args): Add IX86_BUILTIN_MOVQ128.
78 * config/i386/sse.md (sse2_movq128): New.
80 * doc/extend.texi: Document __builtin_ia32_movq128.
82 2008-08-07 Richard Guenther <rguenther@suse.de>
85 * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
86 pointers can access anything.
88 2008-08-06 Jan Hubicka <jh@suse.cz>
90 * optabs.c (emit_unop_insn): Break out to ...
91 (maybe_emit_unop_insn): ... this one.
92 (expand_sfix_optab): Use maybe variant.
93 * optabs.h (maybe_emit_unop_insn): Declare.
95 * i386.md (mov0 patterns): Enable by default.
96 (FP conversion expanders): Disable expansion of code expanding
97 sequences when instruction should be optimized for size.
98 (single strinop patterns): Enable when optimizing for size.
99 (string expanders): Disable expanding of code expanding sequences
100 when optimizning instruction for size.
101 * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
103 (ix86_fp_comparison_sahf_cost): Likewise.
104 (ix86_expand_branch): Likewise.
105 (ix86_expand_ashl_const): Likewise.
106 (ix86_split_ashl): Likewise.
107 (ix86_expand_strlen): Likewise.
108 (ix86_emit_fp_unordered_jump): Likewie.
110 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
112 * c-common.c: Fix typo.
113 (c_common_reswords): Activate more C++ keyword warnings.
115 * matrix-reorg.c (compute_offset): Avoid C++ keywords.
117 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
120 * diagnostic.c (permerror_at): New.
121 * toplev.h (permerror_at): Declare.
123 2008-08-06 Victor Kaplansky <victork@il.ibm.com>
124 Ira Rosen <irar@il.ibm.com>
126 * tree-vect-transform.c (vect_model_simple_cost): Return
127 immediately if stmt is pure SLP.
128 (vect_model_store_cost): Ditto.
129 (vect_model_load_cost): Ditto.
130 (vectorizable_store): Remove PURE_SLP check before call
131 to vect_model_store_cost.
132 (vect_model_store_cost): When checking whether stmt describe
133 strided access, add a check that it is not slp_node.
135 2008-08-06 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
138 * c-common.c (warn_for_sign_compare): New. Handle separately the
139 case that 'constant' is zero.
140 * c-typeck.c (build_binary_op): Move code to c-common.c
142 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
144 * config/alpha/alpha.c (alpha_preferred_reload_class,
145 alpha_secondary_reload, alpha_emit_set_const_1, function_value,
146 alpha_output_mi_thunk_osf): Avoid C++ keywords.
147 * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
148 * config/arm/arm.md: Likewise.
149 * config/avr/avr-protos.h (preferred_reload_class,
150 test_hard_reg_class, avr_simplify_comparison_p,
151 out_shift_with_cnt, class_max_nregs): Likewise.
152 * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
153 output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
154 preferred_reload_class, test_hard_reg_class): Likewise.
155 * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
156 bfin_memory_move_cost, bfin_secondary_reload,
157 bfin_output_mi_thunk): Likewise.
158 * config/crx/crx.c (crx_secondary_reload_class,
159 crx_memory_move_cost): Likewise.
160 * config/frv/frv-protos.h (frv_secondary_reload_class,
161 frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
162 * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
163 frv_secondary_reload_class, frv_class_likely_spilled_p,
164 frv_class_max_nregs): Likewise.
165 * config/h8300/h8300.c (h8300_classify_operand,
166 h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
168 * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
169 * config/ia64/ia64.c (ia64_preferred_reload_class,
170 ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
171 * config/iq2000/iq2000.c (gen_int_relational): Likewise.
172 * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
174 * config/m68hc11/m68hc11.c (preferred_reload_class,
175 m68hc11_memory_move_cost): Likewise.
176 * config/mcore/mcore.c (mcore_secondary_reload_class,
177 mcore_reload_class): Likewise.
178 * config/mips/mips.c (mips_hard_regno_mode_ok_p,
179 mips_class_max_nregs, mips_cannot_change_mode_class,
180 mips_preferred_reload_class, mips_secondary_reload_class,
181 mips_output_mi_thunk): Likewise.
182 * config/mmix/mmix.c (mmix_preferred_reload_class,
183 mmix_preferred_output_reload_class, mmix_secondary_reload_class):
185 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
187 * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
188 pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
189 * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
190 * config/rs6000/rs6000.c (paired_expand_vector_init,
191 rs6000_secondary_reload_class, rs6000_output_mi_thunk,
192 compare_section_name, rs6000_memory_move_cost): Likewise.
193 * config/s390/s390.c (s390_emit_compare_and_swap,
194 s390_preferred_reload_class, s390_secondary_reload,
195 legitimize_pic_address, legitimize_tls_address,
196 legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
197 s390_class_max_nregs): Likewise.
198 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
199 * config/s390/s390.md: Likewise.
200 * config/score/score-protos.h (score_secondary_reload_class,
201 score_preferred_reload_class): Likewise.
202 * config/score/score.c (score_preferred_reload_class,
203 score_secondary_reload_class): Likewise.
204 * config/score/score3.c (score3_output_mi_thunk,
205 score3_preferred_reload_class, score3_secondary_reload_class,
206 score3_hard_regno_mode_ok): Likewise.
207 * config/score/score3.h (score3_preferred_reload_class,
208 score3_secondary_reload_class): Likewise.
209 * config/score/score7.c (score7_output_mi_thunk,
210 score7_preferred_reload_class, score7_secondary_reload_class,
211 score7_hard_regno_mode_ok): Likewise.
212 * config/score/score7.h (score7_preferred_reload_class,
213 score7_secondary_reload_class): Likewise.
214 * config/sh/sh.c (prepare_move_operands, output_far_jump,
215 output_branchy_insn, add_constant, gen_block_redirect,
216 sh_insn_length_adjustment, sh_cannot_change_mode_class,
217 sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
219 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
220 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
221 xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
222 xstormy16_preferred_reload_class): Likewise.
223 * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
224 xtensa_expand_atomic, override_options,
225 xtensa_preferred_reload_class, xtensa_secondary_reload_class):
227 * reorg.c (try_merge_delay_insns): Likewise.
228 * tree.c (merge_dllimport_decl_attributes): Likewise.
230 * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
232 2008-08-06 Michael Matz <matz@suse.de>
234 * Makefile.in (write_entries_to_file): Quote words.
235 * gengtype.c: (read_input_line): Skip over leading white-space.
237 2008-08-06 Marc Gauthier <marc@tensilica.com>
239 * config.gcc: Match more processor names for Xtensa.
240 * configure.ac: Likewise.
241 * doc/install.texi (Specific): Likewise.
242 * configure: Regenerate.
244 2008-08-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
246 * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
247 * calls.c (avoid_likely_spilled_reg): Likewise.
248 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
249 * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
250 * config/i386/i386.c (ix86_expand_special_args_builtin,
251 ix86_secondary_reload): Likewise.
252 * except.c (struct eh_region, gen_eh_region_catch,
253 remove_unreachable_regions, duplicate_eh_regions,
254 assign_filter_values, build_post_landing_pads,
255 sjlj_find_directly_reachable_regions, remove_eh_handler,
256 reachable_next_level, foreach_reachable_handler,
257 can_throw_internal_1, can_throw_external_1,
258 collect_one_action_chain): Likewise.
259 * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
260 * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
261 * function.c (update_temp_slot_address, instantiate_new_reg,
262 instantiate_virtual_regs_in_rtx,
263 instantiate_virtual_regs_in_insn): Likewise.
264 * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
265 * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
266 gimplify_cleanup_point_expr): Likewise.
267 * ipa-cp.c (ipcp_lattice_changed): Likewise.
268 * passes.c (next_pass_1): Likewise.
269 * print-tree.c (print_node_brief, print_node): Likewise.
270 * profile.c (branch_prob): Likewise.
271 * tree-dump.c (dump_register): Likewise.
272 * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
274 * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
275 copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
276 copy_edges_for_bb, copy_cfg_body, copy_tree_r,
277 copy_arguments_for_versioning, copy_static_chain): Likewise.
278 * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
279 add_new_name_mapping, register_new_name_mapping): Likewise.
280 * tree-mudflap.c (mf_xform_derefs): Likewise.
281 * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
282 get_init_expr, combine_chains): Likewise.
283 * tree-pretty-print.c (dump_generic_node): Likewise.
284 * tree-ssa-structalias.c (create_variable_info_for): Likewise.
285 * tree-vrp.c (simplify_cond_using_ranges): Likewise.
286 * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
287 * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
289 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
292 * calls.c (expand_call): Use the biggest preferred stack
295 2008-08-06 Michael Matz <matz@suse.de>
298 * reload.c (push_reload): Merge in,out,in_reg,out_reg members
299 for reused reload, instead of overwriting them.
301 2008-08-06 H.J. Lu <hongjiu.lu@intel.com>
304 * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
305 for incoming stack boundary.
307 * function.c (assign_parm_find_entry_rtl): Update
310 * function.h (rtl_data): Add parm_stack_boundary.
312 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
313 parm_stack_boundary for incoming stack boundary.
315 2008-08-06 Joseph Myers <joseph@codesourcery.com>
317 * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
318 for unrepresentable subregs or treat them as equal to other regs
319 or subregs with the same register number.
321 2008-08-06 Aldy Hernandez <aldyh@redhat.com>
324 * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
327 2008-08-06 Jan Hubicka <jh@suse.cz>
329 * predict.c (maybe_hot_frequency_p): When profile is absent, all
330 frequencies might be hot.
332 2008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
334 * reload.c (find_reloads): Force constants into literal pool
335 also if they are wrapped in a SUBREG.
337 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
340 * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
341 * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
342 Don't allow predicated instructions for data speculation.
343 * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
346 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
348 * haifa-sched.c (extend_global): Split to extend_global_data and
349 extend_region_data. Update all uses.
350 (extend_all): Rename to extend_block_data.
352 2008-08-06 Maxim Kuvyrkov <maxim@codesourcery.com>
354 * sched-rgn.c (new_ready): Check if instruction can be
355 speculatively scheduled before attempting speculation.
356 (debug_rgn_dependencies): Remove wrongful assert.
358 2008-08-05 Bob Wilson <bob.wilson@acm.org>
360 * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
362 2008-08-05 Bob Wilson <bob.wilson@acm.org>
364 * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
365 (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
366 va_size, and type_size.
368 2008-08-04 Jason Merrill <jason@redhat.com>
371 * tree-ssa.c (useless_type_conversion_p_1): Call langhook
372 if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
374 2008-08-05 Richard Henderson <rth@redhat.com>
376 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
377 * configure: Rebuild.
379 2008-08-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
382 * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
383 instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
386 2008-08-05 Richard Henderson <rth@redhat.com>
388 * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
389 * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
390 * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
391 * common.opt (fdwarf2-cfi-asm): New.
392 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
393 * config.in, configure: Rebuild.
394 * dwarf2asm.c (dw2_asm_output_data_raw): New.
395 (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
396 (dw2_force_const_mem): Externalize.
397 * dwarf2asm.h: Update.
398 * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
399 generate a real label.
400 (output_cfi_directive): New.
401 (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
402 (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
403 (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
405 (dwarf2out_end_epilogue): Emit .cfi_endproc.
406 (output_loc_operands_raw, output_loc_sequence_raw): New.
407 (output_cfa_loc_raw): New.
409 2008-08-05 Paul Brook <paul@codesourcery.com>
411 * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
412 * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
413 (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
414 (arm_file_start): Add FPUTYPE_VFP3D16. Rename vfp3 to vfpv3.
415 * config/arm/arm.h (TARGET_VFPD32): Define.
416 (TARGET_VFP3): Use TARGET_VFPD32.
417 (fputype): Add FPUTYPE_VFP3D16.
418 (LAST_VFP_REGNUM): Use TARGET_VFPD32.
419 * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
420 * config/arm/arm-cores.def: Add cortex-r4f.
421 * config/arm/arm-tune.md: Regenerate.
423 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
425 * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
426 Reword some comments throughout the file.
428 (MFC_MIN_DMA_LIST_ELEMENTS): New define.
429 (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
430 (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
431 (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
433 (MFC_START_ENABLE): Remove PPU-only define.
434 (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
435 (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
437 (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
438 (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
439 (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
440 (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
441 (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
442 (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
443 (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
445 (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
446 (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
447 (mfc_sdcrt, mfc_sdcrtst): Likewise.
448 (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
450 (spu_read_machine_status): Fix typo.
452 2008-08-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
454 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
455 SUBREG of multi-word hard register.
456 * config/spu/spu.c (valid_subreg): Likewise.
457 (adjust_operand): Handle SUBREGs of multi-word hard registers.
459 2008-08-04 Richard Guenther <rguenther@suse.de>
461 * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
462 the candidate with the stripped base if that base is different
463 from the original base even for offset zero.
465 2008-08-04 Richard Guenther <rguenther@suse.de>
468 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
469 check for no_overflow.
471 2008-08-04 Richard Guenther <rguenther@suse.de>
473 * tree-vect-transform.c (vectorizable_call): Fix tuplification.
475 2008-08-04 Paul Brook <paul@codesourcery.com>
477 * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
478 (arm_order_regs_for_local_alloc): New function.
479 * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
481 * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
483 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
486 * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
487 instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
488 (ix86_expand_epilogue): Likewise.
490 2008-08-04 H.J. Lu <hongjiu.lu@intel.com>
492 * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
495 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
497 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
498 to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
499 (*movv2sf_internal_rex64): Ditto.
501 2008-08-03 Jan Hubicka <jh@suse.cz>
503 * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
504 expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
505 * expmed.c (expand_smod_pow2): Likewise.
507 2008-08-03 Uros Bizjak <ubizjak@gmail.com>
510 * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
511 alternative 0 of operand 1.
512 (*vec_concatv2di_rex64_sse): Ditto.
513 (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
515 (*sse2_storeq_rex64): Penalize allocation of "r" registers.
516 * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
517 of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
518 (*movv2sf_internal_rex64): Ditto.
520 2008-08-02 Richard Guenther <rguenther@suse.de>
523 * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
524 (ssedoublesizemode): New mode attribute.
525 (sse_shufps): Call gen_sse_shufps_v4sf.
526 (sse_shufps_1): Macroize.
527 (sse2_shufpd): Call gen_Sse_shufpd_v2df.
528 (sse2_shufpd_1): Macroize.
529 (vec_extract_odd, vec_extract_even): New expanders.
530 (vec_interleave_highv4sf, vec_interleave_lowv4sf,
531 vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
532 * i386.c (ix86_expand_vector_init_one_nonzero): Call
533 gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
534 (ix86_expand_vector_set): Likewise.
535 (ix86_expand_reduc_v4sf): Likewise.
537 2008-08-01 Doug Kwan <dougkwan@google.com>
539 * matrix-reorg.c: Re-enable all code.
540 (struct malloc_call_data): Change CALL_STMT to gimple type.
541 (collect_data_for_malloc_call): Tuplify.
542 (struct access_site_info): Change STMT to gimple type.
543 (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
544 and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
545 (struct free_info): Change STMT to gimple type.
546 (struct matrix_access_phi_node): Change PHI to gimple type.
547 (get_inner_of_cast_expr): Remove.
548 (may_flatten_matrices_1): Tuplify.
549 (may_flatten_matrices): Ditto.
550 (mark_min_matrix_escape_level): Ditto.
551 (ssa_accessed_in_tree): Refactor statement RHS related code into ...
552 (ssa_accessed_in_call_rhs): New
553 (ssa_accessed_in_assign_rhs): New
554 (record_access_alloc_site_info): Tuplify.
555 (add_allocation_site): Ditto.
556 (analyze_matrix_allocation_site): Ditto.
557 (analyze_transpose): Ditto.
558 (get_index_from_offset): Ditto.
559 (update_type_size): Ditto.
560 (analyze_accesses_for_call_expr): Tuplify and renamed into ...
561 (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
562 (analyze_accesses_for_phi_node): Tuplify.
563 (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
564 (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
565 (analyze_matrix_accesses): Tuplify.
566 (check_var_data): New call-back type for check_var_notmodified_p.
567 (check_var_notmodified_p): Tuplify and use call-back struct to
568 return statement found.
569 (can_calculate_expr_before_stmt): Factor out statement related code
571 (can_calculate_stmt_before_stmt): New.
572 (check_allocation_function): Tuplify.
573 (find_sites_in_func): Ditto.
574 (record_all_accesses_in_func): Ditto.
575 (transform_access_sites): Ditto.
576 (transform_allocation_sites): Ditto.
577 (matrix_reorg): Re-enable.
578 (gate_matrix_reorg): Re-enable.
580 2008-08-01 Jakub Jelinek <jakub@redhat.com>
582 * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
583 for labels for which it hasn't been set yet. If it has been set,
584 stop walking insns and continue with next worklist item.
585 (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
586 if the only BARRIER is at the very end of a function.
588 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
590 * cfgexpand.c (expand_stack_alignment): Assert that
591 stack_realign_drap and drap_rtx must match.
593 * function.c (instantiate_new_reg): If DRAP is used to realign
594 stack, replace virtual_incoming_args_rtx with internal arg
597 2008-08-01 Richard Guenther <rguenther@suse.de>
599 * tree-ssa-pre.c (fini_pre): Take in_fre parameter. Free
600 loop information only if we initialized it.
601 (execute_pre): Call fini_pre with in_fre.
602 * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
603 if we do not unroll because we hit max-completely-peeled-insns.
604 Use our estimation for consistency, do allow shrinking.
606 2008-08-01 H.J. Lu <hongjiu.lu@intel.com>
608 * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
609 with MIN_STACK_BOUNDARY.
610 (ix86_update_stack_boundary): Likewise.
611 (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
614 * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
615 (MIN_STACK_BOUNDARY): This.
617 2008-08-01 Richard Guenther <rguenther@suse.de>
620 * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
622 2008-08-01 Richard Guenther <rguenther@suse.de>
624 PR tree-optimization/36988
625 * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
626 do not matter if that doesn't change volatile qualification.
628 2008-08-01 Paolo Bonzini <bonzini@gnu.org>
630 * configure.ac: Do not generate libada-mk. Do not subst
632 * libada-mk.in: Remove.
633 * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
634 * configure: Regenerate.
636 2008-08-01 Basile Starynkevitch <basile@starynkevitch.net>
638 * tree-pass.h: Added comment about not dumping passes with name
639 starting with star in struct opt_pass.
640 * passes.c (register_dump_files_1): Don't do dump for a pass with
641 name starting with star.
642 * doc/passes.texi (Pass manager): Mention pass names and special
643 meaning of star prefix to avoid dump.
645 2008-07-31 Adam Nemet <anemet@caviumnetworks.com>
647 * config.gcc (mipsisa64r2*-*-linux*): New configuration. Set ISA
649 * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
650 (ISA_MIPS64R2): New macro.
651 (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
652 (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
653 ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
654 ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
655 ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
656 ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
657 ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
658 (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
659 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
660 Move up to keep list alphabetically sorted.
661 (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
662 * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
664 * doc/invoke.texi (MIPS Options): Add -mips64r2.
665 (-march=@var{arch}): Add mips64r2.
667 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
669 * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
671 2008-07-31 Steve Ellcey <sje@cup.hp.com>
673 * expr.c (expand_assignment): Check for complete type.
675 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
678 * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
680 * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
683 * function.h (rtl_data): Add stack_realign_tried. Update comments.
685 2008-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
687 * config/sh/sh.c (sh_canonical_va_list_type): Remove.
688 (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
690 2008-07-31 Jakub Jelinek <jakub@redhat.com>
692 PR rtl-optimization/36419
693 * dwarf2out.c (barrier_args_size): New variable.
694 (compute_barrier_args_size, compute_barrier_args_size_1): New
696 (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
697 if not called yet in the current function, use barrier_args_size
698 array to find the new args_size value.
699 (dwarf2out_frame_debug): Free and clear barrier_args_size.
701 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
704 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
707 2008-07-31 H.J. Lu <hongjiu.lu@intel.com>
710 * dwarf2out.c (dwarf2out_args_size_adjust): New.
711 (dwarf2out_stack_adjust): Use it.
712 (dwarf2out_frame_debug_expr): Likewise.
714 2008-07-31 Richard Guenther <rguenther@suse.de>
716 PR tree-optimization/36978
717 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
718 the generated condition.
720 2008-07-31 Richard Guenther <rguenther@suse.de>
722 * passes.c (init_optimization_passes): Always call
723 pass_early_warn_uninitialized.
724 * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
725 * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
726 * doc/passes.texi (Warn for uninitialized variables): Adjust.
728 2008-07-31 Jakub Jelinek <jakub@redhat.com>
731 * builtins.c (maybe_emit_free_warning): New function.
732 (expand_builtin): Process BUILT_IN_FREE even at -O0. Call
733 maybe_emit_free_warning for BUILT_IN_FREE.
736 * dwarf2out.c (get_context_die): New function.
737 (force_decl_die, force_type_die): Use it.
738 (dwarf2out_imported_module_or_decl): Likewise. If base_type_die
739 returns NULL, force generation of DW_TAG_typedef and put that into
742 PR preprocessor/36649
743 * c-pch.c (c_common_read_pch): Save and restore
744 line_table->trace_includes across PCH restore.
746 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
749 * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
751 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
754 * final.c (call_from_call_insn): Handle COND_EXEC.
756 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
758 * builtins.c (std_gimplify_va_arg_expr): Replace
759 PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
760 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
762 2008-07-30 Joey Ye <joey.ye@intel.com>
763 H.J. Lu <hongjiu.lu@intel.com>
765 * builtins.c (expand_builtin_setjmp_receiver): Replace
766 virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
767 (expand_builtin_apply_args_1): Likewise.
768 (expand_builtin_longjmp): Need DRAP for stack alignment.
769 (expand_builtin_apply): Likewise.
771 * caller-save.c (setup_save_areas): Call assign_stack_local_1
772 instead of assign_stack_local to allow alignment reduction.
774 * calls.c (emit_call_1): Need DRAP for stack alignment if
776 (expand_call): Replace virtual_incoming_args_rtx with
777 crtl->args.internal_arg_pointer.
778 * stmt.c (expand_nl_goto_receiver): Likewise.
780 * cfgexpand.c (get_decl_align_unit): Estimate stack variable
781 alignment and store to stack_alignment_estimated and
782 max_used_stack_slot_alignment.
783 (expand_one_var): Likewise.
784 (expand_stack_alignment): New function.
785 (tree_expand_cfg): Initialize max_used_stack_slot_alignment
786 and stack_alignment_estimated fields in rtl_data. Call
787 expand_stack_alignment at end.
789 * defaults.h (INCOMING_STACK_BOUNDARY): New.
790 (MAX_STACK_ALIGNMENT): Likewise.
791 (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
792 (SUPPORTS_STACK_ALIGNMENT): Likewise.
794 * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
795 stack alignment when generating virtual registers.
797 * function.c (assign_stack_local): Renamed to ...
798 (assign_stack_local_1): This. Add a parameter to indicate
799 if it is OK to reduce alignment.
800 (assign_stack_local): Use it.
801 (instantiate_new_reg): Instantiate virtual incoming args rtx
802 to vDRAP if stack realignment and DRAP is needed.
803 (assign_parms): Collect parameter/return type alignment and
804 contribute to stack_alignment_estimated.
805 (locate_and_pad_parm): Likewise.
806 (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
807 with crtl->args.internal_arg_pointer.
809 * function.h (rtl_data): Add new field drap_reg,
810 max_used_stack_slot_alignment, stack_alignment_estimated,
811 stack_realign_needed, need_drap, stack_realign_processed and
812 stack_realign_finalized.
813 (stack_realign_fp): New macro.
814 (stack_realign_drap): Likewise.
816 * global.c (compute_regsets): Frame pointer is needed when
817 stack is realigned. Can eliminate frame pointer when stack is
818 realigned and dynamic realigned argument pointer isn't used.
820 * reload1.c (update_eliminables): Frame pointer is needed
821 when stack is realigned.
822 (init_elim_table): Can eliminate frame pointer when stack is
823 realigned and dynamic realigned argument pointer isn't used.
825 * rtl.h (assign_stack_local_1): Declare new funtion.
827 * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
828 (TARGET_GET_DRAP_RTX): Likewise.
829 (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
832 * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
834 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
835 STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
837 2008-07-30 Xuepeng Guo <xuepeng.guo@intel.com>
838 H.J. Lu <hongjiu.lu@intel.com>
840 * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
841 vdrap_reg, stack_realign and drap_reg_saved.
842 (add_cfi): Don't allow redefining CFA when DRAP is used.
843 (reg_save): Handle stack alignment.
844 (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
845 alignment. Don't generate DWARF information for (set fp sp)
847 (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
849 (int_loc_descriptor): Move prototype forward. Also define if
850 DWARF2_UNWIND_INFO is true.
851 (output_cfa_loc): Handle DW_CFA_expression.
852 (build_cfa_aligned_loc): New.
853 (based_loc_descr): Update assert for stack realign. For local
854 variables, use sp+offset when stack is aligned without drap and
855 fp+offset when stack is aligned with drap. For arguments, use
856 cfa+offset when drap is used to align stack.
858 2008-07-30 Joey Ye <joey.ye@intel.com>
859 H.J. Lu <hongjiu.lu@intel.com>
861 * config/i386/i386.c (ix86_force_align_arg_pointer_string):
863 (ix86_gen_andsp): New.
864 (ix86_user_incoming_stack_boundary): Likewise.
865 (ix86_default_incoming_stack_boundary): Likewise.
866 (ix86_incoming_stack_boundary): Likewise.
867 (ix86_can_eliminate): Likewise.
868 (find_drap_reg): Likewise.
869 (ix86_update_stack_boundary): Likewise.
870 (ix86_get_drap_rtx): Likewise.
871 (ix86_finalize_stack_realign_flags): Likewise.
872 (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
873 (TARGET_GET_DRAP_RTX): Likewise.
874 (override_options): Overide option value for new options.
875 (ix86_function_ok_for_sibcall): Remove check for
876 force_align_arg_pointer.
877 (ix86_handle_cconv_attribute): Likewise.
878 (ix86_function_regparm): Likewise.
879 (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
880 (ix86_va_start): Replace virtual_incoming_args_rtx with
881 crtl->args.internal_arg_pointer.
882 (ix86_select_alt_pic_regnum): Check DRAP register.
883 (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
884 (ix86_compute_frame_layout): Compute frame layout wrt stack
886 (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
887 (ix86_expand_prologue): Decide if stack realignment is needed
888 and generate prologue code accordingly.
889 (ix86_expand_epilogue): Generate epilogue code wrt stack
890 realignment is really needed or not.
892 * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
893 (ABI_STACK_BOUNDARY): Likewise.
894 (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
895 (STACK_REALIGN_DEFAULT): Likewise.
896 (INCOMING_STACK_BOUNDARY): Likewise.
897 (MAX_STACK_ALIGNMENT): Likewise.
898 (ix86_incoming_stack_boundary): Likewise.
899 (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
900 (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
901 (CAN_ELIMINATE): Defined with ix86_can_eliminate.
902 (machine_function): Remove force_align_arg_pointer.
904 * config/i386/i386.md (BX_REG): New.
907 * config/i386/i386.opt (mforce_drap): New.
908 (mincoming-stack-boundary): Likewise.
909 (mstackrealign): Add Init(-1).
911 * config/i386/i386-protos.h (ix86_can_eliminate): New
913 2008-07-30 H.J. Lu <hongjiu.lu@intel.com>
915 * doc/extend.texi: Update force_align_arg_pointer.
917 * doc/invoke.texi: Document -mincoming-stack-boundary. Update
920 * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
921 (INCOMING_STACK_BOUNDARY): Likewise.
922 (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
923 (TARGET_GET_DRAP_RTX): Likewise.
925 2008-07-30 Andreas Schwab <schwab@suse.de>
927 PR rtl-optimization/36929
928 * dse.c (replace_inc_dec): Use emit_insn_before instead of
929 add_insn_before and fix argument order.
930 (replace_inc_dec_mem): Handle NULL rtx.
932 2008-07-30 Andrew Jenner <andrew@codesourcery.com>
934 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
936 (arm_compute_initial_elimination_offset): Use it.
937 (arm_compute_save_reg_mask): Include static chain save slot when
938 calculating alignment.
939 (arm_get_frame_offsets): Ditto.
940 (thumb1_compute_save_reg_mask): Ensure we have a low register saved
941 that we can use to decrement the stack when the stack decrement
942 could be too big for an immediate value in a single insn.
943 (thumb1_expand_prologue): Avoid using r12 for stack decrement.
945 2008-07-30 Richard Guenther <rguenther@suse.de>
947 PR tree-optimization/36967
948 * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
949 Release defs of statements we remove.
951 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
953 * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
954 instead of NULL_RTVEC.
956 2008-07-30 Nathan Froyd <froydnj@codesourcery.com>
960 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
963 2008-07-30 Rafael Avila de Espindola <espindola@google.com>
965 * final.c (call_from_call_insn): New.
966 (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
968 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
970 * configure.ac: Substitute ADA_CFLAGS.
971 * configure: Regenerate.
972 * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
973 * Makefile.in: Remove mention of X_* variables.
974 * config/pa/x-ada-hpux10: Remove.
975 * config/pa/x-ada: Remove.
977 * doc/fragments.texi: Update.
979 2008-07-30 Olivier Hainque <hainque@adacore.com>
981 * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
982 * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
983 __dso_handle explicitly here.
985 2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
988 * c-typeck.c (build_binary_op): Encapsulate code into...
989 * c-common.c (shorten_binary_op): ...this new function.
990 (conversion_warning): Use the new function. Handle non-negative
991 constant in bitwise-and.
992 * c-common.h (shorten_binary_op): Declare.
994 2008-07-30 Olivier Hainque <hainque@adacore.com>
996 * scan.c (make_sstring_space): Add explicit conversions of
997 allocator's return value.
998 * fix-header.c (recognized_function): Likewise.
1000 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1002 * doc/cpp.texi: Update to GFDL 1.2.
1003 * doc/gcc.texi: Do not list GPL as Invariant Section.
1004 * doc/gccint.texi: Likewise. Update copyright years.
1005 * doc/install.texi: Update copyright years.
1007 2008-07-30 Alan Modra <amodra@bigpond.net.au>
1010 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
1011 a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
1013 2008-07-29 Jan Hubicka <jh@suse.cz>
1015 * c-decl.c (merge_decls): Do not handle DECL_INLINE.
1016 (grokdeclarator): Likewise.
1017 * langhooks.c (lhd_warn_unused_global_decl): Use
1018 DECL_DECLARED_INLINE_P.
1019 * print-tree.c (print_node): Remove DECL_INLINE check.
1021 2008-07-29 Richard Guenther <rguenther@suse.de>
1023 PR tree-optimization/36945
1024 * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
1025 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
1026 Record invariant addresses un-decomposed.
1027 (copy_reference_ops_from_call): Record reference call
1028 arguments properly. Simplify.
1029 * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
1030 helper split out from ...
1031 (create_component_ref_by_pieces): ... here. Simplify.
1032 Prepare for recursive invocation for call arguments.
1033 (create_expression_by_pieces): Adjust call to
1034 create_component_ref_by_pieces.
1035 (compute_avail): Process operand 2 of reference ops.
1037 2008-07-29 Richard Guenther <rguenther@suse.de>
1039 * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
1041 2008-07-29 Jakub Jelinek <jakub@redhat.com>
1043 * c-format.c (check_format_types): Revert unwanted checkin.
1045 2008-07-29 Jan Hubicka <jh@suse.cz>
1047 * flags.h (flag_really_no_inline): Remove.
1048 * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
1049 * toplev.c (flag_really_no_inline): Remove.
1050 * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
1051 * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
1052 (cgraph_decide_inlining_incrementally): Likewise.
1053 (compute_inline_parameters): Likewise.
1054 * opts.c (decode_options): Simplify.
1055 * c-opts.c (c_common_post_options): Do not set flag_no_inline.
1056 * common.opt (finline): Initialize to 1.
1057 * tree-inline.c (inlinable_function_p): Check flag_no_inline.
1059 2008-07-29 Jan Hubicka <jh@suse.cz>
1061 * predict.c (always_optimize_for_size_p): New function.
1062 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
1063 optimize_edge_for_size_p, optimize_edge_for_speed_p,
1064 optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
1066 (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
1067 * function.c (prepare_function_start): Set default profile.
1068 * function.h (rtl_data): Add maybe_hot_insn_p.
1069 * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
1070 (construct_exit_block): Likewise.
1071 (tree_expand_cfg): Likewise.
1073 (optimize_bb_for_size_p, optimize_bb_for_speed_p,
1074 optimize_edge_for_size_p, optimize_edge_for_speed_p,
1075 optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
1076 (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
1079 2008-07-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1082 * c-decl.c (merge_decls): Merge USED flags.
1084 2008-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
1086 * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
1087 valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
1088 next_stack, lab_false and lab_over trees.
1090 2008-07-28 Richard Guenther <rguenther@suse.de>
1092 PR tree-optimization/36957
1093 * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
1094 (useless_type_conversion_p): Remove.
1095 (types_compatible_p): Remove.
1096 * gimple.h (tree_ssa_useless_type_conversion): Declare.
1097 (useless_type_conversion_p): Declare.
1098 (types_compatible_p): Declare.
1099 (gimple_expr_type): Return the base type only if it is
1100 trivially convertible to the subtype.
1102 2008-07-28 Andreas Tobler <a.tobler@schweiz.org>
1104 * configure.ac: Use the m4_do macro to concatenate the warnings into
1105 one string in ACX_PROG_CC_WARNING_OPTS,
1106 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
1107 * configure: Regenerate.
1109 2008-07-28 Richard Guenther <rguenther@suse.de>
1111 * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
1112 (insert_fake_stores): Remove.
1113 (realify_fake_stores): Likewise.
1114 (execute_pre): Remove dead code.
1115 * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
1116 (find_func_aliases): Deal with it here instead.
1117 Re-enable gcc_unreachable call.
1119 2008-07-28 Richard Guenther <rguenther@suse.de>
1121 Merge from gimple-tuples-branch.
1123 * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
1124 * gimple.def: New file.
1125 * gsstruct.def: Likewise.
1126 * gimple-iterator.c: Likewise.
1127 * gimple-pretty-print.c: Likewise.
1128 * tree-gimple.c: Removed. Merged into ...
1129 * gimple.c: ... here. New file.
1130 * tree-gimple.h: Removed. Merged into ...
1131 * gimple.h: ... here. New file.
1133 * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
1134 * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
1135 --enable-checking=gimple flag.
1136 * config.in: Likewise.
1137 * configure: Regenerated.
1139 * tree-ssa-operands.h: Tuplified.
1140 * tree-vrp.c: Likewise.
1141 * tree-loop-linear.c: Likewise.
1142 * tree-into-ssa.c: Likewise.
1143 * tree-ssa-loop-im.c: Likewise.
1144 * tree-dump.c: Likewise.
1145 * tree-complex.c: Likewise.
1146 * cgraphbuild.c: Likewise.
1147 * tree-ssa-threadupdate.c: Likewise.
1148 * tree-ssa-loop-niter.c: Likewise.
1149 * tree-pretty-print.c: Likewise.
1150 * tracer.c: Likewise.
1151 * gengtype.c: Likewise.
1152 * tree-loop-distribution.c: Likewise.
1153 * tree-ssa-loop-unswitch.c: Likewise.
1154 * cgraph.c: Likewise.
1155 * cgraph.h: Likewise.
1156 * tree-ssa-loop-manip.c: Likewise.
1157 * value-prof.c: Likewise.
1158 * tree-ssa-loop-ch.c: Likewise.
1159 * tree-tailcall.c: Likewise.
1160 * value-prof.h: Likewise.
1163 * tree-pass.h: Likewise.
1164 * ipa-cp.c: Likewise.
1165 * tree-scalar-evolution.c: Likewise.
1166 * tree-scalar-evolution.h: Likewise.
1167 * target.h: Likewise.
1168 * lambda-mat.c: Likewise.
1169 * tree-phinodes.c: Likewise.
1170 * diagnostic.h: Likewise.
1171 * builtins.c: Likewise.
1172 * tree-ssa-alias-warnings.c: Likewise.
1173 * cfghooks.c: Likewise.
1174 * fold-const.c: Likewise.
1175 * cfghooks.h: Likewise.
1176 * omp-low.c: Likewise.
1177 * tree-ssa-dse.c: Likewise.
1178 * ipa-reference.c: Likewise.
1179 * tree-ssa-uncprop.c: Likewise.
1180 * toplev.c: Likewise.
1181 * tree-gimple.c: Likewise.
1182 * tree-gimple.h: Likewise.
1183 * tree-chrec.c: Likewise.
1184 * tree-chrec.h: Likewise.
1185 * tree-ssa-sccvn.c: Likewise.
1186 * tree-ssa-sccvn.h: Likewise.
1187 * cgraphunit.c: Likewise.
1188 * tree-ssa-copyrename.c: Likewise.
1189 * tree-ssa-ccp.c: Likewise.
1190 * tree-ssa-loop-ivopts.c: Likewise.
1191 * tree-nomudflap.c: Likewise.
1192 * tree-call-cdce.c: Likewise.
1193 * ipa-pure-const.c: Likewise.
1194 * c-format.c: Likewise.
1195 * tree-stdarg.c: Likewise.
1196 * tree-ssa-math-opts.c: Likewise.
1197 * tree-ssa-dom.c: Likewise.
1198 * tree-nrv.c: Likewise.
1199 * tree-ssa-propagate.c: Likewise.
1200 * ipa-utils.c: Likewise.
1201 * tree-ssa-propagate.h: Likewise.
1202 * tree-ssa-alias.c: Likewise.
1203 * gimple-low.c: Likewise.
1204 * tree-ssa-sink.c: Likewise.
1205 * ipa-inline.c: Likewise.
1206 * c-semantics.c: Likewise.
1207 * dwarf2out.c: Likewise.
1209 * tree-ssa-loop-ivcanon.c: Likewise.
1210 * predict.c: Likewise.
1211 * tree-ssa-loop.c: Likewise.
1212 * tree-parloops.c: Likewise.
1213 * tree-ssa-address.c: Likewise.
1214 * tree-ssa-ifcombine.c: Likewise.
1215 * matrix-reorg.c: Likewise.
1216 * c-decl.c: Likewise.
1217 * tree-eh.c: Likewise.
1218 * c-pretty-print.c: Likewise.
1219 * lambda-trans.c: Likewise.
1220 * function.c: Likewise.
1221 * langhooks.c: Likewise.
1222 * ebitmap.h: Likewise.
1223 * tree-vectorizer.c: Likewise.
1224 * function.h: Likewise.
1225 * langhooks.h: Likewise.
1226 * tree-vectorizer.h: Likewise.
1227 * ipa-type-escape.c: Likewise.
1228 * ipa-type-escape.h: Likewise.
1229 * domwalk.c: Likewise.
1230 * tree-if-conv.c: Likewise.
1231 * profile.c: Likewise.
1232 * domwalk.h: Likewise.
1233 * tree-data-ref.c: Likewise.
1234 * tree-data-ref.h: Likewise.
1235 * tree-flow-inline.h: Likewise.
1236 * tree-affine.c: Likewise.
1237 * tree-vect-analyze.c: Likewise.
1238 * c-typeck.c: Likewise.
1239 * gimplify.c: Likewise.
1240 * coretypes.h: Likewise.
1241 * tree-ssa-phiopt.c: Likewise.
1242 * calls.c: Likewise.
1243 * tree-ssa-coalesce.c: Likewise.
1244 * tree.def: Likewise.
1245 * tree-dfa.c: Likewise.
1246 * except.c: Likewise.
1247 * except.h: Likewise.
1248 * cfgexpand.c: Likewise.
1249 * tree-cfgcleanup.c: Likewise.
1250 * tree-ssa-pre.c: Likewise.
1251 * tree-ssa-live.c: Likewise.
1252 * tree-sra.c: Likewise.
1253 * tree-ssa-live.h: Likewise.
1254 * tree-predcom.c: Likewise.
1255 * lambda.h: Likewise.
1256 * tree-mudflap.c: Likewise.
1257 * ipa-prop.c: Likewise.
1258 * print-tree.c: Likewise.
1259 * tree-ssa-copy.c: Likewise.
1260 * ipa-prop.h: Likewise.
1261 * tree-ssa-forwprop.c: Likewise.
1262 * ggc-page.c: Likewise.
1263 * c-omp.c: Likewise.
1264 * tree-ssa-dce.c: Likewise.
1265 * tree-vect-patterns.c: Likewise.
1266 * tree-ssa-ter.c: Likewise.
1267 * tree-nested.c: Likewise.
1268 * tree-ssa.c: Likewise.
1269 * lambda-code.c: Likewise.
1270 * tree-ssa-loop-prefetch.c: Likewise.
1271 * tree-inline.c: Likewise.
1272 * tree-inline.h: Likewise.
1273 * tree-iterator.c: Likewise.
1274 * tree-optimize.c: Likewise.
1275 * tree-ssa-phiprop.c: Likewise.
1276 * tree-vect-transform.c: Likewise.
1277 * tree-object-size.c: Likewise.
1278 * tree-outof-ssa.c: Likewise.
1279 * cfgloop.c: Likewise.
1280 * system.h: Likewise.
1281 * tree-profile.c: Likewise.
1282 * cfgloop.h: Likewise.
1283 * c-gimplify.c: Likewise.
1284 * c-common.c: Likewise.
1285 * tree-vect-generic.c: Likewise.
1286 * tree-flow.h: Likewise.
1287 * c-common.h: Likewise.
1288 * basic-block.h: Likewise.
1289 * tree-ssa-structalias.c: Likewise.
1290 * tree-switch-conversion.c: Likewise.
1291 * tree-ssa-structalias.h: Likewise.
1292 * tree-cfg.c: Likewise.
1293 * passes.c: Likewise.
1294 * ipa-struct-reorg.c: Likewise.
1295 * ipa-struct-reorg.h: Likewise.
1296 * tree-ssa-reassoc.c: Likewise.
1297 * cfgrtl.c: Likewise.
1298 * varpool.c: Likewise.
1300 * tree-ssanames.c: Likewise.
1301 * tree-ssa-threadedge.c: Likewise.
1302 * langhooks-def.h: Likewise.
1303 * tree-ssa-operands.c: Likewise.
1304 * config/alpha/alpha.c: Likewise.
1305 * config/frv/frv.c: Likewise.
1306 * config/s390/s390.c: Likewise.
1307 * config/m32c/m32c.c: Likewise.
1308 * config/m32c/m32c-protos.h: Likewise.
1309 * config/spu/spu.c: Likewise.
1310 * config/sparc/sparc.c: Likewise.
1311 * config/i386/i386.c: Likewise.
1312 * config/sh/sh.c: Likewise.
1313 * config/xtensa/xtensa.c: Likewise.
1314 * config/stormy16/stormy16.c: Likewise.
1315 * config/ia64/ia64.c: Likewise.
1316 * config/rs6000/rs6000.c: Likewise.
1317 * config/pa/pa.c: Likewise.
1318 * config/mips/mips.c: Likewise.
1320 2008-07-28 Simon Baldwin <simonb@google.com>
1322 * c-pragma.c (handle_pragma_message): New function.
1323 (init_pragma): Register handle_pragma_message.
1324 * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
1327 2008-07-27 Victor Kaplansky <victork@il.ibm.com>
1329 PR tree-optimization/35252
1330 * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
1331 REALPART_EXPR to be considered as same load operation.
1333 2008-07-27 Eric Botcazou <ebotcazou@adacore.com>
1335 PR tree-optimization/36830
1336 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
1337 (expressions_equal_p): Return false if only one operand is null.
1339 2008-07-26 Gerald Pfeifer <gerald@pfeifer.com>
1341 * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
1342 version requirements.
1344 2008-07-26 Olivier Hainque <hainque@adacore.com>
1346 * collect2.c (symkind): New enum. Symbol kinds we care about.
1347 (is_ctor_dtor): Return symkind instead of int. Adjust prototype,
1348 code and head comment accordingly.
1349 (scan_prog_file): Use symkind names instead of bare integers.
1351 2008-07-25 Jan Hubicka <jh@suse.cz>
1353 * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
1355 * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
1356 (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
1357 * dojump.c (clear_pending_stack_adjust): Likewise.
1358 * print-tree.c (print_node): Ignore DECL_INLINE.
1359 * tree-inline.c (inlinable_function_p): Likewise.
1361 2008-07-25 Michael Meissner <gnu@the-meissners.org>
1363 * doc/extend.texi (hot attribute): Document that the hot attribute
1364 turns on -O3 for some ports.
1365 (cold attribute): Document that the cold attribute turns on -Os
1368 * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
1369 reflect function specific option support.
1371 * target.h (struct target_option_hooks): Add fields to say whether
1372 the cold attribute implies -Os and the hot attribute implies -O3.
1374 * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
1375 By default, do not turn on -Os for cold functions.
1376 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
1377 not turn on -O3 for hot functions.
1379 * c-common.c (handle_hot_attribute): Use target hook to determine
1380 if hot functions should enable -O3.
1381 (handle_cold_attribute): Use target hook to determine if cold
1382 functions should enable -Os.
1384 * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
1385 (override_options): Move disable scheduling to
1386 optimization_options.
1387 (optimization_options): Disable scheduling here, not
1389 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1390 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1392 * config/ia64/ia64.c (ia64_override_options): Move setting
1393 scheduling flags to ia64_optimization_options.
1394 (ia64_optimization_options): Disable scheduling options here, and
1395 not in ia64_override_options.
1396 (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1397 (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
1399 2008-07-25 H.J. Lu <hongjiu.lu@intel.com>
1402 * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
1404 2008-07-25 Martin Jambor <mjambor@suse.cz>
1406 PR tree-optimization/36926
1407 * ipa-prop.c (ipa_analyze_call_uses): Call
1408 ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
1410 2008-07-25 Joseph Myers <joseph@codesourcery.com>
1412 * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
1413 movv2si_internal): Add mem = reg alternative.
1415 2008-07-25 Andreas Tobler <a.tobler@schweiz.org>
1418 * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
1419 DEFAULT_PCC_STRUCT_RETURN to 127.
1421 2008-07-24 Jan Hubicka <jh@suse.cz>
1423 * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
1424 (build_cgraph_edges): Likewise.
1425 * cgraph.c (cgraph_node): Do not update assembler hash.
1426 (cgraph_remove_node): Drop non-unit-at-a-time code.
1427 * tree-pass.h (pass_O0_always_inline): Remove.
1428 * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
1429 * toplev.c (process_options): Flag unit-at-a-time does not imply
1431 * cgraphunit.c: Update comments.
1432 (decide_is_function_needed): Drop non-unit-at-a-time mode.
1433 (cgraph_assemble_pending_functions): Remove.
1434 (cgraph_reset_node): Drop non-unit-at-a-time code.
1435 (cgraph_finalize_function): Likewise.
1436 (cgraph_analyze_function): Likewise.
1437 (cgraph_finalize_compilation_unit): Likewise.
1438 (cgraph_expand_function): Likewise.
1439 (cgraph_optimize): Likesise.
1440 (save_inline_function_body): Likewise.
1441 * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
1442 * tree-ssa-alias.c (maybe_be_aliased): Likewise.
1443 * ipa-inline.c: Update comments.
1444 (enum inlining_mode): remove INLINE_SPEED.
1445 (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
1446 (cgraph_mark_inline_edge): Likewise.
1447 (try_inline): Likewise.
1448 (cgraph_decide_inlining_incrementally): Likewise.
1449 (cgraph_gate_inlining): Remove.
1450 (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
1451 (cgraph_gate_early_inlining): Likewise.
1452 (gate_inline_passes): Remove.
1453 (pass_inline_parameters, pass_ipa_inline): Remove gates.
1454 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
1455 pass_O0_always_inline): Remove.
1456 * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
1457 * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
1458 * opts.c (no_unit_at_a_time_default): Remove.
1459 (decode_options): Remove flag_unit_at_a_time reset and warning.
1460 * opts.h (no_unit_at_a_time_default): Remove.
1461 * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
1462 early in GNU dialect.
1463 (merge_decls): Update comment; drop unit-at-a-time check.
1464 (finish_decl): Likewise.
1465 (grok_declaration): Remove flag_inline_trees code.
1466 (finish_functions): Return on function returning non-void on all
1468 * ipa-tye-escape.c (gate_type_escape_vars): Remove.
1469 * cfgexpand.c (expand_one_static_var): Remove.
1470 (expand_one_var): Remove expand_one_static_var call.
1471 (expand_used_vars_for_block): Remove flag_unit_a_time check.
1472 * c-opts.c (c_common_post_options): Remove flag_inline_trees code
1473 and flag_unit_at_a-time compatibility checks.
1474 * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
1475 * tree-inline.c (flag_inline_trees): Remove.
1476 (inlinable_function_p): Don't check it.
1477 (expand_call_inline): Remove non-unit-at-a-time code.
1478 * tree-inline.h (flag_inline_trees): Remove.
1479 * tree-optimize.c (execute_early_local_optimizations): Remove
1480 unit-at-a-time checks.
1481 (tree_rest_of_compilation): Likewise.
1482 * combine.c (setup_incoming_promotions): Likewise.
1483 * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
1484 * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
1485 * passes.c (pass_inline_parameters): Update comments; remove
1486 O0_alwaysinline pass.
1487 (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
1488 (execute_one_pass): Likewise.
1489 * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
1490 (ix86_function_sseregparm): Likewise.
1491 * arm.c (arm_function_in_section_p): Likewise.
1492 * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
1493 * varpool.c: Update comments.
1494 (decide_is_variable_needed): Remove unit-at-a-time checks.
1495 (varpool_finalize_decl): Likewise.
1497 2008-07-24 Kaz Kojima <kkojima@gcc.gnu.org>
1499 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
1501 (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
1503 2008-07-24 Kai Tietz <kai.tietz@onevision.com>
1505 * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
1506 imp symbol extension.
1508 2008-07-23 Ian Lance Taylor <iant@google.com>
1510 * tree-vrp.c (infer_value_range): Ignore asm statements when
1511 looking for memory accesses for -fdelete-null-pointer-checks.
1513 2008-07-24 Ben Elliston <bje@au.ibm.com>
1515 * config/spu/spu-c.c (__vector_keyword): New variable.
1516 (vector_keyword): Likewise.
1517 (spu_categorize_keyword): New function.
1518 (spu_macro_to_expand): Likewise.
1519 (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
1520 compiling an ISO C dialect.
1522 2008-07-24 Ben Elliston <bje@au.ibm.com>
1524 * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
1527 2008-07-23 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1529 * configure: Regenerate.
1530 * configure.ac: Require texinfo 4.7.
1531 * doc/install.texi: Document texinfo 4.7 requirement.
1533 2008-07-23 Martin Jambor <mjambor@suse.cz>
1535 * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
1536 rather than for DECL_SAVED_TREE.
1537 * ipa-prop.c: Include diagnostic.h.
1538 (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
1540 (ipa_detect_param_modifications): Function rewritten from scratch.
1541 (ipa_compute_jump_functions): Changed accesses to modification flags.
1542 (ipa_free_node_params_substructures): Update flags destruction.
1543 (ipa_node_duplication_hook): Update flags duplication.
1544 (ipa_print_all_params_modified): Updated flag access.
1545 * ipa-prop.h (struct ipa_param_flags): New structure.
1546 (struct ipa_node_params): New field modification_analysis_done,
1547 modified_flags changed into param_flags.
1548 (ipa_is_ith_param_modified): Changed to use new flags.
1549 * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
1551 * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
1552 ipa-cp.c and split into two functions.
1553 (ipa_print_node_jump_functions): New function.
1554 (compute_scalar_jump_functions): New function.
1555 (type_like_member_ptr_p): New function.
1556 (compute_pass_through_member_ptrs): New function.
1557 (fill_member_ptr_cst_jump_function): New function.
1558 (determine_cst_member_ptr): New function.
1559 (compute_cst_member_ptr_arguments): New function.
1560 (ipa_compute_jump_functions): Complete rewrite.
1561 * ipa-prop.h (enum jump_func_type): Make explicit that we depend
1562 on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
1563 (struct ipa_member_ptr_cst): New structure.
1564 (union jump_func_value): New field member_cst.
1565 * ipa-cp.c (ipcp_lat_is_insertable): New function.
1566 (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
1567 jump function types.
1568 (ipcp_print_all_lattices): Slight fprintf rearrangement.
1569 (ipcp_print_all_structures): Call ipa_print_all_jump_functions
1570 instead of ipcp_print_all_jump_functions.
1571 (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
1572 only for replacable scalars.
1574 * doc/invoke.texi (Optimize options): Add description of
1575 -findirect-inlining.
1576 * common.opt (flag_indirect_inlining): New flag.
1577 * opts.c (decode_options): Set flag_indirect_inlining when
1580 * ipa-inline.c: Include ipa-prop.h.
1581 (inline_indirect_intraprocedural_analysis): New function.
1582 (inline_generate_summary): Allocate parameter and argument info
1583 structures, call inline_indirect_intraprocedural_analysis on each
1584 node when doing indirect inlining and deallocate indirect inlining
1585 data structures in the end.
1586 * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
1587 (free_all_ipa_structures_after_iinln): New function.
1588 (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
1590 * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
1592 * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
1593 (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1594 of computing the frequency separately.
1595 (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
1596 of computing the frequency separately.
1597 * ipa-cp.c (ipcp_print_all_structures): Replace a call to
1598 ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
1599 * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
1600 (ipa_get_stmt_member_ptr_load_param): New function.
1601 (ipa_is_ssa_with_stmt_def): New function.
1602 (ipa_note_param_call): New function.
1603 (ipa_analyze_call_uses): New function.
1604 (ipa_analyze_stmt_uses): New function.
1605 (ipa_analyze_params_uses): New function.
1606 (ipa_free_node_params_substructures): Also free the param_calls linked
1608 (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
1609 (ipa_print_node_param_flags): New function.
1610 (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
1611 (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
1612 * ipa-prop.h (struct ipa_param_flags): New field called.
1613 (struct ipa_param_call_note): New structure.
1614 (struct ipa_node_params): New fields param_calls and
1616 (ipa_is_ith_param_called): New function.
1617 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
1618 ipa_analyze_params_uses and dump parameter flags.
1620 * ipa-inline.c (cgraph_decide_recursive_inlining): Call
1621 ipa_propagate_indirect_call_infos if performing indirect inlining,
1622 pass a new parameter new_edges to it.
1623 (add_new_edges_to_heap): New fucntion.
1624 (cgraph_decide_inlining_of_small_functions): New vector
1625 new_indirect_edges for newly found indirect edges , call
1626 ipa_propagate_indirect_call_infos after inlining.
1627 (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
1628 inlining if performing indirect inlining. Call
1629 free_all_ipa_structures_after_iinln when doing so too.
1630 (inline_generate_summary): Do not call
1631 free_all_ipa_structures_after_iinln here.
1632 * ipa-prop.c (update_jump_functions_after_inlining): New function.
1633 (print_edge_addition_message): New function.
1634 (update_call_notes_after_inlining): New function.
1635 (propagate_info_to_inlined_callees): New function.
1636 (ipa_propagate_indirect_call_infos): New function.
1637 * ipa-prop.h: Include cgraph.h
1638 (struct ipa_param_call_note): Fields reordered, new field processed.
1639 * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
1641 * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
1642 rediscovered call statements.
1643 * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
1644 (dump_cgraph_node): Dump also the indirect_call flag.
1645 (cgraph_clone_edge): Copy also the indirect_call flag.
1646 * tree-inline.c (copy_bb): Do not check for fndecls from call
1647 expressions, check for edge availability when moving clones.
1648 (get_indirect_callee_fndecl): New function.
1649 (expand_call_inline): If callee declaration is not apprent from
1650 the statement, try calling get_indirect_callee_fndecl. Do not
1651 issue warnings or call sorry when not inlinings an indirect edge.
1652 * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
1654 * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
1655 bit more frandly to matching.
1656 * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
1657 * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
1658 * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
1660 2008-07-23 Michael Meissner <gnu@the-meissners.org>
1663 * opth-gen.awk: Suppress function specific features when building
1665 * optc-gen.awk: Ditto.
1667 2008-07-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1670 * diagnostic.c (pedwarn): Add opt parameter.
1672 * c-tree.h (pedwarn_init): Add opt parameter.
1673 (pedwarn_c90): Likewise.
1674 (pedwarn_c99): Likewise.
1675 * c-errors.c (pedwarn_c99): Likewise.
1676 (pedwarn_c90): Likewise.
1677 * toplev.h (pedwarn): Update declaration.
1678 (pedwarn0): Declare.
1679 * c-lex.c: All calls to pedwarn changed.
1680 * builtins.c: All calls to pedwarn changed.
1681 * toplev.c: All calls to pedwarn changed.
1682 * c-decl.c: All calls to pedwarn changed.
1683 * c-typeck.c: All calls to pedwarn changed.
1684 * c-common.c: All calls to pedwarn changed.
1685 * c-parser.c: All calls to pedwarn changed.
1687 2008-07-23 Michael Meissner <gnu@the-meissners.org>
1688 Karthik Kumar <karthikkumar@gmail.com>
1690 * attribs.c (file scope): Include c-common.h.
1691 (decl_attributes): Add support for #pragma GCC optimize and
1694 * targhooks.c (default_can_inline_p): New function that is the
1695 default for the TARGET_CAN_INLINE_P target hook.
1697 * targhooks.h (default_can_inline_p): Add declaration.
1699 * tree.c (cl_optimization_node): New static tree for building
1700 OPTIMIZATION_NODE tree.
1701 (cl_target_option_node): New static tree for building
1702 TARGET_OPTION_NODE tree.
1703 (cl_option_hash_table): New hash table for hashing
1704 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1705 (cl_option_hash_hash): New function to provide the hash value for
1706 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1707 (cl_option_hash_eq): New function to provide an equality test for
1708 OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1709 (tree_code_size): Add support for OPTIMIZATION_NODE and
1710 TARGET_OPTION_NODE trees.
1711 (tree_code_structure): Add support for OPTIMIZATION_NODE and
1712 TARGET_OPTION_NODE trees.
1713 (build_optimization_node): Build a tree that has all of the
1714 current optimization options.
1715 (build_target_option_node): Build a tree that has the target
1716 options that might be changed on a per function basis.
1718 * tree.h (file scope): Include options.h.
1719 (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
1720 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1721 (TREE_OPTIMIZATION): Ditto.
1722 (TREE_TARGET_SPECIFIC): Ditto.
1723 (struct tree_function_decl): Add fields for remembering the
1724 current optimization options and target specific options.
1725 (struct tree_optimization_option): New tree variant that remembers
1726 the optimization options.
1727 (struct tree_target_option): New tree variant that remembers the
1728 target specific flags that might change for compiling a particular
1730 (union tree_node): Include tree_optimization_option and
1731 tree_target_option fields.
1732 (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
1733 TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
1734 TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
1735 TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
1736 TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
1737 optimization and target options.
1738 (optimization_default_node): New macro to refer to global_trees
1740 (optimization_current_node): Ditto.
1741 (optimization_cold_node): Ditto.
1742 (optimization_hot_node): Ditto.
1743 (target_option_default_node): Ditto.
1744 (target_option_current_node): Ditto.
1745 (current_option_pragma): Ditto.
1746 (current_optimize_pragma): Ditto.
1748 * target.h (struct gcc_target): Add valid_option_attribute_p,
1749 target_option_save, target_option_restore, target_option_print,
1750 target_option_pragma_parse, and can_inline_p hooks.
1752 * toplev.h (parse_optimize_options): Add declaration.
1753 (fast_math_flags_struct_set_p): Ditto.
1755 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
1756 adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
1759 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
1760 tree_can_inline_p hook to see if one function can inline another.
1761 (cgraph_decide_inlining): Ditto.
1762 (cgraph_decide_inlining_incrementally): Ditto.
1764 * opts.c (decode_options): Add support for running multiple times
1765 to allow functions with different target or optimization options
1766 than was specified on the command line.
1767 (fast_math_flags_struct_set_p): New function that is similar to
1768 fast_math_flags_set_p, except it uses the values in the
1769 cl_optimization structure instead of global variables.
1771 * optc-gen.awk: Add support for TargetSave to allow a back end to
1772 declare new fields that need to be saved when using function
1773 specific options. Include flags.h and target.h in the options.c
1774 source. Add support for Save to indicate which options can be set
1775 for individual functions. Generate cl_optimize_save,
1776 cl_optimize_restore, cl_optimize_print, cl_target_option_save,
1777 cl_target_option_restore, cl_target_option_print functions to
1778 allow functions to use different optimization or target options.
1780 * opt-functions.awk (var_type_struct): Return the type used for
1781 storing the field in a structure.
1783 * opth-gen.awk: Add support for TargetSave to allow a back end to
1784 declare new fields that need to be saved when using function
1785 specific options. Add support for Save to indicate which options
1786 can be set for individual functions. Only generate one extern for
1787 Mask fields. Generate cl_optimization and cl_target_option
1788 structures to remember optimization and target options.
1790 * treestruct.def (TS_OPTIMIZATION): Add support for garbage
1791 collecting new tree nodes.
1792 (TS_TARGET_OPTION): Ditto.
1794 * c-decl.c (merge_decls): Merge function specific target and
1795 optimization options.
1797 * function.c (invoke_set_current_function_hook): If the function
1798 uses different optimization options, change the global variables
1801 * coretypes.h (struct cl_optimization): Add forward reference.
1802 (struct cl_target_option): Ditto.
1804 * c-pragma.c (option_stack): New static vector to remember the
1805 current #pragma GCC option stack.
1806 (handle_pragma_option): New function to support #pragma GCC option
1807 to change target options.
1808 (optimize_stack): New static vector to remember the current
1809 #pragma GCC optimize stack.
1810 (handle_pragma_optimize): New function to support #pragma GCC
1811 optimize to change optimization options.
1812 (init_pragma): Add support for #pragma GCC optimize and #pragma
1815 * tree.def (OPTIMIZATION_NODE): New tree code for remembering
1816 optimization options.
1817 (TARGET_OPTION_NODE): New tree code for remembering certain target
1820 * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
1821 TARGET_OPTION_NODE trees.
1823 * common.opt (-O): Add Optimization flag.
1825 (-fmath-errno): Ditto.
1826 (-falign-functions): Add UInteger flag to make sure flag gets full
1827 int in cl_optimization structure.
1828 (-falign-jumps): Ditto.
1829 (-falign-labels): Ditto.
1830 (-falign-loops): Ditto.
1831 (-fsched-stalled-insns): Ditto.
1832 (-fsched-stalled-insns-dep): Ditto.
1834 * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
1836 (TARGET_OPTION_SAVE): Ditto.
1837 (TARGET_OPTION_RESTORE): Ditto.
1838 (TARGET_OPTION_PRINT): Ditto.
1839 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1840 (TARGET_CAN_INLINE_P): Ditto.
1841 (TARGET_INITIALIZER): Add new hooks.
1843 * tree-inline.c (tree_can_inline_p): New function to determine
1844 whether one function can inline another. Check if the functions
1845 use compatible optimization options, and also call the backend
1848 * tree-inline.h (tree_can_inline_p): Add declaration.
1850 * c-common.c (c_common_attribute): Add support for option and
1851 optimize attributes.
1852 (handle_option_attribute): Add support for the option attribute to
1853 allow the user to specify different target options for compiling a
1855 (handle_optimize_attribute): Add support for the optimize
1856 attribute to allow the user to specify different optimization
1857 options for compiling a specific function.
1858 (handle_hot_attribute): Turn on -O3 optimization for this one
1859 function if it isn't the default optimization level.
1860 (handle_cold_attribute): Turn on -Os optimization for this one
1861 function if it insn't the default optimization.
1862 (const_char_p): New const char * typedef.
1863 (optimize_args): New static vector to remember the optimization
1865 (parse_optimize_options): New function to set up the optimization
1866 arguments from either the optimize attribute or #pragma GCC optimize.
1868 * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
1869 (builtin_define_std): Ditto.
1871 * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
1872 Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
1873 (x86_64-*-*): Ditto.
1875 * Makefile.in (TREE_H): Add options.h.
1876 (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
1878 * doc/extend.texi (option attribute): Document new attribute.
1879 (optimize attribute): Ditto.
1880 (hot attribute): Document hot attribute sets -O3.
1881 (cold attribute): Document cold attribute sets -Os.
1882 (#pragma GCC option): Document new pragma.
1883 (#pragma GCC optimize): Ditto.
1885 * doc/options.texi (TargetSave): Document TargetSave syntax.
1886 (UInteger): Document UInteger must be used for certain flags.
1887 (Save): Document Save option to create target specific options
1888 that can be saved/restored on a function specific context.
1890 * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
1891 (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1893 * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
1894 (TARGET_OPTION_SAVE): Ditto.
1895 (TARGET_OPTION_RESTORE): Ditto.
1896 (TARGET_OPTION_PRINT): Ditto.
1897 (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1898 (TARGET_CAN_INLINE_P): Ditto.
1900 * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
1902 (-mfpmath=both): Ditto.
1904 2008-07-23 Michael Meissner <gnu@the-meissners.org>
1905 Karthik Kumar <karthikkumar@gmail.com>
1907 * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
1908 (TARGET_POPCNT): Ditto.
1909 (TARGET_SAHF): Ditto.
1910 (TARGET_AES): Ditto.
1911 (TARGET_PCLMUL): Ditto.
1912 (TARGET_CMPXCHG16B): Ditto.
1913 (TARGET_RECIP): Move switch into target_flags.
1914 (TARGET_FUSED_MADD): Ditto.
1915 (ix86_arch_features): Make an unsigned char type.
1916 (ix86_tune_features): Ditto.
1917 (OVERRIDE_OPTIONS): Add bool argument to override_options call.
1918 (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
1919 (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
1921 * config/i386/i386.opt (arch): New TargetSave field to define
1922 fields that need to be saved for function specific option support.
1925 (branch_cost): Ditto.
1926 (ix86_isa_flags_explicit): Ditto.
1927 (tune_defaulted): Ditto.
1928 (arch_specified): Ditto.
1929 (-m128-long-double): Add Save flag to save option for target
1930 specific option support.
1932 (-maccumulate-outgoing-args): Ditto.
1933 (-malign-double): Ditto.
1934 (-malign-stringops): Ditto.
1935 (-mfancy-math-387): Ditto.
1936 (-mhard-float): Ditto.
1938 (-minline-all-stringops): Ditto.
1939 (-minline-stringops-dynamically): Ditto.
1940 (-mms-bitfields): Ditto.
1941 (-mno-align-stringops): Ditto.
1942 (-mno-fancy-math-387): Ditto.
1943 (-mno-push-args): Ditto.
1944 (-mno-red-zone): Ditto.
1945 (-mpush-args): Ditto.
1946 (-mred-zone): Ditto.
1948 (-msseregparm): Ditto.
1949 (-mstack-arg-probe): Ditto.
1964 (-mrecip): Move flag into target_flags.
1966 (-mno-fused-madd): Ditto.
1967 (-mfused-madd): Ditto.
1968 (-mabm): Move flag into ix86_isa_flags.
1975 * config/i386/i386-c.c: New file for #pragma support.
1976 (ix86_target_macros_internal): New function to #define or #undef
1977 target macros based when the user uses the #pragma GCC option to
1978 change target options.
1979 (ix86_pragma_option_parse): New function to add #pragma GCC option
1981 (ix86_target_macros): Move defining the target macros here from
1982 TARGET_CPU_CPP_BUILTINS in i386.h.
1983 (ix86_register_pragmas): Register the #pragma GCC option hook. If
1984 defined, initialize any subtarget #pragmas.
1986 * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
1987 REGISTER_TARGET_PRAGMAS.
1989 * config/i386/t-i386: New file for x86 dependencies.
1990 (i386.o): Make dependencies mirror the include files used.
1991 (i386-c.o): New file, add dependencies.
1993 * config/i386/i386-protos.h (override_options): Add bool argument.
1994 (ix86_valid_option_attribute_tree): Add declaration.
1995 (ix86_target_macros): Ditto.
1996 (ix86_register_macros): Ditto.
1998 * config/i386/i386.c (ix86_tune_features): Move initialization of
1999 the target masks to initial_ix86_tune_features to allow functions
2000 to have different target options. Make type unsigned char,
2001 instead of unsigned int.
2002 (initial_ix86_tune_features): New static vector to hold processor
2003 masks for the tune variables.
2004 (ix86_arch_features): Move initialization of the target masks to
2005 initial_ix86_arch_features to allow functions to have different
2006 target options. Make type unsigned char, instead of unsigned int.
2007 (initial_ix86_arch_features): New static vector to hold processor
2008 masks for the arch variables.
2009 (enum ix86_function_specific_strings): New enum to describe the
2010 string options used for attribute((option(...))).
2011 (ix86_target_string): New function to return a string that
2012 describes the target options.
2013 (ix86_debug_options): New function to print the current options in
2015 (ix86_function_specific_save): New function hook to save the
2016 function specific global variables in the cl_target_option structure.
2017 (ix86_function_specific_restore): New function hook to restore the
2018 function specific variables from the cl_target_option structure to
2019 the global variables.
2020 (ix86_function_specific_print): New function hook to print the
2021 target specific options in the cl_target_option structure.
2022 (ix86_valid_option_attribute_p): New function hook to validate
2023 attribute((option(...))) arguments.
2024 (ix86_valid_option_attribute_tree): New function that is common
2025 code between attribute((option(...))) and #pragma GCC option
2026 support that parses the options and returns a tree holding the options.
2027 (ix86_valid_option_attribute_inner_p): New helper function for
2028 ix86_valid_option_attribute_tree.
2029 (ix86_can_inline_p): New function hook to decide if one function
2030 can inline another on a target specific basis.
2031 (ix86_set_current_function); New function hook to switch target
2032 options if the user used attribute((option(...))) or #pragma GCC
2034 (ix86_tune_defaulted): Move to static file scope from
2036 (ix86_arch_specified): Ditto.
2037 (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
2039 (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
2040 (OPTION_MASK_ISA_ABM_SET): Ditto.
2041 (OPTION_MASK_ISA_POPCNT_SET): Ditto.
2042 (OPTION_MASK_ISA_CX16_SET): Ditto.
2043 (OPTION_MASK_ISA_SAHF_SET): Ditto.
2044 (OPTION_MASK_ISA_AES_UNSET): Ditto.
2045 (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
2046 (OPTION_MASK_ISA_ABM_UNSET): Ditto.
2047 (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
2048 (OPTION_MASK_ISA_CX16_UNSET): Ditto.
2049 (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
2050 (struct ptt): Move to static file scope from override_options.
2051 (processor_target_table): Ditto.
2053 (ix86_handle_option): Add support for options that are now isa options.
2054 (override_options): Add support for declaring functions that
2055 support different target options than were specified on the
2056 command line. Move struct ptt, processor_target_table, cpu_names,
2057 ix86_tune_defaulted, ix86_arch_specified to static file scope.
2058 Add bool argument. Fix up error messages so the appropriate error
2059 is given for either command line or attribute.
2060 (ix86_previous_fndecl): New static to remember previous function
2061 declaration to see if we need to change target options.
2062 (ix86_builtins_isa): New array to record the ISA of each builtin
2064 (def_builtin): Always create the builtin function, even if the
2065 current ISA doesn't support it.
2066 (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
2067 tests for those builtins.
2068 (ix86_init_builtins): Remove TARGET_MMX test for calling
2069 ix86_init_mmx_sse_builtins.
2070 (ix86_expand_builtin): If the current ISA doesn't support a given
2071 builtin, signal an error.
2072 (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
2073 (TARGET_SET_CURRENT_FUNCTION): Ditto.
2074 (TARGET_OPTION_SAVE): Ditto.
2075 (TARGET_OPTION_RESTORE): Ditto.
2076 (TARGET_OPTION_PRINT): Ditto.
2077 (TARGET_CAN_INLINE_P): Ditto.
2079 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
2081 * c-typeck.c (build_external_ref): Don't call assemble_external.
2082 * final.c (output_operand): Call assemble_external.
2084 2008-07-21 DJ Delorie <dj@redhat.com>
2086 * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
2087 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
2089 2008-07-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2091 * config/spu/spu.md ("div<mode>3"): Convert into expander, move
2092 original insn and splitter contents into ...
2093 ("*div<mode>3_fast"): ... this new pattern. Enable only if
2094 flag_unsafe_math_optimizations. Add dummy scratch register.
2095 ("*div<mode>3_adjusted"): New insn and splitter. Enable only if
2096 !flag_unsafe_math_optimizations. Returns number with next
2097 highest magnitude if this is still less or equal to the true
2098 quotient in magnitude.
2100 2008-07-21 Rafael Avila de Espindola <espindola@google.com>
2102 * Makefile.in: Replace toplev.h with TOPLEV_H.
2103 * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
2104 * c-lex.c (fe_file_change): Don't set in_system_header.
2105 * c-parser.c (c_token): Remove in_system_header.
2106 (c_lex_one_token): Don't set in_system_header.
2107 (c_parser_set_source_position_from_token): Don't set in_system_header.
2108 * diagnostic.c (diagnostic_report_diagnostic): Use location from
2111 * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
2112 * flags.h (in_system_header): Remove.
2113 * function.c (saved_in_system_header): Remove.
2114 (push_cfun): Don't set in_system_header.
2115 (pop_cfun): Don't set in_system_header.
2116 (push_struct_function): Don't set in_system_header.
2117 * input.h (expanded_location): Add sysp.
2118 (in_system_header_at): New.
2119 (in_system_header): New.
2120 * toplev.c (in_system_header): Remove.
2121 * toplev.h: Include input.h
2123 * tree-cfg.c (execute_warn_function_return): Call warning_at.
2124 * tree-ssa.c (warn_uninit): Call warning_at.
2125 (warn_uninitialized_var): Update calls to warn_uninit.
2126 (warn_uninitialized_phi): Update calls to warn_uninit.
2127 * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
2128 (expand_location): Initialize xloc.sysp.
2129 * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
2130 (tree_decl_with_vis): Remove in_system_header_flag.
2132 2008-07-21 Andreas Krebbel <krebbel1@de.ibm.com>
2135 * recog.c (asm_operand_ok): Change the order of the extra
2136 memory constraint checks.
2138 2008-07-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
2141 * tree-switch-conversion.c (build_one_array): Call
2142 varpool_mark_needed_node and varpool_finalize_decl
2143 instead of assemble_variable.
2145 2008-07-19 Jan Hubicka <jh@suse.cz>
2147 * cgraph.c (cgraph_add_new_function): Do early local passes.
2148 * tree-nrv.c (gate_pass_return_slot): New gate.
2149 (pass_nrv): Add the gate.
2150 * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
2152 (coalesce_ssa_name): Coalesce SSA names.
2153 * tree-ssa-live.c (remove_unused_locals): Be more conservative when
2154 not optimizing so unused user vars remains visible.
2155 * common.opt (flag_tree_ter): Always enable by default.
2156 * tree-ssa-ter.c: Include flags.h
2157 (is_replaceable_p): Check that locations match; when aliasing is missing
2158 be conservative about loads.
2159 * tree-optimize.c (gate_init_datastructures): Remove.
2160 (pass_init_datastructures): New.
2161 * passes.c: Reorder passes so we always go into SSA.
2163 2008-07-19 Jan Hubicka <jh@suse.cz>
2165 * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
2166 * doc/invoke.texi (--combine): Likewise.
2167 (-finline-functions-called-once): Update levels when enabled.
2168 (-funit-at-a-time): Document new behaviour.
2169 (-ftoplevel-reorder): Document that it is enabled -O0 and imply
2170 -fno-section-anchors when disabled explicitly.
2171 (inline params): They are not ignored now.
2172 (precompiled headers): Remove unit-at-a-time as being incompatible.
2173 * opts.c (decode_options): Handle unit-at-a-time as alias;
2174 imply -fno-section-anchors when toplevel reorder is disabled
2176 * common.opt (ftoplevel-reorder): Set default value to 2.
2177 (funit-at-a-time): Set default value to 1.
2178 * config/rs6000/rs6000.c (optimization_options): Set section anchors
2181 2008-07-19 Jan Hubicka <jh@suse.cz>
2183 * builtins.c (expand_builtin_int_roundingfn,
2184 expand_builtin_int_roundingfn_2): Do not take subtarget argument;
2187 2008-07-19 Richard Guenther <rguenther@suse.de>
2190 * tree-ssa-sccvn.h (get_constant_value_id): Declare.
2191 * tree-ssa-sccvn.c (get_constant_value_id): New function.
2192 * tree-ssa-pre.c (get_expr_value_id): For newly created
2193 constant value-ids make sure to add the expression to its
2196 2008-07-19 Jakub Jelinek <jakub@redhat.com>
2199 * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
2200 return value of the builtin is ignored.
2202 2008-07-19 Olivier Hainque <hainque@adacore.com>
2204 * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
2205 bits, a C conformant malloc implementation has to provide.
2206 * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
2208 2008-07-19 Joseph Myers <joseph@codesourcery.com>
2212 * reload.c (find_reloads_subreg_address): Only reload address if
2213 reloaded == 0, not for reloaded != 1.
2216 2008-07-16 Joseph Myers <joseph@codesourcery.com>
2217 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
2218 (m32c_legitimate_address_p): Handle "++rii" addresses created by
2219 m32c_legitimize_reload_address.
2221 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
2222 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
2223 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
2225 2008-07-19 Olivier Hainque <hainque@adacore.com>
2227 * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
2228 argument, saying whether nested array are to be collapsed
2229 into a single array type DIE with multiple subscripts.
2230 (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
2231 issues, centralize the nested array types collapsing control and
2232 disable the transformation for Ada.
2234 2008-07-18 Uros Bizjak <ubizjak@gmail.com>
2237 * config/i386/i386.md (x86_64_shift_adj_1): Rename from
2239 (x86_64_shift_adj_2): New expander.
2240 (x86_64_shift_adj_3): Ditto.
2241 * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
2242 to split TImode operands.
2243 (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
2244 (ix86_split_lshr): Ditto.
2246 2008-07-18 Kris Van Hees <kris.van.hees@oracle.com>
2248 * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
2249 and __CHAR32_TYPE__.
2250 * c-typeck.c (digest_init): Support char16_t and char32_t.
2251 (set_nonincremental_init_from_string): Idem.
2253 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
2256 * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
2257 PREFERRED_STACK_BOUNDARY.
2258 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2260 2008-07-18 H.J. Lu <hongjiu.lu@intel.com>
2263 * function.c (locate_and_pad_parm): Cap boundary earlier.
2265 2008-07-17 Julian Brown <julian@codesourcery.com>
2267 * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
2268 no-op for targets which don't use DLLs.
2270 2008-07-17 Martin Jambor <mjambor@suse.cz>
2272 * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
2273 that nodes are relevant by examining the node->analyzed flag.
2274 (ipcp_init_stage): Check which nodes are relevant, assert that the
2275 relevant ones are also required.
2276 (ipcp_propagate_stage): Check on the side arrays are properly
2278 (ipcp_print_all_jump_functions): Make sure not to touch any node
2279 that is not analyzed or an edge that does not have a corresponding
2280 entry in the on-the-side vectors.
2281 (ipcp_function_scale_print): Likewise.
2282 (ipcp_update_callgraph): Check that the node is relevant.
2283 (ipcp_insert_stage): Check that the node is relevant. Check there is
2284 an info for every node and edge.
2285 * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
2286 (ipa_print_all_tree_maps): Likewise and a new variable info.
2287 (ipa_print_all_params_modified): Likewise.
2288 * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
2290 2008-07-17 Roman Zippel <zippel@linux-m68k.org>
2293 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
2295 2008-07-17 Paolo Bonzini <bonzini@gnu.org>
2297 PR rtl-optimization/36753
2298 * fwprop.c (use_killed_between): Don't shortcut
2299 single-definition global registers.
2301 2008-07-16 Jan Hubicka <jh@suse.cz>
2303 * cgraph.h (varpool_empty_needed_queue): Declare.
2304 * cgraphunit.c (output_in_order): Mark all variables as needed;
2306 * varpool.c (varpool_assemble_node): Update debug queue.
2307 (varpool_assemble_pending_decls): Don't do it here.
2308 (varpool_empty_needed_queue): New function.
2310 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2312 * recog.c (peephole2_optimize): Fix formatting.
2314 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2316 * c-pch.c (get_ident): Avoid C++ keywords.
2317 * combine-stack-adj.c (single_set_for_csa): Likewise.
2318 * final.c (asm_insn_count, final_scan_insn, alter_subreg,
2319 output_asm_insn): Likewise.
2320 * reload.c (push_secondary_reload, find_reusable_reload,
2321 push_reload, combine_reloads, find_reloads,
2322 debug_reload_to_stream): Likewise.
2323 * reload.h (struct reload): Likewise.
2324 * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
2325 allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
2326 emit_output_reload_insns): Likewise.
2327 * targhooks.c (default_secondary_reload): Likewise.
2328 * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
2330 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2332 * recog.c (validate_change_1, validate_change,
2333 validate_unshare_change, validate_replace_rtx_1, struct
2334 funny_match, constrain_operands, peephole2_optimize): Avoid C++
2336 * reload.c (push_secondary_reload, secondary_reload_class,
2337 scratch_reload_class, find_valid_class, find_reusable_reload,
2338 push_reload, find_dummy_reload, find_reloads_address_1,
2339 find_reloads_address_part, find_equiv_reg): Likewise.
2340 * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
2341 choose_reload_regs): Likewise.
2342 * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
2344 * rtlhooks.c (gen_lowpart_if_possible): Likewise.
2345 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
2346 * sched-rgn.c (concat_INSN_LIST): Likewise.
2347 * stor-layout.c (mode_for_size, mode_for_size_tree,
2348 smallest_mode_for_size): Likewise.
2350 2008-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2352 * cfg.c (dump_reg_info): Avoid C++ keywords.
2353 * dwarf2asm.c (dw2_force_const_mem,
2354 dw2_asm_output_encoded_addr_rtx): Likewise.
2355 * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
2356 * expmed.c (expand_shift): Likewise.
2357 * global.c (find_reg): Likewise.
2358 * graph.c (draw_edge): Likewise.
2359 * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
2360 * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
2361 widen_clz, widen_bswap, expand_parity, expand_unop,
2362 emit_cmp_and_jump_insn_1): Likewise.
2363 * postreload.c (reload_cse_simplify_operands): Likewise.
2364 * ra.h (add_neighbor): Likewise.
2365 * reg-stack.c (remove_regno_note, change_stack): Likewise.
2366 * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
2367 record_reg_classes, copy_cost, record_address_regs,
2368 invalid_mode_change_p): Likewise.
2369 * regrename.c (regrename_optimize, scan_rtx_reg,
2370 dump_def_use_chain, find_oldest_value_reg,
2371 replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
2373 2008-07-16 David Edelsohn <edelsohn@gnu.org>
2375 * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
2376 MASK_POWERPC64 for power4 in previous commit.
2378 2008-07-16 Olivier Hainque <hainque@adacore.com>
2380 * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
2381 instead of bare conversion to cast const-ness away.
2383 2008-07-16 Anatoly Sokolov <aesok@post.ru>
2385 * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
2386 XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
2387 * config/xtensa/xtensa.c (xtensa_function_value): New function.
2388 (TARGET_FUNCTION_VALUE): Define.
2390 2008-07-16 David Edelsohn <edelsohn@gnu.org>
2392 * config/rs6000/rs6000.c (processor_target_table): Add
2393 MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
2395 2008-07-16 Joseph Myers <joseph@codesourcery.com>
2398 * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
2399 (m32c_legitimate_address_p): Handle "++rii" addresses created by
2400 m32c_legitimize_reload_address.
2402 2007-07-16 Rafael Avila de Espindola <espindola@google.com>
2404 * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
2405 DECL_IN_SYSTEM_HEADER in sync.
2407 2008-07-15 Daniel Berlin <dberlin@dberlin.org>
2409 * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
2410 * tree-ssa-pre.c (pre_expr_eq): Ditto
2411 (get_constant_for_value_id): Take a type as an argument.
2412 (fully_constant_expression): Pass in type.
2413 (find_or_generate_expression): Short circuit constant case.
2414 (create_expression_by_pieces): Remove special casing of
2416 (do_regular_insertion): Short circuit constant case.
2417 (do_partial_partial_insertion): Ditto.
2419 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
2422 * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
2424 2008-07-15 Bob Wilson <bob.wilson@acm.org>
2426 * config/xtensa/libgcc-xtensa.ver: New file.
2427 * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
2429 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2431 * df-problems.c (df_set_note): Avoid C++ keywords.
2432 * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
2433 * dse.c (record_store, remove_useless_values): Likewise.
2434 * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
2435 gen_reg_rtx_offset, operand_subword, change_address_1,
2436 change_address, adjust_address_1, offset_address,
2437 widen_memory_access, emit_copy_of_insn_after): Likewise.
2438 * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
2439 * fwprop.c (should_replace_address, propagate_rtx_1,
2440 propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
2442 * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
2443 gcse_emit_move_after, update_ld_motion_stores): Likewise.
2444 * lcm.c (compute_insert_delete, pre_edge_lcm,
2445 compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
2446 * lower-subreg.c (resolve_reg_notes): Likewise.
2447 * mode-switching.c (optimize_mode_switching): Likewise.
2449 2008-07-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2451 * bt-load.c (add_btr_def, migrate_btr_def,
2452 branch_target_load_optimize): Avoid C++ keywords.
2453 * caller-save.c (insert_restore, insert_save, insert_one_insn):
2455 * combine.c (subst, simplify_set, make_extraction,
2456 make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
2457 * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
2458 fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
2460 2008-07-15 Richard Guenther <rguenther@suse.de>
2463 * c-common.c (strict_aliasing_warning): Do not warn for
2464 TYPE_REF_CAN_ALIAS_ALL pointers.
2465 (c_common_get_alias_set): may_alias types are not special.
2466 * tree.c (build_pointer_type_for_mode): Look up the may_alias
2467 attribute and set can_ref_all accordingly.
2468 (build_reference_type_for_mode): Likewise.
2469 * doc/extend.texi (may_alias): Clarify.
2471 2008-07-15 Kaz Kojima <kkojima@gcc.gnu.org>
2474 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
2475 (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
2477 2008-07-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
2480 * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
2481 gcc_assert, instead call output_operand_lossage.
2483 2008-07-15 Kai Tietz <kai.tietz@onevision.com>
2485 * builtins.c (std_canonical_va_list): Treat structure based
2488 2008-07-15 Ben Elliston <bje@au.ibm.com>
2490 * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
2492 2007-07-14 Rafael Avila de Espindola <espindola@google.com>
2494 * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
2497 2008-07-14 Jan Hubicka <jh@suse.cz>
2499 * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
2500 * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
2501 fix predicates and constraints.
2502 * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
2503 * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
2505 2008-07-14 Doug Kwan <dougkwan@google.com>
2507 * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
2508 additional option file arm/eabi.opt.
2509 * config/arm/eabi.h (File): New configuration file for EABI targets.
2510 * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
2511 SUBSUBTARGET_EXTRA_SPECS.
2512 (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
2513 * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
2514 from STARTFILE_SPEC so that it can be referenced in an override.
2515 (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
2516 (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
2517 can be referenced in an override.
2518 (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
2519 * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
2520 so that it can be referenced in an override.
2521 (LINK_SPEC): Use BPABI_LINK_SPEC.
2522 * config/arm/eabi.opt (File): New.
2524 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2526 * Makefile.in (TARGET_DEF_H): Add targhooks.h.
2527 (FIXED_VALUE_H): New variable.
2528 (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
2529 input.h, fixed-value.h.
2530 (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
2531 (BASIC_BLOCK_H): Use $(BITMAP_H).
2532 (FUNCTION_H): Add varray.h.
2533 (IPA_REFERENCE_H): Use $(BITMAP_H).
2534 (CGRAPH_H): Add $(BASIC_BLOCK_H).
2535 (DF_H): Use $(BITMAP_H).
2536 (GGC_H): Add statistics.h.
2538 (INSN_ATTR_H): Use it.
2539 (SYSTEM_H): Add safe-ctype.h, filenames.h.
2541 (SYMTAB_H): Add $(OBSTACK_H).
2542 (CPP_INTERNAL_H): New.
2543 (TREE_DUMP_H): Add tree-pass.h.
2544 (TREE_FLOW_H): Use $(BITMAP_H)
2545 (PRETTY_PRINT_H): Use $(INPUT_H).
2546 (EBITMAP_H): Rename from typo-ed EBIMAP_H.
2549 (many object files): Fix lots of header dependencies throughout.
2551 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2553 * Makefile.in (write_entries_to_file, write_entries_to_file_split):
2555 (s-gtyp-input): Use them to write tmp-gi.list.
2556 (echo_to_gi.list): Remove.
2558 2008-07-14 Richard Guenther <rguenther@suse.de>
2560 * tree-ssa-sccvn.c (pre_info): Remove.
2561 (switch_to_PRE_table): Likewise.
2562 (free_scc_vn): Do not clear SSA_NAME_VALUE. Do not free pre_info.
2563 (set_hashtable_value_ids): Do not create value-ids for the
2565 (run_scc_vn): Remove double test. Remove bogus special-case
2566 in value-number printing.
2567 * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
2568 * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
2570 * tree-flow-inline.h (get_value_handle): Remove.
2571 * tree-flow.h (get_value_handle): Remove.
2573 2008-07-14 Martin Jambor <mjambor@suse.cz>
2575 * tree-switch-conversion.c (gen_inbound_check): Make sure the type
2576 in which we generate arithmetics is not a subrange.
2578 2008-07-14 Martin Jambor <mjambor@suse.cz>
2580 * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
2582 2008-07-14 Richard Guenther <rguenther@suse.de>
2584 * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
2586 2008-07-14 Andreas Krebbel <krebbel1@de.ibm.com>
2589 * config/s390/s390.c: (s390_secondary_reload): Add a secondary
2590 reload for symbol refs moved to r0 with -fPIC.
2591 (legitimize_pic_address): Use the target register as temporary
2593 (emit_symbolic_move): Adjust comment.
2594 * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
2597 2008-07-14 Ben Elliston <bje@au.ibm.com>
2599 * c-common.h (C_CPP_HASHNODE): New macro.
2600 * coretypes.h (struct cpp_token): Forward declare.
2601 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
2602 the context-sensitive keyword method.
2603 * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
2604 __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
2605 expand_bool_pixel): New.
2606 (altivec_categorize_keyword): New function.
2607 (init_vector_keywords): New function.
2608 (rs6000_macro_to_expand): Likewise.
2609 (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
2610 compiling an ISO C dialect.
2612 2008-07-13 Daniel Berlin <dberlin@dberlin.org>
2614 * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
2615 (create_expression_by_pieces): Fix typo.
2616 (do_regular_insertion): Use debug counter here too.
2618 2008-07-14 Hans-Peter Nilsson <hp@axis.com>
2621 * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
2622 CONST_OK_FOR_LETTER_P. All port-local users changed.
2623 (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
2624 implement Kp matching power-of-two.
2625 (CONSTRAINT_LEN): Define to match.
2626 * config/cris/cris.md: Replace all use of constraint K with Kc.
2627 ("*btst*): Use Kp for operand 0 of last alternative.
2629 2008-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2632 * tree-call-cdce.c (check_target_format): Accept MIPS single, double
2635 2008-07-13 Jan Hubicka <jh@suse.cz>
2637 * tree.c (decl_assembler_name_equal): Expect assembler name of decl
2640 2008-07-13 Richard Guenther <rguenther@suse.de>
2643 * langhooks.c (lhd_print_error_function): Deal with recursive
2646 2008-07-12 Jan Hubicka <jh@suse.cz>
2648 * cgraph.c (assembler_name_hash): New static var.
2649 (hash_node_by_assembler_name, eq_assembler_name): New.
2650 (cgraph_node_for_asm): Use hashtable.
2651 (cgraph_remove_node): Maintain hashtable.
2652 (change_decl_assembler_name): Sanity check that names are not changing
2653 after aliasing was processed.
2654 * cgraph.h (varpoon_node): Add next GGC marker.
2655 * tree.c (decl_assembler_name_equal): Constify.
2656 (decl_assembler_name_hash): New.
2657 * tree.h (decl_assembler_name_equal): Constify.
2658 (decl_assembler_name_hash): Update.
2660 2008-07-12 David Daney <ddaney@avtrex.com>
2662 * config/mips/driver-native.c (host_detect_local_cpu): Handle
2665 2008-07-12 Richard Sandiford <rdsandiford@googlemail.com>
2667 * doc/md.texi: Document the MIPS "v" constraint.
2668 * config/mips/mips.h (reg_class): Revert last change.
2669 (REG_CLASS_NAMES): Likewise.
2670 (REG_CLASS_CONTENTS): Likewise.
2671 * config/mips/mips.c (mips_regno_to_class): Likewise.
2672 * config/mips/constraints.md (v): Likewise, but add documentation.
2673 Add a comment to say that this constraint should not be used in
2676 2008-07-11 DJ Delorie <dj@redhat.com>
2678 * config/h8300/h8300.md (length): Fix branch offset limit.
2680 2008-07-11 Anatoly Sokolov <aesok@post.ru>
2682 * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
2683 * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
2684 (avr_hard_regno_scratch_ok): New function.
2685 (TARGET_HARD_REGNO_SCRATCH_OK): Define.
2686 * config/avr/avr.md (all peepholes that request a scratch register):
2687 Remove avr_peep2_scratch_safe use.
2689 2008-07-11 Tom Tromey <tromey@redhat.com>
2690 Ian Lance Taylor <iant@google.com>
2692 * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
2693 (struct c_common_resword): Define.
2694 (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
2695 (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
2696 (c_common_reswords, num_c_common_reswords): Declare.
2697 * c-common.c (c_common_reswords): New global const array.
2698 (num_c_common_reswords): New const int.
2699 * c-parser.c (struct resword, reswords): Don't define.
2700 (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
2701 (c_parse_init): Clarify mask code. Use c_common_reswords rather
2702 than reswords. If warning about C++ keywords, give them a special
2704 (c_lex_one_token): Warn about C++ keywords. Call
2705 objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
2706 (c_parser_external_declaration): Look for RID_xxx rather than
2707 RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
2708 (c_parser_statement_after_labels): Likewise.
2709 (c_parser_objc_class_instance_variables): Likewise.
2710 (c_parser_objc_class_declaration): Likewise.
2711 (c_parser_objc_try_catch_statement): Likewise.
2712 * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
2713 (declspecs_add_type): Likewise.
2715 2008-07-11 Angelo Graziosi <angelo.graziosi@alice.it>
2717 * ggc-page.c (alloc_page):
2718 Substituting xmalloc, xcalloc with
2719 XNEWVEC and XCNEWVAR macros which add the
2722 2008-07-11 Richard Guenther <rguenther@suse.de>
2724 PR tree-optimization/36765
2725 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
2726 aliases from HEAP vars to SMTs.
2728 2008-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2730 * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
2731 * configure.ac (loose_warn): Move -Wc++-compat from here...
2732 (strict_warn): ...to here.
2733 * configure: Regenerate.
2735 2008-07-10 Joseph Myers <joseph@codesourcery.com>
2737 * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
2738 i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
2739 m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
2740 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
2741 excluding more specific h8300-*-* and sh-*-* targets.
2743 2008-07-10 Daniel Berlin <dberlin@dberlin.org>
2745 * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
2747 (execute_pre): Call loop_optimizer_finalize in early exit.
2749 2008-07-10 Jakub Jelinek <jakub@redhat.com>
2752 * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
2753 uids in the bitmap, not just VAR_DECL uids.
2755 PR rtl-optimization/36419
2756 * combine-stack-adj.c (adjust_frame_related_expr): New function.
2757 (combine_stack_adjustments_for_block): Call it if needed. Delete
2759 * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
2760 DW_CFA_GNU_args_size if CSA pass merged some adjustments into
2761 prologue sp adjustment.
2763 2008-07-10 Peter Maydell <pmaydell@chiark.greenend.org.uk>
2766 * opts.c (print_ignored_options): Report postponed diagnostics for
2767 unknown -Wno-* options as warnings, not errors.
2768 (postpone_unknown_option_error): Renamed to...
2769 (postpone_unknown_option_warning): ... this.
2771 2008-07-09 Doug Kwan <dougkwan@google.com>
2774 2008-07-08 Doug Kwan <dougkwan@google.com>
2776 * config/arm/arm.opt (mandroid): New option.
2777 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2778 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2780 (CC1PLUS_SPEC): Same.
2782 (STARTFILE_SPEC): Same.
2783 (ENDFILE_SPEC): Same.
2784 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2787 2008-07-09 Richard Sandiford <rdsandiford@googlemail.com>
2790 * config/mips/mips.h (reg_class): Remove V1_REG.
2791 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
2792 * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
2794 (mips_get_tp): New function.
2795 (mips_legitimize_tls_address): Use it.
2796 * config/mips/constraints.md (v): Delete.
2797 * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
2798 (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
2799 After reload, split into a move and ...
2800 (*tls_get_tp_<mode>_split): ...this new instruction.
2802 2008-07-09 David Daney <ddaney@avtrex.com>
2804 * config/mips/driver-native.c: Include coretypes.h and tm.h.
2806 2008-07-09 Jakub Jelinek <jakub@redhat.com>
2808 * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
2809 (push_gimplify_context): Don't allocate temp_htab nor c itself here.
2811 (pop_gimplify_context): Check c->temp_htab instead of optimize whether
2812 htab_delete should be called. Don't free c.
2813 (lookup_tmp_var): Create temp_htab lazily.
2814 (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2815 gimplify_body, force_gimple_operand): Adjust push_gimplify_context
2817 * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2818 lower_omp_ordered, lower_omp_critical, lower_omp_for,
2819 create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
2820 * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
2821 * tree-sra.c (generate_element_init): Likewise.
2822 * tree-mudflap.c (execute_mudflap_function_ops,
2823 execute_mudflap_function_decls): Likewise.
2824 * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
2825 * tree-gimple.h (struct gimplify_ctx): New type.
2826 (push_gimplify_context): Adjust prototype.
2828 2008-07-09 Daniel Berlin <dberlin@dberlin.org>
2830 * tree-ssa-pre.c (phi_translate_1): Update placement of
2833 2008-07-09 Anatoly Sokolov <aesok@post.ru>
2835 * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
2836 * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
2837 (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
2838 * targhooks.c (default_hard_regno_scratch_ok): New function.
2839 * targhooks.h (default_hard_regno_scratch_ok): Declare function.
2840 * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
2841 * recog.c: Include "target.h".
2842 (peep2_find_free_register): Add check for global regs. Add target
2844 * Makefile.in (recog.o): Depend on target.h.
2846 2008-07-09 Kaz Kojima <kkojima@gcc.gnu.org>
2848 * config/sh/sh.c (sh_canonical_va_list_type): New.
2849 (TARGET_CANONICAL_VA_LIST_TYPE): Define.
2851 2008-07-09 Raksit Ashok <raksit@google.com>
2853 * doc/invoke.texi (Option Summary): Mention new option
2854 -Wdisallowed-function-list=...
2855 (Warning Options): Document -Wdisallowed-function-list=...
2856 * common.opt (Wdisallowed-function-list=): New flag.
2857 * flags.h (warn_disallowed_functions): External definition of new
2858 boolean warning flag.
2859 (warn_if_disallowed_function_p): Declare new function.
2860 * opts.c (warning_disallowed_functions): New static variable.
2861 (warn_disallowed_functions): New boolean warning flag.
2862 (warn_if_disallowed_function_p): New function.
2863 (add_comma_separated_to_vector): Rename
2864 add_instrument_functions_exclude_list to this.
2865 (common_handle_option): Handle new option. Rename calls to
2866 add_instrument_functions_exclude_list into calls to
2867 add_comma_separated_to_vector.
2868 * c-parser.c (c_parser_postfix_expression_after_primary): New warning
2869 based on flag warn_disallowed_functions.
2871 2008-07-09 Christian Bruel <christian.bruel@st.com>
2873 * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
2874 instead of get_attr_length.
2876 2008-07-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2878 * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
2880 * genemit.c (gen_insn): Likewise.
2881 * gengtype.c (note_def_vec): Likewise.
2882 * gengtype.h (note_def_vec): Likewise.
2883 * genoutput.c (struct data, output_insn_data, process_template,
2884 gen_expand, gen_split, note_constraint): Likewise.
2885 * genrecog.c (new_decision, add_to_sequence, factor_tests,
2886 make_insn_sequence): Likewise.
2887 * gensupport.c (record_insn_name): Likewise.
2889 2008-07-08 Doug Kwan <dougkwan@google.com>
2891 * config/arm/arm.opt (mandroid): New option.
2892 * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2893 (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2895 (CC1PLUS_SPEC): Same.
2897 (STARTFILE_SPEC): Same.
2898 (ENDFILE_SPEC): Same.
2899 (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2902 2008-07-08 Raksit Ashok <raksit@google.com>
2904 * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
2905 (set_storage_via_setmem): Fix expected_align parameter.
2906 * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
2907 missing from the list.
2908 * doc/md.texi (movmem): Explicitly state that expected alignment is
2909 to be expressed in bytes.
2910 (setmem): Explicitly state that expected alignment is to be expressed
2913 2008-07-08 Joseph Myers <joseph@codesourcery.com>
2915 * reload.c (find_reloads_subreg_address): Do not require validity
2916 of address in original mode before reloading address.
2918 2008-07-07 Tianwei Sheng <tianweis@google.com>
2920 * df-core.c (df_remove_problem): Adjust the access to avoid out of
2921 bounds array access.
2923 2008-07-08 Jakub Jelinek <jakub@redhat.com>
2925 * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
2927 2008-07-05 Daniel Berlin <dberlin@dberlin.org>
2929 Fix PR tree-optimization/23455
2930 Fix PR tree-optimization/35286
2931 Fix PR tree-optimization/35287
2932 * Makefile.in (OBJS-common): Remove tree-vn.o.
2933 (tree-vn.o): Remove.
2934 * dbgcnt.def: Add treepre_insert debug counter.
2935 * gcc/tree-flow.h (add_to_value): Updated for other changes.
2936 (debug_value_expressions): Ditto.
2937 (print_value_expressions): Ditto.
2938 * tree-pretty-print.c (dump_generic_node): Updated for
2939 VALUE_HANDLE removal.
2940 * tree-ssa-dom.c (record_equality): Ditto.
2941 (cprop_operand): Ditto.
2942 (lookup_avail_expr): Ditto.
2943 * tree-ssa-threadedge.c
2944 (record_temporary_equivalences_from_stmts_at_dest): Ditto.
2945 (simplify_control_stmt_condition): Ditto.
2946 * tree.c (tree_code_size): Ditto.
2947 (tree_node_structure): Ditto.
2948 (iterative_hash_expr): Ditto.
2950 * tree.h (VALUE_HANDLE_ID): Ditto.
2951 (VALUE_HANDLE_EXPR_SET): Ditto.
2952 (struct tree_value_handle): Ditto.
2953 (union tree_node): Ditto.
2954 * treestruct.def: Ditto.
2955 * tree-vn.c: Removed.
2956 * tree-ssa-pre.c: Rewritten entirely.
2957 * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
2958 (constant_value_ids): Ditto.
2959 (vn_nary_op_t): Moved to header.
2961 (vn_reference_op_t): Ditto
2962 (vn_reference_t): Ditto.
2963 (next_value_id): New variable.
2964 (VN_INFO): Add an assert.
2965 (vn_constant_eq): New function.
2966 (vn_constant_hash): Ditto.
2967 (get_or_alloc_constant_value_id): Ditto.
2968 (value_id_constant_p): Ditto.
2969 (vn_reference_compute_hash): De-staticify.
2970 (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
2971 Disable some code with a FIXME. Remove VALUE_HANDLE use.
2972 (valueize_refs): Update opcode if it changes from ssa name to constant.
2973 (vn_reference_lookup_1): Add new argument.
2974 (vn_reference_lookup): Ditto.
2975 (vn_reference_lookup_pieces): New function.
2976 (vn_reference_insert): Add return type. Modify to deal with value ids.
2977 (vn_reference_insert_pieces): New function.
2978 (vn_nary_op_compute_hash): De-staticify.
2979 (vn_nary_op_eq): Ditto.
2980 (vn_nary_op_lookup_pieces): New function.
2981 (vn_nary_op_lookup): Add new argument.
2982 (vn_nary_op_insert_pieces): New function.
2983 (vn_nary_op_insert): Add return type. Modify to deal with value ids.
2984 (vn_phi_insert): Ditto.
2985 (visit_unary_op): Update for callee changes.
2986 (visit_binary_op): Ditto.
2987 (visit_reference_op_load): Ditto.
2988 (visit_reference_op_store): Ditto.
2989 (init_scc_vn): Init next_value_id, constant_to_value_id and
2991 (free_scc_vn): Free them.
2992 (set_hashtable_value_ids): New function.
2993 (run_scc_vn): Use it.
2994 (get_max_value_id): New function.
2995 (get_next_value_id): Ditto.
2996 (expressions_equal_p): Moved from tree-vn.c
2997 (sort_vuses): Ditto.
2998 (sort_vuses_heap): Ditto.
2999 * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
3001 * tree.c (iterative_hash_hashval_t): Made non-static
3002 * tree.h (iterative_hash_hashval_t): Declare it.
3004 2008-07-08 Martin Jambor <mjambor@suse.cz>
3006 * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
3007 instead of ipa_create_node_params.
3008 (ipcp_driver): Allocate infos with ipa_check_create_node_params and
3009 ipa_check_create_edge_args, free them with
3010 free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
3012 * ipa-prop.c: Include flags.h and tree-inline.h.
3013 (ipa_node_params_vector): New variable.
3014 (ipa_edge_args_vector): New variable.
3015 (edge_removal_hook_holder): New variable.
3016 (node_removal_hook_holder): New variable.
3017 (edge_duplication_hook_holder): New variable.
3018 (node_duplication_hook_holder): New variable.
3019 (ipa_detect_param_modifications): Check for presence of modified flags.
3020 (ipa_compute_jump_functions): Check for presence of jump functions.
3021 (ipa_free_edge_args_substructures): New function.
3022 (ipa_create_node_params): Removed.
3023 (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
3024 (ipa_free_node_params_substructures): New function.
3025 (ipa_free_all_node_params): Changed to deallocate the on-the-side
3027 (ipa_edge_removal_hook): New function.
3028 (ipa_node_removal_hook): New function.
3029 (duplicate_array): New function.
3030 (ipa_edge_duplication_hook): New function.
3031 (ipa_node_duplication_hook): New function.
3032 (ipa_register_cgraph_hooks): New function.
3033 (ipa_unregister_cgraph_hooks): New function.
3034 (free_all_ipa_structures_after_ipa_cp): New function.
3036 * ipa-prop.h: Include vec.h.
3037 (ipa_node_params_t): New typedef with vector types for it.
3038 (ipa_edge_args_t): New typedef with vector types for it.
3039 (IPA_NODE_REF): Changed to access an on-the-side vector.
3040 (IPA_EDGE_REF): Changed to access an on-the-side vector.
3041 (ipa_check_create_node_params): New function.
3042 (ipa_check_create_edge_args): New function.
3044 * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h. Converted
3047 2008-07-07 Tom Tromey <tromey@redhat.com>
3049 * configure, config.in: Rebuilt.
3050 * configure.ac: Don't check for scandir or alphasort.
3052 2008-07-07 Joseph Myers <joseph@codesourcery.com>
3054 * config/arm/arm.c (arm_init_neon_builtins): Register built-in
3055 types immediately after creating them.
3057 2008-07-07 Joseph Myers <joseph@codesourcery.com>
3059 * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
3061 2008-07-07 Fernando Pereira <fernando@cs.ucla.edu>
3063 * tree-ssa-structalias.c (compute_points_to_sets): Add call to
3064 dump_constraint_graph.
3065 (dump_constraint_edge): New function.
3066 (dump_constraint_graph): New function.
3067 (debug_constraint_graph): New function.
3068 (dump_constraint): Removed useless comparison.
3069 * tree-ssa-structalias.h (dump_constraint_edge): Declare.
3070 (dump_constraint_graph): Declare.
3071 (debug_constraint_graph): Declare.
3072 * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
3074 2008-07-07 Kai Tietz <kai.tietz@onevision.com>
3076 * config/i386/i386.c (is_va_list_char_pointer): New.
3077 (ix86_va_start): Replace compare with ms_va_list_type_node
3078 by is_va_list_char_pointer.
3079 (ix86_gimplify_va_arg): Likewise.
3081 2008-07-07 Martin Jambor <mjambor@suse.cz>
3083 * cgraph.c (cgraph_edge_max_uid): New variable.
3084 (struct cgraph_edge_hook_list): New type.
3085 (struct cgraph_node_hook_list): New type.
3086 (struct cgraph_2edge_hook_list): New type.
3087 (struct cgraph_2node_hook_list): New type.
3088 (first_cgraph_edge_removal_hook): New variable.
3089 (first_cgraph_node_removal_hook): New variable.
3090 (first_cgraph_edge_duplicated_hook): New variable.
3091 (first_cgraph_node_duplicated_hook): New variable.
3092 (cgraph_add_edge_removal_hook): New function.
3093 (cgraph_remove_edge_removal_hook): New function.
3094 (cgraph_call_edge_removal_hooks): New function.
3095 (cgraph_add_node_removal_hook): New function.
3096 (cgraph_remove_node_removal_hook): New function.
3097 (cgraph_call_node_removal_hooks): New function.
3098 (cgraph_add_edge_duplication_hook): New function.
3099 (cgraph_remove_edge_duplication_hook): New function.
3100 (cgraph_call_edge_duplication_hooks): New function.
3101 (cgraph_add_node_duplication_hook): New function.
3102 (cgraph_remove_node_duplication_hook): New function.
3103 (cgraph_call_node_duplication_hooks): New function.
3104 (cgraph_create_edge): Assign to edge uid.
3105 (cgraph_remove_edge): Call edge removal hooks.
3106 (cgraph_node_remove_callees): Call edge removal hooks.
3107 (cgraph_node_remove_callers): Call edge removal hooks.
3108 (cgraph_remove_node): Call node removal hooks.
3109 (cgraph_clone_edge): Call edge duplication hooks.
3110 (cgraph_clone_node): Call node duplication hooks.
3112 * cgraph.h (cgraph_edge): New field uid.
3113 (cgraph_edge_hook): New type.
3114 (cgraph_node_hook): New type.
3115 (cgraph_2edge_hook): New type.
3116 (cgraph_2node_hook): New type.
3118 2008-07-07 Andreas Tobler <a.tobler@schweiz.org>
3120 * config.in: Regenerate.
3122 2008-07-07 Vladimir Prus <vladimir@codesourcery.com>
3124 * gcc.c (print_sysroot): New.
3125 (option_map, display_help, process_command): Handle the
3126 -print-sysroot option.
3127 (main): Print the sysroot if requested.
3128 * doc/invoke.texi (Debugging Options): Document -print-sysroot.
3130 2008-07-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3133 * unwind-pe.h (size_of_encoded_value): add attribute unused.
3135 2008-07-07 Daniel Jacobowitz <dan@codesourcery.com>
3137 * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
3138 (assign_parm_setup_block_p): Also check mode of entry_parm.
3140 2008-07-07 Richard Guenther <rguenther@suse.de>
3142 * tree-ssa-structalias.h (set_used_smts): Remove.
3143 * tree-ssa-structalias.c (used_smts): Likewise.
3144 (set_used_smts): Likewise.
3145 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
3146 call to set_used_smts.
3148 2008-07-07 Richard Guenther <rguenther@suse.de>
3150 * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
3151 (new_var_info): Set it to false.
3152 (solution_set_add): Correctly handle pointers outside a var and
3154 (type_safe): Treat variables with is_full_var properly.
3155 (do_sd_constraint): Likewise.
3156 (do_ds_constraint): Likewise.
3157 (process_constraint): Remove zeroing offset for !use_field_sensitive.
3158 (get_constraint_for_ptr_offset): New function.
3159 (get_constraint_for_component_ref): For addresses at least include
3160 the last field of the variable. Handle is_full_vars properly.
3161 (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
3162 (handle_ptr_arith): Remove.
3163 (find_func_aliases): Simplify assignment handling.
3164 (create_function_info_for): For parameter and result varinfos set
3166 (create_variable_info_for): Set is_full_var flag whenever we
3167 just created a single varinfo for a decl.
3168 (init_alias_vars): Initialize use_field_sensitive from
3169 max-fields-for-field-sensitive parameter.
3171 2008-07-07 Richard Guenther <rguenther@suse.de>
3173 PR tree-optimization/36713
3174 * tree-flow-inline.h (is_call_used): New function.
3175 * tree-nrv.c (dest_safe_for_nrv_p): Use it.
3176 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
3177 * tree-outof-ssa.c (create_temp): Set call-used flag if required.
3179 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
3181 * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
3183 2008-07-07 Mark Shinwell <shinwell@codesourcery.com>
3185 * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
3187 2008-07-07 Maxim Kuvyrkov <maxim@codesourcery.com>
3188 Nathan Sidwell <nathan@codesourcery.com>
3190 * config.gcc (m68k-*-linux*): Add with_arch. Add sysroot-suffix.h
3191 to tm_file. Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
3193 * config/m68k/t-linux: New.
3194 * doc/install.texi: Document m68k-*-linux is now multilibbed by
3197 2008-07-07 Nathan Sidwell <nathan@codesourcery.com>
3199 * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
3200 * config/m68k/m68k-devices.def: Remove multilibs that only differ
3203 2008-07-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3205 * gcc.c (execute): Fix -Wc++-compat warning.
3207 2008-07-06 H.J. Lu <hongjiu.lu@intel.com>
3210 * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
3211 constant for little endian.
3213 2008-07-06 Richard Sandiford <rdsandiford@googlemail.com>
3215 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
3216 mips_base_mips16 instead of TARGET_MIPS16.
3217 (mips_base_mips16): Declare.
3218 * config/mips/mips.c (mips_base_mips16): Make global.
3219 (was_mips16_p): Remove GTY marker.
3220 (was_mips16_pch_p): New variable.
3221 (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
3222 (mips_override_options): Force to non-MIPS16 mode initially.
3223 Do not complain about MIPS16 PIC incompatibilities here.
3224 Only allow -mgpopt if -mexplicit-relocs is in force for
3227 2008-07-06 Andreas Tobler <a.tobler@schweiz.org>
3229 * configure.ac: Check for caddr_t, define to char * if not defined.
3230 * configure: Regenerate.
3231 * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
3232 (mmap_gt_pch_use_address): Likewise.
3233 * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
3235 2008-07-06 Richard Guenther <rguenther@suse.de>
3237 * tree-ssa-structalias.c (struct variable_info): Remove has_union.
3238 (new_var_info): Deal with it.
3239 (solution_set_add): Likewise.
3240 (bitpos_of_field): Make signed, fix.
3241 (struct fieldoff): Remove type and decl fields. Make size field
3242 unsigned HOST_WIDE_INT. Add has_unknown_size and may_have_pointers
3244 (fieldoff_compare): Deal with it.
3245 (push_fields_onto_fieldstack): Remove has_union argument, glob
3246 adjacent non-pointer fields together.
3247 (create_function_info_for): Do not set has_union.
3248 (create_variable_info_for): Simplify.
3250 2008-07-06 Kai Tietz <kai.tietz@onevision.com>
3252 * config.gcc (extra_headers): Add cross-stdarg.h for target
3253 x86_64-*-* and i?86-*-*.
3254 * config/i386/cross-stdarg.h: New.
3255 * builtins.c (std_fn_abi_va_list): New.
3256 (std_canonical_va_list_type): New.
3257 (stabilize_va_list): Replace va_list_type_node use by
3258 mtarget.canonical_va_list_type.
3259 (gimplify_va_arg_expr): Likewise.
3260 (expand_builtin_va_copy): Replace va_list_type_node use by
3261 mtarget.fn_abi_va_list.
3262 * tree-sra.c (is_va_list_type): New helper.
3263 (decl_can_be_decomposed_p): Replace
3264 va_list_type_node use by is_va_list_type.
3265 * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
3266 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3267 * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
3268 * config/i386/i386-protos.h (ix86_get_valist_type): New.
3269 (ix86_enum_va_list): New.
3270 * config/i386/i386.c (sysv_va_list_type_node): New.
3271 (ms_va_list_type_node): New.
3272 (ix86_function_type_abi): Remove sorry.
3273 (ix86_build_builtin_va_list_abi): New.
3274 (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
3276 (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
3277 (ix86_init_builtins_va_builtins_abi): New.
3278 (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
3280 (ix86_handle_abi_attribute): New.
3281 (attribute_spec): Add sysv_abi and ms_abi.
3282 (ix86_fn_abi_va_list): New.
3283 (ix86_canonical_va_list_type): New.
3284 (ix86_enum_va_list): New.
3285 (TARGET_FN_ABI_VA_LIST): New.
3286 (TARGET_CANONICAL_VA_LIST_TYPE): New.
3287 * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
3288 * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
3289 (TARGET_CANONICAL_VA_LIST_TYPE): New.
3290 (TARGET_ENUM_VA_LIST): New.
3291 * expr.h (std_fn_abi_va_list): New.
3292 (std_canonical_va_list_type): New.
3293 * target-def.h (TARGET_FN_ABI_VA_LIST): New.
3294 (TARGET_CANONICAL_VA_LIST_TYPE): New.
3295 (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
3296 TARGET_CANONICAL_VA_LIST_TYPE.
3297 * target.h (struct gcc_target): Add fn_abi_va_list hook
3298 and canonical_va_list_type hook.
3300 2008-07-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
3302 * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
3303 integral and pointer types.
3305 2008-07-04 Roger Sayle <roger@eyesopen.com>
3307 * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
3308 the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
3310 2008-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
3313 * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
3315 2008-07-04 Jakub Jelinek <jakub@redhat.com>
3317 * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
3318 build_gimple_modify_stmt.
3319 (build_arrays, gen_inbound_check): Likewise. Force RHS to be
3320 gimple operand. Use fold_build* instead of build*.
3322 2008-07-04 Richard Guenther <rguenther@suse.de>
3324 * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
3325 (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
3326 properly to compute the reachability set if we do field-sensitive PTA.
3327 * invoke.texi (max-fields-for-field-sensitive): Document default.
3328 * opts.c (decode_options): Set max-fields-for-field-sensitive to
3329 100 for optimize >= 2.
3331 2008-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3333 * ggc-zone.c (lookup_page_table_if_allocated,
3334 set_page_table_entry, zone_find_object_size, alloc_small_page,
3335 alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
3336 new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
3337 -Wc++-compat and/or -Wcast-qual warnings.
3339 2008-07-04 Alan Modra <amodra@bigpond.net.au>
3342 * config/rs6000/rs6000.md (call, call_value): Don't arrange for
3343 pic_offset_table_rtx to be marked as used here.
3344 (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
3345 TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
3346 (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
3347 (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
3350 2008-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3352 * alloc-pool.c (hash_descriptor, eq_descriptor,
3353 alloc_pool_descriptor): Fix -Wc++-compat warnings.
3354 * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
3356 * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
3357 loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
3358 final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
3359 * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
3362 2008-07-03 Eric Botcazou <ebotcazou@adacore.com>
3364 * tree-flow.h (loop_only_exit_p): Declare.
3365 * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
3366 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
3367 the number of iterations if it is constant. Otherwise, if this is the
3368 only possible exit of the loop, use the conservative estimate on the
3369 number of iterations of the entire loop if available.
3371 2008-07-03 Richard Sandiford <rdsandiford@googlemail.com>
3373 * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
3374 * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
3375 Add synchronization functions.
3376 * config/sync.c: New file.
3377 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
3378 (LIBGCC_SYNC_CFLAGS): Likewise.
3380 2008-07-03 Uros Bizjak <ubizjak@gmail.com>
3383 * config/i386/i386.md (mode): Add TF to "mode" attribute.
3384 (*pushtf_sse): New insn pattern.
3385 (pushtf splitters): New splitters.
3387 2008-07-03 Michael Meissner <gnu@the-meissners.org>
3390 * predict.c (build_predict_expr): Use void_type_node for the tree
3391 type, instead of NULL_TREE.
3393 2008-07-03 H.J. Lu <hongjiu.lu@intel.com>
3395 * config/i386/i386.c (contains_aligned_value_p): Return true
3397 (ix86_data_alignment): Align TCmode to 128bits.
3398 (ix86_local_alignment): Likewise.
3400 2008-07-03 Andrew Haley <aph@redhat.com>
3403 * vec.h (VEC_TA): New.
3404 (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
3405 DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
3406 * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
3407 (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
3408 (C_COMMON_FIXED_TYPES): Remove first arg.
3409 (C_COMMON_FIXED_MODE_TYPES): Likewise.
3410 * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
3411 MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
3412 not to use empty macro arguments.
3414 2008-07-02 Joseph Myers <joseph@codesourcery.com>
3416 * config/alpha/vms_tramp.asm, config/arm/crti.asm,
3417 config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
3418 config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
3419 config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
3420 config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
3421 config/i386/sol2-gc1.asm, config/ia64/crti.asm,
3422 config/ia64/crtn.asm, config/m68hc11/larith.asm,
3423 config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
3424 config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
3425 config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
3426 config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
3427 config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
3428 config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
3429 config/rs6000/e500crtres64gpr.asm,
3430 config/rs6000/e500crtres64gprctr.asm,
3431 config/rs6000/e500crtrest32gpr.asm,
3432 config/rs6000/e500crtrest64gpr.asm,
3433 config/rs6000/e500crtresx32gpr.asm,
3434 config/rs6000/e500crtresx64gpr.asm,
3435 config/rs6000/e500crtsav32gpr.asm,
3436 config/rs6000/e500crtsav64gpr.asm,
3437 config/rs6000/e500crtsav64gprctr.asm,
3438 config/rs6000/e500crtsavg32gpr.asm,
3439 config/rs6000/e500crtsavg64gpr.asm,
3440 config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
3441 config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
3442 config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
3443 config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
3444 config/sparc/sol2-cn.asm: Remove .file directives.
3446 2008-07-02 Richard Sandiford <rdsandiford@googlemail.com>
3448 * resource.c (mark_referenced_resources): Look inside
3449 UNSPEC_VOLATILEs and ASM_INPUTs.
3451 2008-07-02 Ian Lance Taylor <iant@google.com>
3453 * rtlanal.c (add_reg_note): New function.
3454 * rtl.h (add_reg_note): Declare.
3455 * auto-inc-dec.c (attempt_change): Use add_reg_note.
3456 * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
3457 * builtins.c (expand_builtin_longjmp): Likewise.
3458 (expand_builtin_nonlocal_goto): Likewise.
3459 * calls.c (emit_call_1, expand_call): Likewise.
3460 * cfgexpand.c (add_reg_br_prob_note): Likewise.
3461 * cfglayout.c (fixup_reorder_chain): Likewise.
3462 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3463 (commit_one_edge_insertion): Likewise.
3464 * combine.c (move_deaths, distribute_notes): Likewise.
3465 * df-problems.c (df_set_note): Likewise.
3466 * emit-rtl.c (link_cc0_insns, try_split): Likewise.
3467 (set_unique_reg_note): Likewise.
3468 (emit_copy_of_insn_after): Likewise.
3469 * expr.c (expand_expr_real): Likewise.
3470 * gcse.c (add_label_notes): Likewise.
3471 * haifa-sched.c (create_check_block_twin): Likewise.
3472 * jump.c (mark_jump_label_1): Likewise.
3473 * loop-doloop.c (add_test, doloop_modify): Likewise.
3474 * loop-unswitch.c (compare_and_jump_seq): Likewise.
3475 * lower-subreg.c (move_eh_region_note): Likewise.
3476 * optabs.c (emit_libcall_block): Likewise.
3477 * predict.c (predict_insn): Likewise.
3478 (combine_predictions_for_insn): Likewise.
3479 * recog.c (peephole2_optimize): Likewise.
3480 * regmove.c (try_auto_increment): Likewise.
3481 * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
3482 * reload.c (find_reloads): Likewise.
3483 * reload1.c (fixup_eh_region_note): Likewise.
3484 (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
3485 * reorg.c (delete_prior_computation): Likewise.
3486 (delete_computation, dbr_schedule): Likewise.
3487 * config/pa/pa.c (legitimize_pic_address): Likewise.
3488 * config/sh/sh.c (sh_reorg): Likewise.
3490 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
3493 * config/libgcc-glibc.ver: Add %exclude.
3494 * config/m32r/libgcc-glibc.ver: Likwise.
3495 * config/s390/libgcc-glibc.ver: Likwise.
3496 * config/sh/libgcc-glibc.ver: Likwise.
3497 * config/sparc/libgcc-sparc-glibc.ver: Likwise.
3499 * config/i386/libgcc-glibc.ver: New.
3501 * config/i386/libgcc-x86_64-glibc.ver: Removed.
3503 2008-07-02 H.J. Lu <hongjiu.lu@intel.com>
3505 * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
3506 from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
3507 i[34567]86-*-linux*, x86_64-*-linux*. Add
3508 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
3509 i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
3510 x86_64-*-linux*. Add i386/t-linux to tmake_file for
3511 i[34567]86-*-linux*, x86_64-*-linux*.
3513 * libgcc-std.ver: Add empty GCC_4.4.0.
3515 * mkmap-symver.awk: Support multiple versions per symbol.
3517 * config/i386/i386.c (ix86_init_builtins): Always define
3518 __builtin_fabsq and __builtin_copysignq with fallbacks.
3519 (ix86_expand_builtin): Emit normal call for __builtin_fabsq
3520 and __builtin_copysignq if SSE2 isn't available.
3522 * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
3523 (LIBGCC2_TF_CEXT): Likwise.
3526 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
3528 * config/i386/sfp-machine.h: Moved to libgcc.
3530 * config/i386/sfp-machine.h: New.
3531 * config/i386/t-linux: Likwise.
3533 * config/i386/t-darwin: Remove softfp_wrap_start and
3535 * config/i386/t-darwin64: Likewise.
3537 * config/i386/t-fprules-softfp64: Renamed to ...
3538 * config/i386/t-fprules-softfp: This.
3540 * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
3541 and softfp_wrap_end.
3543 2008-07-02 Jason Merrill <jason@redhat.com>
3545 * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
3547 * tree.c (ctor_to_list): New fn.
3548 * tree.h: Declare it.
3549 (CONSTRUCTOR_ELT): New macro.
3550 (CONSTRUCTOR_NELTS): New macro.
3552 2008-07-02 Richard Guenther <rguenther@suse.de>
3554 * tree-ssa-structalias.c (struct variable_info): Reorder
3555 to fill padding on 64bit hosts. Make collapsed_to an int.
3556 (get_varinfo_fc): Deal with that.
3557 (new_var_info): Likewise.
3558 (collapse_rest_of_var): Likewise.
3560 2008-07-02 Joshua Sumali <jsumali@redhat.com>
3562 * doc/install.texi (--enable-java-home): Document.
3563 (--enable-aot-compile-rpm): Likewise.
3564 (--with-arch-directory): Likewise.
3565 (--with-os-directory): Likewise.
3566 (--with-origin-name): Likewise.
3567 (--with-arch-suffix): Likewise.
3568 (--with-jvm-root-dir): Likewise.
3569 (--with-jvm-jar-dir): Likewise.
3570 (--with-python-dir): Likewise.
3572 2008-07-02 Richard Guenther <rguenther@suse.de>
3574 * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
3575 from decls explicitly. Merge operand checking from tuples.
3577 2008-07-02 Martin Jambor <mjambor@suse.cz>
3579 * tree-switch-conversion.c: Included timevar.h which I forgot before.
3581 2008-07-02 Martin Jambor <mjambor@suse.cz>
3583 * tree-switch-conversion.c: Included timevar.h
3584 (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
3586 * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
3588 2008-07-02 Martin Jambor <mjambor@suse.cz>
3590 * tree-switch-conversion.c: Corrected various comments and
3592 (build_constructors): Fixed minor formatting mistakes.
3594 * invoke.texi (Optimize Options): Corrected the
3595 switch-conversion-max-branch-ratio parameter.
3597 2008-07-02 Mark Shinwell <shinwell@codesourcery.com>
3599 * final.c (asm_insn_count): Return zero for an empty asm body.
3601 2008-07-02 Richard Guenther <rguenther@suse.de>
3603 * bitmap.h (bitmap_set_bit): Return bool.
3604 (bitmap_clear_bit): Likewise.
3605 * bitmap.c (bitmap_set_bit): Return if the bit changed. Only
3606 write to the bitmap if it would.
3607 (bitmap_clear_bit): Likewise.
3608 * tree-ssa-structalias.c (add_implicit_graph_edge): Use
3609 bitmap_set_bit return value.
3610 (add_pred_graph_edge): Likewise.
3611 (add_graph_edge): Likewise.
3612 (do_sd_constraint): Likewise.
3613 (do_ds_constraint): Likewise.
3615 2008-07-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3617 * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
3618 Fix -Wc++-compat and/or -Wcast-qual warnings.
3619 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
3620 gen_regparm_prefix): Likewise.
3621 * vmsdbgout.c (write_modbeg, lookup_filename,
3622 vmsdbgout_source_line, vmsdbgout_init): Likewise.
3624 2008-07-02 Danny Smith <dannysmith@users.sourceforge.net>
3626 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
3627 defaults.h definition apply.
3629 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3631 * function.c (assign_parm_remove_parallels): New.
3632 (assign_parm_setup_block_p): Do not return true for non-BLKmode
3634 (assign_parm_setup_block): Do not handle them.
3635 (assign_parm_setup_reg, assign_parm_setup_stack): Call
3636 assign_parm_remove_parallels.
3638 2008-07-01 Daniel Jacobowitz <dan@codesourcery.com>
3640 * c-typeck.c (convert_for_assignment): Use
3641 vector_targets_convertible_p.
3642 * c-common.c (vector_targets_convertible_p): New.
3643 * c-common.h (vector_targets_convertible_p): New prototype.
3644 * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
3645 opaque_p_V2SI_type_node.
3647 2008-07-01 Steve Ellcey <sje@cup.hp.com>
3649 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
3652 2008-07-01 Uros Bizjak <ubizjak@gmail.com>
3654 * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
3655 TFmode constants via two element DImode vector for hosts with
3656 HOST_BITS_PER_WIDE_INT < 64.
3657 (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
3658 also for HOST_BITS_PER_WIDE_INT < 64.
3660 2008-07-01 Richard Guenther <rguenther@suse.de>
3662 PR tree-optimization/36666
3663 * tree-ssa-structalias.c (get_constraint_for_1): Declare.
3664 (get_constraint_exp_from_ssa_var): Split into ...
3665 (get_constraint_exp_for_temp): ... this ...
3666 (get_constraint_for_ssa_var): ... and that.
3667 Return constraint expressions for all touched sub-fields
3668 if the results address is not taken.
3669 (process_constraint): Remove assertion that aggregate
3670 assignments do not happen at this place.
3671 (get_constraint_for_component_ref): Add address_p argument.
3672 Return constraint expressions for all touched sub-fields
3673 if the results address is not taken.
3674 (do_deref): Use get_constraint_exp_for_temp.
3675 (get_constraint_for_1): Rename from ...
3676 (get_constraint_for): ... this. Add the old function as wrapper.
3677 (do_structure_copy): Use get_constraint_for_1.
3679 2008-07-01 Martin Jambor <mjambor@suse.cz>
3681 * Makefile.in (tree-switch-conversion.o): Add.
3682 (OBJS-common): Add tree-swtch-conversion.o.
3683 * passes.c (init_optimization_passes): Add pass_convert_switch.
3684 * tree-pass.h: (pass_convert_switch): Add.
3685 * tree-switch-conversion.c: New file.
3686 * gcc.dg/tree-ssa/cswtch.c: New testcase.
3687 * common.opt (ftree-cswtch): New option.
3688 * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3689 * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3690 * opts.c (decode_options): Set flag_tree_switch_conversion when
3691 optimization level is >= 2.
3692 * doc/invoke.texi (Optimize Options): Added description of
3693 -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
3695 2008-06-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3697 * config/darwin-driver.c (darwin_default_min_version): Fix
3698 -Wc++-compat warnings.
3700 2008-06-30 Uros Bizjak <ubizjak@gmail.com>
3702 * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
3705 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
3707 * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
3709 2008-06-30 Kenneth Zadeck <zadeck@naturalbridge.com>
3711 PR rtl-optimization/34744
3712 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
3713 (df_scan_free_internal): Free data structures not
3714 allocated in storage pools.
3715 (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
3716 (df_refs_add_to_chains): Use df_scan_free_ref_vec and
3717 df_scan_free_mws_vec.
3718 * dse.c (dse_step6): Free offset_map_p and offset_map_n
3721 2008-06-30 H.J. Lu <hongjiu.lu@intel.com>
3723 * config/i386/i386.c (contains_aligned_value_p): Return true
3725 (ix86_function_arg_boundary): Return its natural boundary
3727 (return_in_memory_32): Don't check TDmode.
3728 (ix86_split_to_parts): Support splitting into 4 parts and
3729 support TFmode for 32bit target.
3730 (ix86_split_long_move): Support splitting into 4 parts.
3731 (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
3733 (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
3734 (ix86_init_builtins): Here.
3735 (ix86_scalar_mode_supported_p): Always return true for TFmode.
3736 (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
3737 'q' and 'w', respectively.
3739 * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
3741 (movtf_internal): Likewise.
3742 (<code>tf2): Likewise.
3743 (*absnegtf2_sse): Likewise.
3744 (copysign<mode>3): Likewise.
3745 (copysign<mode>3_const): Likewise.
3746 (copysign<mode>3_var): Likewise.
3747 (define_split UNSPEC_COPYSIGN): Likewise.
3748 * config/i386/sse.md (*nandtf3): Likewise.
3749 (<code>tf3): Likewise.
3750 (*<code>tf3): Likewise.
3752 2008-06-30 Joey Ye <joey.ye@intel.com>
3753 H.J. Lu <hongjiu.lu@intel.com>
3755 * global.c (compute_regsets): Set frame_pointer_needed here.
3756 * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
3758 2008-06-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3760 * doc/install.texi (specific): Expand Windows build notes.
3762 2008-06-30 Ira Rosen <irar@il.ibm.com>
3764 PR tree-optimization/36648
3765 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
3766 number of prolog iterations by step. Fix the comment.
3768 2008-06-30 Richard Guenther <rguenther@suse.de>
3771 * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
3772 handle calls from ECF_MALLOC functions.
3773 (handle_pure_call): ECF_MALLOC functions do not return
3775 (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
3777 2008-06-29 Andreas Schwab <schwab@suse.de>
3779 * config/m68k/m68k.c (print_operand): Always print a float
3781 * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
3782 (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
3785 * config/rs6000/x-linux64: Remove never used file.
3787 2008-06-29 Richard Guenther <rguenther@suse.de>
3789 * tree-ssa-structalias.h (compute_points_to_sets): Adjust
3791 (struct alias_info): Move ...
3792 * tree-ssa-alias.c: ... here.
3793 (update_alias_info): Declare.
3794 (compute_may_aliases): Call it.
3795 (update_alias_info): New function.
3796 * tree-ssa-structalias.c (update_alias_info): Move ...
3797 * tree-ssa-alias.c (update_alias_info_1): ... here.
3798 * tree-ssa-structalias.c (process_constraint_1): Remove
3799 unused from_call argument. Rename to ...
3800 (process_constraint): ... this. Delete old wrapper.
3801 (make_constraint_to): Adjust callers.
3802 (handle_const_call): Likewise.
3803 (handle_pure_call): Likewise.
3804 (init_base_vars): Likewise.
3805 (handle_lhs_call): Likewise. Remove unnecessary constraint.
3806 (find_func_aliases): We don't need structure copies for
3808 (make_constraint_from_anything): Remove.
3809 (create_variable_info_for): For globals make constraints
3810 from escaped, not from anything.
3811 (compute_points_to_sets): Do not call update_alias_info.
3812 (ipa_pta_execute): Use make_constraint_from.
3814 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3816 * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
3817 (bitmap.o-warn, dominance.o-warn): New.
3818 * configure.ac (cxx_compat_warn): Delete.
3819 (loose_warn): Add -Wcast-qual and -Wc++-compat.
3820 * system.h: Remove #pragma diagnostic for -Wcast-qual and
3822 * configure: Regenerate.
3824 * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
3827 2008-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3829 * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
3830 * df-scan.c (df_notes_rescan): Likewise.
3831 * ggc-page.c (set_page_table_entry): Likewise.
3832 * intl.c (gcc_gettext_width): Likewise.
3833 * varasm.c (get_unnamed_section, get_noswitch_section,
3834 get_section): Likewise.
3836 2008-06-28 Andrew Jenner <andrew@codesourcery.com>
3838 * regrename.c (build_def_use): Don't copy RTX.
3840 2008-06-28 Sandra Loosemore <sandra@codesourcery.com>
3842 * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
3843 (Type Attributes): Fix nesting of @table and @subsection. Adjust
3844 punctuation. Use @ref instead of @xref.
3845 (Function Names): Remove stray @display/@end display.
3846 (C++ Attributes): Use @ref instead of @xref.
3847 (Deprecated Features): Fix punctuation around @xref.
3848 (Backwards Compatibility): Likewise.
3849 * doc/rtl.texi (Incdec): Remove stray @table/@end table.
3851 2008-06-28 Joseph Myers <joseph@codesourcery.com>
3853 * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
3854 constants for E500 double.
3856 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3858 * doc/rtl.texi (const_vector): Document const_fixed as legitimate
3859 element type of const_vector.
3861 2008-06-28 Uros Bizjak <ubizjak@gmail.com>
3863 * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
3864 Remove FLAGS_REG clobber from expander pattern.
3865 (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
3866 (anddi3, andsi3, andhi3, andqi3): Ditto.
3867 (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
3868 (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
3869 (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
3870 (ashlsi3, ashlhi3, ashlqi3): Ditto.
3871 (ashrsi3, ashrhi3, ashrqi3): Ditto.
3872 (lshrsi3, lshrhi3, lshrqi3): Ditto.
3873 (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
3874 (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
3876 2008-06-28 Richard Guenther <rguenther@suse.de>
3878 * tree-ssa-structalias.c (callused_id, var_callused,
3879 callused_tree): Add.
3880 (handle_pure_call): New function.
3881 (find_func_aliases): Call it.
3882 (find_what_p_points_to): Handle the call-used set.
3883 (clobber_what_escaped): Likewise.
3884 (compute_call_used_vars): New function.
3885 (init_base_vars): Init the call-used variable.
3886 (do_sd_constraint): Do not propagate the solution from CALLUSED
3887 but use CALLUSED as a placeholder.
3888 (solve_graph): Likewise.
3889 * tree-flow-inline.h (gimple_call_used_vars): New function.
3890 * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
3891 (compute_call_used_vars): Declare.
3892 * tree-ssa-alias.c (set_initial_properties): Call
3893 compute_call_used_vars.
3894 (reset_alias_info): Clear call-used variables.
3895 (add_call_clobber_ops): Assert we are not called for const/pure
3896 functions. Remove handling of them.
3897 (add_call_read_ops): Handle pure functions by adding the
3898 call-used set of variables as VUSEs.
3899 * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
3900 (delete_tree_ssa): Free it.
3901 * tree-dfa.c (remove_referenced_var): Clear the var from the
3904 2008-06-28 Kai Tietz <kai.tietz@onevision.com>
3906 * tree.c (build_varargs_function_type_list): New.
3907 (build_function_type_list_1): New.
3908 (build_function_type_list): Use build_function_type_list_1.
3909 * tree.h (build_varargs_function_type_list): New.
3911 2008-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3914 * config/spu/spu.c (spu_builtin_splats): Do not generate
3915 invalid CONST_VECTOR expressions.
3916 (spu_expand_vector_init): Likewise.
3918 2008-06-28 Richard Sandiford <rdsandiford@googlemail.com>
3920 * optabs.c (libfunc_decls): New variable.
3921 (libfunc_decl_hash, libfunc_decl_eq): New functions.
3922 (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
3923 for the same function twice.
3925 2008-06-27 Uros Bizjak <ubizjak@gmail.com>
3927 * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
3928 ix86_expand_binary_operator directly.
3929 (*ashlti3_1): Rename from ashlti3_1. Use nonmemory_operand predicate
3931 (*ashrti3_1): Ditto.
3932 (*lshrti3_1): Ditto.
3933 (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
3934 (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
3935 using only one splitter. Conditionaly execute splitter before or
3936 after peephole2 pass.
3937 (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
3938 (x86_shld): Rename from x86_shld_1. Compress operand 2 constraints.
3939 Use only one alternative in asm template.
3940 (x86_64_shld): Compress operand 2 constraints. Use only one alternative
3942 (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
3943 "J" operand constraint for operand 2.
3944 (*ashldi3_cconly_rex64): Ditto.
3945 (*ashrdi3_cmp_rex64): Ditto.
3946 (*ashrdi3_cconly_rex64): Ditto.
3947 (*lshrdi3_cmp_rex64): Ditto.
3948 (*lshrdi3_cconly_rex64): Ditto.
3949 * config/i386/predicates.md (const_1_to_63_operand): New predicate.
3950 * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
3951 (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
3954 2008-06-27 Jakub Jelinek <jakub@redhat.com>
3956 * gimplify.c (omp_is_private): Don't return true if decl is not
3957 already private on #pragma omp for or #pragma omp parallel for.
3960 * tree-cfg.c (struct move_stmt_d): Replace block field with
3961 orig_block and new_block fields.
3962 (move_stmt_r): Only set TREE_BLOCK to p->new_block if
3963 if it used to be NULL, p->orig_block or if p->orig_block is NULL.
3964 (move_block_to_fn): Replace vars_map and new_label_map arguments
3965 with struct move_stmt_d pointer.
3966 (replace_block_vars_by_duplicates): New function.
3967 (move_sese_region_to_fn): Add ORIG_BLOCK argument. Adjust
3968 move_block_to_fn caller. If ORIG_BLOCK is non-NULL, move over
3969 all subblocks of ORIG_BLOCK to the new function. Call
3970 replace_block_vars_by_duplicates.
3971 * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
3972 * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
3973 BLOCK of the new function. Adjust move_sese_region_to_fn caller.
3974 Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
3975 (expand_omp): Temporarily set input_location to the location of
3976 region's controlling stmt.
3977 (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
3978 BIND_EXPR, push ctx->block_vars and gimplification vars into
3979 the BIND_EXPR and its block's BLOCK_VARS instead of directly
3981 (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
3982 there are any BLOCK_VARS.
3983 (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
3984 OMP_PARALLEL or OMP_TASK stmt.
3985 (lower_omp): Save and restore input_location around the lower_omp_1
3988 2008-06-27 Richard Guenther <rguenther@suse.de>
3990 PR tree-optimization/36400
3991 PR tree-optimization/36373
3992 PR tree-optimization/36344
3993 * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
3994 var_nonlocal, nonlocal_tree, nonlocal_id): New globals
3995 (update_alias_info): Remove call clobbering code.
3996 (make_constraint_to): New helper function.
3997 (make_escape_constraint): Likewise.
3998 (handle_rhs_call): Use it on all pointer containing arguments.
3999 Also mark the static chain escaped.
4000 (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
4001 instead of ANYTHING.
4002 (make_constraint_from): New helper split out from ...
4003 (make_constraint_from_anything): ... here.
4004 (find_func_aliases): Add constraints for escape sites.
4005 (intra_create_variable_infos): Make constraints from NONLOCAL
4007 (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
4009 (clobber_what_p_points_to): Remove.
4010 (clobber_what_escaped): New function.
4011 (init_base_vars): Init NONLOCAL and ESCAPED.
4012 (do_sd_constraint): Do not propagate the solution from ESCAPED
4013 but use ESCAPED as a placeholder.
4014 (solve_graph): Likewise.
4015 * tree-flow.h (clobber_what_p_points_to): Remove.
4016 (clobber_what_escaped): Declare.
4017 * tree-ssa-alias.c (set_initial_properties): Call it.
4018 Remove code clobbering escaped pointers.
4020 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
4022 * function.c (allocate_struct_function): Only allocate a unique
4023 funcdef_no if the decl is nonzero.
4025 2008-06-27 Richard Sandiford <rdsandiford@googlemail.com>
4027 * config/mips/mips-protos.h (mips_split_const_insns): Declare.
4028 * config/mips/mips.c (mips_split_const_insns): New function.
4029 * config/mips/mips.md (move_type): New attribute.
4030 (mode): Move attribute definition earlier in file. Add "TI" and "TF".
4031 (dword_mode): New attribute.
4032 (type): Avoid long line. Map "move_type"s to "type"s,
4033 choosing "multi" for doubleword moves if appropriate.
4034 Swap MTC/MFC comments to match their declaration order.
4035 (extended_mips16): Default to "yes" if "move_type" is "sll0",
4036 "type" is "branch" or "jal" is "direct".
4037 (length): Handle "extended_mips16" first. Make the default
4038 "0" for "ghost" instructions. Set the length from "move_type".
4039 (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
4040 of "type", with "sll0" for the register alternative. Remove the
4041 "extended_mips16" attribute.
4042 (zero_extendsidi2, *clear_upper32): Use "move_type" instead
4043 of "type", with "shift_shift" for the register alternative.
4044 Remove the "length" attribute.
4045 (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
4046 (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
4047 of "type", with "andi" for the register alternative.
4048 (*zero_extendqihi2): Likewise.
4049 (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
4050 of "andi" instead of a "type" of "arith".
4051 (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
4053 (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
4054 (mov_<store>r, *mov<mode>_ra): Likewise.
4055 (extendsidi2): Use "move_type" instead of "type", with "move"
4056 for the register alternative.
4057 (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
4058 of "type", with "signext" for the register alternative.
4059 (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
4060 (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
4061 (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
4062 (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
4063 (floatdisf2, *branch_equality<mode>_mips16): Likewise.
4064 (unnamed branch insn): Likewise.
4065 (*movdi_gp32_fp64): Fold into...
4066 (*movdi_32bit): ...here.
4067 (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
4068 (*movdf_hardfloat): ...this new pattern.
4069 (*movdf_softfloat): Remove redundant FPR alternatives.
4070 (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
4071 (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
4072 (*movv2sf): ...this new pattern. Use "DF" rather than "SF" for
4073 the "move" attribute.
4074 (*movdi_32bit): Use "move_type" instead of "type" and remove the
4075 "length" attribute. Use "fpload" and "fpstore" instead of "load"
4076 and "store" for COP loads and stores.
4077 (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
4078 (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
4079 (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
4080 (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
4081 (*movtf_mips16, *movv2sf): Likewise.
4082 (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
4083 (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
4084 (mfhc1<mode>): Use "move_type" instead of "move".
4085 (*low<mode>_mips16): Use "extended_mips16" instead of "length".
4086 (loadgp_blockage): Remove the "length" attribute.
4087 (blockage, set_got_version, update_got_version): Likewise.
4088 (call_internal): Remove the "extended_mips16" attribute.
4089 (call_value_internal, call_value_multiple_internal): Likewise.
4090 * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
4092 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
4093 the "length" attribute.
4095 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4097 * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
4098 -Wcast-qual warnings.
4099 * c-pragma.c (dpm_eq, handle_pragma_push_macro,
4100 handle_pragma_pop_macro): Likewise.
4101 * collect2.c (resolve_lib_name): Likewise.
4102 * config/arc/arc.c (arc_init): Likewise.
4103 * config/arm/arm.c (neon_builtin_compare,
4104 locate_neon_builtin_icode): Likewise.
4105 * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
4106 * config/bfin/bfin.c (bfin_init_machine_status,
4107 bfin_optimize_loop): Likewise.
4108 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
4109 * config/cris/cris.c (cris_init_expanders): Likewise.
4110 * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
4111 * config/darwin.c (machopic_indirection_eq,
4112 machopic_indirection_name, machopic_output_indirection): Likewise.
4113 * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
4114 frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
4115 frv_optimize_membar): Likewise.
4116 * config/i386/cygwin.h (mingw_scan,
4117 GCC_DRIVER_HOST_INITIALIZATION): Likewise.
4118 * config/i386/cygwin1.c (mingw_scan): Likewise.
4119 * config/i386/i386.c (machopic_output_stub): Likewise.
4120 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
4121 i386_pe_unique_section): Likewise.
4122 * config/ia64/ia64.c (ia64_init_machine_status,
4123 ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
4125 * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
4126 * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
4127 * config/m68k/m68k.c (m68k_handle_option,
4128 m68k_sched_md_init_global): Likewise.
4129 * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
4130 mcore_unique_section): Likewise.
4131 * config/mips/mips.c (mips_block_move_straight,
4132 mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
4134 * config/mmix/mmix.c (mmix_init_machine_status,
4135 mmix_encode_section_info): Likewise.
4136 * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
4137 * config/rs6000/rs6000.c (rs6000_init_machine_status,
4138 print_operand_address, output_toc, redefine_groups,
4139 rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
4140 * config/s390/s390.c (s390_init_machine_status): Likewise.
4141 * config/score/score.c (score_block_move_straight,
4142 score_block_move_loop_body): Likewise.
4143 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
4144 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4145 * emit-rtl.c (find_auto_inc): Likewise.
4146 * gcc.c (translate_options, process_command): Likewise.
4147 * reorg.c (dbr_schedule): Likewise.
4148 * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
4149 * xcoffout.c (xcoffout_declare_function): Likewise.
4151 2008-06-27 Daniel Berlin <dberlin@dberlin.org>
4153 * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
4154 ipa-pta working again.
4156 2008-06-27 David Edelsohn <edelsohn@gnu.org>
4158 * config/rs6000/t-aix52: Append large data option to LDFLAGS for
4161 2008-06-27 Edmar Wienskoski <edmar@freescale.com>
4163 * config.gcc (powerpc*-*-*): Add new core e500mc.
4164 * config/rs6000/e500mc.md: New file.
4165 * config/rs6000/rs6000.c (processor_costs): Add new costs for
4167 (rs6000_override_options): Add e500mc case to
4168 processor_target_table. Altivec and Spe options not allowed
4169 with e500mc. Add isel instruction to e500mc by
4170 default. Initialize rs6000_cost for e500mc.
4171 (rs6000_issue_rate): Set issue rate for e500mc.
4172 * config/rs6000/rs6000.h (processor_type): Add
4173 PROCESSOR_PPCE500MC.
4174 (ASM_CPU_SPEC): Add e500mc.
4175 Set TARGET_ISEL to rs6000_isel.
4176 * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
4177 (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
4178 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
4180 * doc/invoke.texi: Add e500mc to list of cpus.
4182 2008-06-27 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4185 * c-lex.c (lex_charconst): Initialize unsignedp.
4187 2008-06-27 Olivier Hainque <hainque@adacore.com>
4189 * gimplify.c (gimplify_modify_expr_to_memset): Assert our
4190 documented assumptions.
4192 2008-06-26 H.J. Lu <hongjiu.lu@intel.com>
4194 * dwarf2out.c: Remove trailing white spaces. Break long line
4197 2008-06-26 Richard Sandiford <rdsandiford@googlemail.com>
4199 * libfuncs.h (LTI_synchronize): New libfunc_index.
4200 (synchronize_libfunc): Declare.
4201 * builtins.c (expand_builtin_synchronize): Consider using
4202 synchronize_libfunc before falling back on an asm blockage.
4203 * config/mips/mips.c: Include libfuncs.h
4204 (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
4206 2008-06-26 Nathan Froyd <froydnj@codesourcery.com>
4208 * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
4209 parameter. Copy stack_reg to r11 where appropriate.
4210 (no_global_regs_above): Add gpr parameter.
4211 (rs6000_stack_info): Only add padding for SPE save area if we
4212 are saving SPE GPRs and CR.
4213 (saveres_routine_syms): New variable.
4214 (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
4216 (rs6000_savres_routine_sym): New function.
4217 (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
4219 (rs6000_emit_epilogue): ...here. Use rs6000_use_multiple_p and
4220 rs6000_savres_strategy. Restore GPRs out-of-line if appropriate.
4221 Tweak FPR out-of-line saving.
4222 (rs6000_make_savres_rtx): New function.
4223 (rs6000_use_multiple_p): New function.
4224 (rs6000_savres_strategy): New function.
4225 (rs6000_emit_prologue): Use rs6000_savres_strategy. Save GPRs
4226 out-of-line if appropriate.
4227 * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
4228 if we are optimizing for size.
4229 (GP_SAVE_INLINE): Define.
4230 (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
4231 * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
4232 * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
4233 * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
4234 (*save_fpregs_<mode>): Add use of r11.
4235 (*restore_gpregs_<mode>): New insn.
4236 (*return_and_restore_gpregs_<mode>): New insn.
4237 (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
4239 * config/rs6000/spe.md (*save_gpregs_spe): New insn.
4240 (*restore_gpregs_spe): New insn.
4241 (*return_and_restore_gpregs_spe): New insn.
4242 * config/rs6000/predicates.md (save_world_operation): Fix check.
4244 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
4246 * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
4247 this point, so assert that.
4249 2008-06-26 Steven Bosscher <steven@gcc.gnu.org>
4251 * cfganal.c: Include vec.h and vecprim.h.
4252 (compute_idf): Import from...
4253 * tree-into-ssa (compute_idf): ...here.
4254 * basic-block.h (compute_idf): Export.
4256 2008-06-26 Joseph Myers <joseph@codesourcery.com>
4258 * c-decl.c (merge_decls): Use !current_function_decl to check for
4259 extern declaration of C99 inline function being at file scope.
4261 2008-06-25 John David Anglin <dave.anglin@gcc-cnrc.gc.ca>
4263 * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
4265 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4267 * alias.c (record_alias_subset, init_alias_analysis): Fix
4268 -Wc++-compat and/or -Wcast-qual warnings.
4269 * attribs.c (lookup_attribute_spec): Likewise.
4270 * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
4271 copy_bb, connect_traces,
4272 find_rarely_executed_basic_blocks_and_cr): Likewise.
4273 * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
4274 note_btr_set, migrate_btr_defs): Likewise.
4275 * builtins.c (result_vector, expand_builtin_memcpy,
4276 expand_builtin_mempcpy_args, expand_builtin_strncpy,
4277 builtin_memset_read_str, expand_builtin_printf,
4278 fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
4280 * caller-save.c (mark_set_regs): Likewise.
4281 * calls.c (expand_call, emit_library_call_value_1): Likewise.
4282 * cgraph.c (cgraph_edge): Likewise.
4283 * combine.c (likely_spilled_retval_1): Likewise.
4284 * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
4285 htab_counts_entry_del, get_coverage_counts): Likewise.
4286 * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
4287 new_cselib_val): Likewise.
4288 * dbgcnt.c (dbg_cnt_process_opt): Likewise.
4289 * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
4291 * df-core.c (df_compact_blocks): Likewise.
4292 * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
4293 * df-scan.c (df_grow_reg_info, df_ref_create,
4294 df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
4295 df_ref_compare, df_ref_create_structure, df_bb_refs_record,
4296 df_record_entry_block_defs, df_record_exit_block_uses,
4297 df_bb_verify): Likewise.
4298 * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
4299 DF_REF_EXTRACT_MODE_CONST): New.
4300 * dominance.c (get_immediate_dominator, get_dominated_by,
4301 nearest_common_dominator, root_of_dom_tree,
4302 iterate_fix_dominators, first_dom_son, next_dom_son): Fix
4303 -Wc++-compat and/or -Wcast-qual warnings.
4304 * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
4305 record_store, replace_read, check_mem_read_rtx, scan_insn,
4306 dse_step1, dse_record_singleton_alias_set): Likewise.
4307 * dwarf2asm.c (dw2_force_const_mem): Likewise.
4309 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4311 * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
4312 dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
4313 lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
4314 assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
4315 build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
4316 add_ranges_num, add_ranges_by_labels, file_info_cmp,
4317 file_name_acquire, output_file_names, add_const_value_attribute,
4318 premark_used_types_helper, file_table_eq, file_table_hash,
4319 lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
4320 dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
4321 -Wcast-qual warnings.
4322 * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
4323 ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
4324 * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
4325 gen_reg_rtx, start_sequence, init_emit): Likewise.
4326 * et-forest.c (et_new_occ, et_new_tree): Likewise.
4327 * except.c (init_eh_for_function, gen_eh_region,
4328 remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
4329 arh_to_landing_pad, arh_to_label, add_action_record,
4330 add_call_site, switch_to_exception_section): Likewise.
4331 * expmed.c (synth_mult): Likewise.
4332 * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
4333 store_expr): Likewise.
4334 * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
4336 * function.c (assign_stack_temp_for_type,
4337 allocate_struct_function, match_asm_constraints_1): Likewise.
4338 * gcov-io.c (gcov_allocate): Likewise.
4339 * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
4340 GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
4341 (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
4342 record_one_set, insert_expr_in_table, insert_set_in_table,
4343 dump_hash_table, compute_hash_table_work, alloc_hash_table,
4344 pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
4345 reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
4346 -Wcast-qual warnings.
4348 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4350 * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
4351 -Wcast-qual warnings.
4352 * gcc.c (process_command): Likewise.
4353 * genattrtab.c (oballoc): Use XOBNEW.
4354 (oballocvec): Define.
4355 (attr_hash_add_rtx, attr_hash_add_string, attr_string,
4356 get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
4357 gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
4358 -Wc++-compat and/or -Wcast-qual warnings.
4359 * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
4360 XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
4361 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
4362 gen_presence_absence_set, gen_automaton, gen_regexp_el,
4363 gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
4364 gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
4365 add_excls, process_presence_absence_names,
4366 process_presence_absence_patterns, add_presence_absence,
4367 process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
4368 get_free_state, add_arc, get_free_automata_list_el,
4369 form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
4370 transform_3, cache_presence, create_ainsns, create_automata,
4371 create_state_ainsn_table, dfa_insn_code_enlarge,
4372 output_trans_func, output_min_issue_delay_func,
4373 output_dead_lock_func, output_reset_func,
4374 output_get_cpu_unit_code_func, output_dfa_start_func,
4375 expand_automata): Likewise.
4376 * genextract.c (gen_insn): Likewise.
4377 * gengtype-lex.l: Likewise.
4378 * gengtype.c (read_input_list, adjust_field_type,
4379 process_gc_options): Likewise.
4380 * genoutput.c (note_constraint): Likewise.
4381 * genpreds.c (mangle, add_constraint): Likewise.
4382 * genrecog.c (process_define_predicate, new_decision,
4383 add_to_sequence): Likewise.
4384 * gensupport.c (record_insn_name): Likewise.
4386 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4388 * config/i386/driver-i386.c (detect_caches_amd,
4389 detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
4390 and/or -Wcast-qual warnings.
4391 *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
4392 gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
4393 gt_pch_save): Likewise.
4394 * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
4395 gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
4396 * global.c (compute_regsets): Likewise.
4397 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
4398 finish_graph_dump_file): Likewise.
4399 * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
4400 unlink_bb_notes): Likewise.
4401 * integrate.c (get_hard_reg_initial_val): Likewise.
4402 * ipa-prop.c (ipa_push_func_to_list): Likewise.
4403 * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
4404 * local-alloc.c (update_equiv_regs): Likewise.
4405 * loop-invariant.c (check_invariant_table_size,
4406 hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
4408 * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
4409 altered_reg_used, mark_altered): Likewise.
4410 * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
4411 insert_var_expansion_initialization,
4412 combine_var_copies_in_loop_exit, apply_opt_in_copies,
4413 release_var_copies): Likewise.
4414 * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
4415 analyze_matrix_decl, add_allocation_site, analyze_transpose,
4416 analyze_accesses_for_phi_node, check_var_notmodified_p,
4417 check_allocation_function, find_sites_in_func,
4418 record_all_accesses_in_func, transform_access_sites,
4419 transform_allocation_sites): Likewise.
4420 * omp-low.c (new_omp_region, create_omp_child_function_name,
4421 check_omp_nesting_restrictions, check_combined_parallel,
4422 lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
4423 * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
4424 gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
4425 gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
4427 * opts-common.c (prune_options): Likewise.
4428 * opts.c (add_input_filename, print_filtered_help,
4429 get_option_state): Likewise.
4430 * params.c (add_params): Likewise.
4431 * passes.c (set_pass_for_id, next_pass_1,
4432 do_per_function_toporder, pass_fini_dump_file): Likewise.
4433 * postreload.c (reload_cse_simplify_operands): Likewise.
4434 * predict.c (tree_predicted_by_p, tree_predict_edge,
4435 clear_bb_predictions, combine_predictions_for_bb): Likewise.
4437 2008-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4439 * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
4441 * recog.c (check_asm_operands, validate_change_1): Likewise.
4442 * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
4443 subst_asm_stack_regs): Likewise.
4444 * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
4445 cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
4446 * regmove.c (reg_is_remote_constant_p): Likewise.
4447 * regrename.c (regrename_optimize, scan_rtx_reg,
4448 kill_clobbered_value, kill_set_value, kill_autoinc_value):
4450 * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
4451 regstat_compute_calls_crossed): Likewise.
4452 * reload1.c (init_reload, new_insn_chain,
4453 has_nonexceptional_receiver, reload, copy_reloads,
4454 calculate_needs_all_insns, init_elim_table): Likewise.
4455 * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
4456 * rtl.c (shallow_copy_rtx_stat): Likewise.
4457 * rtlanal.c (parms_set): Likewise.
4458 * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
4459 sbitmap_resize, sbitmap_vector_alloc): Likewise.
4460 * sched-ebb.c (earliest_block_with_similiar_load,
4461 add_deps_for_risky_insns): Likewise.
4462 * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
4463 schedule_region): Likewise.
4464 * see.c (eq_descriptor_pre_extension,
4465 hash_descriptor_pre_extension, hash_del_pre_extension,
4466 eq_descriptor_properties, hash_descriptor_properties,
4467 hash_del_properties, see_seek_pre_extension_expr,
4468 see_initialize_data_structures, see_print_register_properties,
4469 see_print_pre_extension_expr, see_delete_merged_def_extension,
4470 see_delete_unmerged_def_extension, see_emit_use_extension,
4471 see_pre_delete_extension, see_map_extension, see_commit_changes,
4472 see_analyze_merged_def_local_prop,
4473 see_analyze_merged_def_local_prop,
4474 see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
4475 see_set_prop_merged_def, see_set_prop_unmerged_def,
4476 see_set_prop_unmerged_use, see_print_one_extension,
4477 see_merge_one_use_extension, see_merge_one_def_extension,
4478 see_store_reference_and_extension, see_update_uses_relevancy,
4479 see_update_defs_relevancy): Likewise.
4480 * statistics.c (hash_statistics_hash, hash_statistics_eq,
4481 hash_statistics_free, curr_statistics_hash): Likewise.
4482 * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
4483 expand_asm_operands, expand_return, case_bit_test_cmp,
4484 expand_case): Likewise.
4485 * stor-layout.c (start_record_layout): Likewise.
4486 * stringpool.c (ggc_alloc_string, gt_pch_n_S,
4487 gt_pch_save_stringpool): Likewise.
4488 * tree-data-ref.c (hash_stmt_vertex_info,
4489 have_similar_memory_accesses_1, ref_base_address_1): Likewise.
4490 * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
4492 2008-06-25 Uros Bizjak <ubizjak@gmail.com>
4495 * config/i386/i386.md : Change constraints of HImode and QImode
4496 immediate operands from "i" to "n". Change SImode "ni" constraint to
4497 "i" and SImode "rmi" constraint to "g". Remove all constraints
4498 from const0_operand and const1_operand predicated operands.
4499 (i): Change QImode and HImode attribute from "i" to "n".
4500 (*subqi_2): Change HImode operands to QImode.
4503 2008-06-25 Olivier Hainque <hainque@adacore.com>
4505 * Makefile.in (GTFILES_H): Use | instead of ; as separator in
4508 2008-06-25 Richard Guenther <rguenther@suse.de>
4510 * tree-ssa-structalias.c (fieldoff_compare): Make sure to
4511 not overflow the result type.
4513 2008-06-25 Richard Guenther <rguenther@suse.de>
4515 * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
4516 (vn_lookup): Likewise.
4518 2008-06-25 Richard Guenther <rguenther@suse.de>
4520 PR tree-optimization/35518
4521 * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
4522 * tree-sra.c (instantiate_element): Use fold_build3 to build
4524 (try_instantiate_multiple_fields): Likewise.
4526 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
4528 * config/rs6000/rs6000.md: Change all string instruction's clobber to
4531 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
4533 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
4534 use_backchain_to_restore_sp to true
4535 if the offset of the link register save area would go over the 32k - 1
4536 offset limit of the load
4539 2008-06-25 Hans-Peter Nilsson <hp@axis.com>
4541 * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
4542 anchor for the type-punning blurb. Cross-reference "Structures
4543 unions enumerations and bit-fields implementation". Provide a
4544 cast-through-pointer example. Make final sentence self-contained.
4545 * doc/implement-c.texi (Structures unions enumerations and
4546 bit-fields implementation): Cross-reference the type-punning blurb
4547 in the -fstrict-aliasing documentation.
4549 2008-06-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
4552 * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
4553 the memory instead of the memory itself for the save area.
4555 2008-06-24 Olivier Hainque <hainque@adacore.com>
4556 Nicolas Roche <roche@adacore.com>
4558 * gengtype.c (srcdir_len): size_t instead of int.
4559 (get_file_realbasename): New function. For F a filename, the real
4560 basename of F, with all the path components stripped.
4561 (get_file_srcdir_relative_path): New function. For F a filename, the
4562 relative path to F from $(srcdir).
4563 (get_file_basename): Rewrite using get_file_srcdir_relative_path and
4564 get_file_realbasename. Adjust the head comment.
4565 (get_prefix_langdir_index): New function. For F a filename, return the
4566 lang_dir_names[] relative index of the language directory that is
4568 (get_file_langdir): For F a filename, return the name of the language
4569 directory where F is located.
4570 (get_file_gtfilename): New function. The gt- output file name for an
4572 (get_output_file_with_visibility): Replace in-line computations with
4573 uses of get_file_gtfilename and get_prefix_langdir_index.
4574 * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
4576 2008-06-24 Jakub Jelinek <jakub@redhat.com>
4578 PR tree-optimization/36504
4579 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
4580 references without base address.
4582 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
4585 * calls.c (expand_call): Increase alignment for recursive functions.
4587 2008-06-23 Anatoly Sokolov <aesok@post.ru>
4589 * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
4590 (TARGET_FUNCTION_VALUE): New define.
4591 * config/avr/avr-protos.h (avr_function_value): Remove declaration.
4592 * config/avr/avr.h (FUNCTION_VALUE): Remove.
4594 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
4596 * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
4597 (fmod<mode>3): Ditto.
4598 (remainderxf3): Ditto.
4599 (remainder<mode>3): Ditto.
4601 2008-06-23 Jakub Jelinek <jakub@redhat.com>
4604 * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
4605 REG is a hard register.
4607 PR tree-optimization/36508
4608 * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
4609 499, don't check it at all in release compilers.
4611 2008-06-23 Uros Bizjak <ubizjak@gmail.com>
4613 * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
4614 together with SSE_TARGET_MATH to disable insn pattern.
4615 (*fop_<MODEF:mode>_2_i387): Ditto.
4616 (*fop_<MODEF:mode>_3_i387): Ditto.
4618 2008-06-22 Andy Hutchinson <hutchinsonandy@aim.com>
4620 * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
4622 2008-06-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4625 * gimplify.c (gimplify_asm_expr): Check the return code of
4626 parse_output_constraint call, set function return and is_inout
4629 2008-06-22 Ian Lance Taylor <iant@google.com>
4631 * c-lex.c (narrowest_unsigned_type): Change itk to int.
4632 (narrowest_signed_type): Likewise.
4633 * c-typeck.c (c_common_type): Change local variable mclass to enum
4635 (parser_build_binary_op): Compare the TREE_CODE_CLASS with
4636 tcc_comparison, not the tree code itself.
4637 * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
4638 (c_expand_expr): Cast modifier to enum expand_modifier.
4639 * c-common.h (C_RID_CODE): Add casts.
4640 (C_SET_RID_CODE): Define.
4641 * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
4642 (c_lex_one_token): Add cast to avoid warning.
4643 (c_parser_objc_type_name): Rename local typename to type_name.
4644 (check_no_duplicate_clause): Change code parameter to enum
4646 (c_parser_omp_var_list_parens): Change kind parameter to enum
4648 (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
4649 c_parser_omp_list_var_parens.
4650 (c_parser_omp_threadprivate): Likewise.
4651 * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
4652 * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
4653 * c-format.c (NO_FMT): Define.
4654 (printf_length_specs): Use NO_FMT.
4655 (asm_fprintf_length_specs): Likewise.
4656 (gcc_diag_length_specs): Likewise.
4657 (scanf_length_specs): Likewise.
4658 (strfmon_length_specs): Likewise.
4659 (gcc_gfc_length_specs): Likewise.
4660 (printf_flag_specs): Change 0 to STD_C89.
4661 (asm_fprintf_flag_specs): Likewise.
4662 (gcc_diag_flag_specs): Likewise.
4663 (gcc_cxxdiag_flag_specs): Likewise.
4664 (scanf_flag_specs): Likewise.
4665 (strftime_flag_specs): Likewise.
4666 (strfmon_flag_specs): Likewise.
4667 (print_char_table): Likewise.
4668 (asm_fprintf_char_table): Likewise.
4669 (gcc_diag_char_table): Likewise.
4670 (gcc_tdiag_char_table): Likewise.
4671 (gcc_cdiag_char_table): Likewise.
4672 (gcc_cxxdiag_char_table): Likewise.
4673 (gcc_gfc_char_table): Likewise.
4674 (scan_char_table): Likewise.
4675 (time_char_table): Likewis.
4676 (monetary_char_table): Likewise.
4677 * c-format.h (BADLEN): Likewise.
4679 2008-06-21 Ian Lance Taylor <iant@google.com>
4681 * tree.h (enum tree_code): Include all-tree.def, not tree.def.
4682 Define END_OF_BASE_TREE_CODES around inclusion.
4683 * tree.c (tree_code_type): New global array.
4684 (tree_code_length, tree_code_name): Likewise.
4685 * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
4687 (all-tree.def, s-alltree): New targets.
4688 (gencheck.h, s-gencheck): Remove.
4689 (tree.o): Depend upon all-tree.def.
4690 (build/gencheck.o): Remove gencheck.h dependency.
4691 (mostlyclean): Don't remove gencheck.h.
4692 * c-common.h (enum c_tree_code): Remove.
4693 * c-lang.c (tree_code_type): Remove.
4694 (tree_code_length, tree_code_name): Remove.
4695 * gencheck.c (tree_codes): Include all-tree.def, rather than
4696 tree.def, c-common.def, and gencheck.h. Undefined DEFTREECODE
4698 * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
4700 * cp/cp-tree.h (enum cplus_tree_code): Remove.
4701 (operator_name_info): Size to MAX_TREE_CODES.
4702 (assignment_operator_name_info): Likewise.
4703 * cp/cp-lang.c (tree_code_type): Remove.
4704 (tree_code_length, tree_code_name): Remove.
4705 * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
4706 (assignment_operator_name_info): Likewise.
4707 * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
4709 * cp/mangle.c (write_expression): Likewise.
4710 * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
4711 * fortran/f95-lang.c (tree_code_type): Remove.
4712 (tree_code_length, tree_code_name): Remove.
4713 * java/java-tree.h (enum java_tree_code): Remove.
4714 * java/lang.c (tree_code_type): Remove.
4715 (tree_code_length, tree_code_name): Remove.
4716 * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
4717 * objc/objc-act.h (enum objc_tree_code): Remove.
4718 * objc/objc-lang.c (tree_code_type): Remove.
4719 (tree_code_length, tree_code_name): Remove.
4720 * objcp/objcp-lang.c (tree_code_type): Remove.
4721 (tree_code_length, tree_code_name): Remove.
4722 * ada/ada-tree.h (enum gnat_tree_code): Remove.
4723 * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
4724 * ada/misc.c (tree_code_type): Remove.
4725 (tree_code_length, tree_code_name): Remove.
4727 2008-06-21 Bernhard Fischer <aldot@gcc.gnu.org>
4729 * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
4730 the grand_bitmap_obstack.
4732 2008-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4734 * ggc.h (GGC_RESIZEVAR): New, reorder macros.
4735 * tracer.c (tail_duplicate): Fix for -Wc++-compat.
4736 * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
4737 * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
4738 move_stmt_r, new_label_mapper): Likewise.
4739 * tree-complex.c (cvc_lookup): Likewise.
4740 * tree-dfa.c (create_function_ann): Likewise.
4741 * tree-dump.c (dump_register): Likewise.
4742 * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
4743 find_phi_replacement_condition): Likewise.
4744 * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
4745 tree_function_versioning): Likewise.
4746 * tree-into-ssa.c (cmp_dfsnum): Likewise.
4747 * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
4748 * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
4749 get_nonlocal_debug_decl, convert_nonlocal_reference,
4750 convert_nonlocal_omp_clauses, get_local_debug_decl,
4751 convert_local_reference, convert_local_omp_clauses,
4752 convert_nl_goto_reference, convert_nl_goto_receiver,
4753 convert_tramp_reference, convert_call_expr): Likewise.
4754 * tree-outof-ssa.c (contains_tree_r): Likewise.
4755 * tree-parloops.c (reduction_phi, initialize_reductions,
4756 eliminate_local_variables_1, add_field_for_reduction,
4757 add_field_for_name, create_phi_for_local_result,
4758 create_call_for_reduction_1, create_loads_for_reductions,
4759 create_stores_for_reduction, create_loads_and_stores_for_name):
4761 * tree-phinodes.c (allocate_phi_node): Likewise.
4762 * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
4763 * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
4764 * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
4765 * tree-ssa-coalesce.c (compare_pairs): Likewise.
4766 * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
4767 memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
4768 record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
4769 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
4770 * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
4771 vn_nary_op_insert): Likewise.
4772 * tree-ssa.c (redirect_edge_var_map_add,
4773 redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
4774 * tree-vectorizer.c (vectorize_loops): Likewise.
4775 * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
4776 build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
4777 tree_cons_stat, build1_stat, build_variant_type_copy,
4778 decl_init_priority_lookup, decl_fini_priority_lookup,
4779 decl_priority_info, decl_restrict_base_lookup,
4780 decl_restrict_base_insert, decl_debug_expr_lookup,
4781 decl_debug_expr_insert, decl_value_expr_lookup,
4782 decl_value_expr_insert, type_hash_eq, type_hash_lookup,
4783 type_hash_add, get_file_function_name, tree_check_failed,
4784 tree_not_check_failed, tree_range_check_failed,
4785 omp_clause_range_check_failed, build_omp_clause,
4786 build_vl_exp_stat): Likewise.
4787 * value-prof.c (gimple_histogram_value,
4788 gimple_duplicate_stmt_histograms): Likewise.
4789 * var-tracking.c (attrs_list_insert, attrs_list_copy,
4790 unshare_variable, variable_union_info_cmp_pos, variable_union,
4791 dataflow_set_different_1, dataflow_set_different_2,
4792 vt_find_locations, variable_was_changed, set_variable_part,
4793 emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
4794 * varasm.c (prefix_name, emutls_decl, section_entry_eq,
4795 section_entry_hash, object_block_entry_eq,
4796 object_block_entry_hash, create_block_symbol,
4797 initialize_cold_section_name, default_function_rodata_section,
4798 strip_reg_name, set_user_assembler_name, const_desc_eq,
4799 build_constant_desc, output_constant_def, lookup_constant_def,
4800 const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
4801 create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
4802 default_internal_label): Likewise.
4803 * varray.c (varray_init, varray_grow): Likewise.
4804 * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
4806 2008-06-20 Uros Bizjak <ubizjak@gmail.com>
4808 * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
4809 operators for "test" insn. Macroize insn using SWI mode macro.
4810 (*jcc_fused_2): Ditto.
4811 (*jcc_fused_3): Macroize insn using SWI mode macro.
4812 (*jcc_fused_4): Ditto.
4814 2008-06-20 Bernhard Fischer <aldot@gcc.gnu.org>
4816 * tree-ssa-pre.c: Fix typo in comment.
4817 (init_antic, fini_antic): Add explicit funtions for
4818 initializing and deinitializing ANTIC and AVAIL sets.
4819 (create_expression_by_pieces): Fix typo in comment.
4820 Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
4821 (execute_pre): Eventually dump details about ANTIC_IN.
4823 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4825 * collect2.c (main, add_to_list): Fix for -Wc++-compat.
4826 * gcc.c (translate_options, init_spec, store_arg, read_specs,
4827 add_to_obstack, file_at_path, find_a_file, execute,
4828 add_preprocessor_option, add_assembler_option, add_linker_option,
4829 process_command, insert_wrapper, do_option_spec, do_self_spec,
4830 spec_path, do_spec_1, is_directory, main, used_arg,
4831 getenv_spec_function): Likewise.
4832 * tlink.c (symbol_hash_lookup, file_hash_lookup,
4833 demangled_hash_lookup, symbol_push, file_push, frob_extension):
4836 2008-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
4838 * doc/rtl.texi: Updated subreg section.
4840 2008-06-19 Jakub Jelinek <jakub@redhat.com>
4843 * cgraphunit.c (cgraph_process_new_functions): Don't clear
4844 node->needed and node->reachable.
4845 * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
4846 * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
4847 (expand_task_call): Don't call expand_task_copyfn.
4848 (expand_task_copyfn): Renamed to...
4849 (finalize_task_copyfn): ... this.
4851 2008-06-19 Jan Hubicka <jh@suse.cz>
4853 * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
4854 clobbering framepointer.
4856 2008-06-19 Jan Hubicka <jh@suse.cz>
4858 * tree-optimize.c (execute_early_local_optimizations): Set
4859 cgraph_state only at first invocation.
4861 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4863 * system.h (-Wc++-compat): Activate as a warning, no an error.
4865 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
4867 * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
4868 instead of "#" in insn asm template.
4869 (*jcc_fused_2): Ditto.
4871 2008-06-19 Uros Bizjak <ubizjak@gmail.com>
4873 * config/i386/i386.h (ix86_tune_indices)
4874 [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
4875 (TARGET_FUSE_CMP_AND_BRANCH): New define.
4876 * config/i386/i386.md (*jcc_fused_1): New insn pattern
4877 (*jcc_fused_2): Ditto.
4878 * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
4879 X86_TUNE_FUSE_CMP_AND_BRANCH targets.
4880 (print operand): Handle 'E' and 'e' code.
4882 2008-06-19 Anatoly Sokolov <aesok@post.ru>
4884 * config/avr/avr.c (avr_mcu_t): Add attiny13a.
4885 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4886 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4888 2008-06-19 Bernhard Fischer <aldot@gcc.gnu.org>
4890 * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
4892 (cgraph_expand_function): Use local copy of decl.
4893 (cgraph_expand_all_functions): Remove redundant initialization of
4895 (cgraph_optimize): Reword internal_error message.
4897 2008-06-19 Chung-Lin Tang <ctang@marvell.com>
4899 * arm-protos.h (arm_return_in_memory): Remove public
4900 arm_return_in_memory() prototype.
4901 * arm.c (arm_return_in_memory): Add static prototype, add target
4902 hook macro, change definition and comments.
4903 * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
4905 2008-06-19 Ben Elliston <bje@au.ibm.com>
4907 * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
4908 real.c: Remove references to IEEE 754R.
4909 * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
4910 * doc/libgcc.texi (Decimal float library routines): Likewise.
4912 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4914 * targhooks.h (struct gcc_target): New member unwind_word_mode.
4915 (default_unwind_word_mode): Add prototype.
4916 * targhooks.c (default_unwind_word_mode): New function.
4917 (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
4918 instead of word_mode.
4919 * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
4920 (TARGET_INITIALIZER): Use it.
4922 * c-common.c (handle_mode_attribute): Support "unwind_word"
4924 * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
4926 * except.c (init_eh): Use targetm.unwind_word_mode () instead of
4927 word_mode to access SjLj_Function_Context member "data".
4928 (sjlj_emit_dispatch_table): Likewise. Also, perform type
4929 conversion from targetm.eh_return_filter_mode () to
4930 targetm.unwind_word_mode () if they differ.
4932 * builtin-types.def (BT_UNWINDWORD): New primitive type.
4933 (BT_FN_UNWINDWORD_PTR): New function type.
4934 (BT_FN_WORD_PTR): Remove.
4935 * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
4936 * except.c (expand_builtin_extend_pointer): Convert pointer to
4937 targetm.unwind_word_mode () instead of word_mode.
4939 * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
4940 * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
4941 (spu_unwind_word_mode): New function.
4942 (TARGET_EH_RETURN_FILTER_MODE): Do not define.
4943 (TARGET_UNWIND_WORD_MODE): Define.
4944 * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
4946 2008-06-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4948 * config/spu/spu.c (reg_align): Remove.
4949 (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
4950 (spu_split_load): Use regno_aligned_for_load instead of reg_align.
4951 (spu_split_store): Likewise.
4953 2008-06-18 Bernhard Fischer <aldot@gcc.gnu.org>
4955 * gcc/tree-vn.c: Fix typo in comment.
4957 2008-06-18 Jan Hubicka <jh@suse.cz>
4959 * cgraphunit.c (cgraph_optimize): Output debug info when doing
4960 toplevel reorder too.
4962 2008-06-18 Jan Hubicka <jh@suse.cz>
4964 * c-opts.c (c_common_post_options): PCH is not compatible with
4966 * opts.c (handle_options): Enable unit-at-a-time at O0 along with
4967 -fno-toplevel-reorder by default now.
4969 2008-06-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4971 PR documentation/30739
4972 * doc/install.texi (Prerequisites): Document dependency on awk.
4974 2008-06-18 Uros Bizjak <ubizjak@gmail.com>
4975 Ian Lance Taylor <iant@google.com>
4977 PR rtl-optimization/35604
4978 * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
4979 only want to change jump destinations, not eventual label comparisons.
4981 2008-06-16 Jan Hubicka <jh@suse.cz>
4983 * cgraphunit.c (cgraph_expand_pending_functions): Give up at
4985 (cgraph_analyze_function): Likewise.
4987 2008-06-16 Jan Hubicka <jh@suse.cz>
4989 * cgraph.h (cgraph_mark_if_needed): New function.
4990 * cgraphunit.c (cgraph_mark_if_needed): New function.
4991 * c-decl.c (duplicate_decl): Use it.
4993 2008-06-16 Jan Hubicka <jh@suse.cz>
4995 * cgraph.c (cgraph_add_new_function): When in expansion state, do
4998 2008-06-16 Jan Hubicka <jh@suse.cz>
5000 * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
5002 2008-06-16 Daniel Jacobowitz <dan@codesourcery.com>
5003 Kazu Hirata <kazu@codesourcery.com>
5004 Maxim Kuvyrkov <maxim@codesourcery.com
5006 * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
5007 * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
5008 * config/mips/linux.h (host_detect_local_cpu): Declare, add to
5009 EXTRA_SPEC_FUNCTIONS.
5010 (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
5011 (DRIVER_SELF_SPECS): Adjust.
5012 * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
5013 * config/mips/st.h, config/mips/t-st: New.
5014 * config/mips/driver-native.c, config/mips/x-native: New.
5015 * doc/invoke.texi (MIPS): Document 'native' value for -march and
5018 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
5020 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
5022 (ISA_HAS_FP_CONDMOVE): New macro.
5023 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
5024 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
5025 (ISA_HAS_NMADD3_NMSUB3): New macro.
5026 * config/mips/mips.c (mips_rtx_costs): Update.
5027 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
5028 compiling for ST Loongson 2E/2F.
5029 (madd<mode>): Rename to madd4<mode>. Update.
5030 (madd3<mode>): New pattern.
5031 (msub<mode>): Rename to msub4<mode>. Update.
5032 (msub3<mode>): New pattern.
5033 (nmadd<mode>): Rename to nmadd4<mode>. Update.
5034 (nmadd3<mode>): New pattern.
5035 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
5036 (nmadd3<mode>_fastmath): New pattern.
5037 (nmsub<mode>): Rename to nmsub4<mode>. Update.
5038 (nmsub3<mode>): New pattern.
5039 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
5040 (nmsub3<mode>_fastmath): New pattern.
5041 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
5043 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
5045 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
5046 (DF_REF_INSN_INFO): New.
5047 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
5048 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
5049 with a NULL DF_REF_INSN_INFO.
5050 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
5052 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
5053 DF_INSN_INFO_EQ_USES): New.
5054 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
5055 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
5056 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
5057 * df-core.c: Update comment for above changes.
5058 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
5059 DF_INSN_UID_* macros.
5060 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
5061 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
5062 insn rtx. Update all callers.
5063 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
5064 df_ref_create_structure, df_insn_refs_collect): Likewise.
5065 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
5066 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
5067 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
5068 macros to access the insn refs.
5069 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
5070 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
5071 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
5072 for accessing the refs.
5073 (try_fwprop_subst): Likewise.
5074 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
5075 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
5076 for accessing the refs.
5077 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
5078 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
5079 to look at the insn refs.
5080 (record_uses): Likewise.
5081 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
5083 (mark_artificial_uses): Don't mark_insn for artificial refs.
5084 (mark_reg_rependencies): Likewise.
5086 * doc/rtl.texi: Remove documentation of ADDRESSOF.
5088 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5090 * configure: Regenerate.
5092 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
5094 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
5095 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5096 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5098 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
5100 * config/avr/avr.c (avr_mcu_t): Add attiny167.
5101 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5102 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5104 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
5106 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
5107 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5108 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5110 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
5112 * tree-ssa-sccvn.c: Fix format of comments.
5114 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
5116 * cgraph.c: Remove unneeded forward declarations of eq_node()
5119 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
5121 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
5123 (see_update_relevancy): Likewise.
5124 * fwprop.c (try_fwprop_subst): Likewise.
5125 * rtlanal.c (noop_move_p): Likewise.
5126 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
5127 notes to non-existing libcall blocks.
5128 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
5130 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
5131 (dead_libcall_p): Remove.
5132 (delete_trivially_dead_insns): Don't use it.
5133 * web.c (union_defs): Remove comment about keeping nops.
5134 * gcse.c (hash_scan_insn): Don't take libcall pointers.
5135 (compute_hash_table_work): Don't track libcall notes.
5136 (do_local_cprop): Don't take libcall pointers. Don't update
5138 (adjust_libcall_notes): Deleted.
5139 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
5140 ever have existed in the first place).
5141 (replace_store_insn): Don't try to remove libcall notes.
5142 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
5143 (resolve_reg_notes): Don't call them.
5144 (resolve_simple_move): Likewise.
5145 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
5146 Don't remove REG_RETVAL notes.
5147 * emit-rtl.c (try_split): Don't update libcall notes.
5148 (emit_copy_of_insn_after): Dito.
5149 * cselib.c (cselib_current_insn_in_libcall): Remove.
5150 (cselib_process_insn): Don't set/clear it.
5151 (new_elt_loc_list): Don't record it.
5152 (cselib_init): Don't initialize it.
5153 * cselib.c (struct elt_loc_list): Remove in_libcall field.
5154 * loop-invariant.c (find_invariant_insn): Don't look for libcall
5156 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
5157 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
5158 (init_deps): Don't initialize it.
5159 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
5160 * combine.c (delete_noop_moves): Don't update libcall notes.
5161 (can_combine_p): Remove now pointless #if 0 block.
5162 (try_combine): Remove another obsolete #if 0 block.
5163 (distribute_notes): Don't distribute libcall notes.
5164 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
5165 * dce.c (libcall_dead_p): Remove.
5166 (delete_unmarked_insns): Don't handle libcall blocks.
5167 (preserve_libcall_for_dce): Remove.
5168 (prescan_insns_for_dce): Don't special-case libcall block insns.
5169 * reload1 (reload): Don't handle libcall notes.
5170 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
5173 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
5175 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
5176 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5177 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5179 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
5181 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
5182 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
5183 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
5185 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5187 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
5189 2008-06-16 Ira Rosen <irar@il.ibm.com>
5191 PR tree-optimization/36493
5192 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
5193 the arguments list. Use VECTYPE to create vector pointer.
5194 (vectorizable_store): Fail if accesses through a pointer to vectype
5195 do not alias the original memory reference operands.
5196 Call vect_create_data_ref_ptr without the removed argument.
5197 (vectorizable_load): Likewise.
5198 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
5201 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
5204 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
5207 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
5209 * config/mips/loongson2ef.md: New file.
5210 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5211 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5212 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5213 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
5214 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
5216 (loongson2ef.md): New include.
5217 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
5218 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
5219 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
5220 (loongson_gt_<mode>, loongson_extract_halfword)
5221 (loongson_insert_halfword_0, loongson_insert_halfword_2)
5222 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
5223 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
5224 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
5225 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
5226 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
5227 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
5228 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
5229 (vec_interleave_low<mode>): Define type attribute.
5230 * config/mips/mips.c (mips_ls2): New static variable.
5231 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
5232 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
5233 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
5234 Implement target scheduling hooks.
5235 (mips_multipass_dfa_lookahead): Update to handle tuning for
5237 (mips_sched_init): Initialize data for Loongson scheduling.
5238 (mips_ls2_variable_issue): New static function.
5239 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
5241 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
5242 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
5243 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
5244 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
5245 Handle ST Loongson 2E/2F cores.
5246 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
5248 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5250 * omp-low.c (extract_omp_for_data): Fix comment typo.
5253 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5255 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
5256 FIXME note about gcc/config.guess.
5257 * doc/options.texi (Option file format): Remove non-ASCII bytes.
5258 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
5259 * doc/cppopts.texi: Likewise.
5260 * doc/extend.texi: Likewise.
5261 * doc/gcc.texi: Likewise.
5262 * doc/gccint.texi: Likewise.
5263 * doc/gcov.texi: Likewise.
5264 * doc/gty.texi: Likewise.
5265 * doc/hostconfig.texi: Likewise.
5266 * doc/install.texi: Likewise.
5267 * doc/invoke.texi: Likewise.
5268 * doc/loop.texi: Likewise.
5269 * doc/makefile.texi: Likewise.
5270 * doc/md.texi: Likewise.
5271 * doc/passes.texi: Likewise.
5272 * doc/tm.texi: Likewise.
5273 * doc/tree-ssa.texi: Likewise.
5274 * doc/trouble.texi: Likewise.
5276 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
5277 Nathan Sidwell <nathan@codesourcery.com>
5278 Maxim Kuvyrkov <maxim@codesourcery.com>
5279 Richard Sandiford <rdsandiford@googlemail.com>
5281 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
5282 * config/mips/mips-protos.h (mips_expand_vector_init): New.
5283 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
5285 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
5286 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
5287 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
5289 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
5290 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
5291 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
5292 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
5293 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
5294 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
5295 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
5296 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
5297 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
5298 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
5299 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
5300 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
5301 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
5302 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
5303 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
5304 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
5305 (mips_builtins): Add Loongson builtins.
5306 (mips_loongson_2ef_bdesc): New.
5307 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
5308 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
5309 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
5310 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
5312 (mips_expand_vector_init): New.
5313 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
5314 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
5316 * config/mips/mips.md: Add unspec numbers for Loongson
5317 builtins. Include loongson.md.
5318 (MOVE64): Include Loongson vector modes.
5319 (SPLITF): Include Loongson vector modes.
5320 (HALFMODE): Handle Loongson vector modes.
5321 * config/mips/loongson.md: New.
5322 * config/mips/loongson.h: New.
5323 * config.gcc: Add loongson.h header for mips*-*-* targets.
5324 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
5326 2008-06-14 Joseph Myers <joseph@codesourcery.com>
5328 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
5329 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
5330 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
5331 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
5332 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
5333 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
5334 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
5335 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
5336 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
5337 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
5338 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
5339 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
5340 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
5341 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
5342 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
5343 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
5344 Remove use_fixproto=yes.
5345 (ia64*-*-hpux*): Remove comment about using fixproto.
5346 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
5348 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5350 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
5352 * configure: Regenerate.
5354 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
5357 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
5358 before evaluating it.
5360 2008-06-13 Jakub Jelinek <jakub@redhat.com>
5363 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
5364 nested inline functions.
5365 (start_decl, start_function): Don't invert DECL_EXTERNAL
5366 for nested inline functions.
5368 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
5370 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
5371 splits that must be made for correctness.
5373 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
5375 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
5376 (AVAIL_NON_MIPS16): Likewise.
5377 (mips_builtin_description): Replace target_flags with a predicate.
5378 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
5379 (dspr2_32): New availability predicates.
5380 (MIPS_BUILTIN): New macro.
5381 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
5382 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
5383 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
5384 Replace the TARGET_FLAGS parameters with AVAIL parameters.
5385 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
5386 (mips_dsp_32only_bdesc): Merge into...
5387 (mips_builtins): ...this new array.
5388 (mips_bdesc_map, mips_bdesc_arrays): Delete.
5389 (mips_init_builtins): Update after above changes.
5390 (mips_expand_builtin_1): Merge into...
5391 (mips_expand_builtin): ...here and update after above changes.
5393 2008-06-12 Paul Brook <paul@codesourcery.com>
5395 * longlong.h (__arm__): Define count_leading_zeros.
5396 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
5397 (clzsi2, clzdi2): New functions.
5398 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
5399 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
5400 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
5401 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
5402 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
5403 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
5404 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
5405 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
5406 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
5407 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
5409 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
5411 * config/m68k/m68k.c (m68k_tune_flags): New.
5412 (override_options): Compute m68k_tune_flags.
5413 (MULL_COST, MULW_COST): Update for various variants of CFV2.
5414 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
5416 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5419 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
5421 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
5423 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
5424 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
5426 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
5428 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
5429 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
5431 2008-06-12 Jakub Jelinek <jakub@redhat.com>
5434 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
5437 2008-06-12 Richard Guenther <rguenther@suse.de>
5439 PR tree-optimization/36345
5440 * tree-flow.h (struct ptr_info_def): Align escape_mask,
5441 add memory_tag_needed flag.
5442 (may_alias_p): Declare.
5443 * tree-ssa-alias.c (may_alias_p): Export.
5444 (set_initial_properties): Use memory_tag_needed flag.
5445 (update_reference_counts): Likewise.
5446 (reset_alias_info): Reset memory_tag_needed flag.
5447 (create_name_tags): Check memory_tag_needed flag.
5448 (dump_points_to_info_for): Dump it.
5449 * tree-ssa-structalias.c (struct variable_info): Remove
5450 directly_dereferenced flag.
5451 (new_var_info): Do not initialize it.
5452 (process_constraint_1): Do not set it.
5453 (update_alias_info): Set is_dereferenced flag.
5454 (set_uids_in_ptset): Use may_alias_p.
5455 (set_used_smts): Check memory_tag_needed flag.
5456 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
5457 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
5458 memory_tag_needed flag.
5459 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
5462 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
5464 * config/i386/i386.c (ix86_compute_frame_layout): Disable
5465 red zone for w64 abi.
5466 (ix86_expand_prologue): Likewise.
5467 (ix86_force_to_memory): Likewise.
5468 (ix86_free_from_memory): Likewise.
5470 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
5473 * config/rs6000/rs6000.c (rs6000_override_options): Set
5474 rs6000_isel conditionally to the absence of comand line override.
5475 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
5476 Remove duplicate rs6000_isel setting.
5477 * config/rs6000/eabispe.h: Ditto.
5479 2008-06-11 Richard Guenther <rguenther@suse.de>
5481 * alias.c (get_alias_set): Use the element alias-set for arrays.
5482 (record_component_aliases): For arrays and vectors do nothing.
5483 * c-common.c (strict_aliasing_warning): Handle the cases
5484 of alias set zero explicitly.
5485 * Makefile.in (dfp.o-warn): Add -Wno-error.
5487 2008-06-11 Joseph Myers <joseph@codesourcery.com>
5489 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
5491 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
5492 tune_32 tune_64 to supported_defaults. Allow values not
5493 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
5494 x86_64. Do not override cpu_32 or cpu_64 values from target name.
5495 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
5496 with_cpu_64 to generic for 64-bit-supporting configurations, not
5497 with_cpu. Remove FIXMEs.
5498 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
5499 --with-arch-64, --with-tune-32, --with-tune-64): Document.
5500 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
5501 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
5502 arch_32 and arch_64.
5504 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
5505 Olivier Hainque <hainque@adacore.com>
5507 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
5508 Use DECL_SIZE_UNIT to retrieve the size of the field.
5510 2008-06-11 Joseph Myers <joseph@codesourcery.com>
5512 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
5513 with function calls after declarations. Lay out
5514 neon_float_type_node before further use.
5516 2008-06-11 Richard Guenther <rguenther@suse.de>
5518 * tree-flow.h (may_point_to_global_var): Declare.
5519 * tree-ssa-alias.c (may_point_to_global_var): New function.
5520 * tree-ssa-sink.c (is_hidden_global_store): Use it.
5522 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
5524 * configure.ac: Teach that fido supports .debug_line.
5525 * configure: Regenerate.
5527 2008-06-10 Tom Tromey <tromey@redhat.com>
5529 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
5532 2008-06-10 Joseph Myers <joseph@codesourcery.com>
5534 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
5535 (encode_decimal64, decode_decimal64, encode_decimal128,
5536 decode_decimal128): Reverse order of 32-bit parts of value if host
5537 and target endianness differ.
5539 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
5541 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
5542 Avoid division by 0.
5543 (tree_mod_pow2_value_transform): Likewise.
5544 (tree_ic_transform): Likewise.
5545 (tree_stringops_transform): Likewise.
5546 (tree_mod_subtract_transform): Likewise.
5547 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
5548 (copy_edges_for_bb): Likewise.
5549 (initialize_cfun): Likewise.
5551 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
5553 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
5554 nonmemory_operand. Add "N" operand constraint.
5556 (*jcc_btdi_mask_rex64): New instruction and split pattern.
5557 (*jcc_btsi_mask): Ditto.
5558 (*jcc_btsi_mask_1): Ditto.
5560 2008-06-10 Joseph Myers <joseph@codesourcery.com>
5562 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
5563 TYPE_CANONICAL for copied element type.
5565 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
5568 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
5569 Add m_CORE2 and m_GENERIC.
5570 * config/i386/predicates.md (bt_comparison_operator): New predicate.
5571 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
5573 (*jcc_btdi_rex64): New instruction and split pattern.
5575 (*jcc_btsi_1): Ditto.
5576 (*btsq): Fix Intel asm dialect operand order.
5580 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
5583 * simplify-rtx.c (simplify_subreg): Add check for shift count
5586 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
5588 * doc/md.texi: Synchronize with later constraints.md change.
5589 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
5590 with a C implementation.
5591 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
5593 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
5594 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
5595 when moving to and from MD_REGNUM.
5596 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
5597 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
5598 Handle byte and halfword moves.
5599 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
5601 * config/mips/constraints.md (h): Turn into NO_REGS.
5602 (l, x): Update documentation.
5603 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
5604 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
5605 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
5606 (HILO): New mode iterator.
5608 (any_div): New code iterator.
5609 (u): Extend code attribute to div and udiv.
5610 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
5611 d_operand in the splitters. Remove redundant CONST_INT checks.
5612 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
5613 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
5614 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
5615 accordingly, using normal moves instead of unspecs to move LO into
5616 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
5617 (<u>mulsidi3): Handle expansion in C code.
5618 (<u>mulsidi3_32bit_internal): Rename to...
5619 (<u>mulsidi3_32bit): ...this.
5620 (<u>mulsidi3_32bit_r4000): Fix insn separator.
5621 (*<u>mulsidi3_64bit): Rename to...
5622 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
5623 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
5624 to set LO and HI to the multiplication result. Use a normal move
5625 for MFLO and an unspec for MFHI.
5626 (*<u>mulsidi3_64bit_parts): Replace with...
5627 (<u>mulsidi3_64bit_hilo): ...this new instruction.
5628 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
5629 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
5630 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
5631 instead of HI. Split the instruction into a separate multiplication
5632 and MFHI if !TARGET_FIX_R4000.
5633 (<su>muldi3_highpart): Likewise.
5634 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
5635 and the "=h" clobber.
5636 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
5637 (<u>mulditi3): New expander.
5638 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
5639 (madsi): Remove "=h" clobber.
5640 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
5641 Force the modulus result to be a GPR and split the instruction into
5642 a division followed by an MFHI after reload.
5643 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
5644 (*lea_high64): Use d_operand in the define_peephole2. Likewise
5645 the MIPS16 HIGH define_split.
5646 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
5647 of acc<->gpr moves to "multi".
5648 (*movdi_64bit): Replace the single "x" alternative with
5649 alternatives for moving into and out of "a".
5650 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
5651 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
5652 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
5653 Use d_operand in the splitters. Remove redundant CONST_INT checks.
5654 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
5655 (movti): New expander.
5656 (*movti, *movti_mips16): New insns.
5657 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
5658 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
5659 (mthi<GPR:mode>_<HILO:mode>): Likewise.
5660 * config/mips/predicates.md (fpr_operand): Delete.
5661 (d_operand): New predicate.
5663 2008-06-09 Michael Meissner <michael.meissner@amd.com>
5665 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
5666 failure on some Bourne shells.
5667 (x86_64-*-*): Ditto.
5669 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
5671 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
5673 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
5675 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
5676 (sparc-sun-solaris2*): Likewise.
5678 2008-06-09 Arnaud Charlet <charlet@adacore.com
5680 * doc/install.texi: Update requirements to build the Ada compiler.
5682 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
5684 * df-scan.c (struct df_scan_problem_data): Remove the
5685 mw_link_pool alloc pool.
5686 (df_scan_free_internal): Don't free it.
5687 (df_scan_alloc): Don't allocate it.
5688 * df.h (struct df_link): Update comment.
5690 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
5692 * except.h: Correct checks for when SJLJ exceptions must be used.
5694 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5696 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
5699 2008-06-08 Joseph Myers <joseph@codesourcery.com>
5701 PR tree-optimization/36218
5702 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
5703 configure for the build system.
5704 (BUILD_LDFLAGS): Define.
5705 * configure: Regenerate.
5706 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
5708 2008-07-08 Anatoly Sokolov <aesok@post.ru>
5711 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
5712 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
5713 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
5715 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
5717 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
5719 2008-06-07 Joseph Myers <joseph@codesourcery.com>
5721 * config.gcc (Obsolete configurations): Remove list of
5723 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
5724 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
5725 targets matched by those patterns.
5726 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
5727 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
5728 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
5729 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
5730 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5731 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
5732 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
5733 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
5734 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
5735 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
5736 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
5737 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
5738 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
5739 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
5740 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
5741 Make code for Solaris 7 and greater unconditional for Solaris.
5742 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
5743 Remove --with-* handling.
5744 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
5745 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
5746 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
5747 LINK_OS_WINDISS_SPEC): Remove.
5748 * config/rs6000/sysv4.opt (mwindiss): Remove.
5749 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
5750 * configure: Regenerate.
5751 * doc/cpp.texi: Don't mention BeOS.
5752 * doc/extend.texi (interrupt): Don't mention MS1.
5753 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
5754 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
5755 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
5756 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
5757 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
5759 * doc/invoke.texi (MT Options): Remove.
5760 (-mwindiss): Remove.
5761 (CRIS Options): Remove cris-axis-aout references.
5762 (HPPA Options): Don't mention hppa1.1-*-pro.
5763 * doc/md.texi: (MorphoTech family): Remove.
5764 * libgcc2.c: Don't handle UWIN.
5765 * config/alpha/t-unicosmk: Remove.
5766 * config/alpha/unicosmk.h: Remove.
5767 * config/arm/kaos-arm.h: Remove.
5768 * config/arm/kaos-strongarm.h: Remove.
5769 * config/arm/strongarm-coff.h: Remove.
5770 * config/arm/strongarm-elf.h: Remove.
5771 * config/arm/strongarm-pe.h: Remove.
5772 * config/arm/t-strongarm-pe: Remove.
5773 * config/arm/t-xscale-coff: Remove.
5774 * config/arm/t-xscale-elf: Remove.
5775 * config/arm/xscale-coff.h: Remove.
5776 * config/arm/xscale-elf.h: Remove.
5777 * config/chorus.h: Remove.
5778 * config/cris/aout.h: Remove.
5779 * config/cris/aout.opt: Remove.
5780 * config/cris/t-aout: Remove.
5781 * config/i386/beos-elf.h: Remove.
5782 * config/i386/kaos-i386.h: Remove.
5783 * config/i386/ptx4-i.h: Remove.
5784 * config/i386/sco5.h: Remove.
5785 * config/i386/sco5.opt: Remove.
5786 * config/i386/sysv4-cpp.h: Remove.
5787 * config/i386/sysv5.h: Remove.
5788 * config/i386/t-beos: Remove.
5789 * config/i386/t-sco5: Remove.
5790 * config/i386/t-uwin: Remove.
5791 * config/i386/uwin.asm: Remove.
5792 * config/i386/uwin.h: Remove.
5793 * config/kaos.h: Remove.
5794 * config/mips/windiss.h: Remove.
5795 * config/mt: Remove directory.
5796 * config/pa/pa-osf.h: Remove.
5797 * config/pa/pa-pro-end.h: Remove.
5798 * config/pa/t-pro: Remove.
5799 * config/ptx4.h: Remove.
5800 * config/rs6000/beos.h: Remove.
5801 * config/rs6000/kaos-ppc.h: Remove.
5802 * config/rs6000/t-beos: Remove.
5803 * config/rs6000/windiss.h: Remove.
5804 * config/sh/kaos-sh.h: Remove.
5805 * config/sol2-6.h: Remove.
5806 * config/sparc/sol26-sld.h: Remove.
5807 * config/sparc/sysv4-only.h: Remove.
5808 * config/vax/bsd.h: Remove.
5809 * config/vax/t-memfuncs: Remove.
5810 * config/vax/ultrix.h: Remove.
5811 * config/vax/vaxv.h: Remove.
5812 * config/windiss.h: Remove.
5814 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
5816 PR rtl-optimization/36438
5817 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
5818 for vector shifts with constant scalar shift operands.
5820 2008-06-06 Sandip Matte <sandip@rmicorp.com>
5822 * doc/invoke.texi: Document -march=xlr.
5823 * config/mips/xlr.md: New file.
5824 * config/mips/mips.md: Include it.
5826 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
5827 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
5828 (mips_rtx_cost_data): Likewise.
5830 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
5832 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
5833 PRE_INC and PRE_DEC cases.
5835 2008-06-06 Jakub Jelinek <jakub@redhat.com>
5837 PR rtl-optimization/36419
5838 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
5839 the emitting jump insn.
5842 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
5843 is not bool, boolify the whole *expr_p and convert to the desired type.
5845 2008-06-06 Jakub Jelinek <jakub@redhat.com>
5847 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
5848 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
5849 Add omp_private_outer_ref hook, add another argument to
5850 omp_clause_default_ctor hook.
5851 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
5852 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
5853 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
5854 hook_tree_tree_tree_tree_null.
5855 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
5856 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
5857 * hooks.c (hook_tree_tree_tree_tree_null): New function.
5858 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
5859 * tree.def (OMP_TASK): New tree code.
5860 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
5861 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
5862 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
5863 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
5864 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
5865 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
5866 OMP_CLAUSE_COLLAPSE_EXPR): Define.
5867 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5868 (OMP_DIRECTIVE_P): Add OMP_TASK.
5869 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
5870 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
5871 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
5872 and OMP_CLAUSE_UNTIED entries.
5873 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
5875 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5876 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
5877 * tree-pretty-print.c (dump_omp_clause): Handle
5878 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
5879 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5880 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
5881 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
5882 warning about unsigned iterators. Change decl/init/cond/incr
5883 arguments to TREE_VECs, check arguments for all collapsed loops.
5884 (c_finish_omp_taskwait): New function.
5885 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
5887 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
5888 default_function_array_conversion on init. Add par_clauses argument.
5889 If decl is present in parallel's lastprivate clause, change it to
5890 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
5891 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
5892 collapse count in clauses.
5893 (c_parser_omp_for, c_parser_omp_parallel): Adjust
5894 c_parser_omp_for_loop callers.
5895 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
5896 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
5897 (c_parser_omp_clause_name): Handle collapse and untied clauses.
5898 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
5900 (c_parser_omp_clause_schedule): Handle schedule(auto).
5901 Include correct location in the error message.
5902 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
5903 and PRAGMA_OMP_CLAUSE_UNTIED.
5904 (OMP_TASK_CLAUSE_MASK): Define.
5905 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
5906 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
5907 * tree-nested.c (convert_nonlocal_omp_clauses,
5908 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
5909 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
5910 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5911 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
5913 (conver_nonlocal_reference, convert_local_reference,
5914 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
5915 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
5916 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
5917 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
5918 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
5919 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
5920 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
5921 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
5922 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5924 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
5925 * c-common.h (c_finish_omp_taskwait): New prototype.
5926 * gimple-low.c (lower_stmt): Handle OMP_TASK.
5927 * tree-parloops.c (create_parallel_loop): Create 1 entry
5928 vectors for OMP_FOR_{INIT,COND,INCR}.
5929 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
5930 (make_edges): Handle OMP_TASK.
5931 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
5932 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5933 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
5934 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
5935 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
5936 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5937 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5938 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
5939 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
5940 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
5941 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
5942 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
5943 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
5944 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
5945 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
5946 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
5947 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
5948 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
5949 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
5950 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
5951 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
5952 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
5953 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
5954 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
5955 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
5956 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
5957 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
5958 original iterator is present in lastprivate clause or if
5959 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
5960 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5961 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
5962 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
5963 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
5964 if it is set, lookup var in outer contexts too. Handle
5965 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
5966 to be implicitly determined firstprivate for task regions.
5967 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
5968 if it is set, lookup var in outer contexts too. Set
5969 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
5970 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
5971 OMP_CLAUSE_UNTIED. Take region_type as last argument
5972 instead of in_parallel and in_combined_parallel.
5973 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
5975 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
5976 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
5977 (new_omp_context): Set default_kind to
5978 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
5979 (omp_region_type): New enum.
5980 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
5981 fields, add region_type.
5982 (new_omp_context): Take region_type as argument instead of is_parallel
5983 and is_combined_parallel.
5984 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
5985 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
5986 ctx->is_combined_parallel checks.
5987 (gimplify_omp_task): New function.
5988 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5990 * omp-low.c (extract_omp_for_data): Use schedule(static)
5991 for schedule(auto). Handle pointer and unsigned iterators.
5992 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
5993 Add loops argument. Extract data for collapsed OMP_FOR loops.
5994 (expand_parallel_call): Assert sched_kind isn't auto,
5995 map runtime schedule to index 3.
5996 (struct omp_for_data_loop): New type.
5997 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
5998 Add loop, loops, collapse and iter_type fields.
5999 (workshare_safe_to_combine_p): Disallow combined for if
6000 iter_type is unsigned long long. Don't combine collapse > 1 loops
6001 unless all bounds and steps are constant. Adjust extract_omp_for_data
6003 (expand_omp_for_generic): Handle pointer, unsigned and long long
6004 iterators. Handle collapsed OMP_FOR loops. Adjust
6005 for struct omp_for_data changes. If libgomp function doesn't return
6006 boolean_type_node, add comparison of the return value with 0.
6007 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
6008 pointer, unsigned and long long iterators. Adjust for struct
6009 omp_for_data changes.
6010 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
6011 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
6012 unsigned long long. Allocate loops array, pass it to
6013 extract_omp_for_data. For collapse > 1 loops use always
6014 expand_omp_for_generic.
6015 (omp_context): Add sfield_map and srecord_type fields.
6016 (is_task_ctx, lookup_sfield): New functions.
6017 (use_pointer_for_field): Use is_task_ctx helper. Change first
6018 argument's type from const_tree to tree. Clarify comment.
6019 In OMP_TASK disallow copy-in/out sharing.
6020 (build_sender_ref): Call lookup_sfield instead of lookup_field.
6021 (install_var_field): Add mask argument. Populate both record_type
6022 and srecord_type if needed.
6023 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
6025 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
6026 and DECL_FIELD_OFFSET.
6027 (scan_sharing_clauses): Adjust install_var_field callers. For
6028 firstprivate clauses on explicit tasks allocate the var by value in
6029 record_type unconditionally, rather than by reference.
6030 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
6031 Use is_taskreg_ctx instead of is_parallel_ctx.
6032 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
6033 (create_omp_child_function_name): Add task_copy argument, use
6034 *_omp_cpyfn* names if it is true.
6035 (create_omp_child_function): Add task_copy argument, if true create
6036 *_omp_cpyfn* helper function.
6037 (scan_omp_parallel): Adjust create_omp_child_function callers.
6038 Rename parallel_nesting_level to taskreg_nesting_level.
6039 (scan_omp_task): New function.
6040 (lower_rec_input_clauses): Don't run constructors for firstprivate
6041 explicit task vars which are initialized by *_omp_cpyfn*.
6042 Pass outer var ref to omp_clause_default_ctor hook if
6043 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
6044 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
6045 OMP_CLAUSE_REDUCTION_INIT.
6046 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
6047 avoid duplicate setting of fields. Handle
6048 OMP_CLAUSE_PRIVATE_OUTER_REF.
6049 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
6050 copy-out if TREE_READONLY, only copy-in.
6051 (expand_task_copyfn): New function.
6052 (expand_task_call): New function.
6053 (struct omp_taskcopy_context): New type.
6054 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
6056 (lower_omp_parallel): Rename to...
6057 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
6058 Call create_task_copyfn if srecord_type is needed. Adjust
6060 (task_shared_vars): New variable.
6061 (check_omp_nesting_restrictions): Warn if work-sharing,
6062 barrier, master or ordered region is closely nested inside OMP_TASK.
6063 Add warnings for barrier if closely nested inside of work-sharing,
6064 ordered, or master region.
6065 (scan_omp_1): Call check_omp_nesting_restrictions even for
6066 GOMP_barrier calls. Rename parallel_nesting_level to
6067 taskreg_nesting_level. Handle OMP_TASK.
6068 (lower_lastprivate_clauses): Even if some lastprivate is found on a
6069 work-sharing construct, continue looking for them on parent parallel
6071 (lower_omp_for_lastprivate): Add lastprivate clauses
6072 to the beginning of dlist rather than end. Adjust for struct
6073 omp_for_data changes.
6074 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
6075 not after it. Handle collapsed OMP_FOR loops, adjust for
6076 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
6077 (get_ws_args_for): Adjust extract_omp_for_data caller.
6078 (scan_omp_for): Handle collapsed OMP_FOR
6079 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
6080 (lower_omp_single_simple): If libgomp function doesn't return
6081 boolean_type_node, add comparison of the return value with 0.
6082 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
6083 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
6084 (parallel_nesting_level): Rename to...
6085 (taskreg_nesting_level): ... this.
6086 (is_taskreg_ctx): New function.
6087 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
6089 (execute_lower_omp): Rename parallel_nesting_level to
6090 taskreg_nesting_level.
6091 (expand_omp_parallel): Rename to...
6092 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
6093 Call omp_task_call for OMP_TASK regions.
6094 (expand_omp): Adjust caller, handle OMP_TASK.
6095 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
6097 * bitmap.c (bitmap_default_obstack_depth): New variable.
6098 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
6099 if argument is NULL and bitmap_default_obstack is already initialized.
6100 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
6102 * matrix-reorg.c (matrix_reorg): Likewise.
6104 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
6106 * config/i386/i386.md (*indirect_jump): Macroize using P
6107 mode iterator. Remove !TARGET_64BIT from insn constraints.
6108 (*tablejump_1): Ditto.
6109 (*indirect_jump_rex64): Remove insn pattern.
6110 (*tablejump_1_rex64): Ditto.
6111 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
6112 and eh_return_si insn patterns.
6114 2008-06-06 Richard Guenther <rguenther@suse.de>
6116 * tree-ssa-structalias.c (merge_smts_into): Remove.
6117 (find_what_p_points_to): Do not bother to compute the
6118 points-to set for pt_anything pointers.
6119 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
6120 for pt_anything pointers is ok.
6122 2008-06-06 Jan Hubicka <jh@suse.cz>
6124 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
6126 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6128 * cgraph.c: Fix typos in comments.
6129 (cgraph_availability_names): Fix string typo.
6130 * fold-const.c: Fix typos in comments.
6131 (fold_binary): Fix typo in warning.
6132 * genautomata.c: Fix typos in comments.
6133 (check_presence_pattern_sets): Fix typo in local variable.
6134 (output_description): Fix typo in output.
6135 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
6136 * hwint.h: Likewise.
6137 * matrix-reorg.c (check_allocation_function): Likewise.
6138 * omega.c (smooth_weird_equations): Likewise.
6139 * auto-inc-dec.c: Fix typos in comments.
6140 * bb-reorder.c: Likewise.
6141 * builtins.c: Likewise.
6142 * c-common.c: Likewise.
6143 * c-cppbuiltin.c: Likewise.
6144 * c-parser.c: Likewise.
6145 * c-pretty-print.c: Likewise.
6146 * cfgcleanup.c: Likewise.
6147 * cfgexpand.c: Likewise.
6148 * cfghooks.c: Likewise.
6149 * cfglayout.c: Likewise.
6150 * cfgloopmanip.c: Likewise.
6151 * cgraphunit.c: Likewise.
6152 * coverage.c: Likewise.
6153 * dbxout.c: Likewise.
6154 * df-byte-scan.c: Likewise.
6155 * df-core.c: Likewise.
6156 * df-problems.c: Likewise.
6157 * df-scan.c: Likewise.
6159 * dominance.c: Likewise.
6160 * domwalk.c: Likewise.
6162 * dwarf2out.c: Likewise.
6163 * emit-rtl.c: Likewise.
6164 * et-forest.c: Likewise.
6165 * function.c: Likewise.
6166 * function.h: Likewise.
6168 * gcov-io.c: Likewise.
6171 * genattrtab.c: Likewise.
6172 * ggc-page.c: Likewise.
6173 * gimplify.c: Likewise.
6174 * gthr-lynx.h: Likewise.
6175 * haifa-sched.c: Likewise.
6176 * ipa-cp.c: Likewise.
6177 * ipa-inline.c: Likewise.
6178 * ipa-prop.h: Likewise.
6179 * ipa-pure-const.c: Likewise.
6180 * ipa-struct-reorg.c: Likewise.
6181 * ipa-struct-reorg.h: Likewise.
6182 * ipa-type-escape.c: Likewise.
6184 * loop-doloop.c: Likewise.
6185 * mips-tfile.c: Likewise.
6186 * mkmap-flat.awk: Likewise.
6187 * mkmap-symver.awk: Likewise.
6188 * modulo-sched.c: Likewise.
6189 * omp-low.c: Likewise.
6190 * optabs.c: Likewise.
6191 * optabs.h: Likewise.
6193 * passes.c: Likewise.
6194 * postreload-gcse.c: Likewise.
6195 * postreload.c: Likewise.
6196 * predict.c: Likewise.
6197 * pretty-print.h: Likewise.
6198 * profile.c: Likewise.
6199 * protoize.c: Likewise.
6200 * ra-conflict.c: Likewise.
6202 * recog.c: Likewise.
6203 * regclass.c: Likewise.
6205 * reload.c: Likewise.
6206 * rtl-error.c: Likewise.
6207 * rtlanal.c: Likewise.
6209 * sched-rgn.c: Likewise.
6212 * target.h: Likewise.
6213 * tree-dfa.c: Likewise.
6214 * tree-eh.c: Likewise.
6215 * tree-flow-inline.h: Likewise.
6216 * tree-inline.c: Likewise.
6217 * tree-into-ssa.c: Likewise.
6218 * tree-loop-distribution.c: Likewise.
6219 * tree-nested.c: Likewise.
6220 * tree-parloops.c: Likewise.
6221 * tree-pass.h: Likewise.
6222 * tree-pretty-print.c: Likewise.
6223 * tree-profile.c: Likewise.
6224 * tree-scalar-evolution.c: Likewise.
6225 * tree-sra.c: Likewise.
6226 * tree-ssa-alias-warnings.c: Likewise.
6227 * tree-ssa-ccp.c: Likewise.
6228 * tree-ssa-coalesce.c: Likewise.
6229 * tree-ssa-dom.c: Likewise.
6230 * tree-ssa-dse.c: Likewise.
6231 * tree-ssa-forwprop.c: Likewise.
6232 * tree-ssa-live.c: Likewise.
6233 * tree-ssa-live.h: Likewise.
6234 * tree-ssa-loop-im.c: Likewise.
6235 * tree-ssa-loop-ivopts.c: Likewise.
6236 * tree-ssa-loop-niter.c: Likewise.
6237 * tree-ssa-loop-prefetch.c: Likewise.
6238 * tree-ssa-phiopt.c: Likewise.
6239 * tree-ssa-phiprop.c: Likewise.
6240 * tree-ssa-sccvn.c: Likewise.
6241 * tree-ssa-ter.c: Likewise.
6242 * tree-ssa-threadupdate.c: Likewise.
6243 * tree-ssa.c: Likewise.
6244 * tree-vect-analyze.c: Likewise.
6245 * tree-vect-transform.c: Likewise.
6246 * tree-vectorizer.c: Likewise.
6247 * tree-vn.c: Likewise.
6248 * tree-vrp.c: Likewise.
6250 * tree.def: Likewise.
6252 * unwind-dw2-fde.c: Likewise.
6253 * unwind.inc: Likewise.
6254 * value-prof.c: Likewise.
6255 * vmsdbgout.c: Likewise.
6257 2008-06-05 David Edelsohn <edelsohn@gnu.org>
6259 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
6260 always place FP constants in the TOC for TARGET_POWERPC64.
6261 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
6263 2008-06-05 Joseph Myers <joseph@codesourcery.com>
6265 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
6266 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
6267 enable for TARGET_E500_DOUBLE.
6268 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
6269 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
6270 floating-point modes like integer modes for E500 double.
6271 (rs6000_legitimate_offset_address_p): Likewise.
6272 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
6273 addressing for DDmode for E500 double.
6274 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
6275 modes as using 64-bits of registers for E500 double.
6276 (spe_build_register_parallel): Do not handle DDmode or TDmode.
6277 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
6278 specially for E500 double.
6279 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
6280 TDmode for E500 double.
6281 (rs6000_gimplify_va_arg): Only handle SDmode in registers
6282 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
6283 (rs6000_split_multireg_move): Do not handle TDmode specially for
6285 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
6286 using 64-bit registers for E500 double.
6287 (emit_frame_save): Do not handle DDmode specially for E500 double.
6288 (gen_frame_mem_offset): Likewise.
6289 (rs6000_function_value): Do not call spe_build_register_parallel
6290 for DDmode or TDmode.
6291 (rs6000_libcall_value): Likewise.
6292 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
6293 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
6296 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
6298 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
6301 2008-06-04 Junjie Gu <jgu@tensilica.com>
6303 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
6304 comparison for frame pointers.
6306 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
6309 * config/avr/avr.h (PUSH_ROUNDING): Remove.
6311 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
6314 * builtins.c (expand_builtin_signbit): Don't take lowpart when
6315 register is already smaller or equal to required mode.
6317 2008-06-04 Xinliang David Li <davidxl@google.com>
6319 * tree-call-cdce.c: New file.
6320 (cond_dead_built_in_calls): New static variable.
6321 (input_domain): New struct.
6322 (check_pow): New function.
6323 (check_builtin_call): Ditto.
6324 (check_target_format): Ditto.
6325 (is_call_dce_candidate): Ditto.
6326 (gen_one_condition): Ditto.
6327 (gen_conditions_for_domain): Ditto.
6328 (get_domain): Ditto.
6329 (gen_conditions_for_pow_cst_base): Ditto.
6330 (gen_conditions_for_pow_int_base): Ditto.
6331 (gen_conditions_for_pow): Ditto.
6332 (get_no_error_domain): Ditto.
6333 (gen_shrink_wrap_conditions): Ditto.
6334 (shrink_wrap_one_built_in_call): Ditto.
6335 (shink_wrap_conditional_dead_built_in_calls): Ditto.
6336 (tree_call_cdce): Ditto.
6337 (gate_call_cdce): Ditto.
6338 (pass_call_cdce): New gimple pass.
6339 * passes.c: (init_optimization_passes): New pass.
6340 * tree-pass.h: New pass declaration.
6341 * opts.c (decode_options): New flag setting.
6342 * common.opt: Add -ftree-builtin-call-dce flag.
6343 * Makefile.in: Add new source file.
6344 * tempvar.def: New tv_id.
6345 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
6347 2008-06-04 Richard Guenther <rguenther@suse.de>
6349 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
6350 (is_call_clobbered): Always check var_ann->call_clobbered.
6351 (mark_call_clobbered): Always set var_ann->call_clobbered.
6352 (clear_call_clobbered): Always clear var_ann->call_clobbered.
6353 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
6354 (reset_alias_info): Clear call clobbering info on MTAGs and
6356 (set_pt_anything): Set pt_global_mem.
6357 (create_tag_raw): Adjust comment.
6358 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
6360 2008-06-04 Joseph Myers <joseph@codesourcery.com>
6361 Maxim Kuvyrkov <maxim@codesourcery.com>
6363 * config/m68k/m68k.opt (mxgot): New option.
6364 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
6365 (m68k_output_addr_const_extra): New.
6366 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
6367 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
6368 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
6369 * doc/invoke.texi (M680x0 Options): Document -mxgot.
6371 2008-06-04 Richard Guenther <rguenther@suse.de>
6373 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
6374 negative or non-representable offsets.
6376 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
6378 * config/i386/i386.c (ix86_gen_leave): New.
6379 (ix86_gen_pop1): Likewise.
6380 (ix86_gen_add3): Likewise.
6381 (ix86_gen_sub3): Likewise.
6382 (ix86_gen_sub3_carry): Likewise.
6383 (ix86_gen_one_cmpl2): Likewise.
6384 (ix86_gen_monitor): Likewise.
6385 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
6386 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
6387 ix86_gen_one_cmpl2 and ix86_gen_monitor.
6388 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
6389 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
6390 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
6391 (ix86_expand_epilogue): Updated.
6392 (print_operand): Handle integer register operand for 'z'.
6393 (ix86_expand_strlensi_unroll_1): Likewise.
6394 (ix86_expand_strlen): Likewise.
6395 (ix86_expand_builtin): Likewise.
6396 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
6397 mov{q}/mov{l} and add{q}/add{l}.
6399 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
6401 * config/i386/i386.md (P): New mode iterator.
6402 (SFmode push_operand splitter): Macroize DImode and SImode pushes
6403 using P mode iterator.
6404 (DFmode push_operand splitter): Ditto.
6405 (XFmode push_operand splitter): Ditto.
6406 (DFmode float_extend SFmode push_operand splitter): Ditto.
6407 (XFmode float_extend SFmode push_operand splitter): Do not generate
6408 SImode pushes for 64bit target. Macroize Dimode and SImode
6409 pushes using P mode iterator.
6410 (XFmode float_extend DFmode push_operand splitter): Ditto.
6412 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
6414 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
6415 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
6416 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
6418 (ix86_call_abi_override): Remove check for call_used_regs.
6420 2008-06-03 Richard Guenther <rguenther@suse.de>
6422 * tree-ssa-structalias.c (find_func_aliases): Add constraints
6423 for the lhs of calls if the return type contains pointers.
6425 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
6427 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
6428 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
6429 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
6430 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
6431 of cfun and DEFAULT_ABI to deceide abi mode.
6433 (REG_PARM_STACK_SPACE): Removed.
6434 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
6435 (STACK_BOUNDARY): Use default target to deceide stack boundary.
6436 * config/i386/i386-protos.h (ix86_cfun_abi): New.
6437 (ix86_function_abi): Likewise.
6438 (ix86_function_type_abi): Likewise.
6439 (ix86_call_abi_override): Likewise.
6440 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
6441 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
6442 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
6443 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
6445 (X86_64_REGPARM_MAX): New.
6446 (X86_64_SSE_REGPARM_MAX): New.
6447 (X64_REGPARM_MAX): New.
6448 (X64_SSE_REGPARM_MAX): New.
6449 (X86_32_REGPARM_MAX): New.
6450 (X86_32_SSE_REGPARM_MAX): New.
6451 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
6452 (ix86_function_regparm): Handle user calling abi.
6453 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
6454 by DEFAULT_ABI versus SYSV_ABI check.
6455 (ix86_reg_parm_stack_space): New.
6456 (ix86_function_type_abi): New.
6457 (ix86_call_abi_override): New.
6458 (ix86_function_abi): New.
6459 (ix86_cfun_abi): New.
6460 (init_cumulative_args): Call abi specific initialization.
6461 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
6462 (function_arg_64): Extend SSE_REGPARM_MAX check.
6463 (function_arg (): Remove TARGET_64BIT_MS_ABI.
6464 (ix86_pass_by_reference): Likewise.
6465 (ix86_function_value_regno_p): Likewise.
6466 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
6467 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
6468 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
6469 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
6470 (setup_incoming_varargs_64): Adjust regparm for call abi.
6471 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
6472 (ix86_va_start): Likewise.
6473 (ix86_gimplify_va_arg): Likewise.
6474 (ix86_expand_prologue): Likewise.
6475 (output_pic_addr_const): Likewise.
6476 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
6477 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
6478 (x86_output_mi_thunk): Likewise.
6479 (x86_function_profiler): Likewise.
6480 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
6481 (SYSV_ABI, MS_ABI): New constants.
6483 (init_regs): Add prototype of function in regclass.c file.
6484 (OVERRIDE_ABI_FORMAT): New.
6485 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
6486 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
6487 (OUTGOING_REG_PARM_STACK_SPACE): New.
6488 (ix86_reg_parm_stack_space): New prototype.
6489 (CUMULATIVE_ARGS): Add call_abi member.
6490 (machine_function): Add call_abi member.
6491 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
6492 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
6494 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
6497 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
6498 (avr_builtin_setjmp_frame_value): New function.
6499 * config/avr/avr.md (nonlocal_goto_receiver): Define.
6500 (nonlocal_goto): Define.
6502 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
6504 * config/mips/mips.c (mips_emit_loadgp): Return early if
6505 there is nothing do to, otherwise emit a blockage if
6506 !TARGET_EXPLICIT_RELOCS || crtl->profile.
6507 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
6509 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6511 * configure.ac: Drop unneeded backslash ending up in config.in.
6512 * acinclude.m4: Likewise.
6513 * config.in: Regenerate.
6515 2008-05-26 Jan Hubicka <jh@suse.cz>
6517 * predict.c (maybe_hot_frequency_p): Break out of...
6518 (maybe_hot_bb_p): ... here.
6519 (maybe_hot_edge_p): New.
6520 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
6521 * basic-block.h (maybe_hot_edge_p): Declare.
6523 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
6525 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
6526 (*cmpfp_<mode>_cc): Ditto.
6527 (*fp_jcc_8<mode>_387): Ditto.
6528 (*fop_<MODEF:mode>_2_i387): Ditto.
6529 (*fop_<MODEF:mode>_3_i387): Ditto.
6530 (*fop_xf_2_i387): Ditto.
6531 (*fop_xf_3_i387): Ditto.
6533 2008-06-02 Tomas Bily <tbily@suse.cz>
6535 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
6537 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6539 * config/mips/mips.c (mips_valid_offset_p): New function.
6540 (mips_valid_lo_sum_p): Likewise.
6541 (mips_classify_address): Use them.
6542 (mips_force_address): New function.
6543 (mips_legitimize_address): Use it.
6544 * config/mips/mips.md (MOVE128): New mode iterator.
6545 (movtf): Require TARGET_64BIT. Remove empty strings.
6546 (*movtf_internal): Rename to...
6547 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
6548 of "R" and use {,fp}{load,store} attributes instead of "multi".
6549 Use a separate define_split.
6550 (*movtf_mips16): New pattern.
6552 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6554 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
6555 * config/mips/mips.c (mips_expand_before_return): New function.
6556 (mips_expand_epilogue): Call it.
6557 * config/mips/mips.md (return): Turn into a define_expand.
6558 (*return): New insn.
6560 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6562 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
6563 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
6564 functions. Do not emit uses and clobbers of CONCATs; individually
6565 use and clobber their operands.
6566 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
6567 gen_clobber, emit_use and gen_use.
6568 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
6569 (expand_builtin_return): Likewise.
6570 * cfgbuild.c (count_basic_blocks): Likewise.
6571 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
6572 * explow.c (emit_stack_restore): Likewise.
6573 * expmed.c (extract_bit_field_1): Likewise.
6574 * expr.c (convert_move, emit_move_complex_parts): Likewise.
6575 (emit_move_multi_word, store_constructor): Likewise.
6576 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
6577 (thread_prologue_and_epilogue_insns): Likewise.
6578 * lower-subreg.c (resolve_simple_move): Likewise.
6579 * optabs.c (widen_operand, expand_binop): Likewise.
6580 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
6581 * reload.c (find_reloads): Likewise.
6582 * reload1.c (eliminate_regs_in_insn): Likewise.
6583 * stmt.c (expand_nl_goto_receiver): Likewise.
6584 * config/alpha/alpha.md (builtin_longjmp): Likewise.
6585 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
6586 * config/arm/arm.c (arm_load_pic_register): Likewise.
6587 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
6588 * config/arm/arm.md (untyped_return): Likewise.
6589 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
6590 * config/avr/avr.c (expand_prologue): Likewise.
6591 * config/bfin/bfin.c (do_unlink): Likewise.
6592 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
6593 * config/cris/cris.c (cris_expand_prologue): Likewise.
6594 * config/darwin.c (machopic_indirect_data_reference): Likewise.
6595 (machopic_legitimize_pic_address): Likewise.
6596 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
6597 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
6598 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
6599 (ix86_expand_convert_uns_didf_sse): Likewise.
6600 (ix86_expand_vector_init_general): Likewise.
6601 * config/ia64/ia64.md (eh_epilogue): Likewise.
6602 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
6603 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
6604 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
6605 (config/iq2000/iq2000.c): Likewise.
6606 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
6607 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6608 (builtin_longjmp): Likewise.
6609 * config/mn10300/mn10300.md (call, call_value): Likewise.
6610 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
6611 * config/pdp11/pdp11.md (abshi2): Likewise.
6612 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
6613 * config/s390/s390.c (s390_emit_prologue): Likewise.
6614 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
6615 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
6616 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
6617 * config/sh/sh.c (prepare_move_operands): Likewise.
6618 (output_stack_adjust, sh_expand_epilogue): Likewise.
6619 (sh_set_return_address, sh_expand_t_scc): Likewise.
6620 * config/sparc/sparc.c (load_pic_register): Likewise.
6621 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
6622 * config/spu/spu.c (spu_expand_epilogue): Likewise.
6623 * config/v850/v850.c (expand_epilogue): Likewise.
6625 2008-05-31 Anatoly Sokolov <aesok@post.ru>
6627 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
6628 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
6629 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
6630 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
6631 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
6632 stack pointer register.
6633 (output_movhi): Remove code for interrupt specific writing to the
6634 stack pointer register.
6636 2008-05-31 Richard Guenther <rguenther@suse.de>
6638 PR tree-optimization/34244
6639 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
6640 (tree_expr_nonzero_warnv_p): Likewise.
6641 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
6642 ssa_name_nonnegative_p.
6643 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
6644 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
6645 not tree_expr_nonzero_warnv_p.
6647 PR tree-optimization/36262
6649 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
6651 PR tree-optimization/34244
6652 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
6653 (record_numbers_of_iterations): New function.
6654 (execute_vrp): Cache the numbers of iterations of loops.
6655 * tree-scalar-evolution.c (scev_reset_except_niters):
6657 (scev_reset): Use scev_reset_except_niters.
6658 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
6660 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
6662 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6663 __WORKAROUND_RETS when appropriate.
6665 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
6667 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
6668 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
6670 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
6671 *fop_df_comm_sse insn patterns using MODEF mode iterator.
6672 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
6673 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
6674 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
6675 *fop_df_1_mixed insn patterns using MODEF mode iterator.
6676 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
6677 *fop_df_1_sse insn patterns using MODEF mode iterator.
6678 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
6679 *fop_df_1_i387 insn patterns using MODEF mode iterator.
6680 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
6681 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
6682 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
6683 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
6684 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
6685 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
6686 (*fop_xf_4_i387): Use <MODE> for mode attribute.
6687 (*fop_xf_5_i387): Ditto.
6688 (*fop_xf_6_i387): Ditto.
6690 2008-05-30 Richard Guenther <rguenther@suse.de>
6692 * builtins.c (build_string_literal): Avoid generating
6693 a non-gimple_val result.
6695 2008-05-30 DJ Delorie <dj@redhat.com>
6697 * exec-tool.in: Use an environment variable (private) instead of a
6698 file (shared) as a semaphore, so as to not break parallel builds.
6700 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
6702 * optabs.c (maybe_encapsulate_block): Remove.
6703 (emit_libcall_block): Adjust accordingly.
6704 * optabs.h (maybe_encapsulate_block): Remove prototype.
6706 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
6707 Don't use maybe_encapsulate_block.
6709 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
6711 * config/rs6000/rs6000.c (rs6000_legitimize_address,
6712 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
6713 rtx is a SYMBOL_REF before calling get_pool_constant.
6715 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
6717 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
6719 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
6721 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
6722 rather than OS names to choose INO_T_EQ definition.
6723 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
6724 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
6726 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
6729 * config/darwin-f.c: New.
6730 * config/t-darwin: Added rule to build darwin-f.o.
6731 * config.gcc: Defined new variable, fortran_target_objs.
6732 (*-*-darwin*): Set fortran_target_objs.
6733 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
6734 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
6735 * configure: Regenerated.
6737 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
6740 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
6741 canonical type if needed.
6743 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
6745 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
6747 2008-05-29 Richard Guenther <rguenther@suse.de>
6749 PR tree-optimization/36343
6750 PR tree-optimization/36346
6751 PR tree-optimization/36347
6752 * tree-flow.h (clobber_what_p_points_to): Declare.
6753 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
6754 pointed-to variable is dereferenced is irrelevant to whether
6755 the pointer can access the pointed-to variable.
6756 (clobber_what_p_points_to): New function.
6757 * tree-ssa-alias.c (set_initial_properties): Use it.
6758 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
6759 call clobber check for NMTs.
6761 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
6763 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
6764 for printing gcov_type.
6766 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
6768 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
6769 and the eh region information.
6770 * value-prof.c (gimple_move_stmt_histograms): New function.
6771 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
6773 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
6775 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
6777 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
6779 * value-prof.c (tree_ic_transform): Print counts.
6780 * tree-profile.c (tree_gen_ic_func_profiler):
6781 Clear __gcov_indreict_call_callee variable to avoid misattribution
6784 2008-05-28 Rafael Espindola <espindola@google.com>
6786 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
6789 2008-05-28 Richard Guenther <rguenther@suse.de>
6791 PR tree-optimization/36339
6792 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
6793 and clobbering code out of the loop.
6795 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
6797 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
6800 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
6801 s390_contiguous_bitmask_p, s390_symref_operand_p,
6802 s390_check_symref_alignment, s390_reload_larl_operand,
6803 s390_reload_symref_address): New functions.
6804 (s390_branch_condition_mnemonic): Support compare and branch
6806 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
6807 and 'W' constraints.
6808 (s390_secondary_reload): Add secondary reloads for unaligned
6809 symbol refs or symbol refs to floating point or QI/TI mode
6811 (legitimate_address_p): Accept symbol references as addresses.
6812 (s390_expand_insv): Use rotate and insert selected bits
6813 instruction for insv when building for z10.
6814 (print_operand_address): Handle symbol ref addresses.
6815 (print_operand): Output modifier 'c' added for signed byte values.
6816 (s390_encode_section_info): Mark symbol refs with
6817 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
6819 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
6820 (length attribute): RRF, RRR have 4 byte length.
6821 (FPALL, INTALL): New mode iterators added.
6822 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
6823 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
6824 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
6825 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
6826 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
6827 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
6828 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
6829 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
6831 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
6832 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
6833 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
6834 reload<INTALL:mode><P:mode>_toreg_z10,
6835 reload<FPALL:mode><P:mode>_tomem_z10,
6836 reload<FPALL:mode><P:mode>_toreg_z10,
6837 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
6838 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
6839 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
6840 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
6842 (movmem, clrmem, cmpmem): New splitters added.
6844 * config/s390/predicates.md (larl_operand): Use
6845 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
6846 SYMBOL_REF_ALIGN1_P.
6847 (s390_signed_integer_comparison,
6848 s390_unsigned_integer_comparison): New predicates.
6850 * config/s390/s390-protos.h (s390_check_symref_alignment,
6851 s390_contiguous_bitmask_p, s390_reload_larl_operand,
6852 s390_reload_symref_address,
6853 s390_compare_and_branch_condition_mask): Prototypes added.
6855 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
6856 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
6857 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
6859 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
6861 * config/s390/s390.c (z10_cost): New cost function for z10.
6862 (s390_handle_arch_option, override_options): Support -march=z10 switch.
6863 (s390_issue_rate): Adjust issue rate for z10.
6864 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
6865 (processor_flags): Add PF_Z10.
6866 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
6867 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
6868 * gcc/config.gcc: Add z10.
6870 2008-05-28 Richard Guenther <rguenther@suse.de>
6872 PR tree-optimization/36291
6873 * tree-flow. h (struct gimple_df): Remove var_anns member.
6874 * tree-flow-inline.h (gimple_var_anns): Remove.
6875 (var_ann): Simplify.
6876 * tree-dfa.c (create_var_ann): Simplify.
6877 (remove_referenced_var): Clear alias info from var_anns of globals.
6878 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
6879 (delete_tree_ssa): Clear alias info from var_anns of globals.
6880 Do not free var_anns.
6881 (var_ann_eq): Remove.
6882 (var_ann_hash): Likewise.
6884 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
6886 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
6887 and loongson2f entries.
6888 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
6889 * config/mips/mips.h (processor_type): Add Loongson-2E
6890 and Loongson-2F entries.
6891 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
6892 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
6893 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
6894 * doc/invoke.texi (MIPS Options): Document loongson2e
6895 and loongson2f processor names.
6897 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
6901 * config/i386/i386.c (ix86_function_arg_boundary): Use
6902 alignment of canonical type.
6903 (ix86_expand_vector_move): Check unaligned memory access for
6906 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
6908 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
6909 Moved to the front of file.
6911 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
6912 H.J. Lu <hongjiu.lu@intel.com>
6914 * dwarf2out.c (current_fde): New.
6916 (lookup_cfa:): Likewise.
6917 (dwarf2out_end_epilogue): Likewise.
6918 (dwarf2out_note_section_used): Likewise.
6920 2008-05-27 Michael Matz <matz@suse.de>
6923 * c.opt (Wenum-compare): New warning option.
6924 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
6926 2008-05-27 Michael Matz <matz@suse.de>
6929 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
6931 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
6932 into memory as tail calls.
6934 2008-05-27 Richard Guenther <rguenther@suse.de>
6936 PR tree-optimization/36339
6937 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
6938 pointers cause all addressable variables to be call clobbered.
6940 2008-05-27 Richard Guenther <rguenther@suse.de>
6942 PR tree-optimization/36245
6943 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
6945 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6947 * config/s390/s390.md: Replace all occurences of the 'm'
6948 constraint with 'RT'.
6950 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6952 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
6954 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
6956 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
6957 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
6958 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
6960 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6962 * reload.c: (find_reloads): Skip alternatives according to the
6963 "enabled" attribute. Constify the constraint variable.
6964 * recog.c (get_attr_enabled): Add default implementation.
6965 (extract_insn): Set the alternative_enabled_p array
6966 in the recog_data struct.
6967 (preprocess_constraints, constrain_operands): Skip
6968 alternatives according to the "enabled" attribute
6969 * recog.h (struct recog_data): New field alternative_enabled_p.
6970 (skip_alternative): New inline function.
6971 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
6972 (record_reg_classes): Skip alternative according to the
6973 "enabled" attribute.
6975 * doc/md.texi: Add documention for the "enabled" attribute.
6977 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
6979 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
6980 * postreload.c (reload_cse_simplify_operands): Replace 'm'
6981 constraint with TARGET_MEM_CONSTRAINT.
6982 * recog.c (asm_operand_ok, preprocess_constraints,
6983 constrain_operands): Likewise.
6984 * regclass.c (record_reg_classes): Likewise.
6985 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
6986 * reload1.c (maybe_fix_stack_asms): Likewise.
6987 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
6988 * recog.h: Adjust comment.
6989 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
6990 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
6991 * doc/md.texi: Add a note to description of 'm' constraint.
6992 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
6994 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
6996 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
6997 that the bitfield is of integral type before testing its precision.
6999 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
7000 Sa Liu <saliu@de.ibm.com>
7002 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
7003 __modti3, __udivti3, __umodti3 and __udivmodti4.
7004 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
7005 that implement TImode mul and div functions.
7006 * config/spu/multi3.c: New. Implement __multi3.
7007 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
7008 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
7011 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
7013 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
7014 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
7015 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
7016 tls_sysv_suffix): New mode and mode attribute iterators.
7017 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
7018 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
7019 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
7020 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
7021 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
7024 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
7026 PR tree-optimization/36329
7027 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
7028 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
7029 * cgraphbuild.c (initialize_inline_failed): Use the latter
7030 macro in lieu of the former.
7031 * ipa-inline.c (cgraph_mark_inline): Likewise.
7032 (cgraph_decide_inlining_of_small_function): Likewise.
7033 (cgraph_decide_inlining): Likewise.
7034 (cgraph_decide_inlining_incrementally): Likewise.
7036 2008-05-26 Tristan Gingold <gingold@adacore.com>
7037 Anatoly Sokolov <aesok@post.ru>
7039 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
7040 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
7041 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
7042 optimization for 'avr6' architecture.
7044 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
7047 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
7049 2008-05-26 Richard Guenther <rguenther@suse.de>
7051 * tree-ssa-sccvn.c (expr_has_constants): Declare.
7052 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
7054 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
7057 * caller-save.c (insert_restore): Verify alignment of spill space.
7058 (insert_save): Likewise.
7059 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
7060 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
7061 (STACK_SLOT_ALIGNMENT): Likewise.
7062 * function.c (LOCAL_ALIGNMENT): Removed.
7063 (get_stack_local_alignment): New.
7064 (assign_stack_local): Use it. Set alignment on stack slot.
7065 (assign_stack_temp_for_type): Use get_stack_local_alignment.
7066 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
7067 (STACK_SLOT_ALIGNMENT): New.
7068 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
7069 stack slot in XFmode.
7071 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
7073 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
7076 * config/i386/i386.md (allocate_stack_worker_64): Make sure
7077 argument operand in rax isn't removed.
7079 2008-05-26 Richard Guenther <rguenther@suse.de>
7082 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
7083 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
7085 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
7088 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
7090 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
7092 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
7093 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
7095 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
7097 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
7098 build a trampoline if we don't want one.
7099 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
7100 return zero for nested functions if we don't want a trampoline.
7102 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
7104 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
7106 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
7109 * c.opt: Removed undocumented option '-lang-fortran'.
7110 * c-common.h: Removed global variable 'lang_fortran'.
7111 * c-opts.c (c_common_handle_option): Removed code to handle
7112 option '-lang-fortran'. Updated includes.
7113 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
7114 definition of '__GFORTRAN__'.
7115 (define__GNUC__): Reimplemented to use BASEVER and
7116 cpp_define_formatted.
7117 (builtin_define_with_value_n): Removed.
7118 * c-incpath.h: Renamed to ...
7119 * incpath.h: ... this.
7120 * c-incpath.c: Renamed to ...
7121 * incpath.c: ... this. Updated includes.
7122 * fix-header.c: Updated includes.
7123 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
7124 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
7125 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
7127 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
7129 * tree.h: Update the table of flags used on tree nodes.
7130 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
7131 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
7132 (FORCED_LABEL): Add access check.
7133 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
7134 (ASM_INPUT_P): Likewise.
7135 (ASM_VOLATILE_P): Likewise.
7136 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
7137 (OMP_SECTION_LAST): Access private_flag directly.
7138 (OMP_RETURN_NOWAIT): Likewise.
7139 (OMP_PARALLEL_COMBINED): Likewise.
7140 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
7141 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
7142 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
7143 deprecated_flag directly.
7145 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
7147 * final.c (frame_pointer_needed): Removed.
7148 * flags.h (frame_pointer_needed): Likewise.
7150 * function.h (rtl_data): Add frame_pointer_needed.
7151 (frame_pointer_needed): New.
7153 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
7155 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
7157 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
7159 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
7162 2008-05-25 Alan Modra <amodra@bigpond.net.au>
7164 * c-common.c (strip_array_types): Move function to..
7166 (get_inner_array_type): Delete.
7167 * c-common.h (strip_array_types): Move declaration to..
7169 (get_inner_array_type): Delete.
7170 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
7171 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
7172 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
7173 * config/pa/pa.c (emit_move_sequence): Likewise.
7175 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
7177 * config/i386/i386.md (*sse_prologue_save_insn): Set length
7180 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
7182 * function.c: Include target hook for nonlocal_goto frame value.
7184 2008-05-24 Richard Guenther <rguenther@suse.de>
7186 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
7187 variable can be only accessed through a pointer or a union.
7189 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7191 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
7192 * doc/extend.texi: Likewise.
7194 2008-05-23 DJ Delorie <dj@redhat.com>
7196 * config/m32c/jump.md (untyped_call): Add.
7198 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
7200 (m32c_address_cost): Detail costs for indirect offsets.
7202 2008-05-23 Rafael Espindola <espindola@google.com>
7204 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
7205 if a node is a SUBREG.
7206 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
7209 2008-05-23 Paul Brook <paul@codesourcery.com>
7210 Carlos O'Donell <carlos@codesourcery.com>
7212 * doc/extend.texi: Clarify use of __attribute__((naked)).
7213 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
7214 * target.h (gcc_target): Add allocate_stack_slots_for_args.
7215 * function.c (use_register_for_decl): Use
7216 targetm.calls.allocate_stack_slots_for_args.
7217 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
7218 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
7219 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
7221 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
7223 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
7225 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
7227 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
7228 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
7229 is only rounded once.
7231 2008-05-23 Richard Guenther <rguenther@suse.de>
7233 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
7235 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
7236 Jakub Jelinek <jakub@redhat.com>
7239 * configure.ac: Handle --enable-cld.
7240 * configure: Regenerated.
7241 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
7242 * config/i386/i386.h (struct machine_function): Add needs_cld field.
7243 (ix86_current_function_needs_cld): New define.
7244 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
7245 (cld): New isns pattern.
7246 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
7247 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
7248 * config/i386/i386.opt (mcld): New option.
7249 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
7250 TARGET_CLD and ix86_current_function_needs_cld.
7251 (override_options): Use -mcld by default for 32-bit code if
7254 * doc/install.texi (Options specification): Document --enable-cld.
7255 * doc/invoke.texi (Machine Dependent Options)
7256 [i386 and x86-64 Options]: Add -mcld option.
7257 (Intel 386 and AMD x86-64 Options): Document -mcld option.
7259 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
7260 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
7261 (return_in_memory_64): Likewise.
7262 (return_in_memory_ms_64): Likewise.
7264 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7266 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
7267 * builtins.c (fold_builtin_fpclassify): New.
7268 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
7269 * builtins.def (BUILT_IN_FPCLASSIFY): New.
7270 * c-common.c (handle_type_generic_attribute): Adjust to accept
7271 fixed arguments before an elipsis.
7272 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
7273 * doc/extend.texi: Document __builtin_fpclassify.
7275 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
7277 * omp-low.c (gate_expand_omp_ssa): Remove.
7278 (pass_expand_omp_ssa): Remove.
7279 (gate_expand_omp): Do not check for flag_openmp_ssa.
7280 * common.opt (-fopenmp-ssa): Remove.
7281 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
7283 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
7285 * config/sh/sh.opt (mfixed-range): New option.
7286 * config/sh/sh-protos.h (sh_fix_range): Declare.
7287 * config/sh/sh.c (sh_fix_range): New function.
7288 * config/sh/sh.h (sh_fixed_range_str): Declare.
7289 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
7291 * doc/invoke.texi (SH Options): Document -mfixed-range.
7293 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
7295 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
7296 it before the redeclaration.
7298 2008-05-22 Anatoly Sokolov <aesok@post.ru>
7300 * config/avr/avr.c (get_sequence_length): Add new function.
7301 (expand_prologue, expand_epilogue): Remove duplicate code.
7303 2008-05-22 Rafael Espindola <espindola@google.com>
7305 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
7308 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
7310 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
7311 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
7313 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
7314 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
7315 (vect_update_misalignment_for_peel): Likewise.
7316 (vector_alignment_reachable_p): Likewise.
7317 * tree-vect-transform.c (vectorizable_load): Likewise.
7318 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
7319 (get_vectype_for_scalar_type): Pass mode of scalar_type
7320 to UNITS_PER_SIMD_WORD.
7322 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
7323 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
7324 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
7325 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
7326 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
7328 2008-05-22 Ira Rosen <irar@il.ibm.com>
7330 PR tree-optimization/36293
7331 * tree-vect-transform.c (vect_transform_strided_load): Don't check
7332 if the first load must be skipped because of a gap.
7334 2008-05-22 Richard Guenther <rguenther@suse.de>
7336 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
7337 more cases of offset disambiguation that is possible if
7338 strict-aliasing rules apply.
7339 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
7340 for basic offset and type-based disambiguation.
7342 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7344 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
7345 ix86_expand_vector_set on V16QImode for SSE4.1.
7347 2008-05-21 Tom Tromey <tromey@redhat.com>
7349 * c.opt (Wimport): Mark as undocumented.
7350 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
7352 (Warning Options): Likewise.
7353 * doc/cppopts.texi: Don't mention -Wimport.
7355 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
7357 PR tree-optimization/36287
7358 PR tree-optimization/36286
7359 * lambda-code.c (build_access_matrix): Do not use the loop->num
7360 for computing the number of induction variables: use the loop depth
7363 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
7366 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
7367 option -f(no-)leading-underscore.
7369 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7371 * config/i386/i386.c (ix86_expand_vector_init_general): Use
7372 GET_MODE_NUNITS (mode).
7374 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
7376 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
7377 (-mmulhw): Add 464 to description.
7378 (-mdlmzb): Likewise.
7379 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
7380 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
7382 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
7383 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
7384 * config/rs6000/rs6000.md: Update comments for 464.
7386 2008-05-21 Janis Johnson <janis187@us.ibm.com>
7388 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
7390 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7392 * config/i386/sse.md (vec_extractv4sf): Removed.
7393 (vec_extractv2df): Likewise.
7394 (vec_extractv2di): Likewise.
7395 (vec_extractv4si): Likewise.
7396 (vec_extractv8hi): Likewise.
7397 (vec_extractv16qi): Likewise.
7398 (vec_extract<mode>): New.
7400 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7402 * config/i386/sse.md (vec_setv4sf): Removed.
7403 (vec_setv2df): Likewise.
7404 (vec_setv2di): Likewise.
7405 (vec_setv4si): Likewise.
7406 (vec_setv8hi): Likewise.
7407 (vec_setv16qi): Likewise.
7408 (vec_set<mode>): New.
7410 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7412 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
7413 goto for vec_concat and vec_interleave.
7415 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
7417 * config/i386/sse.md (vec_initv4sf): Removed.
7418 (vec_initv2df): Likewise.
7419 (vec_initv2di): Likewise.
7420 (vec_initv4si): Likewise.
7421 (vec_initv8hi): Likewise.
7422 (vec_initv16qi): Likewise.
7423 (vec_init<mode>): New.
7425 2008-05-21 Joseph Myers <joseph@codesourcery.com>
7427 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
7429 2008-05-21 Tom Tromey <tromey@redhat.com>
7431 * ggc-zone.c (lookup_page_table_if_allocated): New function.
7432 (zone_find_object_offset): Likewise.
7433 (gt_ggc_m_S): Likewise.
7434 (highest_bit): Likewise.
7435 * ggc-page.c (gt_ggc_m_S): New function.
7436 * stringpool.c (string_stack): Remove.
7437 (init_stringpool): Update.
7438 (ggc_alloc_string): Use ggc_alloc.
7439 (maybe_delete_ident): New function.
7440 (ggc_purge_stringpool): Likewise.
7441 (gt_ggc_m_S): Remove.
7442 * ggc-common.c (ggc_protect_identifiers): New global.
7443 (ggc_mark_roots): Call ggc_purge_stringpool. Use
7444 ggc_protect_identifiers.
7445 * ggc.h (ggc_protect_identifiers): Declare.
7446 (gt_ggc_m_S): Update.
7447 (ggc_purge_stringpool): Declare.
7448 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
7449 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
7451 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
7453 2008-05-21 David S. Miller <davem@davemloft.net>
7455 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
7458 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
7460 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
7463 2008-05-20 David Daney <ddaney@avtrex.com>
7465 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
7466 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
7467 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
7468 UNSPEC_UPDATE_GOT_VERSION): Renumber.
7469 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
7470 (atomic_hiqi_op): New define_code_iterator.
7471 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
7472 mips_expand_compare_and_swap_12.
7473 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
7474 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
7475 (sync_<optab><mode>, sync_old_<optab><mode>,
7476 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
7477 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
7478 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
7479 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
7480 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
7481 (test_and_set_12): New insn.
7482 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
7483 sync_new_<optab><mode>, sync_old_nand<mode>,
7484 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
7485 clobber to operand 0 for SI and DI mode insns.
7486 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
7487 mips_gen_fn_4): New typedefs.
7488 (mips_gen_fn_ptrs): Define new union type.
7489 (mips_expand_compare_and_swap_12): Remove declaration.
7490 (mips_expand_atomic_qihi): Declare function.
7491 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
7492 (mips_expand_atomic_qihi): ... this. Use new generator function
7494 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
7495 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
7496 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
7497 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
7498 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
7499 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
7500 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
7501 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
7502 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
7503 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
7506 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
7508 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
7511 2008-05-20 Anatoly Sokolov <aesok@post.ru>
7513 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
7514 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
7515 (avr_attribute_table): Add 'OS_main' function attribute.
7516 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
7517 functions with 'OS_main' attribute.
7519 2008-05-20 Richard Guenther <rguenther@suse.de>
7521 PR tree-optimization/35204
7522 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
7523 helper, split out from ...
7524 (DFS): ... here. Make the DFS walk non-recursive.
7526 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
7527 Jan Sjodin <jan.sjodin@amd.com>
7529 PR tree-optimization/36181
7530 * tree-parloops.c (loop_has_vector_phi_nodes): New.
7531 (parallelize_loops): Don't parallelize when the loop has vector
7534 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7535 Sebastian Pop <sebastian.pop@amd.com>
7537 * tree-loop-linear.c (gather_interchange_stats): Look in the access
7538 matrix, and never look at the tree representation of the memory
7540 (linear_transform_loops): Computes parameters and access matrices.
7541 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
7543 (access_matrix_get_index_for_parameter): New.
7544 * tree-data-ref.h (struct access_matrix): New.
7545 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
7546 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
7547 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
7548 am_vector_index_for_loop): New.
7549 (struct data_reference): Add field access_matrix.
7550 (DR_ACCESS_MATRIX): New.
7551 (compute_data_dependences_for_loop): Update declaration.
7552 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
7553 * lambda.h (lambda_vector_vec_p): Declared.
7554 * lambda-code.c: Depend on pointer-set.h.
7555 (lambda_collect_parameters_from_af, lambda_collect_parameters,
7556 av_for_af_base, av_for_af, build_access_matrix,
7557 lambda_compute_access_matrices): New.
7558 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
7560 2008-05-20 Joseph Myers <joseph@codesourcery.com>
7562 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
7565 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7566 Sebastian Pop <sebastian.pop@amd.com>
7568 PR tree-optimization/36206
7569 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
7571 (instantiate_scev_1): Rename flags to fold_conversions.
7572 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
7573 outeside instantiation_loop.
7574 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
7575 (evolution_function_is_affine_or_constant_p): Removed.
7576 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
7578 (analyze_siv_subscript): Pass in the loop nest number.
7579 Call evolution_function_is_affine_in_loop instead of
7580 evolution_function_is_affine_p.
7581 (analyze_overlapping_iterations): Pass in the loop nest number.
7583 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
7584 Sebastian Pop <sebastian.pop@amd.com>
7586 PR tree-optimization/36206
7587 * tree-chrec.h (chrec_fold_op): New.
7588 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
7591 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
7593 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
7595 (remove_duplicates): Do not set inode on non-inode systems.
7598 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
7600 * config.gcc (tm_file): Update comments about relative pathnames.
7602 2008-05-20 Richard Guenther <rguenther@suse.de>
7604 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
7605 * tree-ssa-sccvn.c (process_scc): Likewise.
7606 * tree-ssa-sink.c (execute_sink_code): Likewise.
7607 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
7608 * tree-vrp.c (process_assert_insertions): Likewise.
7609 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
7610 (perform_tree_ssa_dce): Likewise.
7611 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
7612 (dump_dominator_optimization_stats): Likewise.
7613 * tree-vectorizer.c (vectorize_loops): Likewise.
7615 2008-05-20 Richard Guenther <rguenther@suse.de>
7617 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
7619 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
7621 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
7622 (ix86_i386elf_return_in_memory): Likewise.
7623 (ix86_i386interix_return_in_memory): Likewise.
7624 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
7625 (SUBTARGET_RETURN_IN_MEMORY): New.
7626 * config/i386/i386elf.h: Likewise.
7627 * config/i386/ptx4-i.h: Likewise.
7628 * config/i386/sol2-10.h: Likewise.
7629 * config/i386/sysv4.h: Likewise.
7630 * config/i386/vx-common.h: Likewise.
7631 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
7632 * config/i386/i386.c (ix86_return_in_memory): Made static and
7633 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
7634 (ix86_i386elf_return_in_memory): Removed.
7635 (ix86_i386interix_return_in_memory): Removed.
7636 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
7637 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
7639 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
7641 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
7643 2008-05-19 Xinliang David Li <davidxl@google.com>
7645 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
7647 * common.opt: Ditto.
7648 * doc/invoke.texi: Ditto.
7650 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
7652 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
7653 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
7655 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
7657 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
7658 sizes of operand array from 8/4 to 4/2.
7659 (ix86_expand_vector_init_general): Change size of operand array
7660 from 32 to 16. Remove op0, op1 and half_mode.
7662 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
7664 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
7665 (ix86_expand_vector_init_interleave): Likewise.
7666 (ix86_expand_vector_init_general): Use them. Assert
7667 word_mode == SImode when n_words == 4.
7669 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
7671 * config/i386/i386.c (ix86_secondary_reload): New static function.
7672 (TARGET_SECONDARY_RELOAD): New define.
7673 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
7674 * config/i386/i386.md (reload_outqi): Remove.
7676 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7679 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
7680 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
7681 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
7682 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
7683 (fold_builtin_1): Likewise.
7684 * builtins.def (BUILT_IN_ISINF_SIGN): New.
7685 c-common.c (check_builtin_function_arguments): Handle
7686 BUILT_IN_ISINF_SIGN.
7687 * doc/extend.texi: Document __builtin_isinf_sign.
7688 * fold-const.c (operand_equal_p): Handle COND_EXPR.
7690 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
7692 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
7693 EH cleanup at the end of the pass, search for those that have been
7694 turned into forwarder blocks and do the cleanup on their successor.
7696 2008-05-18 Richard Guenther <rguenther@suse.de>
7698 * tree-cfg.c (verify_gimple_expr): Allow conversions from
7699 pointers to sizetype and vice versa.
7701 2008-05-18 Xinliang David Li <davidxl@google.com>
7703 * gcc/tree-ssa-dce.c: Coding style fix.
7704 (check_pow): Documentation comment.
7705 (check_log): Documenation comment. Coding style fix.
7706 (is_unnecessary_except_errno_call): Ditto.
7707 (gen_conditions_for_pow): Ditto.
7708 (gen_conditions_for_log): Ditto.
7709 (gen_shrink_wrap_conditions): Ditto.
7710 (shrink_wrap_one_built_in_calls): Ditto.
7711 * gcc/doc/invoke.texi: Better documentation string.
7712 * ChangeLog: Fix wrong change log entries from
7713 May 17 checkin on function call DCE.
7715 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
7717 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
7719 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
7721 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
7722 * df-problems.c (simulation routines): Fixed block comment to
7723 properly say how to add forwards scanning functions.
7725 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
7727 * tree-inline.c (setup_one_parameter): Remove dead code.
7729 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
7731 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
7732 a BIT_AND_EXPR only for an INTEGER_TYPE.
7734 2008-05-17 Xinliang David Li <davidxl@google.com>
7736 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
7737 (check_pow, check_log, is_unnecessary_except_errno_call): New
7738 functions to check for eliminating math functions that are pure
7739 except for setting errno.
7740 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
7741 general condition expressions for shrink-wrapping pow/log calls.
7742 (gen_shrink_wrap_conditions): Ditto.
7743 (shrink_wrap_one_built_in_call): Ditto.
7744 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
7745 (mark_operand_necessary): If debugging, output if OP is necessary.
7746 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
7748 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
7750 * gcc/common.opt: New user flag -ftree-builtin-dce.
7751 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
7753 2008-05-16 David S. Miller <davem@davemloft.net>
7755 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
7756 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7758 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
7761 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
7763 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7765 * ifcvt.c (dead_or_predicable): Rename
7766 df_simulate_one_insn_backwards to df_simulate_one_insn.
7767 * recog.c (peephole2_optimize): Ditto.
7768 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
7770 * df.h: Rename df_simulate_one_insn_backwards to
7771 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
7772 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
7773 scanning of defs and uses.
7774 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
7775 (df_simulate_one_insn_forwards): Removed.
7777 2008-05-16 Doug Kwan <dougkwan@google.com>
7779 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
7781 (real_from_string): Handle NaNs and Inf as approriate.
7783 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
7785 * doc/gty.texi (Source Files Containing Type Information): Note
7786 that headers should appear first in the gtfiles list.
7788 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7790 * tree.def (COND_EXEC): Properly documented this code.
7792 2008-05-16 Diego Novillo <dnovillo@google.com>
7794 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
7795 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
7798 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7800 * tree-ssa-dse (max_stmt_uid): Removed.
7801 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
7802 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
7803 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
7804 * function.h (cfun.last_stmt_uid): New field.
7805 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
7806 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
7808 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
7809 (create_stmt_ann): Initialize the ann->uid field.
7810 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
7812 * tree-flow.h (renumber_gimple_stmt_uids): New function.
7814 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
7816 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
7817 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
7818 (init_empty_tree_cfg): Call it.
7820 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7822 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
7825 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
7827 * doc/invoke.text (-fdump-tree-*-verbose): New option.
7828 * tree-dump.c (dump_options): New verbose option.
7829 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
7831 * tree-pass.h (TDF_VERBOSE): New dump flag.
7832 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
7833 (tree-flow.h): Added include.
7834 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
7836 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
7838 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
7840 From Jie Zhang <jie.zhang@analog.com>
7841 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7842 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
7843 mcpu=bf561-none and mcpu=bf561-0.2.
7844 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7845 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7846 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7847 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7848 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
7849 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
7850 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
7852 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
7853 (cputype_selected): Remove.
7854 (bfin_handle_option): Don't use cputype_selected.
7855 (override_options): When no mcpu option, enable all workarounds.
7856 Don't use bfin_workarounds.
7857 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
7859 (DEFAULT_CPU_TYPE): Don't define.
7861 2008-05-16 Richard Guenther <rguenther@suse.de>
7863 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
7864 on deletion of the last stmt.
7866 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
7868 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
7869 V8HImode for SSE2 and V16QImode for SSE4.1.
7871 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
7873 * cgraph.h (compute_inline_parameters): Made public.
7874 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
7875 variable_generate_summary, function_write_summary,
7876 variable_write_summary, variable_read_summary. Added generate_summary,
7877 write_summary, read_summary.
7878 * cgraphunit.c (cgraph_process_new_functions): Changed call from
7879 pass_ipa_inline.function_generate_summary, to
7880 compute_inline_parameters.
7881 * ipa-inline.c (compute_inline_parameters): Made public and added
7883 (compute_inline_parameters_for_current): New function.
7884 (pass_inline_param): Now calls compute_inline_parameters_for_current.
7885 (inline_generate_summary): Removed parameter and made to loop over
7887 (pass_ipa_inline): Updated for new IPA_PASS structure.
7888 * passes.c (execute_ipa_summary_passes): Now is called once per
7889 pass rather than once per node*pass.
7891 2008-05-15 Anatoly Sokolov <aesok@post.ru>
7893 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
7894 avr_have_mul_p, avr_asm_only_p): Remove variables.
7895 (avr_override_options): Remove initialization of removed variables.
7896 (avr_file_start): Convert removed variables to fields of
7897 'struct base_arch_s *avr_current_arch'.
7898 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
7899 (AVR_HAVE_MUL): (Ditto.).
7900 (AVR_HAVE_MOVW): (Ditto.).
7901 (AVR_HAVE_LPMX): (Ditto.).
7902 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
7903 avr_asm_only_p): Remove declaration.
7905 2008-05-15 Diego Novillo <dnovillo@google.com>
7907 * config/arm/arm.c (arm_return_in_memory): Fix return type.
7908 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
7910 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
7913 * combine.c (check_conversion): Rename back to check_promoted_subreg.
7914 Don't call record_truncated_value from here.
7915 (record_truncated_value): Turn it into a for_each_rtx callback.
7916 (record_truncated_values): New function.
7917 (combine_instructions): Call note_uses with record_truncated_values.
7918 Change name of check_conversion to check_promoted_subreg.
7920 2008-05-15 Janis Johnson <janis187@us.ibm.com>
7922 * doc/sourcebuild.texi: Document support for torture tests.
7924 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
7926 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
7927 to alternative 4 of operand 2.
7929 2008-05-15 Richard Guenther <rguenther@suse.de>
7931 * tree-pass.h (current_pass): Declare.
7932 (get_pass_for_id): Likewise.
7933 * passes.c (passes_by_id, passes_by_id_size): New globals.
7934 (set_pass_for_id): New function.
7935 (get_pass_for_id): Likewise.
7936 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
7937 (execute_function_todo): Flush per function statistics.
7938 * toplev.c (compile_file): Init statistics.
7939 (general_init): Do early statistics initialization.
7940 (finalize): Finish statistics.
7941 * statistics.h (statistics_early_init): Declare.
7942 (statistics_init): Likewise.
7943 (statistics_fini): Likewise.
7944 (statistics_fini_pass): Likewise.
7945 (statistics_counter_event): Likewise.
7946 (statistics_histogram_event): Likewise.
7947 * statistics.c: New file.
7948 * Makefile.in (OBJS-common): Add statistics.o.
7949 (statistics.o): Add dependencies.
7950 * doc/invoke.texi (-fdump-statistics): Document.
7952 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
7954 (execute_pre): Use statistics_counter_event.
7955 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
7956 (substitute_and_fold): Increment it. Use statistics_counter_event.
7958 2008-05-15 Diego Novillo <dnovillo@google.com>
7960 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
7962 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
7963 * tree-ssa-alias.c (new_type_alias): Remove references to
7964 sub-variables from comment.
7965 * tree-ssa-operands.c (swap_tree_operands): Likewise.
7967 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
7969 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
7970 attribute to 1 only for insertps alternative.
7972 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
7974 * config/bfin/bfin.md (loadbytes): New pattern.
7975 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
7976 (bfin_init_builtins): Initialize it.
7977 (bdesc_1arg): Add it.
7979 2008-05-15 Sa Liu <saliu@de.ibm.com>
7981 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
7982 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
7983 * testsuite/lib/target-supports.exp: Add
7984 check_effective_target_fortran_integer_16.
7986 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
7988 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
7989 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
7990 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
7991 (TARGET_RETURN_IN_MEMORY): Define.
7993 2008-05-15 Richard Guenther <rguenther@suse.de>
7996 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
7997 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
7998 represent unmodifiable vars.
8000 2008-05-15 Richard Guenther <rguenther@suse.de>
8002 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
8003 INDIRECT_REF and TARGET_MEM_REF.
8004 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
8007 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
8008 H.J. Lu <hongjiu.lu@intel.com>
8010 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
8011 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
8012 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
8013 insn alternatives. Add missing alternatives.
8014 (*vec_concatv2di_rex64_sse4_1): Likewise.
8015 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
8016 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
8019 2008-05-15 Richard Guenther <rguenther@suse.de>
8021 PR tree-optimization/36009
8022 PR tree-optimization/36204
8023 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
8024 (determine_invariantness_stmt): Record the loop a store is
8026 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
8029 2008-05-15 Richard Guenther <rguenther@suse.de>
8031 PR tree-optimization/34330
8032 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
8033 through the pointer will alias the SMT.
8035 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
8037 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
8039 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
8041 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
8043 2008-05-14 Michael Meissner <michael.meissner@amd.com>
8044 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
8046 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
8047 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
8048 (vashl_optab): New optab for vector/vector shifts.
8049 (vashr_optab): Ditto.
8050 (vlshr_optab): Ditto.
8051 (vrotl_optab): Ditto.
8052 (vrotr_optab): Ditto.
8053 (optab_subtype): New enum for optab_for_tree_code call.
8054 (optab_for_tree_code): Add enum optab_subtype argument.
8056 * optabs.c (optab_for_tree_code): Take an additional argument to
8057 distinguish between a vector shift by a scalar and vector shift by
8058 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
8059 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
8060 vector shift by a vector.
8061 (expand_widen_pattern_expr): Pass additional argument to
8062 optab_for_tree_code.
8064 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
8065 vrotl_optab, vrotr_optab.
8067 * expr.c (expand_expr_real_1): Update calls to
8068 optab_for_tree_code to distinguish between vector shifted by a
8069 scalar and vector shifted by a vector.
8070 * tree-vectorizer.c (supportable_widening_operation): Ditto.
8071 (supportable_narrowing_operation): Ditto.
8072 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
8073 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
8074 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
8075 (vect_create_epilog_for_reduction): Ditto.
8076 (vectorizable_reduction): Ditto.
8077 (vectorizable_operation): Ditto.
8078 (vect_strided_store_supported): Ditto.
8079 (vect_strided_load_supported): Ditto.
8080 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
8081 * expmed.c (expand_shift): Ditto.
8083 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
8085 (ashr@var{m}3): Ditto.
8086 (vashl@var{m}3): Document new vector/vector shift standard name.
8087 (vashr@var{m}3): Ditto.
8088 (vlshr@var{m}3): Ditto.
8089 (vrotl@var{m}3): Ditto.
8090 (vrotr@var{m}3): Ditto.
8092 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
8093 (PPERM_INVERT): Ditto.
8094 (PPERM_REVERSE): Ditto.
8095 (PPERM_REV_INV): Ditto.
8096 (PPERM_ZERO): Ditto.
8097 (PPERM_ONES): Ditto.
8098 (PPERM_SIGN): Ditto.
8099 (PPERM_INV_SIGN): Ditto.
8100 (PPERM_SRC1): Ditto.
8101 (PPERM_SRC2): Ditto.
8103 * config/i386/sse.md (mulv2di3): Add SSE5 support.
8104 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
8105 allows a memory operand to be the value being added, and split it
8106 to improve vectorization.
8107 (sse5_pmacsdqh_mem): Ditto.
8108 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
8109 (sse5_mulv2div2di3_high): Ditto.
8110 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
8111 (vec_pack_trunc_v4si): Ditto.
8112 (vec_pack_trunc_v2di): Ditto.
8113 (sse5_pcmov_<mode>): Remove code that tried to use use
8114 andps/andnps instead of pcmov.
8115 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
8116 pmacsdqh instructions.
8117 (vec_widen_smult_lo_v4si): Ditto.
8119 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
8120 (PPERM_INVERT): Ditto.
8121 (PPERM_REVERSE): Ditto.
8122 (PPERM_REV_INV): Ditto.
8123 (PPERM_ZERO): Ditto.
8124 (PPERM_ONES): Ditto.
8125 (PPERM_SIGN): Ditto.
8126 (PPERM_INV_SIGN): Ditto.
8127 (PPERM_SRC1): Ditto.
8128 (PPERM_SRC2): Ditto.
8129 (ix86_expand_sse_movcc): Move the SSE5 test after the if
8131 (ix86_expand_int_vcond): If SSE5 generate all possible integer
8133 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
8134 says ignore whether the last reference is a memory operand.
8136 2008-05-14 Michael Meissner <michael.meissner@amd.com>
8137 Paolo Bonzini <bonzini at gnu dot org>
8139 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
8142 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
8143 (vlshr<mode>3): Rename from vlshr<mode>3.
8144 (vashr<mode>3): Rename from vashr<mode>3.
8145 (mulv4sf3): Change the names of vector shift patterns.
8149 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
8152 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
8177 * config/spu/spu.md (v): New iterator macro to add v for vector types.
8178 (floatunssidf2_internal): Change vector/vector shift names.
8179 (floatunsdidf2_internal): Ditto.
8186 (vashl<mode>3): Rename from ashl<mode>3.
8187 (vashr<mode>3): Rename from ashr<mode>3.
8188 (vlshr<mode>3): Rename from lshr<mode>3.
8189 (vrotl<mode>3): Rename from rotl<mode>3.
8191 2008-05-14 Michael Meissner <michael.meissner@amd.com>
8194 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
8195 multiply gives the wrong value when doing widening multiplies.
8196 (vec_widen_smult_lo_v4si): Ditto.
8198 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
8200 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
8201 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
8202 emit_library_call_value.
8203 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
8204 * tree.h (ECF_LIBCALL_BLOCK): Removed.
8205 * calls.c (initialize_argument_information, precompute_arguments,
8206 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
8207 (precompute_arguments): Removed flags parameter.
8208 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
8210 2008-05-14 Richard Guenther <rguenther@suse.de>
8212 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
8213 Make sure to register the store if the use is a PHI_NODE.
8215 2008-05-14 Olivier Hainque <hainque@adacore.com>
8217 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
8218 memory if the component is to be referenced in BLKmode according
8219 to get_inner_reference.
8221 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
8223 * calls.c (emit_library_call_value_1): Restore code clearing
8224 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
8226 2008-05-14 Olivier Hainque <hainque@adacore.com>
8227 Nicolas Roche <roche@adacore.com>
8229 * configure.ac: Add support for a "gcc_subdir" variable in
8230 config-lang.in, to denote a subdirectory where the language/GCC
8231 integration files are to be found.
8232 * configure: Regenerate.
8234 2008-05-14 Ira Rosen <irar@il.ibm.com>
8236 PR tree-optimization/36098
8237 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
8238 value for the first load in the group in case of a gap.
8239 (vect_build_slp_tree): Check that there are no gaps in loads.
8241 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
8243 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
8244 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
8245 expand_copysign_bit, ): Change call to emit_no_conflict_block to
8246 emit_insn and remove unneeded code to construct extra args.
8247 (emit_no_conflict_block): Removed.
8248 * optabls.h: (emit_no_conflict_block): Removed.
8249 * cse.c (cse_extended_basic_block): Remove search for
8250 REG_NO_CONFLICT note.
8251 * global.c: Removed incorrect comment added in revision 117.
8252 * expr.c (convert_move): Change call to emit_no_conflict_block to
8254 * recog.c: Change comments so that they do not mention
8256 * local_alloc.c (combine_regs): Removed last parameter.
8257 (no_conflict_p): Removed.
8258 (block_alloc): Removed note, no_conflict_combined_regno and set
8259 local vars. Removed all code to process REG_NO_CONFLICT blocks.
8260 (combine_regs): Removed already_dead and code to look for
8261 REG_NO_CONFLICT notes.
8262 * lower_subreg (remove_retval_note): Removed code to look for
8263 REG_NO_CONFLICT block.
8264 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
8265 (resolve_clobber): Remove code to process libcalls that have
8266 REG_NO_CONFLICT notes.
8267 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
8269 * combine.c (can_combine_p, distribute_notes): Removed
8270 REG_NO_CONFLICT case.
8271 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
8273 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
8274 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
8276 * reg-notes.def (NO_CONFLICT): Removed.
8278 2008-05-14 David S. Miller <davem@davemloft.net>
8280 * config/sparc/sparc.c (sparc_profile_hook): If
8281 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
8282 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
8283 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
8285 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
8287 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
8289 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
8292 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
8293 and op1 expansion before vector concat to have less live pseudos.
8295 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
8297 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
8298 ix86_expand_vector_set if supported.
8300 2008-05-13 Diego Novillo <dnovillo@google.com>
8301 Kenneth Zadeck <zadeck@naturalbridge.com>
8303 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
8305 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
8306 phinodes_print_statistics, init_ssanames, fini_ssanames,
8307 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
8308 release_ssa_name, release_defs, replace_ssa_name_symbol,
8309 ssanames_print_statistics): Move ...
8310 * tree-flow.h: ... here.
8311 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
8312 Use FN instead of cfun.
8313 (make_ssa_name_fn): Rename from make_ssa_name.
8314 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
8315 * tree-flow-inline.h (make_ssa_name): Move from
8316 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
8317 * omp-low.c (expand_omp_parallel):
8318 * tree-flow-inline.h (redirect_edge_var_map_result):
8319 * tree-ssa.c (init_tree_ssa): Add argument FN.
8320 Use it instead of cfun. Update all users.
8322 2008-05-13 Tom Tromey <tromey@redhat.com>
8324 PR preprocessor/22168:
8325 * doc/cpp.texi (Top): Update menu.
8326 (Alternatives to Wrapper #ifndef): New node.
8327 (Other Directives): Document deprecation.
8328 (Obsolete Features): Remove menu.
8329 (Assertions): Merge node into Obsolete Features.
8330 (Obsolete once-only headers): Move earlier; rename to Alternatives
8332 * doc/cppopts.texi: Update.
8333 * c.opt (Wdeprecated): Enable for C and ObjC.
8334 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
8335 (C++ Dialect Options): Move -Wno-deprecated from here to...
8336 (Warning Options): ... here.
8338 2008-05-13 Richard Guenther <rguenther@suse.de>
8341 * fold-const.c (fold_sign_changed_comparison): Do not allow
8342 changes in pointer-ness.
8344 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
8347 * config/sh/sh.c (sh_expand_prologue): Don't clear
8348 RTX_FRAME_RELATED_P for push insns.
8350 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
8352 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
8354 2008-05-12 Anatoly Sokolov <aesok@post.ru>
8356 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
8357 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
8358 Use 'machine->is_leaf' instead of 'leaf_func_p'.
8360 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
8362 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
8363 (*vec_concatv4sf_sse): This.
8364 (*sse2_concatv2si): Renamed to ...
8365 (*vec_concatv2si_sse2): This.
8366 (*sse1_concatv2si): Renamed to ...
8367 (*vec_concatv2si_sse): This.
8368 (*vec_concatv2di_rex): Renamed to ...
8369 (*vec_concatv2di_rex64): This.
8370 (*vec_concatv2si_sse4_1): New.
8371 (*vec_concatv2di_rex64_sse4_1): Likewise.
8373 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
8375 PR rtl-optimization/36111
8376 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
8377 that was created for swappable operands.
8379 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
8382 * Makefile.in: Substitute GNATMAKE and GNATBIND.
8383 * configure.ac: Add call to ACX_PROG_GNAT.
8385 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
8387 * optc-gen.awk: Fix comment typo.
8389 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
8391 * pretty-print.c (pp_integer_with_precision): Use
8392 HOST_LONG_LONG_FORMAT.
8394 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
8396 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
8398 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
8400 * config/i386/i386.c (bdesc_ptest): Removed.
8401 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
8402 (bdesc_args): Add __builtin_ia32_ptestz128,
8403 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
8404 (ix86_init_mmx_sse_builtins): Updated.
8405 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
8406 (ix86_expand_builtin): Updated.
8408 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
8410 * tree-cfg.c (valid_fixed_convert_types_p): New function.
8411 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
8413 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
8415 * value-prof.c (interesting_stringop_to_profile): Do not
8416 return early for BUILT_IN_MEMPCPY.
8418 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
8420 * calls.c (expand_call): Don't use callgraph to increase
8421 preferred_stack_boundary.
8423 * cgraph.h (cgraph_rtl_info): Use unsigned on
8424 preferred_incoming_stack_boundary.
8426 * final.c (rest_of_clean_state): Use unsigned on
8427 preferred_stack_boundary.
8429 2008-05-09 Tom Tromey <tromey@redhat.com>
8431 PR preprocessor/22231:
8432 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
8435 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
8437 PR tree-optimization/36129
8438 * tree-ssa-ccp.c: Include value-prof.h.
8439 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
8440 built-in function was folded to a constant.
8441 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
8443 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
8444 Sebastian Pop <sebastian.pop@amd.com>
8446 * tree-scalar-evolution.c: Document instantiate_scev.
8447 (instantiate_parameters_1): Renamed instantiate_scev_1.
8448 Don't use the same loop for instantiation_loop and evolution_loop.
8449 (instantiate_scev): New.
8450 (instantiate_parameters): Moved...
8451 (resolve_mixers): Update call to instantiate_scev_1 to pass the
8452 same loop twice. Maintains the semantics for this function.
8453 * tree-scalar-evolution.h (instantiate_scev): Declare.
8454 (instantiate_parameters): ...here. Now static inline.
8455 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
8456 instead of resolve_mixers.
8458 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
8460 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
8462 2008-05-09 Tomas Bily <tbily@suse.cz>
8464 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
8465 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
8466 * tree-ssa-structalias.c (get_constraint_for): Likewise.
8467 * c-common.c (c_common_truthvalue_conversion): Likewise.
8468 * tree-object-size.c (compute_object_offset): Likewise.
8469 * tree-inline.c (estimate_num_insns_1): Likewise.
8470 * varasm.c (const_hash_1, compare_constant, copy_constant)
8471 (compute_reloc_for_constant, output_addressed_constants)
8472 (initializer_constant_valid_p): Likewise.
8473 * c-omp.c (check_omp_for_incr_expr): Likewise.
8474 * gimplify.c (gimplify_expr): Likewise.
8475 * c-typeck.c (c_finish_return): Likewise.
8476 * tree-vectorizer.c (supportable_widening_operation)
8477 (supportable_narrowing_operation): Likewise.
8478 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
8479 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
8480 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
8481 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
8482 (descr_info_loc): Likewise.
8483 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
8484 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
8485 (fold_unary): Likewise.
8486 * builtins.c (get_pointer_alignment): Likewise.
8487 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
8488 (instantiate_parameters_1): Likewise.
8489 * tree.c (expr_align, stabilize_reference): Likewise.
8490 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
8491 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
8492 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
8493 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
8494 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
8495 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
8497 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
8498 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
8499 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
8500 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
8501 (forward_propagate_comparison)
8502 (tree_ssa_forward_propagate_single_use_vars): Likewise.
8503 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
8504 * emit-rtl.c (component_ref_for_mem_expr)
8505 (set_mem_attributes_minus_bitpos): Likewise.
8506 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
8507 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
8509 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
8510 (build_function_call, pointer_diff, build_compound_expr)
8511 (c_finish_return): Likewise.
8512 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
8513 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
8515 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
8516 * expr.c (is_aligning_offset): Likewise.
8517 * tree-ssa-alias.c (is_escape_site): Likewise.
8518 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
8519 (check_all_va_list_escapes): Likewise.
8520 * tree-ssa-loop-ivopts.c (determine_base_object)
8521 (determine_common_wider_type): Likewise.
8522 * dojump.c (do_jump): Likewise.
8523 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
8524 * tree-gimple.c (is_gimple_cast): Likewise.
8525 * fold-const.c (decode_field_reference, )
8526 (fold_sign_changed_comparison, fold_unary, fold_comparison)
8527 (fold_binary): Likewise.
8528 * tree-ssa-alias-warnings.c (find_alias_site_helper)
8529 (already_warned_in_frontend_p): Likewise.
8530 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
8531 * tree.c (really_constant_p, get_unwidened): Likewise.
8532 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
8533 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
8534 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
8536 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
8538 (CONVERT_EXPR_P): Define.
8539 (CASE_CONVERT): Define.
8541 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
8544 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
8545 (delete_unmarked_insns): When deleting a call, call
8546 delete_unreachable_blocks.
8547 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8548 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
8550 2008-05-08 Richard Guenther <rguenther@suse.de>
8552 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
8553 (-ftree-salias): Likewise.
8554 (salias-max-implicit-fields): Remove param documentation.
8555 (salias-max-array-elements): Likewise.
8556 * tree-pass.h (pass_create_structure_vars): Remove.
8557 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8558 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8559 * tree-ssa-alias.c (create_structure_vars): Remove.
8560 (gate_structure_vars): Likewise.
8561 (pass_create_structure_vars): Likewise.
8562 (gate_build_alias): Likewise.
8563 (pass_build_alias): Adjust to run always and dump the function.
8564 * common.opt (ftree-salias): Hide.
8565 * passes.c (init_optimization_passes): Remove
8566 pass_create_structure_vars, adjust comment.
8567 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
8568 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
8569 * opts.c (decode_options): Do not set flag_tree_salias.
8570 (common_handle_option): Add OPT_ftree_salias to the backward
8571 compatibility section.
8573 2008-05-08 Richard Guenther <rguenther@suse.de>
8575 * tree-flow-inline.h (var_can_have_subvars): Move ...
8576 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
8577 * tree-flow.h (var_can_have_subvars): Remove.
8578 (push_fields_onto_fieldstack): Remove.
8579 (sort_fieldstack): Likewise.
8580 (struct fieldoff): Move ...
8581 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
8582 alias_set and base_for_components fields.
8583 (sort_fieldstack): Make static.
8584 (push_fields_onto_fieldstack): Likewise. Remove code that
8585 handles anything but RECORD_TYPEs. Remove alias_set and
8586 base_for_components handling.
8587 (create_variable_info_for): Adjust.
8589 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
8591 * common.opt (Wframe-larger-than=): Shorten the help message
8593 * doc/invoke.texi (Wframe-larger-than=): Add more description.
8595 2008-05-08 Rafael Espindola <espindola@google.com>
8597 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
8599 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
8600 trap and that both operands are gimple values.
8601 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
8602 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
8605 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
8607 * read-rtl.c (join_c_conditions): Return the first string if the
8608 two strings are equal.
8610 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
8612 * gensupport.h (pred_data): Add a "num_codes" field.
8613 (add_predicate_code): Declare.
8614 * gensupport.c (add_predicate_code): New function.
8615 (std_pred_table): Add an "allows_const_p" field.
8616 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
8617 Remove the (incomplete) list of such codes from the codes field.
8618 (init_predicate_table): Use add_predicate_code. Add all
8619 RTX_CONST_OBJs if allows_const_p is true.
8620 * genrecog.c (process_define_predicate): Use add_predicate_code.
8622 2008-05-08 David Daney <ddaney@avtrex.com>
8623 Richard Sandiford <rsandifo@nildram.co.uk>
8625 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
8626 special case of constant zero operands.
8627 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
8628 old and new values. Special case constant zero values.
8629 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
8631 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
8632 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
8634 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
8637 * simplify-rtx.c (simplify_plus_minus): Create CONST of
8638 similar RTX_CONST_OBJ before CONST_INT.
8640 2008-05-08 Steve Ellcey <sje@cup.hp.com>
8642 * stmt.c (expand_stack_restore): Change sa mode if needed.
8644 2008-05-08 Richard Guenther <rguenther@suse.de>
8646 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
8647 return type to bool.
8648 (ix86_sol10_return_in_memory): Likewise.
8649 (ix86_i386elf_return_in_memory): Likewise.
8650 (ix86_i386interix_return_in_memory): Likewise.
8651 * config/i386/i386.c (ix86_return_in_memory): Likewise.
8652 (ix86_sol10_return_in_memory): Likewise.
8653 (ix86_i386elf_return_in_memory): Likewise.
8654 (ix86_i386interix_return_in_memory): Likewise.
8656 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
8659 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
8661 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
8662 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
8665 2008-05-08 Richard Guenther <rguenther@suse.de>
8667 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
8668 * tree-data-ref.h (struct dr_alias): Remove subvars field.
8669 (DR_SUBVARS): Remove.
8670 * tree-dfa.c (dump_subvars_for): Remove.
8671 (debug_subvars_for): Likewise.
8672 (dump_variable): Do not dump subvars.
8673 (remove_referenced_var): Do not remove subvars.
8674 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
8675 (lookup_subvars_for_var): Remove.
8676 (get_subvars_for_var): Likewise.
8677 (get_subvars_at): Likewise.
8678 (get_first_overlapping_subvar): Likewise.
8679 (overlap_subvar): Likewise.
8680 * tree-flow.h (subvar_t): Remove.
8681 (struct var_ann_d): Remove subvars field.
8682 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
8683 argument. Remove special handling of SFTs.
8684 (compute_tag_properties): Likewise.
8685 (set_initial_properties): Likewise.
8686 (compute_call_clobbered): Likewise.
8687 (count_mem_refs): Likewise.
8688 (compute_memory_partitions): Likewise.
8689 (compute_flow_insensitive_aliasing): Likewise.
8690 (setup_pointers_and_addressables): Likewise.
8691 (new_type_alias): Likewise.
8692 (struct used_part): Remove.
8693 (used_portions): Likewise.
8694 (struct used_part_map): Likewise.
8695 (used_part_map_eq): Likewise.
8696 (used_part_map_hash): Likewise.
8697 (free_used_part_map): Likewise.
8698 (up_lookup): Likewise.
8699 (up_insert): Likewise.
8700 (get_or_create_used_part_for): Likewise.
8701 (create_sft): Likewise.
8702 (create_overlap_variables_for): Likewise.
8703 (find_used_portions): Likewise.
8704 (create_structure_vars): Likewise.
8705 * tree.def (STRUCT_FIELD_TAG): Remove.
8706 * tree.h (MTAG_P): Adjust.
8707 (struct tree_memory_tag): Remove base_for_components and
8708 unpartitionable flags.
8709 (struct tree_struct_field_tag): Remove.
8710 (SFT_PARENT_VAR): Likewise.
8711 (SFT_OFFSET): Likewise.
8712 (SFT_SIZE): Likewise.
8713 (SFT_NONADDRESSABLE_P): Likewise.
8714 (SFT_ALIAS_SET): Likewise.
8715 (SFT_UNPARTITIONABLE_P): Likewise.
8716 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
8717 (union tree_node): Remove sft field.
8718 * alias.c (get_alias_set): Remove special handling of SFTs.
8719 * print-tree.c (print_node): Remove handling of SFTs.
8720 * tree-dump.c (dequeue_and_dump): Likewise.
8721 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
8722 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
8723 * tree-predcom.c (set_alias_info): Do not set subvars.
8724 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
8725 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
8726 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
8727 (add_vars_for_offset): Remove.
8728 (add_virtual_operand): Remove special handling of SFTs.
8729 (add_call_clobber_ops): Likewise.
8730 (add_call_read_ops): Likewise.
8731 (get_asm_expr_operands): Likewise.
8732 (get_modify_stmt_operands): Likewise.
8733 (get_expr_operands): Likewise.
8734 (add_to_addressable_set): Likewise.
8735 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
8736 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8737 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
8738 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
8739 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
8740 (tree_node_structure): Likewise.
8741 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
8743 (find_what_p_points_to): Likewise.
8745 2008-05-08 Sa Liu <saliu@de.ibm.com>
8747 * config/spu/spu.md: Fixed subti3 pattern.
8749 2008-05-08 Richard Guenther <rguenther@suse.de>
8752 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8753 sure to create a representative for trailing arrays for PTA.
8755 2008-05-08 Richard Guenther <rguenther@suse.de>
8758 * fold-const.c (operand_equal_p): Two objects which types
8759 differ in pointerness are not equal.
8761 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
8763 * calls.c (compute_argument_block_size): Add argument tree fndecl.
8764 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
8765 (emit_library_call_value_1): Add new variable fndecl initialized by
8766 NULL_TREE. It should be the decl type of orgfun, but this information
8767 seems not to be available here, so it uses the default calling abi.
8768 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
8769 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
8770 by TARGET_RETURN_IN_MEMORY.
8771 * config/i386/i386-interix.h: Likewise.
8772 * config/i386/i386.h: Likewise.
8773 * config/i386/i386elf.h: Likewise.
8774 * config/i386/ptx4-i.h: Likewise.
8775 * config/i386/sol2-10.h: Likewise.
8776 * config/i386/sysv4.h: Likewise.
8777 * config/i386/vx-common.h: Likewise.
8778 * config/cris/cris.h: Removed #if 0 clause.
8779 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
8780 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
8782 (ix86_sol10_return_in_memory): Likewise.
8783 (ix86_i386elf_return_in_memory): New.
8784 (ix86_i386interix_return_in_memory): New.
8785 * config/mt/mt-protos.h (mt_return_in_memory): New.
8786 * config/mt/mt.c: Likewise.
8787 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8788 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
8789 * config/bfin/bfin.h: Likewise.
8790 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
8792 * config/bfin/bfin.c: Likewise.
8793 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8794 * config/alpha/unicosmk.h: Likewise.
8795 * config/i386/cygming.h: Likewise.
8796 * config/iq2000/iq2000.h: Likewise.
8797 * config/mips/mips.h: Likewise.
8798 * config/mn10300/mn10300.h: Likewise.
8799 * config/rs6000/rs6000.h: Likewise.
8800 * config/score/score.h: Likewise.
8801 * config/spu/spu.h: Likewise.
8802 * config/v850/v850.h: Likewise.
8803 * defaults.h: Likewise.
8804 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
8805 * expr.c (emit_block_move): Adjust use of
8806 OUTGOING_REG_PARM_STACK_SPACE.
8807 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
8808 OUTGOING_REG_PARM_STACK_SPACE.
8809 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
8811 2008-05-08 Jakub Jelinek <jakub@redhat.com>
8813 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
8814 on OMP_RETURN for OMP_FOR.
8817 * dwarf2out.c (dw_expand_expr, common_check): Removed.
8818 (fortran_common): New function.
8819 (gen_variable_die): Call fortran_common instead of common_check,
8820 adjust for it returning tree instead of rtx. Formatting.
8822 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
8826 * see.c (see_copy_insn): Copy new pure const attributes for new call.
8827 * c-decl.c (merge_decls): Ditto.
8828 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
8829 to RTL_CONST_OR_PURE_CALL_P.
8830 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
8831 Initialized DECL_LOOPING_CONST_PURE.
8832 (process_call_operands): Set tree_side_effects properly.
8833 * tree.h (TREE_READONLY_DECL_P): Removed.
8834 (DECL_IS_PURE): Renamed to DECL_PURE_P.
8835 (DECL_LOOPING_OR_CONST_P): New macro.
8836 (struct tree_function_decl): Added looping_const_or_pure_p.
8838 (ECF_LOOPING_OR_CONST_P): New macro.
8839 * rtlanal.c (pure_const_p): Removed.
8840 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
8841 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
8842 to RTL_CONST_CALL_P.
8843 * ipa-pure-const.c (pure_const_state_e): Added looping field.
8844 (check_decl, check_tree, check_call, scan_function): Initialize
8846 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
8847 (static_execute): Set looping true for recursive functions.
8848 Undo setting state to IPA_NEITHER for recursive functions.
8850 * ifcvt.c (noce_can_store_speculate_p): Changed
8851 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
8852 RTL_CONST_OR_PURE_CALL_P.
8853 * dse.c (scan_insn): Ditto.
8854 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
8855 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
8856 RTL_CONST_OR_PURE_CALL_P.
8857 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
8858 pure_call_p to RTL_CONST_CALL_P.
8859 * gimplify.c (gimplify_call_expr): Clear side effects for
8860 non-looping pure and constant calls.
8861 * calls.c (emit_call_1): Set rtl flags from ecf flags.
8862 (flags_from_decl_or_type): Set ecf flags from decl flags.
8863 (initialize_argument_information): Turn off
8864 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
8865 Change const to pure if callee_copies is true rather than just
8867 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
8868 way of marking pure calls.
8869 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
8870 Remove hack that was supposed to fix pr7335 and remove old
8871 way of marking pure calls.
8872 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
8873 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
8874 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
8875 RTL_CONST_OR_PURE_CALL_P.
8876 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
8877 * loop-invariant.c (find_exits, find_invariant_bb): Changed
8878 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
8879 * sched-deps.c (schedule_analyze): Ditto.
8880 * rtl.h (struct rtx_def): Use call field, unchanging field, and
8881 return_val field of calls to represent pure and const function info.
8882 (CONST_OR_PURE_CALL_P): Deleted macro.
8883 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8884 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
8885 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
8887 * tree-optimize.c (execute_fixup_cfg): Added test for
8888 ECF_LOOPING_CONST_OR_PURE.
8889 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
8891 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
8892 effects for looping pure or const calls.
8893 (verify_gimple_expr): Added verification code.
8894 * config/alpha/alpha.c (alpha_legitimize_address,
8895 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
8897 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
8898 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
8899 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
8900 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
8901 RTL_CONST_OR_PURE_CALL_P.
8902 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
8903 and const calls to be deleted.
8905 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
8908 * config/i386/mmx.md (mmx_subv2sf3): New expander.
8909 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
8910 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
8911 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
8912 to handle nonimmediate operands.
8913 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
8914 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
8915 to handle nonimmediate operands.
8916 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
8917 (mmx_pmulhrwv4hi3): New expander. Use
8918 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8919 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
8920 (sse2_umulv1siv1di3): New expander. Use
8921 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8922 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
8923 (mmx_eq<mode>3): New expander. Use
8924 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8925 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
8926 (mmx_uavgv8qi3): New expander. Use
8927 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8928 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
8929 (mmx_uavgv4hi3): New expander. Use
8930 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8932 * config/i386/sse.md
8933 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
8934 to handle nonimmediate operands.
8935 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
8936 to handle nonimmediate operands.
8937 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
8938 to handle nonimmediate operands.
8939 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
8940 to handle nonimmediate operands.
8941 (sse2_unpckhpd_exp): New expander. Use
8942 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8943 (sse2_unpcklpd_exp): New expander. Use
8944 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8945 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
8946 to handle nonimmediate operands.
8947 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
8948 to handle nonimmediate operands.
8949 (*sse2_<plusminus_insn><mode>3): Rename from
8950 sse2_<plusminus_insn><mode>3 insn pattern.
8951 (sse2_<plusminus_insn><mode>3): New expander. Use
8952 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8953 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
8954 (sse2_umulv2siv2di3): New expander. Use
8955 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8956 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
8957 (sse4_1_mulv2siv2di3): New expander. Use
8958 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8959 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
8960 (sse2_pmaddwd): New expander. Use
8961 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8962 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
8963 (sse2_eq<mode>3): New expander. Use
8964 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8965 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
8966 (sse4_1_eqv2di3): New expander. Use
8967 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8968 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8969 (sse2_uavgv16qi3): New expander. Use
8970 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8971 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8972 (sse2_uavgv16qi3): New expander. Use
8973 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8974 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
8975 (sse2_uavgv8hi3): New expander. Use
8976 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8977 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
8978 (ssse3_pmulhrswv8hi3): New expander. Use
8979 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8980 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
8981 (ssse3_pmulhrswv4hi3): New expander. Use
8982 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8984 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
8985 (<sse>_vmmul<mode>3): Ditto.
8986 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
8988 (ssse3_pmaddubsw128): Use register_operand for operand 1.
8989 (ssse3_pmaddubsw): Ditto.
8991 * config/i386/i386.c (struct_builtin_description)
8992 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
8993 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
8994 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
8995 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
8996 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
8997 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
8998 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
8999 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
9000 (ix86_fixup_binary_operands): Assert that src1
9001 and src2 must have the same mode when swapped.
9002 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
9003 and ix86_binary_operator_ok. Do not force operands in registers
9006 2008-05-07 Jan Hubicka <jh@suse.cz>
9008 * cgraph.c (dump_cgraph_node): Update.
9009 * cgraph.h (cgraph_local_info): Break out inline summary.
9010 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
9012 * ipa-inline (inline_summary): New accestor function.
9013 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
9014 cgraph_decide_inlining, compute_inline_parameters): Update.
9015 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
9017 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
9019 Cleanup ColdFire scheduling support and add V4 pipeline model.
9021 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
9022 (define_attr cpu): Add cfv4 value.
9023 (define_attr type, define_attr type1): Merge into a single 'type'
9024 attribute. Update all uses.
9025 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
9026 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
9028 (define_attr opx_mem, define_attr opy_mem): Remove.
9029 (define_attr op_mem): Clean up, update comment.
9030 (define_attr size): Use specific values instead of general int.
9031 (define_attr guess, define_attr split): Remove. Update all uses.
9032 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
9033 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
9034 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
9035 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
9036 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
9037 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
9038 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
9039 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
9040 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
9041 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
9042 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
9043 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
9044 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
9045 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
9046 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
9047 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
9048 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
9049 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
9050 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
9051 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
9052 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
9053 Update or set attributes.
9054 (stack_tie): New fake instruction.
9056 * config/m68k/m68k.h (TUNE_CFV4): New macro.
9057 (m68k_sched_attr_size): Update declaration.
9058 (m68k_sched_attr_type2): Remove.
9059 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
9060 Declare new bypass predicates.
9062 * config/m68k/m68k.c (m68k_sched_issue_rate,
9063 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
9065 (TARGET_SCHED_ISSUE_RATE,
9066 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
9067 (override_options): Handle scheduling for ColdFire V4 core.
9068 (m68k_expand_prologue): Emit stack_tie.
9069 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
9070 'OP_TYPE_FPN'. Update all uses.
9071 (sched_guess_p): Remove.
9072 (sched_address_type): Handle symbolic addresses.
9073 (sched_get_operand): New static function.
9074 (sched_operand_type): Merge into sched_attr_op_type.
9075 (sched_attr_op_type): Handle FP registers, handle quick constants,
9077 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
9078 (m68k_sched_attr_size): Update. Move logic to ...
9079 (sched_get_attr_size_int): New static function.
9080 (sched_get_opxy_mem_type): New static function.
9081 (m68k_sched_attr_op_mem): Update.
9082 (m68k_sched_attr_type2): Remove.
9083 (sched_cfv4_bypass_data): New static variable.
9084 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
9085 (m68k_sched_issue_rate): Implement scheduler hook.
9086 (struct _sched_ib: enabled_p): New field.
9087 (m68k_sched_variable_issue): Update. Handle V4.
9088 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
9089 sched_dump_class_func_t, sched_dump_split_class,
9090 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
9091 sched_dump_dfa_class, m68k_sched_dump): Remove.
9092 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
9094 (m68k_sched_init_global): Remove statisctics dumping, introduce
9095 sanity check that all instructions have pipeline reservations. Handle
9097 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9098 Handle ColdFire V4 core.
9099 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
9100 New static functions.
9101 (m68k_sched_address_bypass_p): New bypass predicate.
9102 (sched_get_indexed_address_scale): New static function.
9103 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
9105 * cf.md: Update comments.
9106 (define_attr type2): Remove. Use 'type' attribute instead.
9108 (cf_ib): Rename to cfv123_ib. Update all uses.
9109 (cf_oep): Rename to cfv123_oep. Update all uses.
9110 (cf_chr): Rename to cfv123_chr. Update all uses.
9111 (cf_mem): Rename to cfv123_mem. Update all uses.
9112 (cf_mac): Move to more appropriate place.
9113 (cfv123_guess): New automaton and cpu_unit.
9114 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
9115 Update uses of 'size' attribute. Handle before reload scheduling.
9116 (cfv123_guess): New dummy reservation for unhandled instructions.
9117 (cfv4_*): Pipeline description of ColdFire V4 core.
9118 (ignore): New reservation to handle 'ignore' type.
9120 2008-05-07 Ian Lance Taylor <iant@google.com>
9123 * gimplify.c (find_single_pointer_decl_1): Don't look through
9125 (find_single_pointer_decl): Adjust comments.
9127 2008-05-07 Jakub Jelinek <jakub@redhat.com>
9130 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
9131 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
9134 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
9135 integral type rather than floating point, then VIEW_CONVERT_EXPR
9136 to the floating point type.
9138 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
9140 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
9141 TFmode op0 to register.
9143 2008-05-07 Alan Modra <amodra@bigpond.net.au>
9145 * c-decl.c (grokdeclarator): Comment typo.
9147 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
9149 * tree-flow.h: Remove prototype for computed_goto_p.
9150 * tree-cfg.c (computed_goto_p): Make static.
9152 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
9155 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
9156 (contains_aligned_value_p): This. Handle _Decimal128.
9157 (ix86_function_arg_boundary): Only align _Decimal128 to its
9158 natural boundary and handle it properly.
9160 2008-05-06 Martin Jambor <mjambor@suse.cz>
9162 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
9163 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
9164 (ipcp_method_set_orig_node): Removed.
9165 (ipcp_cval_get_cvalue_type): Removed.
9166 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
9167 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
9168 (ipcp_cval_set_cvalue_type): Removed.
9169 (ipcp_cval_get_cvalue): Removed.
9170 (ipcp_cval_set_cvalue): Removed.
9171 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
9172 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
9173 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
9174 (ipcp_cval_meet): Renamed to ipa_lattice_meet
9175 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
9176 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
9177 (ipcp_get_ith_lattice): Changed parameters.
9178 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
9179 (ipcp_lattice_from_jfunc): Changed parameters.
9180 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
9181 (ipcp_method_cval_print): Added temporary variable info.
9182 (ipcp_redirect): Removed already unused local variable caller.
9183 (ipcp_redirect): New temporary variable orig_callee_info
9184 (ipcp_redirect): Removed newly unused local variable callee.
9185 (ipcp_redirect): Removed (a bit confusing) local variable type.
9186 (ipcp_insert_stage): Added local variable info.
9187 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
9189 (ipcp_formal_create): Removed.
9190 (ipcp_method_cval_set): Removed.
9191 (ipcp_propagate_stage): Renamed lattice variables.
9192 (ipcp_method_cval_set_cvalue_type): Removed.
9193 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
9194 (ipcp_print_all_lattices): Changed printed strings to refer to
9195 lattices rather than cvals.
9196 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
9197 (ipcp_propagate_const): Changed formal parameters.
9198 (build_const_val): Changed formal parameters.
9199 (ipcp_insert_stage): Removed useless variable cvalue
9200 (build_const_val): Changed formal parameters.
9201 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
9202 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
9203 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
9204 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
9205 (ipcp_print_func_profile_counts): Changed string from "method" to
9207 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
9208 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
9209 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
9210 (ipcp_structures_print): Renamed to ipcp_print_all_structures
9211 (ipcp_profile_print): Renamed to ipcp_print_profile_data
9212 (ipcp_lat_is_const): Changed parameters and made inline.
9213 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
9214 (ipcp_redirect): Renamed to ipcp_need_redirect_p
9215 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
9216 the predicate condition directly
9217 (ipcp_propagate_stage): Added local variable args. Removed local
9218 variable callee. (Both are mere code simplifications.)
9219 (ipcp_method_dont_insert_const): Renamed to
9220 ipcp_node_not_modifiable_p.
9221 (ipcp_node_not_modifiable_p): Made inline.
9222 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
9223 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
9224 (ipcp_print_all_lattices): Removed variable cvalue
9225 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
9228 2008-05-06 Olivier Hainque <hainque@adacore.com>
9230 * tree-sra.c (try_instantiate_multiple_fields): Early return
9231 if field has POINTER_TYPE.
9233 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
9235 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
9236 by using 'q' specifier for instruction.
9237 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
9239 2008-05-06 Anatoly Sokolov <aesok@post.ru>
9241 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
9242 Change mode of zero_extract from QImode to HImode.
9243 (sign bit tests peepholes): (Ditto.).
9245 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
9247 * config/i386/mmx.md: Remove double backslashes from asm templates.
9248 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
9249 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
9250 to handle nonimmediate operands.
9251 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
9252 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
9253 to handle nonimmediate operands.
9254 (*mmx_<code>v2sf3_finite): New insn pattern.
9255 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
9256 (mmx_<code>v2sf3): New expander. Use
9257 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9258 (mmx_<plusminus_insn><mode>3): New expander. Use
9259 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9260 (*mmx_<plusminus_insn><mode>3): New insn pattern.
9261 (mmx_add<mode>3): Removed.
9262 (mmx_ssadd<mode>3): Ditto.
9263 (mmx_usadd<mode>3): Ditto.
9264 (mmx_sub<mode>3): Ditto.
9265 (mmx_sssub<mode>3): Ditto.
9266 (mmx_ussub<mode>3): Ditto.
9267 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
9268 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
9269 to handle nonimmediate operands.
9270 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
9272 (mmx_smulv4hi3_highpart): New expander. Use
9273 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9274 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
9276 (mmx_umulv4hi3_highpart): New expander. Use
9277 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9278 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
9279 (mmx_<code>v4hi3): New expander. Use
9280 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9281 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
9282 (mmx_<code>v8qi3): New expander. Use
9283 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9284 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
9285 (mmx_<code><mode>3): New expander. Use
9286 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
9288 2008-05-05 Jan Hubicka <jh@suse.cz>
9290 PR tree-optimization/36118
9291 * passes.c (pass_init_dump_file): Fix dump header.
9293 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
9296 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
9297 VCE for function decls.
9299 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
9301 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
9303 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
9305 * config/i386/i386.md (sat_plusminus): New.
9306 (plusminus_insn): Likewise.
9307 (plusminus_mnemonic): Likewise.
9309 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
9310 (*<addsub><mode>3_cc_overflow): Renamed to ...
9311 (*<plusminus_insn><mode>3_cc_overflow): This.
9312 (*<addsub>si3_zext_cc_overflow): Renamed to ...
9313 (*<plusminus_insn>si3_zext_cc_overflow): This.
9315 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
9316 (<plusminus_insn><mode>3): This.
9317 (*<addsub><mode>3): Renamed to ...
9318 (*<plusminus_insn><mode>3): This.
9319 (<sse>_vm<addsub><mode>3): Renamed to ...
9320 (<sse>_vm<plusminus_insn><mode>3): This.
9321 (sse3_h<addsub>v4sf3): Renamed to ...
9322 (sse3_h<plusminus_insn>v4sf3): This.
9323 (sse3_h<addsub>v2df3): Renamed to ...
9324 (sse3_h<plusminus_insn>v2df3): This.
9325 (<plusminus_insn><mode>3): New.
9326 (*<plusminus_insn><mode>3): Likewise.
9327 (sse2_<plusminus_insn><mode>3): Likewise.
9328 (add<mode>): Removed.
9329 (*add<mode>3): Likewise.
9330 (sse2_ssadd<mode>3): Likewise.
9331 (sse2_usadd<mode>3): Likewise.
9332 (sub<mode>3): Likewise.
9333 (*sub<mode>3): Likewise.
9334 (sse2_sssub<mode>3): Likewise.
9335 (sse2_ussub<mode>3): Likewise.
9337 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
9339 * gthr-single.h: Add in required interface elements as per gthr.h.
9340 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
9341 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
9342 Generalize UNUSED macro.
9343 (__gthread_once): Add.
9344 (__gthread_key_create): Add.
9345 (__gthread_key_delete): Add.
9346 (__gthread_getspecific): Add.
9347 (__gthread_setspecific): Add.
9349 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
9351 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
9352 the same size types for the indirect reference on the rhs, then
9355 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
9357 * config/i386/i386.md
9358 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
9359 one insn template instead of template series.
9360 (*xordi_1_rex64): Ditto.
9361 (*xordi_2_rex64): Ditto.
9363 2008-05-05 Ira Rosen <irar@il.ibm.com>
9365 PR tree-optimization/36119
9366 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
9369 2008-06-04 Jan Hubicka <jh@suse.cz>
9371 tree-optimization/36100
9372 * tree-pass.h (pass_O0_always_inline): Declare.
9373 * ipa-inline.c (inline_transform): Remove dead code.
9374 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
9375 pass_O0_always_inline): New.
9376 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
9378 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
9380 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
9381 mnemonic in this_param move for TARGET_64BIT.
9383 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
9385 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
9386 (*strmovsi_rex_1): Ditto.
9387 (*strsetsi_1): Ditto.
9388 (*strsetsi_rex_1): Ditto.
9390 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
9391 adddicc expanders using SWI mode iterator.
9393 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
9396 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
9399 2008-05-04 David S. Miller <davem@davemloft.net>
9401 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
9402 (sparc*-*-linux*): Use linux.h in tm_file.
9403 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
9404 compiler defaulting to 32-bit.
9405 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
9407 * config/sparc/linux.h: Remove definitions now obtained
9408 properly from linux.h
9409 * config/sparc/linux64.h: Likewise.
9410 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
9411 don't want this setting for 32-bit builds in a biarch compiler.
9412 * doc/install.texi: Add sparc-linux to list of targets
9413 supporting --enable-targets=all.
9415 2008-05-03 Andrew Pinski <pinskia@gmail.com>
9417 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
9419 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
9421 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
9422 after V4SI_FTYPE_V8HI.
9423 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
9424 case V4SI_FTYPE_V2DF.
9426 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
9428 * doc/invoke.texi (max-flow-memory-locations): Removed.
9429 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
9431 2008-05-03 Richard Guenther <rguenther@suse.de>
9434 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
9436 2008-05-02 David S. Miller <davem@davemloft.net>
9438 * config.gcc (need_64bit_hwint): Document libcpp dependency.
9440 2008-05-02 Simon Baldwin <simonb@google.com>
9443 * c-common.h (warn_array_subscript_range): Removed.
9444 * c-common.c (warn_array_subscript_range): Ditto.
9445 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
9446 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
9448 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
9450 * config/i386/i386.c (ix86_special_builtin_type): New.
9451 (bdesc_special_args): Likewise.
9452 (ix86_expand_special_args_builtin): Likewise.
9453 (ix86_init_mmx_sse_builtins): Updated.
9454 (ix86_expand_builtin): Updated.
9455 (ix86_expand_store_builtin): Removed.
9456 (ix86_expand_unop_builtin): Likewise.
9458 * config/i386/mm3dnow.h (__v2sf): Moved to ...
9459 * config/i386/mmintrin.h (__v2sf): Here.
9461 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
9463 (_mm_loadl_pi): Likewise.
9464 (_mm_storeh_pi): Replace __v2si with __v2sf.
9465 (_mm_storel_pi): Likewise.
9467 * doc/extend.texi: Correct __builtin_ia32_loadhps,
9468 __builtin_ia32_loadlps, __builtin_ia32_storehps,
9469 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
9470 __builtin_ia32_loadlpd.
9472 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
9474 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
9475 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
9476 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
9477 (ix86_init_mmx_sse_builtins): Updated.
9478 (ix86_expand_args_builtin): Likewise.
9479 (ix86_expand_builtin): Likewise.
9480 (ix86_expand_unop1_builtin): Renamed to ...
9481 (ix86_expand_unop_vec_merge_builtin): This.
9483 2008-05-01 Jan Hubicka <jh@suse.cz>
9486 * ipa-inline.c (inline_generate_summary): Make static.
9487 (inline_transform): Do not call inlining at -O0; make static.
9488 * passes.c (execute_todo): Add sanity check.
9489 (execute_one_ipa_transform_pass): Execute proper flags.
9491 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
9493 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
9494 (DECL_NONADDRESSABLE_P): Likewise.
9495 * alias.c (record_component_aliases): Fix comment.
9497 2008-05-01 Simon Baldwin <simonb@google.com>
9499 * c-common.h (warn_array_subscript_range): New function.
9500 * c-common.c (warn_array_subscript_range): Ditto.
9501 * tree-vrp.c (check_array_ref): Corrected code to agree with
9502 comment, ignoring only arrays of size 0 or size 1.
9503 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
9505 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9507 * config/i386/i386.c (ix86_builtin_type): Replace
9508 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
9509 (bdesc_args): Updated.
9510 (ix86_init_mmx_sse_builtins): Likewise.
9511 (ix86_expand_args_builtin): Likewise.
9513 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
9516 * doc/extend.texi: Correct __builtin_ia32_palignr.
9518 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9521 * config/i386/i386.c (bdesc_crc32): Removed.
9522 (ix86_expand_crc32): Likewise.
9523 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
9524 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
9525 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
9526 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
9527 UINT_FTYPE_UINT_UCHAR.
9528 (bdesc_args): Updated. Add crc32 builtins.
9529 (ix86_init_mmx_sse_builtins): Updated.
9530 (ix86_expand_args_builtin): Updated to support subreg.
9532 * doc/extend.texi: Correct __builtin_ia32_crc32di.
9534 2008-05-01 Jan Hubicka <jh@suse.cz>
9536 * tree-pass.h (opt_pass): Add IPA_PASS.
9537 (varpool_node, cgraph_node): Forward declare.
9538 (ipa_opt_pass): Define.
9539 (pass_ipa_inline): Turn into ipa_opt_pass.
9540 (pass_apply_inline): Remove.
9541 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
9542 (apply_inline): Turn into ....
9543 (inline_transform): ... this one.
9544 (inline_generate_summary): New function.
9545 (pass_apply_inline): Remove.
9546 * function.h (ipa_opt_pass): Forward declare structure; typedef;
9548 (struct function): Add ipa_transforms_to_apply.
9549 * passes.c (register_one_dump_file): Work on IPA_PASS.
9550 (init_optimization_passes): Remove pass_inline_parameters and
9552 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
9553 (execute_one_pass) ... here; apply transforms when possible.
9554 (add_ipa_transform_pass, execute_ipa_summary_asses,
9555 execute_one_ipa_transform_pass): New.
9556 (execute_ipa_pass_list): Update for IPA_PASS type.
9558 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9560 * config/i386/i386.c (ix86_builtin_type): Add
9561 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
9562 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
9563 (bdesc_args): Add SSE4a builtins.
9564 (ix86_init_mmx_sse_builtins): Updated.
9565 (ix86_expand_args_builtin): Likewise.
9566 (ix86_expand_builtin): Likewise.
9568 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
9570 * config/i386/i386.c (ix86_builtin_type): Add
9571 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
9572 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
9573 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
9574 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
9575 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
9576 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
9577 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
9578 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
9579 and DI_FTYPE_DI_DI_INT.
9580 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
9581 (ix86_init_mmx_sse_builtins): Updated.
9582 (ix86_expand_args_builtin): Likewise.
9583 (ix86_expand_builtin): Likewise.
9584 (ix86_expand_binop_imm_builtin): Removed.
9586 * doc/extend.texi: Correct __builtin_ia32_palignr128.
9588 2008-04-30 Richard Guenther <rguenther@suse.de>
9590 PR tree-optimization/32921
9591 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
9593 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
9595 * config/arm/arm.c (arm_unwind_emit): Use
9596 crtl->all_throwers_are_sibcalls instead of
9597 cfun->all_throwers_are_sibcalls.
9598 (arm_output_fn_unwind): Likewise.
9599 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
9600 instead of cfun->uses_pic_offset_table.
9601 (frv_expand_prologue): Likewise.
9602 (frv_frame_pointer_required): Likewise.
9603 (frv_expand_fdpic_call): Likewise.
9604 (frv_emit_movsi): Likewise.
9605 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
9606 cfun->returns_pcc_struct instead of
9607 current_function_returns_pcc_struct.
9608 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
9609 instead of cfun->calls_eh_return.
9610 (m32c_pushm_popm): Likewise.
9611 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
9612 "extern" declaration.
9614 2008-04-30 Richard Guenther <rguenther@suse.de>
9616 PR tree-optimization/21636
9617 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
9619 (evaluate_stmt): Print the likely value.
9620 (ccp_visit_stmt): Avoid excessive vertical spacing.
9622 2008-04-30 Rafael Espindola <espindola@google.com>
9624 * builtins.c (fold_call_expr): Return realret.
9625 * tree-ssa-threadedge.c
9626 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
9627 __builtin_object_size.
9629 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
9631 * gcc.c (wrapper_string): New variable.
9632 (insert_wrapper): New function.
9633 (execute): New option -wrapper.
9634 * doc/invoke.texi (Overall Options): New driver option -wrapper.
9636 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
9638 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
9639 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
9640 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
9642 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
9643 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
9644 config/rs6000/e500crtres64gprctr.asm,
9645 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
9646 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
9647 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
9648 config/rs6000/e500crtsav64gprctr.asm,
9649 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
9650 config/rs6000/e500crtsavg64gprctr.asm: New files.
9651 * config/rs6000/t-ppccomm: Add build rules for new files.
9652 (LIB2FUNCS_STATIC_EXTRA): Add new files.
9653 * config/rs6000/t-netbsd: Add build rules for new files.
9654 (LIB2FUNCS_STATIC_EXTRA): New variable.
9655 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
9656 (CRTSAVRES_DEFAULT_SPEC): Likewise.
9657 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
9659 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
9661 * config/i386/i386.c (ix86_builtin_type): Add
9662 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
9663 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
9664 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
9665 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
9666 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
9667 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
9668 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
9669 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
9670 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
9671 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
9672 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
9673 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
9674 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
9675 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
9676 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
9677 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
9678 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
9679 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
9680 V1DI_FTYPE_V2SI_V2SI.
9681 (bdesc_2arg): Moved to ...
9683 (ix86_init_mmx_sse_builtins): Updated.
9684 (ix86_expand_args_builtin): Updated. Take a pointer
9685 to const struct builtin_description. Handle comparison
9687 (ix86_expand_sse_compare): Take a new argument for swapping operands.
9688 (ix86_expand_builtin): Updated.
9690 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
9691 (ssse3_pmaddubsw128): This.
9692 (ssse3_pmaddubswv4hi3): Renamed to ...
9693 (ssse3_pmaddubsw): This.
9695 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
9696 (__builtin_ia32_packssdw128): Likewise.
9697 (__builtin_ia32_packuswb128): Likewise.
9698 (__builtin_ia32_pmaddubsw): Likewise.
9699 (__builtin_ia32_pmaddubsw128): Likewise.
9701 2008-04-30 Richard Guenther <rguenther@suse.de>
9703 PR tree-optimization/14847
9704 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
9705 (recognize_bits_test): Use it.
9706 (recognize_single_bit_test): Likewise.
9708 2008-04-30 Martin Jambor <mjambor@suse.cz>
9710 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
9711 instead of setting number of formal parameters to zero.
9712 (ipcp_init_stage): Do not set the number of actual parameters to zero
9714 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
9715 which are called with variable number of arguments.
9716 (ipcp_insert_stage): Explicitely skipping all nodes which are
9717 called with variable number of arguments.
9718 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
9719 number of parameters.
9721 * ipa-prop.h (struct ipa_node_params): Added flag
9722 called_with_var_arguments
9723 (ipa_set_param_count): Added. Changed sole setter to use it.
9724 (ipa_get_param_count): Added. All readers of param_count
9725 converted to use it instead.
9726 (ipa_set_called_with_variable_arg): Added.
9727 (ipa_is_called_with_var_arguments): Added.
9728 (ipa_get_ith_param): Added. All readers of param_decls converted
9730 (ipa_set_cs_argument_count): Added, sole writer to argument_count
9732 (ipa_get_cs_argument_count): Added, all readers of argument_count
9734 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
9737 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
9738 (struct ipcp_lattice): Renamed cval_type to type
9739 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
9741 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
9742 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
9743 (ipcp_insert_stage): Changed the type of variable cvalue to tree
9744 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
9745 (build_const_val): Changed the type of parameter cvalue to tree
9746 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
9747 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
9749 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
9752 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
9753 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
9754 (ipa_add_method): Renamed to ipa_push_func_to_list
9755 (ipa_remove_method): Renamed to ipa_pop_func_from_list
9756 (ipa_callsite_param_count): Removed.
9757 (ipa_callsite_param_count_set): Removed.
9758 (ipa_callsite_param): Removed.
9759 (ipa_callsite_callee): Removed.
9760 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
9761 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
9762 (ipa_method_formal_count): Removed.
9763 (ipa_method_formal_count_set): Removed.
9764 (ipa_method_get_tree): Removed.
9765 (ipa_method_tree_map_create): Removed.
9766 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
9767 (ipa_create_param_decls_array): Creates the array itself
9768 (ipa_create_param_decls_array): Temporary variable info instead of
9770 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
9771 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
9772 (get_type): Removed.
9773 (ipa_jf_get_info_type): Removed.
9774 (ipa_node_create): Renamed to ipa_create_node_params
9775 (ipa_free): Renamed to ipa_free_all_node_params
9776 (ipa_nodes_create): Renamed to ipa_create_all_node_params
9777 (ipa_edges_create): Renamed to ipa_create_all_edge_args
9778 (ipa_edges_free): Renamed to ipa_free_all_edge_args
9779 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
9780 (ipa_free_all_node_params): Deallocation to jump_functions moved to
9781 ipa_free_all_edge_args
9782 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
9783 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
9784 (ipa_create_methodlist_node): Removed.
9785 (ipa_methodlist_method): Removed.
9786 (ipa_methodlist_method_set): Removed.
9787 (ipa_methodlist_next_method): Removed.
9788 (ipa_methodlist_next_method_set): Removed.
9789 (ipa_method_is_modified): Removed.
9790 (ipa_method_modify_create): Removed.
9791 (ipa_method_modify_init): Temporary variable info instead of a few
9793 (ipa_detect_param_modifications): Temporary variable info instead of
9795 (ipa_compute_jump_functions): Temporary variable info instead of
9797 (ipa_method_modify_set): Removed.
9798 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
9799 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
9800 than craph_node as the first parameter.
9801 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
9802 (ipa_method_modify_init): Removed.
9803 (ipa_compute_jump_functions): Added a temp variable instead of
9804 repeatadly dereferencing the cgraph_edge.aux pointer
9805 (ipa_callsite_param_set_type): Removed.
9806 (ipa_compute_jump_functions): i renamed to index and moved to
9808 (ipa_callsite_param_set_info_type_formal): Removed.
9809 (ipa_callsite_param_set_info_type): Removed.
9810 (ipa_callsite_param_map_create): Removed.
9811 (ipa_callsite_tree): Removed.
9812 (ipa_callsite_caller): Removed.
9813 (ipa_pop_func_from_list): return_method removed to return_func
9815 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
9816 prefixed all values with IPA_. Changed all users.
9817 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
9818 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
9819 and FORMAL_IPATYPE IPA_PASS_THROUGH.
9820 (union parameter_info): Renamed to jump_func_value.
9821 (union jump_func_value): Renamed value to constant
9822 (struct ipa_jump_func): Renamed info_type to value
9823 (struct ipa_node): Renamed to ipa_node_params
9824 (struct ipa_node_params): Renamed ipa_arg_num to param_count
9825 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
9826 (struct ipa_node_params): Renamed ipa_mod to modified_flags
9827 (struct ipa_edge): Renamed to ipa_edge_args
9828 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
9829 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
9830 (struct ipa_methodlist): Renamed to ipa_func_list
9831 (struct ipa_func_list): method_p renamed to node, next_method
9833 (ipa_methodlist_p): Removed, switched all users to struct pointer
9834 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
9836 2008-04-30 Alan Modra <amodra@bigpond.net.au>
9838 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
9839 (rs6000_emit_epilogue): Use backchain to restore only when we
9840 have a large frame. Make use of frame pointer to restore if we
9841 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
9843 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
9845 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
9846 Add mode to zero_extract.
9847 (sign bit tests peepholes): (Ditto.).
9849 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
9851 * config/i386/i386.c (ix86_builtins): Replace Prescott New
9852 Instructions in comments with SSE3.
9853 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
9854 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
9855 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
9856 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
9857 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
9858 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
9859 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
9860 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
9861 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
9862 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
9863 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
9864 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
9865 (bdesc_sse_args): Renamed to ...
9866 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
9867 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
9868 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
9870 (bdesc_1arg): Moved to ...
9872 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
9873 Instructions in comments with SSE3.
9874 (ix86_expand_sse_operands_builtin): Renamed to ...
9875 (ix86_expand_args_builtin): This. Updated.
9876 (ix86_expand_unop1_builtin): Update comments.
9877 (ix86_expand_builtin): Updated.
9879 2008-04-29 Richard Guenther <rguenther@suse.de>
9881 PR tree-optimization/36078
9882 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9883 Update virtual SSA form after cleaning up the CFG.
9885 2008-04-29 Richard Guenther <rguenther@suse.de>
9888 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
9890 2008-04-29 Richard Guenther <rguenther@suse.de>
9892 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
9893 (compute_may_aliases): Do not call finalize_ref_all_pointers.
9894 (compute_flow_insensitive_aliasing): Do not treat
9895 PTR_IS_REF_ALL pointers special.
9896 (get_smt_for): Likewise.
9897 (may_alias_p): Re-structure.
9898 (is_escape_site): A ref-all pointer conversion is not an escape site.
9899 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
9900 PTR_IS_REF_ALL pointers special.
9901 * tree-ssa-structalias.h (struct alias_info): Remove
9902 ref_all_symbol_mem_tag field.
9903 (PTR_IS_REF_ALL): Remove.
9905 2008-04-29 Richard Guenther <rguenther@suse.de>
9908 * fold-const.c (extract_muldiv_1): In combining division constants
9909 make sure to never overflow.
9911 2008-04-29 Nick Clifton <nickc@redhat.com>
9913 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
9915 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9918 * optc-gen.awk: Work around HP-UX/IA awk bug.
9920 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
9922 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
9925 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
9928 * config/i386/i386.md
9929 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
9930 Change operand 1 predicate to nonimmediate_operand.
9932 2008-04-28 Jakub Jelinek <jakub@redhat.com>
9935 * dwarf2out.c (struct die_struct): Mark as chain_circular through
9937 * gengtype.c (walk_type, write_func_for_structure): Handle
9939 * doc/gty.texi: Document chain_circular.
9941 2008-04-28 Richard Guenther <rguenther@suse.de>
9943 PR tree-optimization/36066
9944 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
9947 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
9950 * config/i386/i386.md
9951 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
9952 Use match_scratch instead of match_operand for operands 3 and 4.
9954 2008-04-27 Richard Guenther <rguenther@suse.de>
9956 PR tree-optimization/18754
9957 PR tree-optimization/34223
9958 * tree-pass.h (pass_complete_unrolli): Declare.
9959 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
9960 loop size before and after unconditionally of UL_NO_GROWTH in effect.
9961 Rewrite loop into loop closed SSA form if it is not already.
9962 (tree_unroll_loops_completely): Re-structure to iterate over
9963 innermost loops with intermediate CFG cleanups.
9964 Unroll outermost loops only if requested or the code does not grow
9966 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
9967 loops are available.
9968 (tree_vectorize): Instead do so here.
9969 (tree_complete_unroll): Also unroll outermost loops.
9970 (tree_complete_unroll_inner): New function.
9971 (gate_tree_complete_unroll_inner): Likewise.
9972 (pass_complete_unrolli): New pass.
9973 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
9974 uses outside of the loop.
9975 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
9976 form if it is available.
9977 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
9978 * passes.c (init_optimization_passes): Schedule complete inner
9979 loop unrolling pass before the first CCP pass after final inlining.
9981 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
9983 * targhooks.h (default_emutls_var_fields,
9984 default_emutls_var_init): Declare.
9985 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
9986 * target.h (struct gcc_target): Add struct emutls member.
9987 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
9988 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
9989 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
9990 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
9991 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
9992 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
9993 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
9994 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
9995 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
9996 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
9997 emit debug information.
9998 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
9999 * varasm.c: Include targhooks.h.
10000 (emutls_object_section, emutls_tmpl_section): New.
10001 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
10002 (EMUTLS_SEPARATOR): New.
10003 (prefix_name): New.
10004 (get_emutls_object_name): New.
10005 (default_emutls_var_fields): New, broken out of ...
10006 (get_emutls_object_type): ... here. Adjust to use target hooks.
10007 (get_emutls_init_templ_addr): Adjust to use target hooks.
10008 (emutls_decl): Adjust to use target hooks.
10009 (emutls_finish): Likewise.
10010 (default_emutls_var_init): New, broken out of ...
10011 (assemble_variable): ... here. Adjust to use target hooks.
10012 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
10013 SECCAT_EMUTLS_TMPL.
10014 * c-common.c (handle_section_attribute): Prevent overriding
10015 sections for emulated tls with special sections.
10016 * config/i386/i386.c (x86_64_elf_select_section): Add
10017 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
10018 (x86_64_elf_unique_section): Likewise.
10019 * config/vxworks.c: Include tree.h.
10020 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
10021 (vxworks_override_options): Set TLS scheme.
10022 * doc/tm.texi (Emulated TLS): New node.
10024 2008-04-26 Simon Baldwin <simonb@google.com>
10027 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
10028 with propagated string constants.
10030 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
10032 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
10033 constraint for operand 2 when operand 0 is memory operand.
10034 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
10035 operand 0 is memory operand.
10036 (fix_trunc<mode>_i387_with_temp): Ditto.
10037 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
10038 operand 2 when operand 1 is memory operand.
10039 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
10040 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
10041 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
10042 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
10043 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
10044 operands 2,3 and 4 when operand 1 is memory operand.
10045 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
10047 (fistdi2_floor_with_temp): Ditto.
10048 (fist<mode>2_floor_with_temp): Ditto.
10049 (fistdi2_ceil_with_temp): Ditto.
10050 (fist<mode>2_ceil_with_temp): Ditto.
10051 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
10053 2008-04-26 David Daney <ddaney@avtrex.com>
10055 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
10057 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
10058 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
10059 UNSPEC_UPDATE_GOT_VERSION): Renumber.
10060 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
10061 (compare_and_swap_12): New insn.
10062 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
10063 * config/mips/mips.c (mips_force_binary): New function.
10064 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
10065 (mips_expand_compare_and_swap_12): New function.
10066 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
10068 2008-04-25 Jan Hubicka <jh@suse.cz>
10071 * cfgexpand.c (pass_expand): Turn into RTL pass.
10072 * passes.c (execute_one_pass): Do pass typechecking after execution.
10073 * tree-pass.h (pass_expand): Turn into RTL pass.
10075 * function.h (struct rtl_data): Move here fields
10076 accesses_prior_frames, calls_eh_return, saves_all_registers,
10077 has_nonlocal_goto, has_asm_statement, is_thunk,
10078 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
10079 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
10080 arg_pointer_save_area_init from struct function; turn into bool.
10081 (struct function): Move
10082 calls_eh_return, saves_all_registers, has_nonlocal_goto,
10083 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
10084 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
10085 tail_call_emit, arg_pointer_save_area_init
10086 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
10087 (current_function_returns_struct, current_function_returns_pcc_struct,
10088 current_function_calls_setjmp, current_function_calls_alloca,
10089 current_function_accesses_prior_frames,
10090 current_function_calls_eh_return, current_function_is_thunk,
10091 current_function_stdarg, current_function_profile,
10092 current_function_limit_stack, current_function_uses_pic_offset_table,
10093 current_function_uses_const_pool, current_function_has_nonlocal_label,
10094 current_function_saves_all_registers,
10095 current_function_has_nonlocal_goto,
10096 current_function_has_asm_statement): Remove accesor macros.
10097 * ra-conflict.c (global_conflicts): Update.
10098 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
10099 (suitable_for_tail_call_opt_p): Update.
10100 * builtins.c (expand_builtin_return_addr): Update.
10101 (expand_builtin_setjmp_setup): Update.
10102 (expand_builtin_nonlocal_goto): Update.
10103 * final.c (final_start_function): Update.
10104 (profile_function): Update.
10105 (leaf_function_p): Update.
10106 (only_leaf_regs_used): Update.
10107 * df-scan.c (df_get_exit_block_use_set): Update.
10108 * dojump.c (clear_pending_stack_adjust): Update.
10109 * tree-stdarg.c (gate_optimize_stdarg): Update.
10110 * gimple-low.c (lower_function_body): Update.
10111 * global.c (compute_regsets): Update.
10112 (global_alloc): Update.
10113 * dwarf2out.c (dwarf2out_begin_prologue): Update.
10114 * expr.c (expand_assignment): Update.
10115 * dse.c (dse_step0): Update.
10116 (dse_step1): Update.
10117 * c-decl.c (store_parm_decls): Update.
10118 * local-alloc.c (combine_regs): Update.
10119 (find_free_reg): Update.
10120 * function.c (assign_parms_augmented_arg_list): Update.
10121 (assign_parm_find_data_types): Update.
10122 (assign_parms): Update.
10123 (allocate_struct_function): Update.
10124 (expand_function_start): Update.
10125 (expand_function_end): Update.
10126 (get_arg_pointer_save_area): Update.
10127 (thread_prologue_and_epilogue_insns): Update.
10128 (rest_of_match_asm_constraints): Update.
10129 * stor-layout.c (variable_size): Update.
10130 * gcse.c (gcse_main): Update.
10131 (bypass_jumps): Update.
10132 * gimplify.c (gimplify_function_tree): Update.
10133 * calls.c (emit_call_1): Update.
10134 (expand_call): Update.
10135 * bt-load.c (compute_defs_uses_and_gen): Update.
10136 * except.c (sjlj_assign_call_site_values): Update.
10137 (sjlj_emit_function_enter): Update.
10138 (can_throw_external): Update.
10139 (set_nothrow_function_flags): Update.
10140 (expand_builtin_unwind_init): Update.
10141 (expand_eh_return): Update.
10142 (convert_to_eh_region_ranges): Update.
10143 (output_function_exception_table): Update.
10144 * emit-rtl.c (gen_tmp_stack_mem): Update.
10145 * cfgexpand.c (expand_used_vars): Update.
10146 (tree_expand_cfg): Update.
10147 * cfgcleanup.c (rest_of_handle_jump): Update.
10148 * explow.c (allocate_dynamic_stack_space): Update.
10149 * varasm.c (assemble_start_function): Update.
10150 (force_const_mem): Update.
10151 (mark_constant_pool): Update.
10152 * tree-optimize.c (tree_rest_of_compilation): Update.
10153 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
10154 * tree-cfg.c (notice_special_calls): Update.
10155 (is_ctrl_altering_stmt): Update.
10156 (tree_can_make_abnormal_goto): Update.
10157 (tree_purge_dead_abnormal_call_edges): Update.
10158 * config/alpha/predicates.md: Update.
10159 * config/alpha/alpha.c (alpha_sa_mask): Update.
10160 (alpha_sa_size): Update.
10161 (alpha_does_function_need_gp): Update.
10162 (alpha_expand_prologue): Update.
10163 (alpha_start_function): Update.
10164 (alpha_output_function_end_prologue): Update.
10165 (alpha_expand_epilogue): Update.
10166 * config/frv/frv.c (frv_stack_info): Update.
10167 (frv_expand_epilogue): Update.
10168 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
10169 (s390_register_info): Update.
10170 (s390_frame_info): Update.
10171 (s390_init_frame_layout): Update.
10172 (s390_can_eliminate): Update.
10173 (save_gprs): Update.
10174 * config/spu/spu.c (spu_split_immediate): Update.
10175 (need_to_save_reg): Update.
10176 (spu_expand_prologue): Update.
10177 (spu_expand_epilogue): Update.
10178 * config/sparc/sparc.md: Update.
10179 * config/sparc/sparc.c (eligible_for_return_delay): Update.
10180 (sparc_tls_got): Update.
10181 (legitimize_pic_address): Update.
10182 (sparc_emit_call_insn): Update.
10183 (sparc_expand_prologue): Update.
10184 (output_return): Update.
10185 (print_operand): Update.
10186 (sparc_function_ok_for_sibcall): Update.
10187 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
10188 * config/m32r/m32r.md: Update.
10189 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
10190 (m32r_compute_frame_size): Update.
10191 (m32r_expand_prologue): Update.
10192 (m32r_expand_epilogue): Update.
10193 (m32r_legitimize_pic_address): Update.
10194 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
10195 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
10196 * config/i386/i386.c (ix86_frame_pointer_required): Update.
10197 (gen_push): Update.
10198 (ix86_save_reg): Update.
10199 (ix86_compute_frame_layout): Update.
10200 (ix86_expand_prologue): Update.
10201 (ix86_expand_epilogue): Update.
10202 * config/sh/sh.c (output_stack_adjust): Update.
10203 (calc_live_regs): Update.
10204 (sh5_schedule_saves): Update.
10205 (sh_expand_prologue): Update.
10206 (sh_expand_epilogue): Update.
10207 (sh_setup_incoming_varargs): Update.
10208 (sh_allocate_initial_value): Update.
10209 (sh_get_pr_initial_val): Update.
10210 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
10211 * config/sh/sh.md (label:): Update.
10212 * config/avr/avr.c (out_movhi_mr_r): Update.
10213 * config/crx/crx.h (enum): Update.
10214 * config/xtensa/xtensa.h (along): Update.
10215 * config/stormy16/stormy16.c Update.
10216 (xstormy16_compute_stack_layout): Update.
10217 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
10218 (fr30_expand_prologue): Update.
10219 * config/cris/cris.c (cris_conditional_register_usage): Update.
10220 (cris_reg_saved_in_regsave_area): Update.
10221 (cris_initial_frame_pointer_offset): Update.
10222 (cris_simple_epilogue): Update.
10223 (cris_expand_prologue): Update.
10224 (cris_expand_epilogue): Update.
10225 (cris_expand_pic_call_address): Update.
10226 (cris_asm_output_symbol_ref): Update.
10227 (cris_asm_output_label_ref): Update.
10228 * config/cris/cris.md Update.
10229 * config/iq2000/iq2000.c (compute_frame_size): Update.
10230 (iq2000_expand_epilogue): Update.
10231 * config/mt/mt.h (save_direction): Update.
10232 * config/mn10300/mn10300.c (mn10300_function_value): Update.
10233 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10234 (ia64_secondary_reload_class): Update.
10235 * config/m68k/m68k.c (m68k_save_reg): Update.
10236 (m68k_expand_prologue): Update.
10237 (m68k_expand_epilogue): Update.
10238 (legitimize_pic_address): Update.
10239 * config/rs6000/rs6000.c (rs6000_got_register): Update.
10240 (first_reg_to_save): Update.
10241 (first_altivec_reg_to_save): Update.
10242 (compute_vrsave_mask): Update.
10243 (compute_save_world_info): Update.
10244 (rs6000_stack_info): Update.
10245 (spe_func_has_64bit_regs_p): Update.
10246 (rs6000_ra_ever_killed): Update.
10247 (rs6000_emit_eh_reg_restore): Update.
10248 (rs6000_emit_allocate_stack): Update.
10249 (rs6000_emit_prologue): Update.
10250 (rs6000_emit_epilogue): Update.
10251 (rs6000_output_function_epilogue): Update.
10252 (output_profile_hook): Update.
10253 (rs6000_elf_declare_function_name): Update.
10254 * config/rs6000/rs6000.h (rs6000_args): Update.
10255 * config/rs6000/rs6000.md: Update.
10256 * config/mcore/mcore.c (mcore_expand_prolog): Update.
10257 * config/arc/arc.c (arc_output_function_epilogue): Update.
10258 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
10259 * config/darwin.c (machopic_function_base_name): Update.
10260 * config/score/score3.c (score3_compute_frame_size): Update.
10263 (score3_epilogue): Update.
10264 * config/score/score7.c (score7_compute_frame_size): Update.
10265 (score7_prologue): Update.
10266 (score7_epilogue): Update.
10267 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
10268 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
10269 * config/arm/arm.c (use_return_insn): Update.
10270 (require_pic_register): Update.
10271 (arm_load_pic_register): Update.
10272 (arm_compute_save_reg0_reg12_mask): Update.
10273 (arm_compute_save_reg_mask): Update.
10274 (thumb1_compute_save_reg_mask): Update.
10275 (output_return_instruction): Update.
10276 (arm_output_function_prologue): Update.
10277 (arm_output_epilogue): Update.
10278 (arm_get_frame_offsets): Update.
10279 (arm_expand_prologue): Update.
10280 (thumb_pushpop): Update.
10281 (thumb_exit): Update.
10282 (thumb1_expand_prologue): Update.
10283 (thumb1_expand_epilogue): Update.
10284 (arm_unwind_emit): Update.
10285 (arm_output_fn_unwind): Update.
10286 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
10287 * config/arm/arm.md: Update.
10288 * config/pa/pa.md: Update.
10289 * config/pa/pa.c (legitimize_pic_address): Update.
10290 (compute_frame_size): Update.
10291 (hppa_expand_prologue): Update.
10292 (hppa_expand_epilogue): Update.
10293 (borx_reg_operand): Update.
10294 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
10295 (HARD_REGNO_RENAME_OK): Update.
10296 * config/mips/mips.c (mips_global_pointer): Update.
10297 (mips_save_reg_p): Update.
10298 (mips_compute_frame_info): Update.
10299 (mips_frame_pointer_required): Update.
10300 (mips_expand_prologue): Update.
10301 (mips_expand_epilogue): Update.
10302 (mips_can_use_return_insn): Update.
10303 (mips_reorg_process_insns): Update.
10304 * config/v850/v850.c (compute_register_save_size): Update.
10305 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
10306 * config/mmix/mmix.c (along): Update.
10307 (mmix_expand_epilogue): Update.
10308 * config/bfin/bfin.c (legitimize_pic_address): Update.
10309 (must_save_p): Update.
10310 (stack_frame_needed_p): Update.
10311 (add_to_reg): Update.
10312 (bfin_expand_prologue): Update.
10313 * stmt.c (expand_asm_operands): Update.
10314 * reload1.c (reload): Update.
10315 (init_elim_table): Update.
10317 2008-04-25 Bob Wilson <bob.wilson@acm.org>
10319 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
10321 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
10323 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
10324 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
10325 (mov<mode>): Removed.
10326 (*movv4sf_internal): Likewise.
10327 (*movv2df_internal): Likewise.
10329 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
10331 * config.gcc (crx-*-elf): Remove deprecation.
10333 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
10335 * config/i386/cygming-crtend.c (register_frame_ctor): Register
10336 __gcc_deregister_frame with atexit.
10337 (deregister_frame_dtor): Remove.
10339 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
10340 Nathan Sidwell <nathan@codesourcery.com>
10342 * config/rs6000/rs6000.opt (mspe): Remove Var property.
10344 * config/rs6000/rs6000.h (rs6000_spe): Declare.
10345 (rs6000_isel): Likewise.
10346 * config/rs6000/rs6000.c (rs6000_spe): New variable.
10347 (rs6000_isel): New variable.
10348 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
10350 2008-04-24 Jakub Jelinek <jakub@redhat.com>
10353 * c-common.c (handle_vector_size_attribute): Call
10354 lang_hooks.types.reconstruct_complex_type instead of
10355 reconstruct_complex_type.
10356 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
10357 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
10358 * langhooks.h (struct lang_hooks_for_types): Add
10359 reconstruct_complex_type hook.
10360 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
10361 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
10363 2008-04-24 Richard Guenther <rguenther@suse.de>
10365 * c-common.h (check_builtin_function_arguments): Declare.
10366 * c-common.c (validate_nargs): New function.
10367 (check_builtin_function_arguments): Likewise.
10368 * c-typeck.c (build_function_call): Call
10369 check_builtin_function_arguments.
10370 * builtins.c (fold_builtin_classify): Remove error reporting code.
10371 (fold_builtin_unordered_cmp): Likewise.
10372 (fold_builtin_1): Likewise.
10373 (fold_builtin_n): Likewise.
10375 2008-04-24 Jakub Jelinek <jakub@redhat.com>
10377 PR tree-optimization/36008
10378 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
10379 the original op1, rather than delta by step.
10381 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
10382 Sebastian Pop <sebastian.pop@amd.com>
10384 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
10385 eliminate_local_variables_stmt, eliminate_local_variables,
10386 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
10387 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
10388 of code delimited by two edges in the CFG.
10389 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
10390 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
10391 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
10392 the case of parallelisation of reductions.
10393 (expr_invariant_in_region_p): New.
10395 * tree-flow.h (gather_blocks_in_sese_region): Declared.
10396 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
10398 2008-04-24 Ira Rosen <irar@il.ibm.com>
10399 Richard Guenther <rguenther@suse.de>
10401 PR tree-optimization/36034
10402 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
10403 incapable of dealing with loads with gaps.
10405 2008-04-24 Rafael Espindola <espindola@google.com>
10407 * tree-flow.h (vrp_evaluate_conditional): Change signature.
10408 * tree-ssa-propagate.c (fold_predicate_in): Update call to
10409 vrp_evaluate_conditional.
10410 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
10411 (vrp_evaluate_conditional): Split the cond argument.
10412 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
10413 (simplify_stmt_for_jump_threading): Update call to
10414 vrp_evaluate_conditional.
10416 2008-04-24 Ira Rosen <irar@il.ibm.com>
10418 PR tree-optimization/35982
10419 * tree-vect-analyze.c (vect_check_interleaving): Check that the
10420 interleaved data-refs are of the same type.
10422 2008-04-24 Danny Smith <dannysmith@users.net>
10424 * c-format.c (check_format_info_main): Use strncmp rather than a
10425 magic prefix to handle multichar length specs.
10426 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
10427 Don't prefix "I64" and "I32" with '\0'.
10429 2008-04-24 Jakub Jelinek <jakub@redhat.com>
10432 * config/i386/i386.c (init_cumulative_args): Don't pass anything
10433 in registers for -m32 only if stdarg_p (fntype).
10435 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
10437 PR rtl-optimization/36006
10438 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
10439 temp to op0 in order to avoid invalid rtx sharing.
10441 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
10443 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
10444 check TREE_INVARIANT.
10445 * tree-gimple.c (is_gimple_address): New.
10446 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
10447 * tree-gimple.h (is_gimple_address): New.
10448 * tree.h (decl_address_invariant_p): New.
10449 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
10450 (build_string): Likewise.
10451 (decl_address_invariant_p): New, from is_gimple_invariant_address.
10452 (tree_invariant_p_1): Likewise.
10453 (save_expr): Use it.
10454 (tree_invariant_p): New.
10455 (skip_simple_arithmetic): Use it.
10456 (stabilize_reference_1): Use it.
10457 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
10459 (build1_stat): Drop code to compute TREE_INVARIANT.
10460 (build2_stat): Drop code to compute TREE_INVARIANT.
10461 (build3_stat): Drop code to compute TREE_INVARIANT.
10462 (build4_stat): Drop code to compute TREE_INVARIANT.
10463 (build5_stat): Drop code to compute TREE_INVARIANT.
10464 (build7_stat): Drop code to compute TREE_INVARIANT.
10465 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
10466 * tree.h (struct tree_base): Remove invariant_flag.
10467 (TREE_INVARIANT): Remove.
10468 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
10469 (fold_builtin_expect): Check TREE_CONSTANT.
10470 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
10471 * c-tree.h (c_expr_to_decl): Drop third parameter.
10472 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
10473 (build_c_cast): Don't set TREE_INVARIANT.
10474 (pop_init_level): Don't set TREE_INVARIANT.
10475 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
10476 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
10478 (gimplify_init_constructor): Don't set TREE_INVARIANT.
10479 (gimplify_addr_expr): Adjust comment.
10480 * tree-mudflap.c (mf_build_string):
10481 * print-tree.c (print_node): Don't print TREE_INVARIANT.
10482 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
10483 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
10484 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
10485 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
10486 * langhooks.h (struct lang_hooks): Drop third parameter from
10489 2008-04-23 Richard Guenther <rguenther@suse.de>
10491 PR tree-optimization/27799
10492 PR tree-optimization/32921
10493 PR tree-optimization/32624
10494 * tree-ssa-structalias.c (merge_smts_into): Only merge the
10495 SMTs aliases and the tag itself into the solution.
10496 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
10497 merge the points-to solution back into the SMT aliases.
10498 (may_alias_p): Use alias_set_subset_of instead of
10499 aliases_conflict_p. A pointer which points to
10500 memory with alias set zero may access any variable.
10502 2008-04-23 Richard Guenther <rguenther@suse.de>
10504 * alias.c (alias_set_subset_of): Correctly handle asking
10505 if zero is a subset of an alias set with zero child.
10506 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
10507 (compute_flow_insensitive_aliasing): Correctly walk all
10508 pointers. Do not unnecessarily union sets.
10510 2008-04-23 Richard Guenther <rguenther@suse.de>
10512 PR middle-end/36021
10513 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
10515 2008-04-22 Tomas Bily <tbily@suse.cz>
10517 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
10519 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
10521 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
10522 * tree-ssa-structalias.c (get_constraint_for): Likewise.
10523 * tree-inline.c (estimate_num_insns_1): Likewise.
10524 * varasm.c (const_hash_1, compare_constant, copy_constant)
10525 (compute_reloc_for_constant, output_addressed_constants): Likewise.
10526 * emit-rtl.c (component_ref_for_mem_expr)
10527 (set_mem_attributes_minus_bitpos): Likewise.
10528 * expr.c (highest_pow2_factor, expand_expr_real_1, )
10529 (is_aligning_offset): Likewise.
10530 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
10531 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
10532 * dojump.c (do_jump): Likewise.
10533 * builtins.c (get_pointer_alignment, get_memory_rtx)
10534 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
10535 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
10537 2008-04-23 Jakub Jelinek <jakub@redhat.com>
10539 PR rtl-optimization/36017
10540 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
10541 expanding the library call.
10543 2008-04-22 Ian Lance Taylor <iant@google.com>
10545 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
10546 than size_in_bytes.
10548 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
10550 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
10551 of LR/CTR moves for Power6.
10553 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
10555 PR middle-end/36003
10556 * passes.c (init_optimization_passes): Remove
10557 pass_fast_rtl_byte_dce.
10559 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
10562 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
10563 builtin functions to generate faster code.
10564 (_mm_cvtpu16_ps): Ditto.
10565 (_mm_cvtpi32x2_ps): Ditto.
10567 2008-04-22 Nick Clifton <nickc@redhat.com>
10569 * common.opt (ftree-loop-distribution): Add Optimization
10572 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
10573 (frv_expand_builtin_va_start): Likewise.
10575 * config/arm/arm.c (thumb_find_work_register): Fix location of
10576 argument register count.
10578 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
10580 Support scheduling for ColdFire V1 and V3 microarchitecture.
10581 Improve scheduling of multiplication instructions.
10583 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
10584 (mac): New instruction attribute.
10585 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
10586 (m68k_sched_mac): New variable.
10587 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
10588 Handle cfv1 and cfv3.
10589 (max_insn_size): New static variable.
10590 (struct _sched_ib): New type.
10591 (sched_ib): New static variable.
10592 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
10593 to fields of 'struct _sched_ib sched_ib'. Update all uses.
10594 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
10596 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
10597 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
10598 new variables. Update.
10599 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
10600 Add modeling of cfv3 instruction buffer. Update.
10601 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
10602 * config/m68k/m68k.h (TUNE_CFV3): New macro.
10603 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
10604 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
10605 a particular reservation applies to.
10606 (type2): Reorganize attribute values. Rename alu to alu_reg,
10607 alu_l to alu, move_l to omove. Join move to alu. Split mul
10608 to mul_l and mul_w.
10609 (cf_ib_*): Simplify description of instruction buffer.
10610 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
10611 (cf_mem): Split into cf_mem1 and cf_mem2.
10612 (cf_v2_move_??): Rename to cfv12_alu_??.
10613 (cf_v2_move_l_??): Rename to cfv12_omove_??.
10614 (cf_v2_mul_??): Remove reservations.
10615 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
10616 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
10617 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
10619 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
10620 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
10621 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
10622 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
10623 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
10624 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
10625 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
10626 expansions of the above reservations for instructions of sizes
10629 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
10631 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
10633 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
10635 * coverage.c: Include tree-pass.h.
10636 (coverage_counter_alloc): Print da_file_name to the dump file.
10638 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
10640 * sbitmap.c (sbitmap_range_empty_p): New function.
10641 * sbitmap.h (sbitmap_range_empty_p): New function.
10642 * bitmap.h: Now includes obstack.h.
10644 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
10645 Kenneth Zadeck <zadeck@naturalbridge.com>
10647 * dbgcnt.def (ra_byte_scan): Added.
10648 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
10649 when the last hit happens for a counter.
10650 * timevar.def (TV_DF_BYTE_LR): New variable.
10651 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
10652 * passes.c (pass_fast_rtl_byte_dce): New pass.
10653 * fwprop.c (update_df): Added mode to call df_ref_create.
10654 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10655 DF_REF_EXTRACT_OFFSET.
10656 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
10657 DF_BYTE_LR_OUT, df_byte_lr): New macro.
10659 (df_ref_extract): Added mode field.
10660 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
10661 DF_REF_EXTRACT_OFFSET.
10662 (DF_REF_EXTRACT_MODE): New macro.
10663 (df_byte_lr_bb_info): New structure.
10664 (df_print_byte_regset, df_compute_accessed_bytes,
10665 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
10666 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
10667 df_byte_lr_simulate_uses,
10668 df_byte_lr_simulate_artificial_refs_at_top,
10669 df_byte_lr_simulate_artificial_refs_at_end,
10670 df_compute_accessed_bytes): New function.
10671 (df_ref_create): Add parameter.
10672 (df_byte_lr_get_bb_info): New inline function.
10673 * df-scan.c (df_ref_record, df_uses_record,
10674 df_ref_create_structure): Added mode parameter.
10675 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
10676 df_defs_record, df_uses_record, df_get_conditional_uses,
10677 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
10678 df_entry_block_defs_collect, df_exit_block_uses_collect):
10679 Added mode parameter to calls to df_ref_record, df_uses_record,
10680 df_ref_create_structure.
10681 (df_ref_equal_p, df_ref_compare): Added test for modes.
10682 (df_ref_create_structure): Added code to set mode. Renamed
10683 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10684 DF_REF_EXTRACT_OFFSET.
10685 * df-core.c (df_print_byte_regset): New function.
10686 * df-byte-scan.c: New file.
10687 * df-problems.c (df_rd_transfer_function): Removed unnecessary
10688 calls to BITMAP_FREE.
10689 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
10690 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
10691 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
10692 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
10693 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
10694 df_byte_lr_local_compute, df_byte_lr_init,
10695 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
10696 df_byte_lr_transfer_function, df_byte_lr_free,
10697 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
10698 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
10699 df_byte_lr_simulate_uses,
10700 df_byte_lr_simulate_artificial_refs_at_top,
10701 df_byte_lr_simulate_artificial_refs_at_end): New function.
10702 * dce.c (byte_dce_process_block): New function.
10703 (dce_process_block): au is now passed in rather than computed
10704 locally. Changed loops that look at artificial defs to not look
10705 for conditional or partial ones, because there never are any.
10706 (fast_dce): Now is able to drive byte_dce_process_block or
10707 dce_process_block depending on the kind of dce being done.
10708 (rest_of_handle_fast_dce): Add parameter to fast_dce.
10709 (rest_of_handle_fast_byte_dce): New function.
10710 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
10711 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
10713 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
10716 * gcc.h: Added fortran options that take arguments to
10717 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
10720 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
10722 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
10723 scalarization if on the LHS and not a full access.
10725 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10727 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
10729 2008-04-18 Rafael Espindola <espindola@google.com>
10731 * tree-vrp.c (find_case_label_index): Fix the binary search.
10732 (find_case_label_range): New.
10733 (vrp_visit_switch_stmt): Use find_case_label_range.
10734 (simplify_switch_using_ranges): Use find_case_label_range.
10736 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
10738 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
10739 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
10741 2008-04-18 Tom Tromey <tromey@redhat.com>
10744 * doc/cpp.texi (Implementation-defined behavior): Mention
10747 2008-04-18 Ian Lance Taylor <iant@google.com>
10749 * fold-const.c (pointer_may_wrap_p): New static function.
10750 (fold_comparison): Add another test for pointer overflow. Use
10751 pointer_may_wrap_p to disable some false positives.
10753 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
10755 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
10756 (fname_as_string): Match updated cpp_interpret_string prototype.
10757 (fix_string_type): Support char16_t* and char32_t*.
10758 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
10759 derivative) nodes. Register as builtin if C++0x.
10760 (c_parse_error): Support CPP_CHAR{16,32}.
10761 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
10762 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
10763 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
10764 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
10765 CTI_CHAR32_ARRAY_TYPE>: New elements.
10766 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
10767 char32_type_node, signed_char32_type_node, char16_array_type_node,
10768 char32_array_type_node): New defines.
10769 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
10770 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
10771 (lex_string): Support CPP_STRING{16,32}, match updated
10772 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
10773 (lex_charconst): Support CPP_CHAR{16,32}.
10774 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
10775 and CPP_STRING{16,32}.
10777 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
10780 * aclocal.m4: Regenerate.
10781 * configure: Regenerate.
10783 2008-04-18 Jan Hubicka <jh@suse.cz>
10785 * except.c (dw2_size_of_call_site_table,
10786 sjlj_size_of_call_site_table): Use vector API for call_site_record.
10788 * cgraphbuild.c (build_cgraph_edges): Update.
10789 * tree-pass.h: Update comment.
10790 * final.c (leaf_function_p): Update.
10791 (leaf_renumber_regs): Update.
10792 (rest_of_clean_state): Update.
10793 * omp-low.c (expand_omp_parallel): Update.
10794 * ipa-reference.c (analyze_function): Update.
10795 * reorg.c (find_end_label): Update.
10796 (optimize_skip): Update.
10797 (fill_simple_delay_slots): Update.
10798 (fill_simple_delay_slots): Update.
10799 (make_return_insns): Update.
10800 (dbr_schedule): Update.
10801 * gimple-low.c (record_vars_into): Update.
10802 * cfgbuild.c (make_edges): Update.
10803 * function.c (assign_stack_local): Update.
10804 (assign_parm_adjust_stack_rtl): Update.
10805 (locate_and_pad_parm): Update.
10806 (allocate_struct_function): Do not initialize stack_alignment_needed
10807 and preferred_stack_boundary here.
10808 (stack_protect_prologue): Update.
10809 (stack_protect_epilogue): Update.
10810 (expand_function_start): Initialize stack_alignment_needed,
10811 preferred_stack_boundary and max_jumptable_ents.
10812 (expand_function_end): Update.
10813 (free_after_compilation): Do not NULLify epilogue_delay_list.
10814 * function.h (struct rtl_data): Add stack_protect_guard,
10815 stack_alignment_needed,
10816 preferred_stack_boundary, epilogue_delay_list.
10817 (struct function): Remove value_histograms, stack_alignment_needed,
10818 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
10820 unexpanded_var_list, stack_protect_guard.
10821 (current_function_epilogue_delay_list): Remove.
10822 * ipa-type-escape.c (analyze_function): Update.
10823 * gimplify.c (pop_gimplify_context): Update comment.
10824 * calls.c (expand_call): Update.
10825 (emit_library_call_value_1): Update.
10826 * except.c (set_nothrow_function_flags): Update.
10827 * cfgexpand.c (get_decl_align_unit): Update.
10828 (create_stack_guard): Update.
10829 (estimated_stack_frame_size): Update.
10830 (expand_used_vars): Update.
10831 (tree_expand_cfg): Free histogram earliers, init expansion variables.
10832 * explow.c (allocate_dynamic_stack_space): Update.
10833 * tree-ssa-live.c (remove_unused_locals): Update.
10834 * varasm.c (mark_constant_pool): Update.
10835 * tree-inline.c (remap_decls): Update.
10836 (initialize_cfun): Update.
10837 (declare_return_variable): Update.
10838 (inline_forbidden_p): Update.
10839 (expand_call_inline): Update.
10840 (declare_inline_vars): Update.
10841 (tree_function_versioning): Update.
10842 * tree-flow.h (value_histograms): New.
10843 (VALUE_HISTOGRAMS): New macro.
10844 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
10846 * tree-cfg.c (set_bb_for_stmt): Update.
10847 (replace_by_duplicate_decl): Update.
10848 (move_block_to_fn): Update.
10849 (new_label_mapper): Update.
10850 (dump_function_to_file): Update.
10851 * ipa-struct-reorg.c (build_data_structure): Update.
10852 * cfgrtl.c (print_rtl_with_bb): Update.
10853 * reload1.c (reload): Update.
10855 * config/i386/i386.c (setup_incoming_varargs_64,
10856 ix86_compute_frame_layout): Update.
10857 * config/arc/arc.c (arc_output_function_epilogue): Update.
10859 2008-04-18 Marius Strobl <marius@FreeBSD.org>
10861 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
10862 for FreeBSD as well.
10863 * gthr-posix95.h: Likewise.
10865 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
10867 PR rtl-optimization/35838
10868 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
10869 out the byte offset of the first subreg.
10871 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
10873 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
10874 to split_ti instead of three separate calls with single member arrays.
10875 (subti3 splitter): Ditto.
10876 (adddi3 splitter): Ditto with split_di.
10877 (subdi3 splitter): Ditto.
10878 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
10879 two separate calls with single member arrays. Swap match_dup
10880 operands 1 and 2 to better fit into the array.
10881 (negdi2 splitter): Ditto with split_di.
10882 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
10883 two separate calls with single member arrays. Swap match_dup operands
10884 6 and 7 to better fit into the array.
10886 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
10888 * config/i386/i386.c (sse_builtin_type): New.
10889 (bdesc_sse_args): Likewise.
10890 (bdesc_sse_3arg): Removed.
10891 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10892 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
10893 IX86_BUILTIN_ROUNDPS.
10894 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
10895 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
10896 IX86_BUILTIN_ROUNDPS.
10897 (ix86_expand_sse_4_operands_builtin): Removed.
10898 (ix86_expand_sse_operands_builtin): New.
10899 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
10900 and CODE_FOR_sse4_1_roundps.
10901 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10902 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
10904 2008-04-17 Alan Modra <amodra@bigpond.net.au>
10907 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
10908 regs before frame pop when needed. If use_backchain_to_restore_sp
10909 then load backchain into a temp reg to restore vr and vrsave. Add
10910 code to restore vr after frame pop if possible.
10912 2008-04-17 Richard Guenther <rguenther@suse.de>
10914 * tree-vn.c (expressions_equal_p): Do not check type
10915 equality or compatibility before calling operand_equal_p.
10916 * fold-const.c (operand_equal_p): Check equivalence of
10917 integer constants before bailing out due to signedness or
10918 precision differences.
10919 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
10920 spurious differences in type qualification. Ignore types
10921 for COMPONENT_REFs at all.
10923 2008-04-17 Christian Bruel <christian.bruel@st.com>
10925 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
10926 msw_skip comparison.
10928 2008-04-16 Jakub Jelinek <jakub@redhat.com>
10931 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
10934 PR tree-optimization/35899
10935 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
10936 rather than TREE_OPERAND.
10938 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
10941 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
10942 temporary registers. Change operand predicate to general_operand.
10943 (remainderxf3): Ditto.
10945 2008-04-16 Richard Guenther <rguenther@suse.de>
10947 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
10948 * tree-affine.c (aff_combination_expand): Look through some
10951 2008-04-15 Doug Kwan <dougkwan@google.com>
10953 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
10955 * tree-pretty-print.c (dump_generic_node): Ditto.
10956 * final.c (output_addr_const): Ditto.
10957 * dwarf2out.c (output_cfi): Ditto.
10958 * c-pretty-print.c (pp_c_integer_constant): Ditto.
10959 * print-rtl.c (print_rtx): Ditto.
10960 * print-tree.c (print_node_brief, print_node): Ditto.
10961 * c-common.c (match_case_to_enum_1): Ditto.
10962 * sched-vis.c (print_value): Ditto.
10963 * config/i386/i386.c (print_operand): Cast to long unsigned int
10966 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
10967 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
10968 MS Windows VirtualProtect function.
10970 2008-04-15 Jan Hubicka <jh@suse.cz>
10972 * gengtype.c (write_root): Param_is argument is OK.
10973 * expr.c (expand_expr_real_1): Update call of get_exception_*.
10974 * function.h: Include varray.h
10975 (rtl_eh): New stucture based on except.c one.
10976 (call_site_record): New forward declaration and vector type.
10977 * calls.c (emit_call_1): Do not call
10978 note_current_region_may_contain_throw.
10979 * except.c (eh_status): Remove cur_region, try_region since they are
10981 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
10982 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
10983 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
10984 Remove call_site_data_used, call_site_data_size.
10985 Turn call_site_record into vector in function.h.
10986 (note_current_region_may_contain_throw): Remove.
10987 (get_exception_pointer, get_exception_filter): Do not take struct
10988 function argument; update.
10989 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
10990 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
10991 build_post_landing_pads, dw2_build_landing_pads,
10992 sjlj_assign_call_site_values, sjlj_mark_call_sites,
10993 sjlj_emit_function_enter, sjlj_emit_function_enter,
10994 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
10995 sjlj_build_landing_pads, finish_eh_generation,
10996 remove_exception_handler_label, remove_eh_handler,
10997 maybe_remove_eh_handler, add_reachable_handler,
10998 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
10999 add_action_record, collect_one_action_chain, add_call_site,
11000 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
11001 sjlj_output_call_site_table, output_function_exception_table,
11002 * except.h (note_current_region_may_contain_throw): Remove
11003 (get_exception_pointer, get_exception_filter): Do not take struct
11005 * Makefile.in (GTFILES): Put varargs before struct function.
11007 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
11009 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
11010 punt for STRING_CST.
11011 (get_constraint_for): Deal with STRING_CST here instead.
11013 2008-04-15 Richard Guenther <rguenther@suse.de>
11015 * tree-ssa-propagate.c (substitute_and_fold): Substitute
11016 statements in a basic-block with a backward walk. Do not
11017 substitute into dead statements but instead remove those.
11019 2008-04-15 Richard Guenther <rguenther@suse.de>
11021 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
11022 to zero, thus disable creation of SFTs.
11024 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
11026 * tree-predcom.c (suitable_reference_p): Return false if the
11027 reference can throw.
11029 2008-04-15 Jakub Jelinek <jakub@redhat.com>
11032 * c-decl.c (finish_decl): If extern or static var has variable
11033 size, set TREE_TYPE (decl) to error_mark_node.
11035 2008-04-15 Rafael Espindola <espindola@google.com>
11037 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
11040 2008-04-15 Richard Guenther <rguenther@suse.de>
11042 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
11043 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
11044 (visit_reference_op_load): Do walk vuse-vdef chains on
11045 vn_reference_lookup.
11046 (visit_reference_op_store): But do not here.
11047 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
11048 vn_reference_lookup.
11049 (vn_lookup_with_vuses): But do so here.
11051 2008-04-14 Ian Lance Taylor <iant@google.com>
11053 * fold-const.c (fold_overflow_warning): Remove assertion.
11055 2008-04-15 Ben Elliston <bje@au.ibm.com>
11057 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
11058 temp1 local variables.
11060 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
11063 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
11064 ".text.unlikely" section as executable.
11066 2008-04-14 James E. Wilson <wilson@tuliptree.org>
11068 * config/ia64/ia64.c (rtx_needs_barrier): Handle
11069 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
11070 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
11071 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
11072 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
11073 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
11074 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
11076 2008-04-14 Ian Lance Taylor <iant@google.com>
11078 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
11079 * fold-const.c (fold_comparison): If appropriate, test
11080 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
11081 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
11082 reassociating a pointer type.
11083 * doc/invoke.texi (Optimize Options): Document that
11084 -fstrict-overflow applies to pointer wraparound.
11086 2008-04-13 Jan Hubicka <jh@suse.cz>
11088 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
11090 2008-04-12 Andrew Pinski <pinskia@gmail.com>
11092 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
11093 we are going to "save the world".
11095 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
11097 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
11098 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
11099 operand 0 constraint, not "=".
11101 2008-04-11 James E. Wilson <wilson@tuliptree.org>
11103 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
11105 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
11107 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
11108 of size of positions_needed * CHAR_BIT.
11110 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
11112 PR middle-end/35897
11113 * dse.c (store_info): Change positions_needed to unsigned
11115 (lowpart_bitmask): New.
11116 (record_store): Cast to unsigned HOST_WIDE_INT for
11117 positions_needed. Assert width <= size of positions_needed *
11118 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
11119 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
11120 lowpart_bitmask to set mask.
11122 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
11124 * config/bfin/constraints.md: New file.
11125 * config/bfin/bfin.md: Include it.
11126 (adddi3): Use satisfies_constraint functions instead of the old macros.
11127 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
11128 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
11129 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
11130 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
11131 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
11132 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
11133 EXTRA_CONSTRAINT): Delete.
11134 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
11135 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
11137 * config/bfin/bfin.c: Include "tm-constrs.h".
11138 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
11139 Use satisfies_constraint functions instead of the old macros.
11140 * doc/md.texi (Blackfin Constraints): Update file name reference.
11142 2008-04-11 Richard Guenther <rguenther@suse.de>
11144 PR tree-optimization/35869
11145 * tree-vrp.c (execute_vrp): Move switch statement update after
11146 jump threading. Schedule another cfg cleanup run.
11148 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
11151 * attribs.c (decl_attributes): Return early on errorneous node.
11153 2008-04-10 Oleg Ryjkov <olegr@google.com>
11155 * tree.h (struct tree_base): Added a new flag default_def_flag.
11156 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
11158 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
11160 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
11162 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11165 * pa.md: Define mode iterator P. Define mode attribute dwc.
11166 (dcacheflush): Update pattern to use iterator P and attribute dwc.
11167 (icacheflush): Likewise.
11168 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
11169 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
11171 2008-04-11 Ben Elliston <bje@au.ibm.com>
11173 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
11175 2008-04-10 Rafael Espindola <espindola@google.com>
11177 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
11178 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
11179 (extract_range_from_expr): The same.
11181 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
11183 * config/mips/mips.md (GPR2): New mode iterator.
11184 (seq): Add comment.
11185 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
11186 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
11187 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
11188 Rewrite these to take two modes, the mode of comparison and the
11189 mode of the destination.
11190 * config/mips/mips.c (mips_expand_scc): Instead of having
11191 paradoxical subreg as destination, expand "narrowing" scc if mode
11192 of comparison is SI and target is requested in DI mode.
11193 (mips_emit_int_order_test): Update comment. Make mode of
11194 comparison match CMP0 rather than TARGET. When creating inverse
11195 target use mode of TARGET.
11197 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
11199 * gcov-dump.c (tag_summary): Only print summaries for the first
11200 GCOV_COUNTERS_SUMMABLE counters.
11202 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
11204 * config/i386/i386.md (absneg): New code iterator.
11205 (absnegprefix): New code attribute.
11206 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
11207 patterns using absneg code iterator.
11208 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
11209 using absneg code iterator.
11210 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
11211 *neg<mode>2 patterns using absneg code iterator.
11212 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
11213 *negextendsfdf2 patterns using absneg code iterator.
11214 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
11215 *negextendsfxf2 patterns using absneg code iterator.
11216 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
11217 *negextendsfdf2 patterns using absneg code iterator.
11218 * config/i386/sse.md (<code><mode>2): Macroize expander from
11219 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
11221 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
11223 * config/s390/s390.h: Remove the remains of the recent search
11224 & replace action of current_function_outgoing_args_size.
11226 2008-04-10 Ira Rosen <irar@il.ibm.com>
11228 PR tree-optimization/35821
11229 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
11230 NEW_STMT_LIST is not NULL.
11232 2008-04-09 David Edelsohn <edelsohn@gnu.org>
11235 * toplev.c (process_options): Remove -ffunction-sections debugging
11238 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
11240 PR middle-end/PR28690
11241 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
11242 than gen_rtx_fmt_ee to perform more canonicalizations.
11244 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11247 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
11249 2008-04-09 Richard Guenther <rguenther@suse.de>
11251 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
11252 (dump_function_to_file): Dump function arguments with types.
11254 2008-04-08 Richard Guenther <rguenther@suse.de>
11256 * fold-const.c (fold_widened_comparison): Do not allow
11257 sign-changes that change the result.
11259 2008-04-08 Janis Johnson <janis187@us.ibm.com>
11262 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
11263 kinds of indirect references.
11265 2008-04-08 David Edelsohn <edelsohn@gnu.org>
11267 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
11268 GNU Fortran language string.
11270 2008-04-08 Rafael Espindola <espindola@google.com>
11272 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
11273 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
11274 * tree.h (tree_call_nonnegative_warnv_p): New.
11276 2008-04-08 Jan Hubicka <jh@suse.cz>
11278 * function.c (free_after_compilation): Clear out regno_reg_rtx
11281 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
11284 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
11286 PR middle-end/PR28690
11287 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
11288 same precedence as REG_POINTER and MEM_POINTER operands.
11290 2008-04-08 Richard Guenther <rguenther@suse.de>
11292 PR middle-end/35834
11293 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
11294 for adding index to base.
11296 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
11298 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
11299 (MINGW_ENABLE_EXECUTE_STACK): New.
11300 (IN_LIBGCC2): For libgcc include windows.h file for
11301 function declarations.
11303 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
11305 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
11306 and tem2 if tem1 is not a REG or MULT.
11308 2008-04-08 Jan Hubicka <jh@suse.cz>
11310 * function.h (incomming_args): Break out of struct function.
11311 (function_subsections): Break out of struct function.
11312 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
11313 return_rtx and hard_reg_initial_vals from struct function.
11314 Kill inl_max_label_num.
11315 (current_function_pops_args, current_function_args_info,
11316 current_function_args_size, current_function_args_size,
11317 current_function_pretend_args_size,
11318 current_function_outgoing_args_size,
11319 current_function_internal_arg_pointer, current_function_return_rtx):
11320 Kill compatibility accestor macros.
11321 * builtins.c (expand_builtin_apply_args_1): Update.
11322 (expand_builtin_next_arg): Update.
11323 * df-scan.c (df_get_call_refs): Update.
11324 * dbxout.c (dbxout_function_end): Update.
11325 * dwarf2out.c (dwarf2out_switch_text_section): Update.
11326 (output_line_info): Update.
11327 (secname_for_decl): Update.
11328 (dwarf2out_var_location): Update.
11329 * function.c (free_after_compilation): Update.
11330 (assign_parm_find_stack_rtl): Update.
11331 (assign_parms): Update.
11332 (expand_dummy_function_end): Update.
11333 (expand_function_end): Update.
11334 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
11335 (expand_call): Update.
11336 (emit_library_call_value_1): Update.
11337 (store_one_arg): Update.
11338 * varasm.c (initialize_cold_section_name): Update.
11339 (unlikely_text_section): Update.
11340 (unlikely_text_section_p): Update.
11341 (assemble_start_function): Update.
11342 (assemble_end_function): Update.
11343 (default_section_type_flags): Update.
11344 (switch_to_section): Update.
11345 * integrate.c (set_decl_abstract_flags): Update.
11346 (get_hard_reg_initial_val): Update.
11347 (has_hard_reg_initial_val): Update.
11348 (allocate_initial_values): Update.
11349 * resource.c (init_resource_info): Update.
11350 * config/alpha/alpha.c (NUM_ARGS): Update.
11351 (direct_return): Update.
11352 (alpha_va_start): Update.
11353 (alpha_sa_size): Update.
11354 (alpha_initial_elimination_offset): Update.
11355 (alpha_expand_prologue): Update.
11356 (alpha_start_function): Update.
11357 (alpha_expand_epilogue): Update.
11358 (unicosmk_initial_elimination_offset):
11359 * config/alpha/alpha.md (call expander): Update.
11360 * config/s390/s390.c (s390_register_info): Update.
11361 (s390_register_info): Update.
11362 (s390_frame_info): Update.
11363 (s390_initial_elimination_offset): Update.
11364 (s390_build_builtin_va_list): Update.
11365 (s390_va_start): Update.
11366 * config/spu/spu.c (direct_return): Update.
11367 (spu_expand_prologue): Update.
11368 (spu_initial_elimination_offset): Update.
11369 (spu_build_builtin_va_list): Update.
11370 (spu_va_start): Update.
11371 * config/sparc/sparc.c (sparc_init_modes): Update.
11372 (sparc_compute_frame_size): Update.
11373 (function_value): Update.
11374 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
11375 * config/i386/i386.md (return expander): Update.
11376 * config/i386/i386.c (ix86_va_start): Update.
11377 (ix86_can_use_return_insn_p): Update.
11378 (ix86_compute_frame_layout): Update.
11379 (ix86_expand_epilogue): Update.
11380 * config/sh/sh.c (output_stack_adjust): Update.
11381 (calc_live_regs): Update.
11382 (sh_expand_prologue): Update.
11383 (sh_builtin_saveregs): Update.
11384 (sh_va_start): Update.
11385 (initial_elimination_offset): Update.
11386 (sh_allocate_initial_value): Update.
11387 (sh_function_ok_for_sibcall): Update.
11388 (sh_get_pr_initial_val): Update.
11389 * config/sh/sh.md (return expander): Update.
11390 * config/avr/avr.c (frame_pointer_required_p): UPdate.
11391 * config/crx/crx.c (crx_compute_frame): UPdate.
11392 (crx_initial_elimination_offset): UPdate.
11393 * config/xtensa/xtensa.c (compute_frame_size): Update
11394 (xtensa_builtin_saveregs): Update.
11395 (xtensa_va_start): Update.
11396 (order_regs_for_local_alloc): Update.
11397 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
11398 (xstormy16_expand_builtin_va_start): Update.
11399 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
11400 * config/m68hc11/m68hc11.md (return expanders): Update.
11401 * config/m68hc11/m68hc11.c (expand_prologue): Update.
11402 (expand_epilogue): Update.
11403 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
11404 (cris_simple_epilogue): Update.
11405 (cris_expand_prologue): Update.
11406 (cris_expand_epilogue): Update.
11407 * config/iq2000/iq2000.c (iq2000_va_start): Update.
11408 (compute_frame_size): Update.
11409 * config/mt/mt.c (mt_compute_frame_size): Update.
11410 * config/mn10300/mn10300.c (expand_prologue): Update.
11411 (expand_epilogue): Update.
11412 (initial_offset): Update.
11413 (mn10300_builtin_saveregs):
11414 * config/mn10300/mn10300.md (return expander): Update.
11415 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
11416 (ia64_initial_elimination_offset): Update.
11417 (ia64_initial_elimination_offset): Update.
11418 (ia64_expand_prologue): Update.
11419 * config/m68k/m68k.md (return expander): Update.
11420 * config/rs6000/rs6000.c (rs6000_va_start): Update.
11421 (rs6000_stack_info): Update.
11422 * config/mcore/mcore.c (layout_mcore_frame): Update.
11423 (mcore_expand_prolog): Update.
11424 * config/arc/arc.c (arc_compute_frame_size): Update.
11425 * config/score/score3.c (score3_compute_frame_size): Update.
11426 * config/score/score7.c (score7_compute_frame_size): Update.
11427 * config/arm/arm.c (use_return_insn): Update.
11428 (thumb_find_work_register): Update.
11429 (arm_compute_save_reg_mask): Update.
11430 (arm_output_function_prologue): Update.
11431 (arm_output_epilogue): Update.
11432 (arm_size_return_regs): Update.
11433 (arm_get_frame_offsets): Update.
11434 (arm_expand_prologue): Update.
11435 (thumb_exit): Update.
11436 (thumb_unexpanded_epilogue): Update.
11437 (thumb1_output_function_prologue): Update.
11438 * config/pa/pa.md (return expander): Update.
11439 * config/pa/pa.c (compute_frame_size): Update.
11440 (hppa_builtin_saveregs): Update.
11441 * config/mips/mips.c (mips_va_start): Update.
11442 (mips16_build_function_stub): Update.
11443 (mips_compute_frame_info): Update.
11444 (mips_restore_gp): Update.
11445 (mips_output_function_prologue): Update.
11446 (mips_expand_prologue): Update.
11447 * config/v850/v850.c (compute_frame_size): Update.
11448 (expand_prologue): * config/mmix/mmix.c (along): update.
11449 (mmix_initial_elimination_offset): update.
11450 (mmix_reorg): update.
11451 (mmix_use_simple_return): update.
11452 (mmix_expand_prologue): update.
11453 (mmix_expand_epilogue): Update.
11454 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
11455 (emit_link_insn): Update.
11457 2008-04-08 Anatoly Sokolov <aesok@post.ru>
11459 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
11460 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
11462 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
11465 2008-04-07 Jan Hubicka <jh@suse.cz>
11467 * function.h (rtl): Rename to x_rtl.
11468 (crtl): New define.
11469 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11470 frame_offset, stack_check_probe_note, arg_pointer_save_area,
11471 used_temp_slots avail_temp_slots, temp_slot_level,
11472 nonlocal_goto_handler_labels): Update accesstors.
11473 (rtl): New global variable.
11474 (struct function): Move some fileds to rtl_data.
11475 (get_arg_pointer_save_area): Update prototype.
11476 * builtins.c (expand_builtin_setjmp_receiver): Update call of
11477 get_arg_pointer_save_area.
11478 * expr.c (init_expr): Update
11479 * function.c (get_frame_size): Update
11480 (assign_stack_local): Update
11481 (expand_function_end): Update.
11482 (get_art_pointer_save_area): Update
11484 * emit-rtl.c (rtl): Declare.
11485 (regno_reg_rtx): Declare.
11486 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11488 (gen_reg_rtx): Update.
11489 * varasm.c (n_deferred_constatns): Update accestor.
11490 (init_varasm_status): Do not allocate varasm_status.
11491 (force_const_mem, get_pool_size, output_constant_pool): Update.
11492 * stmt.c (force_label_rtx): Do not use x_ prefixes.
11493 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11494 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
11495 * sparc/sparc.h (INIT_EXPANDERS): Update.
11496 * ia64/ia64.h (INIT_EXPANDERS): Update.
11498 2008-04-07 James E. Wilson <wilson@tuliptree.org>
11500 * reload.c (push_secondary_reload): Add missing break to for loop.
11502 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
11504 PR middle-end/PR28690
11505 * rtlanal.c: Update copyright years.
11506 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
11507 as REG_POINTER and MEM_POINTER operands.
11508 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
11509 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
11510 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
11511 * gcse.c: Update copyright years.
11512 (pre_delete): Call gen_reg_rtx_and_attrs.
11513 (hoist_code): Likewise.
11514 (build_store_vectors): Likewise.
11515 (delete_store): Likewise.
11516 * loop-invariant.c (move_invariant_reg): Likewise.
11517 Update copyright years.
11519 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
11521 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
11522 control string instead of quoted.
11524 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
11526 * doc/rtl.texi: Rewrite of subreg section.
11528 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
11531 * config/i386/i386.c (legitimize_pic_address): Add treating
11532 of dllimport SYM_REF's.
11533 (legitimize_dllimport_symbol): Add prototype.
11535 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
11537 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
11538 reference in constructor with non self-referential type.
11540 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
11542 Removal of Return with Depressed Stack Pointer support
11543 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
11544 (ECF_SP_DEPRESSED): Likewise.
11545 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
11546 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
11547 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11548 (expand_call): Do not test ECF_SP_DEPRESSED.
11549 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11550 * function.c (keep_stack_depressed): Delete.
11551 (handle_epilogue_set): Likewise.
11552 (update_epilogue_consts): Likewise.
11553 (emit_equiv_load): Likewise.
11554 (thread_prologue_and_epilogue_insns): Remove support for Return with
11555 Depressed Stack Pointer.
11556 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
11558 2008-04-06 Richard Guenther <rguenther@suse.de>
11560 PR tree-optimization/35400
11561 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
11562 information from SSA_NAMEs.
11564 2008-04-06 Anatoly Sokolov <aesok@post.ru>
11566 * config/avr/avr.h (avr_mega_p): Remove declaration.
11567 (AVR_MEGA): Remove macro.
11568 * config/avr/avr.c (avr_mega_p): Remove variable.
11569 (avr_override_options): Remove inicializion of avr_mega_p.
11570 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11571 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
11572 (avr_jump_mode): (Ditto.).
11573 (avr_output_progmem_section_asm_op): (Ditto.).
11574 (avr_asm_init_sections): (Ditto.).
11575 (avr_asm_init_sections): (Ditto.).
11576 (avr_rtx_costs): (Ditto.).
11577 * config/avr/avr.md: (Ditto.).
11578 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
11581 2008-04-06 Richard Guenther <rguenther@suse.de>
11583 PR tree-optimization/35842
11584 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
11585 is_gimple_invariant_address.
11587 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11589 * gcc.c (default_compilers): Sync Fortran extensions list with
11590 that in fortran/lang-specs.h.
11591 * doc/invoke.texi: Likewise.
11592 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
11593 * dwarf2out.c (gen_compile_unit_die): Likewise.
11595 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
11597 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
11599 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
11602 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
11603 attribute is used for nested functions.
11605 2008-04-05 Jan Hubicka <jh@suse.cz>
11607 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
11609 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
11611 (dump_files): Update.
11612 (enable_rtl_dump_file): Do not accept letter argument.
11613 * tree-pass.h (dump_file_info): Remove letter argument.
11614 * toplev.c (decode_d_option): Update -da handling.
11615 * toplev.h (enable_rtl_dump_file): Update prototype.
11616 * passes.c (register_one_dump_file): Do not accept IPA argument; work
11617 it out based on pass type.
11618 (register_dump_files_1): Likewise.
11619 (init_optimization_passes): Update register_one_dump_file calls.
11620 (execute_one_pass): Sanity check that IPA passes are called at IPA
11621 level and RTL passes at RTL level.
11622 (execute_pass_list): IPA pass can not be after or subpass of
11624 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
11625 disallov RTL subpasses of IPA subpasses.
11627 2008-04-05 Ben Elliston <bje@au.ibm.com>
11629 * tree-cfg.c (need_fake_edge_p): Return false for calls to
11630 builtins that return exactly once and do not throw. Cache call to
11633 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
11635 PR rtl-optimization/34916
11636 PR middle-end/35519
11637 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
11638 between instruction pairs.
11640 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
11642 * doc/invoke.texi: Document -mbitops for SH.
11643 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
11644 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
11645 * config/sh/sh.c (print_operand): Add %t operand code.
11646 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
11647 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
11648 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
11649 (extendqihi2): Likewise.
11650 (movqi_i): Likewise.
11651 (insv): Use bset, bclr and bst instructions for SH2A if possible.
11652 (extv): Use bld instruction for SH2A if possible.
11654 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
11655 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
11656 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
11657 (bset.b, bclr.b): Define peepholes.
11658 * config/sh/sh.opt (mbitops): New option.
11660 2008-04-04 Janis Johnson <janis187@us.ibm.com>
11663 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
11664 and view convert expression.
11666 2008-04-04 Jakub Jelinek <jakub@redhat.com>
11669 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
11671 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
11673 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
11675 * config/i386/cpuid.h (bit_AES): New.
11676 (bit_PCLMUL): Likewise.
11678 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
11679 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
11680 SSE2 if AES or PCLMUL is enabled.
11681 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
11682 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11683 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
11684 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
11685 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
11686 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
11687 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11688 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
11689 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
11690 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
11691 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
11692 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
11693 __builtin_ia32_aeskeygenassist128 and
11694 __builtin_ia32_pclmulqdq128.
11695 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
11696 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
11697 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
11699 * config/i386/i386.h (TARGET_AES): New.
11700 (TARGET_PCLMUL): Likewise.
11701 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
11703 * config/i386/i386.md (UNSPEC_AESENC): New.
11704 (UNSPEC_AESENCLAST): Likewise.
11705 (UNSPEC_AESDEC): Likewise.
11706 (UNSPEC_AESDECLAST): Likewise.
11707 (UNSPEC_AESIMC): Likewise.
11708 (UNSPEC_AESKEYGENASSIST): Likewise.
11709 (UNSPEC_PCLMUL): Likewise.
11711 * config/i386/i386.opt (maes): New.
11712 (mpclmul): Likewise.
11714 * config/i386/sse.md (aesenc): New pattern.
11715 (aesenclast): Likewise.
11716 (aesdec): Likewise.
11717 (aesdeclast): Likewise.
11718 (aesimc): Likewise.
11719 (aeskeygenassist): Likewise.
11720 (pclmulqdq): Likewise.
11722 * config/i386/wmmintrin.h: New.
11724 * doc/extend.texi: Document AES and PCLMUL built-in function.
11726 * doc/invoke.texi: Document -maes and -mpclmul.
11728 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
11730 * function.c (free_after_parsing): Replace with
11731 cxx_push_function_context from C++ front-end.
11732 (allocate_struct_function): Don't call langhook.
11733 * langhooks.h (struct lang_hooks_for_functions): Delete.
11734 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
11736 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
11737 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
11738 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
11739 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
11740 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
11741 remove LANG_HOOKS_FUNCTION_INITIALIZER.
11742 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
11744 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
11745 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
11747 2008-04-04 Jakub Jelinek <jakub@redhat.com>
11750 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
11753 2008-04-04 Richard Guenther <rguenther@suse.de>
11755 PR middle-end/35823
11756 * fold-const.c (optimize_minmax_comparison): Use the correct
11757 type for the constant in the simplified comparison.
11759 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
11761 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
11762 Pass L2 size as "--param l2-cache-size" to the compiler.
11763 (decode_l2_cache): New function to decode L2 cache parameters using
11764 0x8000006 extended cpuid function.
11765 (detect_caches_amd): Determine parameters of L2 cache using
11766 decode_l2_caches function.
11767 (decode_caches_intel): Decode L2 cache parameters.
11768 (detect_caches_intel): Determine L2 cache parameters using
11769 decode_caches_intel and decode_l2_caches functions.
11771 2008-04-03 Bob Wilson <bob.wilson@acm.org>
11773 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
11774 secondary input reload for subword loads from the constant pool.
11776 2008-04-03 Janis Johnson <janis187@us.ibm.com>
11779 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
11780 constants of the appropriate size for runtime calculations.
11783 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
11784 decimal-float literal constant zero.
11786 2008-04-03 Jakub Jelinek <jakub@redhat.com>
11789 * c-parser.c (c_parser_omp_atomic): Call
11790 default_function_array_conversion on the RHS.
11792 PR middle-end/35818
11793 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
11794 call is_variable_sized if decl has incomplete type.
11796 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
11798 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
11800 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
11802 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
11804 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
11805 (sgt<u>): Merge sgt and sgtu into new expander.
11806 (sgt, sgtu): Remove expanders.
11807 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
11808 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
11809 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
11810 *sgtu_<mode>_mips16 into new pattern.
11811 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
11812 (sge<u>): Merge sge and sgeu into new expander.
11813 (sge, sgeu): Remove expanders.
11814 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
11816 (*sge_<mode>, second *sge_<mode>): Remove patterns.
11817 (slt<u>): Merge slt and sltu into new expander.
11818 (slt, sltu): Remove expanders.
11819 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
11820 (*slt_<mode>, *sltu_<mode>): Remove patterns.
11821 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
11822 *sltu_<mode>_mips16 into new pattern.
11823 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
11824 (sle<u>): Merge sle and sleu into new expander.
11825 (sle, sleu): Remove expanders.
11826 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
11827 (*sle_<mode>, *sleu_<mode>): Remove patterns.
11828 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
11829 *sleu_<mode>_mips16 into new pattern.
11830 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
11832 2008-04-03 Jan Hubicka <jh@suse.cz>
11834 PR tree-optimization/35795
11835 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
11836 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11837 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11838 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11839 * score/score3.c (score3_output_mi_thunk): Likewise.
11840 * score/score7.c (score7_output_mi_thunk): Likewise.
11841 * mips/mips.c (mips_output_mi_thunk): Likewise.
11843 2008-04-03 Richard Guenther <rguenther@suse.de>
11845 * tree-vrp.c (extract_range_from_unary_expr): Handle all
11846 conversions. Simplify code.
11848 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
11850 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
11852 2008-04-03 Tom Tromey <tromey@redhat.com>
11853 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11855 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11856 * config/bfin/t-bfin-linux (generated_files): Add
11857 linux-sysroot-suffix.h.
11858 * doc/install.texi (Prerequisites): Require make 3.80.
11859 * doc/sourcebuild.texi (Front End Directory): Document new
11861 * Makefile.in (generated_files): New variable.
11862 (ALL_HOST_OBJS): New variable.
11863 ($(ALL_HOST_OBJS)): New target.
11865 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
11867 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
11868 (remap_block): Call id->transform_lang_insert_block instead
11870 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
11871 Set id.transform_lang_insert_block to NULL.
11872 (clone_body): Move to cp/optimize.c
11873 * tree-inline.h (struct copy_body_data): Change
11874 transform_lang_insert_block to function pointer.
11875 (copy_generic_body, copy_decl_no_change): Export.
11876 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
11877 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
11878 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
11880 * c-tree.h (insert_block): Kill.
11881 * c-decl.c (insert_block): Kill.
11883 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
11885 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11886 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11887 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
11889 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
11890 argument, call {push,pop}_function_context from here.
11891 * c-parser.c: Use c_{push,pop}_function_context.
11893 * function.c (push_function_context_to): Move meat ...
11894 (push_function_context): ... here. Simplify.
11895 * function.c (pop_function_context_from): Move meat ...
11896 (pop_function_context): ... here. Simplify.
11897 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
11899 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11900 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11901 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
11902 * tree.h (push_function_context_to, pop_function_context_from): Remove.
11904 2008-04-03 Ben Elliston <bje@au.ibm.com>
11906 * expmed.c (extract_force_align_mem_bit_field): Remove.
11908 2008-04-03 Richard Guenther <rguenther@suse.de>
11910 PR middle-end/35800
11911 * expr.h (try_casesi): Adjust prototype.
11912 * expr.c (try_casesi): Take fallback label as extra parameter.
11913 Use that for gen_casesi if default_label is NULL.
11914 * stmt.c (expand_case): Pass fallback label to try_casesi,
11915 make sure to fill gaps with a fallback label if default_label
11918 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
11921 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
11923 2008-04-03 Ben Elliston <bje@au.ibm.com>
11925 * expmed.c (extract_split_bit_field): Remove if (0) code.
11926 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
11927 (do_ds_constraint): Likewise.
11929 2008-04-02 Joseph Myers <joseph@codesourcery.com>
11931 * doc/cppopts.texi (-dU): Document.
11932 * c-common.h (flag_dump_macros): Update comment.
11933 * c-opts.c (handle_OPT_d): Handle -dU.
11934 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
11935 dump_queued_macros, cb_used_define, cb_used_undef): New.
11936 (init_pp_output): Handle -dU.
11937 (cb_line_change): Call dump_queued_macros.
11938 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
11940 2008-04-02 Anatoly Sokolov <aesok@post.ru>
11942 * config/avr/predicates.md (io_address_operand): New predicate.
11943 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
11944 * config/avr/avr.c (avr_io_address_p): Remove function.
11945 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
11946 'avr_io_address_p' function.
11947 (out_movhi_r_mr): (Ditto.).
11948 (out_movqi_mr_r): (Ditto.).
11949 (out_movhi_mr_r): (Ditto.).
11950 (avr_address_cost): (Ditto.).
11952 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
11954 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
11955 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
11956 in 32bit mode when XMM registers are available to avoid store
11958 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
11959 corresponding post-reload splitters.
11961 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
11963 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
11964 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
11965 __builtin_ia32_roundss.
11966 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
11967 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
11968 __builtin_ia32_roundss.
11969 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
11970 IX86_BUILTIN_SHUFPD here.
11972 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
11974 * config/i386/i386.md (plogic): New.
11975 (plogicprefix): Likewise.
11977 * config/i386/mmx.md (mmx_<code><mode>3): New.
11978 (mmx_and<mode>3): Removed.
11979 (mmx_ior<mode>3): Likewise.
11980 (mmx_xor<mode>3): Likewise.
11982 * config/i386/sse.md (<code><mode>3): New.
11983 (*<code><mode>3): Likewise.
11984 (*<code><mode>3): Likewise.
11985 (<code><mode>3): Likewise.
11986 (*sse_<code><mode>3): Likewise.
11987 (*sse2_<code><mode>3): Likewise.
11988 (<code>tf3): Likewise.
11989 (*<code>tf3): Likewise.
11990 (and<mode>3): Likewise.
11991 (*and<mode>3): Likewise.
11992 (ior<mode>3): Removed.
11993 (*ior<mode>3): Likewise.
11994 (xor<mode>3): Likewise.
11995 (*xor<mode>3): Likewise.
11996 (*and<mode>3): Likewise.
11997 (*ior<mode>3): Likewise.
11998 (*xor<mode>3): Likewise.
11999 (and<mode>3): Likewise.
12000 (*sse_and<mode>3): Likewise.
12001 (*sse2_and<mode>3): Likewise.
12002 (andtf3): Likewise.
12003 (*andtf3): Likewise.
12004 (ior<mode>3): Likewise.
12005 (*sse_ior<mode>3): Likewise.
12006 (*sse2_ior<mode>3): Likewise.
12007 (iortf3): Likewise.
12008 (*iortf3): Likewise.
12009 (xor<mode>3): Likewise.
12010 (*sse_xor<mode>3): Likewise.
12011 (*sse2_xor<mode>3): Likewise.
12012 (xortf3): Likewise.
12013 (*xortf3): Likewise.
12015 2008-04-02 Richard Guenther <rguenther@suse.de>
12017 PR tree-optimization/14495
12018 PR tree-optimization/34793
12019 * tree-vrp.c (struct switch_update): New structure.
12020 (to_remove_edges, to_update_switch_stmts): New VECs.
12021 (simplify_switch_using_ranges): New function. Remove not taken
12022 case labels and edges.
12023 (simplify_stmt_using_ranges): Call it.
12024 (identify_jump_threads): Mark edges we have queued for removal
12025 so we don't thread them.
12026 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
12028 * tree-cfg.c (group_case_labels): Deal with missing default label.
12029 (tree_verify_flow_info): Allow missing default label.
12030 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
12031 (emit_case_nodes): Likewise.
12032 (expand_case): Do not rely on the default label to be present.
12033 * expr.c (try_casesi): Deal with NULL default_label.
12034 (do_tablejump): Likewise.
12036 2008-04-02 Richard Guenther <rguenther@suse.de>
12038 PR tree-optimization/14495
12039 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
12040 SWITCH_EXPR here ...
12041 (vrp_visit_switch_stmt): ... but here (new function).
12042 (find_case_label_index): New helper function.
12043 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
12045 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
12047 * fwprop.c: Fix ISO-C99ism.
12049 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
12052 * Makefile.in (objdir): Set it here.
12053 * configure.ac: Not here. Find dynamic linker characteristics.
12054 * exec-tool.in: Use them.
12055 * aclocal.m4: Regenerate.
12056 * configure: Regenerate.
12058 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
12060 * expr.c (expand_var): Delete it.
12061 * expr.h (expand_var): Delete prototype.
12062 * function.c (expand_function_start): Use expand_decl instead.
12063 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
12066 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
12068 PR rtl-optimization/35542
12069 * fwprop.c (forward_propagate_and_simplify): Replace
12070 loc_reg_mentioned_in_p with reg_mentioned_p.
12072 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
12074 PR rtl-optimization/35281
12075 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
12076 (propagate_rtx_1): Handle PR_HANDLE_MEM.
12077 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
12078 (varying_mem_p): Move above propagate_rtx.
12079 (all_uses_available_at): Do not check MEMs.
12081 2008-04-02 Rafael Espindola <espindola@google.com>
12083 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
12084 (register_edge_assert_for_2): Split the cond argument.
12085 (register_edge_assert_for_1): Adjust for the change in
12086 register_edge_assert_for_2.
12087 (register_edge_assert_for): Split the cond argument.
12088 (find_switch_asserts): Adjust for the change in
12089 register_edge_assert_for.
12091 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
12093 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
12094 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
12095 offsets for 64-bit mingw.
12096 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
12097 abi for x86_64-pc-mingw.
12099 2008-04-02 Richard Guenther <rguenther@suse.de>
12101 * tree-vrp.c (extract_range_from_assert): Make sure to not
12102 produce range min/max with TREE_OVERFOW set.
12103 If merging a anti-range and a range keep the anti-range if
12104 the range covers all values of the type.
12105 (register_edge_assert_for_2): Only allow sign-changing
12106 conversions in detecting canonical range checks. Also
12107 register an assert for the unsigned name if useful.
12109 PR tree-optimization/35787
12110 * tree-vrp.c (vrp_val_max): New function.
12111 (vrp_val_min): Likewise.
12112 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
12113 (vrp_val_is_min): Likewise.
12114 (supports_overflow_infinity): Use vrp_val_{min,max}.
12115 (negative_overflow_infinity): Likewise.
12116 (positive_overflow_infinity): Likewise.
12117 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
12118 (is_positive_overflow_infinity): Likewise.
12119 (is_overflow_infinity): Likewise.
12120 (avoid_overflow_infinity): Use vrp_val_{min,max} and
12121 vrp_val_is_{min,max}.
12122 (set_and_canonicalize_value_range): Canonicalize anti-ranges
12123 to ranges if possible. Avoid empty ranges.
12125 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12127 PR middle-end/35705
12128 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
12129 the expression is a function address.
12131 2008-04-01 George Helffrich <george@gcc.gnu.org>
12133 PR fortran/35154, fortran/23057
12134 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
12135 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
12136 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
12137 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
12139 (dbxout_syms): Check for COMMON-based symbol and wrap in
12140 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
12141 in bracket for efficiency.
12143 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
12144 using DW_TAG_common_block + member offset.
12145 (add_pubname_string): New function.
12146 (dw_expand_expr): New function to find block name and offset for
12148 (common_check): New function to check whether symbol in Fortran COMMON.
12149 (gen_variable_die): If COMMON, use DW_TAG_common_block.
12151 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
12154 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
12156 2008-04-02 Ben Elliston <bje@au.ibm.com>
12158 * config/v850/v850.md (casesi): Remove if (0) code.
12159 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12160 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
12162 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
12164 * config/i386/i386.md (rex64suffix): New mode attribute.
12165 (floathi<mode>2): Disable expander for SSE math.
12166 (*floathi<mode>2_1): New insn insn_and_split pattern.
12167 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
12168 corresponding post-reload splitters.
12169 (*floathi<mode>2_i387): New macroized insn pattern.
12170 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
12171 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
12172 insn_and_split pattern.
12173 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
12174 New macroized instruction patterns and corresponding post-reload
12176 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
12177 and corresponding post-reload splitters.
12178 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
12179 New macroized instruction patterns.
12180 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
12181 macroized instruction patterns and corresponding post-reload splitters.
12182 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
12183 corresponding post-reload splitters.
12184 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
12185 New macroized instruction patterns.
12186 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
12187 corresponding post-reload splitters.
12188 (*floatsi<mode>2_i387): New macroized instruction patterns.
12190 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
12192 * config/i386/i386.md (smaxmin): New.
12193 (umaxmin): Likewise.
12194 (maxminiprefix): Likewise.
12195 (maxminfprefix): Likewise.
12196 (<code><mode>3): Likewise.
12197 (smin<mode>3): Removed.
12198 (smax<mode>3): Likewise.
12200 * config/i386/mmx.md (mmx_<code>v2sf3): New.
12201 (mmx_<code>v4hi3): Likewise.
12202 (mmx_<code>v8qi3): Likewise.
12203 (mmx_smaxv2sf3): Removed.
12204 (mmx_sminv2sf3): Likewise.
12205 (mmx_umaxv8qi3): Likewise.
12206 (mmx_smaxv4hi3): Likewise.
12207 (mmx_uminv8qi3): Likewise.
12208 (mmx_sminv4hi3): Likewise.
12210 * config/i386/sse.md (<addsub><mode>3): New.
12211 (*<addsub><mode>3): Likewise.
12212 (<sse>_vm<addsub><mode>3): Likewise.
12213 (<maxmin><mode>3): Likewise.
12214 (*<maxmin><mode>3_finite): Likewise.
12215 (*<maxmin><mode>3): Likewise.
12216 (<sse>_vm<maxmin><mode>3): Likewise.
12217 (sse3_h<addsub>v4sf3): Likewise.
12218 (sse3_h<addsub>v2df3): Likewise.
12219 (<maxmin>v16qi3): Likewise.
12220 (*<maxmin>v16qi3): Likewise.
12221 (<maxmin>v8hi3): Likewise.
12222 (*<maxmin>v8hi3): Likewise.
12223 (*sse4_1_<maxmin><mode>3): Likewise.
12224 (*sse4_1_<maxmin><mode>3): Likewise.
12225 (add<mode>3): Removed.
12226 (*add<mode>3): Likewise.
12227 (<sse>_vmadd<mode>3): Likewise.
12228 (sub<mode>3): Likewise.
12229 (*sub<mode>3): Likewise.
12230 (<sse>_vmsub<mode>3): Likewise.
12231 (smin<mode>3): Likewise.
12232 (*smin<mode>3_finite): Likewise.
12233 (*smin<mode>3): Likewise.
12234 (<sse>_vmsmin<mode>3): Likewise.
12235 (smax<mode>3): Likewise.
12236 (*smax<mode>3_finite): Likewise.
12237 (*smax<mode>3): Likewise.
12238 (<sse>_vmsmax<mode>3): Likewise.
12239 (sse3_haddv4sf3): Likewise.
12240 (sse3_haddv2df3): Likewise.
12241 (sse3_hsubv4sf3): Likewise.
12242 (sse3_hsubv2df3): Likewise.
12243 (umaxv16qi3): Likewise.
12244 (*umaxv16qi3): Likewise.
12245 (smaxv8hi3): Likewise.
12246 (*smaxv8hi3): Likewise.
12247 (*sse4_1_smax<mode>3): Likewise.
12248 (*sse4_1_umax<mode>3): Likewise.
12249 (uminv16qi3): Likewise.
12250 (*uminv16qi3): Likewise.
12251 (sminv8hi3): Likewise.
12252 (*sminv8hi3): Likewise.
12253 (*sse4_1_smin<mode>3): Likewise.
12254 (*sse4_1_umin<mode>3): Likewise.
12256 2008-04-01 Rafael Espindola <espindola@google.com>
12258 * tree-cfg.c (verify_expr): remove in_phi.
12259 (verify_stmt): Don't call walk_tree with verify_expr. Use
12260 is_gimple_min_invariant instead of is_gimple_val.
12262 2008-04-01 Joseph Myers <joseph@codesourcery.com>
12264 * doc/include/gpl_v3.texi: Update for manpage generation.
12265 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
12267 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
12268 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
12269 gpl_v3.texi instead of gpl.texi.
12272 2008-04-01 Jakub Jelinek <jakub@redhat.com>
12275 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
12277 2008-04-01 Rafael Espindola <espindola@google.com>
12279 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
12280 (extract_code_and_val_from_cond): Use
12281 extract_code_and_val_from_cond_with_ops.
12283 2008-04-01 Jan Hubicka <jh@suse.cz>
12285 * function.c (free_after_compilation): Free epilogue_delay_list.
12286 (prepare_function_start): Assert that previous compilation was freed.
12288 2008-04-01 Jan Hubicka <jh@suse.cz>
12289 Jim Wilson <wilson@tuliptree.org>
12290 Andreas Tobler <andreast@gcc.gnu.org>
12292 PR middle-end/35781
12293 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
12294 rtl.emit instead cfun->emit.
12295 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
12296 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
12298 2008-04-01 Ben Elliston <bje@au.ibm.com>
12300 * doc/c-tree.texi (Function Basics): Fix grammatical error.
12302 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
12304 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
12306 (fprofile-use): Add var flag_profile_use
12307 * coverage.c (coverage_begin_output): Do not open a gcno file for
12308 output only if -ftest-coverage is set.
12309 Do not add getpwd() to gcda file path.
12310 (build_gcov_info): Check the new flag
12311 flag_profile_datafile_relative_path.
12312 (coverage_init): Use profile_data_prefix.
12313 Read profile counter only if flag_profile_use is set.
12314 * opts.c (common_handle_option): New option fprofile-use=,
12315 fprofile-dir=, fprofile-generate=.
12316 * toplev.c (profile_data_prefix): New variable definition.
12317 * toplev.h (profile_data_prefix): New declaration.
12318 * doc/invoke.tex (Option Summary, Optimization Options):
12321 2008-03-31 James E. Wilson <wilson@tuliptree.org>
12323 * varasm.c (output_constant_pool_1): In LABEL_REF check,
12324 use tmp consistently.
12327 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
12328 * config/ia64/ia64.c (rtx_needs_barrier): Handle
12329 UNSPEC_FR_RECIP_APPROX_RES.
12330 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
12332 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
12335 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
12337 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
12339 PR middle-end/30186
12340 * fold-const.c (fold_indirect_ref_1): Support accessing non first
12341 element of the vector via a pointer.
12343 2008-03-31 Ian Lance Taylor <iant@google.com>
12345 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
12347 2008-03-31 Jan Hubicka <jh@suse.cz>
12349 * builtins.c (expand_builtin_setjmp_receiver): Update call of
12350 get_arg_pointer_save_area.
12351 * expr.c (init_expr): Just clear out rtl.expr.
12352 * function.c (free_after_compilation): Clear out whole RTL structure.
12353 (get_func_frame_size): Merge into ...
12354 (get_frame_size): ... this one.
12355 (assign_stack_local_1): Merge into ...
12356 (assign_stack_local): ... this one.
12357 (expand_function_end): Update call of get_arg_pointer_save_area.
12358 (get_art_pointer_save_area): Remove cfun argument.
12359 * function.h (emit_status): regno_pointer_align does not need length
12360 attribute. Move x_regno_reg_rtx to ...
12361 (regno_reg_rtx): ... new global array.
12362 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
12363 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
12364 apply_args_value, forced_labels, stack_pointer_delta):
12366 (struct varasm_status): Move here from varasm.c
12367 (struct rtl_data): New. Move here some fields from struct function.
12368 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
12369 frame_offset, stack_check_probe_note, arg_pointer_save_area,
12370 used_temp_slots avail_temp_slots, temp_slot_level,
12371 nonlocal_goto_handler_labels): Update accesstors.
12372 (rtl): New global variable.
12373 (struct function): Move some fileds to rtl_data.
12374 (get_arg_pointer_save_area): Update prototype.
12375 * emit-rtl.c (rtl): Declare.
12376 (regno_reg_rtx): Declare.
12377 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
12379 (gen_reg_rtx): Update.
12380 (init_virtual_regs): Do not tate emit_status argument.
12381 (init_emit): Do not allocate emit.
12382 * varasm.c (varasm_statuc): Move to function.h.
12383 (n_deferred_constatns): Update accestor.
12384 (init_varasm_status): Do not allocate varasm_status.
12385 (force_const_mem, get_pool_size, output_constant_pool): Update.
12386 * stmt.c (force_label_rtx): Do not use x_ prefixes.
12387 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
12389 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
12391 PR rtl-optimization/35729
12392 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
12395 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
12398 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
12399 load/store if memory is unaligned.
12400 (*movti_rex64): Likewise.
12402 * config/i386/predicates.md (misaligned_operand): New.
12404 2008-03-31 Andrew Pinski <pinskia@gmail.com>
12407 * tree-ssa-phiopt.c (conditional_replacement): Return early for
12410 2008-03-31 Jan Beulich <jbeulich@novell.com>
12412 * config/ia64/constraints.md: Add 'j' constraint.
12413 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
12414 (movdi_internal): Likewise.
12416 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
12419 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
12421 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
12424 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
12425 proper error message for the third argument on blendpd and
12428 * config/i386/sse.md (blendbits): New.
12429 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
12431 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
12433 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
12435 2008-03-30 Richard Guenther <rguenther@suse.de>
12437 PR middle-end/31023
12438 * fold-const.c (fold_sign_changed_comparison): Do leave
12439 conversions to base-types alone.
12441 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
12443 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
12444 the link register if one altivec register is be saved.
12446 2008-03-30 Ben Elliston <bje@au.ibm.com>
12448 * final.c (final_scan_insn): Remove if (0) code.
12450 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
12452 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
12454 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
12456 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
12457 of V4SFmode to ix86_binary_operator_ok.
12459 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
12461 * config/i386/i386.c (override_options): Initialize
12462 ix86_veclib_handler to ix86_veclibabi_svml when
12463 -mveclibabi=svml is used.
12464 (ix86_veclibabi_svml): New function for SVML ABI style
12465 vectorization support.
12466 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
12468 2008-03-28 Rafael Espindola <espindola@google.com>
12470 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
12471 (tree_binary_nonnegative_warnv_p): Make it public.
12472 (tree_single_nonnegative_warnv_p): Make it public.
12473 (tree_invalid_nonnegative_warnv_p): Make it public.
12474 (tree_unary_nonzero_warnv_p): Make it public.
12475 (tree_binary_nonzero_warnv_p): Make it public
12476 (tree_single_nonzero_warnv_p): Make it public.
12477 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
12478 (extract_range_from_binary_expr): Split the expr argument.
12479 (extract_range_from_unary_expr): Split the expr argument.
12480 (extract_range_from_comparison): Split the expr argument.
12481 (extract_range_from_expr): Use the new aux functions.
12482 (vrp_evaluate_conditional_warnv): Use
12483 vrp_evaluate_conditional_warnv_with_ops.
12484 * tree.h (tree_unary_nonzero_warnv_p): Declare.
12485 (tree_binary_nonzero_warnv_p): Declare.
12486 (tree_single_nonzero_warnv_p): Declare.
12487 (tree_expr_nonzero_warnv_p): Declare.
12488 (tree_unary_nonnegative_warnv_p): Declare.
12489 (tree_binary_nonnegative_warnv_p): Declare.
12490 (tree_single_nonnegative_warnv_p): Declare.
12491 (tree_invalid_nonnegative_warnv_p): Declare.
12493 2008-03-28 Richard Guenther <rguenther@suse.de>
12495 PR tree-optimization/30317
12496 PR tree-optimization/30911
12497 PR tree-optimization/34793
12498 * tree-vrp.c (set_and_canonicalize_value_range): New function.
12499 (struct assert_locus_d): New member EXPR.
12500 (register_new_assert_for): Add EXPR parameter to support
12501 ASSERT_EXPR <name, expr OP limit>.
12502 (register_edge_assert_for_1): Adjust callers.
12503 (find_assert_locations): Likewise.
12504 (process_assert_insertions_for): Build condition from expression.
12505 (extract_range_from_assert): Handle ASSERT_EXPRs
12506 of the form ASSERT_EXPR <name, expr OP limit>.
12507 (register_edge_assert_for_2): New helper registering
12508 asserts for comparisons. Recognize range tests of the form
12509 (unsigned)i - CST1 OP CST2.
12510 (register_edge_assert_for_1): Use it.
12511 (register_edge_assert_for): Likewise.
12512 (needs_overflow_infinity): Integer sub-types
12513 do not need overflow infinities.
12514 (vrp_val_is_max): The extreme values of integer sub-types
12515 are those of the base type.
12516 (vrp_val_is_min): Likewise.
12517 * tree.def (ASSERT_EXPR): Document extra allowed conditional
12520 2008-03-28 Nick Clifton <nickc@redhat.com>
12523 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
12524 Return GENERAL_REGS for stack adjustment reloads.
12526 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
12529 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
12530 const_vector when all the vectors are constant.
12532 2008-03-27 Bob Wilson <bob.wilson@acm.org>
12534 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
12536 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
12537 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
12539 (s<code>_sf): Use new scc_sf attribute for opcode names.
12541 2008-03-27 Tom Tromey <tromey@redhat.com>
12543 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
12544 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
12545 config/spu/t-spu-elf, config/i386/t-interix,
12546 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
12547 config/i386/x-darwin, config/i386/x-mingw32,
12548 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
12549 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
12550 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
12551 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
12552 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
12553 config/rs6000/x-darwin, config/rs6000/t-rs6000,
12554 config/score/t-score-elf, config/arm/t-strongarm-pe,
12555 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
12556 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
12557 Revert automatic dependency patch.
12559 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
12562 * config/i386/i386.c (ix86_function_arg_boundary): Align
12563 decimal floating point to its natural boundary.
12565 2008-03-27 Richard Guenther <rguenther@suse.de>
12567 PR middle-end/35716
12568 * fold-const.c (fold_comparison): Restrict distinct decl
12569 comparison folding to VAR_DECLs and PARM_DECLs. Do not
12570 solely rely on operand_equal_p.
12572 2008-03-27 Richard Guenther <rguenther@suse.de>
12575 * c-common.c (handle_weak_attribute): Reject combination of
12578 2008-03-27 Richard Guenther <rguenther@suse.de>
12580 PR tree-optimization/32810
12581 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
12582 conversions from DECL_INITIAL.
12583 (fold_const_aggregate_ref): Likewise from constructor elements.
12585 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
12587 * tree-affine.h (aff_combination_expand): Declare.
12588 (get_inner_reference_aff): Likewise.
12589 * tree-affine.c (aff_combination_expand): Split out from
12590 tree_to_aff_combination_expand.
12591 (get_inner_reference_aff): New function.
12592 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
12593 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
12594 (struct lim_aux_data): sm_done field removed.
12595 (mem_ref_loc_p, mem_ref_locs_p): New types.
12596 (struct mem_ref): Added id, stored, accesses_in_loop,
12597 indep_loop, dep_loop, indep_ref, dep_ref fields.
12598 Removed is_stored, locs and next fields.
12599 (memory_accesses): New variable.
12600 (movement_possibility): Do not allow moving statements
12601 that store to memory.
12602 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
12604 (determine_max_movement): For statements with memory references,
12605 find the outermost loop in that the reference is independent.
12606 (move_computations_stmt): Mark the virtual operands for renaming.
12607 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
12608 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
12609 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
12610 add_vop_ref_mapping, create_vop_ref_mapping_loop,
12611 create_vop_ref_mapping, analyze_memory_references,
12612 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
12613 get_all_locs_in_loop, ref_always_accessed_p,
12614 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
12615 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
12616 store_motion_loop, store_motion): New functions.
12617 (struct vop_to_refs_elt): New type.
12618 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
12619 memref_hash, memref_eq, hoist_memory_references): Rewritten.
12620 (schedule_sm): Replaced by...
12621 (execute_sm): ... this.
12622 (determine_lsm_ref, hoist_memory_references,
12623 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
12624 find_more_ref_vops, free_mem_ref, free_mem_refs,
12625 determine_lsm_loop, determine_lsm): Removed.
12626 (tree_ssa_lim_finalize): Free data structures used by store motion.
12627 (tree_ssa_lim): Call analyze_memory_references. Use
12628 store_motion instead of determine_lsm.
12630 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
12632 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
12633 rename tmake_file to m68hc11/t-m68hc11.
12634 (mcore): Set inhibit_libc to true.
12635 * config.host (alpha*-dec-*vms*): Set extra_programs.
12636 (interix3*): Don't use host_xmake_file.
12637 * configure.ac: Let config.gcc override inhibit_libc.
12638 * configure: Regenerate.
12640 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
12641 * config/t-openbsd-thread: Remove commented out lines.
12643 * config/x-interix: Remove.
12645 * config/m68hc11/t-m68hc11-gas: Rename to...
12646 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
12648 * config/mcore/t-mcore: Remove T_CFLAGS.
12649 * config/mcore/t-mcore-pe: Likewise.
12651 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
12653 * configure.ac: Replace custom __GNU_SOURCE test with
12654 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
12655 * aclocal.m4: Regenerate.
12656 * configure: Regenerate.
12657 * config.in: Regenerate.
12659 2008-03-27 Richard Guenther <rguenther@suse.de>
12661 * fold-const.c (target.h): Include.
12662 (fold_comparison): Fold comparison of addresses of decls
12663 that bind locally or of constants. Consolidate address folding code.
12664 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
12665 results from fold_binary_to_constant.
12666 (compare_values_warnv): Likewise.
12668 2008-03-27 Andrew Pinski <pinskia@gmail.com>
12670 PR middle-end/35429
12671 * fold-const.c (fold_truthop): Check for integeral types when folding
12672 a == 0 && b == 0 and a != 0 || b != 0 .
12674 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
12676 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
12678 2008-03-26 Andreas Schwab <schwab@suse.de>
12680 * doc/invoke.texi: Fix use of @item vs. @itemx.
12682 2008-03-26 Tom Tromey <tromey@redhat.com>
12684 * Makefile.in (build/gensupport.o, build/print-rtl.o,
12685 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
12686 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
12687 build/gencodes.o, build/genconditions.o, build/genconfig.o,
12688 build/genconstants.o, build/genemit.o, build/genextract.o,
12689 build/genflags.o, build/genmddeps.o, build/genopinit.o,
12690 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
12693 2008-03-26 Richard Guenther <rguenther@suse.de>
12696 2008-03-26 Richard Guenther <rguenther@suse.de>
12698 * fold-const.c (target.h): Include.
12699 (fold_comparison): Fold comparison of addresses of two decls
12700 that bind locally. Consolidate address folding code.
12702 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12704 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
12705 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
12706 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
12707 dconstsqrt2, dconstthird, dconste and/or dconst10.
12708 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
12709 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
12710 dconstsqrt2, dconste): Delete.
12711 (init_emit_once): Likewise. Simplify initializing dconstm1.
12713 * real.c (get_real_const): New.
12714 * real.h (dconst3, dconst10, dconstm2, dconstthird,
12715 dconstsqrt2, dconste): Delete.
12716 (real_value_const, get_real_const): New.
12718 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
12720 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
12722 * config/i386/i386.c (ix86_function_arg_boundary): Check
12723 BIGGEST_ALIGNMENT instead of 128.
12724 (setup_incoming_varargs_64): Likewise.
12726 2008-03-26 Tom Tromey <tromey@redhat.com>
12728 * Makefile.in (DEPFILES): Add missing '/'.
12730 2008-03-26 Richard Guenther <rguenther@suse.de>
12732 * fold-const.c (target.h): Include.
12733 (fold_comparison): Fold comparison of addresses of two decls
12734 that bind locally. Consolidate address folding code.
12736 2008-03-26 Nick Clifton <nickc@redhat.com>
12739 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
12740 not allow INT+INT as a legitimate addressing mode.
12742 2008-03-26 Richard Guenther <rguenther@suse.de>
12744 * tree-flow.h (widen_bitfield): Remove declaration.
12745 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
12746 (widen_bitfield): Remove function.
12747 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
12750 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
12753 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
12756 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
12758 PR rtl-optimization/35232
12759 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
12760 (forget_old_reloads_1, forget_marked_reloads): Don't clear
12761 reg_reloaded_call_part_clobbered here.
12762 (reload_regs_reach_end_p): New function.
12763 (reload_reg_rtx_for_input): New variable.
12764 (reload_reg_rtx_for_output): Likewise.
12765 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
12766 when reassigning a pseudo register. Load reloadreg from
12767 reload_reg_rtx_for_input, moving the mode and register
12769 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
12770 instead of the original when deciding whether an input reload
12771 would be a no-op or whether an output reload can be deleted.
12772 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
12773 when setting up new_spill_reg_store. Load it from
12774 reload_reg_rtx_for_output, moving the mode and register
12776 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
12777 instead of the original when deciding whether an output reload
12778 would be a no-op. Do the same when modifying insn notes.
12779 Use rtx_equal_p instead of == to compare the registers.
12780 (inherit_piecemeal_p): Take a mode and two register numbers
12782 (emit_reload_insns): Clear new_spill_reg_store for every hard
12783 register in the reload register. Remove spill registers
12784 from reg_reloaded_valid before considering whether to record
12785 inheritance information for them. Use reload_reg_rtx_for_output
12786 instead of reg_rtx when recording output reloads. Use
12787 reload_reg_rtx_for_input instead of reg_rtx when recording
12788 input reloads. Set or clear reg_reloaded_call_part_clobbered
12789 at the same time as setting reg_reloaded_valid.
12790 (delete_output_reload): Add a new_reload_reg parameter and use it
12791 instead of rld[j].reg_rtx.
12792 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
12795 2008-03-25 Tom Tromey <tromey@redhat.com>
12797 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
12798 (build/genattr.o): Likewise.
12799 (build/genattrtab.o): Likewise.
12800 (build/gencodes.o): Likewise.
12801 (build/genconfig.o): Likewise.
12802 (build/genconstants.o): Likewise.
12803 (build/genemit.o): Likewise.
12804 (build/genextract.o): Likewise.
12805 (build/genflags.o): Likewise.
12807 2008-03-25 Bob Wilson <bob.wilson@acm.org>
12809 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
12810 instead of size_int for integer types.
12811 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
12812 to match type of MINUS_EXPR.
12814 2008-03-25 Tom Tromey <tromey@redhat.com>
12816 * configure: Rebuilt.
12817 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
12820 2008-03-25 Tom Tromey <tromey@redhat.com>
12822 * config/x-solaris (host-solaris.o): Update.
12823 * config/x-linux (host-linux.o): Update.
12824 * config/x-hpux (host-hpux.o): Update.
12825 * config/x-darwin (host-darwin.o): Update.
12826 * config/v850/t-v850e (v850-c.o): Update.
12827 * config/v850/t-v850 (v850-c.o): Update.
12828 * config/t-vxworks (vxworks.o): Update.
12829 * config/t-sol2 (sol2-c.o, sol2.o): Update.
12830 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
12831 * config/spu/t-spu-elf (spu-c.o): Update.
12833 * config/sh/t-symbian (sh-c.o): Update.
12834 (symbian.o): Update.
12835 * config/sh/t-sh (sh-c.o): Update.
12836 * config/score/t-score-elf (score7.o, score3.o): Update.
12837 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
12838 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
12839 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
12840 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
12841 (rs6000.o): Remove.
12842 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
12843 * config/m32c/t-m32c (m32c-pragma.o): Update.
12844 * config/ia64/t-ia64 (ia64-c.o): Update.
12845 * config/i386/x-mingw32 (host-mingw32.o): Update.
12846 * config/i386/x-i386 (driver-i386.o): Update.
12847 * config/i386/x-darwin (host-i386-darwin.o): Update.
12848 * config/i386/x-cygwin (host-cygwin.o): Update.
12849 * config/i386/t-nwld (nwld.o): Update.
12850 * config/i386/t-netware (netware.o): Update.
12851 * config/i386/t-interix (winnt.o): Update.
12852 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
12853 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
12854 msformat-c.o): Update.
12855 * config/bfin/t-bfin-linux (generated_files): Add
12856 linux-sysroot-suffix.h.
12857 * config/arm/t-wince-pe (pe.o): Update.
12858 * config/arm/t-strongarm-pe (pe.o): Update.
12859 * config/arm/t-pe (pe.o): Update.
12860 * config/arm/t-arm (arm-c.o): Update.
12861 * doc/install.texi (Prerequisites): Require make 3.80.
12862 * Makefile.in: Remove .o targets.
12863 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
12864 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
12865 (simple_generated_h, simple_generated_c): Move earlier.
12866 (generated_files): New variable.
12867 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
12868 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
12869 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
12870 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
12871 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
12872 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
12873 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
12874 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
12875 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
12876 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
12877 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
12878 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
12880 (COMPILE.base, COMPILE): New variables.
12881 (%.o): New pattern rule.
12882 (ALL_HOST_OBJS): New variable.
12883 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
12884 (dummy-checksum.o, cc1-checksum.o): Remove.
12885 (DRIVER_SHLIB): New variable.
12886 (DRIVER_DEFINES): Use it.
12887 (gencondmd.c): Move out of build/.
12888 (s-conditions): Update.
12889 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
12890 (ALL_BUILD_OBJS): Likewise.
12891 (build/%.o): Use BUILDCOMPILE.
12892 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
12893 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
12894 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
12895 build/gencheck.o, build/gencodes.o, build/genconditions.o,
12896 build/genconfig.o, build/genconstants.o, build/genemit.o,
12897 build/genextract.o, build/genflags.o, build/genmddeps.o,
12898 build/genopinit.o, build/genoutput.o, build/genpeep.o,
12899 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
12900 build/gen-protos.o, build/scan.o, build/fix-header.o,
12901 build/scan-decls.o): Simplify.
12902 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
12903 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
12904 prefix.o, toplev.o): Reduce to variable setting.
12905 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
12906 ($(out_object_file), gcc-options.o): New targets.
12907 ($(ALL_HOST_OBJS)): New target. Include dependency files.
12908 * configure: Rebuilt.
12909 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
12910 * doc/sourcebuild.texi (Front End Directory): Document new variable.
12912 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
12914 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
12915 complain when we hit an error, return ERROR_MARK_NODE.
12917 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
12919 * config/sh/constraints.md (Pso, Psz): New constraints.
12920 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
12921 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
12923 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
12925 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
12926 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
12928 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
12930 * config/sh/sh.md (prefetch): Add condition for SH2A target.
12931 (prefetch_sh2a): New.
12933 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
12934 Naveen.H.S <naveen.hs@kpitcummins.com>
12936 * config/sh/constraints.md (I28): New constraint.
12937 * config/sh/sh.c (broken_move): Add support for movi20s.
12938 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
12940 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
12941 Jayant Sonar <Jayant.sonar@kpitcummins.com>
12942 Naveen.H.S <naveen.hs@kpitcummins.com>
12944 * config/sh/sh.c (SH_ATTRIBUTES): Define.
12945 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
12946 (print_operand): Handle resbank in %@ operand code.
12947 (sh_encode_section_info): New.
12948 (push_regs): Add conditions for resbank.
12949 (sh_expand_epilogue): Likewise.
12950 (sh_insert_attributes): Likewise.
12951 (sh_attribute_table): Likewise.
12952 (sh_handle_resbank_handler_attribute): New.
12953 (sh2a_handle_function_vector_handler_attribute): New.
12954 (sh2a_is_function_vector_call): New.
12955 (sh2a_get_function_vector_number): New.
12956 (sh2a_function_vector_p): New.
12957 (sh_cfun_resbank_handler_p): New.
12958 * config/sh/sh.md (calli): Emit jsr/n if possible.
12959 (calli_tbr_rel): New.
12960 (calli_pcrel): Emit jsr/n if possible.
12961 (return_i): Emit rts/n if possible.
12962 (call_valuei_tbr_rel): New.
12963 (call_valuei_pcrel): Add condition for SH2A target.
12964 (call_value): Likewise.
12965 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
12966 (sh2a_get_function_vector_number): Likewise.
12967 (sh2a_is_function_vector_call): Likewise.
12968 * doc/extend.texi: Document TBR relative addressing of SH2A.
12969 (resbank): Add description for SH2A.
12971 2008-03-24 Richard Guenther <rguenther@suse.de>
12974 * gimplify.c (gimplify_modify_expr): For frontend type-correct
12975 pointer assignments change conversions according to middle-end rules.
12976 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
12977 * configure.ac: Include type checking in yes.
12978 * configure: Regenerate.
12980 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12982 * diagnostic.c (diagnostic_count_diagnostic): Delete.
12983 (diagnostic_report_diagnostic): Update. Handle ICEs here.
12985 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
12987 * gthr-vxworks.h (UNUSED): Define.
12989 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
12991 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
12993 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
12995 * doc/extend.texi (Function Attributes): Add missing comma in the
12996 example of the "alloc_size" attribute.
12998 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
13001 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
13003 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13006 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
13009 * stor-layout.c (update_alignment_for_field): Set minimum alignment
13010 of the underlying type of a MS bitfield layout to the natural
13011 alignment of the type.
13013 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
13015 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
13016 to their natural alignment to avoid store forwarding stalls.
13018 2008-03-22 Richard Guenther <rguenther@suse.de>
13020 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
13021 For PHI nodes verify the address is invariant.
13022 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
13023 (get_symbol_constant_value): Use is_gimple_min_invariant.
13024 (maybe_fold_stmt_indirect): Likewise.
13026 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
13028 PR rtl-optimization/33927
13029 * Makefile.in (dse.o): Depend on $(TM_P_H).
13030 * expr.h (extract_low_bits): Declare.
13031 * expmed.c (extract_low_bits): New function.
13032 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
13033 * dse.c: Include tm_p.h.
13034 (find_shift_sequence): Remove the read_reg argument and return the
13035 read value. Emit the instructions instead of returning them.
13036 Iterate on new_mode rather than calculating it each time.
13037 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
13038 source to NEW_MODE and extract_low_bits to convert the shifted
13039 value to READ_MODE.
13040 (replace_read): Allow the load and store to have different mode
13041 classes. Use extract_low_bits when SHIFT == 0. Create the shift
13042 or extraction instructions before trying the replacement. Update
13043 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
13045 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
13047 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
13048 to their natural alignment to avoid store forwarding stalls.
13050 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
13053 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
13054 encouraging but not allowing gprs for input;
13055 change the input constraint to !f#r.
13056 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
13058 change the output constraint to !f#r.
13060 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
13063 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
13064 corresponding post-reload splitters.
13065 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
13066 when x87 FP math is selected.
13067 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
13068 New function prototype.
13069 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
13070 unreachable function to ease macroization of insn patterns.
13072 2008-03-21 Martin Jambor <mjambor@suse.cz>
13074 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
13075 reference dumps if ddr is NULL or dependence is unknown.
13077 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
13079 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
13080 unsigned extension into account.
13081 (ATOMIC_COMPARE_AND_SWAP): Likewise.
13082 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
13083 Do computations on a scratch register.
13085 2008-03-21 Richard Guenther <rguenther@suse.de>
13087 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
13088 Use is_gimple_min_invariant instead of TREE_INVARIANT.
13089 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
13090 * tree-ssa-dom.c (record_equality): Likewise.
13091 * tree-inline.c (copy_body_r): Likewise.
13092 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
13095 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
13097 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
13098 as 'delete_unused' argument.
13100 2008-03-20 Richard Guenther <rguenther@suse.de>
13102 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
13103 special casing of constant qualifiers.
13104 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
13105 care about them in general.
13106 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
13107 regardless of their type.
13108 (fold_stmt_r): Forcefully fold *& if we end up with that.
13110 2008-03-20 Paul Brook <paul@codesourcery.com>
13112 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
13113 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
13115 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
13117 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
13118 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
13120 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
13122 * common.opt (Wmudflap): New option.
13123 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
13124 (mx_register_decls): Likewise.
13125 (mudflap_finish_file): Likewise.
13126 * doc/invoke.texi: Document -Wno-mudflap.
13128 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
13130 * c-format.c (replace_format_name_to_system_name): New.
13131 (cmp_attribs): New.
13132 (convert_format_name_to_system_name): New.
13133 (decode_format_attr): Add use of convert_format_name_to_system_name.
13134 (format_types_orig): Add gnu_ prefix to names.
13135 (check_format_info_main): Special treating of \0 escaped names for
13136 supporting multi-character format specifiers as I32, I64.
13137 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
13138 (gnu_target_overrides_format_attributes): New.
13139 * c-format.h: Add structure target_ovr_attr to hold
13140 system specific formatter names.
13141 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
13142 msformat-c.o file to c_target_objs and cxx_target_objs.
13143 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
13144 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
13145 (TARGET_N_FORMAT_TYPES): New.
13146 * config/i386/msformat-c.c: New.
13147 * config/i386/t-cygming: Add build rule for msformat-c.o.
13148 * doc/extend.texi: Add new format names gnu_* and ms_* and
13150 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
13152 2008-03-20 Ira Rosen <irar@il.ibm.com>
13154 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
13155 optimizations turned on under -O3.
13156 (ftree-vectorize): Add that the flag is turned on with -O3.
13158 2008-03-20 Ben Elliston <bje@au.ibm.com>
13160 * regmove.c (try_auto_increment): Fix spelling error in comment.
13161 * final.c (final_scan_insn): Likewise.
13163 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
13166 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
13167 allocator preferences for "y" and "r" class registers.
13168 ("*mov<mode>_internal"): Ditto.
13169 ("*movv2sf_internal_rex64"): Ditto.
13170 ("*movv2sf_internal"): Ditto.
13172 2008-03-19 Michael Matz <matz@suse.de>
13174 PR middle-end/35616
13175 * calls.c (expand_call): Check overlap of arguments with call
13176 address for sibcalls.
13178 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
13181 * stor-layout.c (update_alignment_for_field): Set minimum alignment
13182 of the underlying type of a MS bitfield layout to the natural
13183 alignment of the type.
13185 2008-03-19 Jan Hubicka <jh@suse.cz>
13188 * toplev.c (decode_d_option): Handle all CPP flags.
13189 * tree-vrp.c: Update tree_pass descriptors.
13190 * regrename.c: Update tree_pass descriptors.
13191 * fwprop.c: Update tree_pass descriptors.
13192 * doc/invoke.texi: Remove documentation of dropped -d? flags.
13193 * tree-into-ssa.c: Update tree_pass descriptors.
13194 * tree-dump.c: Update tree_pass descriptors.
13195 * tree-complex.c: Update tree_pass descriptors.
13196 * tree-dump.h: Update tree_pass descriptors.
13197 * see.c: Update tree_pass descriptors.
13198 * cgraphbuild.c: Update tree_pass descriptors.
13199 * tracer.c: Update tree_pass descriptors.
13200 * tree-loop-distribution.c: Update tree_pass descriptors.
13201 * cgraph.c: Update tree_pass descriptors.
13202 * postreload-gcse.c: Update tree_pass descriptors.
13203 * postreload.c: Update tree_pass descriptors.
13204 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
13205 * tree-tailcall.c: Update tree_pass descriptors.
13206 * tree-pass.h (tree_opt_pass): Rename to ...
13207 (opt_pass) ... this one; add "type" field and remove letter field.
13208 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
13209 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
13210 all_lowering_passes): Update declaration.
13211 * ipa-cp.c: Update tree_pass descriptors.
13212 * final.c: Update tree_pass descriptors.
13213 * omp-low.c: Update tree_pass descriptors.
13214 * tree-ssa-dse.c: Update tree_pass descriptors.
13215 * ipa-reference.c: Update tree_pass descriptors.
13216 * tree-ssa-uncprop.c: Update tree_pass descriptors.
13217 * auto-inc-dec.c: Update tree_pass descriptors.
13218 * reorg.c: Update tree_pass descriptors.
13219 * cgraphunit.c: Update tree_pass descriptors.
13220 * tree-ssa-copyrename.c: Update tree_pass descriptors.
13221 * tree-ssa-ccp.c: Update tree_pass descriptors.
13222 * df-core.c: Update tree_pass descriptors.
13223 * mode-switching.c: Update tree_pass descriptors.
13224 * tree-nomudflap.c: Update tree_pass descriptors.
13225 * modulo-sched.c: Update tree_pass descriptors.
13226 * ipa-pure-const.c: Update tree_pass descriptors.
13227 * cse.c: Update tree_pass descriptors.
13228 * web.c: Update tree_pass descriptors.
13229 * tree-stdarg.c: Update tree_pass descriptors.
13230 * tree-ssa-math-opts.c: Update tree_pass descriptors.
13231 * tree-ssa-dom.c: Update tree_pass descriptors.
13232 * tree-nrv.c: Update tree_pass descriptors.
13233 * tree-ssa-alias.c: Update tree_pass descriptors.
13234 * loop-init.c: Update tree_pass descriptors.
13235 * gimple-low.c: Update tree_pass descriptors.
13236 * ipa-inline.c: Update tree_pass descriptors.
13237 * tree-ssa-sink.c: Update tree_pass descriptors.
13238 * global.c: Update tree_pass descriptors.
13239 * ifcvt.c: Update tree_pass descriptors.
13240 * jump.c: Update tree_pass descriptors.
13241 * predict.c: Update tree_pass descriptors.
13242 * tree-ssa-loop.c: Update tree_pass descriptors.
13243 * recog.c: Update tree_pass descriptors.
13244 * dse.c: Update tree_pass descriptors.
13245 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
13246 * tree-eh.c: Update tree_pass descriptors.
13247 * regmove.c: Update tree_pass descriptors.
13249 * function.c: Update tree_pass descriptors.
13250 * tree-vectorizer.c: Update tree_pass descriptors.
13251 * gcse.c: Update tree_pass descriptors.
13252 * ipa-type-escape.c: Update tree_pass descriptors.
13253 * tree-if-conv.c: Update tree_pass descriptors.
13254 * init-regs.c: Update tree_pass descriptors.
13255 * ipa.c: Update tree_pass descriptors.
13256 * tree-ssa-phiopt.c: Update tree_pass descriptors.
13257 * rtl-factoring.c: Update tree_pass descriptors.
13258 * lower-subreg.c: Update tree_pass descriptors.
13259 * bt-load.c: Update tree_pass descriptors.
13260 * tree-dfa.c: Update tree_pass descriptors.
13261 * except.c: Update tree_pass descriptors.
13262 * emit-rtl.c: Update tree_pass descriptors.
13263 * cfgexpand.c: Update tree_pass descriptors.
13264 * tree-cfgcleanup.c: Update tree_pass descriptors.
13265 * cfgcleanup.c: Update tree_pass descriptors.
13266 * tree-ssa-pre.c: Update tree_pass descriptors.
13267 * tree-sra.c: Update tree_pass descriptors.
13268 * tree-mudflap.c: Update tree_pass descriptors.
13269 * tree-ssa-copy.c: Update tree_pass descriptors.
13270 * cfglayout.c: Update tree_pass descriptors.
13271 * tree-ssa-forwprop.c: Update tree_pass descriptors.
13272 * tree-ssa-dce.c: Update tree_pass descriptors.
13273 * tree-ssa.c: Update tree_pass descriptors.
13274 * regclass.c: Update tree_pass descriptors.
13275 * integrate.c: Update tree_pass descriptors.
13276 * tree-optimize.c: Update tree_pass descriptors.
13277 * tree-ssa-phiprop.c: Update tree_pass descriptors.
13278 * tree-object-size.c: Update tree_pass descriptors.
13279 * combine.c: Update tree_pass descriptors.
13280 * tree-outof-ssa.c: Update tree_pass descriptors.
13281 * bb-reorder.c: Update tree_pass descriptors.
13282 * stack-ptr-mod.c: Update tree_pass descriptors.
13283 * var-tracking.c: Update tree_pass descriptors.
13284 * tree-profile.c: Update tree_pass descriptors.
13285 * tree-vect-generic.c: Update tree_pass descriptors.
13286 * reg-stack.c: Update tree_pass descriptors.
13287 * sched-rgn.c: Update tree_pass descriptors.
13288 * tree-ssa-structalias.c: Update tree_pass descriptors.
13289 * tree-cfg.c: Update tree_pass descriptors.
13290 * passes.c (current_pass): Update declaration.
13291 (finish_optimization_passes): Update.
13292 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
13293 (register_one_dump_file, register_dump_files_1, next_pass_1):
13295 (init_optimization_passes): Update handling of new types.
13296 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
13297 * ipa-struct-reorg.c: Update tree_pass descriptors.
13298 * tree-ssa-reassoc.c: Update tree_pass descriptors.
13299 * combine-stack-adj.c: Update tree_pass descriptors.
13300 * cfgrtl.c: Update tree_pass descriptors.
13301 * dce.c: Update tree_pass descriptors.
13302 * tree-ssanames.c: Update tree_pass descriptors.
13304 2008-03-19 Richard Guenther <rguenther@suse.de>
13306 PR middle-end/35609
13307 * tree-ssa.c (walk_data): New structure.
13308 (warn_uninitialized_var): If not always_executed warn with "maybe"
13310 (execute_early_warn_uninitialized): Compute post-dominators.
13311 Initialize always_executed before processing each basic block.
13313 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
13316 * config/i386/i386.c (x86_this_parameter): Calculate correct location
13317 of "this" pointer when "regparm = N" or "fastcall" is in effect.
13319 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13321 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
13323 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
13325 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
13327 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
13328 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
13329 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
13330 target after ignore has been set, and move there also the commputation
13331 of subtarget and original_target.
13332 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
13333 (LANG_HOOKS_INITIALIZER): Remove it.
13334 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
13336 2008-03-18 Richard Guenther <rguenther@suse.de>
13338 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
13339 found an expression with constants, note that in the VN for the lhs.
13340 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
13341 fold them to constants if possible. Run cleanup_cfg if done so.
13342 (execute_pre): Return todo.
13343 (do_pre): Likewise.
13344 (execute_fre): Likewise.
13345 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
13347 (get_prop_source_stmt): Look through pointer conversions.
13349 2008-03-18 Jan Hubicka <jh@suse.cz>
13351 * tree-pretty-print.c: Include predict.h.
13352 (dump_generic_node): Dump predictor.
13353 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
13354 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
13355 * gimple-low.c (lower_stmt): Likewise.
13356 * expr.c (expand_expr_real): Likewise.
13357 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
13359 (build_predict_expr, build_predict_expr): New.
13360 * predict.h (predictor_name, build_predict_expr): Update.
13361 * c-typeck.c (c_finish_bc_stmt): Add prediction.
13362 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
13363 * predict.def (PRED_CONTINUE): Update hitrate.
13364 * tree.def (PREDICT_EXPR): Define.
13365 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
13366 do not handle BIND_EXPR.
13367 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
13368 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
13369 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
13372 2008-03-18 Michael Matz <matz@suse.de>
13374 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
13376 2008-03-18 Richard Guenther <rguenther@suse.de>
13378 * tree-gimple.h (is_gimple_invariant_address): Declare.
13379 (is_gimple_constant): Likewise.
13380 * tree-gimple.c (is_gimple_constant): New function.
13381 (is_gimple_invariant_address): Likewise.
13382 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
13383 and is_gimple_invariant_address.
13384 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
13386 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
13387 an addressable base.
13389 2008-03-18 Jakub Jelinek <jakub@redhat.com>
13391 PR middle-end/35611
13392 * gimplify.c (gimplify_expr): Gimplify second operand of
13395 2008-03-17 Richard Guenther <rguenther@suse.de>
13397 PR tree-optimization/19637
13398 * fold-const.c (fold_unary): Remove restrictions of removing
13399 intermediate pointer-conversions (P2)(P1)P0.
13400 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
13401 conversion to void pointer.
13402 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
13404 2008-03-16 James E. Wilson <wilson@tuliptree.org>
13407 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
13408 emulated thread local variables.
13410 2008-03-16 Richard Guenther <rguenther@suse.de>
13412 PR middle-end/35607
13413 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
13414 expand TREE_INVARIANT operations that are not gimple invariant.
13416 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
13418 * doc/extend.texi (Alignment): Say that the ABI controls
13419 the __alignof__ for non-strict-alignment targets rather
13420 than being a recommendation.
13422 2008-03-15 Paul Brook <paul@codesourcery.com>
13424 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
13426 (arm_output_fn_unwind): Mark functions that can not be unwound.
13428 2008-03-15 Paul Brook <paul@codesourcery.com>
13430 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
13431 extension instructions.
13433 2008-03-15 Richard Guenther <rguenther@suse.de>
13435 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
13436 and fold constant aggregate refs.
13437 (fold_const_aggregate_ref): Handle string constants
13438 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
13439 (evaluate_stmt): Simplify now that ccp_fold folds constant
13442 2008-03-15 Paul Brook <paul@codesourcery.com>
13444 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
13445 (extzv): Use gen_extzv_t2.
13446 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
13448 2008-03-15 Richard Guenther <rguenther@suse.de>
13450 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
13451 (fold_const_aggregate_ref): Likewise.
13452 (get_value): Return NULL if we don't have any values.
13453 (ccp_finalize): Set const_val to NULL after freeing it.
13454 * tree-flow.h (get_symbol_constant_value): Declare.
13455 (fold_const_aggregate_ref): Likewise.
13456 * tree-ssa-sccvn.c (try_to_simplify): Use them.
13458 2008-03-15 Richard Guenther <rguenther@suse.de>
13460 PR middle-end/35593
13461 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
13462 to not produce negative array indices if not allowed. Add
13463 parameter to indicate that.
13464 (maybe_fold_offset_to_component_ref): Allow negative array
13465 indices only for the first member of a structure.
13466 (maybe_fold_offset_to_reference): Allow negative array indices.
13467 (maybe_fold_stmt_addition): Likewise.
13469 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
13470 Anatoly Sokolov <aesok@post.ru>
13472 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
13473 (avr_arch): Add ARCH_AVR6.
13474 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
13475 (initial_elimination_offset): Initialize and use 'avr_pc_size'
13476 instead of fixed value 2.
13477 (print_operand_address): Use gs() asm specifier instead of pm().
13478 (avr_assemble_integer): (Ditto.).
13479 (avr_output_addr_vec_elt): (Ditto.).
13480 (print_operand): Handle "!" code.
13481 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
13482 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
13483 (AVR_HAVE_EIJMP_EICALL): Define.
13484 (AVR_3_BYTE_PC): Redefine.
13485 (AVR_2_BYTE_PC): (Ditto.).
13486 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
13487 (LINK_SPEC): Add atmega2560 and atmega2561.
13488 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
13490 * config/avr/avr.md (call_insn): Use eicall instead of icall
13491 for 3 byte PC devices.
13492 (call_value_insn): (Ditto.).
13493 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
13494 (indirect_jump): Use only for for 2 byte PC devices.
13495 (*tablejump): (Ditto.).
13496 (*indirect_jump_avr6): Add insn.
13497 (*tablejump_rjmp): Don't use for 3 byte PC devices.
13498 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
13499 instead of ijmp for 3 byte PC devices.
13500 (__tablejump2__): (Ditto.).
13501 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
13502 (MULITLIB_DIRNAMES): (Ditto.).
13503 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
13505 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
13507 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
13508 "sse2_umulsidi3". Use V1DI mode for operand 0.
13509 ("mmx_psadbw"): Use V1DI mode for operand 0.
13510 * config/i386/i386-modes.def (V1SI): New vector mode.
13511 * config/i386/i386.c (struct builtin_description)
13512 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
13513 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
13514 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
13515 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
13516 v1di_ftype_v8qi_v8qi type.
13517 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
13519 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
13520 __builtin_ia32_pmuludq]: Fix the mode of return value.
13522 2008-03-15 Richard Guenther <rguenther@suse.de>
13524 PR middle-end/35595
13525 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
13528 2008-03-14 Bob Wilson <bob.wilson@acm.org>
13530 * doc/invoke.texi (Option Summary, Xtensa Options): Document
13531 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
13532 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
13533 unless TARGET_SERIALIZE_VOLATILE is enabled.
13534 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
13535 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
13536 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
13538 2008-03-14 Richard Guenther <rguenther@suse.de>
13540 PR tree-optimization/34172
13541 * tree-flow.h (refs_may_alias_p): Declare.
13542 (get_single_def_stmt): Likewise.
13543 (get_single_def_stmt_from_phi): Likewise.
13544 (get_single_def_stmt_with_phi): Likewise.
13545 * tree-dfa.c (refs_may_alias_p): New function.
13546 (get_single_def_stmt): Likewise.
13547 (get_single_def_stmt_from_phi): Likewise.
13548 (get_single_def_stmt_with_phi): Likewise.
13549 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
13550 (vn_reference_lookup_1): New helper function.
13551 (vn_reference_lookup): Walk the virtual use-def chain to
13552 continue searching for a match if the def does not alias the
13553 reference we are looking for.
13555 2008-03-14 David Edelsohn <edelsohn@gnu.org>
13557 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
13558 archive and Perzl. Update The Written Word listing.
13560 2008-03-14 Richard Guenther <rguenther@suse.de>
13562 PR tree-optimization/34043
13563 PR tree-optimization/33989
13564 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
13566 (bitmap_find_leader): Use extra argument to verify dominance
13567 relationship inside a basic-block.
13568 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
13569 (find_leader_in_sets): Adjust.
13570 (create_component_ref_by_pieces): Take extra argument for
13571 dominance check, handle lookup failures.
13572 (find_or_generate_expression): Likewise.
13573 (create_expression_by_pieces): Likewise.
13574 (insert_into_preds_of_block): Adjust.
13575 (create_value_expr_from): If asked for, verify all operands
13576 are in the blocks AVAIL_OUT set.
13577 (make_values_for_stmt): Check for SSA_NAMEs that are life
13578 over an abnormal edge.
13579 (compute_avail): Remove such check.
13580 (do_SCCVN_insertion): New function.
13581 (eliminate): If we do not find a leader suitable for replacement
13582 insert a replacement expression from SCCVN if available.
13583 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
13584 (struct vn_ssa_aux): Add needs_insertion flag.
13585 * tree-ssa-sccvn.c (may_insert): New global flag.
13586 (copy_reference_ops_from_ref): Value-number union member access
13587 based on its size, not type and member if insertion is allowed.
13588 (visit_reference_op_load): For a weak match from union type
13589 punning lookup a view-converted value and insert a SSA_NAME
13590 for that value if that is not found.
13591 (visit_use): Make dumps shorter. Do not disallow value numbering
13592 SSA_NAMEs that are life over an abnormal edge to constants.
13593 (free_scc_vn): Release inserted SSA_NAMEs.
13594 (run_scc_vn): New flag to specify whether insertion is allowed.
13595 Process SSA_NAMEs in forward order.
13596 * tree-ssa-loop-im.c (for_each_index): Handle invariant
13597 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
13598 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
13599 pointer type to/from integral types that do not change the
13600 precision to regular conversions.
13602 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
13604 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13605 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13606 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
13607 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
13608 input arguments and the mode of return value. Built-in functions
13609 that operate on whole 64-bit MMX register now use V1DI mode.
13611 2008-03-13 Alon Dayan <alond@il.ibm.com>
13612 Olga Golovanevsky <olga@il.ibm.com>
13614 PR tree-optimization/35041
13615 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
13616 to locate the right position in a statement.
13618 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
13622 * config/i386/xmmintrin.h: Change all static inline functions to
13623 extern inline and add __gnu_inline__ attribute.
13624 * config/i386/bmintrin.h: Ditto.
13625 * config/i386/smmintrin.h: Ditto.
13626 * config/i386/tmmintrin.h: Ditto.
13627 * config/i386/mmintrin-common.h: Ditto.
13628 * config/i386/ammintrin.h: Ditto.
13629 * config/i386/emmintrin.h: Ditto.
13630 * config/i386/pmmintrin.h: Ditto.
13631 * config/i386/mmintrin.h: Ditto.
13632 * config/i386/mm3dnow.h: Ditto.
13634 2008-03-13 Jakub Jelinek <jakub@redhat.com>
13636 PR middle-end/35185
13637 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
13638 (lower_omp_2): New function.
13639 (lower_omp_1, lower_omp): Rewritten.
13641 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
13644 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
13645 with the phrase "Microsoft Windows compilers".
13646 (Push/Pop Macro Pragmas): New subsection. Document
13647 #pragma push_macro and pragma pop_macro.
13649 2008-03-12 Paul Brook <paul@codesourcery.com>
13651 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
13653 2008-03-12 Paul Brook <paul@codesourcery.com>
13655 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
13656 (thumb2_alusi3_short): Exclude PLUS and MINUS.
13657 (thumb2_addsi_shortim): Rename ...
13658 (thumb2_addsi_short): ... to this. Allow register operands.
13659 (thumb2_subsi_short): New pattern.
13660 (thumb2_one_cmplsi2_short,
13661 thumb2_negsi2_short): New patterns and peepholes.
13663 2008-03-12 Paul Brook <paul@codesourcery.com>
13665 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
13667 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
13669 * config/i386/i386.md (int_cond): New code iterator.
13671 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
13672 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
13673 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
13674 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
13675 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
13676 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
13677 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
13678 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
13680 2008-03-12 Paul Brook <paul@codesourcery.com>
13682 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
13683 instead of {arm,thumb}_compute_save_reg_mask.
13684 (output_return_instruction): Ditto.
13685 (thumb_unexpanded_epilogue): Ditto.
13686 (thumb1_expand_prologue): Ditto.
13687 (thumb1_output_function_prologue): Ditto.
13688 (arm_set_return_address): Ditto.
13689 (thumb_set_return_address): Ditto.
13690 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
13691 regs to achieve stack alignment.
13692 (thumb1_compute_save_reg_mask): Fix compiler warning.
13693 (arm_output_epilogue): Use offsets->saved_regs_mask.
13694 Adjust stack pointer by poping call clobered registers.
13695 (arm_expand_prologue): Use offsets->saved_regs_mask.
13696 Adjust stack pointer by pushing extra registers.
13697 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
13699 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
13702 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
13703 conversion to the operands of a multiplication.
13705 2008-03-12 Richard Guenther <rguenther@suse.de>
13707 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
13708 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
13709 * timevar.def (TV_TREE_PHIPROP): Add.
13710 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
13711 pass description. Use TV_TREE_PHIPROP.
13712 * tree-ssa-forwprop.c: Remove phiprop code.
13714 2008-03-12 Jakub Jelinek <jakub@redhat.com>
13716 PR middle-end/35549
13717 * omp-low.c (maybe_lookup_decl): Constify first argument.
13718 (use_pointer_for_field): Change last argument from bool to
13719 omp_context *. Disallow shared copy-in/out in nested
13720 parallel if decl is shared in outer parallel too.
13721 (build_outer_var_ref, scan_sharing_clauses,
13722 lower_rec_input_clauses, lower_copyprivate_clauses,
13723 lower_send_clauses, lower_send_shared_vars): Adjust callers.
13725 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
13726 Ira Rosen <irar@il.ibm.com>
13728 * tree-vectorizer.c (free_stmt_vec_info): New function.
13729 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
13730 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
13731 * tree-vectorizer.h (free_stmt_vec_info): Declare.
13732 * tree-vect-transform.c (vectorizable_conversion): Free
13733 vec_oprnds0 if it was allocated.
13734 (vect_permute_store_chain): Remove unused VECs.
13735 (vectorizable_store): Free VECs that are allocated in the..
13737 (vect_transform_strided_load, vectorizable_load): Likewise.
13738 (vect_remove_stores): Simplify the code.
13739 (vect_transform_loop): Move code to vect_remove_stores().
13740 Call vect_remove_stores() and free_stmt_vec_info().
13742 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13744 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
13745 TARGET_HPUX. Revise comment.
13746 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
13747 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
13748 Use sr4 variant of `be' instruction when not generating PIC code.
13749 (attr_length_call): Adjust for above change.
13751 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
13753 * ipa-reference.c (static_execute): Remove module_statics_const and
13754 associated setting code.
13756 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
13759 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
13760 predicate for operand 1.
13761 (paritysi2_cmp): Use register_operand predicate for operand 2.
13762 Use earlyclobber modifier for operand 1. Remove support for
13764 (paritydi2_cmp): Use register_operand predicate for operand 3.
13765 Use earlyclobber modifier for operand 1. Remove support for
13768 2008-03-11 Paul Brook <paul@codesourcery.com>
13769 Vladimir Prus <vladimir@codesourcery.com>
13771 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
13772 (arm_compute_save_reg0_reg12_mask): Always
13773 check if register 11 must be saved. Always safe hard frame pointer
13774 when frame_pointer_needeed.
13775 (arm_compute_save_reg_mask): Save IP and PC
13776 only with apcs frames.
13777 (arm_output_epilogue): Adjust Thumb2 codepath to
13778 be also invoked and work for ARM non-apcs frames.
13779 (arm_expand_prologue): Don't bother saving IP
13780 for non-apcs frame, since it's not clobbered by
13781 prologue code. Implement non-apcs frame
13784 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
13786 PR rtl-optimization/35281
13787 * expr.c (convert_move): Use a new pseudo for the intermediate
13788 from_mode->word_mode result.
13790 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
13792 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
13793 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
13794 * toplev.c (compile_file): Don't call it.
13796 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
13798 PR middle-end/35526
13799 * expr.c (store_expr): Call emit_block_move if the mode
13800 of "temp" RTX is BLKmode.
13802 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
13803 Richard Guenther <rguenther@suse.de>
13805 PR tree-optimization/31358
13806 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
13807 the step with a NULL_TREE.
13808 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
13809 to sizetype if type is a pointer type.
13810 (add_candidate_1): Don't convert the base and step to
13811 the generic type if the orginal type is a pointer type.
13812 (add_iv_value_candidates): Use sizetype for the step
13813 if type is a pointer type.
13814 (cand_value_at): Likewise.
13815 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
13817 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
13818 Don't convert the tem affine to the type.
13819 (add_elt_to_tree): Use sizetype for the step if a pointer.
13820 Use POINTER_PLUS_EXPR for pointers.
13821 (aff_combination_to_tree): Use sizetype for the step if a
13824 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
13826 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
13827 Remove commutativity hint.
13829 2008-03-10 Jakub Jelinek <jakub@redhat.com>
13833 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
13834 errorneous type. Check that v is a VAR_DECL.
13836 PR middle-end/35099
13837 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
13839 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
13841 PR tree-optimization/35494
13842 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
13843 may be overriden at link and run time.
13845 2008-03-10 Richard Guenther <rguenther@suse.de>
13847 PR tree-optimization/34677
13848 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
13849 (poolify_tree): Likewise.
13850 (modify_expr_template): Likewise.
13851 (poolify_modify_stmt): Likewise.
13852 (insert_fake_stores): Handle all component-ref style stores
13853 in addition to INDIRECT_REF. Also handle complex types.
13854 Do not poolify the inserted load.
13855 (realify_fake_stores): Do not rebuild the tree but only
13856 make it a SSA_NAME copy.
13857 (init_pre): Remove initialzation of modify_expr_template.
13858 Do not allocate modify_expr_node_pool.
13859 (fini_pre): Do not free modify_expr_node_pool.
13861 2008-03-10 Paul Brook <paul@codesourcery.com>
13863 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
13864 to avoid conflicts.
13866 2008-03-10 Paul Brook <paul@codesourcery.com>
13867 Mark Shinwell <shinwell@codesourcery.com>
13869 * config/arm/cortex-r4.md: New.
13870 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
13872 * config/arm/arm.md: Include cortex-r4.md.
13873 (insn): Add smmls, sdiv and udiv values.
13874 (generic_sched): Don't use generic scheduling for Cortex-R4.
13875 (arm_issue_rate): New function.
13876 (TARGET_SCHED_ISSUE_RATE): Define.
13878 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
13880 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
13882 2008-03-10 Richard Guenther <rguenther@suse.de>
13884 * tree-ssa-pre.c (get_sccvn_value): Simplify.
13885 (compute_avail): Do not add stmt uses to AVAIL_OUT.
13887 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
13889 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
13890 Set default to true.
13892 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13894 * c.opt (Wsynth): Deprecate.
13895 * doc/invoke.texi (Option Summary, Warning Options): Document
13896 -Wno-format-contains-nul.
13898 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
13901 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
13902 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
13904 2008-03-09 Ira Rosen <irar@il.ibm.com>
13906 * config/rs6000/rs6000.c (builtin_description): Rename vector
13907 left shift operations.
13908 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
13909 (altivec_vsl<VI_char>): Rename to ...
13910 (ashl<mode>3): ... new name.
13911 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
13913 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
13915 2008-03-08 Richard Guenther <rguenther@suse.de>
13917 * coverage.h (tree_coverage_counter_addr): Declare.
13918 * coverage.c (tree_coverage_counter_addr): New function.
13919 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
13920 before using again.
13921 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
13922 (tree_gen_one_value_profiler): Likewise.
13923 (tree_gen_ic_profiler): Likewise.
13924 (tree_gen_average_profiler): Likewise.
13925 (tree_gen_ior_profiler): Likewise.
13927 2008-03-08 Richard Guenther <rguenther@suse.de>
13929 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
13930 (vn_binary_op_insert): Likewise.
13931 (vn_unary_op_lookup): Likewise.
13932 (vn_unary_op_insert): Likewise.
13933 (vn_nary_op_lookup): Declare.
13934 (vn_nary_op_insert): Likewise.
13935 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
13936 and binary hashes, use a single obstack for unary_op_pool
13937 and binary_op_pool.
13938 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
13939 a single struct vn_nary_op_s. Store tree code length and
13940 a variable number of operands.
13941 (struct vn_reference_op_struct): Remove unused op2.
13942 (vn_reference_op_eq): Do not compare op2.
13943 (vn_reference_op_compute_hash): Do not compute hash of op2.
13944 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
13945 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
13946 with vn_nary_op_compute_hash.
13947 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
13948 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
13950 (vn_unary_op_insert, vn_binary_op_insert): Replace with
13952 (visit_unary_op): Call nary functions.
13953 (visit_binary_op): Likewise.
13954 (process_scc): Adjust for struct vn_tables_s changes.
13955 (allocate_vn_table): Likewise.
13956 (free_vn_table): Likewise.
13957 * tree-vn.c (vn_add): Call nary functions.
13958 (vn_lookup): Likewise.
13960 2008-03-08 Jakub Jelinek <jakub@redhat.com>
13963 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
13964 wdst back after sync_compare_and_swapqhi_internal.
13966 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
13969 * config/i386/i386-modes.def (V1DI): New vector mode.
13970 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
13971 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
13972 (MMXMODE248): Ditto.
13973 (MMXMODE): Add V1DI mode.
13974 (mmxvecsize): Change DI mode to V1DI mode.
13975 ("mov<mode>): Use MMXMODEI8 mode iterator.
13976 ("*mov<mode>_internal_rex64"): Ditto.
13977 ("*mov<mode>_internal"): Ditto.
13978 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
13979 ("mmx_sub<mode>3"): Ditto.
13980 ("mmx_adddi3"): Remove insn pattern.
13981 ("mmx_subdi3"): Ditto.
13982 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
13983 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
13984 ("mmx_ashl<mode>3"): Ditto.
13985 ("mmx_lshrdi3"): Remove insn pattern.
13986 ("mmx_ashldi3"): Ditto.
13987 * config/i386/i386.c (classify_argument): Handle V1DImode.
13988 (function_arg_advance_32): Ditto.
13989 (function_arg_32): Ditto.
13990 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
13991 mmx_addv1di3 insn pattern.
13992 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
13993 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
13994 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
13995 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
13996 Remove definitions of built-in functions.
13997 (V1DI_type_node): New node.
13998 (v1di_ftype_v1di_int): Ditto.
13999 (v1di_ftype_v1di_v1di): Ditto.
14000 (v2si_ftype_v2si_si): Ditto.
14001 (v4hi_ftype_v4hi_di): Remove node.
14002 (v2si_ftype_v2si_di): Ditto.
14003 (ix86_init_mmx_sse_builtins): Handle V1DImode.
14004 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
14005 Redefine builtins using def_builtin_const with *_ftype_*_int node.
14006 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
14007 Add new builtins using def_builtin_const.
14008 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
14009 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
14010 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
14011 * config/i386/mmintrin.h (__v1di): New typedef.
14012 (_mm_add_si64): Cast arguments to __v1di type.
14013 (_mm_sub_si64): Ditto.
14014 (_mm_sll_pi16): Cast __count to __v4hi type.
14015 (_mm_sll_pi32): Cast __count to __v2si type.
14016 (_mm_sll_si64): Cast arguments to __v1di type.
14017 (_mm_srl_pi16): Cast __count to __v4hi type.
14018 (_mm_srl_pi32): Cast __count to __v2si type.
14019 (_mm_srl_si64): Cast arguments to __v1di type.
14020 (_mm_sra_pi16): Cast __count to __v4hi type.
14021 (_mm_sra_pi32): Cast __count to __v2si type.
14022 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
14023 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
14024 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
14025 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
14026 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
14027 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
14028 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
14029 (_mm_srai_pi32): Use __builtin_ia32_psradi.
14030 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
14031 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
14032 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
14033 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
14035 2008-03-07 Joseph Myers <joseph@codesourcery.com>
14037 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
14039 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
14042 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
14043 reg+const addressing for Altivec modes. Don't generate reg+reg
14044 addressing for TFmode or TDmode quantities.
14046 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
14048 * c-common.c (vector_types_convertible_p): Call langhook
14049 instead of comptypes.
14051 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
14054 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
14055 integral and scalar float variables which have a
14058 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
14060 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
14061 dwarf_register_span hook when emitting unwind information for
14062 register-to-memory saves.
14063 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
14064 (rs6000_frame_related): Remove call to spe_synthesize_frame.
14066 2008-03-06 Jakub Jelinek <jakub@redhat.com>
14068 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
14069 for the same VAR_DECL.
14071 2008-03-06 Tom Tromey <tromey@redhat.com>
14073 * treelang: Delete.
14074 * doc/standards.texi (Standards): Don't mention treelang.
14075 * doc/invoke.texi (Overall Options): Don't mention treelang.
14076 * doc/install.texi (Prerequisites): Don't mention bison or
14078 (Configuration): Don't mention treelang.
14079 (Building): Likewise.
14080 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
14082 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
14084 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
14085 word-extractions out of a multi-word object.
14087 2008-03-06 Richard Guenther <rguenther@suse.de>
14089 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
14090 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
14091 result type and precision.
14092 * expr.c (get_inner_reference): Set unsignedp based on the result
14093 type of BIT_FIELD_REF.
14094 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
14095 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
14096 (try_instantiate_multiple_fields): Likewise. Use the correct type
14098 (sra_build_assignment): Likewise.
14099 (sra_build_elt_assignment): Likewise.
14100 (sra_explode_bitfield_assignment): Likewise.
14101 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
14102 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
14103 set BIT_FIELD_REF_UNSIGNED.
14104 (vectorizable_load): Likewise.
14106 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
14108 * cse.c (cse_extended_basic_block): Invalidate artificial defs
14111 2008-03-06 Richard Guenther <rguenther@suse.de>
14113 * alias.c (struct alias_set_entry): Move has_zero_child field
14114 to pack with alias_set.
14116 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
14118 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
14121 2008-03-05 Ian Lance Taylor <iant@google.com>
14123 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
14125 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
14127 * fwprop.c (update_df): Support width and offset parameters of
14129 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
14130 global_conflicts): Change DF_REF_EXTRACT to either
14131 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
14132 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
14133 * df-scan.c (df_ref_record, df_defs_record,
14134 df_ref_create_structure, df_def_record_1, df_uses_record,
14135 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
14136 df_bb_refs_collect, df_entry_block_defs_collect,
14137 df_exit_block_uses_collect): Support new width and offset fields.
14138 (ref_extract_pool): New storage pool.
14139 (df_free_ref): New function.
14140 (df_reg_chain_unlink, df_free_collection_rec,
14141 df_sort_and_compress_refs): Call df_free_ref.
14142 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
14144 (df_ref_create_structure): Allocate df_ref_extract if offset and
14145 width fields are used.
14146 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
14147 (df_uses_record): Get offset and width from ZERO_EXTRACT
14149 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
14150 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
14151 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
14152 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
14153 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
14154 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
14155 (df_ref_extract): New structure.
14156 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
14157 (df_ref_create): Add width and offset parameters.
14159 2008-03-05 Richard Guenther <rguenther@suse.de>
14161 * tree-ssa-structalias.c (get_constraint_for_component_ref):
14162 Use ranges_overlap_p.
14163 (offset_overlaps_with_access): Rename
14164 to ranges_overlap_p and move ...
14165 * tree-flow-inline.h (ranges_overlap_p): ... here.
14167 * tree.h (get_inner_reference, handled_component_p): Update
14170 * tree.h (record_component_aliases, get_alias_set,
14171 alias_sets_conflict_p, alias_sets_must_conflict_p,
14172 objects_must_conflict_p): Move declarations ...
14173 * alias.h (record_component_aliases, get_alias_set,
14174 alias_sets_conflict_p, alias_sets_must_conflict_p,
14175 objects_must_conflict_p): ... here.
14176 Include coretypes.h.
14177 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
14179 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
14181 * cfg.c: Include tree-flow.h.
14182 (remove_edge_raw): Call redirect_edge_var_map_clear.
14183 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
14184 * tree-flow-inline.h (redirect_edge_var_map_def): New.
14185 (redirect_edge_var_map_result): New.
14186 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
14187 PENDING_STMT use with redirect_edge_var_map_*.
14188 * tree-ssa.c (edge_var_maps): New definition.
14189 (redirect_edge_var_map_add): New.
14190 (redirect_edge_var_map_clear): New.
14191 (redirect_edge_var_map_dup): New.
14192 (redirect_edge_var_map_vector): New.
14193 (redirect_edge_var_map_destroy): New.
14194 (ssa_redirect_edge): Replace PENDING_STMT use with
14195 redirect_edge_var_map_*.
14196 (flush_pending_stmts): Same.
14197 (delete_tree_ssa): Destroy edge var map.
14198 * tree-flow.h (struct _edge_var_map): New.
14199 Define edge_var_map vector type.
14200 Declare redirect_edge_var_map_* prototypes.
14201 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
14202 * tree-cfg.c (reinstall_phi_args): Replace
14203 PENDING_STMT use with redirect_edge_var_map_*.
14205 2008-03-05 Richard Guenther <rguenther@suse.de>
14207 PR tree-optimization/35472
14208 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
14209 whose single use_stmt has a overlapping set of loaded and
14210 stored symbols as that use_stmt might be a noop assignment then.
14212 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
14214 * gthr-rtems.h: Implement __gthread_mutex_destroy.
14216 2008-03-05 Richard Guenther <rguenther@suse.de>
14219 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
14220 should be constants.
14221 * tree-cfg.c (verify_expr): Verify it.
14222 * fold-const.c (fold_truthop): Remove code generating
14223 BIT_FIELD_REFs of structure bases.
14224 (fold_binary): Likewise.
14225 (fold_ternary): Position and size of BIT_FIELD_REFs are
14226 always host integers.
14227 (make_bit_field_ref): Remove.
14228 (optimize_bit_field_compare): Remove.
14229 (all_ones_mask_p): Remove.
14231 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
14234 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
14235 (split_block_and_df_analyze): New. Split basic block and rebuild
14237 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
14239 (split_pattern_seq): Likewise.
14240 (erase_matching_seqs): Likewise.
14241 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
14243 2008-03-04 Geoff Keating <geoffk@apple.com>
14245 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
14246 declaration and code.
14247 (tree_invalid_nonnegative_warnv_p): Likewise.
14249 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
14251 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
14252 examples. Truncate option-names then causing overfull hbox.
14254 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14257 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
14259 * configure: Rebuilt.
14261 2008-03-04 Rafael Espindola <espindola@google.com>
14263 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
14264 (tree_unary_nonnegative_warnv_p): New.
14265 (tree_binary_nonnegative_warnv_p): New.
14266 (tree_single_nonnegative_warnv_p): New.
14267 (tree_invalid_nonnegative_warnv_p): New.
14268 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
14270 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14273 * opts.c (handle_option): Postpone 'unknown option' errors only for
14276 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
14279 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
14282 2008-03-04 Rafael Espindola <espindola@google.com>
14284 * fold-const.c (tree_unary_nonzero_warnv_p): New.
14285 (tree_binary_nonzero_warnv_p): New.
14286 (tree_single_nonzero_warnv_p): New.
14287 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
14289 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
14291 PR middle-end/35456
14292 * fold-const.c (fold_cond_expr_with_comparison): Prevent
14293 transformations for modes that have signed zeros.
14294 * ifcvt.c (noce_try_abs): Ditto.
14296 2008-03-04 Joseph Myers <joseph@codesourcery.com>
14298 * config/i386/i386.c (override_options): Force
14299 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
14301 2008-03-04 Jan Hubicka <jh@suse.cz>
14304 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
14307 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
14309 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
14310 label to probe the stack.
14312 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
14314 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
14315 (__gthr_win32_mutex_destroy): Declare.
14316 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
14317 __gthr_win32_mutex_destroy.
14318 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
14320 2008-03-03 Jan Hubicka <jh@suse.cz>
14323 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
14324 aggressive on inlining cold calls.
14326 2008-03-03 Richard Guenther <rguenther@suse.de>
14328 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
14329 struct copies into the expression table.
14330 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
14331 (try_to_simplify): Likewise.
14332 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
14333 integral and pointer arguments which do not change the
14334 precision to NOP_EXPRs.
14335 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
14336 VIEW_CONVERT_EXPR case.
14338 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
14340 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
14341 defined in a loop at depth 0 is invariant.
14342 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
14343 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
14344 be called at loop depth 0.
14346 2008-03-02 Jakub Jelinek <jakub@redhat.com>
14349 * gcc.c (process_command): Update copyright notice dates.
14350 * gcov.c (print_version): Likewise.
14351 * gcov-dump.c (print_version): Likewise.
14352 * mips-tfile.c (main): Likewise.
14353 * mips-tdump.c (main): Likewise.
14355 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14358 * c-common.c (flag_permissive): Delete.
14359 (constant_expression_warnings): Check flags first.
14360 (constant_expression_error): New.
14361 * c-common.h (flag_permissive): Delete.
14362 (constant_expression_error): Declare.
14363 * flags.h (flag_permissive): Declare. Update description.
14364 * diagnostic.c (pedwarn): Update.
14366 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
14367 (permissive_error_kind): New.
14368 * toplev.c (flag_permissive): Define. Update description.
14369 * toplev.h (permissive_error_kind): Declare.
14370 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
14371 (pedwarn_c90): Use pedantic_warning_kind.
14372 * c-opts.c (c_common_post_options): flag_permissive does not affect
14373 flag_pedantic_errors.
14375 2008-03-02 Joseph Myers <joseph@codesourcery.com>
14377 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
14378 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
14379 __absvsi2, __absvDI2): Use unsigned arithmetic.
14381 2008-03-02 Andi Kleen <ak@suse.de>
14382 Richard Guenther <rguenther@suse.de>
14384 * struct-equiv.c: Remove file.
14385 * cfg_cleanup.c (condjump_equiv_p): Remove.
14386 * Makefile.in (OBJS-common): Remove struct-equiv.o.
14387 (struct-equiv.o): Remove rule.
14388 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
14389 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
14390 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
14392 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
14394 * ifcvt.c (noce_process_if_block): Try to handle only the then
14395 block if the else block exists but isn't suitable.
14397 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
14400 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
14401 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
14402 regression from previous patch.
14404 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
14407 * gthr.h: Add __gthread_mutex_destroy as a function that must be
14409 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
14410 * gthr-single.h (__gthread_mutex_destroy): Likewise.
14411 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
14412 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
14413 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
14414 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
14415 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
14416 (__gthread_mutex_destroy_function): Rename to
14417 __gthread_mutex_destroy.
14418 * gthr-dce.h (__gthread_mutex_destroy): Call
14419 pthread_mutex_destroy.
14420 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
14421 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
14422 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
14424 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
14426 * df-scan.c (df_ref_chain_change_bb): Simplify.
14427 (df_insn_change_bb): Add new_bb argument. Simplify. Call
14428 set_block_for_insn if there's any change.
14429 * df.h ((df_insn_change_bb): Fix prototype.
14430 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
14431 df_insn_change_bb, don't call set_block_for_insn.
14432 * emit-rtl.c (reorder_insns): Likewise.
14433 * haifa-sched.c (move_insn): Likewise.
14435 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
14437 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
14439 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
14441 * tree-flow-inline.h (next_readonly_imm_use): Return
14442 NULL_USE_OPERAND_P after the end.
14444 2008-03-01 Richard Guenther <rguenther@suse.de>
14446 PR tree-optimization/35411
14447 * tree-sra.c (sra_build_assignment): Split conversion to
14448 final type to a separate statement if we are not assigning
14451 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
14453 * fold-const.c (fold_convertible_p): Correct the logic to follow
14454 that in fold_convert().
14456 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
14459 * tree-inline.c (build_duplicate_type): When we make a
14460 duplicate type, make it unique in the canonical types system.
14462 2008-02-29 Tom Tromey <tromey@redhat.com>
14464 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
14465 input_file_stack_history, input_file_stack_restored): Remove.
14466 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
14467 * input.h (struct file_stack): Remove.
14468 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
14469 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
14471 * diagnostic.h (struct diagnostic_context) <last_module>: Change
14473 (diagnostic_last_module_changed): Add 'map' argument.
14474 (diagnostic_set_last_function): Likewise.
14475 * diagnostic.c (undiagnostic_report_current_module): Iterate using
14476 line map, not input_file_stack.
14477 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
14479 2008-02-29 Paul Brook <paul@codesourcery.com>
14481 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
14483 2008-02-29 Paul Brook <paul@codesourcery.com>
14485 * config/arm/ieee754-df.S (muldf3): Use RET macros.
14487 2008-02-29 Richard Guenther <rguenther@suse.de>
14489 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
14491 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
14492 value for comparing for a store match.
14493 (simplify_unary_expression): Do nothing for SSA_NAMEs.
14494 (try_to_simplify): Do not do a full-blown reference lookup.
14496 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
14498 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
14499 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
14501 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
14503 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
14505 * tree-loop-linear.c (try_interchange_loops): Compare memory access
14506 strides against cache sizes.
14508 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
14510 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
14513 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
14515 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
14516 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
14517 is smaller than the original promoted value.
14518 (simplify_subreg): If OP is a SUBREG, try to preserve its
14519 SUBREG_PROMOTED_VAR_P information.
14521 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
14523 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
14524 (VN_INFO_GET): Allocate new objects on the obstack.
14525 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
14526 for rpo_numbers_temp, for consistency.
14527 (free_scc_vn): Free the obstack.
14529 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
14531 * doc/invoke.texi: Document -ftree-loop-distribution.
14532 * tree-loop-distribution.c: New.
14533 * tree-pass.h (pass_loop_distribution): New.
14534 * graphds.h (struct graph): Add htab_t indices.
14535 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
14536 * tree-vectorizer.c (rename_variables_in_loop): Extern.
14537 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
14538 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
14539 * tree-data-ref.c (debug_data_dependence_relations): New.
14540 (dump_data_dependence_relation): Also print data references.
14541 (free_data_ref): Extern.
14542 (same_access_functions): Moved...
14543 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
14544 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14545 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
14546 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
14547 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
14548 (stmts_from_loop): Skip LABEL_EXPR.
14549 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
14551 (build_rdg): Initialize rdg->indices htab.
14552 (free_rdg, stores_from_loop, ref_base_address,
14553 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
14554 have_similar_memory_accesses_1, ref_base_address_1,
14555 remove_similar_memory_refs): New.
14556 * tree-data-ref.h: Depend on tree-chrec.h.
14557 (debug_data_dependence_relations, free_data_ref): Declared.
14558 (same_access_functions): ... here.
14559 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
14561 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
14562 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
14563 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
14564 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
14565 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
14566 rdg_vertex_for_stmt): Declared.
14567 (struct rdg_edge): Add level.
14569 (free_rdg, stores_from_loop, remove_similar_memory_refs,
14570 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
14572 (rdg_has_similar_memory_accesses): New.
14573 * tree-vect-analyze.c: Remove unused static decls.
14574 * lambda.h (dependence_level): New.
14575 * common.opt (ftree-loop-distribution): New.
14576 * tree-flow.h (mark_virtual_ops_in_bb,
14577 slpeel_tree_duplicate_loop_to_edge_cfg,
14578 rename_variables_in_loop): Declared.
14579 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
14580 (OBJS-common): Add tree-loop-distribution.o.
14581 (tree-loop-distribution.o): New rule.
14582 * tree-cfg.c (mark_virtual_ops_in_bb): New.
14583 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
14584 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
14586 2008-02-28 Joseph Myers <joseph@codesourcery.com>
14589 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
14590 other than structures and unions.
14592 2008-02-28 Richard Guenther <rguenther@suse.de>
14595 2008-02-26 Richard Guenther <rguenther@suse.de>
14597 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14598 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14599 (lookup_decl_from_uid): Declare.
14600 (remove_decl_from_map): Likewise.
14601 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14602 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14603 (decl_for_uid_map): New global hashtable mapping DECL_UID
14605 (init_ttree): Allocate it.
14606 (insert_decl_to_uid_decl_map): New helper function.
14607 (make_node_stat): Insert new decls into the map.
14608 (copy_node_stat): Likewise.
14609 (lookup_decl_from_uid): New function.
14610 (remove_decl_from_map): Likewise.
14611 (print_decl_for_uid_map_statistics): New helper.
14612 (dump_tree_statistics): Call it.
14614 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14615 (referenced_var_iterator): Adjust.
14616 (FOR_EACH_REFERENCED_VAR): Adjust.
14617 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14618 (num_referenced_vars): Adjust.
14619 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14620 (first_referenced_var): Remove.
14621 (end_referenced_vars_p): Likewise.
14622 (next_referenced_var): Likewise.
14623 (referenced_var_iterator_set): New helper function.
14624 * tree-dfa.c (referenced_var_lookup): Adjust.
14625 (referenced_var_check_and_insert): Likewise.
14626 (remove_referenced_var): Likewise.
14627 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14628 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14629 (verify_call_clobbering): Likewise.
14630 (verify_memory_partitions): Likewise.
14631 (init_tree_ssa): Allocate bitmap instead of hashtable for
14633 (delete_tree_ssa): Adjust.
14634 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14635 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14636 (compute_tag_properties): Likewise.
14637 (set_initial_properties): Likewise.
14638 (find_partition_for): Likewise.
14639 (update_reference_counts): Likewise.
14640 (dump_may_aliases_for): Likewise.
14641 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14642 (add_call_clobber_ops): Likewise.
14643 (add_call_read_ops): Likewise.
14644 (get_asm_expr_operands): Likewise.
14645 * tree-into-ssa.c (dump_decl_set): Likewise.
14646 (update_ssa): Likewise.
14647 * tree-sra.c (scan_function): Likewise.
14648 (decide_instantiations): Likewise.
14649 (scalarize_parms): Likewise.
14650 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14651 (dsa_named_for): Likewise.
14652 * tree-ssa-structalias.c (update_alias_info): Likewise.
14653 (merge_smts_into): Likewise.
14655 2008-02-27 David Daney <ddaney@avtrex.com>
14658 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
14659 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
14660 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
14661 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
14662 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
14664 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
14667 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
14668 (BUILT_IN_NEXTTOWARD): Remove.
14669 (BUILT_IN_NEXTTOWARDF): Ditto.
14670 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
14671 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
14673 2008-02-27 Tom Tromey <tromey@redhat.com>
14675 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
14676 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
14678 2008-02-27 Jan Beulich <jbeulich@novell.com>
14680 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
14681 update the respective field on newdecl.
14683 2008-02-27 Revital Eres <eres@il.ibm.com>
14685 PR rtl-optimization/34999
14686 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
14687 crossing edges that ends with a call insn.
14688 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
14689 call insn and clear the EDGE_CROSSING flag of the crossing edge
14690 when fixing fallthru edges.
14692 2008-02-27 Richard Guenther <rguenther@suse.de>
14694 PR middle-end/35390
14695 * fold-const.c (fold_unary): Return the correct argument,
14696 converted to the result type.
14698 2008-02-27 Richard Guenther <rguenther@suse.de>
14700 PR middle-end/34971
14701 * expr.c (expand_expr_real_1): Assert on rotates that operate
14703 * fold-const.c (fold_binary): Use the types precision, not the
14704 bitsize of the mode if folding rotate expressions. Build rotates
14705 only for full modes.
14707 2008-02-27 Jakub Jelinek <jakub@redhat.com>
14709 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
14710 and CPP_PRAGMA_EOL.
14711 * c-pragma.c (pragma_ns_name): New typedef.
14712 (registered_pp_pragmas): New variable.
14713 (c_pp_lookup_pragma): New function.
14714 (c_register_pragma_1): If flag_preprocess_only, do nothing
14715 for non-expanded pragmas, for expanded ones push pragma's
14716 namespace and name into registered_pp_pragmas vector.
14717 (c_invoke_pragma_handler): Register OpenMP pragmas even when
14718 flag_preprocess_only, don't register GCC pch_preprocess
14719 pragma if flag_preprocess_only.
14720 * c-opts.c (c_common_init): Call init_pragma even if
14721 flag_preprocess_only.
14722 * c-pragma.c (c_pp_lookup_pragma): New prototype.
14723 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
14724 cpp_register_pragma if flag_preprocess_only.
14726 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14729 * c-parser.c (c_parser_translation_unit): Warn for empty
14730 translation unit, not empty source file.
14732 2008-02-26 Paul Brook <paul@codesourcery.com>
14734 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
14735 operand for Thumb-2.
14736 * config/arm/arm.h (reg_class): Add CORE_REGS.
14737 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
14738 (BASE_REG_CLASS): Use CORE_REGS.
14739 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
14740 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
14741 (REGNO_OK_FOR_INDEX_P): Exclude SP.
14742 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
14743 ARM_REGNO_OK_FOR_INDEX_P.
14744 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
14745 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
14746 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
14747 (ldm/stm peepholes): Ditto.
14748 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
14749 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
14750 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
14751 * config/arm/constraints.md: Enable "k" constraint on ARM.
14753 2008-02-27 Ben Elliston <bje@au.ibm.com>
14755 * config/rs6000/rs6000.c: Annotate cache line size field in all
14756 instances of struct processor_costs.
14758 2008-02-26 David Edelsohn <edelsohn@gnu.org>
14760 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
14761 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
14762 jump_bypass): New counters.
14763 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
14764 * dce.c (gate_ud_dce): Same.
14765 (gate_fast_dce): Same.
14766 * dse.c (gate_dse1): New function.
14767 (gate_dse2): New function.
14768 (gate_dse): Merge results of new gate functions.
14769 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
14770 (gate_handle_jump_bypass): Add dbg_cnt.
14771 (gate_handle_gcse): Add dbg_cnt.
14772 * ifcvt.c (gate_handle_if_conversion): Same.
14773 (gate_handle_if_after_combine): Same.
14774 (gate_handle_if_after_reload): Same.
14775 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
14777 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
14779 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
14781 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
14783 2008-02-26 Jason Merrill <jason@redhat.com>
14786 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
14787 alone if it's the naming decl for the type's main variant.
14789 2008-02-26 Tom Tromey <tromey@redhat.com>
14791 * system.h (USE_MAPPED_LOCATION): Poison.
14792 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
14793 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
14794 (make_goto_expr_edges): Likewise.
14795 (remove_bb): Likewise.
14796 (execute_warn_function_return): Likewise.
14797 * basic-block.h (struct edge_def) <goto_locus>: Change type to
14799 * c-common.c (fname_decl): Remove old location code.
14800 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
14802 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
14804 (ASM_INPUT_SOURCE_LOCATION): Likewise.
14805 (gen_rtx_ASM_INPUT): Likewise.
14806 (gen_rtx_ASM_INPUT_loc): Likewise.
14807 (get_rtx_asm_OPERANDS): Remove.
14808 * cfglayout.c (insn_locators_alloc): Remove old location code.
14809 (set_curr_insn_source_location): Likewise.
14810 (curr_insn_locator): Likewise.
14811 * print-tree.c (print_node): Remove old location code.
14812 * tree-mudflap.c (mf_varname_tree): Remove old location code.
14813 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
14814 * cfgexpand.c (expand_gimple_cond_expr): Don't use
14815 location_from_locus.
14816 (construct_exit_block): Remove old location code.
14817 * emit-rtl.c (force_next_line_note): Remove old location code.
14818 * profile.c (branch_prob): Remove old location code.
14819 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
14820 LOC_LINE): Remove old-location variants.
14821 * langhooks.c (lhd_print_error_function): Remove old location
14823 * configure, config.in: Rebuilt.
14824 * configure.ac (--enable-mapped-location): Remove.
14825 * c-decl.c (c_init_decl_processing): Remove old location code.
14826 (finish_function): Likewise.
14827 * recog.c (decode_asm_operands): Remove old location code.
14828 * c-pch.c (c_common_read_pch): Remove old location code.
14829 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
14831 * gimple-low.c (lower_function_body): Remove old location code.
14832 * toplev.c (unknown_location): Remove.
14833 (push_srcloc): Remove old-location variant.
14834 (process_options): Remove old location code.
14835 (lang_dependent_init): Likewise.
14836 * input.h (UNKNOWN_LOCATION): Move definition.
14837 (location_t): Undeprecate.
14838 (source_locus): Remove.
14839 (location_from_locus): Remove.
14840 (struct location_s): Remove.
14841 Remove all old-location code.
14842 (input_line, input_filename): Remove.
14843 * final.c (final_scan_insn): Remove old location code.
14844 * diagnostic.c (diagnostic_build_prefix): Remove
14845 USE_MAPPED_LOCATION test.
14846 * tree.h (gimple_stmt) <locus>: Now a location_t.
14847 (tree_exp) <locus>: Likewise.
14848 (DECL_IS_BUILTIN): Remove old-location variant.
14849 (annotate_with_file_line, annotate_with_locus): Likewise.
14850 (expr_locus, set_expr_locus): Update.
14851 * tree.c (build1_stat): Remove old location code.
14852 (last_annotated_node): Remove.
14853 (annotate_with_file_line): Remove old-location variant.
14854 (annotate_with_locus): Likewise.
14855 (expr_location): Remove old location code.
14856 (set_expr_location): Likewise.
14857 (expr_has_location): Likewise.
14858 (expr_locus): Likewise.
14859 (set_expr_locus): Likewise.
14860 (expr_filename): Don't use location_from_locus.
14861 (expr_lineno): Likewise.
14862 * rtl-error.c (location_for_asm): Remove old location code.
14863 * c-lex.c (cb_line_change): Remove old location code.
14864 (fe_file_change): Likewise.
14865 (cb_def_pragma): Likewise.
14866 (c_lex_with_flags): Likewise.
14867 * gengtype.c (do_typedef): Don't special-case location types.
14868 (define_location_structures): Remove.
14869 (main): Don't call define_location_structures.
14870 * tree-pretty-print.c (dump_implicit_edges): Remove old location
14873 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14876 * builtins.def (BUILT_IN_STDARG_START): Remove.
14877 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
14878 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
14879 * tree-inline.c (inline_forbidden_p_1): Likewise.
14881 2008-02-26 Richard Guenther <rguenther@suse.de>
14883 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14884 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14885 (lookup_decl_from_uid): Declare.
14886 (remove_decl_from_map): Likewise.
14887 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14888 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14889 (decl_for_uid_map): New global hashtable mapping DECL_UID
14891 (init_ttree): Allocate it.
14892 (insert_decl_to_uid_decl_map): New helper function.
14893 (make_node_stat): Insert new decls into the map.
14894 (copy_node_stat): Likewise.
14895 (lookup_decl_from_uid): New function.
14896 (remove_decl_from_map): Likewise.
14897 (print_decl_for_uid_map_statistics): New helper.
14898 (dump_tree_statistics): Call it.
14900 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14901 (referenced_var_iterator): Adjust.
14902 (FOR_EACH_REFERENCED_VAR): Adjust.
14903 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14904 (num_referenced_vars): Adjust.
14905 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14906 (first_referenced_var): Remove.
14907 (end_referenced_vars_p): Likewise.
14908 (next_referenced_var): Likewise.
14909 (referenced_var_iterator_set): New helper function.
14910 * tree-dfa.c (referenced_var_lookup): Adjust.
14911 (referenced_var_check_and_insert): Likewise.
14912 (remove_referenced_var): Likewise.
14913 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14914 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14915 (verify_call_clobbering): Likewise.
14916 (verify_memory_partitions): Likewise.
14917 (init_tree_ssa): Allocate bitmap instead of hashtable for
14919 (delete_tree_ssa): Adjust.
14920 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14921 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14922 (compute_tag_properties): Likewise.
14923 (set_initial_properties): Likewise.
14924 (find_partition_for): Likewise.
14925 (update_reference_counts): Likewise.
14926 (dump_may_aliases_for): Likewise.
14927 * tree-ssa-operands.c (add_virtual_operand): Likewise.
14928 (add_call_clobber_ops): Likewise.
14929 (add_call_read_ops): Likewise.
14930 (get_asm_expr_operands): Likewise.
14931 * tree-into-ssa.c (dump_decl_set): Likewise.
14932 (update_ssa): Likewise.
14933 * tree-sra.c (scan_function): Likewise.
14934 (decide_instantiations): Likewise.
14935 (scalarize_parms): Likewise.
14936 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14937 (dsa_named_for): Likewise.
14938 * tree-ssa-structalias.c (update_alias_info): Likewise.
14939 (merge_smts_into): Likewise.
14941 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14944 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
14945 * c-opts.c (c_common_handle_option): Wall enables
14946 Wvolatile-register-var.
14947 * common.opt: Move Wvolatile-register-var to...
14950 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14952 * common.opt (Wlarger-than=): New.
14953 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
14955 * opts.c (common_handle_option): Handle -Wlarger-than=.
14956 * optc-gen.awk: Likewise.
14957 * opth-gen.awk: Likewise.
14958 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
14959 * tree-optimize.c (tree_rest_of_compilation): Likewise.
14961 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14963 * c-common.c (match_case_to_enum_1): Add appropriate
14964 OPT_W* parameter to warning.
14965 (c_do_switch_warnings): Likewise.
14966 * c-typeck.c (warning_init): Add one more parameter following
14967 'warning' function.
14968 (push_init_level): Update call to warning_init.
14969 (pop_init_level): Likewise.
14970 (add_pending_init): Likewise.
14971 (output_init_element: Likewise.
14973 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14976 * toplev.c (toplev_main): If there are warnings or error, print
14977 errors for ignored options.
14978 * opts.c (ignored_options): New static variable.
14979 (postpone_unknown_option_error): New.
14980 (print_ignored_options): New.
14981 (handle_option): Postpone errors for unknown -Wno-* options.
14982 * opts.h (print_ignored_options): Declare.
14984 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
14986 * config/mips/mips.md (loadgp_blockage, blockage): Change type
14989 2008-02-25 Richard Guenther <rguenther@suse.de>
14992 2008-02-25 Richard Guenther <rguenther@suse.de>
14994 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14995 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14996 (lookup_decl_from_uid): Declare.
14997 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14998 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14999 (decl_for_uid_map): New global hashtable mapping DECL_UID
15001 (init_ttree): Allocate it.
15002 (insert_decl_to_uid_decl_map): New helper function.
15003 (make_node_stat): Insert new decls into the map.
15004 (copy_node_stat): Likewise.
15005 (lookup_decl_from_uid): New function.
15006 (print_decl_for_uid_map_statistics): New helper.
15007 (dump_tree_statistics): Call it.
15009 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
15010 (referenced_var_iterator): Adjust.
15011 (FOR_EACH_REFERENCED_VAR): Adjust.
15012 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
15013 (num_referenced_vars): Adjust.
15014 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
15015 (first_referenced_var): Remove.
15016 (end_referenced_vars_p): Likewise.
15017 (next_referenced_var): Likewise.
15018 (referenced_var_iterator_set): New helper function.
15019 * tree-dfa.c (referenced_var_lookup): Adjust.
15020 (referenced_var_check_and_insert): Likewise.
15021 (remove_referenced_var): Likewise.
15022 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
15023 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15024 (verify_call_clobbering): Likewise.
15025 (verify_memory_partitions): Likewise.
15026 (init_tree_ssa): Allocate bitmap instead of hashtable for
15028 (delete_tree_ssa): Adjust.
15029 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
15030 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15031 (compute_tag_properties): Likewise.
15032 (set_initial_properties): Likewise.
15033 (find_partition_for): Likewise.
15034 (update_reference_counts): Likewise.
15035 (dump_may_aliases_for): Likewise.
15036 * tree-ssa-operands.c (add_virtual_operand): Likewise.
15037 (add_call_clobber_ops): Likewise.
15038 (add_call_read_ops): Likewise.
15039 (get_asm_expr_operands): Likewise.
15040 * tree-into-ssa.c (dump_decl_set): Likewise.
15041 (update_ssa): Likewise.
15042 * tree-sra.c (scan_function): Likewise.
15043 (decide_instantiations): Likewise.
15044 (scalarize_parms): Likewise.
15045 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
15046 (dsa_named_for): Likewise.
15047 * tree-ssa-structalias.c (update_alias_info): Likewise.
15048 (merge_smts_into): Likewise.
15050 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
15053 * doc/invoke.texi (-fcx-limited-range): Document new option.
15054 * toplev.c (process_options): Handle -fcx-fortran-rules.
15055 * common.opt: Add documentation for -fcx-fortran-rules.
15057 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
15060 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
15061 actual behaviour and C99.
15063 2008-02-26 Ben Elliston <bje@au.ibm.com>
15065 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
15066 (ASM_CPU_POWER6_SPEC): Likewise.
15067 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
15068 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
15069 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
15071 2008-02-25 Richard Guenther <rguenther@suse.de>
15073 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
15074 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
15075 (lookup_decl_from_uid): Declare.
15076 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
15077 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
15078 (decl_for_uid_map): New global hashtable mapping DECL_UID
15080 (init_ttree): Allocate it.
15081 (insert_decl_to_uid_decl_map): New helper function.
15082 (make_node_stat): Insert new decls into the map.
15083 (copy_node_stat): Likewise.
15084 (lookup_decl_from_uid): New function.
15085 (print_decl_for_uid_map_statistics): New helper.
15086 (dump_tree_statistics): Call it.
15088 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
15089 (referenced_var_iterator): Adjust.
15090 (FOR_EACH_REFERENCED_VAR): Adjust.
15091 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
15092 (num_referenced_vars): Adjust.
15093 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
15094 (first_referenced_var): Remove.
15095 (end_referenced_vars_p): Likewise.
15096 (next_referenced_var): Likewise.
15097 (referenced_var_iterator_set): New helper function.
15098 * tree-dfa.c (referenced_var_lookup): Adjust.
15099 (referenced_var_check_and_insert): Likewise.
15100 (remove_referenced_var): Likewise.
15101 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
15102 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15103 (verify_call_clobbering): Likewise.
15104 (verify_memory_partitions): Likewise.
15105 (init_tree_ssa): Allocate bitmap instead of hashtable for
15107 (delete_tree_ssa): Adjust.
15108 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
15109 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
15110 (compute_tag_properties): Likewise.
15111 (set_initial_properties): Likewise.
15112 (find_partition_for): Likewise.
15113 (update_reference_counts): Likewise.
15114 (dump_may_aliases_for): Likewise.
15115 * tree-ssa-operands.c (add_virtual_operand): Likewise.
15116 (add_call_clobber_ops): Likewise.
15117 (add_call_read_ops): Likewise.
15118 (get_asm_expr_operands): Likewise.
15119 * tree-into-ssa.c (dump_decl_set): Likewise.
15120 (update_ssa): Likewise.
15121 * tree-sra.c (scan_function): Likewise.
15122 (decide_instantiations): Likewise.
15123 (scalarize_parms): Likewise.
15124 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
15125 (dsa_named_for): Likewise.
15126 * tree-ssa-structalias.c (update_alias_info): Likewise.
15127 (merge_smts_into): Likewise.
15129 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
15132 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
15133 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
15134 * alias.h (nonoverlapping_memrefs_p): Likewise.
15136 2008-02-25 Jan Beulich <jbeulich@novell.com>
15138 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
15139 * config/i386/netware-libgcc.exp: Add __bswap?i2,
15140 __emultls_get_address, __emultls_register_common,
15141 __floatundi?f, and _Unwind_GetIPInfo.
15142 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
15143 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
15144 (gen_regparm_prefix): Likewise.
15145 (i386_nlm_encode_section_info): Sync with
15146 config/i386/winnt.c:i386_pe_encode_section_info().
15147 (i386_nlm_maybe_mangle_decl_assembler_name): New.
15148 i386_nlm_mangle_decl_assembler_name): New.
15149 (netware_override_options): New.
15150 * config/i386/netware.h (netware_override_options): Declare.
15151 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
15152 (i386_nlm_mangle_decl_assembler_name): Declare.
15153 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
15155 2008-02-25 Ben Elliston <bje@au.ibm.com>
15158 * c-decl.c (grokdeclarator): Remove unused local variables
15159 `typedef_type' and `type_as_written'.
15161 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
15162 unused local variable `has_hot_blocks'.
15163 (fix_crossing_conditional_branches): Remove unused local variable
15166 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
15168 PR middle-end/19984
15169 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
15170 using DEF_C99_BUILTIN.
15171 (BUILT_IN_NANF): Ditto.
15172 (BUILT_IN_NANL): Ditto.
15174 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
15175 Revital Eres <eres@il.ibm.com>
15177 * modulo-sched.c (calculate_must_precede_follow): Address TODO
15178 regarding the order of two dependent insns in the same row.
15180 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
15182 * stor-layout.c (layout_decl): Do not bump the alignment of a
15183 bit-field to more than byte alignment if it is packed.
15185 2008-02-24 David Edelsohn <edelsohn@gnu.org>
15187 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
15190 2008-02-24 Diego Novillo <dnovillo@google.com>
15192 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
15195 * tree-vrp.c (vrp_evaluate_conditional): With
15196 -Wtype-limits, emit a warning when comparing against a
15197 constant outside the natural range of OP0's type.
15198 * c.opt (Wtype-limits): Move ...
15199 * common.opt (Wtype-limits): ... here.
15201 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
15203 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
15204 * config/rs6000/e300c2c3.md: New file.
15205 * config/rs6000/rs6000.c (processor_costs): Add new costs for
15207 (rs6000_override_options): Add e300c2 and e300c3 cases to
15208 processor_target_table. Do not allow usage of Altivec or Spe
15209 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
15210 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
15211 * config/rs6000/rs6000.h (processor_type): Add
15212 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
15213 (ASM_CPU_SPEC): Add e300c2 and e300c3.
15214 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
15215 and ppce300c3. Include e300c2c3.md.
15217 2008-02-23 David Edelsohn <edelsohn@gnu.org>
15219 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
15220 instead of TARGET_STRICT_ALIGN.
15222 2008-02-23 Joseph Myers <joseph@codesourcery.com>
15224 * explow.c (memory_address): Assert that the generated address is
15227 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
15230 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
15231 * config/darwin-ppc-ldouble-patch.def: New file.
15232 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
15233 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
15234 SUBTARGET_INIT_BUILTINS if defined.
15235 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
15238 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
15241 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
15242 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
15244 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
15247 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
15248 file" warning condtional on -Winvalid-PCH.
15250 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
15252 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
15254 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
15258 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
15259 prevent reload from using MMX registers.
15260 (*mov<mode>_internal): Ditto.
15261 (*movv2sf_internal_rex64): Ditto.
15262 (*movv2sf_internal): Ditto.
15264 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15266 PR documentation/31569
15267 * doc/install.texi2html: Use makeinfo --no-number-sections.
15269 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
15271 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
15272 ensure that we can address an entire entity > 8 bytes. Don't
15273 generate reg+reg addressing for such data.
15275 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
15277 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
15278 strings when optimizing for size, unless the target cares about
15281 2008-02-22 Tom Tromey <tromey@redhat.com>
15283 * regclass.c (current_pass): Remove declaration.
15285 2008-02-22 Anatoly Sokolov <aesok@post.ru>
15287 * config/avr/libgcc.S (__RAMPZ__): Define.
15288 (__do_copy_data): Add for devices with 128KB code memory.
15290 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
15292 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
15294 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
15296 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
15298 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
15301 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15304 * c-typeck.c (build_binary_op): Warn about floating point
15305 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
15307 2008-02-21 Janis Johnson <janis187@us.ibm.com>
15310 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
15311 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
15313 (rs6000_override_options): Set altivec_abi as default, not override,
15314 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
15315 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
15316 is used; use new member spe_abi.
15317 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
15318 spe_abi and altivec_abi.
15320 2008-02-22 Tomas Bily <tbily@suse.cz>
15322 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
15324 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15327 * config.build (build_file_translate): Set to `CMD //c' only if
15329 * Makefile.in (build_file_translate): Improve comment.
15331 2008-02-21 Jan Hubicka <jh@suse.cz>
15333 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
15334 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
15335 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
15337 2008-02-21 Michael Matz <matz@suse.de>
15340 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
15342 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
15344 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
15345 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
15346 as insn constraint.
15347 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
15348 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
15349 SSE_VEC_FLOAT_MODE_P as insn constraint.
15350 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
15351 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
15352 sse4a_movntdf using MODEF mode iterator.
15353 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
15354 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
15355 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
15356 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
15357 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
15358 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
15359 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
15361 2008-02-21 Richard Guenther <rguenther@suse.de>
15363 * tree.def (PAREN_EXPR): New tree code.
15364 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
15366 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
15367 * expr.c (expand_expr_real_1): Likewise.
15368 * tree-inline.c (estimate_num_insns_1): Likewise.
15369 * tree-complex.c (expand_complex_move): Likewise.
15370 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
15373 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
15376 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
15378 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
15381 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
15383 * config/sh/sh.c (find_barrier): Don't go past
15384 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
15386 2008-02-20 DJ Delorie <dj@redhat.com>
15388 * config/h8300/h8300.md (insv): Force source operand to be a register.
15390 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
15391 as a jump, not as a plain insn.
15393 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
15395 * doc/invoke.texi (Warning Options): Add new option
15396 -Wframe-larger-than=.
15397 (-Wframe-larger-than): Document.
15399 * flags.h (warn_frame_larger_than, frame_larger_than_size):
15400 Add declarations for new option variables.
15402 * final.c (final_start_function): Check the frame size
15403 before emission and issue a Wframe-larger-than warning.
15405 * opts.c (warn_frame_larger_than, frame_larger_than_size):
15406 Add definitions for new option variables.
15407 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
15409 * common.opt (Wframe-larger-than=): New option.
15411 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
15413 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
15414 (<sse>_div<mode>3): Ditto.
15415 (<sse>_vmdiv<mode>3): Ditto.
15416 (<sse>_vmsqrt<mode>2): Ditto.
15417 (*smax<mode>3): Ditto.
15418 (sse5_frcz<mode>2): Ditto.
15419 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
15420 as insn constraint.
15422 2008-02-20 Richard Guenther <rguenther@suse.de>
15424 PR middle-end/35265
15425 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
15426 be happy with INTEGRAL_TYPE_P.
15428 2008-02-20 Richard Guenther <rguenther@suse.de>
15430 * fold-const.c (split_tree): Associate floatig-point expressions
15431 if flag_associative_math is set.
15433 2008-02-20 Richard Guenther <rguenther@suse.de>
15435 * tree.h (fold_real_zero_addition_p): Declare.
15436 * fold-const.c (fold_real_zero_addition_p): Export.
15437 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
15438 floating-point operations with zero and one.
15440 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
15442 * doc/install.texi: Correct references to CFLAGS, replacing them
15443 with BOOT_CFLAGS. Document flags used during bootstrap for
15446 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
15448 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
15449 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
15450 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
15452 (smin<mode>3): Ditto from similar patterns.
15453 (smax<mode>3): Ditto.
15454 (*ieee_smin<mode>3): Ditto.
15455 (*ieee_smax<mode>3): Ditto.
15456 * config/i386/sse.md (sse): New mode attribute.
15457 (mov<mode>): Macroize expander from movv4sf and movv2df using
15458 SSEMODEF2P mode iterator.
15459 (<sse>_movnt<mode>): Ditto from similar patterns. Use
15460 SSE_VEC_FLOAT_MODE_P as insn constraint.
15461 (storent<mode>): Ditto.
15462 (storent<mode>): Macroize expander from storentsf and storentdf using
15463 MODEF mode iterator.
15464 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
15465 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
15466 (abs<mode>2): Ditto from similar patterns.
15467 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
15468 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
15469 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
15470 (<sse>_vmsqrt<mode>2): Ditto.
15471 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
15472 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
15473 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
15474 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
15475 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
15476 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
15477 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
15479 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
15480 iterator and SSE_FLOAT_MODE_P as insn constraint.
15481 (<sse>_ucomi): Ditto from similar patterns.
15482 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
15483 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
15484 SSE_VEC_FLOAT_MODE_P as insn constraint.
15485 (vcond<mode>): Ditto from similar patterns.
15486 (and<mode>3, *and<mode>3): Ditto.
15487 (<sse>_nand<mode>3): Ditto.
15488 (ior<mode>3, *ior<mode>3): Ditto.
15489 (xor<mode>3, *xor<mode>3): Ditto.
15490 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
15491 iterator and SSE_FLOAT_MODE_P as insn constraint.
15492 (*nand<mode>3): Ditto from similar patterns.
15493 (*ior<mode>3): Ditto.
15494 (*xor<mode>3): Ditto.
15496 2008-02-20 Ira Rosen <irar@il.ibm.com>
15498 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
15499 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
15500 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
15502 2008-02-19 Jan Hubicka <jh@suse.cz>
15504 * predict.c (tree_bb_level_predictions): Remove variable next
15505 mistakely introduced by previous commit.
15507 2008-02-19 Jan Hubicka <jh@suse.cz>
15509 * predict.c (predict_paths_leading_to): Rewrite.
15510 (predict_paths_for_bb): New.
15511 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
15513 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15516 * Makefile.in (build_file_translate): New.
15517 (gcc-vers.texi): Use it for translating $(abs_srcdir).
15518 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
15519 * configure.ac (build_file_translate): Substitute it.
15520 * configure: Regenerate.
15522 2008-02-19 Jan Hubicka <jh@suse.cz>
15524 PR rtl-optimization/34408
15525 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
15528 2008-02-19 Jan Hubicka <jh@suse.cz>
15530 PR middle-end/28779
15531 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
15534 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
15537 * config/i386/i386-modes.def: Revert the last DI alignment
15538 change until Ada people can look into it.
15540 2008-02-19 Nick Clifton <nickc@redhat.com>
15542 * opts.c (print_specific_help): Fix typo in --help text.
15544 2008-02-19 Jakub Jelinek <jakub@redhat.com>
15547 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
15548 32-bit inline asm without asm alternatives for host GCC < 3.0.
15550 2008-02-19 Richard Guenther <rguenther@suse.de>
15552 PR tree-optimization/34989
15553 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
15554 Allow propagation to INDIRECT_REF if we can simplify only.
15556 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15558 * c-common.c (warn_for_collisions_1): Use appropriate option when
15561 2008-02-19 Nick Clifton <nickc@redhat.com>
15564 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
15565 (handle_options): Fix indentation.
15566 (print_filtered_help): If no language-specific options were
15567 displayed tell the user how to list all the options supported by
15568 the language's front-end.
15569 (print_specific_help): Fix indentation and remove duplicate line.
15570 (common_handle_option): Handle the -v option.
15571 For --help enable the display of undocumented options if the -v
15572 switch has been included on the command line.
15573 For --help= check for overlaps in the arguments between the option
15574 classes and the language names and issue a warning when they
15575 cannot be disambiguated.
15576 * c.opt (v): Pass on to the common option handler.
15578 2008-02-19 Revital Eres <eres@il.ibm.com>
15580 * modulo-sched.c (sms_schedule): Change dump message when
15581 create_ddg function fails.
15582 (try_scheduling_node_in_cycle): Rename row to cycle.
15583 (print_partial_schedule): Rename CYCLE to ROW.
15585 2008-02-19 Christian Bruel <christian.bruel@st.com>
15586 Zdenek Dvorak <ook@ucw.cz>
15588 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
15590 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
15593 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
15594 (*x86_movdicc_0_m1_se): Ditto.
15596 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
15598 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
15599 (CMPtype): Define as __gcc_CMPtype.
15600 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
15601 (CMPtype): Define as __gcc_CMPtype.
15603 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
15605 Support valgrind 3.3 for --enable-checking=valgrind.
15606 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
15608 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
15609 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
15610 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
15611 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
15612 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
15613 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
15614 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
15616 * ggc-zone.c: Similar.
15617 * ggc-page.c: Similar.
15619 2008-02-19 Paul Brook <paul@codesourcery.com>
15622 * config/arm/ieee754-df.S: Fix do_it typo.
15623 * config/arm/ieee754-sf.S: Fix do_it typo.
15625 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
15628 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
15629 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
15630 (OPTION_MASK_ISA_SSE_SET): Likewise.
15631 (OPTION_MASK_ISA_SSE2_SET): Likewise.
15632 (OPTION_MASK_ISA_SSE3_SET): Likewise.
15633 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
15634 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
15635 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
15636 (OPTION_MASK_ISA_SSE4_SET): Likewise.
15637 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
15638 (OPTION_MASK_ISA_SSE5_SET): Likewise.
15639 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
15640 (OPTION_MASK_ISA_MMX_UNSET): Updated.
15641 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
15642 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
15643 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
15644 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
15645 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
15646 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
15647 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
15648 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
15649 (OPTION_MASK_ISA_SSE4): Removed.
15650 (ix86_handle_option): Turn on bits in ix86_isa_flags and
15651 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
15652 (override_options): Don't turn on implied SSE/MMX bits in
15655 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
15657 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
15660 2008-02-18 Joey Ye <joey.ye@intel.com>
15662 PR middle-end/34921
15663 * tree-nested.c (insert_field_into_struct): Set type alignment
15664 to field alignment if the former is less than the latter.
15666 2008-02-18 Jakub Jelinek <jakub@redhat.com>
15668 * BASE-VER: Set to 4.4.0.
15670 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15672 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
15673 * doc/cfg.texi: Likewise.
15674 * doc/extend.texi: Likewise.
15675 * doc/gty.texi: Likewise.
15676 * doc/invoke.texi: Likewise.
15677 * doc/loop.texi: Likewise.
15678 * doc/md.texi: Likewise.
15679 * doc/passes.texi: Likewise.
15680 * doc/rtl.texi: Likewise.
15681 * doc/sourcebuild.texi: Likewise.
15682 * doc/tm.texi: Likewise.
15683 * doc/tree-ssa.texi: Likewise.
15685 2008-02-17 Richard Guenther <rguenther@suse.de>
15687 PR middle-end/35227
15688 * tree-complex.c (init_parameter_lattice_values): Handle parameters
15689 without default definition.
15691 2008-02-17 Richard Guenther <rguenther@suse.de>
15693 PR tree-optimization/35231
15694 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
15697 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
15700 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15701 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15702 libgcc_cmp_return mode.
15704 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15707 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
15709 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
15711 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
15714 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15716 * doc/c-tree.texi: Use `@.' where appropriate.
15717 * doc/extend.texi: Likewise.
15718 * doc/install.texi: Likewise.
15719 * doc/invoke.texi: Likewise.
15720 * doc/loop.texi: Likewise.
15721 * doc/makefile.texi: Likewise.
15722 * doc/md.texi: Likewise.
15723 * doc/passes.texi: Likewise.
15724 * doc/standards.texi: Likewise.
15725 * doc/tm.texi: Likewise.
15727 2008-02-15 Jakub Jelinek <jakub@redhat.com>
15729 PR middle-end/35196
15730 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
15732 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
15733 rather than in entry_bb.
15735 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15737 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15738 libgcc_cmp_return mode.
15740 2008-02-15 Jakub Jelinek <jakub@redhat.com>
15742 PR middle-end/35130
15743 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
15744 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
15746 2008-02-15 Richard Guenther <rguenther@suse.de>
15747 Zdenek Dvorak <ook@ucw.cz>
15749 PR tree-optimization/35164
15750 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
15751 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
15752 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
15753 Only propagate addresses which do not have abnormal SSA_NAMEs
15756 2008-02-15 Joseph Myers <joseph@codesourcery.com>
15759 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
15761 2008-02-15 Jan Hubicka <jh@suse.cz>
15763 PR middle-end/35149
15764 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
15766 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15768 PR middle-end/34621
15769 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
15770 when calculating alignment_pad.
15772 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
15774 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
15775 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
15776 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
15777 and STACK_BOUNDARY define.
15779 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
15781 PR preprocessor/35061
15782 * c-pragma.c (handle_pragma_pop_macro): Check that
15783 pushed_macro_table has been allocated.
15785 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
15787 PR middle-end/35136
15788 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
15789 (force_gimple_operand): Likewise.
15790 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
15791 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
15792 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
15793 (find_interesting_uses_address): Check addressability and alignment
15794 of the base expression only after substituting bases of IVs into it.
15796 2008-02-14 Michael Matz <matz@suse.de>
15799 * function.c (instantiate_virtual_regs_in_insn): Reload address
15800 before falling back to reloading the whole operand.
15802 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
15804 * config/s390/s390.c (s390_mainpool_start): Emit the pool
15805 before the first section switch note.
15807 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15809 * doc/bugreport.texi: Update copyright years.
15810 * doc/c-tree.texi: Likewise.
15811 * doc/cfg.texi: Likewise.
15812 * doc/cpp.texi: Likewise.
15813 * doc/cppinternals.texi: Likewise.
15814 * doc/fragments.texi: Likewise.
15815 * doc/frontends.texi: Likewise.
15816 * doc/gcc.texi: Likewise.
15817 * doc/gty.texi: Likewise.
15818 * doc/hostconfig.texi: Likewise.
15819 * doc/implement-c.texi: Likewise.
15820 * doc/libgcc.texi: Likewise.
15821 * doc/loop.texi: Likewise.
15822 * doc/makefile.texi: Likewise.
15823 * doc/options.texi: Likewise.
15824 * doc/passes.texi: Likewise.
15825 * doc/rtl.texi: Likewise.
15826 * doc/sourcebuild.texi: Likewise.
15827 * doc/standards.texi: Likewise.
15828 * doc/tree-ssa.texi: Likewise.
15829 * doc/trouble.texi: Likewise.
15831 * doc/extend.texi: Use @: or add comma where appropriate.
15832 * doc/invoke.texi: Likewise.
15833 * doc/tm.texi: Likewise.
15835 2008-02-14 Alan Modra <amodra@bigpond.net.au>
15838 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
15841 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
15843 * doc/md.texi (clz, ctz): Add reference.
15844 * doc/rtl.texi (clz, ctz): Likewise.
15846 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15849 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
15852 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
15854 * config/s390/s390.c (struct constant_pool): New field
15855 emit_pool_after added.
15856 (s390_mainpool_start): Set the emit_pool_after flag according
15857 to the section switch notes.
15858 (s390_mainpool_finish): Consider emit_pool_after when emitting
15859 the literal pool at the end of the function.
15860 (s390_chunkify_start): Force literal pool splits at section
15863 2008-02-13 Michael Matz <matz@suse.de>
15866 * var-tracking.c (clobber_variable_part): Correctly traverse the
15869 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15872 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
15873 Add -fdump-ipa-inline.
15874 * tree-dump.c (dump_files): Remove tree-inlined dump.
15875 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
15877 2008-02-12 Richard Guenther <rguenther@suse.de>
15879 PR tree-optimization/35171
15880 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
15883 2008-02-12 Richard Guenther <rguenther@suse.de>
15885 PR middle-end/35163
15886 * fold-const.c (fold_widened_comparison): Use get_unwidened in
15887 value-preserving mode. Disallow final truncation.
15889 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
15891 PR middle-end/35136
15892 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
15893 code from here to...
15894 (force_gimple_operand): ...here.
15896 2008-02-12 Jakub Jelinek <jakub@redhat.com>
15899 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
15900 non-compatible pointers.
15901 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
15902 different FIELD_DECLs, try harder by comparing field offsets, sizes
15905 PR inline-asm/35160
15906 * function.c (match_asm_constraints_1): Don't replace the same input
15909 2008-02-12 Anatoly Sokolov <aesok@post.ru>
15911 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
15912 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
15913 (expand_epilogue): Restore RAMPZ register.
15914 * config/avr/avr.md (RAMPZ_ADDR): New constant.
15916 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
15918 * config/i386/cygwin.asm: (__alloca): Correct calling
15919 convention and alignment.
15920 (__chkstk): Force 8 byte stack alignment.
15922 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
15923 Richard Guenther <rguenther@suse.de>
15925 PR tree-optimization/33992
15926 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
15927 the zero we compare against.
15929 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
15931 PR libfortran/35063
15932 * gthr-win32.h (__gthread_mutex_destroy_function): New function
15933 to CloseHandle after unlocking to prevent accumulation of handle
15936 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15938 PR middle_end/34150
15939 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
15940 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
15941 and update LABEL_NUSES during and after reload.
15943 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
15945 PR middle-end/34627
15946 * combine.c (simplify_if_then_else): Make sure the comparison is
15947 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
15949 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
15952 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
15953 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
15954 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
15955 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
15956 * tree.h (get_type_static_bounds): Likewise.
15958 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15960 * doc/invoke.texi (Option Summary, C++ Dialect Options)
15961 (Objective-C and Objective-C++ Dialect Options, Warning Options):
15962 Make -Wfoo language annotations match what the compiler outputs.
15964 2008-02-08 Sa Liu <saliu@de.ibm.com>
15966 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
15967 intrinsics spu_convts, spu_convtu, spu_convtf.
15969 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
15971 * doc/extend.texi (Function Attributes) <noinline>: Mention
15972 asm ("") as method to keep calls.
15974 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
15977 * doc/options.texi (Options): Replace references to opts.sh with
15979 * opts-common.c: Likewise.
15980 * optc-gen.awk: Likewise.
15982 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
15984 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
15986 2008-02-07 Richard Henderson <rth@redhat.com>
15989 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
15990 EXPR_LIST for the REG_EQUAL instead of a comparison with a
15993 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
15995 PR tree-optimization/35085
15996 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
15997 for operand entry oe2 in addition to operand entry oe3 in order to
15998 expose more opportunities for vectorizer sum reduction.
16000 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16003 * Makefile.in (LIBS): Remove $(GMPLIBS).
16004 (cc1-dummy, cc1): Add $(GMPLIBS).
16006 2008-02-06 Jan Hubicka <jh@suse.cz>
16009 * i386.md (moddf_integer): Do not produce partial memory stalls for
16010 targets where it hurts.
16012 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
16015 * optabs.c (expand_float): Do not check for decimal modes when
16016 expanding unsigned integer through signed conversion.
16018 2008-02-06 Nick Clifton <nickc@redhat.com>
16020 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
16021 inside the clobber with a match_operand and duplicated operand
16022 number in the constraint.
16023 (ineqbranchsi): Delete redundant comment.
16025 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
16027 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
16028 builtin_define ("__USE_INIT_FINI__").
16029 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
16031 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
16033 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16035 PR documentation/30330
16036 * doc/invoke.texi (C++ Dialect Options)
16037 (Objective-C and Objective-C++ Dialect Options, Warning Options):
16038 For each warning option -Wfoo that allows -Wno-foo, ensure both
16039 -Wfoo and -Wno-foo are listed in the option index. Fix index
16040 entry of -Wswitch-default, index -Wnormalized= including the
16041 `=', and -Wlarger-than-@var{len} including @var{len}.
16043 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
16045 * config/i386/i386.md (floatunssisf2): Use
16046 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
16047 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
16048 Macroize expander using MODEF mode iterator.
16050 2008-02-05 Diego Novillo <dnovillo@google.com>
16052 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
16055 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
16057 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16060 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
16062 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
16065 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
16066 to indicate if a message should be generated.
16067 (init_cumulative_args): Updated.
16068 (function_value_32): Likewise.
16070 2008-02-05 Joseph Myers <joseph@codesourcery.com>
16072 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
16074 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
16077 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
16078 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
16080 2008-02-04 Diego Novillo <dnovillo@google.com>
16082 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
16085 * tree-vrp.c (vrp_evaluate_conditional): With
16086 -Wtype-limits, emit a warning when comparing against a
16087 constant outside the natural range of OP0's type.
16089 2008-02-04 Richard Guenther <rguenther@suse.de>
16091 PR middle-end/33631
16092 * expr.c (count_type_elements): Give for unions instead of
16095 2008-02-04 Richard Guenther <rguenther@suse.de>
16097 PR middle-end/35043
16098 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
16099 to TYPE_DOMAINs base type instead of using bitsizetype here.
16101 2008-02-03 Jason Merrill <jason@redhat.com>
16103 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
16105 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16108 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
16109 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
16110 (RS/6000 and PowerPC Options): Fix typos and markup.
16111 * doc/passes.texi (Tree-SSA passes): Likewise.
16113 2008-02-02 Michael Matz <matz@suse.de>
16116 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
16117 from record_last_reg_set_info.
16118 (record_last_reg_set_info): Take an RTX argument, iterate over all
16119 constituent hardregs.
16120 (record_last_set_info, record_opr_changes): Change calls to
16121 new signature or to record_last_reg_set_info_regno.
16123 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
16125 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
16127 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
16129 PR rtl-optimization/34773
16130 * reg-notes.def (EQUAL): Mention significance of combination of
16131 REG_EQUAL and REG_RETVAL.
16132 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
16133 insn that has a REG_RETVAL.
16135 2008-02-01 Roger Sayle <roger@eyesopen.com>
16138 * configure.ac (--enable-fixed-point): Disable unless explicitly
16140 * configure: Regenerate.
16142 2008-02-01 Richard Guenther <rguenther@suse.de>
16145 * invoke.texi (-finline-limit): Remove no longer true parts
16146 of the documentation. Note that there is no default value.
16148 2008-02-01 Andrew Pinski <pinskia@gmail.com>
16149 Mark Mitchell <mark@codesourcery.com>
16150 Ben Elliston <bje@au.ibm.com>
16153 * doc/extend.texi (Other Builtins): Document.
16155 2008-01-31 Tom Browder <tom.browder@gmail.com>
16157 * doc/c-tree.texi (Types): Fix grammar.
16158 (Expression trees): Ditto.
16159 * doc/passes.texi (Tree-SSA passes): Ditto.
16161 * doc/configterms.texi (Configure Terms): Fix typo.
16162 * doc/cpp.texi (Common Predefined Macros): Ditto.
16163 * doc/md.texi (Machine Constraints): Ditto.
16165 * doc/makefile.texi (Makefile): Add comma.
16167 2008-01-31 Tom Browder <tom.browder@gmail.com>
16168 Gerald Pfeifer <gerald@pfeifer.com>
16170 * doc/sourcebuild.texi (Front End): Remove references to CVS
16171 and CVSROOT/modules.
16172 (Texinfo Manuals): Replace reference to CVS by one to SVN.
16173 (Back End): Remove reference to CVS.
16175 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
16178 * config/mips/mips.c (gen_load_const_gp): New function, taking a
16180 (mips16_gp_pseudo_reg): ...here.
16181 * config/mips/mips.md (load_const_gp): Replace with...
16182 (load_const_gp_<mode>): ...this :P-based insn.
16184 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16186 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
16187 options. Minor fixes.
16188 (-std): Move reference to standards closer to where language
16189 standards are first mentioned.
16191 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
16193 PR rtl-optimization/34995
16194 * reload.c (alternative_allows_const_pool_ref): Take an rtx
16195 parameter and return a bool. If the rtx parameter is nonnull,
16196 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
16197 (find_reloads): Update call accordingly. Pass the new operand
16198 if it needed no address reloads, otherwise pass null.
16200 2008-01-30 Richard Henderson <rth@redhat.com>
16203 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
16204 for unbounded arrays.
16206 2008-01-30 Silvius Rus <rus@google.com>
16208 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
16210 2008-01-30 Jan Hubicka <jh@suse.cz>
16213 * i386.c (init_cumulative_args): Use real function declaration when
16216 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
16218 PR rtl-optimization/34998
16219 * global.c (build_insn_chain): Treat non-subreg_lowpart
16220 SUBREGs of pseudos as clobbering all the words covered by the
16221 SUBREG, not just all the bytes.
16222 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
16223 original df_ref rather than an extract parameter.
16224 (global_conflicts): Update call accordingly.
16226 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
16228 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
16229 the overflow check to make it easier to read.
16230 (__fixtfdi): Change the type of the ll member in union
16231 long_double to UDItype_x.
16233 2008-01-30 Jakub Jelinek <jakub@redhat.com>
16235 PR middle-end/34969
16236 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
16237 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
16238 * tree-inline.c (fold_marked_statements): Call
16239 cgraph_update_edges_for_call_stmt if folding a call statement.
16240 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
16241 debug_generic_stmt calls, reset it back afterwards.
16244 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
16246 * c-typeck.c (build_external_ref): Don't pedwarn about
16247 static vars in current function's scope.
16249 2008-01-29 Joseph Myers <joseph@codesourcery.com>
16251 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
16253 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
16256 * ipa-struct-reorg.c: Fix spelling.
16257 * params.def: Ditto.
16259 2008-01-29 Richard Guenther <rguenther@suse.de>
16261 PR middle-end/35006
16262 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
16264 * tree-inline.c (remap_type): Increment remapping_type_depth
16265 around remapping types.
16266 (copy_body_r): Only add referenced variables if they are referenced
16267 from code, not types.
16269 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
16280 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
16281 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
16283 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
16286 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
16287 pointer for tiny stack.
16289 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
16291 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
16293 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
16295 * config/vx-common.h: Fix typo in comment.
16297 2008-01-28 Ian Lance Taylor <iant@google.com>
16301 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16302 coalesce pointers if they have different DECL_NO_TBAA_P values.
16303 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
16304 between variables with different DECL_NO_TBAA_P values.
16306 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
16309 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
16310 are not legitimate small data references on SPE targets.
16312 2008-01-28 David Daney <ddaney@avtrex.com>
16314 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
16316 2008-01-28 David Daney <ddaney@avtrex.com>
16318 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
16320 2008-01-27 Joseph Myers <joseph@codesourcery.com>
16322 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
16323 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
16324 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
16325 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
16326 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
16327 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
16328 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
16329 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
16331 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
16333 * basic-block.h (condjump_equiv_p): Fix comment.
16335 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
16337 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
16338 print_generic_stmt_indented): Fix comment.
16340 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
16342 * configure.ac (__stack_chk_fail): Add detecion for availability
16343 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
16344 * configure: Regenerate.
16346 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
16348 PR middle-end/34688
16349 * final.c (output_addr_const): Handle TRUNCATE.
16351 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
16354 * tree-ssa-loop-ivopts.c (comp_cost): New type.
16355 (zero_cost, infinite_cost): New constants.
16356 (struct cost_pair): Change type of cost to comp_cost.
16357 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
16358 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
16360 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
16361 split_address_cost, ptr_difference_cost, difference_cost,
16362 get_computation_cost_at, get_computation_cost,
16363 determine_use_iv_cost_generic, determine_use_iv_cost_address,
16364 determine_use_iv_cost_condition, determine_use_iv_costs,
16365 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
16366 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
16367 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
16368 Change type of cost to comp_cost.
16369 (determine_iv_cost): Increase cost of non-original ivs, instead
16370 of decreasing the cost of original ones.
16371 (get_address_cost): Indicate the complexity of the addressing mode
16373 (try_add_cand_for): Prefer using ivs not specific to some object.
16374 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
16376 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
16377 Janis Johnson <janis187@us.ibm.com>
16380 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
16381 (TARGET_INSTANTIATE_DECLS): Likewise.
16382 * target.h (expand_to_rtl_hook): New target hook.
16383 (instantiate_decls): Likewise.
16384 * function.c (instantiate_decl): Make non-static. Rename to...
16385 (instantiate_decl_rtl): ... this.
16386 (instantiate_expr): Use instantiate_decl_rtl.
16387 (instantiate_decls_1): Likewise.
16388 (instantiate_decls): Likewise.
16389 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
16390 * function.h (instantiate_decl_rtl): Add prototype.
16391 * cfgexpand.c (target.h): New include.
16392 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
16393 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
16394 (TARGET_INSTANTIATE_DECLS): Likewise.
16395 (TARGET_INITIALIZER): New target hooks added.
16396 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
16398 * config/rs6000/rs6000.c (tree-flow.h): New include.
16399 (machine_function): Add sdmode_stack_slot field.
16400 (rs6000_alloc_sdmode_stack_slot): New function.
16401 (rs6000_instantiate_decls): Likewise.
16402 (rs6000_secondary_memory_needed_rtx): Likewise.
16403 (rs6000_check_sdmode): Likewise.
16404 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
16405 (TARGET_INSTANTIATE_DECLS): Likewise.
16406 (rs6000_hard_regno_mode_ok): Allow SDmode.
16407 (num_insns_constant): Likewise. Handle _Decimal32 constants.
16408 (rs6000_emit_move): Handle SDmode.
16409 (function_arg_advance): Likewise.
16410 (function_arg): Likewise.
16411 (rs6000_gimplify_va_arg): Likewise. Add special handling of
16412 SDmode var args for 32-bit compiles.
16413 (rs6000_secondary_reload_class): Handle SDmode.
16414 (rs6000_output_function_epilogue): Likewise.
16415 (rs6000_function_value): Simplify if statement.
16416 (rs6000_libcall_value): Likewise.
16417 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
16418 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
16419 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
16420 (movsd_hardfloat): New define_insn.
16421 (movsd_softfloat): Likewise.
16422 (movsd_store): Likewise.
16423 (movsd_load): Likewise.
16424 (extendsddd2): Likewise.
16425 (extendsdtd2): Likewise.
16426 (truncddsd2): Likewise.
16427 (movdd_hardfloat64): Fixup comment.
16428 (UNSPEC_MOVSD_LOAD): New constant.
16429 (UNSPEC_MOVSD_STORE): Likewise.
16431 2008-01-26 Jakub Jelinek <jakub@redhat.com>
16434 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
16436 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
16437 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
16438 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
16439 and TRUTH_XOR_EXPR.
16441 2008-01-26 David Edelsohn <edelsohn@gnu.org>
16444 * config.gcc: Separate AIX 5.3 from AIX 6.1.
16445 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16446 __LONGDOUBLE128 too.
16447 * config/rs6000/aix61.h: New file.
16449 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
16451 PR rtl-optimization/34959
16452 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
16453 popcount and parity rtxes the same mode as their operand.
16454 Truncate or extend the result to the return value's mode
16457 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
16460 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
16461 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
16462 to GOT_VERSION_REGNUM.
16463 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
16464 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
16465 * config/mips/mips.c (mips_emit_call_insn): New function.
16466 (mips_call_tls_get_addr): Call mips_expand_call directly.
16467 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
16469 (mips16_build_call_stub): Likewise. Return the call insn or null.
16470 (mips_expand_call): Update the call to mips16_build_call_stub
16471 accordingly and a remove redundant condition. Assert that MIPS16
16472 stubs do not use lazy binding. Use mips_emit_call_insn and return
16474 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
16476 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
16477 (mips_avoid_hazard): Remove hazard_set handling.
16478 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
16479 (UNSPEC_RESTORE_GP): ...this.
16480 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
16481 (FAKE_CALL_REGNO): Rename to...
16482 (GOT_VERSION_REGNUM): ...this.
16483 (type): Add "ghost" value. Add an associated insn reservation.
16484 (hazard_set): Remove.
16485 (exception_receiver): Rename to...
16486 (restore_gp): ...this and update the unspec identifier accordingly.
16487 (exception_receiver, nonlocal_got_receiver): New expanders.
16488 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
16489 FAKE_CALL_REGNO. Remove hazard_set attribute.
16490 (set_got_version, update_got_version): New patterns.
16492 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
16495 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
16497 2008-01-25 Joseph Myers <joseph@codesourcery.com>
16500 * doc/install.texi2html: Generate gcc-vers.texi.
16502 2008-01-25 DJ Delorie <dj@redhat.com>
16504 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
16506 2008-01-25 Joseph Myers <joseph@codesourcery.com>
16508 * config/c4x: Remove directory.
16509 * config.gcc (crx-*, mt-*): Mark obsolete.
16510 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
16511 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
16512 sh-*-rtemscoff*): Remove cases.
16513 * defaults.h (C4X_FLOAT_FORMAT): Remove.
16514 * real.c (encode_c4x_single, decode_c4x_single,
16515 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
16516 c4x_extended_format): Remove.
16517 * real.h (c4x_single_format, c4x_extended_format): Remove.
16518 * doc/extend.texi (interrupt, naked): Remove mention of attributes
16520 (Pragmas): Remove comment about c4x pragmas.
16521 * doc/install.texi (c4x): Remove target-specific instructions.
16522 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
16523 * doc/md.texi (Machine Constraints): Remove C4x documentation.
16524 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
16525 refer to C4x source files as examples.
16526 (C4X_FLOAT_FORMAT): Remove documentation.
16528 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
16530 * config/bfin/bfin.c (override_options): Reorder tests so that
16531 flag_pic gets enabled for -msep-data.
16533 2008-01-25 Richard Guenther <rguenther@suse.de>
16535 PR middle-end/32244
16536 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
16537 to its bitfield precision if required.
16539 2008-01-25 Jakub Jelinek <jakub@redhat.com>
16541 PR middle-end/33880
16542 * tree-nested.c (walk_omp_for): New function.
16543 (convert_nonlocal_reference, convert_local_reference): Call
16544 walk_omp_for on OMP_FOR.
16545 (convert_call_expr): Call walk_body on OMP_FOR's
16546 OMP_FOR_PRE_INIT_BODY.
16548 2008-01-25 Richard Guenther <rguenther@suse.de>
16550 PR tree-optimization/34966
16551 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
16552 default defs and PHI_NODEs we have to insert after the
16553 defining statement.
16555 2008-01-24 Nick Clifton <nickc@redhat.com>
16557 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
16558 Provide a default definition.
16559 (LIBGCC2_UNITS_PER_WORD): Likewise.
16561 * config/stormy16/stormy16.c: Include df.h for the prototype
16562 for df_regs_ever_live_p.
16563 (xstormy16_expand_builtin_va_start): Convert the stack offset
16564 into a component_ref and then use POINTER_PLUS_EXPR to add it
16565 to the incoming_virtual_args_rtx.
16566 (xstormy16_gimplify_va_arg_expr): Rename to
16567 xstormy16_gimplify_va_arg_expr.
16568 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
16569 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
16570 xstormy16_gimplify_va_arg_expr.
16571 Fix up some formatting issues.
16573 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
16574 Move to predicates.md.
16575 (xs_hi_general_operand): Likewise.
16576 (xs_hi_nonmemory_operand): Likewise.
16577 * config/stormy16/predicates.md:
16578 (xstormy16_carry_plus_operand): New predicate.
16579 (xs_hi_general_operand): New predicate.
16580 (xs_hi_nonmemory_operand): New predicate.
16581 * config/stormy16/stormy16-protos.h:
16582 (xstormy16_carry_plus_operand): Delete prototype.
16583 (xs_hi_general_operand): Likewise.
16584 (xs_hi_nonmemory_operand): Likewise.
16586 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
16587 modifiers as they are no longer needed and they can trigger
16588 reload spill failures.
16590 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
16591 with a match_operand in order to help reload.
16593 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
16594 constraint with 'e' for the 8th alternative as this version of
16595 the mov.w instruction only accepts the lower 8 registers.
16597 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
16600 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
16601 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
16604 2008-01-25 Jakub Jelinek <jakub@redhat.com>
16606 PR middle-end/33333
16607 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
16609 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
16611 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
16613 (remove_structure): Update allocations list before removing structure.
16615 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
16617 * ipa-struct-reorg.c (is_safe_cond_expr,
16618 create_new_stmts_for_cond_expr): Use integer_zerop function,
16619 that recognize not only zero-pointer, but zero-integer too.
16621 2008-01-25 Ben Elliston <bje@au.ibm.com>
16624 * fixproto: Escape "." in sed expression that strips leading "./".
16626 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
16629 * gcc.c (SWITCH_OK): Removed.
16630 (SWITCH_LIVE): Changed to bit.
16631 (SWITCH_FALSE): Likewise.
16632 (SWITCH_IGNORE): Likewise.
16633 (switchstr): Change live_cond to unsigned int.
16634 (process_command): Replace SWITCH_OK with 0.
16635 (do_self_spec): Likewise.
16636 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
16637 (give_switch): Likewise.
16638 (used_arg): Likewise.
16639 (do_spec_1): Set the SWITCH_IGNORE bit.
16640 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
16641 bits. Set the SWITCH_LIVE bit.
16643 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
16645 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
16647 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
16649 PR tree-optimization/34472
16650 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
16651 parameter to a "bool *" and set *DATA to false if there is
16652 an unsafe access. Do not delete the structure here.
16653 (check_cond_exprs): Delete it here instead.
16654 (check_cond_exprs, exclude_cold_structs): Do not increase
16655 I when removing a structure.
16657 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
16660 * config/i386/i386.c (ix86_expand_vector_init): Consider only
16661 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
16663 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
16665 PR middle-end/34934
16666 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
16667 a fixed vector for stack.
16669 2008-01-24 Ben Elliston <bje@au.ibm.com>
16672 * doc/gcc.texi (Software development): Add a direntry for g++.
16674 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
16676 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
16677 stale and straggling -fforce-addr comments above.
16679 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
16681 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
16682 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
16684 2008-01-23 Michael Matz <matz@suse.de>
16687 * dwarf2out.c (force_type_die): Use modified_type_die instead of
16690 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
16692 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
16693 malloc result type.
16695 2008-01-23 Anatoly Sokolov <aesok@post.ru>
16697 * config/avr/avr.c (avr_current_arch): New variable.
16698 (avr_arch_types): Add 'avr31' and 'avr51' entries.
16699 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
16700 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
16701 (avr_override_options): Init 'avr_current_arch'.
16702 (base_arch_s): Move from here...
16703 * config/avr/avr.h (base_arch_s): ... here. Add new members
16704 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
16705 'mega' to 'have_jmp_call'.
16706 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
16707 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
16709 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
16711 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16712 MULTILIB_MATCHES): Ditto.
16714 2008-01-23 Richard Guenther <rguenther@suse.de>
16716 PR middle-end/31529
16717 * cgraphunit.c (cgraph_reset_node): Always mark the node
16718 not reachable if it is not queued already.
16720 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
16722 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
16723 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
16724 (cputype_selected): New static variable.
16725 (bfin_handle_option): Set it if -mcpu is used.
16726 (override_option): Select default set of workarounds if no cpu type
16727 selected on the command line.
16728 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
16730 From Michael Frysinger <michael.frysinger@analog.com>
16731 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
16732 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
16734 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
16735 for bf547, bf523, bf524, and bf526.
16736 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
16738 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16739 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
16740 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
16741 __ADSPBF547__ and __ADSPBF54x__ for bf547.
16742 * doc/invoke.texi (Blackfin Options): Document that
16743 -mcpu now accept bf547, bf523, bf524, and bf526.
16745 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
16747 PR rtl-optimization/34628
16748 * combine.c (try_combine): Stop and undo after the first combination
16749 if an autoincrement side-effect on the first insn has effectively
16752 2008-01-22 David Edelsohn <edelsohn@gnu.org>
16755 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
16756 Offset addresses are not valid for Altivec or paired float modes.
16758 2008-01-22 Jakub Jelinek <jakub@redhat.com>
16761 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
16762 if DECL_INITIAL (decl) is error_mark_node.
16765 * c-common.c (handle_vector_size_attribute): Only allow
16766 integral, scalar float and fixed point types. Handle OFFSET_TYPE
16767 the same way as pointer, array etc. types.
16768 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
16771 * tree.c (build_type_attribute_qual_variant): Call
16772 build_qualified_type if attributes are equal, but quals are not.
16774 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16777 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
16778 * flags.h (warn_strict_aliasing): Remove.
16779 (warn_strict_overflow): Remove.
16780 * opts.c (warn_strict_aliasing): Remove.
16781 (warn_strict_overflow): Remove.
16782 * c-opts.c (c_common_handle_option): -Wall only sets
16783 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
16784 (c_common_post_options): Give default values to -Wstrict-aliasing
16785 and -Wstrict-overflow if they are uninitialized.
16786 * common.opt (Wstrict-aliasing): Specify Var and Init.
16787 (Wstrict-overflow): Likewise.
16789 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
16791 PR rtl-optimization/26854
16792 PR rtl-optimization/34400
16793 PR rtl-optimization/34884
16794 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
16796 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
16797 (df_rd_bb_info.expanded_lr_out): Deleted
16798 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
16799 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
16800 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16801 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16802 Removed code to allocate, initialize or free expanded_lr_out.
16803 (df_rd_bb_local_compute_process_def): Restructured to make more
16805 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
16806 sets if the sets are being trimmed.
16808 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
16811 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
16812 (as_vers): Likewise.
16813 * configure: Regenerated.
16815 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16817 PR middle-end/33092
16818 * tree-pass.h (pass_build_alias): New pass.
16819 * tree-ssa-alias.c (gate_build_alias): New.
16820 (pass_build_alias): New.
16821 * passes.c (init_optimization_passes): Add pass_build_alias after
16822 pass_create_structure_vars.
16824 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
16826 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
16827 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
16828 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
16829 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
16830 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
16831 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
16832 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
16833 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
16834 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
16835 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
16836 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
16837 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
16838 * config/s390/s390.md (FP_ALL): New mode iterator.
16839 (_d): New mode attribute.
16840 ("*signbit<mode>2>"): Changed mode of first operand.
16841 ("isinf<mode>2"): Changed mode of first operand.
16842 ("*TDC_insn"): Adaptation for DFP modes.
16844 2008-01-22 Ben Elliston <bje@au.ibm.com>
16846 * tree.c (check_qualified_type): Improve function description.
16848 2008-01-21 Jason Merrill <jason@redhat.com>
16851 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
16852 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
16855 2008-01-21 DJ Delorie <dj@redhat.com>
16857 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
16860 2008-01-21 Richard Guenther <rguenther@suse.de>
16862 PR middle-end/34856
16863 * tree-cfg.c (verify_expr): Allow all invariant expressions
16864 instead of just constant class ones as reference argument.
16865 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
16866 like any other constant.
16867 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16869 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
16871 * regmove.c (fixup_match_1): Update call crossed frequencies.
16873 2008-01-21 Richard Guenther <rguenther@suse.de>
16876 * tree-inline.c (setup_one_parameter): Deal with mismatched
16877 types using a VIEW_CONVERT_EXPR.
16879 2008-01-21 Alon Dayan <alond@il.ibm.com>
16880 Olga Golovanevsky <olga@il.ibm.com>
16882 PR tree-optimization/34701
16883 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
16884 when the structure size is not a power of 2.
16886 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
16888 * doc/install.texi: Add doc for --enable-checking=df.
16890 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
16892 PR rtl-optimization/34808
16893 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
16895 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
16897 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
16900 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
16902 PR rtl-optimization/26854
16903 PR rtl-optimization/34400
16904 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
16906 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
16907 (df_rd_bb_info.expanded_lr_out): New.
16908 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
16909 * loop_iv.c (iv_analysis_loop_init): Ditto.
16910 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16911 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16912 Added code to allocate, initialize or free expanded_lr_out.
16913 (df_rd_bb_local_compute_process_def): Restructured to make
16914 more understandable.
16915 (df_rd_confluence_n): Add code to do nothing with fake edges and
16916 code to no apply invalidate_by_call sets if the sets are being trimmed.
16917 (df_lr_local_finalize): Renamed to df_lr_finalize.
16918 (df_live_local_finalize): Renamed to df_live_finalize.
16920 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
16923 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
16924 deciding whether to use reciprocal instructions.
16926 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
16928 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
16929 dwarf2out_note_section_used if cold_text_section is NULL.
16931 2008-01-19 Jakub Jelinek <jakub@redhat.com>
16933 PR gcov-profile/34610
16934 * tree-cfg.c (make_edges): Mark both outgoing edges from
16935 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
16936 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
16937 from OMP_FOR and OMP_CONTINUE outgoing edges.
16939 * tree-profile.c (tree_profiling): Return early if
16940 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
16942 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
16943 from cfun to child_cfun.
16944 * function.h (struct function): Add after_tree_profile bit.
16946 2008-01-19 Anatoly Sokolov <aesok@post.ru>
16948 * config/avr/avr.S (_exit): Disable interrupt.
16950 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
16951 Steven Bosscher <stevenb.gcc@gmail.com>
16953 PR rtl-optimization/26854
16954 PR rtl-optimization/34400
16955 * df-problems.c (df_live_scratch): New scratch bitmap.
16956 (df_live_alloc): Allocate df_live_scratch when doing df_live.
16957 (df_live_reset): Clear the proper bitmaps.
16958 (df_live_bb_local_compute): Only process the artificial defs once
16959 since the order is not important.
16960 (df_live_init): Init the df_live sets only with the variables
16961 found live by df_lr.
16962 (df_live_transfer_function): Use the df_lr sets to prune the
16963 df_live sets as they are being computed.
16964 (df_live_free): Free df_live_scratch.
16966 2008-01-18 Ian Lance Taylor <iant@google.com>
16968 * common.opt: Add fmerge-debug-strings.
16969 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
16970 flag_merge_debug_strings rather than flag_merge_constants.
16971 * doc/invoke.texi (Option Summary): Mention
16972 -fmerge-debug-strings.
16973 (Debugging Options): Document -fmerge-debug-strings.
16975 2008-01-18 Ian Lance Taylor <iant@google.com>
16978 * tree.h (DECL_IS_OPERATOR_NEW): Define.
16979 (struct tree_function_decl): Add new field operator_new_flag.
16980 * tree-inline.c (expand_call_inline): When inlining a call to
16981 operator new, force the return value to go into a variable, and
16982 set DECL_NO_TBAA_P on that variable.
16983 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
16985 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
16988 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
16989 DWARF2_DEBUGGING_INFO.
16990 (dwarf2out_note_section_used): Ditto. Add prototype.
16991 (have_multiple_function_sections, text_section_used,
16992 cold_text_section_used, *cold_text_sections): Move declarations
16995 2008-01-17 Bob Wilson <bob.wilson@acm.org>
16997 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
16998 field and add signal_ra.
16999 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
17000 assignments to frame state pc. Move end of stack check after
17001 MD_FALLBACK_FRAME_STATE_FOR.
17002 (uw_update_context_1): Use frame state signal_regs if set, instead
17003 of checking signal_frame flag.
17004 (uw_update_context): Use frame state signal_ra if set.
17005 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
17006 * config/xtensa/linux-unwind.h: New file.
17008 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
17010 * modulo-sched.c (get_sched_window): Fix comment typo.
17012 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
17014 PR tree-optimization/34648
17015 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
17017 2008-01-17 Anatoly Sokolov <aesok@post.ru>
17019 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
17020 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
17022 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
17024 PR rtl-optimization/34400
17025 * df-core.c (df_worklist_dataflow_overeager,
17026 df_worklist_dataflow_doublequeue): New functions.
17027 (df_worklist_dataflow): Two different worklist solvers.
17028 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
17031 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
17034 * doc/invoke.texi: Document the dependence on pthread for fopenmp
17035 and ftree-parallelize-loops.
17037 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
17039 PR rtl-optimization/34826
17040 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
17042 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
17044 * global.c (find_reg): Mark the eh regs as used if necessary.
17045 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
17046 * ra.h (struct allocno): no_eh_reg field added. Changed
17047 no_stack_reg type to bitfield.
17049 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
17051 * tree.c (substitute_in_expr): Add missing 'break'.
17053 2008-01-17 Richard Guenther <rguenther@suse.de>
17055 PR tree-optimization/34825
17056 * tree-ssa-math-opts.c (is_division_by): Do not recognize
17057 x / x as division to handle.
17059 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17061 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
17062 "-pthread" is specified.
17063 * pa-hpux11.h (LIB_SPEC): Likewise.
17065 2008-01-16 Janis Johnson <janis187@us.ibm.com>
17066 Peter Bergner <bergner@vnet.ibm.com>
17068 PR rtl-optimization/33796
17069 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
17071 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17073 PR libgfortran/34699
17074 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
17076 * pa-hpux10.h (LINK_SPEC): Likewise.
17077 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
17079 2008-01-16 Richard Guenther <rguenther@suse.de>
17081 PR middle-end/32628
17082 * fold-const.c (fold_convert_const_int_from_int): Do not
17083 set overflow if that occured only because of a sign extension
17084 change when converting from/to a sizetype with the same
17085 precision and signedness.
17087 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
17090 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
17091 location address to the correct place. Update copyright year.
17093 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
17095 * lambda-code.c (lambda_transform_legal_p): Handle the case of
17096 no dependences in the dependence_relations vector.
17098 2008-01-16 Jan Hubicka <jh@suse.cz>
17100 PR rtl-optimization/31396
17101 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
17102 * cfg.c (dump_reg_info): Print it.
17103 * regs.h (struct reg_info_t): add freq_calls_crossed.
17104 (REG_FREQ_CALLS_CROSSED): New macro.
17105 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
17106 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
17107 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
17108 regmove_optimize): Update call crossed frequencies.
17109 * local-alloc.c (struct qty): Add freq_calls_crossed.
17110 (alloc_qty): Copute freq_calls_crossed.
17111 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
17112 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
17113 * ra.h (struct allocno): Add freq_calls_crossed.
17115 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
17117 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
17118 libgomp when compiling with ftree-parallelize-loops.
17119 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
17121 2008-01-16 Richard Guenther <rguenther@suse.de>
17123 PR tree-optimization/34769
17124 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
17125 * tree.c (int_cst_value): Instead make this function more
17126 permissive in what it accepts as valid input. Document this
17127 function always sign-extends the value.
17129 2008-01-16 Jakub Jelinek <jakub@redhat.com>
17130 Richard Guenther <rguenther@suse.de>
17133 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
17134 (gimple_fold_indirect_ref_rhs): ... this.
17135 (gimple_fold_indirect_ref): New function with foldings
17136 that preserve lvalueness.
17137 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
17138 * tree-flow.h (gimple_fold_indirect_ref): Declare.
17139 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
17140 to fold an INDIRECT_REF, fall back to the old use of
17141 fold_indirect_ref_1.
17143 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
17145 * tree-data-ref.c (subscript_dependence_tester_1): Call
17146 free_conflict_function.
17147 (compute_self_dependence): Same.
17149 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
17152 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
17153 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
17155 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
17156 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
17157 for DWARF2_UNWIND_INFO targets.
17159 2008-01-16 Richard Guenther <rguenther@suse.de>
17162 * c-typeck.c (common_pointer_type): Do not merge inconsistent
17163 type qualifiers for function types.
17165 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
17167 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
17168 loop_iterator li from previous commit.
17170 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
17172 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
17174 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
17176 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
17177 (parallelize_loops): Don't parallelize irreducible components.
17179 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17182 * c-opts (c_common_post_options): Do not enable CPP
17183 flag_pedantic_errors by default.
17185 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
17187 PR rtl-optimization/31944
17188 * cse.c (remove_pseudo_from_table): New function.
17189 (merge_equiv_classes): Use above function to remove pseudo-registers.
17190 (invalidate): Likewise.
17192 2008-01-13 Richard Guenther <rguenther@suse.de>
17194 PR middle-end/34601
17195 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
17196 instead of TYPE_MODE to deal with calls from expand_one_error_var.
17198 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
17200 * gcse.c (cprop_jump): Call validate_unshare_change instead of
17201 validate_change to unshare the source of the PC set.
17203 2008-01-12 Jan Hubicka <jh@suse.cz>
17205 PR middle-end/32135
17206 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
17207 references above array bounds. This might trigger bounds checks for
17208 pointers to arrays.
17210 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
17212 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
17213 new_replaceable_dependencies.
17215 2008-01-12 Doug Kwan <dougkwan@google.com>
17217 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
17218 instead of OPT_Wreturn_type in warning due to ignored return type
17220 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
17221 options included in -Wextra.
17222 * c.opt: New option -Wignored_qualifiers.
17223 * doc/invoke.texi (Warning Options, -Wextra): Add new option
17224 -Wignore_qualifiers.
17225 (-Wignored-qualifiers): Document.
17226 (-Wreturn-type): Remove description of functionality now handled
17227 by -Wignored-qualifiers.
17229 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
17232 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
17233 NOP_EXPR if it is between integral types with the same precision.
17235 2008-01-12 Jan Hubicka <jh@suse.cz>
17238 * invoke.texi (max-inline-recursive-depth): Fix default value.
17240 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
17242 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
17245 2008-01-11 Bob Wilson <bob.wilson@acm.org>
17247 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
17249 2008-01-11 James E. Wilson <wilson@specifix.com>
17252 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
17254 2008-01-11 Anatoly Sokolov <aesok@post.ru>
17256 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
17257 save/restore frame pointer register and don't use 'call-prologues'
17258 optimization in function with "OS_task" attribute.
17260 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
17262 PR middle-end/31309
17263 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
17264 when copying to memory.
17266 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
17268 PR rtl-optimization/30905
17269 * cfgcleanup.c: Include dce.h
17270 (crossjumps_occured): New global variable.
17271 (try_crossjump_bb): Exit loop after finding a fallthru edge.
17272 If something changed, set crossjumps_occured to true.
17273 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
17274 Don't add/remove fake edges to exit here...
17275 (cleanup_cfg): ...but do it here, when crossjumping.
17276 Run a fast DCE when successful crossjumps occured in the latest
17277 iteration of try_optimize_cfg.
17279 2008-01-11 Richard Guenther <rguenther@suse.de>
17281 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
17282 (struct vn_unary_op_s): Likewise.
17283 (vn_reference_insert): Free old reference on hash collision.
17285 2008-01-10 Raksit Ashok <raksit@google.com>
17287 PR rtl-optimization/27971
17288 * combine.c (find_split_point): Split PLUS expressions which are
17289 inside a MEM rtx, and whose first operand is complex.
17291 2008-01-10 DJ Delorie <dj@redhat.com>
17293 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
17294 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
17295 (m32c_hard_regno_ok): Call the underlying function.
17297 2008-01-10 Richard Guenther <rguenther@suse.de>
17299 PR middle-end/34683
17300 * tree-cfg.c (tree_merge_blocks): Do not go through the
17301 full-blown folding and stmt updating path if we just deal
17302 with virtual operands.
17303 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
17304 test for abnormal SSA_NAMEs.
17306 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
17308 PR middle-end/34641
17309 * reload.c (push_reload): Add assertions. All constants from
17310 reg_equiv_constant should have been used for replacing the respective
17312 (find_reloads_address): Invoke find_reloads_address_part for
17313 constant taken from the reg_equiv_constant array.
17315 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
17317 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
17318 field (valnum) the first in the struct. Replace bools with
17321 2008-01-10 Richard Guenther <rguenther@suse.de>
17323 PR tree-optimization/34651
17324 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
17325 types and ordering for masking and converting.
17327 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
17329 PR tree-optimization/34017
17330 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
17331 also for PHI_NODE expressions.
17333 2008-01-09 Jan Hubicka <jh@suse.cz>
17335 PR tree-optimization/34708
17336 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
17337 based on number of case labels.
17338 (init_inline_once): Remove switch_cost.
17339 * tree-inline.h (eni_weights_d): Remove switch_cost.
17341 2008-01-09 Richard Guenther <rguenther@suse.de>
17342 Andrew Pinski <andrew_pinski@playstation.sony.com>
17344 PR middle-end/30132
17345 * gimplify.c (gimplify_cond_expr): Do not create an addressable
17346 temporary if an rvalue is ok or an lvalue is not required.
17348 2008-01-09 Richard Guenther <rguenther@suse.de>
17350 PR middle-end/34458
17351 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
17352 adjust return type.
17354 2008-01-09 Richard Guenther <rguenther@suse.de>
17356 PR middle-end/34679
17357 * tree.c (host_integerp): Check for sizetype only if the
17358 type is an integer type.
17360 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
17363 * opts.c (decode_options): Disable inlining of functions called
17364 once if not in unit-at-a-time mode.
17366 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
17368 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
17370 2008-01-08 Richard Guenther <rguenther@suse.de>
17372 PR middle-end/31863
17373 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
17374 out early if the result will be unused.
17376 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
17381 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
17382 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
17385 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
17387 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
17388 for vectorization tuned.
17390 2008-01-08 Richard Guenther <rguenther@suse.de>
17392 PR tree-optimization/34683
17393 * tree-ssa-operands.c (operand_build_cmp): Export.
17394 * tree-ssa-operands.h (operand_build_cmp): Declare.
17395 * tree-vn.c (vuses_compare): Remove.
17396 (sort_vuses): Use operand_build_cmp.
17397 (sort_vuses_heap): Likewise.
17398 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
17399 to re-use old VEC if available. Do not sort already sorted VUSEs.
17400 (vdefs_to_vec): Do not sort already sorted VDEFs.
17402 2008-01-08 Jakub Jelinek <jakub@redhat.com>
17404 PR middle-end/34694
17405 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
17407 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
17410 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
17411 limitations of reciprocal sequences on x86 targets.
17413 2008-01-08 Richard Guenther <rguenther@suse.de>
17415 PR tree-optimization/34683
17416 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
17418 2008-01-07 Jakub Jelinek <jakub@redhat.com>
17421 * config/darwin.c (darwin_mergeable_string_section): Don't use
17422 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
17424 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
17427 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
17428 negxf2. Macroize expander using X87MODEF mode iterator. Change
17429 predicates of op0 and op1 to register_operand.
17430 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
17431 expander using X87MODEF mode iterator. Change predicates of
17432 op0 and op1 to register_operand.
17433 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
17434 corresponding patterns and macroize using MODEF macro. Change
17435 predicates of op0 and op1 to register_operand and remove
17436 "m" constraint. Disparage "r" alternative with "!".
17437 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
17438 macroize using X87MODEF macro. Change predicates of op0 and op1
17439 to register_operand and remove "m" constraint. Disparage "r"
17440 alternative with "!".
17441 (absneg splitter with memory operands): Remove.
17442 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
17443 patterns and macroize using X87MODEF mode iterator.
17444 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
17445 Change predicate of op1 to register_operand.
17446 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
17447 for memory operands.
17449 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
17451 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
17453 2008-01-07 Richard Guenther <rguenther@suse.de>
17455 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
17458 2008-01-07 Richard Guenther <rguenther@suse.de>
17460 PR tree-optimization/34683
17461 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
17462 VOPs of the needed size to save memory. Use VEC_quick_push
17463 to save compile-time.
17464 (vdefs_to_vec): Likewise.
17466 2008-01-07 Sa Liu <saliu@de.ibm.com>
17468 * config/spu/spu.md (divdf3): Genetate inline code for double
17469 division. The implementation doesn't handle INF or NAN, therefore it
17470 only applies when -ffinite-math-only is given.
17472 2008-01-06 Paolo Carlini <pcarlini@suse.de>
17475 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
17476 * doc/cpp.texi ([Common Predefined Macros]): Document.
17478 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
17480 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
17481 order to use commutative addition instead of subtraction.
17483 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
17484 Mircea Namolaru <namolaru@il.ibm.com>
17485 Vladimir Yanovsky <yanov@il.ibm.com>
17486 Revital Eres <eres@il.ibm.com>
17488 PR tree-optimization/34263
17489 * tree-outof-ssa.c (process_single_block_loop_latch,
17490 contains_tree_r): New functions.
17491 (analyze_edges_for_bb): Call process_single_block_loop_latch
17492 function to empty single-basic-block latch block if possible.
17494 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
17496 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
17498 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
17500 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
17502 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
17504 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
17506 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
17508 2008-01-05 Jakub Jelinek <jakub@redhat.com>
17510 PR tree-optimization/34618
17511 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
17514 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
17517 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
17518 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
17519 Update copyright year.
17521 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
17522 Update copyright year.
17523 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
17526 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
17528 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
17529 edge does not point to current bb before changing need_assert.
17531 2008-01-04 Richard Guenther <rguenther@suse.de>
17533 PR middle-end/34029
17534 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
17535 for verifying purposes if they are is_gimple_min_invariant.
17537 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
17539 PR tree-optimization/34448
17540 PR tree-optimization/34465
17541 * gimplify.c (gimplify_init_constructor): Add new parameter
17542 notify_temp_creation. Use it.
17543 (gimplify_modify_expr_rhs): Take volatiles into account when
17544 optimizing constructors.
17545 Do not optimize constructors if gimplify_init_constructor will dump to
17547 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
17548 * gcc.c-torture/compile/pr34448.c: New.
17550 2008-01-04 Jakub Jelinek <jakub@redhat.com>
17552 PR gcov-profile/34609
17553 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
17554 return_slot if result is TREE_ADDRESSABLE.
17556 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
17558 * config/mips/mips.md (sqrt_condition): Tweak comment.
17559 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
17561 2008-01-03 Tom Tromey <tromey@redhat.com>
17564 * c-common.c (c_type_hash): Handle VLAs.
17566 2008-01-03 Jan Hubicka <jh@suse.cz>
17568 PR tree-optimization/31081
17569 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
17570 0 when inlining and not inlining to first basic block.
17571 (remap_decl): When var is initialized to 0, don't set default_def.
17572 (expand_call_inline): Set entry_bb.
17573 * tree-inline.h (copy_body_data): Add entry_bb.
17575 2008-01-03 Jakub Jelinek <jakub@redhat.com>
17578 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
17581 PR tree-optimization/29484
17582 * tree-inline.c (inline_forbidden_p_2): New function.
17583 (inline_forbidden_p): Disallow inlining if some static var
17584 has an address of a local LABEL_DECL in its initializer.
17585 * doc/extend.texi (Labels as Values): Document &&foo behaviour
17588 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
17590 PR tree-optimization/34635
17591 * tree-data-ref.c (add_other_self_distances): Make sure that the
17592 evolution step is constant.
17594 2008-01-03 Jakub Jelinek <jakub@redhat.com>
17596 PR middle-end/34608
17597 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
17599 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
17601 * tree-sra.c (scalarize_init): Insert the generate_element_init
17602 statements after the generate_element_zero statements.
17604 2008-01-02 Richard Guenther <rguenther@suse.de>
17606 PR middle-end/34093
17607 PR middle-end/31976
17608 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
17609 for very large number of operands instead of ICEing.
17611 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
17614 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
17615 while stack probing.
17617 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
17619 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
17622 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
17624 PR libmudflap/26442
17625 * tree-mudflap.c (mx_register_decls): Guard warning by
17626 !DECL_ARTIFICIAL check.
17628 2008-01-01 Jakub Jelinek <jakub@redhat.com>
17630 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
17631 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
17632 sse5_perm<mode>): Fix constraints.